@openvtc/trust-tasks 0.20.1 → 0.20.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/CHANGELOG.md +110 -0
  2. package/dist/_shared/components.d.ts +175 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/git-ns/_shared/0.1/git-ns.d.ts +16 -0
  5. package/dist/git-ns/_shared/0.1/git-ns.d.ts.map +1 -0
  6. package/dist/git-ns/_shared/0.1/git-ns.js +6 -0
  7. package/dist/git-ns/_shared/0.1/git-ns.js.map +1 -0
  8. package/dist/git-ns/account/link/0.1/payload.d.ts +355 -0
  9. package/dist/git-ns/account/link/0.1/payload.d.ts.map +1 -0
  10. package/dist/git-ns/account/link/0.1/payload.js +192 -0
  11. package/dist/git-ns/account/link/0.1/payload.js.map +1 -0
  12. package/dist/git-ns/account/link-status/0.1/payload.d.ts +403 -0
  13. package/dist/git-ns/account/link-status/0.1/payload.d.ts.map +1 -0
  14. package/dist/git-ns/account/link-status/0.1/payload.js +234 -0
  15. package/dist/git-ns/account/link-status/0.1/payload.js.map +1 -0
  16. package/dist/git-ns/bridge/event/0.1/payload.d.ts +1348 -0
  17. package/dist/git-ns/bridge/event/0.1/payload.d.ts.map +1 -0
  18. package/dist/git-ns/bridge/event/0.1/payload.js +785 -0
  19. package/dist/git-ns/bridge/event/0.1/payload.js.map +1 -0
  20. package/dist/git-ns/bridge/job/0.1/payload.d.ts +1044 -0
  21. package/dist/git-ns/bridge/job/0.1/payload.d.ts.map +1 -0
  22. package/dist/git-ns/bridge/job/0.1/payload.js +564 -0
  23. package/dist/git-ns/bridge/job/0.1/payload.js.map +1 -0
  24. package/dist/git-ns/bridge/result/0.1/payload.d.ts +462 -0
  25. package/dist/git-ns/bridge/result/0.1/payload.d.ts.map +1 -0
  26. package/dist/git-ns/bridge/result/0.1/payload.js +248 -0
  27. package/dist/git-ns/bridge/result/0.1/payload.js.map +1 -0
  28. package/dist/git-ns/namespace/bind/0.1/payload.d.ts +547 -0
  29. package/dist/git-ns/namespace/bind/0.1/payload.d.ts.map +1 -0
  30. package/dist/git-ns/namespace/bind/0.1/payload.js +322 -0
  31. package/dist/git-ns/namespace/bind/0.1/payload.js.map +1 -0
  32. package/dist/git-ns/namespace/unbind/0.1/payload.d.ts +300 -0
  33. package/dist/git-ns/namespace/unbind/0.1/payload.d.ts.map +1 -0
  34. package/dist/git-ns/namespace/unbind/0.1/payload.js +168 -0
  35. package/dist/git-ns/namespace/unbind/0.1/payload.js.map +1 -0
  36. package/dist/git-ns/repo/adopt/0.1/payload.d.ts +962 -0
  37. package/dist/git-ns/repo/adopt/0.1/payload.d.ts.map +1 -0
  38. package/dist/git-ns/repo/adopt/0.1/payload.js +583 -0
  39. package/dist/git-ns/repo/adopt/0.1/payload.js.map +1 -0
  40. package/dist/git-ns/repo/archive/0.1/payload.d.ts +959 -0
  41. package/dist/git-ns/repo/archive/0.1/payload.d.ts.map +1 -0
  42. package/dist/git-ns/repo/archive/0.1/payload.js +584 -0
  43. package/dist/git-ns/repo/archive/0.1/payload.js.map +1 -0
  44. package/dist/git-ns/repo/create/0.1/payload.d.ts +1074 -0
  45. package/dist/git-ns/repo/create/0.1/payload.d.ts.map +1 -0
  46. package/dist/git-ns/repo/create/0.1/payload.js +636 -0
  47. package/dist/git-ns/repo/create/0.1/payload.js.map +1 -0
  48. package/dist/git-ns/repo/transfer/0.1/payload.d.ts +947 -0
  49. package/dist/git-ns/repo/transfer/0.1/payload.d.ts.map +1 -0
  50. package/dist/git-ns/repo/transfer/0.1/payload.js +577 -0
  51. package/dist/git-ns/repo/transfer/0.1/payload.js.map +1 -0
  52. package/dist/git-ns/right/grant/0.1/payload.d.ts +506 -0
  53. package/dist/git-ns/right/grant/0.1/payload.d.ts.map +1 -0
  54. package/dist/git-ns/right/grant/0.1/payload.js +289 -0
  55. package/dist/git-ns/right/grant/0.1/payload.js.map +1 -0
  56. package/dist/git-ns/right/revoke/0.1/payload.d.ts +492 -0
  57. package/dist/git-ns/right/revoke/0.1/payload.d.ts.map +1 -0
  58. package/dist/git-ns/right/revoke/0.1/payload.js +284 -0
  59. package/dist/git-ns/right/revoke/0.1/payload.js.map +1 -0
  60. package/dist/git-ns/view/0.1/payload.d.ts +1407 -0
  61. package/dist/git-ns/view/0.1/payload.d.ts.map +1 -0
  62. package/dist/git-ns/view/0.1/payload.js +860 -0
  63. package/dist/git-ns/view/0.1/payload.js.map +1 -0
  64. package/dist/index.d.ts +20 -0
  65. package/dist/index.d.ts.map +1 -1
  66. package/dist/index.js +20 -0
  67. package/dist/index.js.map +1 -1
  68. package/dist/vetting/attestation/0.1/payload.d.ts +690 -0
  69. package/dist/vetting/attestation/0.1/payload.d.ts.map +1 -0
  70. package/dist/vetting/attestation/0.1/payload.js +374 -0
  71. package/dist/vetting/attestation/0.1/payload.js.map +1 -0
  72. package/dist/vtc/vetting/pcs-challenge/0.1/payload.d.ts +261 -0
  73. package/dist/vtc/vetting/pcs-challenge/0.1/payload.d.ts.map +1 -0
  74. package/dist/vtc/vetting/pcs-challenge/0.1/payload.js +145 -0
  75. package/dist/vtc/vetting/pcs-challenge/0.1/payload.js.map +1 -0
  76. package/dist/vtc/vetting/vetters/event-mode/0.1/payload.d.ts +546 -0
  77. package/dist/vtc/vetting/vetters/event-mode/0.1/payload.d.ts.map +1 -0
  78. package/dist/vtc/vetting/vetters/event-mode/0.1/payload.js +290 -0
  79. package/dist/vtc/vetting/vetters/event-mode/0.1/payload.js.map +1 -0
  80. package/dist/vtc/vetting/vetters/pcs-root/0.1/payload.d.ts +336 -0
  81. package/dist/vtc/vetting/vetters/pcs-root/0.1/payload.d.ts.map +1 -0
  82. package/dist/vtc/vetting/vetters/pcs-root/0.1/payload.js +178 -0
  83. package/dist/vtc/vetting/vetters/pcs-root/0.1/payload.js.map +1 -0
  84. package/dist/vtc/vetting/vetters/pcs-tokens/0.1/payload.d.ts +402 -0
  85. package/dist/vtc/vetting/vetters/pcs-tokens/0.1/payload.d.ts.map +1 -0
  86. package/dist/vtc/vetting/vetters/pcs-tokens/0.1/payload.js +205 -0
  87. package/dist/vtc/vetting/vetters/pcs-tokens/0.1/payload.js.map +1 -0
  88. package/package.json +1 -1
  89. package/src/_shared/components.ts +181 -0
  90. package/src/git-ns/_shared/0.1/git-ns.ts +17 -0
  91. package/src/git-ns/account/link/0.1/payload.ts +242 -0
  92. package/src/git-ns/account/link-status/0.1/payload.ts +276 -0
  93. package/src/git-ns/bridge/event/0.1/payload.ts +902 -0
  94. package/src/git-ns/bridge/job/0.1/payload.ts +676 -0
  95. package/src/git-ns/bridge/result/0.1/payload.ts +321 -0
  96. package/src/git-ns/namespace/bind/0.1/payload.ts +374 -0
  97. package/src/git-ns/namespace/unbind/0.1/payload.ts +211 -0
  98. package/src/git-ns/repo/adopt/0.1/payload.ts +628 -0
  99. package/src/git-ns/repo/archive/0.1/payload.ts +626 -0
  100. package/src/git-ns/repo/create/0.1/payload.ts +689 -0
  101. package/src/git-ns/repo/transfer/0.1/payload.ts +619 -0
  102. package/src/git-ns/right/grant/0.1/payload.ts +340 -0
  103. package/src/git-ns/right/revoke/0.1/payload.ts +331 -0
  104. package/src/git-ns/view/0.1/payload.ts +906 -0
  105. package/src/index.ts +20 -0
  106. package/src/vetting/attestation/0.1/payload.ts +493 -0
  107. package/src/vtc/vetting/pcs-challenge/0.1/payload.ts +187 -0
  108. package/src/vtc/vetting/vetters/event-mode/0.1/payload.ts +375 -0
  109. package/src/vtc/vetting/vetters/pcs-root/0.1/payload.ts +241 -0
  110. package/src/vtc/vetting/vetters/pcs-tokens/0.1/payload.ts +286 -0
