@openvtc/trust-tasks 0.26.1 → 0.26.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 (98) hide show
  1. package/CHANGELOG.md +152 -0
  2. package/dist/_shared/components.d.ts +107 -1
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +15 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +15 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/rooms/owner/group/add/0.1/payload.d.ts +417 -0
  9. package/dist/rooms/owner/group/add/0.1/payload.d.ts.map +1 -0
  10. package/dist/rooms/owner/group/add/0.1/payload.js +218 -0
  11. package/dist/rooms/owner/group/add/0.1/payload.js.map +1 -0
  12. package/dist/rooms/owner/group/create/0.1/payload.d.ts +299 -0
  13. package/dist/rooms/owner/group/create/0.1/payload.d.ts.map +1 -0
  14. package/dist/rooms/owner/group/create/0.1/payload.js +163 -0
  15. package/dist/rooms/owner/group/create/0.1/payload.js.map +1 -0
  16. package/dist/rooms/owner/group/remove/0.1/payload.d.ts +343 -0
  17. package/dist/rooms/owner/group/remove/0.1/payload.d.ts.map +1 -0
  18. package/dist/rooms/owner/group/remove/0.1/payload.js +184 -0
  19. package/dist/rooms/owner/group/remove/0.1/payload.js.map +1 -0
  20. package/dist/rooms/owner/register/0.1/payload.d.ts +3 -3
  21. package/dist/rooms/owner/register/0.1/payload.js +1 -1
  22. package/dist/rooms/owner/register/0.1/payload.js.map +1 -1
  23. package/dist/vtc/_shared/0.1/community-room.d.ts +16 -0
  24. package/dist/vtc/_shared/0.1/community-room.d.ts.map +1 -0
  25. package/dist/vtc/_shared/0.1/community-room.js +6 -0
  26. package/dist/vtc/_shared/0.1/community-room.js.map +1 -0
  27. package/dist/vtc/admin/events/_shared/0.1/topic.d.ts +1 -1
  28. package/dist/vtc/admin/events/_shared/0.1/topic.d.ts.map +1 -1
  29. package/dist/vtc/admin/events/_shared/0.2/topic.d.ts +28 -0
  30. package/dist/vtc/admin/events/_shared/0.2/topic.d.ts.map +1 -0
  31. package/dist/vtc/admin/events/_shared/0.2/topic.js +6 -0
  32. package/dist/vtc/admin/events/_shared/0.2/topic.js.map +1 -0
  33. package/dist/vtc/admin/events/event/0.1/payload.d.ts +1 -1
  34. package/dist/vtc/admin/events/event/0.1/payload.d.ts.map +1 -1
  35. package/dist/vtc/admin/events/event/0.2/payload.d.ts +172 -0
  36. package/dist/vtc/admin/events/event/0.2/payload.d.ts.map +1 -0
  37. package/dist/vtc/admin/events/event/0.2/payload.js +100 -0
  38. package/dist/vtc/admin/events/event/0.2/payload.js.map +1 -0
  39. package/dist/vtc/admin/events/subscribe/0.1/payload.d.ts +1 -1
  40. package/dist/vtc/admin/events/subscribe/0.1/payload.d.ts.map +1 -1
  41. package/dist/vtc/admin/events/subscribe/0.2/payload.d.ts +409 -0
  42. package/dist/vtc/admin/events/subscribe/0.2/payload.d.ts.map +1 -0
  43. package/dist/vtc/admin/events/subscribe/0.2/payload.js +232 -0
  44. package/dist/vtc/admin/events/subscribe/0.2/payload.js.map +1 -0
  45. package/dist/vtc/rooms/community/create/0.1/payload.d.ts +789 -0
  46. package/dist/vtc/rooms/community/create/0.1/payload.d.ts.map +1 -0
  47. package/dist/vtc/rooms/community/create/0.1/payload.js +463 -0
  48. package/dist/vtc/rooms/community/create/0.1/payload.js.map +1 -0
  49. package/dist/vtc/rooms/community/get/0.1/payload.d.ts +711 -0
  50. package/dist/vtc/rooms/community/get/0.1/payload.d.ts.map +1 -0
  51. package/dist/vtc/rooms/community/get/0.1/payload.js +429 -0
  52. package/dist/vtc/rooms/community/get/0.1/payload.js.map +1 -0
  53. package/dist/vtc/rooms/community/list/0.1/payload.d.ts +772 -0
  54. package/dist/vtc/rooms/community/list/0.1/payload.d.ts.map +1 -0
  55. package/dist/vtc/rooms/community/list/0.1/payload.js +452 -0
  56. package/dist/vtc/rooms/community/list/0.1/payload.js.map +1 -0
  57. package/dist/vtc/rooms/community/members/add/0.1/payload.d.ts +535 -0
  58. package/dist/vtc/rooms/community/members/add/0.1/payload.d.ts.map +1 -0
  59. package/dist/vtc/rooms/community/members/add/0.1/payload.js +314 -0
  60. package/dist/vtc/rooms/community/members/add/0.1/payload.js.map +1 -0
  61. package/dist/vtc/rooms/community/members/list/0.1/payload.d.ts +554 -0
  62. package/dist/vtc/rooms/community/members/list/0.1/payload.d.ts.map +1 -0
  63. package/dist/vtc/rooms/community/members/list/0.1/payload.js +315 -0
  64. package/dist/vtc/rooms/community/members/list/0.1/payload.js.map +1 -0
  65. package/dist/vtc/rooms/community/members/remove/0.1/payload.d.ts +533 -0
  66. package/dist/vtc/rooms/community/members/remove/0.1/payload.d.ts.map +1 -0
  67. package/dist/vtc/rooms/community/members/remove/0.1/payload.js +313 -0
  68. package/dist/vtc/rooms/community/members/remove/0.1/payload.js.map +1 -0
  69. package/dist/vtc/rooms/offers/accept/0.1/payload.d.ts +349 -0
  70. package/dist/vtc/rooms/offers/accept/0.1/payload.d.ts.map +1 -0
  71. package/dist/vtc/rooms/offers/accept/0.1/payload.js +188 -0
  72. package/dist/vtc/rooms/offers/accept/0.1/payload.js.map +1 -0
  73. package/dist/vtc/rooms/offers/list/0.1/payload.d.ts +692 -0
  74. package/dist/vtc/rooms/offers/list/0.1/payload.d.ts.map +1 -0
  75. package/dist/vtc/rooms/offers/list/0.1/payload.js +408 -0
  76. package/dist/vtc/rooms/offers/list/0.1/payload.js.map +1 -0
  77. package/package.json +1 -1
  78. package/src/_shared/components.ts +120 -1
  79. package/src/index.ts +15 -0
  80. package/src/rooms/owner/group/add/0.1/payload.ts +288 -0
  81. package/src/rooms/owner/group/create/0.1/payload.ts +213 -0
  82. package/src/rooms/owner/group/remove/0.1/payload.ts +242 -0
  83. package/src/rooms/owner/register/0.1/payload.ts +2 -2
  84. package/src/vtc/_shared/0.1/community-room.ts +17 -0
  85. package/src/vtc/admin/events/_shared/0.1/topic.ts +1 -1
  86. package/src/vtc/admin/events/_shared/0.2/topic.ts +29 -0
  87. package/src/vtc/admin/events/event/0.1/payload.ts +1 -1
  88. package/src/vtc/admin/events/event/0.2/payload.ts +134 -0
  89. package/src/vtc/admin/events/subscribe/0.1/payload.ts +1 -1
  90. package/src/vtc/admin/events/subscribe/0.2/payload.ts +306 -0
  91. package/src/vtc/rooms/community/create/0.1/payload.ts +509 -0
  92. package/src/vtc/rooms/community/get/0.1/payload.ts +461 -0
  93. package/src/vtc/rooms/community/list/0.1/payload.ts +495 -0
  94. package/src/vtc/rooms/community/members/add/0.1/payload.ts +356 -0
  95. package/src/vtc/rooms/community/members/list/0.1/payload.ts +366 -0
  96. package/src/vtc/rooms/community/members/remove/0.1/payload.ts +351 -0
  97. package/src/vtc/rooms/offers/accept/0.1/payload.ts +240 -0
  98. package/src/vtc/rooms/offers/list/0.1/payload.ts +451 -0
