@openvtc/trust-tasks 0.19.11 → 0.19.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 (42) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +1 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/persona/attribute/put/1.0/payload.d.ts +183 -0
  7. package/dist/persona/attribute/put/1.0/payload.d.ts.map +1 -1
  8. package/dist/persona/attribute/put/1.0/payload.js +96 -0
  9. package/dist/persona/attribute/put/1.0/payload.js.map +1 -1
  10. package/dist/persona/binding/get/1.0/payload.d.ts +33 -5
  11. package/dist/persona/binding/get/1.0/payload.d.ts.map +1 -1
  12. package/dist/persona/binding/get/1.0/payload.js +14 -2
  13. package/dist/persona/binding/get/1.0/payload.js.map +1 -1
  14. package/dist/persona/binding/list/1.0/payload.d.ts +33 -5
  15. package/dist/persona/binding/list/1.0/payload.d.ts.map +1 -1
  16. package/dist/persona/binding/list/1.0/payload.js +14 -2
  17. package/dist/persona/binding/list/1.0/payload.js.map +1 -1
  18. package/dist/persona/binding/set/1.0/payload.d.ts +16 -0
  19. package/dist/persona/binding/set/1.0/payload.d.ts.map +1 -1
  20. package/dist/persona/binding/set/1.0/payload.js +6 -0
  21. package/dist/persona/binding/set/1.0/payload.js.map +1 -1
  22. package/dist/persona/disclosure/history/1.0/payload.d.ts +42 -0
  23. package/dist/persona/disclosure/history/1.0/payload.d.ts.map +1 -1
  24. package/dist/persona/disclosure/history/1.0/payload.js +28 -0
  25. package/dist/persona/disclosure/history/1.0/payload.js.map +1 -1
  26. package/dist/persona/local/binding/set/1.0/payload.d.ts +16 -0
  27. package/dist/persona/local/binding/set/1.0/payload.d.ts.map +1 -1
  28. package/dist/persona/local/binding/set/1.0/payload.js +6 -0
  29. package/dist/persona/local/binding/set/1.0/payload.js.map +1 -1
  30. package/dist/vtc/join-requests/supplement/0.1/payload.d.ts +569 -0
  31. package/dist/vtc/join-requests/supplement/0.1/payload.d.ts.map +1 -0
  32. package/dist/vtc/join-requests/supplement/0.1/payload.js +319 -0
  33. package/dist/vtc/join-requests/supplement/0.1/payload.js.map +1 -0
  34. package/package.json +1 -1
  35. package/src/index.ts +1 -0
  36. package/src/persona/attribute/put/1.0/payload.ts +115 -0
  37. package/src/persona/binding/get/1.0/payload.ts +19 -3
  38. package/src/persona/binding/list/1.0/payload.ts +19 -3
  39. package/src/persona/binding/set/1.0/payload.ts +10 -0
  40. package/src/persona/disclosure/history/1.0/payload.ts +34 -0
  41. package/src/persona/local/binding/set/1.0/payload.ts +10 -0
  42. package/src/vtc/join-requests/supplement/0.1/payload.ts +369 -0
