@openvtc/trust-tasks 0.16.6 → 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 (80) hide show
  1. package/CHANGELOG.md +20 -2
  2. package/dist/_shared/components.d.ts +75 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +14 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +14 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/rooms/_shared/0.1/room.d.ts +16 -0
  9. package/dist/rooms/_shared/0.1/room.d.ts.map +1 -0
  10. package/dist/rooms/_shared/0.1/room.js +6 -0
  11. package/dist/rooms/_shared/0.1/room.js.map +1 -0
  12. package/dist/rooms/create/0.1/payload.d.ts +305 -0
  13. package/dist/rooms/create/0.1/payload.d.ts.map +1 -0
  14. package/dist/rooms/create/0.1/payload.js +176 -0
  15. package/dist/rooms/create/0.1/payload.js.map +1 -0
  16. package/dist/rooms/epoch/mint/0.1/payload.d.ts +385 -0
  17. package/dist/rooms/epoch/mint/0.1/payload.d.ts.map +1 -0
  18. package/dist/rooms/epoch/mint/0.1/payload.js +214 -0
  19. package/dist/rooms/epoch/mint/0.1/payload.js.map +1 -0
  20. package/dist/rooms/keys/open/0.1/payload.d.ts +323 -0
  21. package/dist/rooms/keys/open/0.1/payload.d.ts.map +1 -0
  22. package/dist/rooms/keys/open/0.1/payload.js +171 -0
  23. package/dist/rooms/keys/open/0.1/payload.js.map +1 -0
  24. package/dist/rooms/keys/present/0.1/payload.d.ts +306 -0
  25. package/dist/rooms/keys/present/0.1/payload.d.ts.map +1 -0
  26. package/dist/rooms/keys/present/0.1/payload.js +165 -0
  27. package/dist/rooms/keys/present/0.1/payload.js.map +1 -0
  28. package/dist/rooms/records/get/0.1/payload.d.ts +505 -0
  29. package/dist/rooms/records/get/0.1/payload.d.ts.map +1 -0
  30. package/dist/rooms/records/get/0.1/payload.js +279 -0
  31. package/dist/rooms/records/get/0.1/payload.js.map +1 -0
  32. package/dist/rooms/records/list/0.1/payload.d.ts +618 -0
  33. package/dist/rooms/records/list/0.1/payload.d.ts.map +1 -0
  34. package/dist/rooms/records/list/0.1/payload.js +338 -0
  35. package/dist/rooms/records/list/0.1/payload.js.map +1 -0
  36. package/dist/rooms/records/put/0.1/payload.d.ts +591 -0
  37. package/dist/rooms/records/put/0.1/payload.d.ts.map +1 -0
  38. package/dist/rooms/records/put/0.1/payload.js +314 -0
  39. package/dist/rooms/records/put/0.1/payload.js.map +1 -0
  40. package/dist/vta/backup/abort/1.0/payload.d.ts +262 -0
  41. package/dist/vta/backup/abort/1.0/payload.d.ts.map +1 -0
  42. package/dist/vta/backup/abort/1.0/payload.js +146 -0
  43. package/dist/vta/backup/abort/1.0/payload.js.map +1 -0
  44. package/dist/vta/backup/complete-export/1.0/payload.d.ts +262 -0
  45. package/dist/vta/backup/complete-export/1.0/payload.d.ts.map +1 -0
  46. package/dist/vta/backup/complete-export/1.0/payload.js +146 -0
  47. package/dist/vta/backup/complete-export/1.0/payload.js.map +1 -0
  48. package/dist/vta/backup/finalize-import/1.0/payload.d.ts +477 -0
  49. package/dist/vta/backup/finalize-import/1.0/payload.d.ts.map +1 -0
  50. package/dist/vta/backup/finalize-import/1.0/payload.js +249 -0
  51. package/dist/vta/backup/finalize-import/1.0/payload.js.map +1 -0
  52. package/dist/vta/backup/initiate-export/1.0/payload.d.ts +514 -0
  53. package/dist/vta/backup/initiate-export/1.0/payload.d.ts.map +1 -0
  54. package/dist/vta/backup/initiate-export/1.0/payload.js +267 -0
  55. package/dist/vta/backup/initiate-export/1.0/payload.js.map +1 -0
  56. package/dist/vta/backup/initiate-import/1.0/payload.d.ts +510 -0
  57. package/dist/vta/backup/initiate-import/1.0/payload.d.ts.map +1 -0
  58. package/dist/vta/backup/initiate-import/1.0/payload.js +266 -0
  59. package/dist/vta/backup/initiate-import/1.0/payload.js.map +1 -0
  60. package/dist/vta/management/reload-services/1.0/payload.d.ts +230 -0
  61. package/dist/vta/management/reload-services/1.0/payload.d.ts.map +1 -0
  62. package/dist/vta/management/reload-services/1.0/payload.js +130 -0
  63. package/dist/vta/management/reload-services/1.0/payload.js.map +1 -0
  64. package/package.json +1 -1
  65. package/src/_shared/components.ts +83 -0
  66. package/src/index.ts +14 -0
  67. package/src/rooms/_shared/0.1/room.ts +17 -0
  68. package/src/rooms/create/0.1/payload.ts +224 -0
  69. package/src/rooms/epoch/mint/0.1/payload.ts +262 -0
  70. package/src/rooms/keys/open/0.1/payload.ts +237 -0
  71. package/src/rooms/keys/present/0.1/payload.ts +224 -0
  72. package/src/rooms/records/get/0.1/payload.ts +333 -0
  73. package/src/rooms/records/list/0.1/payload.ts +397 -0
  74. package/src/rooms/records/put/0.1/payload.ts +388 -0
  75. package/src/vta/backup/abort/1.0/payload.ts +191 -0
  76. package/src/vta/backup/complete-export/1.0/payload.ts +191 -0
  77. package/src/vta/backup/finalize-import/1.0/payload.ts +333 -0
  78. package/src/vta/backup/initiate-export/1.0/payload.ts +350 -0
  79. package/src/vta/backup/initiate-import/1.0/payload.ts +349 -0
  80. package/src/vta/management/reload-services/1.0/payload.ts +167 -0
