@openvtc/trust-tasks 0.19.18 → 0.19.20

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 (78) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/_shared/components.d.ts +38 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +3 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +3 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/persona/_shared/0.1/persona-record.d.ts +1 -1
  9. package/dist/persona/_shared/0.1/persona-record.d.ts.map +1 -1
  10. package/dist/persona/attribute/list/1.0/payload.d.ts +124 -4
  11. package/dist/persona/attribute/list/1.0/payload.d.ts.map +1 -1
  12. package/dist/persona/attribute/list/1.0/payload.js +72 -2
  13. package/dist/persona/attribute/list/1.0/payload.js.map +1 -1
  14. package/dist/persona/attribute/put/1.0/payload.d.ts +110 -4
  15. package/dist/persona/attribute/put/1.0/payload.d.ts.map +1 -1
  16. package/dist/persona/attribute/put/1.0/payload.js +62 -2
  17. package/dist/persona/attribute/put/1.0/payload.js.map +1 -1
  18. package/dist/persona/binding/set/1.0/payload.d.ts +6 -6
  19. package/dist/persona/binding/set/1.0/payload.d.ts.map +1 -1
  20. package/dist/persona/binding/set/1.0/payload.js +2 -3
  21. package/dist/persona/binding/set/1.0/payload.js.map +1 -1
  22. package/dist/persona/contact/get/1.0/payload.d.ts +84 -4
  23. package/dist/persona/contact/get/1.0/payload.d.ts.map +1 -1
  24. package/dist/persona/contact/get/1.0/payload.js +52 -2
  25. package/dist/persona/contact/get/1.0/payload.js.map +1 -1
  26. package/dist/persona/contact/put/1.0/payload.d.ts +84 -4
  27. package/dist/persona/contact/put/1.0/payload.d.ts.map +1 -1
  28. package/dist/persona/contact/put/1.0/payload.js +52 -2
  29. package/dist/persona/contact/put/1.0/payload.js.map +1 -1
  30. package/dist/persona/disclosure/preview/1.0/payload.d.ts +5 -5
  31. package/dist/persona/disclosure/preview/1.0/payload.d.ts.map +1 -1
  32. package/dist/persona/disclosure/preview/1.0/payload.js +4 -2
  33. package/dist/persona/disclosure/preview/1.0/payload.js.map +1 -1
  34. package/dist/persona/profile/compose/1.0/payload.d.ts +31 -3
  35. package/dist/persona/profile/compose/1.0/payload.d.ts.map +1 -1
  36. package/dist/persona/profile/compose/1.0/payload.js +11 -1
  37. package/dist/persona/profile/compose/1.0/payload.js.map +1 -1
  38. package/dist/persona/profile/get/1.0/payload.d.ts +230 -6
  39. package/dist/persona/profile/get/1.0/payload.d.ts.map +1 -1
  40. package/dist/persona/profile/get/1.0/payload.js +140 -2
  41. package/dist/persona/profile/get/1.0/payload.js.map +1 -1
  42. package/dist/persona/profile/list/1.0/payload.d.ts +230 -6
  43. package/dist/persona/profile/list/1.0/payload.d.ts.map +1 -1
  44. package/dist/persona/profile/list/1.0/payload.js +140 -2
  45. package/dist/persona/profile/list/1.0/payload.js.map +1 -1
  46. package/dist/persona/profile/put/1.0/payload.d.ts +230 -6
  47. package/dist/persona/profile/put/1.0/payload.d.ts.map +1 -1
  48. package/dist/persona/profile/put/1.0/payload.js +138 -2
  49. package/dist/persona/profile/put/1.0/payload.js.map +1 -1
  50. package/dist/persona/profile/timeline/1.0/payload.d.ts +588 -0
  51. package/dist/persona/profile/timeline/1.0/payload.d.ts.map +1 -0
  52. package/dist/persona/profile/timeline/1.0/payload.js +322 -0
  53. package/dist/persona/profile/timeline/1.0/payload.js.map +1 -0
  54. package/dist/persona/profile/usage/1.0/payload.d.ts +533 -0
  55. package/dist/persona/profile/usage/1.0/payload.d.ts.map +1 -0
  56. package/dist/persona/profile/usage/1.0/payload.js +302 -0
  57. package/dist/persona/profile/usage/1.0/payload.js.map +1 -0
  58. package/dist/vtc/invitations/deliver/0.1/payload.d.ts +318 -0
  59. package/dist/vtc/invitations/deliver/0.1/payload.d.ts.map +1 -0
  60. package/dist/vtc/invitations/deliver/0.1/payload.js +183 -0
  61. package/dist/vtc/invitations/deliver/0.1/payload.js.map +1 -0
  62. package/package.json +1 -1
  63. package/src/_shared/components.ts +41 -0
  64. package/src/index.ts +3 -0
  65. package/src/persona/_shared/0.1/persona-record.ts +1 -1
  66. package/src/persona/attribute/list/1.0/payload.ts +72 -2
  67. package/src/persona/attribute/put/1.0/payload.ts +68 -2
  68. package/src/persona/binding/set/1.0/payload.ts +4 -5
  69. package/src/persona/contact/get/1.0/payload.ts +52 -2
  70. package/src/persona/contact/put/1.0/payload.ts +52 -2
  71. package/src/persona/disclosure/preview/1.0/payload.ts +5 -3
  72. package/src/persona/profile/compose/1.0/payload.ts +20 -2
  73. package/src/persona/profile/get/1.0/payload.ts +142 -4
  74. package/src/persona/profile/list/1.0/payload.ts +142 -4
  75. package/src/persona/profile/put/1.0/payload.ts +144 -4
  76. package/src/persona/profile/timeline/1.0/payload.ts +402 -0
  77. package/src/persona/profile/usage/1.0/payload.ts +354 -0
  78. package/src/vtc/invitations/deliver/0.1/payload.ts +234 -0
