@openvtc/trust-tasks 0.20.7 → 0.20.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.
- package/CHANGELOG.md +87 -0
- package/dist/auth/step-up/approve-request/0.3/payload.d.ts +613 -0
- package/dist/auth/step-up/approve-request/0.3/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approve-request/0.3/payload.js +345 -0
- package/dist/auth/step-up/approve-request/0.3/payload.js.map +1 -0
- package/dist/auth/step-up/approve-response/0.4/payload.d.ts +887 -0
- package/dist/auth/step-up/approve-response/0.4/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approve-response/0.4/payload.js +504 -0
- package/dist/auth/step-up/approve-response/0.4/payload.js.map +1 -0
- package/dist/backup/abort/0.1/payload.d.ts +262 -0
- package/dist/backup/abort/0.1/payload.d.ts.map +1 -0
- package/dist/backup/abort/0.1/payload.js +146 -0
- package/dist/backup/abort/0.1/payload.js.map +1 -0
- package/dist/backup/complete-export/0.1/payload.d.ts +262 -0
- package/dist/backup/complete-export/0.1/payload.d.ts.map +1 -0
- package/dist/backup/complete-export/0.1/payload.js +146 -0
- package/dist/backup/complete-export/0.1/payload.js.map +1 -0
- package/dist/backup/finalize-import/0.1/payload.d.ts +395 -0
- package/dist/backup/finalize-import/0.1/payload.d.ts.map +1 -0
- package/dist/backup/finalize-import/0.1/payload.js +209 -0
- package/dist/backup/finalize-import/0.1/payload.js.map +1 -0
- package/dist/backup/get-chunk/0.1/payload.d.ts +461 -0
- package/dist/backup/get-chunk/0.1/payload.d.ts.map +1 -0
- package/dist/backup/get-chunk/0.1/payload.js +250 -0
- package/dist/backup/get-chunk/0.1/payload.js.map +1 -0
- package/dist/backup/initiate-export/0.1/payload.d.ts +896 -0
- package/dist/backup/initiate-export/0.1/payload.d.ts.map +1 -0
- package/dist/backup/initiate-export/0.1/payload.js +507 -0
- package/dist/backup/initiate-export/0.1/payload.js.map +1 -0
- package/dist/backup/initiate-import/0.1/payload.d.ts +888 -0
- package/dist/backup/initiate-import/0.1/payload.d.ts.map +1 -0
- package/dist/backup/initiate-import/0.1/payload.js +504 -0
- package/dist/backup/initiate-import/0.1/payload.js.map +1 -0
- package/dist/backup/put-chunk/0.1/payload.d.ts +495 -0
- package/dist/backup/put-chunk/0.1/payload.d.ts.map +1 -0
- package/dist/backup/put-chunk/0.1/payload.js +265 -0
- package/dist/backup/put-chunk/0.1/payload.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/auth/step-up/approve-request/0.3/payload.ts +421 -0
- package/src/auth/step-up/approve-response/0.4/payload.ts +593 -0
- package/src/backup/abort/0.1/payload.ts +191 -0
- package/src/backup/complete-export/0.1/payload.ts +191 -0
- package/src/backup/finalize-import/0.1/payload.ts +279 -0
- package/src/backup/get-chunk/0.1/payload.ts +308 -0
- package/src/backup/initiate-export/0.1/payload.ts +564 -0
- package/src/backup/initiate-import/0.1/payload.ts +561 -0
- package/src/backup/put-chunk/0.1/payload.ts +331 -0
- package/src/index.ts +9 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/backup/initiate-import/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,UAAU,EAAE,iBAAiB,EAAE,aAAa,EAAE,SAAS,EAAE,eAAe,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,GAAG,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGhO;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,cAAc,EAAE,cAAc,CAAC;IAC/B;;OAEG;IACH,iBAAiB,EAAE,iBAAiB,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAE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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoN1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/backup/initiate-import/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/backup/initiate-import/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/backup/initiate-import/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/backup/initiate-import/0.1",
|
|
21
|
+
"title": "Backup — Initiate Import — payload",
|
|
22
|
+
"description": "Asks the recipient to open a slot for an encrypted bundle the producer is about to upload — by an HTTPS address (`stream`) or chunk by chunk over Trust Task documents (`chunkedTrustTask`) — pre-committing the digest and size, and for a chunked upload the chunk manifest, so the transfer is verifiable. 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
|
+
"expectedSha256",
|
|
27
|
+
"expectedSizeBytes"
|
|
28
|
+
],
|
|
29
|
+
"properties": {
|
|
30
|
+
"expectedSha256": {
|
|
31
|
+
"$ref": "#/$defs/ExpectedSha256",
|
|
32
|
+
"description": "Lowercase hex SHA-256 of the whole bundle about to be uploaded, committed before the upload begins. The recipient refuses bytes that hash differently, which is what bounds the damage from a leaked write token or a substituted chunk. A wire-integrity check only: it says the bytes that arrived are the bytes that were sent, and nothing about whether they are worth applying."
|
|
33
|
+
},
|
|
34
|
+
"expectedSizeBytes": {
|
|
35
|
+
"$ref": "#/$defs/ExpectedSizeBytes",
|
|
36
|
+
"description": "Byte count of the upload. Lets the recipient size the slot and refuse a truncated or oversized transfer without hashing it first."
|
|
37
|
+
},
|
|
38
|
+
"algorithm": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"minLength": 1,
|
|
41
|
+
"maxLength": 64,
|
|
42
|
+
"description": "Requested transport mechanism — how the bytes move, not how they are encrypted. This version defines `stream` (what an absent member means) and `chunkedTrustTask`. Deliberately not an enum, so a recipient offering more can be asked for it without a specification revision; one that does not implement the request refuses with unsupportedAlgorithm."
|
|
43
|
+
},
|
|
44
|
+
"chunks": {
|
|
45
|
+
"$ref": "#/$defs/ChunkManifest",
|
|
46
|
+
"description": "The chunk manifest the upload will follow. REQUIRED when `algorithm` is `chunkedTrustTask` and forbidden otherwise — a rule over two members that this schema does not express; a recipient refuses a violation with invalidManifest. Pre-committed for the same reason the whole-bundle digest is: the recipient knows what each chunk must be before it receives any."
|
|
47
|
+
},
|
|
48
|
+
"ext": {
|
|
49
|
+
"$ref": "#/$defs/Ext",
|
|
50
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"$defs": {
|
|
54
|
+
"Response": {
|
|
55
|
+
"$anchor": "response",
|
|
56
|
+
"title": "Backup — Initiate Import — response payload",
|
|
57
|
+
"type": "object",
|
|
58
|
+
"additionalProperties": false,
|
|
59
|
+
"required": [
|
|
60
|
+
"descriptor"
|
|
61
|
+
],
|
|
62
|
+
"properties": {
|
|
63
|
+
"descriptor": {
|
|
64
|
+
"$ref": "#/$defs/BundleDescriptor",
|
|
65
|
+
"description": "Where or how to write the bytes, on what terms, and until when."
|
|
66
|
+
},
|
|
67
|
+
"completionHint": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"maxLength": 1024,
|
|
70
|
+
"description": "Operator-facing text describing how to complete the upload. Advisory: a producer must not parse it or derive behaviour from it, and a recipient must not put a secret in it."
|
|
71
|
+
},
|
|
72
|
+
"ext": {
|
|
73
|
+
"$ref": "#/$defs/Ext",
|
|
74
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"Ext": {
|
|
79
|
+
"title": "Ext",
|
|
80
|
+
"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.",
|
|
81
|
+
"type": "object",
|
|
82
|
+
"minProperties": 1,
|
|
83
|
+
"additionalProperties": true,
|
|
84
|
+
"propertyNames": {
|
|
85
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"BundleDescriptor": {
|
|
89
|
+
"title": "BundleDescriptor",
|
|
90
|
+
"description": "The control-plane account of a bundle transfer: which algorithm, on what terms, until when. Exactly one of the two shapes — they are mutually exclusive, since StreamDescriptor requires `transportUrl` and `transportToken` and forbids `chunks`, and ChunkedDescriptor requires `chunks` and forbids both.",
|
|
91
|
+
"oneOf": [
|
|
92
|
+
{
|
|
93
|
+
"$ref": "#/$defs/StreamDescriptor"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"$ref": "#/$defs/ChunkedDescriptor"
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"ChunkedDescriptor": {
|
|
101
|
+
"title": "ChunkedDescriptor",
|
|
102
|
+
"type": "object",
|
|
103
|
+
"additionalProperties": false,
|
|
104
|
+
"description": "A descriptor for the `chunkedTrustTask` algorithm. Carries no address and no bearer token: every chunk moves in a Trust Task document whose sender the transport authenticates, so possession of a token would add nothing and would be one more secret to leak.",
|
|
105
|
+
"required": [
|
|
106
|
+
"bundleId",
|
|
107
|
+
"algorithm",
|
|
108
|
+
"chunks",
|
|
109
|
+
"expectedSha256",
|
|
110
|
+
"expectedSizeBytes",
|
|
111
|
+
"expiresAt"
|
|
112
|
+
],
|
|
113
|
+
"properties": {
|
|
114
|
+
"bundleId": {
|
|
115
|
+
"$ref": "#/$defs/BundleId"
|
|
116
|
+
},
|
|
117
|
+
"algorithm": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"enum": [
|
|
120
|
+
"chunkedTrustTask"
|
|
121
|
+
],
|
|
122
|
+
"description": "Discriminates this shape from StreamDescriptor."
|
|
123
|
+
},
|
|
124
|
+
"chunks": {
|
|
125
|
+
"$ref": "#/$defs/ChunkManifest"
|
|
126
|
+
},
|
|
127
|
+
"expectedSha256": {
|
|
128
|
+
"$ref": "#/$defs/ExpectedSha256"
|
|
129
|
+
},
|
|
130
|
+
"expectedSizeBytes": {
|
|
131
|
+
"$ref": "#/$defs/ExpectedSizeBytes"
|
|
132
|
+
},
|
|
133
|
+
"expiresAt": {
|
|
134
|
+
"$ref": "#/$defs/ExpiresAt"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"ExpiresAt": {
|
|
139
|
+
"title": "ExpiresAt",
|
|
140
|
+
"description": "After which the bundle is collected: staged bytes discarded, tokens and chunk requests refused. Short by design. For a chunked transfer a recipient may move it later as chunks are exchanged, never past its own ceiling — each chunk response reports the current value.",
|
|
141
|
+
"type": "string",
|
|
142
|
+
"format": "date-time"
|
|
143
|
+
},
|
|
144
|
+
"ExpectedSizeBytes": {
|
|
145
|
+
"title": "ExpectedSizeBytes",
|
|
146
|
+
"description": "Total byte count of the bundle. A zero-length bundle is not a degenerate success — nothing was serialized — so the floor is 1.",
|
|
147
|
+
"type": "integer",
|
|
148
|
+
"minimum": 1
|
|
149
|
+
},
|
|
150
|
+
"ExpectedSha256": {
|
|
151
|
+
"title": "ExpectedSha256",
|
|
152
|
+
"description": "Lowercase hex SHA-256 of the whole bundle's bytes. Kept in the hex form the 1.0 descriptor published rather than moved to DigestMultibase, because it is an unchanged member of an existing descriptor and re-encoding it would break every stream producer for no gain in what it checks. For a chunked transfer it is the check over the reassembled bundle, applied after every chunk has verified individually, so that a correct set of chunks assembled in the wrong order is still caught.",
|
|
153
|
+
"type": "string",
|
|
154
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
155
|
+
},
|
|
156
|
+
"ChunkManifest": {
|
|
157
|
+
"title": "ChunkManifest",
|
|
158
|
+
"description": "The terms of a `chunkedTrustTask` transfer, committed before any chunk moves. On export the recipient states them in the descriptor; on import the producer pre-commits them in the request and the recipient echoes them. Either way the manifest arrives in a document whose proof is REQUIRED, so the per-chunk digests are authenticated by the party that computed them and each chunk can be verified — and a single bad chunk re-fetched or refused — on arrival rather than only after reassembly.\n\nConsistency rules JSON Schema cannot state: `chunkCount` MUST equal ceil(expectedSizeBytes / chunkSize) for the bundle the manifest describes, and `chunkDigests` MUST have exactly `chunkCount` items. A party receiving a manifest violating either MUST refuse it.",
|
|
159
|
+
"type": "object",
|
|
160
|
+
"additionalProperties": false,
|
|
161
|
+
"required": [
|
|
162
|
+
"chunkSize",
|
|
163
|
+
"chunkCount",
|
|
164
|
+
"chunkDigests"
|
|
165
|
+
],
|
|
166
|
+
"properties": {
|
|
167
|
+
"chunkSize": {
|
|
168
|
+
"$ref": "#/$defs/ChunkSize"
|
|
169
|
+
},
|
|
170
|
+
"chunkCount": {
|
|
171
|
+
"$ref": "#/$defs/ChunkCount"
|
|
172
|
+
},
|
|
173
|
+
"chunkDigests": {
|
|
174
|
+
"type": "array",
|
|
175
|
+
"minItems": 1,
|
|
176
|
+
"maxItems": 4096,
|
|
177
|
+
"description": "Digest of each chunk's raw bytes (not of its base64url encoding), in index order. Compared as decoded multihash bytes, never as encoded strings. sha2-256 is RECOMMENDED and MUST be implemented by every party; a party that does not implement the hash a digest names MUST treat the manifest as unverifiable rather than skip the check.",
|
|
178
|
+
"items": {
|
|
179
|
+
"$ref": "#/$defs/DigestMultibase"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"ChunkCount": {
|
|
185
|
+
"title": "ChunkCount",
|
|
186
|
+
"description": "Number of chunks in the bundle, equal to ceil(expectedSizeBytes / chunkSize). Bounded at 4096 so that the manifest itself — one digest per chunk — fits in the single document that carries it under the same message-size reasoning as a chunk.",
|
|
187
|
+
"type": "integer",
|
|
188
|
+
"minimum": 1,
|
|
189
|
+
"maximum": 4096
|
|
190
|
+
},
|
|
191
|
+
"ChunkSize": {
|
|
192
|
+
"title": "ChunkSize",
|
|
193
|
+
"description": "Size in bytes of every chunk except the last, which carries the remainder and is between 1 and this value inclusive. The ceiling of 262144 (256 KiB) is normative and is derived in `vta/backup/initiate-export/1.1` under Chunked transfer: it is the largest power of two whose `get-chunk` or `put-chunk` document still fits a 1 MiB mediator message after base64url encoding of `data`, DIDComm authcrypt encoding, and two nested forward wrappers. The floor of 16384 keeps a 1 GiB bundle within `ChunkCount`'s ceiling at sizes a constrained transport can still choose.",
|
|
194
|
+
"type": "integer",
|
|
195
|
+
"minimum": 16384,
|
|
196
|
+
"maximum": 262144
|
|
197
|
+
},
|
|
198
|
+
"DigestMultibase": {
|
|
199
|
+
"title": "DigestMultibase",
|
|
200
|
+
"description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
|
|
201
|
+
"type": "string",
|
|
202
|
+
"minLength": 16,
|
|
203
|
+
"pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
|
|
204
|
+
"examples": [
|
|
205
|
+
"zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
"BundleId": {
|
|
209
|
+
"title": "BundleId",
|
|
210
|
+
"description": "Handle for a bundle across its whole lifecycle. Recipient-generated and unguessable, which is what lets an unauthorized reference be answered as not-found without confirming existence. Opaque: a producer quotes what it was given and must not derive, guess or enumerate one.",
|
|
211
|
+
"type": "string",
|
|
212
|
+
"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}$"
|
|
213
|
+
},
|
|
214
|
+
"StreamDescriptor": {
|
|
215
|
+
"title": "StreamDescriptor",
|
|
216
|
+
"type": "object",
|
|
217
|
+
"additionalProperties": false,
|
|
218
|
+
"description": "A descriptor for a transfer that happens outside Trust Task documents, at an address the recipient publishes — the `stream` algorithm, and any other algorithm a recipient offers that is shaped as an address plus a bearer credential. Identical in members to the `vta/backup/*/1.0` descriptor.",
|
|
219
|
+
"required": [
|
|
220
|
+
"bundleId",
|
|
221
|
+
"algorithm",
|
|
222
|
+
"transportUrl",
|
|
223
|
+
"transportToken",
|
|
224
|
+
"expectedSha256",
|
|
225
|
+
"expectedSizeBytes",
|
|
226
|
+
"expiresAt"
|
|
227
|
+
],
|
|
228
|
+
"properties": {
|
|
229
|
+
"bundleId": {
|
|
230
|
+
"$ref": "#/$defs/BundleId"
|
|
231
|
+
},
|
|
232
|
+
"algorithm": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"minLength": 1,
|
|
235
|
+
"maxLength": 64,
|
|
236
|
+
"description": "The mechanism in use. Never `chunkedTrustTask`, which has its own descriptor shape; a descriptor naming it with a transport address is malformed."
|
|
237
|
+
},
|
|
238
|
+
"transportUrl": {
|
|
239
|
+
"type": "string",
|
|
240
|
+
"format": "uri",
|
|
241
|
+
"maxLength": 2048,
|
|
242
|
+
"description": "Where to fetch (export) or write (import) the bytes. A recipient with no address at which it is reachable cannot produce this and refuses with transportUnavailable rather than returning an unusable one. An import address is write-only: staged bytes are never served back from it."
|
|
243
|
+
},
|
|
244
|
+
"transportToken": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"minLength": 1,
|
|
247
|
+
"maxLength": 1024,
|
|
248
|
+
"description": "Bearer credential for transportUrl, presented in the X-Backup-Token header. Minted per bundle and never reused. A recipient should store only a hash of it, and should accept an export token once."
|
|
249
|
+
},
|
|
250
|
+
"expectedSha256": {
|
|
251
|
+
"$ref": "#/$defs/ExpectedSha256"
|
|
252
|
+
},
|
|
253
|
+
"expectedSizeBytes": {
|
|
254
|
+
"$ref": "#/$defs/ExpectedSizeBytes"
|
|
255
|
+
},
|
|
256
|
+
"expiresAt": {
|
|
257
|
+
"$ref": "#/$defs/ExpiresAt"
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
264
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
265
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
266
|
+
"$ref": "#/$defs/Response",
|
|
267
|
+
"$defs": {
|
|
268
|
+
"Response": {
|
|
269
|
+
"$anchor": "response",
|
|
270
|
+
"title": "Backup — Initiate Import — response payload",
|
|
271
|
+
"type": "object",
|
|
272
|
+
"additionalProperties": false,
|
|
273
|
+
"required": [
|
|
274
|
+
"descriptor"
|
|
275
|
+
],
|
|
276
|
+
"properties": {
|
|
277
|
+
"descriptor": {
|
|
278
|
+
"$ref": "#/$defs/BundleDescriptor",
|
|
279
|
+
"description": "Where or how to write the bytes, on what terms, and until when."
|
|
280
|
+
},
|
|
281
|
+
"completionHint": {
|
|
282
|
+
"type": "string",
|
|
283
|
+
"maxLength": 1024,
|
|
284
|
+
"description": "Operator-facing text describing how to complete the upload. Advisory: a producer must not parse it or derive behaviour from it, and a recipient must not put a secret in it."
|
|
285
|
+
},
|
|
286
|
+
"ext": {
|
|
287
|
+
"$ref": "#/$defs/Ext",
|
|
288
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"Ext": {
|
|
293
|
+
"title": "Ext",
|
|
294
|
+
"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.",
|
|
295
|
+
"type": "object",
|
|
296
|
+
"minProperties": 1,
|
|
297
|
+
"additionalProperties": true,
|
|
298
|
+
"propertyNames": {
|
|
299
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"BundleDescriptor": {
|
|
303
|
+
"title": "BundleDescriptor",
|
|
304
|
+
"description": "The control-plane account of a bundle transfer: which algorithm, on what terms, until when. Exactly one of the two shapes — they are mutually exclusive, since StreamDescriptor requires `transportUrl` and `transportToken` and forbids `chunks`, and ChunkedDescriptor requires `chunks` and forbids both.",
|
|
305
|
+
"oneOf": [
|
|
306
|
+
{
|
|
307
|
+
"$ref": "#/$defs/StreamDescriptor"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"$ref": "#/$defs/ChunkedDescriptor"
|
|
311
|
+
}
|
|
312
|
+
]
|
|
313
|
+
},
|
|
314
|
+
"ChunkedDescriptor": {
|
|
315
|
+
"title": "ChunkedDescriptor",
|
|
316
|
+
"type": "object",
|
|
317
|
+
"additionalProperties": false,
|
|
318
|
+
"description": "A descriptor for the `chunkedTrustTask` algorithm. Carries no address and no bearer token: every chunk moves in a Trust Task document whose sender the transport authenticates, so possession of a token would add nothing and would be one more secret to leak.",
|
|
319
|
+
"required": [
|
|
320
|
+
"bundleId",
|
|
321
|
+
"algorithm",
|
|
322
|
+
"chunks",
|
|
323
|
+
"expectedSha256",
|
|
324
|
+
"expectedSizeBytes",
|
|
325
|
+
"expiresAt"
|
|
326
|
+
],
|
|
327
|
+
"properties": {
|
|
328
|
+
"bundleId": {
|
|
329
|
+
"$ref": "#/$defs/BundleId"
|
|
330
|
+
},
|
|
331
|
+
"algorithm": {
|
|
332
|
+
"type": "string",
|
|
333
|
+
"enum": [
|
|
334
|
+
"chunkedTrustTask"
|
|
335
|
+
],
|
|
336
|
+
"description": "Discriminates this shape from StreamDescriptor."
|
|
337
|
+
},
|
|
338
|
+
"chunks": {
|
|
339
|
+
"$ref": "#/$defs/ChunkManifest"
|
|
340
|
+
},
|
|
341
|
+
"expectedSha256": {
|
|
342
|
+
"$ref": "#/$defs/ExpectedSha256"
|
|
343
|
+
},
|
|
344
|
+
"expectedSizeBytes": {
|
|
345
|
+
"$ref": "#/$defs/ExpectedSizeBytes"
|
|
346
|
+
},
|
|
347
|
+
"expiresAt": {
|
|
348
|
+
"$ref": "#/$defs/ExpiresAt"
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
"ExpiresAt": {
|
|
353
|
+
"title": "ExpiresAt",
|
|
354
|
+
"description": "After which the bundle is collected: staged bytes discarded, tokens and chunk requests refused. Short by design. For a chunked transfer a recipient may move it later as chunks are exchanged, never past its own ceiling — each chunk response reports the current value.",
|
|
355
|
+
"type": "string",
|
|
356
|
+
"format": "date-time"
|
|
357
|
+
},
|
|
358
|
+
"ExpectedSizeBytes": {
|
|
359
|
+
"title": "ExpectedSizeBytes",
|
|
360
|
+
"description": "Total byte count of the bundle. A zero-length bundle is not a degenerate success — nothing was serialized — so the floor is 1.",
|
|
361
|
+
"type": "integer",
|
|
362
|
+
"minimum": 1
|
|
363
|
+
},
|
|
364
|
+
"ExpectedSha256": {
|
|
365
|
+
"title": "ExpectedSha256",
|
|
366
|
+
"description": "Lowercase hex SHA-256 of the whole bundle's bytes. Kept in the hex form the 1.0 descriptor published rather than moved to DigestMultibase, because it is an unchanged member of an existing descriptor and re-encoding it would break every stream producer for no gain in what it checks. For a chunked transfer it is the check over the reassembled bundle, applied after every chunk has verified individually, so that a correct set of chunks assembled in the wrong order is still caught.",
|
|
367
|
+
"type": "string",
|
|
368
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
369
|
+
},
|
|
370
|
+
"ChunkManifest": {
|
|
371
|
+
"title": "ChunkManifest",
|
|
372
|
+
"description": "The terms of a `chunkedTrustTask` transfer, committed before any chunk moves. On export the recipient states them in the descriptor; on import the producer pre-commits them in the request and the recipient echoes them. Either way the manifest arrives in a document whose proof is REQUIRED, so the per-chunk digests are authenticated by the party that computed them and each chunk can be verified — and a single bad chunk re-fetched or refused — on arrival rather than only after reassembly.\n\nConsistency rules JSON Schema cannot state: `chunkCount` MUST equal ceil(expectedSizeBytes / chunkSize) for the bundle the manifest describes, and `chunkDigests` MUST have exactly `chunkCount` items. A party receiving a manifest violating either MUST refuse it.",
|
|
373
|
+
"type": "object",
|
|
374
|
+
"additionalProperties": false,
|
|
375
|
+
"required": [
|
|
376
|
+
"chunkSize",
|
|
377
|
+
"chunkCount",
|
|
378
|
+
"chunkDigests"
|
|
379
|
+
],
|
|
380
|
+
"properties": {
|
|
381
|
+
"chunkSize": {
|
|
382
|
+
"$ref": "#/$defs/ChunkSize"
|
|
383
|
+
},
|
|
384
|
+
"chunkCount": {
|
|
385
|
+
"$ref": "#/$defs/ChunkCount"
|
|
386
|
+
},
|
|
387
|
+
"chunkDigests": {
|
|
388
|
+
"type": "array",
|
|
389
|
+
"minItems": 1,
|
|
390
|
+
"maxItems": 4096,
|
|
391
|
+
"description": "Digest of each chunk's raw bytes (not of its base64url encoding), in index order. Compared as decoded multihash bytes, never as encoded strings. sha2-256 is RECOMMENDED and MUST be implemented by every party; a party that does not implement the hash a digest names MUST treat the manifest as unverifiable rather than skip the check.",
|
|
392
|
+
"items": {
|
|
393
|
+
"$ref": "#/$defs/DigestMultibase"
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"ChunkCount": {
|
|
399
|
+
"title": "ChunkCount",
|
|
400
|
+
"description": "Number of chunks in the bundle, equal to ceil(expectedSizeBytes / chunkSize). Bounded at 4096 so that the manifest itself — one digest per chunk — fits in the single document that carries it under the same message-size reasoning as a chunk.",
|
|
401
|
+
"type": "integer",
|
|
402
|
+
"minimum": 1,
|
|
403
|
+
"maximum": 4096
|
|
404
|
+
},
|
|
405
|
+
"ChunkSize": {
|
|
406
|
+
"title": "ChunkSize",
|
|
407
|
+
"description": "Size in bytes of every chunk except the last, which carries the remainder and is between 1 and this value inclusive. The ceiling of 262144 (256 KiB) is normative and is derived in `vta/backup/initiate-export/1.1` under Chunked transfer: it is the largest power of two whose `get-chunk` or `put-chunk` document still fits a 1 MiB mediator message after base64url encoding of `data`, DIDComm authcrypt encoding, and two nested forward wrappers. The floor of 16384 keeps a 1 GiB bundle within `ChunkCount`'s ceiling at sizes a constrained transport can still choose.",
|
|
408
|
+
"type": "integer",
|
|
409
|
+
"minimum": 16384,
|
|
410
|
+
"maximum": 262144
|
|
411
|
+
},
|
|
412
|
+
"DigestMultibase": {
|
|
413
|
+
"title": "DigestMultibase",
|
|
414
|
+
"description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
|
|
415
|
+
"type": "string",
|
|
416
|
+
"minLength": 16,
|
|
417
|
+
"pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
|
|
418
|
+
"examples": [
|
|
419
|
+
"zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
|
|
420
|
+
]
|
|
421
|
+
},
|
|
422
|
+
"BundleId": {
|
|
423
|
+
"title": "BundleId",
|
|
424
|
+
"description": "Handle for a bundle across its whole lifecycle. Recipient-generated and unguessable, which is what lets an unauthorized reference be answered as not-found without confirming existence. Opaque: a producer quotes what it was given and must not derive, guess or enumerate one.",
|
|
425
|
+
"type": "string",
|
|
426
|
+
"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}$"
|
|
427
|
+
},
|
|
428
|
+
"StreamDescriptor": {
|
|
429
|
+
"title": "StreamDescriptor",
|
|
430
|
+
"type": "object",
|
|
431
|
+
"additionalProperties": false,
|
|
432
|
+
"description": "A descriptor for a transfer that happens outside Trust Task documents, at an address the recipient publishes — the `stream` algorithm, and any other algorithm a recipient offers that is shaped as an address plus a bearer credential. Identical in members to the `vta/backup/*/1.0` descriptor.",
|
|
433
|
+
"required": [
|
|
434
|
+
"bundleId",
|
|
435
|
+
"algorithm",
|
|
436
|
+
"transportUrl",
|
|
437
|
+
"transportToken",
|
|
438
|
+
"expectedSha256",
|
|
439
|
+
"expectedSizeBytes",
|
|
440
|
+
"expiresAt"
|
|
441
|
+
],
|
|
442
|
+
"properties": {
|
|
443
|
+
"bundleId": {
|
|
444
|
+
"$ref": "#/$defs/BundleId"
|
|
445
|
+
},
|
|
446
|
+
"algorithm": {
|
|
447
|
+
"type": "string",
|
|
448
|
+
"minLength": 1,
|
|
449
|
+
"maxLength": 64,
|
|
450
|
+
"description": "The mechanism in use. Never `chunkedTrustTask`, which has its own descriptor shape; a descriptor naming it with a transport address is malformed."
|
|
451
|
+
},
|
|
452
|
+
"transportUrl": {
|
|
453
|
+
"type": "string",
|
|
454
|
+
"format": "uri",
|
|
455
|
+
"maxLength": 2048,
|
|
456
|
+
"description": "Where to fetch (export) or write (import) the bytes. A recipient with no address at which it is reachable cannot produce this and refuses with transportUnavailable rather than returning an unusable one. An import address is write-only: staged bytes are never served back from it."
|
|
457
|
+
},
|
|
458
|
+
"transportToken": {
|
|
459
|
+
"type": "string",
|
|
460
|
+
"minLength": 1,
|
|
461
|
+
"maxLength": 1024,
|
|
462
|
+
"description": "Bearer credential for transportUrl, presented in the X-Backup-Token header. Minted per bundle and never reused. A recipient should store only a hash of it, and should accept an export token once."
|
|
463
|
+
},
|
|
464
|
+
"expectedSha256": {
|
|
465
|
+
"$ref": "#/$defs/ExpectedSha256"
|
|
466
|
+
},
|
|
467
|
+
"expectedSizeBytes": {
|
|
468
|
+
"$ref": "#/$defs/ExpectedSizeBytes"
|
|
469
|
+
},
|
|
470
|
+
"expiresAt": {
|
|
471
|
+
"$ref": "#/$defs/ExpiresAt"
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
};
|
|
477
|
+
/**
|
|
478
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
479
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
480
|
+
* per-specification and cannot be derived from the document alone, and
|
|
481
|
+
* item 2 needs the schema this carries.
|
|
482
|
+
*/
|
|
483
|
+
export const SPEC = {
|
|
484
|
+
typeUri: TYPE_URI,
|
|
485
|
+
isBearer: false,
|
|
486
|
+
isProofRequired: true,
|
|
487
|
+
isRecipientRequired: true,
|
|
488
|
+
isIssuedAtRequired: true,
|
|
489
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
490
|
+
};
|
|
491
|
+
/**
|
|
492
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
493
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
494
|
+
* parties (§7.3 item 5).
|
|
495
|
+
*/
|
|
496
|
+
export const RESPONSE_SPEC = {
|
|
497
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
498
|
+
isBearer: false,
|
|
499
|
+
isProofRequired: true,
|
|
500
|
+
isRecipientRequired: true,
|
|
501
|
+
isIssuedAtRequired: true,
|
|
502
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
503
|
+
};
|
|
504
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/backup/initiate-import/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAgDH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,wDAAiE,CAAC;AAK1F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,iEAA0E,CAAC;AAK5G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,wDAAwD;IAC/D,OAAO,EAAE,oCAAoC;IAC7C,aAAa,EAAE,4aAA4a;IAC3b,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,gBAAgB;QAChB,mBAAmB;KACpB;IACD,YAAY,EAAE;QACZ,gBAAgB,EAAE;YAChB,MAAM,EAAE,wBAAwB;YAChC,aAAa,EAAE,uXAAuX;SACvY;QACD,mBAAmB,EAAE;YACnB,MAAM,EAAE,2BAA2B;YACnC,aAAa,EAAE,mIAAmI;SACnJ;QACD,WAAW,EAAE;YACX,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,EAAE;YACf,aAAa,EAAE,6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