@@ -53,6 +53,12 @@ export interface PersonaDisclosureHistoryResponsePayload {
53
53
  * @maxItems 128
54
54
  */
55
55
  rungs?: ProofRung[];
56
+ /**
57
+ * Positionally aligned with claimTypes: whether the value the verifier received is still what this persona presents in this context. `current` — it is. `changed` — the persona now presents a different value of that type, so the verifier holds an outdated copy; this is what a re-present list is built from. `removed` — the persona no longer presents that type at all; the verifier still holds what it received, because a disclosure cannot be recalled. `unknown` — the maintainer cannot tell, as for a record made before it began fingerprinting disclosed values. Computed at read time by comparing a keyed hash of the disclosed value with the persona's current projection in the same context: no value is stored and nothing above the context boundary is read.
58
+ *
59
+ * @maxItems 128
60
+ */
61
+ claimCurrency?: ("current" | "changed" | "removed" | "unknown")[];
56
62
  purpose?: string;
57
63
  renderer?: string;
58
64
  /**
@@ -189,6 +195,20 @@ export const PAYLOAD_SCHEMA = {
189
195
  },
190
196
  "description": "Positionally aligned with claimTypes. A holder reviewing history needs to know not only what went but how strongly it was hidden — the same claim type at two rungs is two very different disclosures."
191
197
  },
198
+ "claimCurrency": {
199
+ "type": "array",
200
+ "maxItems": 128,
201
+ "items": {
202
+ "type": "string",
203
+ "enum": [
204
+ "current",
205
+ "changed",
206
+ "removed",
207
+ "unknown"
208
+ ]
209
+ },
210
+ "description": "Positionally aligned with claimTypes: whether the value the verifier received is still what this persona presents in this context. `current` — it is. `changed` — the persona now presents a different value of that type, so the verifier holds an outdated copy; this is what a re-present list is built from. `removed` — the persona no longer presents that type at all; the verifier still holds what it received, because a disclosure cannot be recalled. `unknown` — the maintainer cannot tell, as for a record made before it began fingerprinting disclosed values. Computed at read time by comparing a keyed hash of the disclosed value with the persona's current projection in the same context: no value is stored and nothing above the context boundary is read."
211
+ },
192
212
  "purpose": {
193
213
  "type": "string",
194
214
  "maxLength": 512
@@ -319,6 +339,20 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
319
339
  },
320
340
  "description": "Positionally aligned with claimTypes. A holder reviewing history needs to know not only what went but how strongly it was hidden — the same claim type at two rungs is two very different disclosures."
321
341
  },
342
+ "claimCurrency": {
343
+ "type": "array",
344
+ "maxItems": 128,
345
+ "items": {
346
+ "type": "string",
347
+ "enum": [
348
+ "current",
349
+ "changed",
350
+ "removed",
351
+ "unknown"
352
+ ]
353
+ },
354
+ "description": "Positionally aligned with claimTypes: whether the value the verifier received is still what this persona presents in this context. `current` — it is. `changed` — the persona now presents a different value of that type, so the verifier holds an outdated copy; this is what a re-present list is built from. `removed` — the persona no longer presents that type at all; the verifier still holds what it received, because a disclosure cannot be recalled. `unknown` — the maintainer cannot tell, as for a record made before it began fingerprinting disclosed values. Computed at read time by comparing a keyed hash of the disclosed value with the persona's current projection in the same context: no value is stored and nothing above the context boundary is read."
355
+ },
322
356
  "purpose": {
323
357
  "type": "string",
324
358
  "maxLength": 512
@@ -16,6 +16,10 @@ export interface PersonaLocalBindingSetPayload {
16
16
  * A LOCAL profile, or null to clear. A maintainer MUST refuse an identifier that names a pool profile: honouring it would let a context-scoped caller bind the holder's composition, which is the one escalation the whole boundary exists to prevent.
17
17
  */
18
18
  profileId?: Ulid | null;
19
+ /**
20
+ * What this context may call the face the persona wears here, chosen by the holder for this context. Returned by persona/binding/get and persona/binding/list in place of the holder's own name for the face, which is theirs and may say far more than they would tell a context ('the divorce'). Omit to give the context no name at all.
21
+ */
22
+ label?: string;
19
23
  expectedVersion?: ExpectedVersion;
20
24
  ext?: Ext;
21
25
  }
@@ -86,6 +90,12 @@ export const PAYLOAD_SCHEMA = {
86
90
  ],
87
91
  "description": "A LOCAL profile, or null to clear. A maintainer MUST refuse an identifier that names a pool profile: honouring it would let a context-scoped caller bind the holder's composition, which is the one escalation the whole boundary exists to prevent."
88
92
  },
93
+ "label": {
94
+ "type": "string",
95
+ "minLength": 1,
96
+ "maxLength": 128,
97
+ "description": "What this context may call the face the persona wears here, chosen by the holder for this context. Returned by persona/binding/get and persona/binding/list in place of the holder's own name for the face, which is theirs and may say far more than they would tell a context ('the divorce'). Omit to give the context no name at all."
98
+ },
89
99
  "expectedVersion": {
90
100
  "$ref": "#/$defs/ExpectedVersion"
91
101
  },
