@openvtc/trust-tasks 0.26.3 → 0.26.5

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 (53) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/dist/_shared/components.d.ts +47 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +8 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +8 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/rooms/_shared/0.1/blobs.d.ts +1 -1
  9. package/dist/rooms/_shared/0.1/blobs.d.ts.map +1 -1
  10. package/dist/rooms/blobs/get/0.2/payload.d.ts +1005 -0
  11. package/dist/rooms/blobs/get/0.2/payload.d.ts.map +1 -0
  12. package/dist/rooms/blobs/get/0.2/payload.js +559 -0
  13. package/dist/rooms/blobs/get/0.2/payload.js.map +1 -0
  14. package/dist/rooms/blobs/upload/abort/0.2/payload.d.ts +263 -0
  15. package/dist/rooms/blobs/upload/abort/0.2/payload.d.ts.map +1 -0
  16. package/dist/rooms/blobs/upload/abort/0.2/payload.js +151 -0
  17. package/dist/rooms/blobs/upload/abort/0.2/payload.js.map +1 -0
  18. package/dist/rooms/blobs/upload/begin/0.2/payload.d.ts +1191 -0
  19. package/dist/rooms/blobs/upload/begin/0.2/payload.d.ts.map +1 -0
  20. package/dist/rooms/blobs/upload/begin/0.2/payload.js +659 -0
  21. package/dist/rooms/blobs/upload/begin/0.2/payload.js.map +1 -0
  22. package/dist/rooms/blobs/upload/chunk/0.2/payload.d.ts +459 -0
  23. package/dist/rooms/blobs/upload/chunk/0.2/payload.d.ts.map +1 -0
  24. package/dist/rooms/blobs/upload/chunk/0.2/payload.js +256 -0
  25. package/dist/rooms/blobs/upload/chunk/0.2/payload.js.map +1 -0
  26. package/dist/rooms/blobs/upload/commit/0.2/payload.d.ts +326 -0
  27. package/dist/rooms/blobs/upload/commit/0.2/payload.d.ts.map +1 -0
  28. package/dist/rooms/blobs/upload/commit/0.2/payload.js +185 -0
  29. package/dist/rooms/blobs/upload/commit/0.2/payload.js.map +1 -0
  30. package/dist/rooms/keys/act/0.1/payload.d.ts +546 -0
  31. package/dist/rooms/keys/act/0.1/payload.d.ts.map +1 -0
  32. package/dist/rooms/keys/act/0.1/payload.js +305 -0
  33. package/dist/rooms/keys/act/0.1/payload.js.map +1 -0
  34. package/dist/rooms/keys/seal/0.2/payload.d.ts +368 -0
  35. package/dist/rooms/keys/seal/0.2/payload.d.ts.map +1 -0
  36. package/dist/rooms/keys/seal/0.2/payload.js +205 -0
  37. package/dist/rooms/keys/seal/0.2/payload.js.map +1 -0
  38. package/dist/rooms/owner/group/renew/0.1/payload.d.ts +299 -0
  39. package/dist/rooms/owner/group/renew/0.1/payload.d.ts.map +1 -0
  40. package/dist/rooms/owner/group/renew/0.1/payload.js +163 -0
  41. package/dist/rooms/owner/group/renew/0.1/payload.js.map +1 -0
  42. package/package.json +1 -1
  43. package/src/_shared/components.ts +47 -0
  44. package/src/index.ts +8 -0
  45. package/src/rooms/_shared/0.1/blobs.ts +1 -1
  46. package/src/rooms/blobs/get/0.2/payload.ts +625 -0
  47. package/src/rooms/blobs/upload/abort/0.2/payload.ts +187 -0
  48. package/src/rooms/blobs/upload/begin/0.2/payload.ts +731 -0
  49. package/src/rooms/blobs/upload/chunk/0.2/payload.ts +304 -0
  50. package/src/rooms/blobs/upload/commit/0.2/payload.ts +224 -0
  51. package/src/rooms/keys/act/0.1/payload.ts +380 -0
  52. package/src/rooms/keys/seal/0.2/payload.ts +256 -0
  53. package/src/rooms/owner/group/renew/0.1/payload.ts +213 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/rooms/blobs/upload/begin/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA+DH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,0DAAmE,CAAC;AAK5F,qEAAqE;AACrE,MAAM,CAAC,M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B,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,YAAY;gBACZ,WAAW;aACZ;YACD,aAAa,EAAE,w5BAAw5B;YACv6B,YAAY,EAAE;gBACZ,YAAY,EAAE;oBACZ,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,4JAA4J;iBAC5K;gBACD,WAAW,EAAE;oBACX,MAAM,EAAE,OAAO;oBACf,UAAU,EAAE,CAAC;oBACb,UAAU,EAAE,CAAC;oBACb,OAAO,EAAE;wBACP,MAAM,EAAE,QAAQ;qBACjB;oBACD,aAAa,EAAE,odAAod;iBACpe;gBACD,gBAAgB,EAAE;oBAChB,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,mYAAmY;iBACnZ;aACF;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