@@ -0,0 +1,314 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/rooms/records/put/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/rooms/records/put/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/records/put/0.1#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/rooms/records/put/0.1",
21
+ "title": "Rooms Records Put — payload",
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "required": [
25
+ "roomId",
26
+ "key",
27
+ "presentation"
28
+ ],
29
+ "properties": {
30
+ "roomId": {
31
+ "type": "string",
32
+ "description": "The room's identifier. A host verifies the presentation against credentials issued by this identifier, never against a member list of its own — which is what lets a room move hosts without reissuing a credential."
33
+ },
34
+ "key": {
35
+ "type": "string",
36
+ "maxLength": 512,
37
+ "description": "The record's key within the room. MUST be opaque on an `attributed` or `private` room; see RecordMetadata.key."
38
+ },
39
+ "presentation": {
40
+ "$ref": "#/$defs/AuthorityPresentation",
41
+ "description": "Must confer the `write` action at this room's scope."
42
+ },
43
+ "expectedVersion": {
44
+ "type": "integer",
45
+ "minimum": 0,
46
+ "description": "Optional precondition. Omit to overwrite unconditionally; `0` means create-only and fails if the key exists. On mismatch the host returns `rooms/records/put:versionConflict` CARRYING THE CURRENT VERSION AND RECORD — a bare rejection would force a re-read, and between rejection and re-read the record can change again, so the pattern has no fixed point under contention."
47
+ },
48
+ "sealed": {
49
+ "$ref": "#/$defs/SealedRecord",
50
+ "description": "REQUIRED on an `attributed` or `private` room. Mutually exclusive with `cleartext`."
51
+ },
52
+ "cleartext": {
53
+ "type": "object",
54
+ "additionalProperties": false,
55
+ "required": [
56
+ "body"
57
+ ],
58
+ "description": "REQUIRED on an `open` room, where the host reads records and can therefore search them. Mutually exclusive with `sealed`.",
59
+ "properties": {
60
+ "title": {
61
+ "type": "string",
62
+ "maxLength": 512
63
+ },
64
+ "description": {
65
+ "type": "string",
66
+ "maxLength": 2048
67
+ },
68
+ "body": {
69
+ "type": "string",
70
+ "maxLength": 1048576
71
+ },
72
+ "tags": {
73
+ "type": "array",
74
+ "items": {
75
+ "type": "string",
76
+ "maxLength": 64
77
+ },
78
+ "maxItems": 32
79
+ }
80
+ }
81
+ },
82
+ "ext": {
83
+ "$ref": "#/$defs/Ext",
84
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
85
+ }
86
+ },
87
+ "$defs": {
88
+ "Response": {
89
+ "$anchor": "response",
90
+ "title": "Rooms Records Put — response payload",
91
+ "description": "Success response to rooms/records/put. Type https://trusttasks.org/spec/rooms/records/put/0.1#response.",
92
+ "type": "object",
93
+ "additionalProperties": false,
94
+ "required": [
95
+ "key",
96
+ "version"
97
+ ],
98
+ "properties": {
99
+ "key": {
100
+ "type": "string",
101
+ "description": "The stored record's key."
102
+ },
103
+ "version": {
104
+ "type": "integer",
105
+ "minimum": 1,
106
+ "description": "The version assigned, monotonic per room."
107
+ },
108
+ "epoch": {
109
+ "type": "integer",
110
+ "minimum": 1,
111
+ "description": "The epoch the record was stored under."
112
+ },
113
+ "ext": {
114
+ "$ref": "#/$defs/Ext"
115
+ }
116
+ }
117
+ },
118
+ "Ext": {
119
+ "title": "Ext",
120
+ "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.",
121
+ "type": "object",
122
+ "minProperties": 1,
123
+ "additionalProperties": true,
124
+ "propertyNames": {
125
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
126
+ }
127
+ },
128
+ "SealedRecord": {
129
+ "title": "SealedRecord",
130
+ "type": "object",
131
+ "additionalProperties": false,
132
+ "required": [
133
+ "ciphertext",
134
+ "nonce",
135
+ "epoch"
136
+ ],
137
+ "description": "A record as a host stores it on an `attributed` or `private` room. Title, description, body, author and tags are sealed together in one blob rather than separately: splitting them would let a host learn the shape of the material from ciphertext lengths, for no benefit, since a reader decrypts the whole record either way.",
138
+ "properties": {
139
+ "ciphertext": {
140
+ "type": "string",
141
+ "description": "The sealed record, base64url. Bound by AEAD associated data to `roomId`, `key`, `version` and `epoch`, so a host that relocates it to another key, version, epoch or room produces a mismatch and the open fails. The record cannot be moved undetected even though the host holds every byte of it."
142
+ },
143
+ "nonce": {
144
+ "type": "string",
145
+ "description": "AEAD nonce, base64url."
146
+ },
147
+ "epoch": {
148
+ "type": "integer",
149
+ "minimum": 1,
150
+ "description": "The key epoch this record was sealed under. Cleartext because the host must serve the right ciphertext, and bound into the associated data so that relabelling it fails authentication rather than causing a reader to try the wrong key."
151
+ }
152
+ }
153
+ },
154
+ "AuthorityPresentation": {
155
+ "title": "AuthorityPresentation",
156
+ "type": "object",
157
+ "additionalProperties": false,
158
+ "required": [
159
+ "membership",
160
+ "authority"
161
+ ],
162
+ "description": "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.",
163
+ "properties": {
164
+ "membership": {
165
+ "type": "string",
166
+ "description": "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile."
167
+ },
168
+ "authority": {
169
+ "type": "array",
170
+ "minItems": 1,
171
+ "maxItems": 8,
172
+ "items": {
173
+ "type": "string"
174
+ },
175
+ "description": "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent."
176
+ },
177
+ "subjectBinding": {
178
+ "type": "string",
179
+ "description": "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this."
180
+ }
181
+ }
182
+ }
183
+ }
184
+ };
185
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
186
+ export const RESPONSE_PAYLOAD_SCHEMA = {
187
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
188
+ "$ref": "#/$defs/Response",
189
+ "$defs": {
190
+ "Response": {
191
+ "$anchor": "response",
192
+ "title": "Rooms Records Put — response payload",
193
+ "description": "Success response to rooms/records/put. Type https://trusttasks.org/spec/rooms/records/put/0.1#response.",
194
+ "type": "object",
195
+ "additionalProperties": false,
196
+ "required": [
197
+ "key",
198
+ "version"
199
+ ],
200
+ "properties": {
201
+ "key": {
202
+ "type": "string",
203
+ "description": "The stored record's key."
204
+ },
205
+ "version": {
206
+ "type": "integer",
207
+ "minimum": 1,
208
+ "description": "The version assigned, monotonic per room."
209
+ },
210
+ "epoch": {
211
+ "type": "integer",
212
+ "minimum": 1,
213
+ "description": "The epoch the record was stored under."
214
+ },
215
+ "ext": {
216
+ "$ref": "#/$defs/Ext"
217
+ }
218
+ }
219
+ },
220
+ "Ext": {
221
+ "title": "Ext",
222
+ "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.",
223
+ "type": "object",
224
+ "minProperties": 1,
225
+ "additionalProperties": true,
226
+ "propertyNames": {
227
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
228
+ }
229
+ },
230
+ "SealedRecord": {
231
+ "title": "SealedRecord",
232
+ "type": "object",
233
+ "additionalProperties": false,
234
+ "required": [
235
+ "ciphertext",
236
+ "nonce",
237
+ "epoch"
238
+ ],
239
+ "description": "A record as a host stores it on an `attributed` or `private` room. Title, description, body, author and tags are sealed together in one blob rather than separately: splitting them would let a host learn the shape of the material from ciphertext lengths, for no benefit, since a reader decrypts the whole record either way.",
240
+ "properties": {
241
+ "ciphertext": {
242
+ "type": "string",
243
+ "description": "The sealed record, base64url. Bound by AEAD associated data to `roomId`, `key`, `version` and `epoch`, so a host that relocates it to another key, version, epoch or room produces a mismatch and the open fails. The record cannot be moved undetected even though the host holds every byte of it."
244
+ },
245
+ "nonce": {
246
+ "type": "string",
247
+ "description": "AEAD nonce, base64url."
248
+ },
249
+ "epoch": {
250
+ "type": "integer",
251
+ "minimum": 1,
252
+ "description": "The key epoch this record was sealed under. Cleartext because the host must serve the right ciphertext, and bound into the associated data so that relabelling it fails authentication rather than causing a reader to try the wrong key."
253
+ }
254
+ }
255
+ },
256
+ "AuthorityPresentation": {
257
+ "title": "AuthorityPresentation",
258
+ "type": "object",
259
+ "additionalProperties": false,
260
+ "required": [
261
+ "membership",
262
+ "authority"
263
+ ],
264
+ "description": "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.",
265
+ "properties": {
266
+ "membership": {
267
+ "type": "string",
268
+ "description": "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile."
269
+ },
270
+ "authority": {
271
+ "type": "array",
272
+ "minItems": 1,
273
+ "maxItems": 8,
274
+ "items": {
275
+ "type": "string"
276
+ },
277
+ "description": "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent."
278
+ },
279
+ "subjectBinding": {
280
+ "type": "string",
281
+ "description": "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this."
282
+ }
283
+ }
284
+ }
285
+ }
286
+ };
287
+ /**
288
+ * SPEC.md §7.2 policy for the request variant, from this specification's
289
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
290
+ * per-specification and cannot be derived from the document alone, and
291
+ * item 2 needs the schema this carries.
292
+ */
293
+ export const SPEC = {
294
+ typeUri: TYPE_URI,
295
+ isBearer: false,
296
+ isProofRequired: true,
297
+ isRecipientRequired: true,
298
+ isIssuedAtRequired: true,
299
+ payloadSchema: PAYLOAD_SCHEMA,
300
+ };
301
+ /**
302
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
303
+ * tracks the *issuer* party's requirement because a response swaps the
304
+ * parties (§7.3 item 5).
305
+ */
306
+ export const RESPONSE_SPEC = {
307
+ typeUri: RESPONSE_TYPE_URI,
308
+ isBearer: false,
309
+ isProofRequired: true,
310
+ isRecipientRequired: true,
311
+ isIssuedAtRequired: true,
312
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
313
+ };
314
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/rooms/records/put/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAiEH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,mDAA4D,CAAC;AAKrF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,4DAAqE,CAAC;AAKvG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,mDAAmD;IAC1D,OAAO,EAAE,6BAA6B;IACtC,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,QAAQ;QACR,KAAK;QACL,cAAc;KACf;IACD,YAAY,EAAE;QACZ,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,sNAAsN;SACtO;QACD,KAAK,EAAE;YACL,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,GAAG;YAChB,aAAa,EAAE,gHAAgH;SAChI;QACD,cAAc,EAAE;YACd,MAAM,EAAE,+BAA+B;YACvC,aAAa,EAAE,sDAAsD;SACtE;QACD,iBAAiB,EAAE;YACjB,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,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T EDIT BY HAND.
3
+ * Source: specs/vta/backup/abort/1.0/payload.schema.json
4
+ */
5
+ import type { Ext } from "../../../../_shared/components.js";
6
+ /**
7
+ * Cancels an in-flight export or import bundle and discards its staged bytes. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface VTABackupAbortPayload {
10
+ /**
11
+ * Handle from an initiate-export or initiate-import descriptor; either kind is accepted. 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 VTABackupAbortResponsePayload {
20
+ /**
21
+ * Echoed so the response stands alone as a record.
22
+ */
23
+ bundleId: string;
24
+ /**
25
+ * Whether this request is what moved the bundle to a terminal state. False means it was already terminal — a success, not a failure, and the reason abort can be retried safely. Required rather than optional: an absent member on an idempotent no-op would be indistinguishable from a cancellation that happened.
26
+ */
27
+ aborted: 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/abort/1.0";
37
+ /** Stable alias for this specification's request payload shape. */
38
+ export type Payload = VTABackupAbortPayload;
39
+ /** Trust Task response type URI (request type URI + "#response"). */
40
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/backup/abort/1.0#response";
41
+ /** Stable alias for this specification's success-response payload shape. */
42
+ export type Response = VTABackupAbortResponsePayload;
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/abort/1.0";
55
+ readonly title: "VTA Backup — Abort — payload";
56
+ readonly description: "Cancels an in-flight export or import bundle and discards its staged bytes. 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 an initiate-export or initiate-import descriptor; either kind is accepted. 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 Abort — response payload";
75
+ readonly type: "object";
76
+ readonly additionalProperties: false;
77
+ readonly required: readonly ["bundleId", "aborted"];
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 aborted: {
85
+ readonly type: "boolean";
86
+ readonly description: "Whether this request is what moved the bundle to a terminal state. False means it was already terminal — a success, not a failure, and the reason abort can be retried safely. Required rather than optional: an absent member on an idempotent no-op would be indistinguishable from a cancellation that happened.";
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 Abort — response payload";
114
+ readonly type: "object";
115
+ readonly additionalProperties: false;
116
+ readonly required: readonly ["bundleId", "aborted"];
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 aborted: {
124
+ readonly type: "boolean";
125
+ readonly description: "Whether this request is what moved the bundle to a terminal state. False means it was already terminal — a success, not a failure, and the reason abort can be retried safely. Required rather than optional: an absent member on an idempotent no-op would be indistinguishable from a cancellation that happened.";
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/abort/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/abort/1.0";
160
+ readonly title: "VTA Backup — Abort — payload";
161
+ readonly description: "Cancels an in-flight export or import bundle and discards its staged bytes. 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 an initiate-export or initiate-import descriptor; either kind is accepted. 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 Abort — response payload";
180
+ readonly type: "object";
181
+ readonly additionalProperties: false;
182
+ readonly required: readonly ["bundleId", "aborted"];
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 aborted: {
190
+ readonly type: "boolean";
191
+ readonly description: "Whether this request is what moved the bundle to a terminal state. False means it was already terminal — a success, not a failure, and the reason abort can be retried safely. Required rather than optional: an absent member on an idempotent no-op would be indistinguishable from a cancellation that happened.";
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/abort/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 Abort — response payload";
230
+ readonly type: "object";
231
+ readonly additionalProperties: false;
232
+ readonly required: readonly ["bundleId", "aborted"];
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 aborted: {
240
+ readonly type: "boolean";
241
+ readonly description: "Whether this request is what moved the bundle to a terminal state. False means it was already terminal — a success, not a failure, and the reason abort can be retried safely. Required rather than optional: an absent member on an idempotent no-op would be indistinguishable from a cancellation that happened.";
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/abort/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAG7D;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,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