@@ -0,0 +1,369 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/join-requests/supplement/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext, Verdict, VerdictEffect, VerdictWith } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * The evidence an applicant offers in answer to a community's request for more, against the join request they already have open. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTCJoinRequestsSupplementPayload {
13
+ /**
14
+ * The Verifiable Presentation satisfying the `presentationDefinition` the community returned when it deferred. It REPLACES the presentation on the request rather than adding to it, so it carries everything the community requires and not only the shortfall — see the spec's Definitions.
15
+ */
16
+ vp: {};
17
+ /**
18
+ * The request to supplement. OPTIONAL: an applicant whose submit response was lost never received one, and the consumer then resolves the request from the authenticated applicant. A consumer given this value MUST prefer it over inferring the request from the caller.
19
+ */
20
+ requestId?: string;
21
+ /**
22
+ * An opaque bag the community stores verbatim and this task does not interpret. Replaces the bag on the request on the same terms as `vp`.
23
+ */
24
+ extensions?: {};
25
+ ext?: Ext;
26
+ }
27
+ /**
28
+ * The community's fresh decision on the re-presented evidence. Failures use trust-task-error, not this shape.
29
+ */
30
+ export interface VTCJoinRequestsSupplementResponsePayload {
31
+ /**
32
+ * The request that was re-decided (a UUID). Returned even when the request omitted it, so an applicant who used the id-less form learns which request they answered.
33
+ */
34
+ requestId: string;
35
+ /**
36
+ * What the community decided on the new evidence, in the same shape `vtc/join-requests/submit` returns. MAY be any outcome a submission can produce, including a further request for more evidence and including a refusal.
37
+ */
38
+ verdict: Verdict;
39
+ ext?: Ext;
40
+ }
41
+
42
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
43
+ export type { Ext, Verdict, VerdictEffect, VerdictWith };
44
+
45
+ /** Trust Task type URI. */
46
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/join-requests/supplement/0.1" as const;
47
+
48
+ /** Stable alias for this specification's request payload shape. */
49
+ export type Payload = VTCJoinRequestsSupplementPayload;
50
+
51
+ /** Trust Task response type URI (request type URI + "#response"). */
52
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/join-requests/supplement/0.1#response" as const;
53
+
54
+ /** Stable alias for this specification's success-response payload shape. */
55
+ export type Response = VTCJoinRequestsSupplementResponsePayload;
56
+
57
+ /**
58
+ * This specification's payload schema, as a value.
59
+ *
60
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
61
+ * rather than only as a `.json` file because TypeScript types are erased
62
+ * at runtime: without a schema a consumer has nothing to validate, and
63
+ * every REQUIRED payload member is optional in practice. Cross-file
64
+ * `$ref`s are already inlined, so it needs no resolver.
65
+ */
66
+ export const PAYLOAD_SCHEMA = {
67
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
68
+ "$id": "https://trusttasks.org/spec/vtc/join-requests/supplement/0.1",
69
+ "title": "VTC Join-Requests Supplement — payload",
70
+ "description": "The evidence an applicant offers in answer to a community's request for more, against the join request they already have open. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
71
+ "type": "object",
72
+ "additionalProperties": false,
73
+ "required": [
74
+ "vp"
75
+ ],
76
+ "properties": {
77
+ "vp": {
78
+ "type": "object",
79
+ "description": "The Verifiable Presentation satisfying the `presentationDefinition` the community returned when it deferred. It REPLACES the presentation on the request rather than adding to it, so it carries everything the community requires and not only the shortfall — see the spec's Definitions."
80
+ },
81
+ "requestId": {
82
+ "type": "string",
83
+ "minLength": 1,
84
+ "description": "The request to supplement. OPTIONAL: an applicant whose submit response was lost never received one, and the consumer then resolves the request from the authenticated applicant. A consumer given this value MUST prefer it over inferring the request from the caller."
85
+ },
86
+ "extensions": {
87
+ "type": "object",
88
+ "description": "An opaque bag the community stores verbatim and this task does not interpret. Replaces the bag on the request on the same terms as `vp`."
89
+ },
90
+ "ext": {
91
+ "$ref": "#/$defs/Ext"
92
+ }
93
+ },
94
+ "$defs": {
95
+ "Response": {
96
+ "$anchor": "response",
97
+ "title": "VTC Join-Requests Supplement — response payload",
98
+ "type": "object",
99
+ "additionalProperties": false,
100
+ "required": [
101
+ "requestId",
102
+ "verdict"
103
+ ],
104
+ "description": "The community's fresh decision on the re-presented evidence. Failures use trust-task-error, not this shape.",
105
+ "properties": {
106
+ "requestId": {
107
+ "type": "string",
108
+ "minLength": 1,
109
+ "description": "The request that was re-decided (a UUID). Returned even when the request omitted it, so an applicant who used the id-less form learns which request they answered."
110
+ },
111
+ "verdict": {
112
+ "$ref": "#/$defs/Verdict",
113
+ "description": "What the community decided on the new evidence, in the same shape `vtc/join-requests/submit` returns. MAY be any outcome a submission can produce, including a further request for more evidence and including a refusal."
114
+ },
115
+ "ext": {
116
+ "$ref": "#/$defs/Ext"
117
+ }
118
+ }
119
+ },
120
+ "Ext": {
121
+ "title": "Ext",
122
+ "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.",
123
+ "type": "object",
124
+ "minProperties": 1,
125
+ "additionalProperties": true,
126
+ "propertyNames": {
127
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
128
+ }
129
+ },
130
+ "Verdict": {
131
+ "$anchor": "verdict",
132
+ "title": "Verdict",
133
+ "type": "object",
134
+ "additionalProperties": false,
135
+ "required": [
136
+ "effect",
137
+ "with"
138
+ ],
139
+ "description": "A ceremony decision: the effect, plus its effect-dependent detail.",
140
+ "properties": {
141
+ "effect": {
142
+ "$ref": "#/$defs/VerdictEffect"
143
+ },
144
+ "with": {
145
+ "$ref": "#/$defs/VerdictWith"
146
+ }
147
+ }
148
+ },
149
+ "VerdictWith": {
150
+ "$anchor": "verdictWith",
151
+ "title": "VerdictWith",
152
+ "type": "object",
153
+ "additionalProperties": false,
154
+ "description": "The effect-dependent detail of a verdict.\n\nEvery member is optional at the schema level and which ones are meaningful depends on `effect`: `role` / `obligations` / `bundleRef` on `allow`, `code` / `reason` on `deny`, `queue` / `reason` on `refer`, `needs` / `presentationDefinition` on `requestMore`. The dependency is stated here rather than enforced by `if`/`then` per effect, so that the shape stays a single flat object a generated type can carry without a discriminated union per family — a deliberate trade of schema strictness for implementability, and the reason a consumer MUST branch on `effect` rather than on which members happen to be present.",
155
+ "properties": {
156
+ "role": {
157
+ "type": "string",
158
+ "minLength": 1,
159
+ "description": "The granted local role. `allow` only."
160
+ },
161
+ "obligations": {
162
+ "type": "object",
163
+ "description": "Conditions attached to the grant. `allow` only."
164
+ },
165
+ "bundleRef": {
166
+ "type": "object",
167
+ "description": "Pointer to a sealed credential bundle, added by the community where issuance occurred rather than emitted by the policy. `allow` only."
168
+ },
169
+ "code": {
170
+ "type": "string",
171
+ "minLength": 1,
172
+ "description": "Stable refusal code, safe to branch on. `deny` only."
173
+ },
174
+ "reason": {
175
+ "type": [
176
+ "string",
177
+ "null"
178
+ ],
179
+ "maxLength": 1024,
180
+ "description": "Elaboration in prose, when the decider gave one. `deny` and `refer`."
181
+ },
182
+ "queue": {
183
+ "type": "string",
184
+ "minLength": 1,
185
+ "description": "Which review queue the decision was parked in, so an applicant can be told who now holds it. `refer` only."
186
+ },
187
+ "needs": {
188
+ "type": "array",
189
+ "items": {
190
+ "type": "string",
191
+ "minLength": 1
192
+ },
193
+ "description": "What further evidence is required, named so the applicant can act without a support conversation. `requestMore` only."
194
+ },
195
+ "presentationDefinition": {
196
+ "type": "object",
197
+ "description": "A machine-readable statement of the same request, so a wallet can satisfy it without a human reading `needs`. `requestMore` only."
198
+ }
199
+ }
200
+ },
201
+ "VerdictEffect": {
202
+ "$anchor": "verdictEffect",
203
+ "title": "VerdictEffect",
204
+ "type": "string",
205
+ "enum": [
206
+ "allow",
207
+ "deny",
208
+ "refer",
209
+ "requestMore"
210
+ ],
211
+ "description": "What the policy decided.\n\n`allow` — admitted. `deny` — refused, terminally for this submission. `refer` — parked for a human or quorum decision; the applicant is neither in nor out. `requestMore` — the policy cannot decide yet and names what further evidence it needs.\n\nThe four are not reducible to a pending/decided pair. `refer` and `requestMore` are both 'not decided', but they place the next action with different parties: `refer` waits on the community, `requestMore` waits on the applicant. A consumer that cannot tell them apart cannot tell a user whether to wait or to act."
212
+ }
213
+ }
214
+ } as const;
215
+
216
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
217
+ export const RESPONSE_PAYLOAD_SCHEMA = {
218
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
219
+ "$ref": "#/$defs/Response",
220
+ "$defs": {
221
+ "Response": {
222
+ "$anchor": "response",
223
+ "title": "VTC Join-Requests Supplement — response payload",
224
+ "type": "object",
225
+ "additionalProperties": false,
226
+ "required": [
227
+ "requestId",
228
+ "verdict"
229
+ ],
230
+ "description": "The community's fresh decision on the re-presented evidence. Failures use trust-task-error, not this shape.",
231
+ "properties": {
232
+ "requestId": {
233
+ "type": "string",
234
+ "minLength": 1,
235
+ "description": "The request that was re-decided (a UUID). Returned even when the request omitted it, so an applicant who used the id-less form learns which request they answered."
236
+ },
237
+ "verdict": {
238
+ "$ref": "#/$defs/Verdict",
239
+ "description": "What the community decided on the new evidence, in the same shape `vtc/join-requests/submit` returns. MAY be any outcome a submission can produce, including a further request for more evidence and including a refusal."
240
+ },
241
+ "ext": {
242
+ "$ref": "#/$defs/Ext"
243
+ }
244
+ }
245
+ },
246
+ "Ext": {
247
+ "title": "Ext",
248
+ "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.",
249
+ "type": "object",
250
+ "minProperties": 1,
251
+ "additionalProperties": true,
252
+ "propertyNames": {
253
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
254
+ }
255
+ },
256
+ "Verdict": {
257
+ "$anchor": "verdict",
258
+ "title": "Verdict",
259
+ "type": "object",
260
+ "additionalProperties": false,
261
+ "required": [
262
+ "effect",
263
+ "with"
264
+ ],
265
+ "description": "A ceremony decision: the effect, plus its effect-dependent detail.",
266
+ "properties": {
267
+ "effect": {
268
+ "$ref": "#/$defs/VerdictEffect"
269
+ },
270
+ "with": {
271
+ "$ref": "#/$defs/VerdictWith"
272
+ }
273
+ }
274
+ },
275
+ "VerdictWith": {
276
+ "$anchor": "verdictWith",
277
+ "title": "VerdictWith",
278
+ "type": "object",
279
+ "additionalProperties": false,
280
+ "description": "The effect-dependent detail of a verdict.\n\nEvery member is optional at the schema level and which ones are meaningful depends on `effect`: `role` / `obligations` / `bundleRef` on `allow`, `code` / `reason` on `deny`, `queue` / `reason` on `refer`, `needs` / `presentationDefinition` on `requestMore`. The dependency is stated here rather than enforced by `if`/`then` per effect, so that the shape stays a single flat object a generated type can carry without a discriminated union per family — a deliberate trade of schema strictness for implementability, and the reason a consumer MUST branch on `effect` rather than on which members happen to be present.",
281
+ "properties": {
282
+ "role": {
283
+ "type": "string",
284
+ "minLength": 1,
285
+ "description": "The granted local role. `allow` only."
286
+ },
287
+ "obligations": {
288
+ "type": "object",
289
+ "description": "Conditions attached to the grant. `allow` only."
290
+ },
291
+ "bundleRef": {
292
+ "type": "object",
293
+ "description": "Pointer to a sealed credential bundle, added by the community where issuance occurred rather than emitted by the policy. `allow` only."
294
+ },
295
+ "code": {
296
+ "type": "string",
297
+ "minLength": 1,
298
+ "description": "Stable refusal code, safe to branch on. `deny` only."
299
+ },
300
+ "reason": {
301
+ "type": [
302
+ "string",
303
+ "null"
304
+ ],
305
+ "maxLength": 1024,
306
+ "description": "Elaboration in prose, when the decider gave one. `deny` and `refer`."
307
+ },
308
+ "queue": {
309
+ "type": "string",
310
+ "minLength": 1,
311
+ "description": "Which review queue the decision was parked in, so an applicant can be told who now holds it. `refer` only."
312
+ },
313
+ "needs": {
314
+ "type": "array",
315
+ "items": {
316
+ "type": "string",
317
+ "minLength": 1
318
+ },
319
+ "description": "What further evidence is required, named so the applicant can act without a support conversation. `requestMore` only."
320
+ },
321
+ "presentationDefinition": {
322
+ "type": "object",
323
+ "description": "A machine-readable statement of the same request, so a wallet can satisfy it without a human reading `needs`. `requestMore` only."
324
+ }
325
+ }
326
+ },
327
+ "VerdictEffect": {
328
+ "$anchor": "verdictEffect",
329
+ "title": "VerdictEffect",
330
+ "type": "string",
331
+ "enum": [
332
+ "allow",
333
+ "deny",
334
+ "refer",
335
+ "requestMore"
336
+ ],
337
+ "description": "What the policy decided.\n\n`allow` — admitted. `deny` — refused, terminally for this submission. `refer` — parked for a human or quorum decision; the applicant is neither in nor out. `requestMore` — the policy cannot decide yet and names what further evidence it needs.\n\nThe four are not reducible to a pending/decided pair. `refer` and `requestMore` are both 'not decided', but they place the next action with different parties: `refer` waits on the community, `requestMore` waits on the applicant. A consumer that cannot tell them apart cannot tell a user whether to wait or to act."
338
+ }
339
+ }
340
+ } as const;
341
+
342
+ /**
343
+ * SPEC.md §7.2 policy for the request variant, from this specification's
344
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
345
+ * per-specification and cannot be derived from the document alone, and
346
+ * item 2 needs the schema this carries.
347
+ */
348
+ export const SPEC = {
349
+ typeUri: TYPE_URI,
350
+ isBearer: false,
351
+ isProofRequired: true,
352
+ isRecipientRequired: true,
353
+ isIssuedAtRequired: true,
354
+ payloadSchema: PAYLOAD_SCHEMA,
355
+ } as const;
356
+
357
+ /**
358
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
359
+ * tracks the *issuer* party's requirement because a response swaps the
360
+ * parties (§7.3 item 5).
361
+ */
362
+ export const RESPONSE_SPEC = {
363
+ typeUri: RESPONSE_TYPE_URI,
364
+ isBearer: false,
365
+ isProofRequired: false,
366
+ isRecipientRequired: true,
367
+ isIssuedAtRequired: true,
368
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
369
+ } as const;