@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,299 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/rooms/owner/group/renew/0.1/payload.schema.json
4
+ */
5
+ import type { Ext } from "../../../../../_shared/components.js";
6
+ export interface RoomsOwnerGroupRenewPayload {
7
+ /**
8
+ * The sealed room to renew. The recipient MUST hold its group.
9
+ */
10
+ roomId: string;
11
+ /**
12
+ * The room's host, as a DID: where the room's epoch advances.
13
+ */
14
+ host: string;
15
+ /**
16
+ * Why, carried to the host's epoch advance. Untrusted and attributed to its author: it MUST NOT carry personal data or a credential.
17
+ */
18
+ reason?: string;
19
+ /**
20
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
21
+ */
22
+ ext?: Ext;
23
+ }
24
+ /**
25
+ * Success response to rooms/owner/group/renew. Type https://trusttasks.org/spec/rooms/owner/group/renew/0.1#response. The room's new epoch, at which the host and the group agree.
26
+ */
27
+ export interface RoomsOwnerGroupRenewResponsePayload {
28
+ /**
29
+ * The room.
30
+ */
31
+ roomId: string;
32
+ /**
33
+ * The room epoch after the renewal, as the host recorded it.
34
+ */
35
+ epoch: number;
36
+ ext?: Ext;
37
+ }
38
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
39
+ export type { Ext };
40
+ /** Trust Task type URI. */
41
+ export declare const TYPE_URI: "https://trusttasks.org/spec/rooms/owner/group/renew/0.1";
42
+ /** Stable alias for this specification's request payload shape. */
43
+ export type Payload = RoomsOwnerGroupRenewPayload;
44
+ /** Trust Task response type URI (request type URI + "#response"). */
45
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/rooms/owner/group/renew/0.1#response";
46
+ /** Stable alias for this specification's success-response payload shape. */
47
+ export type Response = RoomsOwnerGroupRenewResponsePayload;
48
+ /**
49
+ * This specification's payload schema, as a value.
50
+ *
51
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
52
+ * rather than only as a `.json` file because TypeScript types are erased
53
+ * at runtime: without a schema a consumer has nothing to validate, and
54
+ * every REQUIRED payload member is optional in practice. Cross-file
55
+ * `$ref`s are already inlined, so it needs no resolver.
56
+ */
57
+ export declare const PAYLOAD_SCHEMA: {
58
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
59
+ readonly $id: "https://trusttasks.org/spec/rooms/owner/group/renew/0.1";
60
+ readonly title: "Rooms Owner Group Renew — payload";
61
+ readonly type: "object";
62
+ readonly additionalProperties: false;
63
+ readonly required: readonly ["roomId", "host"];
64
+ readonly properties: {
65
+ readonly roomId: {
66
+ readonly type: "string";
67
+ readonly minLength: 1;
68
+ readonly maxLength: 512;
69
+ readonly description: "The sealed room to renew. The recipient MUST hold its group.";
70
+ };
71
+ readonly host: {
72
+ readonly type: "string";
73
+ readonly pattern: "^did:";
74
+ readonly maxLength: 2048;
75
+ readonly description: "The room's host, as a DID: where the room's epoch advances.";
76
+ };
77
+ readonly reason: {
78
+ readonly type: "string";
79
+ readonly minLength: 1;
80
+ readonly maxLength: 500;
81
+ readonly description: "Why, carried to the host's epoch advance. Untrusted and attributed to its author: it MUST NOT carry personal data or a credential.";
82
+ };
83
+ readonly ext: {
84
+ readonly $ref: "#/$defs/Ext";
85
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
86
+ };
87
+ };
88
+ readonly $defs: {
89
+ readonly Response: {
90
+ readonly $anchor: "response";
91
+ readonly title: "Rooms Owner Group Renew — response payload";
92
+ readonly description: "Success response to rooms/owner/group/renew. Type https://trusttasks.org/spec/rooms/owner/group/renew/0.1#response. The room's new epoch, at which the host and the group agree.";
93
+ readonly type: "object";
94
+ readonly additionalProperties: false;
95
+ readonly required: readonly ["roomId", "epoch"];
96
+ readonly properties: {
97
+ readonly roomId: {
98
+ readonly type: "string";
99
+ readonly minLength: 1;
100
+ readonly maxLength: 512;
101
+ readonly description: "The room.";
102
+ };
103
+ readonly epoch: {
104
+ readonly type: "integer";
105
+ readonly minimum: 2;
106
+ readonly description: "The room epoch after the renewal, as the host recorded it.";
107
+ };
108
+ readonly ext: {
109
+ readonly $ref: "#/$defs/Ext";
110
+ };
111
+ };
112
+ };
113
+ readonly Ext: {
114
+ readonly title: "Ext";
115
+ 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.";
116
+ readonly type: "object";
117
+ readonly minProperties: 1;
118
+ readonly additionalProperties: true;
119
+ readonly propertyNames: {
120
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
121
+ };
122
+ };
123
+ };
124
+ };
125
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
126
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
127
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
128
+ readonly $ref: "#/$defs/Response";
129
+ readonly $defs: {
130
+ readonly Response: {
131
+ readonly $anchor: "response";
132
+ readonly title: "Rooms Owner Group Renew — response payload";
133
+ readonly description: "Success response to rooms/owner/group/renew. Type https://trusttasks.org/spec/rooms/owner/group/renew/0.1#response. The room's new epoch, at which the host and the group agree.";
134
+ readonly type: "object";
135
+ readonly additionalProperties: false;
136
+ readonly required: readonly ["roomId", "epoch"];
137
+ readonly properties: {
138
+ readonly roomId: {
139
+ readonly type: "string";
140
+ readonly minLength: 1;
141
+ readonly maxLength: 512;
142
+ readonly description: "The room.";
143
+ };
144
+ readonly epoch: {
145
+ readonly type: "integer";
146
+ readonly minimum: 2;
147
+ readonly description: "The room epoch after the renewal, as the host recorded it.";
148
+ };
149
+ readonly ext: {
150
+ readonly $ref: "#/$defs/Ext";
151
+ };
152
+ };
153
+ };
154
+ readonly Ext: {
155
+ readonly title: "Ext";
156
+ 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.";
157
+ readonly type: "object";
158
+ readonly minProperties: 1;
159
+ readonly additionalProperties: true;
160
+ readonly propertyNames: {
161
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
162
+ };
163
+ };
164
+ };
165
+ };
166
+ /**
167
+ * SPEC.md §7.2 policy for the request variant, from this specification's
168
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
169
+ * per-specification and cannot be derived from the document alone, and
170
+ * item 2 needs the schema this carries.
171
+ */
172
+ export declare const SPEC: {
173
+ readonly typeUri: "https://trusttasks.org/spec/rooms/owner/group/renew/0.1";
174
+ readonly isBearer: false;
175
+ readonly isProofRequired: true;
176
+ readonly isRecipientRequired: true;
177
+ readonly isIssuedAtRequired: true;
178
+ readonly payloadSchema: {
179
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
180
+ readonly $id: "https://trusttasks.org/spec/rooms/owner/group/renew/0.1";
181
+ readonly title: "Rooms Owner Group Renew — payload";
182
+ readonly type: "object";
183
+ readonly additionalProperties: false;
184
+ readonly required: readonly ["roomId", "host"];
185
+ readonly properties: {
186
+ readonly roomId: {
187
+ readonly type: "string";
188
+ readonly minLength: 1;
189
+ readonly maxLength: 512;
190
+ readonly description: "The sealed room to renew. The recipient MUST hold its group.";
191
+ };
192
+ readonly host: {
193
+ readonly type: "string";
194
+ readonly pattern: "^did:";
195
+ readonly maxLength: 2048;
196
+ readonly description: "The room's host, as a DID: where the room's epoch advances.";
197
+ };
198
+ readonly reason: {
199
+ readonly type: "string";
200
+ readonly minLength: 1;
201
+ readonly maxLength: 500;
202
+ readonly description: "Why, carried to the host's epoch advance. Untrusted and attributed to its author: it MUST NOT carry personal data or a credential.";
203
+ };
204
+ readonly ext: {
205
+ readonly $ref: "#/$defs/Ext";
206
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
207
+ };
208
+ };
209
+ readonly $defs: {
210
+ readonly Response: {
211
+ readonly $anchor: "response";
212
+ readonly title: "Rooms Owner Group Renew — response payload";
213
+ readonly description: "Success response to rooms/owner/group/renew. Type https://trusttasks.org/spec/rooms/owner/group/renew/0.1#response. The room's new epoch, at which the host and the group agree.";
214
+ readonly type: "object";
215
+ readonly additionalProperties: false;
216
+ readonly required: readonly ["roomId", "epoch"];
217
+ readonly properties: {
218
+ readonly roomId: {
219
+ readonly type: "string";
220
+ readonly minLength: 1;
221
+ readonly maxLength: 512;
222
+ readonly description: "The room.";
223
+ };
224
+ readonly epoch: {
225
+ readonly type: "integer";
226
+ readonly minimum: 2;
227
+ readonly description: "The room epoch after the renewal, as the host recorded it.";
228
+ };
229
+ readonly ext: {
230
+ readonly $ref: "#/$defs/Ext";
231
+ };
232
+ };
233
+ };
234
+ readonly Ext: {
235
+ readonly title: "Ext";
236
+ 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.";
237
+ readonly type: "object";
238
+ readonly minProperties: 1;
239
+ readonly additionalProperties: true;
240
+ readonly propertyNames: {
241
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
242
+ };
243
+ };
244
+ };
245
+ };
246
+ };
247
+ /**
248
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
249
+ * tracks the *issuer* party's requirement because a response swaps the
250
+ * parties (§7.3 item 5).
251
+ */
252
+ export declare const RESPONSE_SPEC: {
253
+ readonly typeUri: "https://trusttasks.org/spec/rooms/owner/group/renew/0.1#response";
254
+ readonly isBearer: false;
255
+ readonly isProofRequired: true;
256
+ readonly isRecipientRequired: true;
257
+ readonly isIssuedAtRequired: true;
258
+ readonly payloadSchema: {
259
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
260
+ readonly $ref: "#/$defs/Response";
261
+ readonly $defs: {
262
+ readonly Response: {
263
+ readonly $anchor: "response";
264
+ readonly title: "Rooms Owner Group Renew — response payload";
265
+ readonly description: "Success response to rooms/owner/group/renew. Type https://trusttasks.org/spec/rooms/owner/group/renew/0.1#response. The room's new epoch, at which the host and the group agree.";
266
+ readonly type: "object";
267
+ readonly additionalProperties: false;
268
+ readonly required: readonly ["roomId", "epoch"];
269
+ readonly properties: {
270
+ readonly roomId: {
271
+ readonly type: "string";
272
+ readonly minLength: 1;
273
+ readonly maxLength: 512;
274
+ readonly description: "The room.";
275
+ };
276
+ readonly epoch: {
277
+ readonly type: "integer";
278
+ readonly minimum: 2;
279
+ readonly description: "The room epoch after the renewal, as the host recorded it.";
280
+ };
281
+ readonly ext: {
282
+ readonly $ref: "#/$defs/Ext";
283
+ };
284
+ };
285
+ };
286
+ readonly Ext: {
287
+ readonly title: "Ext";
288
+ 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.";
289
+ readonly type: "object";
290
+ readonly minProperties: 1;
291
+ readonly additionalProperties: true;
292
+ readonly propertyNames: {
293
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
294
+ };
295
+ };
296
+ };
297
+ };
298
+ };
299
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/rooms/owner/group/renew/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,yDAAkE,CAAC;AAE3F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,2BAA2B,CAAC;AAElD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,kEAA2E,CAAC;AAE7G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,mCAAmC,CAAC;AAE3D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyEjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0C1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,163 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/rooms/owner/group/renew/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/rooms/owner/group/renew/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/owner/group/renew/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/owner/group/renew/0.1",
21
+ "title": "Rooms Owner Group Renew — payload",
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "required": [
25
+ "roomId",
26
+ "host"
27
+ ],
28
+ "properties": {
29
+ "roomId": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "maxLength": 512,
33
+ "description": "The sealed room to renew. The recipient MUST hold its group."
34
+ },
35
+ "host": {
36
+ "type": "string",
37
+ "pattern": "^did:",
38
+ "maxLength": 2048,
39
+ "description": "The room's host, as a DID: where the room's epoch advances."
40
+ },
41
+ "reason": {
42
+ "type": "string",
43
+ "minLength": 1,
44
+ "maxLength": 500,
45
+ "description": "Why, carried to the host's epoch advance. Untrusted and attributed to its author: it MUST NOT carry personal data or a credential."
46
+ },
47
+ "ext": {
48
+ "$ref": "#/$defs/Ext",
49
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
50
+ }
51
+ },
52
+ "$defs": {
53
+ "Response": {
54
+ "$anchor": "response",
55
+ "title": "Rooms Owner Group Renew — response payload",
56
+ "description": "Success response to rooms/owner/group/renew. Type https://trusttasks.org/spec/rooms/owner/group/renew/0.1#response. The room's new epoch, at which the host and the group agree.",
57
+ "type": "object",
58
+ "additionalProperties": false,
59
+ "required": [
60
+ "roomId",
61
+ "epoch"
62
+ ],
63
+ "properties": {
64
+ "roomId": {
65
+ "type": "string",
66
+ "minLength": 1,
67
+ "maxLength": 512,
68
+ "description": "The room."
69
+ },
70
+ "epoch": {
71
+ "type": "integer",
72
+ "minimum": 2,
73
+ "description": "The room epoch after the renewal, as the host recorded it."
74
+ },
75
+ "ext": {
76
+ "$ref": "#/$defs/Ext"
77
+ }
78
+ }
79
+ },
80
+ "Ext": {
81
+ "title": "Ext",
82
+ "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.",
83
+ "type": "object",
84
+ "minProperties": 1,
85
+ "additionalProperties": true,
86
+ "propertyNames": {
87
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
88
+ }
89
+ }
90
+ }
91
+ };
92
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
93
+ export const RESPONSE_PAYLOAD_SCHEMA = {
94
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
95
+ "$ref": "#/$defs/Response",
96
+ "$defs": {
97
+ "Response": {
98
+ "$anchor": "response",
99
+ "title": "Rooms Owner Group Renew — response payload",
100
+ "description": "Success response to rooms/owner/group/renew. Type https://trusttasks.org/spec/rooms/owner/group/renew/0.1#response. The room's new epoch, at which the host and the group agree.",
101
+ "type": "object",
102
+ "additionalProperties": false,
103
+ "required": [
104
+ "roomId",
105
+ "epoch"
106
+ ],
107
+ "properties": {
108
+ "roomId": {
109
+ "type": "string",
110
+ "minLength": 1,
111
+ "maxLength": 512,
112
+ "description": "The room."
113
+ },
114
+ "epoch": {
115
+ "type": "integer",
116
+ "minimum": 2,
117
+ "description": "The room epoch after the renewal, as the host recorded it."
118
+ },
119
+ "ext": {
120
+ "$ref": "#/$defs/Ext"
121
+ }
122
+ }
123
+ },
124
+ "Ext": {
125
+ "title": "Ext",
126
+ "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.",
127
+ "type": "object",
128
+ "minProperties": 1,
129
+ "additionalProperties": true,
130
+ "propertyNames": {
131
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
132
+ }
133
+ }
134
+ }
135
+ };
136
+ /**
137
+ * SPEC.md §7.2 policy for the request variant, from this specification's
138
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
139
+ * per-specification and cannot be derived from the document alone, and
140
+ * item 2 needs the schema this carries.
141
+ */
142
+ export const SPEC = {
143
+ typeUri: TYPE_URI,
144
+ isBearer: false,
145
+ isProofRequired: true,
146
+ isRecipientRequired: true,
147
+ isIssuedAtRequired: true,
148
+ payloadSchema: PAYLOAD_SCHEMA,
149
+ };
150
+ /**
151
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
152
+ * tracks the *issuer* party's requirement because a response swaps the
153
+ * parties (§7.3 item 5).
154
+ */
155
+ export const RESPONSE_SPEC = {
156
+ typeUri: RESPONSE_TYPE_URI,
157
+ isBearer: false,
158
+ isProofRequired: true,
159
+ isRecipientRequired: true,
160
+ isIssuedAtRequired: true,
161
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
162
+ };
163
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/rooms/owner/group/renew/0.1/payload.ts"],"names":[],"mappings":"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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openvtc/trust-tasks",
3
- "version": "0.26.3",
3
+ "version": "0.26.5",
4
4
  "description": "Generated TypeScript bindings for the Trust Tasks framework registry.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1342,6 +1342,10 @@ export type TrafficStage =
