@openvtc/trust-tasks 0.28.11 → 0.28.13

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 (100) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/dist/_shared/components.d.ts +496 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +54 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +54 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/vta/collection/_shared/0.1/collection.d.ts +16 -0
  9. package/dist/vta/collection/_shared/0.1/collection.d.ts.map +1 -0
  10. package/dist/vta/collection/_shared/0.1/collection.js +6 -0
  11. package/dist/vta/collection/_shared/0.1/collection.js.map +1 -0
  12. package/dist/vta/collection/claim/0.1/payload.d.ts +352 -0
  13. package/dist/vta/collection/claim/0.1/payload.d.ts.map +1 -0
  14. package/dist/vta/collection/claim/0.1/payload.js +198 -0
  15. package/dist/vta/collection/claim/0.1/payload.js.map +1 -0
  16. package/dist/vta/collection/list/0.1/payload.d.ts +740 -0
  17. package/dist/vta/collection/list/0.1/payload.d.ts.map +1 -0
  18. package/dist/vta/collection/list/0.1/payload.js +447 -0
  19. package/dist/vta/collection/list/0.1/payload.js.map +1 -0
  20. package/dist/vta/collection/release/0.1/payload.d.ts +316 -0
  21. package/dist/vta/collection/release/0.1/payload.d.ts.map +1 -0
  22. package/dist/vta/collection/release/0.1/payload.js +182 -0
  23. package/dist/vta/collection/release/0.1/payload.js.map +1 -0
  24. package/dist/vtc/boards/_shared/0.1/board.d.ts +22 -0
  25. package/dist/vtc/boards/_shared/0.1/board.d.ts.map +1 -0
  26. package/dist/vtc/boards/_shared/0.1/board.js +6 -0
  27. package/dist/vtc/boards/_shared/0.1/board.js.map +1 -0
  28. package/dist/vtc/boards/create/0.1/payload.d.ts +2402 -0
  29. package/dist/vtc/boards/create/0.1/payload.d.ts.map +1 -0
  30. package/dist/vtc/boards/create/0.1/payload.js +1349 -0
  31. package/dist/vtc/boards/create/0.1/payload.js.map +1 -0
  32. package/dist/vtc/boards/ideas/decide/0.1/payload.d.ts +1781 -0
  33. package/dist/vtc/boards/ideas/decide/0.1/payload.d.ts.map +1 -0
  34. package/dist/vtc/boards/ideas/decide/0.1/payload.js +1028 -0
  35. package/dist/vtc/boards/ideas/decide/0.1/payload.js.map +1 -0
  36. package/dist/vtc/boards/ideas/propose/0.1/payload.d.ts +1781 -0
  37. package/dist/vtc/boards/ideas/propose/0.1/payload.d.ts.map +1 -0
  38. package/dist/vtc/boards/ideas/propose/0.1/payload.js +1025 -0
  39. package/dist/vtc/boards/ideas/propose/0.1/payload.js.map +1 -0
  40. package/dist/vtc/boards/ideas/select/0.1/payload.d.ts +1788 -0
  41. package/dist/vtc/boards/ideas/select/0.1/payload.d.ts.map +1 -0
  42. package/dist/vtc/boards/ideas/select/0.1/payload.js +1029 -0
  43. package/dist/vtc/boards/ideas/select/0.1/payload.js.map +1 -0
  44. package/dist/vtc/boards/ideas/update/0.1/payload.d.ts +1781 -0
  45. package/dist/vtc/boards/ideas/update/0.1/payload.d.ts.map +1 -0
  46. package/dist/vtc/boards/ideas/update/0.1/payload.js +1023 -0
  47. package/dist/vtc/boards/ideas/update/0.1/payload.js.map +1 -0
  48. package/dist/vtc/boards/ideas/withdraw/0.1/payload.d.ts +1753 -0
  49. package/dist/vtc/boards/ideas/withdraw/0.1/payload.d.ts.map +1 -0
  50. package/dist/vtc/boards/ideas/withdraw/0.1/payload.js +1011 -0
  51. package/dist/vtc/boards/ideas/withdraw/0.1/payload.js.map +1 -0
  52. package/dist/vtc/boards/list/0.1/payload.d.ts +2267 -0
  53. package/dist/vtc/boards/list/0.1/payload.d.ts.map +1 -0
  54. package/dist/vtc/boards/list/0.1/payload.js +1326 -0
  55. package/dist/vtc/boards/list/0.1/payload.js.map +1 -0
  56. package/dist/vtc/boards/notes/add/0.1/payload.d.ts +655 -0
  57. package/dist/vtc/boards/notes/add/0.1/payload.d.ts.map +1 -0
  58. package/dist/vtc/boards/notes/add/0.1/payload.js +374 -0
  59. package/dist/vtc/boards/notes/add/0.1/payload.js.map +1 -0
  60. package/dist/vtc/boards/notes/hide/0.1/payload.d.ts +657 -0
  61. package/dist/vtc/boards/notes/hide/0.1/payload.d.ts.map +1 -0
  62. package/dist/vtc/boards/notes/hide/0.1/payload.js +378 -0
  63. package/dist/vtc/boards/notes/hide/0.1/payload.js.map +1 -0
  64. package/dist/vtc/boards/notes/list/0.1/payload.d.ts +730 -0
  65. package/dist/vtc/boards/notes/list/0.1/payload.d.ts.map +1 -0
  66. package/dist/vtc/boards/notes/list/0.1/payload.js +406 -0
  67. package/dist/vtc/boards/notes/list/0.1/payload.js.map +1 -0
  68. package/dist/vtc/boards/notes/withdraw/0.1/payload.d.ts +641 -0
  69. package/dist/vtc/boards/notes/withdraw/0.1/payload.d.ts.map +1 -0
  70. package/dist/vtc/boards/notes/withdraw/0.1/payload.js +367 -0
  71. package/dist/vtc/boards/notes/withdraw/0.1/payload.js.map +1 -0
  72. package/dist/vtc/boards/show/0.1/payload.d.ts +3713 -0
  73. package/dist/vtc/boards/show/0.1/payload.d.ts.map +1 -0
  74. package/dist/vtc/boards/show/0.1/payload.js +2160 -0
  75. package/dist/vtc/boards/show/0.1/payload.js.map +1 -0
  76. package/dist/vtc/boards/update/0.1/payload.d.ts +2423 -0
  77. package/dist/vtc/boards/update/0.1/payload.d.ts.map +1 -0
  78. package/dist/vtc/boards/update/0.1/payload.js +1356 -0
  79. package/dist/vtc/boards/update/0.1/payload.js.map +1 -0
  80. package/package.json +1 -1
  81. package/src/_shared/components.ts +531 -0
  82. package/src/index.ts +54 -0
  83. package/src/vta/collection/_shared/0.1/collection.ts +17 -0
  84. package/src/vta/collection/claim/0.1/payload.ts +247 -0
  85. package/src/vta/collection/list/0.1/payload.ts +500 -0
  86. package/src/vta/collection/release/0.1/payload.ts +223 -0
  87. package/src/vtc/boards/_shared/0.1/board.ts +23 -0
  88. package/src/vtc/boards/create/0.1/payload.ts +1517 -0
  89. package/src/vtc/boards/ideas/decide/0.1/payload.ts +1068 -0
  90. package/src/vtc/boards/ideas/propose/0.1/payload.ts +1063 -0
  91. package/src/vtc/boards/ideas/select/0.1/payload.ts +1070 -0
  92. package/src/vtc/boards/ideas/update/0.1/payload.ts +1061 -0
  93. package/src/vtc/boards/ideas/withdraw/0.1/payload.ts +1045 -0
  94. package/src/vtc/boards/list/0.1/payload.ts +1376 -0
  95. package/src/vtc/boards/notes/add/0.1/payload.ts +410 -0
  96. package/src/vtc/boards/notes/hide/0.1/payload.ts +414 -0
  97. package/src/vtc/boards/notes/list/0.1/payload.ts +457 -0
  98. package/src/vtc/boards/notes/withdraw/0.1/payload.ts +401 -0
  99. package/src/vtc/boards/show/0.1/payload.ts +2212 -0
  100. package/src/vtc/boards/update/0.1/payload.ts +1529 -0