@@ -0,0 +1,302 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/persona/profile/usage/1.0/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/persona/profile/usage/1.0";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/persona/profile/usage/1.0#response";
9
+ /**
10
+ * This specification's payload schema, as a value.
11
+ *
12
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
13
+ * rather than only as a `.json` file because TypeScript types are erased
14
+ * at runtime: without a schema a consumer has nothing to validate, and
15
+ * every REQUIRED payload member is optional in practice. Cross-file
16
+ * `$ref`s are already inlined, so it needs no resolver.
17
+ */
18
+ export const PAYLOAD_SCHEMA = {
19
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
20
+ "$id": "https://trusttasks.org/spec/persona/profile/usage/1.0",
21
+ "title": "Persona Profile Usage — payload",
22
+ "description": "Where one face is worn now: every context and persona wearing it. The answer a holder needs to audit a face's reach, and to see the contexts a face is part of before changing or retiring it.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "profileId"
27
+ ],
28
+ "properties": {
29
+ "profileId": {
30
+ "$ref": "#/$defs/Ulid"
31
+ },
32
+ "contextId": {
33
+ "type": "string",
34
+ "minLength": 1,
35
+ "description": "The context of a context-local face. Omit for a pool face."
36
+ },
37
+ "ext": {
38
+ "$ref": "#/$defs/Ext"
39
+ }
40
+ },
41
+ "$defs": {
42
+ "Response": {
43
+ "$anchor": "response",
44
+ "title": "Persona Profile Usage — response payload",
45
+ "description": "Success response to persona/profile/usage. Type https://trusttasks.org/spec/persona/profile/usage/1.0#response. An empty `usage` is a face worn nowhere — a normal state, not an error.",
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "required": [
49
+ "profileId",
50
+ "usage"
51
+ ],
52
+ "properties": {
53
+ "profileId": {
54
+ "$ref": "#/$defs/Ulid"
55
+ },
56
+ "reach": {
57
+ "$ref": "#/$defs/FaceReach",
58
+ "description": "The face's reach, so the answer and the allow-list it is audited against arrive together. Absent for a context-local face."
59
+ },
60
+ "usage": {
61
+ "type": "array",
62
+ "maxItems": 1024,
63
+ "items": {
64
+ "type": "object",
65
+ "additionalProperties": false,
66
+ "required": [
67
+ "contextId",
68
+ "personaDid",
69
+ "boundAt"
70
+ ],
71
+ "properties": {
72
+ "contextId": {
73
+ "type": "string",
74
+ "minLength": 1
75
+ },
76
+ "personaDid": {
77
+ "type": "string",
78
+ "minLength": 1
79
+ },
80
+ "boundAt": {
81
+ "type": "string",
82
+ "format": "date-time"
83
+ },
84
+ "until": {
85
+ "type": "string",
86
+ "format": "date-time",
87
+ "description": "When wearing it here ends on its own. Absent when it lasts until changed."
88
+ }
89
+ }
90
+ }
91
+ },
92
+ "ext": {
93
+ "$ref": "#/$defs/Ext"
94
+ }
95
+ }
96
+ },
97
+ "Ext": {
98
+ "title": "Ext",
99
+ "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.",
100
+ "type": "object",
101
+ "minProperties": 1,
102
+ "additionalProperties": true,
103
+ "propertyNames": {
104
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
105
+ }
106
+ },
107
+ "FaceReach": {
108
+ "title": "FaceReach",
109
+ "description": "Where a pool face may be worn. `anywhere` is the default and what an absent member means. `only` names the contexts it may be worn in, and a maintainer MUST refuse to wear it in any other (persona/binding/set `outsideReach`).\n\nA tagged object rather than a bare list of contexts, deliberately: an empty list has been read as both 'unrestricted' and 'nowhere' in this family's neighbours, and a shape where the two cannot be confused is worth more than one where they must be remembered. So `only` requires at least one context, and 'nowhere' is not a reach — it is a retired face.\n\nA context-local face has no reach: it lives in its context and is worn there by construction.",
110
+ "oneOf": [
111
+ {
112
+ "type": "object",
113
+ "additionalProperties": false,
114
+ "required": [
115
+ "kind"
116
+ ],
117
+ "properties": {
118
+ "kind": {
119
+ "const": "anywhere"
120
+ }
121
+ }
122
+ },
123
+ {
124
+ "type": "object",
125
+ "additionalProperties": false,
126
+ "required": [
127
+ "kind",
128
+ "contextIds"
129
+ ],
130
+ "properties": {
131
+ "kind": {
132
+ "const": "only"
133
+ },
134
+ "contextIds": {
135
+ "type": "array",
136
+ "minItems": 1,
137
+ "maxItems": 256,
138
+ "uniqueItems": true,
139
+ "items": {
140
+ "type": "string",
141
+ "minLength": 1
142
+ }
143
+ }
144
+ }
145
+ }
146
+ ]
147
+ },
148
+ "Ulid": {
149
+ "title": "Ulid",
150
+ "description": "A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.",
151
+ "type": "string",
152
+ "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
153
+ }
154
+ }
155
+ };
156
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
157
+ export const RESPONSE_PAYLOAD_SCHEMA = {
158
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
159
+ "$ref": "#/$defs/Response",
160
+ "$defs": {
161
+ "Response": {
162
+ "$anchor": "response",
163
+ "title": "Persona Profile Usage — response payload",
164
+ "description": "Success response to persona/profile/usage. Type https://trusttasks.org/spec/persona/profile/usage/1.0#response. An empty `usage` is a face worn nowhere — a normal state, not an error.",
165
+ "type": "object",
166
+ "additionalProperties": false,
167
+ "required": [
168
+ "profileId",
169
+ "usage"
170
+ ],
171
+ "properties": {
172
+ "profileId": {
173
+ "$ref": "#/$defs/Ulid"
174
+ },
175
+ "reach": {
176
+ "$ref": "#/$defs/FaceReach",
177
+ "description": "The face's reach, so the answer and the allow-list it is audited against arrive together. Absent for a context-local face."
178
+ },
179
+ "usage": {
180
+ "type": "array",
181
+ "maxItems": 1024,
182
+ "items": {
183
+ "type": "object",
184
+ "additionalProperties": false,
185
+ "required": [
186
+ "contextId",
187
+ "personaDid",
188
+ "boundAt"
189
+ ],
190
+ "properties": {
191
+ "contextId": {
192
+ "type": "string",
193
+ "minLength": 1
194
+ },
195
+ "personaDid": {
196
+ "type": "string",
197
+ "minLength": 1
198
+ },
199
+ "boundAt": {
200
+ "type": "string",
201
+ "format": "date-time"
202
+ },
203
+ "until": {
204
+ "type": "string",
205
+ "format": "date-time",
206
+ "description": "When wearing it here ends on its own. Absent when it lasts until changed."
207
+ }
208
+ }
209
+ }
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
+ "FaceReach": {
227
+ "title": "FaceReach",
228
+ "description": "Where a pool face may be worn. `anywhere` is the default and what an absent member means. `only` names the contexts it may be worn in, and a maintainer MUST refuse to wear it in any other (persona/binding/set `outsideReach`).\n\nA tagged object rather than a bare list of contexts, deliberately: an empty list has been read as both 'unrestricted' and 'nowhere' in this family's neighbours, and a shape where the two cannot be confused is worth more than one where they must be remembered. So `only` requires at least one context, and 'nowhere' is not a reach — it is a retired face.\n\nA context-local face has no reach: it lives in its context and is worn there by construction.",
229
+ "oneOf": [
230
+ {
231
+ "type": "object",
232
+ "additionalProperties": false,
233
+ "required": [
234
+ "kind"
235
+ ],
236
+ "properties": {
237
+ "kind": {
238
+ "const": "anywhere"
239
+ }
240
+ }
241
+ },
242
+ {
243
+ "type": "object",
244
+ "additionalProperties": false,
245
+ "required": [
246
+ "kind",
247
+ "contextIds"
248
+ ],
249
+ "properties": {
250
+ "kind": {
251
+ "const": "only"
252
+ },
253
+ "contextIds": {
254
+ "type": "array",
255
+ "minItems": 1,
256
+ "maxItems": 256,
257
+ "uniqueItems": true,
258
+ "items": {
259
+ "type": "string",
260
+ "minLength": 1
261
+ }
262
+ }
263
+ }
264
+ }
265
+ ]
266
+ },
267
+ "Ulid": {
268
+ "title": "Ulid",
269
+ "description": "A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.",
270
+ "type": "string",
271
+ "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
272
+ }
273
+ }
274
+ };
275
+ /**
276
+ * SPEC.md §7.2 policy for the request variant, from this specification's
277
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
278
+ * per-specification and cannot be derived from the document alone, and
279
+ * item 2 needs the schema this carries.
280
+ */
281
+ export const SPEC = {
282
+ typeUri: TYPE_URI,
283
+ isBearer: false,
284
+ isProofRequired: false,
285
+ isRecipientRequired: true,
286
+ isIssuedAtRequired: false,
287
+ payloadSchema: PAYLOAD_SCHEMA,
288
+ };
289
+ /**
290
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
291
+ * tracks the *issuer* party's requirement because a response swaps the
292
+ * parties (§7.3 item 5).
293
+ */
294
+ export const RESPONSE_SPEC = {
295
+ typeUri: RESPONSE_TYPE_URI,
296
+ isBearer: false,
297
+ isProofRequired: false,
298
+ isRecipientRequired: true,
299
+ isIssuedAtRequired: false,
300
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
301
+ };
302
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/persona/profile/usage/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA2CH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,uDAAgE,CAAC;AAKzF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,gEAAyE,CAAC;AAK3G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,uDAAuD;IAC9D,OAAO,EAAE,iCAAiC;IAC1C,aAAa,EAAE,gMAAgM;IAC/M,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,WAAW;KACZ;IACD,YAAY,EAAE;QACZ,WAAW,EAAE;YACX,MAAM,EAAE,cAAc;SACvB;QACD,WAAW,EAAE;YACX,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,4DAA4D;SAC5E;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;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,EAAE;4BACN,OAAO,EAAE,MAAM;yBAChB;wBACD,YAAY,EAAE;4BACZ,MAAM,EAAE,OAAO;4BACf,UAAU,EAAE,CAAC;4BACb,UAAU,EAAE,GAAG;4BACf,aAAa,EAAE,IAAI;4BACnB,OAAO,EAAE;gCACP,MAAM,EAAE,QAAQ;gCAChB,WAAW,EAAE,CAAC;6BACf;yBACF;qBACF;iBACF;aACF;SACF;QACD,MAAM,EAAE;YACN,OAAO,EAAE,MAAM;YACf,aAAa,EAAE,waAAwa;YACvb,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,0BAA0B;SACtC;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
@@ -0,0 +1,318 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/invitations/deliver/0.1/payload.schema.json
4
+ */
5
+ import type { Ext } from "../../../../_shared/components.js";
6
+ /**
7
+ * Deliver an issued invitation to the DID it admits: push an offer to that DID, or return the offer for a QR code. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface VTCInvitationsDeliverPayload {
10
+ /**
11
+ * Identifier of the invitation to deliver, as `vtc/invitations/list` reports it.
12
+ */
13
+ id: string;
14
+ /**
15
+ * `message`: the community sends a `credential-exchange/offer` to the invited DID over a transport that DID advertises. `offer`: the community returns the offer, for the inviter to hand over out of band — typically as a QR code.
16
+ */
17
+ channel: "message" | "offer";
18
+ ext?: Ext;
19
+ }
20
+ export interface VTCInvitationsDeliverResponsePayload {
21
+ /**
22
+ * The invitation's identifier, echoed.
23
+ */
24
+ id: string;
25
+ /**
26
+ * The channel used, echoed.
27
+ */
28
+ channel: "message" | "offer";
29
+ /**
30
+ * Present exactly when `channel` is `offer`: an OID4VCI Credential Offer object, carried verbatim, whose pre-authorized code redeems only for the invited DID. Its members are OID4VCI's and are deliberately not re-specified here.
31
+ */
32
+ offer?: {};
33
+ /**
34
+ * When this delivery's offer lapses. Never later than the invitation's own expiry.
35
+ */
36
+ expiresAt: string;
37
+ ext?: Ext;
38
+ }
39
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
40
+ export type { Ext };
41
+ /** Trust Task type URI. */
42
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/invitations/deliver/0.1";
43
+ /** Stable alias for this specification's request payload shape. */
44
+ export type Payload = VTCInvitationsDeliverPayload;
45
+ /** Trust Task response type URI (request type URI + "#response"). */
46
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/invitations/deliver/0.1#response";
47
+ /** Stable alias for this specification's success-response payload shape. */
48
+ export type Response = VTCInvitationsDeliverResponsePayload;
49
+ /**
50
+ * This specification's payload schema, as a value.
51
+ *
52
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
53
+ * rather than only as a `.json` file because TypeScript types are erased
54
+ * at runtime: without a schema a consumer has nothing to validate, and
55
+ * every REQUIRED payload member is optional in practice. Cross-file
56
+ * `$ref`s are already inlined, so it needs no resolver.
57
+ */
58
+ export declare const PAYLOAD_SCHEMA: {
59
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
60
+ readonly $id: "https://trusttasks.org/spec/vtc/invitations/deliver/0.1";
61
+ readonly title: "VTC Invitations Deliver — payload";
62
+ readonly description: "Deliver an issued invitation to the DID it admits: push an offer to that DID, or return the offer for a QR code. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
63
+ readonly type: "object";
64
+ readonly additionalProperties: false;
65
+ readonly required: readonly ["id", "channel"];
66
+ readonly properties: {
67
+ readonly id: {
68
+ readonly type: "string";
69
+ readonly minLength: 1;
70
+ readonly maxLength: 256;
71
+ readonly description: "Identifier of the invitation to deliver, as `vtc/invitations/list` reports it.";
72
+ };
73
+ readonly channel: {
74
+ readonly type: "string";
75
+ readonly enum: readonly ["message", "offer"];
76
+ readonly description: "`message`: the community sends a `credential-exchange/offer` to the invited DID over a transport that DID advertises. `offer`: the community returns the offer, for the inviter to hand over out of band — typically as a QR code.";
77
+ };
78
+ readonly ext: {
79
+ readonly $ref: "#/$defs/Ext";
80
+ };
81
+ };
82
+ readonly $defs: {
83
+ readonly Response: {
84
+ readonly $anchor: "response";
85
+ readonly title: "VTC Invitations Deliver — response payload";
86
+ readonly type: "object";
87
+ readonly additionalProperties: false;
88
+ readonly required: readonly ["id", "channel", "expiresAt"];
89
+ readonly properties: {
90
+ readonly id: {
91
+ readonly type: "string";
92
+ readonly minLength: 1;
93
+ readonly maxLength: 256;
94
+ readonly description: "The invitation's identifier, echoed.";
95
+ };
96
+ readonly channel: {
97
+ readonly type: "string";
98
+ readonly enum: readonly ["message", "offer"];
99
+ readonly description: "The channel used, echoed.";
100
+ };
101
+ readonly offer: {
102
+ readonly type: "object";
103
+ readonly description: "Present exactly when `channel` is `offer`: an OID4VCI Credential Offer object, carried verbatim, whose pre-authorized code redeems only for the invited DID. Its members are OID4VCI's and are deliberately not re-specified here.";
104
+ };
105
+ readonly expiresAt: {
106
+ readonly type: "string";
107
+ readonly format: "date-time";
108
+ readonly description: "When this delivery's offer lapses. Never later than the invitation's own expiry.";
109
+ };
110
+ readonly ext: {
111
+ readonly $ref: "#/$defs/Ext";
112
+ };
113
+ };
114
+ };
115
+ readonly Ext: {
116
+ readonly title: "Ext";
117
+ readonly 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.";
118
+ readonly type: "object";
119
+ readonly minProperties: 1;
120
+ readonly additionalProperties: true;
121
+ readonly propertyNames: {
122
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
123
+ };
124
+ };
125
+ };
126
+ };
127
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
128
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
129
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
130
+ readonly $ref: "#/$defs/Response";
131
+ readonly $defs: {
132
+ readonly Response: {
133
+ readonly $anchor: "response";
134
+ readonly title: "VTC Invitations Deliver — response payload";
135
+ readonly type: "object";
136
+ readonly additionalProperties: false;
137
+ readonly required: readonly ["id", "channel", "expiresAt"];
138
+ readonly properties: {
139
+ readonly id: {
140
+ readonly type: "string";
141
+ readonly minLength: 1;
142
+ readonly maxLength: 256;
143
+ readonly description: "The invitation's identifier, echoed.";
144
+ };
145
+ readonly channel: {
146
+ readonly type: "string";
147
+ readonly enum: readonly ["message", "offer"];
148
+ readonly description: "The channel used, echoed.";
149
+ };
150
+ readonly offer: {
151
+ readonly type: "object";
152
+ readonly description: "Present exactly when `channel` is `offer`: an OID4VCI Credential Offer object, carried verbatim, whose pre-authorized code redeems only for the invited DID. Its members are OID4VCI's and are deliberately not re-specified here.";
153
+ };
154
+ readonly expiresAt: {
155
+ readonly type: "string";
156
+ readonly format: "date-time";
157
+ readonly description: "When this delivery's offer lapses. Never later than the invitation's own expiry.";
158
+ };
159
+ readonly ext: {
160
+ readonly $ref: "#/$defs/Ext";
161
+ };
162
+ };
163
+ };
164
+ readonly Ext: {
165
+ readonly title: "Ext";
166
+ readonly 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
+ readonly type: "object";
168
+ readonly minProperties: 1;
169
+ readonly additionalProperties: true;
170
+ readonly propertyNames: {
171
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
172
+ };
173
+ };
174
+ };
175
+ };
176
+ /**
177
+ * SPEC.md §7.2 policy for the request variant, from this specification's
178
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
179
+ * per-specification and cannot be derived from the document alone, and
180
+ * item 2 needs the schema this carries.
181
+ */
182
+ export declare const SPEC: {
183
+ readonly typeUri: "https://trusttasks.org/spec/vtc/invitations/deliver/0.1";
184
+ readonly isBearer: false;
185
+ readonly isProofRequired: true;
186
+ readonly isRecipientRequired: true;
187
+ readonly isIssuedAtRequired: true;
188
+ readonly payloadSchema: {
189
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
190
+ readonly $id: "https://trusttasks.org/spec/vtc/invitations/deliver/0.1";
191
+ readonly title: "VTC Invitations Deliver — payload";
192
+ readonly description: "Deliver an issued invitation to the DID it admits: push an offer to that DID, or return the offer for a QR code. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
193
+ readonly type: "object";
194
+ readonly additionalProperties: false;
195
+ readonly required: readonly ["id", "channel"];
196
+ readonly properties: {
197
+ readonly id: {
198
+ readonly type: "string";
199
+ readonly minLength: 1;
200
+ readonly maxLength: 256;
201
+ readonly description: "Identifier of the invitation to deliver, as `vtc/invitations/list` reports it.";
202
+ };
203
+ readonly channel: {
204
+ readonly type: "string";
205
+ readonly enum: readonly ["message", "offer"];
206
+ readonly description: "`message`: the community sends a `credential-exchange/offer` to the invited DID over a transport that DID advertises. `offer`: the community returns the offer, for the inviter to hand over out of band — typically as a QR code.";
207
+ };
208
+ readonly ext: {
209
+ readonly $ref: "#/$defs/Ext";
210
+ };
211
+ };
212
+ readonly $defs: {
213
+ readonly Response: {
214
+ readonly $anchor: "response";
215
+ readonly title: "VTC Invitations Deliver — response payload";
216
+ readonly type: "object";
217
+ readonly additionalProperties: false;
218
+ readonly required: readonly ["id", "channel", "expiresAt"];
219
+ readonly properties: {
220
+ readonly id: {
221
+ readonly type: "string";
222
+ readonly minLength: 1;
223
+ readonly maxLength: 256;
224
+ readonly description: "The invitation's identifier, echoed.";
225
+ };
226
+ readonly channel: {
227
+ readonly type: "string";
228
+ readonly enum: readonly ["message", "offer"];
229
+ readonly description: "The channel used, echoed.";
230
+ };
231
+ readonly offer: {
232
+ readonly type: "object";
233
+ readonly description: "Present exactly when `channel` is `offer`: an OID4VCI Credential Offer object, carried verbatim, whose pre-authorized code redeems only for the invited DID. Its members are OID4VCI's and are deliberately not re-specified here.";
234
+ };
235
+ readonly expiresAt: {
236
+ readonly type: "string";
237
+ readonly format: "date-time";
238
+ readonly description: "When this delivery's offer lapses. Never later than the invitation's own expiry.";
239
+ };
240
+ readonly ext: {
241
+ readonly $ref: "#/$defs/Ext";
242
+ };
243
+ };
244
+ };
245
+ readonly Ext: {
246
+ readonly title: "Ext";
247
+ readonly 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.";
248
+ readonly type: "object";
249
+ readonly minProperties: 1;
250
+ readonly additionalProperties: true;
251
+ readonly propertyNames: {
252
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
253
+ };
254
+ };
255
+ };
256
+ };
257
+ };
258
+ /**
259
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
260
+ * tracks the *issuer* party's requirement because a response swaps the
261
+ * parties (§7.3 item 5).
262
+ */
263
+ export declare const RESPONSE_SPEC: {
264
+ readonly typeUri: "https://trusttasks.org/spec/vtc/invitations/deliver/0.1#response";
265
+ readonly isBearer: false;
266
+ readonly isProofRequired: true;
267
+ readonly isRecipientRequired: true;
268
+ readonly isIssuedAtRequired: true;
269
+ readonly payloadSchema: {
270
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
271
+ readonly $ref: "#/$defs/Response";
272
+ readonly $defs: {
273
+ readonly Response: {
274
+ readonly $anchor: "response";
275
+ readonly title: "VTC Invitations Deliver — response payload";
276
+ readonly type: "object";
277
+ readonly additionalProperties: false;
278
+ readonly required: readonly ["id", "channel", "expiresAt"];
279
+ readonly properties: {
280
+ readonly id: {
281
+ readonly type: "string";
282
+ readonly minLength: 1;
283
+ readonly maxLength: 256;
284
+ readonly description: "The invitation's identifier, echoed.";
285
+ };
286
+ readonly channel: {
287
+ readonly type: "string";
288
+ readonly enum: readonly ["message", "offer"];
289
+ readonly description: "The channel used, echoed.";
290
+ };
291
+ readonly offer: {
292
+ readonly type: "object";
293
+ readonly description: "Present exactly when `channel` is `offer`: an OID4VCI Credential Offer object, carried verbatim, whose pre-authorized code redeems only for the invited DID. Its members are OID4VCI's and are deliberately not re-specified here.";
294
+ };
295
+ readonly expiresAt: {
296
+ readonly type: "string";
297
+ readonly format: "date-time";
298
+ readonly description: "When this delivery's offer lapses. Never later than the invitation's own expiry.";
299
+ };
300
+ readonly ext: {
301
+ readonly $ref: "#/$defs/Ext";
302
+ };
303
+ };
304
+ };
305
+ readonly Ext: {
306
+ readonly title: "Ext";
307
+ readonly 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.";
308
+ readonly type: "object";
309
+ readonly minProperties: 1;
310
+ readonly additionalProperties: true;
311
+ readonly propertyNames: {
312
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
313
+ };
314
+ };
315
+ };
316
+ };
317
+ };
318
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/invitations/deliver/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAG7D;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;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