1342
1342
  * 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.
1343
1343
  */
1344
1344
  export type TransferId = string;
1345
+ /**
1346
+ * How a blob's bytes move. `proxied`: through the host, as chunk documents (rooms/blobs/upload/chunk, rooms/blobs/chunk). `direct`: straight between the member and the storage the room is assigned to, over time-limited URLs the host issues for one object and one method each; the host authorizes every object and verifies every upload, and never carries a byte. Which mode applies is the host's answer, from what the producer accepts, what the room's storage can do, and the room's tier.
1347
+ */
1348
+ export type TransferMode = "direct" | "proxied";
1345
1349
  /**
1346
1350
  * A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.
1347
1351
  */
@@ -6864,6 +6868,25 @@ export interface OfferCredentials {
6864
6868
  */
6865
6869
  authority: string;
6866
6870
  }
6871
+ /**
6872
+ * How the uploader will cut a blob for direct transfer, committed before any byte moves: one storage object, written in `partCount` parts of `partSize` bytes (the last may be shorter), each with its digest. Independent of the chunk manifest, because storage imposes part sizes a chunk document cannot carry; the chunk manifest still describes the blob and readers still check it.
6873
+ *
6874
+ * Consistency rules JSON Schema cannot state: `partCount` MUST equal ceil(size / partSize) for the manifest's `size`, and `partDigests` MUST have exactly `partCount` items. Every digest MUST be sha2-256, because it is what the storage itself checks the part against.
6875
+ */
6876
+ export interface PartPlan {
6877
+ /**
6878
+ * Bytes per part. One part of the whole blob's size is a single-object write.
6879
+ */
6880
+ partSize: number;
6881
+ partCount: number;
6882
+ /**
6883
+ * The sha2-256 digest of each part's ciphertext, in order.
6884
+ *
6885
+ * @minItems 1
6886
+ * @maxItems 1024
6887
+ */
6888
+ partDigests: [DigestMultibase, ...DigestMultibase[]];
6889
+ }
6867
6890
  export interface PasskeyVerificationMethod {
6868
6891
  /**
6869
6892
  * The verificationMethod id as it appears in the DID document: `<did>#passkey-<base64url(sha256(credentialId))>`. The fragment is content-derived so a verifier can locate this VM by recomputing `sha256(credential.id)`.
@@ -8910,6 +8933,30 @@ export interface TrafficOutcome {
8910
8933
  */
8911
8934
  detail?: string;
8912
8935
  }
