@openvtc/trust-tasks 0.21.12 → 0.21.14

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 (65) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/dist/_shared/components.d.ts +91 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/auth/_shared/0.3/session.d.ts +16 -0
  5. package/dist/auth/_shared/0.3/session.d.ts.map +1 -0
  6. package/dist/auth/_shared/0.3/session.js +6 -0
  7. package/dist/auth/_shared/0.3/session.js.map +1 -0
  8. package/dist/auth/authenticate/0.3/payload.d.ts +852 -0
  9. package/dist/auth/authenticate/0.3/payload.d.ts.map +1 -0
  10. package/dist/auth/authenticate/0.3/payload.js +442 -0
  11. package/dist/auth/authenticate/0.3/payload.js.map +1 -0
  12. package/dist/auth/refresh/0.2/payload.d.ts +729 -0
  13. package/dist/auth/refresh/0.2/payload.d.ts.map +1 -0
  14. package/dist/auth/refresh/0.2/payload.js +392 -0
  15. package/dist/auth/refresh/0.2/payload.js.map +1 -0
  16. package/dist/git-ns/_shared/0.5/git-ns.d.ts +16 -0
  17. package/dist/git-ns/_shared/0.5/git-ns.d.ts.map +1 -0
  18. package/dist/git-ns/_shared/0.5/git-ns.js +6 -0
  19. package/dist/git-ns/_shared/0.5/git-ns.js.map +1 -0
  20. package/dist/git-ns/account/list/0.1/payload.d.ts +598 -0
  21. package/dist/git-ns/account/list/0.1/payload.d.ts.map +1 -0
  22. package/dist/git-ns/account/list/0.1/payload.js +317 -0
  23. package/dist/git-ns/account/list/0.1/payload.js.map +1 -0
  24. package/dist/git-ns/activity/list/0.1/payload.d.ts +642 -0
  25. package/dist/git-ns/activity/list/0.1/payload.d.ts.map +1 -0
  26. package/dist/git-ns/activity/list/0.1/payload.js +343 -0
  27. package/dist/git-ns/activity/list/0.1/payload.js.map +1 -0
  28. package/dist/git-ns/bridge/job/list/0.1/payload.d.ts +697 -0
  29. package/dist/git-ns/bridge/job/list/0.1/payload.d.ts.map +1 -0
  30. package/dist/git-ns/bridge/job/list/0.1/payload.js +386 -0
  31. package/dist/git-ns/bridge/job/list/0.1/payload.js.map +1 -0
  32. package/dist/git-ns/projection/show/0.1/payload.d.ts +705 -0
  33. package/dist/git-ns/projection/show/0.1/payload.d.ts.map +1 -0
  34. package/dist/git-ns/projection/show/0.1/payload.js +377 -0
  35. package/dist/git-ns/projection/show/0.1/payload.js.map +1 -0
  36. package/dist/git-ns/right/issued-by-departed/0.1/payload.d.ts +862 -0
  37. package/dist/git-ns/right/issued-by-departed/0.1/payload.d.ts.map +1 -0
  38. package/dist/git-ns/right/issued-by-departed/0.1/payload.js +487 -0
  39. package/dist/git-ns/right/issued-by-departed/0.1/payload.js.map +1 -0
  40. package/dist/git-ns/right/list/0.1/payload.d.ts +773 -0
  41. package/dist/git-ns/right/list/0.1/payload.d.ts.map +1 -0
  42. package/dist/git-ns/right/list/0.1/payload.js +439 -0
  43. package/dist/git-ns/right/list/0.1/payload.js.map +1 -0
  44. package/dist/index.d.ts +11 -0
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/index.js +11 -0
  47. package/dist/index.js.map +1 -1
  48. package/dist/vta/contexts/update-did/1.1/payload.d.ts +388 -0
  49. package/dist/vta/contexts/update-did/1.1/payload.d.ts.map +1 -0
  50. package/dist/vta/contexts/update-did/1.1/payload.js +227 -0
  51. package/dist/vta/contexts/update-did/1.1/payload.js.map +1 -0
  52. package/package.json +1 -1
  53. package/src/_shared/components.ts +91 -0
  54. package/src/auth/_shared/0.3/session.ts +17 -0
  55. package/src/auth/authenticate/0.3/payload.ts +527 -0
  56. package/src/auth/refresh/0.2/payload.ts +444 -0
  57. package/src/git-ns/_shared/0.5/git-ns.ts +17 -0
  58. package/src/git-ns/account/list/0.1/payload.ts +392 -0
  59. package/src/git-ns/activity/list/0.1/payload.ts +430 -0
  60. package/src/git-ns/bridge/job/list/0.1/payload.ts +490 -0
  61. package/src/git-ns/projection/show/0.1/payload.ts +479 -0
  62. package/src/git-ns/right/issued-by-departed/0.1/payload.ts +550 -0
  63. package/src/git-ns/right/list/0.1/payload.ts +493 -0
  64. package/src/index.ts +11 -0
  65. package/src/vta/contexts/update-did/1.1/payload.ts +256 -0