@@ -0,0 +1,451 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/rooms/offers/list/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext, MemberAction, MemberActions, Offer, OfferCredentials, RoomLabel, Visibility } from "../../../../../_shared/components.js";
7
+
8
+
9
+ export interface VTCRoomsOffersListPayload {
10
+ /**
11
+ * Opaque continuation token from a previous page's `nextCursor`.
12
+ */
13
+ cursor?: string;
14
+ /**
15
+ * Page size. The community chooses when absent (50 in the reference implementation).
16
+ */
17
+ limit?: number;
18
+ ext?: Ext;
19
+ }
20
+ /**
21
+ * Success response to vtc/rooms/offers/list. Type https://trusttasks.org/spec/vtc/rooms/offers/list/0.1#response. The offers addressed to the caller, and no one else's.
22
+ */
23
+ export interface VTCRoomsOffersListResponsePayload {
24
+ /**
25
+ * @maxItems 100
26
+ */
27
+ items: Offer[];
28
+ /**
29
+ * Present when more remain; pass it as `cursor`.
30
+ */
31
+ nextCursor?: string;
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, MemberAction, MemberActions, Offer, OfferCredentials, RoomLabel, Visibility };
37
+
38
+ /** Trust Task type URI. */
39
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/rooms/offers/list/0.1" as const;
40
+
41
+ /** Stable alias for this specification's request payload shape. */
42
+ export type Payload = VTCRoomsOffersListPayload;
43
+
44
+ /** Trust Task response type URI (request type URI + "#response"). */
45
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/rooms/offers/list/0.1#response" as const;
46
+
47
+ /** Stable alias for this specification's success-response payload shape. */
48
+ export type Response = VTCRoomsOffersListResponsePayload;
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/vtc/rooms/offers/list/0.1",
62
+ "title": "VTC Rooms Offers List — payload",
63
+ "type": "object",
64
+ "additionalProperties": false,
65
+ "properties": {
66
+ "cursor": {
67
+ "type": "string",
68
+ "minLength": 1,
69
+ "maxLength": 1024,
70
+ "description": "Opaque continuation token from a previous page's `nextCursor`."
71
+ },
72
+ "limit": {
73
+ "type": "integer",
74
+ "minimum": 1,
75
+ "maximum": 100,
76
+ "description": "Page size. The community chooses when absent (50 in the reference implementation)."
77
+ },
78
+ "ext": {
79
+ "$ref": "#/$defs/Ext"
80
+ }
81
+ },
82
+ "$defs": {
83
+ "Response": {
84
+ "$anchor": "response",
85
+ "title": "VTC Rooms Offers List — response payload",
86
+ "description": "Success response to vtc/rooms/offers/list. Type https://trusttasks.org/spec/vtc/rooms/offers/list/0.1#response. The offers addressed to the caller, and no one else's.",
87
+ "type": "object",
88
+ "additionalProperties": false,
89
+ "required": [
90
+ "items"
91
+ ],
92
+ "properties": {
93
+ "items": {
94
+ "type": "array",
95
+ "maxItems": 100,
96
+ "items": {
97
+ "$ref": "#/$defs/Offer"
98
+ }
99
+ },
100
+ "nextCursor": {
101
+ "type": "string",
102
+ "minLength": 1,
103
+ "maxLength": 1024,
104
+ "description": "Present when more remain; pass it as `cursor`."
105
+ },
106
+ "ext": {
107
+ "$ref": "#/$defs/Ext"
108
+ }
109
+ }
110
+ },
111
+ "Ext": {
112
+ "title": "Ext",
113
+ "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.",
114
+ "type": "object",
115
+ "minProperties": 1,
116
+ "additionalProperties": true,
117
+ "propertyNames": {
118
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
119
+ }
120
+ },
121
+ "Offer": {
122
+ "title": "Offer",
123
+ "type": "object",
124
+ "additionalProperties": false,
125
+ "required": [
126
+ "roomId",
127
+ "host",
128
+ "label",
129
+ "visibility",
130
+ "actions",
131
+ "validUntil",
132
+ "offeredAt",
133
+ "state",
134
+ "credentials"
135
+ ],
136
+ "description": "A community's offer of admission to a room it owns, as the member it is addressed to sees it.",
137
+ "properties": {
138
+ "roomId": {
139
+ "type": "string",
140
+ "minLength": 1,
141
+ "maxLength": 512
142
+ },
143
+ "host": {
144
+ "type": "string",
145
+ "pattern": "^did:",
146
+ "maxLength": 2048,
147
+ "description": "The room's host: this community."
148
+ },
149
+ "label": {
150
+ "$ref": "#/$defs/RoomLabel"
151
+ },
152
+ "visibility": {
153
+ "$ref": "#/$defs/Visibility"
154
+ },
155
+ "actions": {
156
+ "$ref": "#/$defs/MemberActions"
157
+ },
158
+ "validUntil": {
159
+ "type": "string",
160
+ "format": "date-time"
161
+ },
162
+ "offeredAt": {
163
+ "type": "string",
164
+ "format": "date-time"
165
+ },
166
+ "state": {
167
+ "type": "string",
168
+ "enum": [
169
+ "open",
170
+ "accepted"
171
+ ],
172
+ "description": "`open`: not yet accepted. `accepted`: accepted, kept listed while a repeated accept can still be answered."
173
+ },
174
+ "credentials": {
175
+ "$ref": "#/$defs/OfferCredentials"
176
+ }
177
+ }
178
+ },
179
+ "OfferCredentials": {
180
+ "title": "OfferCredentials",
181
+ "type": "object",
182
+ "additionalProperties": false,
183
+ "required": [
184
+ "invitation",
185
+ "membership",
186
+ "authority"
187
+ ],
188
+ "description": "The three credentials the room issued to the member, serialized as rooms/owner/{invite,issue-membership,issue-authority} return them. None is a secret: each names its subject, and a presentation of it must be signed by that subject. The member stores them in their own key holder's vault.",
189
+ "properties": {
190
+ "invitation": {
191
+ "type": "string",
192
+ "minLength": 1,
193
+ "maxLength": 65536,
194
+ "description": "The Verifiable Invitation Credential. On a sealed tier the member's key holder needs it to mint a KeyPackage (rooms/keys/key-package) and to accept the Welcome (rooms/keys/welcome)."
195
+ },
196
+ "membership": {
197
+ "type": "string",
198
+ "minLength": 1,
199
+ "maxLength": 65536,
200
+ "description": "The Verifiable Membership Credential."
201
+ },
202
+ "authority": {
203
+ "type": "string",
204
+ "minLength": 1,
205
+ "maxLength": 65536,
206
+ "description": "The Verifiable Authority Credential granting `actions` until `validUntil`."
207
+ }
208
+ }
209
+ },
210
+ "MemberActions": {
211
+ "title": "MemberActions",
212
+ "type": "array",
213
+ "minItems": 1,
214
+ "maxItems": 3,
215
+ "uniqueItems": true,
216
+ "items": {
217
+ "$ref": "#/$defs/MemberAction"
218
+ },
219
+ "description": "The actions granted, at least one. An empty list confers nothing rather than everything, and a schema that allowed it would make the more dangerous reading available to a careless consumer."
220
+ },
221
+ "MemberAction": {
222
+ "title": "MemberAction",
223
+ "type": "string",
224
+ "enum": [
225
+ "read",
226
+ "write",
227
+ "curate"
228
+ ],
229
+ "description": "What a member of a community-owned room may do there. `admin` is not among them: minting epochs, admitting and removing members are the community's, as the room's owner, and are exercised through the vtc/rooms/community/* tasks rather than by any member's credential. `curate` is not implied by `write`."
230
+ },
231
+ "RoomLabel": {
232
+ "title": "RoomLabel",
233
+ "type": "string",
234
+ "minLength": 1,
235
+ "maxLength": 128,
236
+ "description": "A name for the room, chosen by an administrator: shown to administrators and to the members a room is offered to. Not part of the room's identity and not sent to the room's host path. MUST NOT carry personal data."
237
+ },
238
+ "Visibility": {
239
+ "title": "Visibility",
240
+ "type": "string",
241
+ "enum": [
242
+ "open",
243
+ "attributed",
244
+ "private"
245
+ ],
246
+ "description": "How much of a room its host can see, fixed at creation and immutable thereafter. `open`: records are cleartext, searchable and fully audited. `attributed`: record content is sealed, and the host still learns which member acted. `private`: content is sealed and membership is presented in zero knowledge, so the host verifies that a member acted without learning which. Immutable because a downgrade cannot un-see cleartext and an upgrade would protect only what came after while presenting as though it protected everything."
247
+ }
248
+ }
249
+ } as const;
250
+
251
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
252
+ export const RESPONSE_PAYLOAD_SCHEMA = {
253
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
254
+ "$ref": "#/$defs/Response",
255
+ "$defs": {
256
+ "Response": {
257
+ "$anchor": "response",
258
+ "title": "VTC Rooms Offers List — response payload",
259
+ "description": "Success response to vtc/rooms/offers/list. Type https://trusttasks.org/spec/vtc/rooms/offers/list/0.1#response. The offers addressed to the caller, and no one else's.",
260
+ "type": "object",
261
+ "additionalProperties": false,
262
+ "required": [
263
+ "items"
264
+ ],
265
+ "properties": {
266
+ "items": {
267
+ "type": "array",
268
+ "maxItems": 100,
269
+ "items": {
270
+ "$ref": "#/$defs/Offer"
271
+ }
272
+ },
273
+ "nextCursor": {
274
+ "type": "string",
275
+ "minLength": 1,
276
+ "maxLength": 1024,
277
+ "description": "Present when more remain; pass it as `cursor`."
278
+ },
279
+ "ext": {
280
+ "$ref": "#/$defs/Ext"
281
+ }
282
+ }
283
+ },
284
+ "Ext": {
285
+ "title": "Ext",
286
+ "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.",
287
+ "type": "object",
288
+ "minProperties": 1,
289
+ "additionalProperties": true,
290
+ "propertyNames": {
291
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
292
+ }
293
+ },
294
+ "Offer": {
295
+ "title": "Offer",
296
+ "type": "object",
297
+ "additionalProperties": false,
298
+ "required": [
299
+ "roomId",
300
+ "host",
301
+ "label",
302
+ "visibility",
303
+ "actions",
304
+ "validUntil",
305
+ "offeredAt",
306
+ "state",
307
+ "credentials"
308
+ ],
309
+ "description": "A community's offer of admission to a room it owns, as the member it is addressed to sees it.",
310
+ "properties": {
311
+ "roomId": {
312
+ "type": "string",
313
+ "minLength": 1,
314
+ "maxLength": 512
315
+ },
316
+ "host": {
317
+ "type": "string",
318
+ "pattern": "^did:",
319
+ "maxLength": 2048,
320
+ "description": "The room's host: this community."
321
+ },
322
+ "label": {
323
+ "$ref": "#/$defs/RoomLabel"
324
+ },
325
+ "visibility": {
326
+ "$ref": "#/$defs/Visibility"
327
+ },
328
+ "actions": {
329
+ "$ref": "#/$defs/MemberActions"
330
+ },
331
+ "validUntil": {
332
+ "type": "string",
333
+ "format": "date-time"
334
+ },
335
+ "offeredAt": {
336
+ "type": "string",
337
+ "format": "date-time"
338
+ },
339
+ "state": {
340
+ "type": "string",
341
+ "enum": [
342
+ "open",
343
+ "accepted"
344
+ ],
345
+ "description": "`open`: not yet accepted. `accepted`: accepted, kept listed while a repeated accept can still be answered."
346
+ },
347
+ "credentials": {
348
+ "$ref": "#/$defs/OfferCredentials"
349
+ }
350
+ }
351
+ },
352
+ "OfferCredentials": {
353
+ "title": "OfferCredentials",
354
+ "type": "object",
355
+ "additionalProperties": false,
356
+ "required": [
357
+ "invitation",
358
+ "membership",
359
+ "authority"
360
+ ],
361
+ "description": "The three credentials the room issued to the member, serialized as rooms/owner/{invite,issue-membership,issue-authority} return them. None is a secret: each names its subject, and a presentation of it must be signed by that subject. The member stores them in their own key holder's vault.",
362
+ "properties": {
363
+ "invitation": {
364
+ "type": "string",
365
+ "minLength": 1,
366
+ "maxLength": 65536,
367
+ "description": "The Verifiable Invitation Credential. On a sealed tier the member's key holder needs it to mint a KeyPackage (rooms/keys/key-package) and to accept the Welcome (rooms/keys/welcome)."
368
+ },
369
+ "membership": {
370
+ "type": "string",
371
+ "minLength": 1,
372
+ "maxLength": 65536,
373
+ "description": "The Verifiable Membership Credential."
374
+ },
375
+ "authority": {
376
+ "type": "string",
377
+ "minLength": 1,
378
+ "maxLength": 65536,
379
+ "description": "The Verifiable Authority Credential granting `actions` until `validUntil`."
380
+ }
381
+ }
382
+ },
383
+ "MemberActions": {
384
+ "title": "MemberActions",
385
+ "type": "array",
386
+ "minItems": 1,
387
+ "maxItems": 3,
388
+ "uniqueItems": true,
389
+ "items": {
390
+ "$ref": "#/$defs/MemberAction"
391
+ },
392
+ "description": "The actions granted, at least one. An empty list confers nothing rather than everything, and a schema that allowed it would make the more dangerous reading available to a careless consumer."
393
+ },
394
+ "MemberAction": {
395
+ "title": "MemberAction",
396
+ "type": "string",
397
+ "enum": [
398
+ "read",
399
+ "write",
400
+ "curate"
401
+ ],
402
+ "description": "What a member of a community-owned room may do there. `admin` is not among them: minting epochs, admitting and removing members are the community's, as the room's owner, and are exercised through the vtc/rooms/community/* tasks rather than by any member's credential. `curate` is not implied by `write`."
403
+ },
404
+ "RoomLabel": {
405
+ "title": "RoomLabel",
406
+ "type": "string",
407
+ "minLength": 1,
408
+ "maxLength": 128,
409
+ "description": "A name for the room, chosen by an administrator: shown to administrators and to the members a room is offered to. Not part of the room's identity and not sent to the room's host path. MUST NOT carry personal data."
410
+ },
411
+ "Visibility": {
412
+ "title": "Visibility",
413
+ "type": "string",
414
+ "enum": [
415
+ "open",
416
+ "attributed",
417
+ "private"
418
+ ],
419
+ "description": "How much of a room its host can see, fixed at creation and immutable thereafter. `open`: records are cleartext, searchable and fully audited. `attributed`: record content is sealed, and the host still learns which member acted. `private`: content is sealed and membership is presented in zero knowledge, so the host verifies that a member acted without learning which. Immutable because a downgrade cannot un-see cleartext and an upgrade would protect only what came after while presenting as though it protected everything."
420
+ }
421
+ }
422
+ } as const;
423
+
424
+ /**
425
+ * SPEC.md §7.2 policy for the request variant, from this specification's
426
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
427
+ * per-specification and cannot be derived from the document alone, and
428
+ * item 2 needs the schema this carries.
429
+ */
430
+ export const SPEC = {
431
+ typeUri: TYPE_URI,
432
+ isBearer: false,
433
+ isProofRequired: true,
434
+ isRecipientRequired: true,
435
+ isIssuedAtRequired: true,
436
+ payloadSchema: PAYLOAD_SCHEMA,
437
+ } as const;
438
+
439
+ /**
440
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
441
+ * tracks the *issuer* party's requirement because a response swaps the
442
+ * parties (§7.3 item 5).
443
+ */
444
+ export const RESPONSE_SPEC = {
445
+ typeUri: RESPONSE_TYPE_URI,
446
+ isBearer: false,
447
+ isProofRequired: true,
448
+ isRecipientRequired: true,
449
+ isIssuedAtRequired: true,
450
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
451
+ } as const;