@openvtc/trust-tasks 0.16.7 → 0.16.8

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 (47) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/index.d.ts +8 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +8 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/rooms/keys/open/0.1/payload.d.ts +323 -0
  7. package/dist/rooms/keys/open/0.1/payload.d.ts.map +1 -0
  8. package/dist/rooms/keys/open/0.1/payload.js +171 -0
  9. package/dist/rooms/keys/open/0.1/payload.js.map +1 -0
  10. package/dist/rooms/keys/present/0.1/payload.d.ts +306 -0
  11. package/dist/rooms/keys/present/0.1/payload.d.ts.map +1 -0
  12. package/dist/rooms/keys/present/0.1/payload.js +165 -0
  13. package/dist/rooms/keys/present/0.1/payload.js.map +1 -0
  14. package/dist/vta/backup/abort/1.0/payload.d.ts +262 -0
  15. package/dist/vta/backup/abort/1.0/payload.d.ts.map +1 -0
  16. package/dist/vta/backup/abort/1.0/payload.js +146 -0
  17. package/dist/vta/backup/abort/1.0/payload.js.map +1 -0
  18. package/dist/vta/backup/complete-export/1.0/payload.d.ts +262 -0
  19. package/dist/vta/backup/complete-export/1.0/payload.d.ts.map +1 -0
  20. package/dist/vta/backup/complete-export/1.0/payload.js +146 -0
  21. package/dist/vta/backup/complete-export/1.0/payload.js.map +1 -0
  22. package/dist/vta/backup/finalize-import/1.0/payload.d.ts +477 -0
  23. package/dist/vta/backup/finalize-import/1.0/payload.d.ts.map +1 -0
  24. package/dist/vta/backup/finalize-import/1.0/payload.js +249 -0
  25. package/dist/vta/backup/finalize-import/1.0/payload.js.map +1 -0
  26. package/dist/vta/backup/initiate-export/1.0/payload.d.ts +514 -0
  27. package/dist/vta/backup/initiate-export/1.0/payload.d.ts.map +1 -0
  28. package/dist/vta/backup/initiate-export/1.0/payload.js +267 -0
  29. package/dist/vta/backup/initiate-export/1.0/payload.js.map +1 -0
  30. package/dist/vta/backup/initiate-import/1.0/payload.d.ts +510 -0
  31. package/dist/vta/backup/initiate-import/1.0/payload.d.ts.map +1 -0
  32. package/dist/vta/backup/initiate-import/1.0/payload.js +266 -0
  33. package/dist/vta/backup/initiate-import/1.0/payload.js.map +1 -0
  34. package/dist/vta/management/reload-services/1.0/payload.d.ts +230 -0
  35. package/dist/vta/management/reload-services/1.0/payload.d.ts.map +1 -0
  36. package/dist/vta/management/reload-services/1.0/payload.js +130 -0
  37. package/dist/vta/management/reload-services/1.0/payload.js.map +1 -0
  38. package/package.json +1 -1
  39. package/src/index.ts +8 -0
  40. package/src/rooms/keys/open/0.1/payload.ts +237 -0
  41. package/src/rooms/keys/present/0.1/payload.ts +224 -0
  42. package/src/vta/backup/abort/1.0/payload.ts +191 -0
  43. package/src/vta/backup/complete-export/1.0/payload.ts +191 -0
  44. package/src/vta/backup/finalize-import/1.0/payload.ts +333 -0
  45. package/src/vta/backup/initiate-export/1.0/payload.ts +350 -0
  46. package/src/vta/backup/initiate-import/1.0/payload.ts +349 -0
  47. package/src/vta/management/reload-services/1.0/payload.ts +167 -0