@@ -0,0 +1,500 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/collection/list/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Claim, CollectionEntry, Collector, ContextId_VtaCollectionV0_1 as ContextId, Did_NotificationsV0_1 as Did, Ext, NotCollectedReason } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * A client with standing in a trust context lists, for every identifier there that its VTA collects for unless a client has claimed it, who collects for it now: the VTA, a claimant — with the claim's end and whether it can be renewed — or nobody, and why (VTI-NTF-091). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTACollectionListPayload {
13
+ contextId: ContextId;
14
+ /**
15
+ * Only this identifier.
16
+ */
17
+ identifier?: Did;
18
+ /**
19
+ * Only identifiers with this collector — `none`, for instance, to find the identifiers nobody collects for.
20
+ */
21
+ collector?: Collector;
22
+ /**
23
+ * An opaque cursor from a previous response's `nextCursor`, for the same filters. The VTA refuses one it did not issue.
24
+ */
25
+ cursor?: string;
26
+ /**
27
+ * The most items to return.
28
+ */
29
+ limit?: number;
30
+ ext?: Ext;
31
+ }
32
+ /**
33
+ * One page of the identifiers that match.
34
+ */
35
+ export interface VTACollectionListResponsePayload {
36
+ items: CollectionEntry[];
37
+ /**
38
+ * Present when more items remain; absent on the last page.
39
+ */
40
+ nextCursor?: string;
41
+ }
42
+
43
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
44
+ export type { Claim, CollectionEntry, Collector, ContextId, Did, Ext, NotCollectedReason };
45
+
46
+ /** Trust Task type URI. */
47
+ export const TYPE_URI = "https://trusttasks.org/spec/vta/collection/list/0.1" as const;
48
+
49
+ /**
50
+ * The earlier version of this specification that this one declares it
51
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
52
+ * `null`. Only the direct declaration — follow the chain with
53
+ * `extendsChain` / `readForSpec`.
54
+ */
55
+ export const EXTENDS: string | null = null;
56
+
57
+ /**
58
+ * Why this version is deprecated, or `null` while it is current. A
59
+ * superseded or retired version is still supported, and is withdrawn from
60
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
61
+ * Versions").
62
+ */
63
+ export const DEPRECATION: string | null = null;
64
+
65
+ /** Stable alias for this specification's request payload shape. */
66
+ export type Payload = VTACollectionListPayload;
67
+
68
+ /** Trust Task response type URI (request type URI + "#response"). */
69
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/collection/list/0.1#response" as const;
70
+
71
+ /** Stable alias for this specification's success-response payload shape. */
72
+ export type Response = VTACollectionListResponsePayload;
73
+
74
+ /**
75
+ * This specification's payload schema, as a value.
76
+ *
77
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
78
+ * rather than only as a `.json` file because TypeScript types are erased
79
+ * at runtime: without a schema a consumer has nothing to validate, and
80
+ * every REQUIRED payload member is optional in practice. Cross-file
81
+ * `$ref`s are already inlined, so it needs no resolver.
82
+ */
83
+ export const PAYLOAD_SCHEMA = {
84
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
85
+ "$id": "https://trusttasks.org/spec/vta/collection/list/0.1",
86
+ "title": "VTA Collection — List — payload",
87
+ "description": "A client with standing in a trust context lists, for every identifier there that its VTA collects for unless a client has claimed it, who collects for it now: the VTA, a claimant — with the claim's end and whether it can be renewed — or nobody, and why (VTI-NTF-091). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
88
+ "type": "object",
89
+ "additionalProperties": false,
90
+ "required": [
91
+ "contextId"
92
+ ],
93
+ "properties": {
94
+ "contextId": {
95
+ "$ref": "#/$defs/ContextId"
96
+ },
97
+ "identifier": {
98
+ "$ref": "#/$defs/Did",
99
+ "description": "Only this identifier."
100
+ },
101
+ "collector": {
102
+ "$ref": "#/$defs/Collector",
103
+ "description": "Only identifiers with this collector — `none`, for instance, to find the identifiers nobody collects for."
104
+ },
105
+ "cursor": {
106
+ "type": "string",
107
+ "minLength": 1,
108
+ "maxLength": 512,
109
+ "description": "An opaque cursor from a previous response's `nextCursor`, for the same filters. The VTA refuses one it did not issue."
110
+ },
111
+ "limit": {
112
+ "type": "integer",
113
+ "minimum": 1,
114
+ "maximum": 200,
115
+ "description": "The most items to return."
116
+ },
117
+ "ext": {
118
+ "$ref": "#/$defs/Ext"
119
+ }
120
+ },
121
+ "$defs": {
122
+ "Response": {
123
+ "$anchor": "response",
124
+ "title": "VTA Collection — List — response payload",
125
+ "type": "object",
126
+ "additionalProperties": false,
127
+ "required": [
128
+ "items"
129
+ ],
130
+ "description": "One page of the identifiers that match.",
131
+ "properties": {
132
+ "items": {
133
+ "type": "array",
134
+ "items": {
135
+ "$ref": "#/$defs/CollectionEntry"
136
+ }
137
+ },
138
+ "nextCursor": {
139
+ "type": "string",
140
+ "minLength": 1,
141
+ "maxLength": 512,
142
+ "description": "Present when more items remain; absent on the last page."
143
+ }
144
+ }
145
+ },
146
+ "CollectionEntry": {
147
+ "title": "CollectionEntry",
148
+ "description": "The collection state of one identifier. `claim` is present exactly when `collector` is `client`, and `notCollectedReason` exactly when it is `none`.",
149
+ "type": "object",
150
+ "additionalProperties": false,
151
+ "required": [
152
+ "identifier",
153
+ "collector"
154
+ ],
155
+ "properties": {
156
+ "identifier": {
157
+ "$ref": "#/$defs/Did"
158
+ },
159
+ "collector": {
160
+ "$ref": "#/$defs/Collector"
161
+ },
162
+ "claim": {
163
+ "$ref": "#/$defs/Claim"
164
+ },
165
+ "notCollectedReason": {
166
+ "$ref": "#/$defs/NotCollectedReason"
167
+ }
168
+ },
169
+ "dependentSchemas": {
170
+ "claim": {
171
+ "properties": {
172
+ "collector": {
173
+ "const": "client"
174
+ }
175
+ }
176
+ },
177
+ "notCollectedReason": {
178
+ "properties": {
179
+ "collector": {
180
+ "const": "none"
181
+ }
182
+ }
183
+ },
184
+ "collector": {
185
+ "anyOf": [
186
+ {
187
+ "properties": {
188
+ "collector": {
189
+ "const": "vta"
190
+ }
191
+ },
192
+ "not": {
193
+ "anyOf": [
194
+ {
195
+ "required": [
196
+ "claim"
197
+ ]
198
+ },
199
+ {
200
+ "required": [
201
+ "notCollectedReason"
202
+ ]
203
+ }
204
+ ]
205
+ }
206
+ },
207
+ {
208
+ "required": [
209
+ "claim"
210
+ ]
211
+ },
212
+ {
213
+ "required": [
214
+ "notCollectedReason"
215
+ ]
216
+ }
217
+ ]
218
+ }
219
+ }
220
+ },
221
+ "NotCollectedReason": {
222
+ "title": "NotCollectedReason",
223
+ "description": "Why nobody collects for an identifier the VTA would otherwise collect for: `limit`, the VTA is at the bound it states on the number of identifiers it collects for (VTI-NTF-088); `conflict`, another connection for the identifier kept closing the VTA's, and the VTA stopped after the bound it states until the conflict is resolved (VTI-NTF-085). `disabled`, the VTA's operator has not enabled collection by default (VTI-NTF-093), so the VTA collects for no identifier a client has not claimed.",
224
+ "type": "string",
225
+ "enum": [
226
+ "limit",
227
+ "conflict",
228
+ "disabled"
229
+ ]
230
+ },
231
+ "Claim": {
232
+ "title": "Claim",
233
+ "description": "A collection claim in force for one identifier: the client that is its collector, when the claim ends, and whether the claimant may still renew it. A claim released by a party other than its claimant, or whose claimant's access control entry no longer gives it standing in the context, is not renewable and still ends at `endsAt`, because the claimant is still connected until its own clock tells it to stop (VTI-NTF-084).",
234
+ "type": "object",
235
+ "additionalProperties": false,
236
+ "required": [
237
+ "claimant",
238
+ "endsAt",
239
+ "renewable"
240
+ ],
241
+ "properties": {
242
+ "claimant": {
243
+ "$ref": "#/$defs/Did",
244
+ "description": "The client holding the claim: the subject of the access control entry it was granted to."
245
+ },
246
+ "endsAt": {
247
+ "type": "string",
248
+ "format": "date-time",
249
+ "description": "When the claim ends unless renewed. The claimant stops collecting before this instant less its clock-skew tolerance; the VTA resumes no earlier than this instant plus its own (VTI-NTF-083, VTI-NTF-084)."
250
+ },
251
+ "renewable": {
252
+ "type": "boolean",
253
+ "description": "Whether the claimant may renew the claim with vta/collection/claim before it ends."
254
+ }
255
+ }
256
+ },
257
+ "Did": {
258
+ "title": "Did",
259
+ "description": "A DID.",
260
+ "type": "string",
261
+ "minLength": 8,
262
+ "maxLength": 2048,
263
+ "pattern": "^did:[a-z0-9]+:\\S+$"
264
+ },
265
+ "Collector": {
266
+ "title": "Collector",
267
+ "description": "Who collects for an identifier: `vta`, the VTA itself; `client`, the claimant of a collection claim in force; or `none`, nobody, for the reason given in `notCollectedReason`.",
268
+ "type": "string",
269
+ "enum": [
270
+ "vta",
271
+ "client",
272
+ "none"
273
+ ]
274
+ },
275
+ "Ext": {
276
+ "title": "Ext",
277
+ "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.",
278
+ "type": "object",
279
+ "minProperties": 1,
280
+ "additionalProperties": true,
281
+ "propertyNames": {
282
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
283
+ }
284
+ },
285
+ "ContextId": {
286
+ "title": "ContextId",
287
+ "description": "The trust context the identifier belongs to.",
288
+ "type": "string",
289
+ "minLength": 1,
290
+ "maxLength": 256
291
+ }
292
+ }
293
+ } as const;
294
+
295
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
296
+ export const RESPONSE_PAYLOAD_SCHEMA = {
297
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
298
+ "$ref": "#/$defs/Response",
299
+ "$defs": {
300
+ "Response": {
301
+ "$anchor": "response",
302
+ "title": "VTA Collection — List — response payload",
303
+ "type": "object",
304
+ "additionalProperties": false,
305
+ "required": [
306
+ "items"
307
+ ],
308
+ "description": "One page of the identifiers that match.",
309
+ "properties": {
310
+ "items": {
311
+ "type": "array",
312
+ "items": {
313
+ "$ref": "#/$defs/CollectionEntry"
314
+ }
315
+ },
316
+ "nextCursor": {
317
+ "type": "string",
318
+ "minLength": 1,
319
+ "maxLength": 512,
320
+ "description": "Present when more items remain; absent on the last page."
321
+ }
322
+ }
323
+ },
324
+ "CollectionEntry": {
325
+ "title": "CollectionEntry",
326
+ "description": "The collection state of one identifier. `claim` is present exactly when `collector` is `client`, and `notCollectedReason` exactly when it is `none`.",
327
+ "type": "object",
328
+ "additionalProperties": false,
329
+ "required": [
330
+ "identifier",
331
+ "collector"
332
+ ],
333
+ "properties": {
334
+ "identifier": {
335
+ "$ref": "#/$defs/Did"
336
+ },
337
+ "collector": {
338
+ "$ref": "#/$defs/Collector"
339
+ },
340
+ "claim": {
341
+ "$ref": "#/$defs/Claim"
342
+ },
343
+ "notCollectedReason": {
344
+ "$ref": "#/$defs/NotCollectedReason"
345
+ }
346
+ },
347
+ "dependentSchemas": {
348
+ "claim": {
349
+ "properties": {
350
+ "collector": {
351
+ "const": "client"
352
+ }
353
+ }
354
+ },
355
+ "notCollectedReason": {
356
+ "properties": {
357
+ "collector": {
358
+ "const": "none"
359
+ }
360
+ }
361
+ },
362
+ "collector": {
363
+ "anyOf": [
364
+ {
365
+ "properties": {
366
+ "collector": {
367
+ "const": "vta"
368
+ }
369
+ },
370
+ "not": {
371
+ "anyOf": [
372
+ {
373
+ "required": [
374
+ "claim"
375
+ ]
376
+ },
377
+ {
378
+ "required": [
379
+ "notCollectedReason"
380
+ ]
381
+ }
382
+ ]
383
+ }
384
+ },
385
+ {
386
+ "required": [
387
+ "claim"
388
+ ]
389
+ },
390
+ {
391
+ "required": [
392
+ "notCollectedReason"
393
+ ]
394
+ }
395
+ ]
396
+ }
397
+ }
398
+ },
399
+ "NotCollectedReason": {
400
+ "title": "NotCollectedReason",
401
+ "description": "Why nobody collects for an identifier the VTA would otherwise collect for: `limit`, the VTA is at the bound it states on the number of identifiers it collects for (VTI-NTF-088); `conflict`, another connection for the identifier kept closing the VTA's, and the VTA stopped after the bound it states until the conflict is resolved (VTI-NTF-085). `disabled`, the VTA's operator has not enabled collection by default (VTI-NTF-093), so the VTA collects for no identifier a client has not claimed.",
402
+ "type": "string",
403
+ "enum": [
404
+ "limit",
405
+ "conflict",
406
+ "disabled"
407
+ ]
408
+ },
409
+ "Claim": {
410
+ "title": "Claim",
411
+ "description": "A collection claim in force for one identifier: the client that is its collector, when the claim ends, and whether the claimant may still renew it. A claim released by a party other than its claimant, or whose claimant's access control entry no longer gives it standing in the context, is not renewable and still ends at `endsAt`, because the claimant is still connected until its own clock tells it to stop (VTI-NTF-084).",
412
+ "type": "object",
413
+ "additionalProperties": false,
414
+ "required": [
415
+ "claimant",
416
+ "endsAt",
417
+ "renewable"
418
+ ],
419
+ "properties": {
420
+ "claimant": {
421
+ "$ref": "#/$defs/Did",
422
+ "description": "The client holding the claim: the subject of the access control entry it was granted to."
423
+ },
424
+ "endsAt": {
425
+ "type": "string",
426
+ "format": "date-time",
427
+ "description": "When the claim ends unless renewed. The claimant stops collecting before this instant less its clock-skew tolerance; the VTA resumes no earlier than this instant plus its own (VTI-NTF-083, VTI-NTF-084)."
428
+ },
429
+ "renewable": {
430
+ "type": "boolean",
431
+ "description": "Whether the claimant may renew the claim with vta/collection/claim before it ends."
432
+ }
433
+ }
434
+ },
435
+ "Did": {
436
+ "title": "Did",
437
+ "description": "A DID.",
438
+ "type": "string",
439
+ "minLength": 8,
440
+ "maxLength": 2048,
441
+ "pattern": "^did:[a-z0-9]+:\\S+$"
442
+ },
443
+ "Collector": {
444
+ "title": "Collector",
445
+ "description": "Who collects for an identifier: `vta`, the VTA itself; `client`, the claimant of a collection claim in force; or `none`, nobody, for the reason given in `notCollectedReason`.",
446
+ "type": "string",
447
+ "enum": [
448
+ "vta",
449
+ "client",
450
+ "none"
451
+ ]
452
+ },
453
+ "Ext": {
454
+ "title": "Ext",
455
+ "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.",
456
+ "type": "object",
457
+ "minProperties": 1,
458
+ "additionalProperties": true,
459
+ "propertyNames": {
460
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
461
+ }
462
+ },
463
+ "ContextId": {
464
+ "title": "ContextId",
465
+ "description": "The trust context the identifier belongs to.",
466
+ "type": "string",
467
+ "minLength": 1,
468
+ "maxLength": 256
469
+ }
470
+ }
471
+ } as const;
472
+
473
+ /**
474
+ * SPEC.md §7.2 policy for the request variant, from this specification's
475
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
476
+ * per-specification and cannot be derived from the document alone, and
477
+ * item 2 needs the schema this carries.
478
+ */
479
+ export const SPEC = {
480
+ typeUri: TYPE_URI,
481
+ isBearer: false,
482
+ isProofRequired: false,
483
+ isRecipientRequired: true,
484
+ isIssuedAtRequired: false,
485
+ payloadSchema: PAYLOAD_SCHEMA,
486
+ } as const;
487
+
488
+ /**
489
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
490
+ * tracks the *issuer* party's requirement because a response swaps the
491
+ * parties (§7.3 item 5).
492
+ */
493
+ export const RESPONSE_SPEC = {
494
+ typeUri: RESPONSE_TYPE_URI,
495
+ isBearer: false,
496
+ isProofRequired: false,
497
+ isRecipientRequired: true,
498
+ isIssuedAtRequired: false,
499
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
500
+ } as const;