@@ -0,0 +1,256 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/contexts/update-did/1.1/payload.schema.json
4
+ */
5
+
6
+ import type { ContextRecord, Ext } from "../../../../_shared/components.js";
7
+
8
+
9
+ export interface VTAContextsUpdateDIDPayload {
10
+ /**
11
+ * Context whose DID is being set.
12
+ */
13
+ id: string;
14
+ /**
15
+ * The DID this context acts as from now on, or `null` to leave the context with no DID of its own. A string MUST be a DID per DID Core §3.1 (`did:` method-name `:` method-specific-id); `pattern` applies to strings only, so `null` is not constrained by it. Anything that authenticated or signed as the previous DID keeps referring to it; this task does not migrate those references, and a consumer MUST NOT imply that it does.
16
+ */
17
+ did: string | null;
18
+ ext?: Ext;
19
+ }
20
+
21
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
22
+ export type { ContextRecord, Ext };
23
+
24
+ /** Trust Task type URI. */
25
+ export const TYPE_URI = "https://trusttasks.org/spec/vta/contexts/update-did/1.1" as const;
26
+
27
+ /** Stable alias for this specification's request payload shape. */
28
+ export type Payload = VTAContextsUpdateDIDPayload;
29
+
30
+ /** Trust Task response type URI (request type URI + "#response"). */
31
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/contexts/update-did/1.1#response" as const;
32
+
33
+ /** Stable alias for this specification's success-response payload shape. */
34
+ export type Response = ContextRecord;
35
+
36
+ /**
37
+ * This specification's payload schema, as a value.
38
+ *
39
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
40
+ * rather than only as a `.json` file because TypeScript types are erased
41
+ * at runtime: without a schema a consumer has nothing to validate, and
42
+ * every REQUIRED payload member is optional in practice. Cross-file
43
+ * `$ref`s are already inlined, so it needs no resolver.
44
+ */
45
+ export const PAYLOAD_SCHEMA = {
46
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
47
+ "$id": "https://trusttasks.org/spec/vta/contexts/update-did/1.1",
48
+ "title": "VTA Contexts Update-DID — payload",
49
+ "type": "object",
50
+ "additionalProperties": false,
51
+ "required": [
52
+ "id",
53
+ "did"
54
+ ],
55
+ "properties": {
56
+ "id": {
57
+ "type": "string",
58
+ "minLength": 1,
59
+ "description": "Context whose DID is being set."
60
+ },
61
+ "did": {
62
+ "type": [
63
+ "string",
64
+ "null"
65
+ ],
66
+ "pattern": "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$",
67
+ "description": "The DID this context acts as from now on, or `null` to leave the context with no DID of its own. A string MUST be a DID per DID Core §3.1 (`did:` method-name `:` method-specific-id); `pattern` applies to strings only, so `null` is not constrained by it. Anything that authenticated or signed as the previous DID keeps referring to it; this task does not migrate those references, and a consumer MUST NOT imply that it does."
68
+ },
69
+ "ext": {
70
+ "$ref": "#/$defs/Ext"
71
+ }
72
+ },
73
+ "$defs": {
74
+ "Response": {
75
+ "$anchor": "response",
76
+ "title": "VTA Contexts Update-DID — response payload",
77
+ "description": "Success response to vta/contexts/update-did: the context as it now stands. Type https://trusttasks.org/spec/vta/contexts/update-did/1.1#response.",
78
+ "$ref": "#/$defs/ContextRecord"
79
+ },
80
+ "ContextRecord": {
81
+ "title": "ContextRecord",
82
+ "description": "A context as the VTA holds it.",
83
+ "type": "object",
84
+ "additionalProperties": false,
85
+ "required": [
86
+ "id",
87
+ "name",
88
+ "basePath",
89
+ "createdAt",
90
+ "updatedAt"
91
+ ],
92
+ "properties": {
93
+ "id": {
94
+ "type": "string",
95
+ "minLength": 1,
96
+ "description": "Context id. For a nested context this is the full path (`parent/leaf`), not the leaf alone — an ACL scope naming this context must use this value verbatim."
97
+ },
98
+ "name": {
99
+ "type": "string",
100
+ "minLength": 1,
101
+ "maxLength": 256,
102
+ "description": "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name."
103
+ },
104
+ "did": {
105
+ "type": "string",
106
+ "description": "DID this context acts as, when one has been assigned. Absent means the context has no identity of its own yet — not that it has been denied one."
107
+ },
108
+ "description": {
109
+ "type": "string",
110
+ "maxLength": 1024,
111
+ "description": "Free-form description."
112
+ },
113
+ "parent": {
114
+ "type": "string",
115
+ "description": "Id of the context this one nests under. Absent for a top-level context. Authority granted at a parent reaches its children, so this member is load-bearing for anyone reasoning about scope."
116
+ },
117
+ "basePath": {
118
+ "type": "string",
119
+ "description": "Resolved path from the root context, as the VTA derives it from the parent chain. Consumers MUST treat this as derived state: it is recomputed by the maintainer and is not independently settable."
120
+ },
121
+ "createdAt": {
122
+ "type": "string",
123
+ "format": "date-time",
124
+ "description": "RFC 3339."
125
+ },
126
+ "updatedAt": {
127
+ "type": "string",
128
+ "format": "date-time",
129
+ "description": "RFC 3339."
130
+ },
131
+ "ext": {
132
+ "$ref": "#/$defs/Ext"
133
+ }
134
+ }
135
+ },
136
+ "Ext": {
137
+ "title": "Ext",
138
+ "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.",
139
+ "type": "object",
140
+ "minProperties": 1,
141
+ "additionalProperties": true,
142
+ "propertyNames": {
143
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
144
+ }
145
+ }
146
+ }
147
+ } as const;
148
+
149
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
150
+ export const RESPONSE_PAYLOAD_SCHEMA = {
151
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
152
+ "$ref": "#/$defs/Response",
153
+ "$defs": {
154
+ "Response": {
155
+ "$anchor": "response",
156
+ "title": "VTA Contexts Update-DID — response payload",
157
+ "description": "Success response to vta/contexts/update-did: the context as it now stands. Type https://trusttasks.org/spec/vta/contexts/update-did/1.1#response.",
158
+ "$ref": "#/$defs/ContextRecord"
159
+ },
160
+ "ContextRecord": {
161
+ "title": "ContextRecord",
162
+ "description": "A context as the VTA holds it.",
163
+ "type": "object",
164
+ "additionalProperties": false,
165
+ "required": [
166
+ "id",
167
+ "name",
168
+ "basePath",
169
+ "createdAt",
170
+ "updatedAt"
171
+ ],
172
+ "properties": {
173
+ "id": {
174
+ "type": "string",
175
+ "minLength": 1,
176
+ "description": "Context id. For a nested context this is the full path (`parent/leaf`), not the leaf alone — an ACL scope naming this context must use this value verbatim."
177
+ },
178
+ "name": {
179
+ "type": "string",
180
+ "minLength": 1,
181
+ "maxLength": 256,
182
+ "description": "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name."
183
+ },
184
+ "did": {
185
+ "type": "string",
186
+ "description": "DID this context acts as, when one has been assigned. Absent means the context has no identity of its own yet — not that it has been denied one."
187
+ },
188
+ "description": {
189
+ "type": "string",
190
+ "maxLength": 1024,
191
+ "description": "Free-form description."
192
+ },
193
+ "parent": {
194
+ "type": "string",
195
+ "description": "Id of the context this one nests under. Absent for a top-level context. Authority granted at a parent reaches its children, so this member is load-bearing for anyone reasoning about scope."
196
+ },
197
+ "basePath": {
198
+ "type": "string",
199
+ "description": "Resolved path from the root context, as the VTA derives it from the parent chain. Consumers MUST treat this as derived state: it is recomputed by the maintainer and is not independently settable."
200
+ },
201
+ "createdAt": {
202
+ "type": "string",
203
+ "format": "date-time",
204
+ "description": "RFC 3339."
205
+ },
206
+ "updatedAt": {
207
+ "type": "string",
208
+ "format": "date-time",
209
+ "description": "RFC 3339."
210
+ },
211
+ "ext": {
212
+ "$ref": "#/$defs/Ext"
213
+ }
214
+ }
215
+ },
216
+ "Ext": {
217
+ "title": "Ext",
218
+ "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.",
219
+ "type": "object",
220
+ "minProperties": 1,
221
+ "additionalProperties": true,
222
+ "propertyNames": {
223
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
224
+ }
225
+ }
226
+ }
227
+ } as const;
228
+
229
+ /**
230
+ * SPEC.md §7.2 policy for the request variant, from this specification's
231
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
232
+ * per-specification and cannot be derived from the document alone, and
233
+ * item 2 needs the schema this carries.
234
+ */
235
+ export const SPEC = {
236
+ typeUri: TYPE_URI,
237
+ isBearer: false,
238
+ isProofRequired: true,
239
+ isRecipientRequired: true,
240
+ isIssuedAtRequired: true,
241
+ payloadSchema: PAYLOAD_SCHEMA,
242
+ } as const;
243
+
244
+ /**
245
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
246
+ * tracks the *issuer* party's requirement because a response swaps the
247
+ * parties (§7.3 item 5).
248
+ */
249
+ export const RESPONSE_SPEC = {
250
+ typeUri: RESPONSE_TYPE_URI,
251
+ isBearer: false,
252
+ isProofRequired: true,
253
+ isRecipientRequired: true,
254
+ isIssuedAtRequired: true,
255
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
256
+ } as const;