@@ -0,0 +1,262 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/backup/complete-export/1.0/payload.schema.json
4
+ */
5
+ import type { Ext } from "../../../../_shared/components.js";
6
+ /**
7
+ * Acknowledges that an export bundle was downloaded, so the recipient can release the staged bytes and retire the transport token. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface VTABackupCompleteExportPayload {
10
+ /**
11
+ * Handle from the initiate-export descriptor. Opaque: a producer quotes what it was given and must not derive, guess or enumerate one.
12
+ */
13
+ bundleId: string;
14
+ /**
15
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
16
+ */
17
+ ext?: Ext;
18
+ }
19
+ export interface VTABackupCompleteExportResponsePayload {
20
+ /**
21
+ * Echoed so the response stands alone as a record.
22
+ */
23
+ bundleId: string;
24
+ /**
25
+ * Whether the byte stream was actually fetched before this acknowledgement. Required, not optional: false is the honest answer when the operator skipped the download or the slot expired first, and an absent member would let that be read as success.
26
+ */
27
+ downloaded: boolean;
28
+ /**
29
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
30
+ */
31
+ ext?: Ext;
32
+ }
33
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
34
+ export type { Ext };
35
+ /** Trust Task type URI. */
36
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vta/backup/complete-export/1.0";
37
+ /** Stable alias for this specification's request payload shape. */
38
+ export type Payload = VTABackupCompleteExportPayload;
39
+ /** Trust Task response type URI (request type URI + "#response"). */
40
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/backup/complete-export/1.0#response";
41
+ /** Stable alias for this specification's success-response payload shape. */
42
+ export type Response = VTABackupCompleteExportResponsePayload;
43
+ /**
44
+ * This specification's payload schema, as a value.
45
+ *
46
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
47
+ * rather than only as a `.json` file because TypeScript types are erased
48
+ * at runtime: without a schema a consumer has nothing to validate, and
49
+ * every REQUIRED payload member is optional in practice. Cross-file
50
+ * `$ref`s are already inlined, so it needs no resolver.
51
+ */
52
+ export declare const PAYLOAD_SCHEMA: {
53
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
54
+ readonly $id: "https://trusttasks.org/spec/vta/backup/complete-export/1.0";
55
+ readonly title: "VTA Backup — Complete Export — payload";
56
+ readonly description: "Acknowledges that an export bundle was downloaded, so the recipient can release the staged bytes and retire the transport token. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
57
+ readonly type: "object";
58
+ readonly additionalProperties: false;
59
+ readonly required: readonly ["bundleId"];
60
+ readonly properties: {
61
+ readonly bundleId: {
62
+ readonly type: "string";
63
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
64
+ readonly description: "Handle from the initiate-export descriptor. Opaque: a producer quotes what it was given and must not derive, guess or enumerate one.";
65
+ };
66
+ readonly ext: {
67
+ readonly $ref: "#/$defs/Ext";
68
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
69
+ };
70
+ };
71
+ readonly $defs: {
72
+ readonly Response: {
73
+ readonly $anchor: "response";
74
+ readonly title: "VTA Backup Complete Export — response payload";
75
+ readonly type: "object";
76
+ readonly additionalProperties: false;
77
+ readonly required: readonly ["bundleId", "downloaded"];
78
+ readonly properties: {
79
+ readonly bundleId: {
80
+ readonly type: "string";
81
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
82
+ readonly description: "Echoed so the response stands alone as a record.";
83
+ };
84
+ readonly downloaded: {
85
+ readonly type: "boolean";
86
+ readonly description: "Whether the byte stream was actually fetched before this acknowledgement. Required, not optional: false is the honest answer when the operator skipped the download or the slot expired first, and an absent member would let that be read as success.";
87
+ };
88
+ readonly ext: {
89
+ readonly $ref: "#/$defs/Ext";
90
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
91
+ };
92
+ };
93
+ };
94
+ readonly Ext: {
95
+ readonly title: "Ext";
96
+ 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.";
97
+ readonly type: "object";
98
+ readonly minProperties: 1;
99
+ readonly additionalProperties: true;
100
+ readonly propertyNames: {
101
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
102
+ };
103
+ };
104
+ };
105
+ };
106
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
107
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
108
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
109
+ readonly $ref: "#/$defs/Response";
110
+ readonly $defs: {
111
+ readonly Response: {
112
+ readonly $anchor: "response";
113
+ readonly title: "VTA Backup Complete Export — response payload";
114
+ readonly type: "object";
115
+ readonly additionalProperties: false;
116
+ readonly required: readonly ["bundleId", "downloaded"];
117
+ readonly properties: {
118
+ readonly bundleId: {
119
+ readonly type: "string";
120
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
121
+ readonly description: "Echoed so the response stands alone as a record.";
122
+ };
123
+ readonly downloaded: {
124
+ readonly type: "boolean";
125
+ readonly description: "Whether the byte stream was actually fetched before this acknowledgement. Required, not optional: false is the honest answer when the operator skipped the download or the slot expired first, and an absent member would let that be read as success.";
126
+ };
127
+ readonly ext: {
128
+ readonly $ref: "#/$defs/Ext";
129
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
130
+ };
131
+ };
132
+ };
133
+ readonly Ext: {
134
+ readonly title: "Ext";
135
+ 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.";
136
+ readonly type: "object";
137
+ readonly minProperties: 1;
138
+ readonly additionalProperties: true;
139
+ readonly propertyNames: {
140
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
141
+ };
142
+ };
143
+ };
144
+ };
145
+ /**
146
+ * SPEC.md §7.2 policy for the request variant, from this specification's
147
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
148
+ * per-specification and cannot be derived from the document alone, and
149
+ * item 2 needs the schema this carries.
150
+ */
151
+ export declare const SPEC: {
152
+ readonly typeUri: "https://trusttasks.org/spec/vta/backup/complete-export/1.0";
153
+ readonly isBearer: false;
154
+ readonly isProofRequired: true;
155
+ readonly isRecipientRequired: true;
156
+ readonly isIssuedAtRequired: true;
157
+ readonly payloadSchema: {
158
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
159
+ readonly $id: "https://trusttasks.org/spec/vta/backup/complete-export/1.0";
160
+ readonly title: "VTA Backup — Complete Export — payload";
161
+ readonly description: "Acknowledges that an export bundle was downloaded, so the recipient can release the staged bytes and retire the transport token. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
162
+ readonly type: "object";
163
+ readonly additionalProperties: false;
164
+ readonly required: readonly ["bundleId"];
165
+ readonly properties: {
166
+ readonly bundleId: {
167
+ readonly type: "string";
168
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
169
+ readonly description: "Handle from the initiate-export descriptor. Opaque: a producer quotes what it was given and must not derive, guess or enumerate one.";
170
+ };
171
+ readonly ext: {
172
+ readonly $ref: "#/$defs/Ext";
173
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
174
+ };
175
+ };
176
+ readonly $defs: {
177
+ readonly Response: {
178
+ readonly $anchor: "response";
179
+ readonly title: "VTA Backup Complete Export — response payload";
180
+ readonly type: "object";
181
+ readonly additionalProperties: false;
182
+ readonly required: readonly ["bundleId", "downloaded"];
183
+ readonly properties: {
184
+ readonly bundleId: {
185
+ readonly type: "string";
186
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
187
+ readonly description: "Echoed so the response stands alone as a record.";
188
+ };
189
+ readonly downloaded: {
190
+ readonly type: "boolean";
191
+ readonly description: "Whether the byte stream was actually fetched before this acknowledgement. Required, not optional: false is the honest answer when the operator skipped the download or the slot expired first, and an absent member would let that be read as success.";
192
+ };
193
+ readonly ext: {
194
+ readonly $ref: "#/$defs/Ext";
195
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
196
+ };
197
+ };
198
+ };
199
+ readonly Ext: {
200
+ readonly title: "Ext";
201
+ 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.";
202
+ readonly type: "object";
203
+ readonly minProperties: 1;
204
+ readonly additionalProperties: true;
205
+ readonly propertyNames: {
206
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
207
+ };
208
+ };
209
+ };
210
+ };
211
+ };
212
+ /**
213
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
214
+ * tracks the *issuer* party's requirement because a response swaps the
215
+ * parties (§7.3 item 5).
216
+ */
217
+ export declare const RESPONSE_SPEC: {
218
+ readonly typeUri: "https://trusttasks.org/spec/vta/backup/complete-export/1.0#response";
219
+ readonly isBearer: false;
220
+ readonly isProofRequired: true;
221
+ readonly isRecipientRequired: true;
222
+ readonly isIssuedAtRequired: true;
223
+ readonly payloadSchema: {
224
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
225
+ readonly $ref: "#/$defs/Response";
226
+ readonly $defs: {
227
+ readonly Response: {
228
+ readonly $anchor: "response";
229
+ readonly title: "VTA Backup Complete Export — response payload";
230
+ readonly type: "object";
231
+ readonly additionalProperties: false;
232
+ readonly required: readonly ["bundleId", "downloaded"];
233
+ readonly properties: {
234
+ readonly bundleId: {
235
+ readonly type: "string";
236
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
237
+ readonly description: "Echoed so the response stands alone as a record.";
238
+ };
239
+ readonly downloaded: {
240
+ readonly type: "boolean";
241
+ readonly description: "Whether the byte stream was actually fetched before this acknowledgement. Required, not optional: false is the honest answer when the operator skipped the download or the slot expired first, and an absent member would let that be read as success.";
242
+ };
243
+ readonly ext: {
244
+ readonly $ref: "#/$defs/Ext";
245
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
246
+ };
247
+ };
248
+ };
249
+ readonly Ext: {
250
+ readonly title: "Ext";
251
+ 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.";
252
+ readonly type: "object";
253
+ readonly minProperties: 1;
254
+ readonly additionalProperties: true;
255
+ readonly propertyNames: {
256
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
257
+ };
258
+ };
259
+ };
260
+ };
261
+ };
262
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/backup/complete-export/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAG7D;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,sCAAsC;IACrD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,4DAAqE,CAAC;AAE9F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,8BAA8B,CAAC;AAErD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,qEAA8E,CAAC;AAEhH,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,sCAAsC,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0DjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwC1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,146 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/backup/complete-export/1.0/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vta/backup/complete-export/1.0";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/backup/complete-export/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/vta/backup/complete-export/1.0",
21
+ "title": "VTA Backup — Complete Export — payload",
22
+ "description": "Acknowledges that an export bundle was downloaded, so the recipient can release the staged bytes and retire the transport token. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "bundleId"
27
+ ],
28
+ "properties": {
29
+ "bundleId": {
30
+ "type": "string",
31
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
32
+ "description": "Handle from the initiate-export descriptor. Opaque: a producer quotes what it was given and must not derive, guess or enumerate one."
33
+ },
34
+ "ext": {
35
+ "$ref": "#/$defs/Ext",
36
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
37
+ }
38
+ },
39
+ "$defs": {
40
+ "Response": {
41
+ "$anchor": "response",
42
+ "title": "VTA Backup Complete Export — response payload",
43
+ "type": "object",
44
+ "additionalProperties": false,
45
+ "required": [
46
+ "bundleId",
47
+ "downloaded"
48
+ ],
49
+ "properties": {
50
+ "bundleId": {
51
+ "type": "string",
52
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
53
+ "description": "Echoed so the response stands alone as a record."
54
+ },
55
+ "downloaded": {
56
+ "type": "boolean",
57
+ "description": "Whether the byte stream was actually fetched before this acknowledgement. Required, not optional: false is the honest answer when the operator skipped the download or the slot expired first, and an absent member would let that be read as success."
58
+ },
59
+ "ext": {
60
+ "$ref": "#/$defs/Ext",
61
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
62
+ }
63
+ }
64
+ },
65
+ "Ext": {
66
+ "title": "Ext",
67
+ "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.",
68
+ "type": "object",
69
+ "minProperties": 1,
70
+ "additionalProperties": true,
71
+ "propertyNames": {
72
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
73
+ }
74
+ }
75
+ }
76
+ };
77
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
78
+ export const RESPONSE_PAYLOAD_SCHEMA = {
79
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
80
+ "$ref": "#/$defs/Response",
81
+ "$defs": {
82
+ "Response": {
83
+ "$anchor": "response",
84
+ "title": "VTA Backup Complete Export — response payload",
85
+ "type": "object",
86
+ "additionalProperties": false,
87
+ "required": [
88
+ "bundleId",
89
+ "downloaded"
90
+ ],
91
+ "properties": {
92
+ "bundleId": {
93
+ "type": "string",
94
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
95
+ "description": "Echoed so the response stands alone as a record."
96
+ },
97
+ "downloaded": {
98
+ "type": "boolean",
99
+ "description": "Whether the byte stream was actually fetched before this acknowledgement. Required, not optional: false is the honest answer when the operator skipped the download or the slot expired first, and an absent member would let that be read as success."
100
+ },
101
+ "ext": {
102
+ "$ref": "#/$defs/Ext",
103
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
104
+ }
105
+ }
106
+ },
107
+ "Ext": {
108
+ "title": "Ext",
109
+ "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.",
110
+ "type": "object",
111
+ "minProperties": 1,
112
+ "additionalProperties": true,
113
+ "propertyNames": {
114
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
115
+ }
116
+ }
117
+ }
118
+ };
119
+ /**
120
+ * SPEC.md §7.2 policy for the request variant, from this specification's
121
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
122
+ * per-specification and cannot be derived from the document alone, and
123
+ * item 2 needs the schema this carries.
124
+ */
125
+ export const SPEC = {
126
+ typeUri: TYPE_URI,
127
+ isBearer: false,
128
+ isProofRequired: true,
129
+ isRecipientRequired: true,
130
+ isIssuedAtRequired: true,
131
+ payloadSchema: PAYLOAD_SCHEMA,
132
+ };
133
+ /**
134
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
135
+ * tracks the *issuer* party's requirement because a response swaps the
136
+ * parties (§7.3 item 5).
137
+ */
138
+ export const RESPONSE_SPEC = {
139
+ typeUri: RESPONSE_TYPE_URI,
140
+ isBearer: false,
141
+ isProofRequired: true,
142
+ isRecipientRequired: true,
143
+ isIssuedAtRequired: true,
144
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
145
+ };
146
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/backup/complete-export/1.0/payload.ts"],"names":[],"mappings":"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"}