@@ -0,0 +1,211 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/git-ns/namespace/unbind/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext, NamespaceId } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * A namespace admin ends the VTC's governance of a namespace. Every right recorded on a resource inside it is revoked and withdrawn from the Trust Registry, and every repository in it becomes `detached`.
11
+ */
12
+ export interface GitNamespacesUnbindNamespacePayload {
13
+ /**
14
+ * The namespace to unbind.
15
+ */
16
+ namespace: NamespaceId;
17
+ ext?: Ext;
18
+ }
19
+ /**
20
+ * What unbinding removed.
21
+ */
22
+ export interface GitNamespacesUnbindNamespaceResponsePayload {
23
+ namespace: NamespaceId;
24
+ /**
25
+ * How many recorded rights were revoked.
26
+ */
27
+ rightsRevoked: number;
28
+ /**
29
+ * How many repositories became `detached`.
30
+ */
31
+ reposDetached: number;
32
+ ext?: Ext;
33
+ }
34
+
35
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
36
+ export type { Ext, NamespaceId };
37
+
38
+ /** Trust Task type URI. */
39
+ export const TYPE_URI = "https://trusttasks.org/spec/git-ns/namespace/unbind/0.1" as const;
40
+
41
+ /** Stable alias for this specification's request payload shape. */
42
+ export type Payload = GitNamespacesUnbindNamespacePayload;
43
+
44
+ /** Trust Task response type URI (request type URI + "#response"). */
45
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/git-ns/namespace/unbind/0.1#response" as const;
46
+
47
+ /** Stable alias for this specification's success-response payload shape. */
48
+ export type Response = GitNamespacesUnbindNamespaceResponsePayload;
49
+
50
+ /**
51
+ * This specification's payload schema, as a value.
52
+ *
53
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
54
+ * rather than only as a `.json` file because TypeScript types are erased
55
+ * at runtime: without a schema a consumer has nothing to validate, and
56
+ * every REQUIRED payload member is optional in practice. Cross-file
57
+ * `$ref`s are already inlined, so it needs no resolver.
58
+ */
59
+ export const PAYLOAD_SCHEMA = {
60
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
61
+ "$id": "https://trusttasks.org/spec/git-ns/namespace/unbind/0.1",
62
+ "title": "Git Namespaces — Unbind Namespace — payload",
63
+ "description": "A namespace admin ends the VTC's governance of a namespace. Every right recorded on a resource inside it is revoked and withdrawn from the Trust Registry, and every repository in it becomes `detached`.",
64
+ "type": "object",
65
+ "additionalProperties": false,
66
+ "required": [
67
+ "namespace"
68
+ ],
69
+ "properties": {
70
+ "namespace": {
71
+ "$ref": "#/$defs/NamespaceId",
72
+ "description": "The namespace to unbind."
73
+ },
74
+ "ext": {
75
+ "$ref": "#/$defs/Ext"
76
+ }
77
+ },
78
+ "$defs": {
79
+ "Response": {
80
+ "$anchor": "response",
81
+ "title": "Git Namespaces — Unbind Namespace — response payload",
82
+ "description": "What unbinding removed.",
83
+ "type": "object",
84
+ "additionalProperties": false,
85
+ "required": [
86
+ "namespace",
87
+ "rightsRevoked",
88
+ "reposDetached"
89
+ ],
90
+ "properties": {
91
+ "namespace": {
92
+ "$ref": "#/$defs/NamespaceId"
93
+ },
94
+ "rightsRevoked": {
95
+ "type": "integer",
96
+ "minimum": 0,
97
+ "description": "How many recorded rights were revoked."
98
+ },
99
+ "reposDetached": {
100
+ "type": "integer",
101
+ "minimum": 0,
102
+ "description": "How many repositories became `detached`."
103
+ },
104
+ "ext": {
105
+ "$ref": "#/$defs/Ext"
106
+ }
107
+ }
108
+ },
109
+ "Ext": {
110
+ "title": "Ext",
111
+ "description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
112
+ "type": "object",
113
+ "minProperties": 1,
114
+ "additionalProperties": true,
115
+ "propertyNames": {
116
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
117
+ }
118
+ },
119
+ "NamespaceId": {
120
+ "title": "NamespaceId",
121
+ "description": "The VTC's opaque identifier for a namespace, assigned when it is bound. Stable for the life of the binding; never reused for another binding.",
122
+ "type": "string",
123
+ "minLength": 1,
124
+ "maxLength": 128
125
+ }
126
+ }
127
+ } as const;
128
+
129
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
130
+ export const RESPONSE_PAYLOAD_SCHEMA = {
131
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
132
+ "$ref": "#/$defs/Response",
133
+ "$defs": {
134
+ "Response": {
135
+ "$anchor": "response",
136
+ "title": "Git Namespaces — Unbind Namespace — response payload",
137
+ "description": "What unbinding removed.",
138
+ "type": "object",
139
+ "additionalProperties": false,
140
+ "required": [
141
+ "namespace",
142
+ "rightsRevoked",
143
+ "reposDetached"
144
+ ],
145
+ "properties": {
146
+ "namespace": {
147
+ "$ref": "#/$defs/NamespaceId"
148
+ },
149
+ "rightsRevoked": {
150
+ "type": "integer",
151
+ "minimum": 0,
152
+ "description": "How many recorded rights were revoked."
153
+ },
154
+ "reposDetached": {
155
+ "type": "integer",
156
+ "minimum": 0,
157
+ "description": "How many repositories became `detached`."
158
+ },
159
+ "ext": {
160
+ "$ref": "#/$defs/Ext"
161
+ }
162
+ }
163
+ },
164
+ "Ext": {
165
+ "title": "Ext",
166
+ "description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
167
+ "type": "object",
168
+ "minProperties": 1,
169
+ "additionalProperties": true,
170
+ "propertyNames": {
171
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
172
+ }
173
+ },
174
+ "NamespaceId": {
175
+ "title": "NamespaceId",
176
+ "description": "The VTC's opaque identifier for a namespace, assigned when it is bound. Stable for the life of the binding; never reused for another binding.",
177
+ "type": "string",
178
+ "minLength": 1,
179
+ "maxLength": 128
180
+ }
181
+ }
182
+ } as const;
183
+
184
+ /**
185
+ * SPEC.md §7.2 policy for the request variant, from this specification's
186
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
187
+ * per-specification and cannot be derived from the document alone, and
188
+ * item 2 needs the schema this carries.
189
+ */
190
+ export const SPEC = {
191
+ typeUri: TYPE_URI,
192
+ isBearer: false,
193
+ isProofRequired: true,
194
+ isRecipientRequired: true,
195
+ isIssuedAtRequired: true,
196
+ payloadSchema: PAYLOAD_SCHEMA,
197
+ } as const;
198
+
199
+ /**
200
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
201
+ * tracks the *issuer* party's requirement because a response swaps the
202
+ * parties (§7.3 item 5).
203
+ */
204
+ export const RESPONSE_SPEC = {
205
+ typeUri: RESPONSE_TYPE_URI,
206
+ isBearer: false,
207
+ isProofRequired: true,
208
+ isRecipientRequired: true,
209
+ isIssuedAtRequired: true,
210
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
211
+ } as const;