8936
+ /**
8937
+ * One time-limited URL at the room's storage, issued by the host for one object and one method. A bearer credential for its lifetime: whoever holds it may perform exactly that request. A host MUST bind it to one object, one method and — for a write — the part's exact length and checksum, so that storage itself refuses any other bytes, and MUST give it the shortest practical lifetime, never more than 5 minutes. No party logs it.
8938
+ */
8939
+ export interface TransferTarget {
8940
+ /**
8941
+ * The part this target writes, or 0 for a read of the whole object.
8942
+ */
8943
+ index: number;
8944
+ method: "PUT" | "GET";
8945
+ /**
8946
+ * Where to send the request. HTTPS only.
8947
+ */
8948
+ url: string;
8949
+ /**
8950
+ * Headers the request MUST carry exactly as given — for a write, the part's length and checksum, which the URL's signature covers. A client adds nothing the storage would treat as signed.
8951
+ */
8952
+ headers?: {
8953
+ [k: string]: string | undefined;
8954
+ };
8955
+ /**
8956
+ * When the storage stops honouring the URL. A request begun after it is refused by the storage.
8957
+ */
8958
+ expiresAt: string;
8959
+ }
8913
8960
  export interface TransportObservation {
8914
8961
  /**
8915
8962
  * The binding the document actually travelled on.
package/src/index.ts CHANGED
@@ -427,16 +427,22 @@ export * as BlobsShared_v0_1 from "./rooms/_shared/0.1/blobs.js";
427
427
  export * as RoomShared_v0_1 from "./rooms/_shared/0.1/room.js";
428
428
  export * as RoomsBlobsChunk_v0_1 from "./rooms/blobs/chunk/0.1/payload.js";
429
429
  export * as RoomsBlobsGet_v0_1 from "./rooms/blobs/get/0.1/payload.js";
430
+ export * as RoomsBlobsGet_v0_2 from "./rooms/blobs/get/0.2/payload.js";
430
431
  export * as RoomsBlobsUploadAbort_v0_1 from "./rooms/blobs/upload/abort/0.1/payload.js";
432
+ export * as RoomsBlobsUploadAbort_v0_2 from "./rooms/blobs/upload/abort/0.2/payload.js";
431
433
  export * as RoomsBlobsUploadBegin_v0_1 from "./rooms/blobs/upload/begin/0.1/payload.js";
434
+ export * as RoomsBlobsUploadBegin_v0_2 from "./rooms/blobs/upload/begin/0.2/payload.js";
432
435
  export * as RoomsBlobsUploadChunk_v0_1 from "./rooms/blobs/upload/chunk/0.1/payload.js";
436
+ export * as RoomsBlobsUploadChunk_v0_2 from "./rooms/blobs/upload/chunk/0.2/payload.js";
433
437
  export * as RoomsBlobsUploadCommit_v0_1 from "./rooms/blobs/upload/commit/0.1/payload.js";
438
+ export * as RoomsBlobsUploadCommit_v0_2 from "./rooms/blobs/upload/commit/0.2/payload.js";
434
439
  export * as RoomsCreate_v0_1 from "./rooms/create/0.1/payload.js";
435
440
  export * as RoomsEpochChain_v0_1 from "./rooms/epoch/chain/0.1/payload.js";
436
441
  export * as RoomsEpochCommits_v0_1 from "./rooms/epoch/commits/0.1/payload.js";
437
442
  export * as RoomsEpochMint_v0_1 from "./rooms/epoch/mint/0.1/payload.js";
438
443
  export * as RoomsEpochPrune_v0_1 from "./rooms/epoch/prune/0.1/payload.js";
439
444
  export * as RoomsInfo_v0_1 from "./rooms/info/0.1/payload.js";
445
+ export * as RoomsKeysAct_v0_1 from "./rooms/keys/act/0.1/payload.js";
440
446
  export * as RoomsKeysBackfill_v0_1 from "./rooms/keys/backfill/0.1/payload.js";
441
447
  export * as RoomsKeysBrowse_v0_1 from "./rooms/keys/browse/0.1/payload.js";
442
448
  export * as RoomsKeysChain_v0_1 from "./rooms/keys/chain/0.1/payload.js";
@@ -449,12 +455,14 @@ export * as RoomsKeysPresent_v0_1 from "./rooms/keys/present/0.1/payload.js";
449
455
  export * as RoomsKeysPresent_v0_2 from "./rooms/keys/present/0.2/payload.js";
450
456
  export * as RoomsKeysRead_v0_1 from "./rooms/keys/read/0.1/payload.js";
451
457
  export * as RoomsKeysSeal_v0_1 from "./rooms/keys/seal/0.1/payload.js";
458
+ export * as RoomsKeysSeal_v0_2 from "./rooms/keys/seal/0.2/payload.js";
452
459
  export * as RoomsKeysWelcome_v0_1 from "./rooms/keys/welcome/0.1/payload.js";
453
460
  export * as RoomsOwnerAnchor_v0_1 from "./rooms/owner/anchor/0.1/payload.js";
454
461
  export * as RoomsOwnerClaim_v0_1 from "./rooms/owner/claim/0.1/payload.js";
455
462
  export * as RoomsOwnerGroupAdd_v0_1 from "./rooms/owner/group/add/0.1/payload.js";
456
463
  export * as RoomsOwnerGroupCreate_v0_1 from "./rooms/owner/group/create/0.1/payload.js";
457
464
  export * as RoomsOwnerGroupRemove_v0_1 from "./rooms/owner/group/remove/0.1/payload.js";
465
+ export * as RoomsOwnerGroupRenew_v0_1 from "./rooms/owner/group/renew/0.1/payload.js";
458
466
  export * as RoomsOwnerInvite_v0_1 from "./rooms/owner/invite/0.1/payload.js";
459
467
  export * as RoomsOwnerIssueAuthority_v0_1 from "./rooms/owner/issue-authority/0.1/payload.js";
460
468
  export * as RoomsOwnerIssueAuthority_v0_2 from "./rooms/owner/issue-authority/0.2/payload.js";
@@ -14,4 +14,4 @@ export interface RoomsSharedFileAndBlobTypes {
14
14
  * The definitions this shared schema publishes, hoisted to one declaration each.
15
15
  * See "../../../_shared/components.js".
16
16
  */
17
- export type { BlobManifest, BlobRef, FileManifest, RoomLimits, ScopeLimits, TransferId, Usage } from "../../../_shared/components.js";
17
+ export type { BlobManifest, BlobRef, FileManifest, PartPlan, RoomLimits, ScopeLimits, TransferId, TransferMode, TransferTarget, Usage } from "../../../_shared/components.js";