@@ -0,0 +1,459 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/rooms/blobs/upload/chunk/0.2/payload.schema.json
4
+ */
5
+ import type { ChunkData, ChunkIndex, DigestMultibase, ExpiresAt, Ext, TransferId } from "../../../../../_shared/components.js";
6
+ /**
7
+ * One chunk of an open blob upload. The outer document members are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface RoomsBlobsUploadChunkPayload {
10
+ uploadId: TransferId;
11
+ index: ChunkIndex;
12
+ /**
13
+ * The digest of this chunk's raw bytes, restated from the manifest, so a chunk sent to the wrong index is refused on arrival.
14
+ */
15
+ digestMultibase: DigestMultibase;
16
+ data: ChunkData;
17
+ ext?: Ext;
18
+ }
19
+ /**
20
+ * Success response to rooms/blobs/upload/chunk. Type https://trusttasks.org/spec/rooms/blobs/upload/chunk/0.2#response.
21
+ */
22
+ export interface RoomsBlobsUploadChunkResponsePayload {
23
+ uploadId: TransferId;
24
+ index: ChunkIndex;
25
+ /**
26
+ * Whether this request is what stored the chunk. False means identical bytes were already staged at this index — a success, and why a chunk can be re-sent safely.
27
+ */
28
+ stored: boolean;
29
+ /**
30
+ * Indices still missing after this write.
31
+ */
32
+ remainingCount: number;
33
+ expiresAt: ExpiresAt;
34
+ ext?: Ext;
35
+ }
36
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
37
+ export type { ChunkData, ChunkIndex, DigestMultibase, ExpiresAt, Ext, TransferId };
38
+ /** Trust Task type URI. */
39
+ export declare const TYPE_URI: "https://trusttasks.org/spec/rooms/blobs/upload/chunk/0.2";
40
+ /** Stable alias for this specification's request payload shape. */
41
+ export type Payload = RoomsBlobsUploadChunkPayload;
42
+ /** Trust Task response type URI (request type URI + "#response"). */
43
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/rooms/blobs/upload/chunk/0.2#response";
44
+ /** Stable alias for this specification's success-response payload shape. */
45
+ export type Response = RoomsBlobsUploadChunkResponsePayload;
46
+ /**
47
+ * This specification's payload schema, as a value.
48
+ *
49
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
50
+ * rather than only as a `.json` file because TypeScript types are erased
51
+ * at runtime: without a schema a consumer has nothing to validate, and
52
+ * every REQUIRED payload member is optional in practice. Cross-file
53
+ * `$ref`s are already inlined, so it needs no resolver.
54
+ */
55
+ export declare const PAYLOAD_SCHEMA: {
56
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
57
+ readonly $id: "https://trusttasks.org/spec/rooms/blobs/upload/chunk/0.2";
58
+ readonly title: "Rooms Blobs — Upload — Chunk — payload";
59
+ readonly description: "One chunk of an open blob upload. The outer document members are owned by the framework — SPEC §6.3.";
60
+ readonly type: "object";
61
+ readonly additionalProperties: false;
62
+ readonly required: readonly ["uploadId", "index", "digestMultibase", "data"];
63
+ readonly properties: {
64
+ readonly uploadId: {
65
+ readonly $ref: "#/$defs/TransferId";
66
+ };
67
+ readonly index: {
68
+ readonly $ref: "#/$defs/ChunkIndex";
69
+ };
70
+ readonly digestMultibase: {
71
+ readonly $ref: "#/$defs/DigestMultibase";
72
+ readonly description: "The digest of this chunk's raw bytes, restated from the manifest, so a chunk sent to the wrong index is refused on arrival.";
73
+ };
74
+ readonly data: {
75
+ readonly $ref: "#/$defs/ChunkData";
76
+ };
77
+ readonly ext: {
78
+ readonly $ref: "#/$defs/Ext";
79
+ };
80
+ };
81
+ readonly $defs: {
82
+ readonly Response: {
83
+ readonly $anchor: "response";
84
+ readonly title: "Rooms Blobs — Upload — Chunk — response payload";
85
+ readonly description: "Success response to rooms/blobs/upload/chunk. Type https://trusttasks.org/spec/rooms/blobs/upload/chunk/0.2#response.";
86
+ readonly type: "object";
87
+ readonly additionalProperties: false;
88
+ readonly required: readonly ["uploadId", "index", "stored", "remainingCount", "expiresAt"];
89
+ readonly properties: {
90
+ readonly uploadId: {
91
+ readonly $ref: "#/$defs/TransferId";
92
+ };
93
+ readonly index: {
94
+ readonly $ref: "#/$defs/ChunkIndex";
95
+ };
96
+ readonly stored: {
97
+ readonly type: "boolean";
98
+ readonly description: "Whether this request is what stored the chunk. False means identical bytes were already staged at this index — a success, and why a chunk can be re-sent safely.";
99
+ };
100
+ readonly remainingCount: {
101
+ readonly type: "integer";
102
+ readonly minimum: 0;
103
+ readonly maximum: 4095;
104
+ readonly description: "Indices still missing after this write.";
105
+ };
106
+ readonly expiresAt: {
107
+ readonly $ref: "#/$defs/ExpiresAt";
108
+ };
109
+ readonly ext: {
110
+ readonly $ref: "#/$defs/Ext";
111
+ };
112
+ };
113
+ };
114
+ readonly Ext: {
115
+ readonly title: "Ext";
116
+ 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.";
117
+ readonly type: "object";
118
+ readonly minProperties: 1;
119
+ readonly additionalProperties: true;
120
+ readonly propertyNames: {
121
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
122
+ };
123
+ };
124
+ readonly ExpiresAt: {
125
+ readonly title: "ExpiresAt";
126
+ readonly 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.";
127
+ readonly type: "string";
128
+ readonly format: "date-time";
129
+ };
130
+ readonly ChunkIndex: {
131
+ readonly title: "ChunkIndex";
132
+ readonly description: "Zero-based position of a chunk within its bundle. Valid values are 0 to chunkCount − 1; an index outside that range is refused with chunkOutOfRange rather than validated here, because the bound depends on the bundle.";
133
+ readonly type: "integer";
134
+ readonly minimum: 0;
135
+ readonly maximum: 4095;
136
+ };
137
+ readonly TransferId: {
138
+ readonly title: "TransferId";
139
+ readonly type: "string";
140
+ 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}$";
141
+ readonly description: "Handle for one upload (begin → chunk → commit or abort) or one download (get → chunk). Host-generated and unguessable, which is what lets a reference to another party's transfer be answered as not-found without confirming that it exists. Bound at creation to the party that opened it: the subject the host authenticated for the opening request. Opaque: a producer quotes what it was given.";
142
+ };
143
+ readonly ChunkData: {
144
+ readonly title: "ChunkData";
145
+ readonly description: "The chunk's bytes, base64url-encoded without padding (RFC 4648 §5). Bounded at 349526 characters, the unpadded encoding of a 262144-byte chunk. These are bytes of the encrypted bundle, so a chunk read in isolation reveals nothing of the agent's state — but a complete set of chunks is the export, and is to be handled as such.";
146
+ readonly type: "string";
147
+ readonly minLength: 2;
148
+ readonly maxLength: 349526;
149
+ readonly pattern: "^[A-Za-z0-9_-]+$";
150
+ };
151
+ readonly DigestMultibase: {
152
+ readonly title: "DigestMultibase";
153
+ readonly 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`.";
154
+ readonly type: "string";
155
+ readonly minLength: 16;
156
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
157
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
158
+ };
159
+ };
160
+ };
161
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
162
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
163
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
164
+ readonly $ref: "#/$defs/Response";
165
+ readonly $defs: {
166
+ readonly Response: {
167
+ readonly $anchor: "response";
168
+ readonly title: "Rooms Blobs — Upload — Chunk — response payload";
169
+ readonly description: "Success response to rooms/blobs/upload/chunk. Type https://trusttasks.org/spec/rooms/blobs/upload/chunk/0.2#response.";
170
+ readonly type: "object";
171
+ readonly additionalProperties: false;
172
+ readonly required: readonly ["uploadId", "index", "stored", "remainingCount", "expiresAt"];
173
+ readonly properties: {
174
+ readonly uploadId: {
175
+ readonly $ref: "#/$defs/TransferId";
176
+ };
177
+ readonly index: {
178
+ readonly $ref: "#/$defs/ChunkIndex";
179
+ };
180
+ readonly stored: {
181
+ readonly type: "boolean";
182
+ readonly description: "Whether this request is what stored the chunk. False means identical bytes were already staged at this index — a success, and why a chunk can be re-sent safely.";
183
+ };
184
+ readonly remainingCount: {
185
+ readonly type: "integer";
186
+ readonly minimum: 0;
187
+ readonly maximum: 4095;
188
+ readonly description: "Indices still missing after this write.";
189
+ };
190
+ readonly expiresAt: {
191
+ readonly $ref: "#/$defs/ExpiresAt";
192
+ };
193
+ readonly ext: {
194
+ readonly $ref: "#/$defs/Ext";
195
+ };
196
+ };
197
+ };
198
+ readonly Ext: {
199
+ readonly title: "Ext";
200
+ 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.";
201
+ readonly type: "object";
202
+ readonly minProperties: 1;
203
+ readonly additionalProperties: true;
204
+ readonly propertyNames: {
205
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
206
+ };
207
+ };
208
+ readonly ExpiresAt: {
209
+ readonly title: "ExpiresAt";
210
+ readonly 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.";
211
+ readonly type: "string";
212
+ readonly format: "date-time";
213
+ };
214
+ readonly ChunkIndex: {
215
+ readonly title: "ChunkIndex";
216
+ readonly description: "Zero-based position of a chunk within its bundle. Valid values are 0 to chunkCount − 1; an index outside that range is refused with chunkOutOfRange rather than validated here, because the bound depends on the bundle.";
217
+ readonly type: "integer";
218
+ readonly minimum: 0;
219
+ readonly maximum: 4095;
220
+ };
221
+ readonly TransferId: {
222
+ readonly title: "TransferId";
223
+ readonly type: "string";
224
+ 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}$";
225
+ readonly description: "Handle for one upload (begin → chunk → commit or abort) or one download (get → chunk). Host-generated and unguessable, which is what lets a reference to another party's transfer be answered as not-found without confirming that it exists. Bound at creation to the party that opened it: the subject the host authenticated for the opening request. Opaque: a producer quotes what it was given.";
226
+ };
227
+ readonly ChunkData: {
228
+ readonly title: "ChunkData";
229
+ readonly description: "The chunk's bytes, base64url-encoded without padding (RFC 4648 §5). Bounded at 349526 characters, the unpadded encoding of a 262144-byte chunk. These are bytes of the encrypted bundle, so a chunk read in isolation reveals nothing of the agent's state — but a complete set of chunks is the export, and is to be handled as such.";
230
+ readonly type: "string";
231
+ readonly minLength: 2;
232
+ readonly maxLength: 349526;
233
+ readonly pattern: "^[A-Za-z0-9_-]+$";
234
+ };
235
+ readonly DigestMultibase: {
236
+ readonly title: "DigestMultibase";
237
+ readonly 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`.";
238
+ readonly type: "string";
239
+ readonly minLength: 16;
240
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
241
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
242
+ };
243
+ };
244
+ };
245
+ /**
246
+ * SPEC.md §7.2 policy for the request variant, from this specification's
247
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
248
+ * per-specification and cannot be derived from the document alone, and
249
+ * item 2 needs the schema this carries.
250
+ */
251
+ export declare const SPEC: {
252
+ readonly typeUri: "https://trusttasks.org/spec/rooms/blobs/upload/chunk/0.2";
253
+ readonly isBearer: false;
254
+ readonly isProofRequired: true;
255
+ readonly isRecipientRequired: true;
256
+ readonly isIssuedAtRequired: true;
257
+ readonly payloadSchema: {
258
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
259
+ readonly $id: "https://trusttasks.org/spec/rooms/blobs/upload/chunk/0.2";
260
+ readonly title: "Rooms Blobs — Upload — Chunk — payload";
261
+ readonly description: "One chunk of an open blob upload. The outer document members are owned by the framework — SPEC §6.3.";
262
+ readonly type: "object";
263
+ readonly additionalProperties: false;
264
+ readonly required: readonly ["uploadId", "index", "digestMultibase", "data"];
265
+ readonly properties: {
266
+ readonly uploadId: {
267
+ readonly $ref: "#/$defs/TransferId";
268
+ };
269
+ readonly index: {
270
+ readonly $ref: "#/$defs/ChunkIndex";
271
+ };
272
+ readonly digestMultibase: {
273
+ readonly $ref: "#/$defs/DigestMultibase";
274
+ readonly description: "The digest of this chunk's raw bytes, restated from the manifest, so a chunk sent to the wrong index is refused on arrival.";
275
+ };
276
+ readonly data: {
277
+ readonly $ref: "#/$defs/ChunkData";
278
+ };
279
+ readonly ext: {
280
+ readonly $ref: "#/$defs/Ext";
281
+ };
282
+ };
283
+ readonly $defs: {
284
+ readonly Response: {
285
+ readonly $anchor: "response";
286
+ readonly title: "Rooms Blobs — Upload — Chunk — response payload";
287
+ readonly description: "Success response to rooms/blobs/upload/chunk. Type https://trusttasks.org/spec/rooms/blobs/upload/chunk/0.2#response.";
288
+ readonly type: "object";
289
+ readonly additionalProperties: false;
290
+ readonly required: readonly ["uploadId", "index", "stored", "remainingCount", "expiresAt"];
291
+ readonly properties: {
292
+ readonly uploadId: {
293
+ readonly $ref: "#/$defs/TransferId";
294
+ };
295
+ readonly index: {
296
+ readonly $ref: "#/$defs/ChunkIndex";
297
+ };
298
+ readonly stored: {
299
+ readonly type: "boolean";
300
+ readonly description: "Whether this request is what stored the chunk. False means identical bytes were already staged at this index — a success, and why a chunk can be re-sent safely.";
301
+ };
302
+ readonly remainingCount: {
303
+ readonly type: "integer";
304
+ readonly minimum: 0;
305
+ readonly maximum: 4095;
306
+ readonly description: "Indices still missing after this write.";
307
+ };
308
+ readonly expiresAt: {
309
+ readonly $ref: "#/$defs/ExpiresAt";
310
+ };
311
+ readonly ext: {
312
+ readonly $ref: "#/$defs/Ext";
313
+ };
314
+ };
315
+ };
316
+ readonly Ext: {
317
+ readonly title: "Ext";
318
+ 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.";
319
+ readonly type: "object";
320
+ readonly minProperties: 1;
321
+ readonly additionalProperties: true;
322
+ readonly propertyNames: {
323
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
324
+ };
325
+ };
326
+ readonly ExpiresAt: {
327
+ readonly title: "ExpiresAt";
328
+ readonly 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.";
329
+ readonly type: "string";
330
+ readonly format: "date-time";
331
+ };
332
+ readonly ChunkIndex: {
333
+ readonly title: "ChunkIndex";
334
+ readonly description: "Zero-based position of a chunk within its bundle. Valid values are 0 to chunkCount − 1; an index outside that range is refused with chunkOutOfRange rather than validated here, because the bound depends on the bundle.";
335
+ readonly type: "integer";
336
+ readonly minimum: 0;
337
+ readonly maximum: 4095;
338
+ };
339
+ readonly TransferId: {
340
+ readonly title: "TransferId";
341
+ readonly type: "string";
342
+ 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}$";
343
+ readonly description: "Handle for one upload (begin → chunk → commit or abort) or one download (get → chunk). Host-generated and unguessable, which is what lets a reference to another party's transfer be answered as not-found without confirming that it exists. Bound at creation to the party that opened it: the subject the host authenticated for the opening request. Opaque: a producer quotes what it was given.";
344
+ };
345
+ readonly ChunkData: {
346
+ readonly title: "ChunkData";
347
+ readonly description: "The chunk's bytes, base64url-encoded without padding (RFC 4648 §5). Bounded at 349526 characters, the unpadded encoding of a 262144-byte chunk. These are bytes of the encrypted bundle, so a chunk read in isolation reveals nothing of the agent's state — but a complete set of chunks is the export, and is to be handled as such.";
348
+ readonly type: "string";
349
+ readonly minLength: 2;
350
+ readonly maxLength: 349526;
351
+ readonly pattern: "^[A-Za-z0-9_-]+$";
352
+ };
353
+ readonly DigestMultibase: {
354
+ readonly title: "DigestMultibase";
355
+ readonly 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`.";
356
+ readonly type: "string";
357
+ readonly minLength: 16;
358
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
359
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
360
+ };
361
+ };
362
+ };
363
+ };
364
+ /**
365
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
366
+ * tracks the *issuer* party's requirement because a response swaps the
367
+ * parties (§7.3 item 5).
368
+ */
369
+ export declare const RESPONSE_SPEC: {
370
+ readonly typeUri: "https://trusttasks.org/spec/rooms/blobs/upload/chunk/0.2#response";
371
+ readonly isBearer: false;
372
+ readonly isProofRequired: false;
373
+ readonly isRecipientRequired: true;
374
+ readonly isIssuedAtRequired: true;
375
+ readonly payloadSchema: {
376
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
377
+ readonly $ref: "#/$defs/Response";
378
+ readonly $defs: {
379
+ readonly Response: {
380
+ readonly $anchor: "response";
381
+ readonly title: "Rooms Blobs — Upload — Chunk — response payload";
382
+ readonly description: "Success response to rooms/blobs/upload/chunk. Type https://trusttasks.org/spec/rooms/blobs/upload/chunk/0.2#response.";
383
+ readonly type: "object";
384
+ readonly additionalProperties: false;
385
+ readonly required: readonly ["uploadId", "index", "stored", "remainingCount", "expiresAt"];
386
+ readonly properties: {
387
+ readonly uploadId: {
388
+ readonly $ref: "#/$defs/TransferId";
389
+ };
390
+ readonly index: {
391
+ readonly $ref: "#/$defs/ChunkIndex";
392
+ };
393
+ readonly stored: {
394
+ readonly type: "boolean";
395
+ readonly description: "Whether this request is what stored the chunk. False means identical bytes were already staged at this index — a success, and why a chunk can be re-sent safely.";
396
+ };
397
+ readonly remainingCount: {
398
+ readonly type: "integer";
399
+ readonly minimum: 0;
400
+ readonly maximum: 4095;
401
+ readonly description: "Indices still missing after this write.";
402
+ };
403
+ readonly expiresAt: {
404
+ readonly $ref: "#/$defs/ExpiresAt";
405
+ };
406
+ readonly ext: {
407
+ readonly $ref: "#/$defs/Ext";
408
+ };
409
+ };
410
+ };
411
+ readonly Ext: {
412
+ readonly title: "Ext";
413
+ 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.";
414
+ readonly type: "object";
415
+ readonly minProperties: 1;
416
+ readonly additionalProperties: true;
417
+ readonly propertyNames: {
418
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
419
+ };
420
+ };
421
+ readonly ExpiresAt: {
422
+ readonly title: "ExpiresAt";
423
+ readonly 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.";
424
+ readonly type: "string";
425
+ readonly format: "date-time";
426
+ };
427
+ readonly ChunkIndex: {
428
+ readonly title: "ChunkIndex";
429
+ readonly description: "Zero-based position of a chunk within its bundle. Valid values are 0 to chunkCount − 1; an index outside that range is refused with chunkOutOfRange rather than validated here, because the bound depends on the bundle.";
430
+ readonly type: "integer";
431
+ readonly minimum: 0;
432
+ readonly maximum: 4095;
433
+ };
434
+ readonly TransferId: {
435
+ readonly title: "TransferId";
436
+ readonly type: "string";
437
+ 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}$";
438
+ readonly description: "Handle for one upload (begin → chunk → commit or abort) or one download (get → chunk). Host-generated and unguessable, which is what lets a reference to another party's transfer be answered as not-found without confirming that it exists. Bound at creation to the party that opened it: the subject the host authenticated for the opening request. Opaque: a producer quotes what it was given.";
439
+ };
440
+ readonly ChunkData: {
441
+ readonly title: "ChunkData";
442
+ readonly description: "The chunk's bytes, base64url-encoded without padding (RFC 4648 §5). Bounded at 349526 characters, the unpadded encoding of a 262144-byte chunk. These are bytes of the encrypted bundle, so a chunk read in isolation reveals nothing of the agent's state — but a complete set of chunks is the export, and is to be handled as such.";
443
+ readonly type: "string";
444
+ readonly minLength: 2;
445
+ readonly maxLength: 349526;
446
+ readonly pattern: "^[A-Za-z0-9_-]+$";
447
+ };
448
+ readonly DigestMultibase: {
449
+ readonly title: "DigestMultibase";
450
+ readonly 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`.";
451
+ readonly type: "string";
452
+ readonly minLength: 16;
453
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
454
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
455
+ };
456
+ };
457
+ };
458
+ };
459
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/rooms/blobs/upload/chunk/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAG/H;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,UAAU,CAAC;IACrB,KAAK,EAAE,UAAU,CAAC;IAClB;;OAEG;IACH,eAAe,EAAE,eAAe,CAAC;IACjC,IAAI,EAAE,SAAS,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACnD,QAAQ,EAAE,UAAU,CAAC;IACrB,KAAK,EAAE,UAAU,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,CAAC;AAEnF,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,0DAAmE,CAAC;AAE5F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,4BAA4B,CA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