···11-import "@typelex/emitter";
22-33-namespace sh.tangled.label.`op` {
44- @rec("tid")
55- model Main {
66- /** The subject (task, pull or discussion) of this label. Appviews may apply a `scope` check and refuse this op. */
77- @required
88- subject: atUri;
99-1010- @required performedAt: datetime;
1111- @required add: Operand[];
1212- @required delete: Operand[];
1313- }
1414-1515- model Operand {
1616- /** ATURI to the label definition */
1717- @required
1818- key: atUri;
1919-2020- /** Stringified value of the label. This is first unstringed by appviews and then interpreted as a concrete value. */
2121- @required
2222- value: string;
2323- }
2424-}
···11+import "@typelex/emitter";
22+33+namespace sh.tangled.label.`op` {
44+ @rec("tid")
55+ model Main {
66+ @doc("The subject (task, pull or discussion) of this label. Appviews may apply a `scope` check and refuse this op.")
77+ @required
88+ subject: atUri;
99+1010+ @required
1111+ add: Operand[];
1212+1313+ @required
1414+ delete: Operand[];
1515+1616+ @required
1717+ performedAt: datetime;
1818+ }
1919+2020+ model Operand {
2121+ @doc("ATURI to the label definition")
2222+ @required
2323+ key: atUri;
2424+2525+ @doc("Stringified value of the label. This is first unstringed by appviews and then interpreted as a concrete value.")
2626+ @required
2727+ value: string;
2828+ }
2929+}
···11+import "@typelex/emitter";
22+33+namespace sh.tangled.repo.artifact {
44+ @rec("tid")
55+ model Main {
66+ @doc("name of the artifact")
77+ @required
88+ name: string;
99+1010+ @doc("repo that this artifact is being uploaded to")
1111+ @required
1212+ repo: atUri;
1313+1414+ @doc("hash of the tag object that this artifact is attached to (only annotated tags are supported)")
1515+ @required
1616+ @minBytes(20)
1717+ @maxBytes(20)
1818+ tag: bytes;
1919+2020+ @doc("time of creation of this artifact")
2121+ @required
2222+ createdAt: datetime;
2323+2424+ @doc("the artifact")
2525+ @required
2626+ artifact: Blob<#["*/*"], 52428800>;
2727+ }
2828+}
···11+import "@typelex/emitter";
22+33+namespace sh.tangled.spindle.member {
44+ @rec("tid")
55+ model Main {
66+ @required
77+ subject: did;
88+99+ @doc("spindle instance that the subject is now a member of")
1010+ @required
1111+ instance: string;
1212+1313+ @required
1414+ createdAt: datetime;
1515+ }
1616+}