@openvtc/trust-tasks 0.16.6 → 0.16.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/CHANGELOG.md +20 -2
  2. package/dist/_shared/components.d.ts +75 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +14 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +14 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/rooms/_shared/0.1/room.d.ts +16 -0
  9. package/dist/rooms/_shared/0.1/room.d.ts.map +1 -0
  10. package/dist/rooms/_shared/0.1/room.js +6 -0
  11. package/dist/rooms/_shared/0.1/room.js.map +1 -0
  12. package/dist/rooms/create/0.1/payload.d.ts +305 -0
  13. package/dist/rooms/create/0.1/payload.d.ts.map +1 -0
  14. package/dist/rooms/create/0.1/payload.js +176 -0
  15. package/dist/rooms/create/0.1/payload.js.map +1 -0
  16. package/dist/rooms/epoch/mint/0.1/payload.d.ts +385 -0
  17. package/dist/rooms/epoch/mint/0.1/payload.d.ts.map +1 -0
  18. package/dist/rooms/epoch/mint/0.1/payload.js +214 -0
  19. package/dist/rooms/epoch/mint/0.1/payload.js.map +1 -0
  20. package/dist/rooms/keys/open/0.1/payload.d.ts +323 -0
  21. package/dist/rooms/keys/open/0.1/payload.d.ts.map +1 -0
  22. package/dist/rooms/keys/open/0.1/payload.js +171 -0
  23. package/dist/rooms/keys/open/0.1/payload.js.map +1 -0
  24. package/dist/rooms/keys/present/0.1/payload.d.ts +306 -0
  25. package/dist/rooms/keys/present/0.1/payload.d.ts.map +1 -0
  26. package/dist/rooms/keys/present/0.1/payload.js +165 -0
  27. package/dist/rooms/keys/present/0.1/payload.js.map +1 -0
  28. package/dist/rooms/records/get/0.1/payload.d.ts +505 -0
  29. package/dist/rooms/records/get/0.1/payload.d.ts.map +1 -0
  30. package/dist/rooms/records/get/0.1/payload.js +279 -0
  31. package/dist/rooms/records/get/0.1/payload.js.map +1 -0
  32. package/dist/rooms/records/list/0.1/payload.d.ts +618 -0
  33. package/dist/rooms/records/list/0.1/payload.d.ts.map +1 -0
  34. package/dist/rooms/records/list/0.1/payload.js +338 -0
  35. package/dist/rooms/records/list/0.1/payload.js.map +1 -0
  36. package/dist/rooms/records/put/0.1/payload.d.ts +591 -0
  37. package/dist/rooms/records/put/0.1/payload.d.ts.map +1 -0
  38. package/dist/rooms/records/put/0.1/payload.js +314 -0
  39. package/dist/rooms/records/put/0.1/payload.js.map +1 -0
  40. package/dist/vta/backup/abort/1.0/payload.d.ts +262 -0
  41. package/dist/vta/backup/abort/1.0/payload.d.ts.map +1 -0
  42. package/dist/vta/backup/abort/1.0/payload.js +146 -0
  43. package/dist/vta/backup/abort/1.0/payload.js.map +1 -0
  44. package/dist/vta/backup/complete-export/1.0/payload.d.ts +262 -0
  45. package/dist/vta/backup/complete-export/1.0/payload.d.ts.map +1 -0
  46. package/dist/vta/backup/complete-export/1.0/payload.js +146 -0
  47. package/dist/vta/backup/complete-export/1.0/payload.js.map +1 -0
  48. package/dist/vta/backup/finalize-import/1.0/payload.d.ts +477 -0
  49. package/dist/vta/backup/finalize-import/1.0/payload.d.ts.map +1 -0
  50. package/dist/vta/backup/finalize-import/1.0/payload.js +249 -0
  51. package/dist/vta/backup/finalize-import/1.0/payload.js.map +1 -0
  52. package/dist/vta/backup/initiate-export/1.0/payload.d.ts +514 -0
  53. package/dist/vta/backup/initiate-export/1.0/payload.d.ts.map +1 -0
  54. package/dist/vta/backup/initiate-export/1.0/payload.js +267 -0
  55. package/dist/vta/backup/initiate-export/1.0/payload.js.map +1 -0
  56. package/dist/vta/backup/initiate-import/1.0/payload.d.ts +510 -0
  57. package/dist/vta/backup/initiate-import/1.0/payload.d.ts.map +1 -0
  58. package/dist/vta/backup/initiate-import/1.0/payload.js +266 -0
  59. package/dist/vta/backup/initiate-import/1.0/payload.js.map +1 -0
  60. package/dist/vta/management/reload-services/1.0/payload.d.ts +230 -0
  61. package/dist/vta/management/reload-services/1.0/payload.d.ts.map +1 -0
  62. package/dist/vta/management/reload-services/1.0/payload.js +130 -0
  63. package/dist/vta/management/reload-services/1.0/payload.js.map +1 -0
  64. package/package.json +1 -1
  65. package/src/_shared/components.ts +83 -0
  66. package/src/index.ts +14 -0
  67. package/src/rooms/_shared/0.1/room.ts +17 -0
  68. package/src/rooms/create/0.1/payload.ts +224 -0
  69. package/src/rooms/epoch/mint/0.1/payload.ts +262 -0
  70. package/src/rooms/keys/open/0.1/payload.ts +237 -0
  71. package/src/rooms/keys/present/0.1/payload.ts +224 -0
  72. package/src/rooms/records/get/0.1/payload.ts +333 -0
  73. package/src/rooms/records/list/0.1/payload.ts +397 -0
  74. package/src/rooms/records/put/0.1/payload.ts +388 -0
  75. package/src/vta/backup/abort/1.0/payload.ts +191 -0
  76. package/src/vta/backup/complete-export/1.0/payload.ts +191 -0
  77. package/src/vta/backup/finalize-import/1.0/payload.ts +333 -0
  78. package/src/vta/backup/initiate-export/1.0/payload.ts +350 -0
  79. package/src/vta/backup/initiate-import/1.0/payload.ts +349 -0
  80. package/src/vta/management/reload-services/1.0/payload.ts +167 -0
@@ -0,0 +1,618 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/rooms/records/list/0.1/payload.schema.json
4
+ */
5
+ import type { AuthorityPresentation, Ext, RecordMetadata } from "../../../../_shared/components.js";
6
+ export interface RoomsRecordsListPayload {
7
+ /**
8
+ * The room's identifier.
9
+ */
10
+ roomId: string;
11
+ /**
12
+ * Must confer the `read` action at this room's scope.
13
+ */
14
+ presentation: AuthorityPresentation;
15
+ /**
16
+ * Return only records whose key starts with this. On an `attributed` or `private` room keys are opaque, so a prefix is only useful where the client assigned structure to them.
17
+ */
18
+ prefix?: string;
19
+ /**
20
+ * Return only records changed after this version — the watermark that makes incremental sync possible. Tombstones are returned too: without them a puller learns of every create and update and never of a delete, so deleted records resurrect on the next full rebuild.
21
+ */
22
+ sinceVersion?: number;
23
+ /**
24
+ * Opaque continuation token from a previous response. A host MUST NOT accept a cursor it did not issue.
25
+ */
26
+ cursor?: string;
27
+ /**
28
+ * Maximum records to return. A host MAY return fewer.
29
+ */
30
+ limit?: number;
31
+ /**
32
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
33
+ */
34
+ ext?: Ext;
35
+ }
36
+ /**
37
+ * Success response to rooms/records/list. Type https://trusttasks.org/spec/rooms/records/list/0.1#response. Returns METADATA, never bodies: a reader fetches the handful it wants with rooms/records/get.
38
+ */
39
+ export interface RoomsRecordsListResponsePayload {
40
+ records: RecordMetadata[];
41
+ /**
42
+ * Present when more records remain.
43
+ */
44
+ cursor?: string;
45
+ ext?: Ext;
46
+ }
47
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
48
+ export type { AuthorityPresentation, Ext, RecordMetadata };
49
+ /** Trust Task type URI. */
50
+ export declare const TYPE_URI: "https://trusttasks.org/spec/rooms/records/list/0.1";
51
+ /** Stable alias for this specification's request payload shape. */
52
+ export type Payload = RoomsRecordsListPayload;
53
+ /** Trust Task response type URI (request type URI + "#response"). */
54
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/rooms/records/list/0.1#response";
55
+ /** Stable alias for this specification's success-response payload shape. */
56
+ export type Response = RoomsRecordsListResponsePayload;
57
+ /**
58
+ * This specification's payload schema, as a value.
59
+ *
60
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
61
+ * rather than only as a `.json` file because TypeScript types are erased
62
+ * at runtime: without a schema a consumer has nothing to validate, and
63
+ * every REQUIRED payload member is optional in practice. Cross-file
64
+ * `$ref`s are already inlined, so it needs no resolver.
65
+ */
66
+ export declare const PAYLOAD_SCHEMA: {
67
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
68
+ readonly $id: "https://trusttasks.org/spec/rooms/records/list/0.1";
69
+ readonly title: "Rooms Records List — payload";
70
+ readonly type: "object";
71
+ readonly additionalProperties: false;
72
+ readonly required: readonly ["roomId", "presentation"];
73
+ readonly properties: {
74
+ readonly roomId: {
75
+ readonly type: "string";
76
+ readonly description: "The room's identifier.";
77
+ };
78
+ readonly presentation: {
79
+ readonly $ref: "#/$defs/AuthorityPresentation";
80
+ readonly description: "Must confer the `read` action at this room's scope.";
81
+ };
82
+ readonly prefix: {
83
+ readonly type: "string";
84
+ readonly maxLength: 512;
85
+ readonly description: "Return only records whose key starts with this. On an `attributed` or `private` room keys are opaque, so a prefix is only useful where the client assigned structure to them.";
86
+ };
87
+ readonly sinceVersion: {
88
+ readonly type: "integer";
89
+ readonly minimum: 0;
90
+ readonly description: "Return only records changed after this version — the watermark that makes incremental sync possible. Tombstones are returned too: without them a puller learns of every create and update and never of a delete, so deleted records resurrect on the next full rebuild.";
91
+ };
92
+ readonly cursor: {
93
+ readonly type: "string";
94
+ readonly maxLength: 4096;
95
+ readonly description: "Opaque continuation token from a previous response. A host MUST NOT accept a cursor it did not issue.";
96
+ };
97
+ readonly limit: {
98
+ readonly type: "integer";
99
+ readonly minimum: 1;
100
+ readonly maximum: 500;
101
+ readonly description: "Maximum records to return. A host MAY return fewer.";
102
+ };
103
+ readonly ext: {
104
+ readonly $ref: "#/$defs/Ext";
105
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
106
+ };
107
+ };
108
+ readonly $defs: {
109
+ readonly Response: {
110
+ readonly $anchor: "response";
111
+ readonly title: "Rooms Records List — response payload";
112
+ readonly description: "Success response to rooms/records/list. Type https://trusttasks.org/spec/rooms/records/list/0.1#response. Returns METADATA, never bodies: a reader fetches the handful it wants with rooms/records/get.";
113
+ readonly type: "object";
114
+ readonly additionalProperties: false;
115
+ readonly required: readonly ["records"];
116
+ readonly properties: {
117
+ readonly records: {
118
+ readonly type: "array";
119
+ readonly items: {
120
+ readonly $ref: "#/$defs/RecordMetadata";
121
+ };
122
+ };
123
+ readonly cursor: {
124
+ readonly type: "string";
125
+ readonly maxLength: 4096;
126
+ readonly description: "Present when more records remain.";
127
+ };
128
+ readonly ext: {
129
+ readonly $ref: "#/$defs/Ext";
130
+ };
131
+ };
132
+ };
133
+ readonly Ext: {
134
+ readonly title: "Ext";
135
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
136
+ readonly type: "object";
137
+ readonly minProperties: 1;
138
+ readonly additionalProperties: true;
139
+ readonly propertyNames: {
140
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
141
+ };
142
+ };
143
+ readonly RecordMetadata: {
144
+ readonly title: "RecordMetadata";
145
+ readonly type: "object";
146
+ readonly additionalProperties: false;
147
+ readonly required: readonly ["key", "version", "updatedAt"];
148
+ readonly description: "What `rooms/records/list` returns. Never the body: ranking happens on the client, and a host that returned every body would make the caller pay for the whole room on every listing.";
149
+ readonly properties: {
150
+ readonly key: {
151
+ readonly type: "string";
152
+ readonly description: "The record's key within the room. On `attributed` and `private` rooms this MUST be opaque — a random identifier, never a descriptive slug. A key reading `decision/acquire-northwind` defeats the encryption sitting beside it; structured naming belongs inside the sealed body.";
153
+ };
154
+ readonly version: {
155
+ readonly type: "integer";
156
+ readonly minimum: 1;
157
+ readonly description: "Server-assigned, monotonic per room.";
158
+ };
159
+ readonly epoch: {
160
+ readonly type: "integer";
161
+ readonly minimum: 1;
162
+ readonly description: "The epoch the record was sealed under. Absent on an `open` room.";
163
+ };
164
+ readonly status: {
165
+ readonly type: "string";
166
+ readonly enum: readonly ["active", "deprecated", "retracted"];
167
+ readonly description: "Curation state. `retracted` is a tombstone: the body is gone, the key and version remain so incremental sync converges and the audit chain stays intact.";
168
+ };
169
+ readonly updatedAt: {
170
+ readonly type: "string";
171
+ readonly format: "date-time";
172
+ };
173
+ readonly title: {
174
+ readonly type: "string";
175
+ readonly maxLength: 512;
176
+ readonly description: "Present only on an `open` room; sealed with the body otherwise.";
177
+ };
178
+ readonly description: {
179
+ readonly type: "string";
180
+ readonly maxLength: 2048;
181
+ readonly description: "Present only on an `open` room; sealed with the body otherwise.";
182
+ };
183
+ readonly author: {
184
+ readonly type: "string";
185
+ readonly description: "The member who wrote it. Present on `open` and `attributed`; on `private` the author is inside the sealed body, where only members can read it.";
186
+ };
187
+ };
188
+ };
189
+ readonly AuthorityPresentation: {
190
+ readonly title: "AuthorityPresentation";
191
+ readonly type: "object";
192
+ readonly additionalProperties: false;
193
+ readonly required: readonly ["membership", "authority"];
194
+ readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.";
195
+ readonly properties: {
196
+ readonly membership: {
197
+ readonly type: "string";
198
+ readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
199
+ };
200
+ readonly authority: {
201
+ readonly type: "array";
202
+ readonly minItems: 1;
203
+ readonly maxItems: 8;
204
+ readonly items: {
205
+ readonly type: "string";
206
+ };
207
+ readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
208
+ };
209
+ readonly subjectBinding: {
210
+ readonly type: "string";
211
+ readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
212
+ };
213
+ };
214
+ };
215
+ };
216
+ };
217
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
218
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
219
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
220
+ readonly $ref: "#/$defs/Response";
221
+ readonly $defs: {
222
+ readonly Response: {
223
+ readonly $anchor: "response";
224
+ readonly title: "Rooms Records List — response payload";
225
+ readonly description: "Success response to rooms/records/list. Type https://trusttasks.org/spec/rooms/records/list/0.1#response. Returns METADATA, never bodies: a reader fetches the handful it wants with rooms/records/get.";
226
+ readonly type: "object";
227
+ readonly additionalProperties: false;
228
+ readonly required: readonly ["records"];
229
+ readonly properties: {
230
+ readonly records: {
231
+ readonly type: "array";
232
+ readonly items: {
233
+ readonly $ref: "#/$defs/RecordMetadata";
234
+ };
235
+ };
236
+ readonly cursor: {
237
+ readonly type: "string";
238
+ readonly maxLength: 4096;
239
+ readonly description: "Present when more records remain.";
240
+ };
241
+ readonly ext: {
242
+ readonly $ref: "#/$defs/Ext";
243
+ };
244
+ };
245
+ };
246
+ readonly Ext: {
247
+ readonly title: "Ext";
248
+ 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.";
249
+ readonly type: "object";
250
+ readonly minProperties: 1;
251
+ readonly additionalProperties: true;
252
+ readonly propertyNames: {
253
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
254
+ };
255
+ };
256
+ readonly RecordMetadata: {
257
+ readonly title: "RecordMetadata";
258
+ readonly type: "object";
259
+ readonly additionalProperties: false;
260
+ readonly required: readonly ["key", "version", "updatedAt"];
261
+ readonly description: "What `rooms/records/list` returns. Never the body: ranking happens on the client, and a host that returned every body would make the caller pay for the whole room on every listing.";
262
+ readonly properties: {
263
+ readonly key: {
264
+ readonly type: "string";
265
+ readonly description: "The record's key within the room. On `attributed` and `private` rooms this MUST be opaque — a random identifier, never a descriptive slug. A key reading `decision/acquire-northwind` defeats the encryption sitting beside it; structured naming belongs inside the sealed body.";
266
+ };
267
+ readonly version: {
268
+ readonly type: "integer";
269
+ readonly minimum: 1;
270
+ readonly description: "Server-assigned, monotonic per room.";
271
+ };
272
+ readonly epoch: {
273
+ readonly type: "integer";
274
+ readonly minimum: 1;
275
+ readonly description: "The epoch the record was sealed under. Absent on an `open` room.";
276
+ };
277
+ readonly status: {
278
+ readonly type: "string";
279
+ readonly enum: readonly ["active", "deprecated", "retracted"];
280
+ readonly description: "Curation state. `retracted` is a tombstone: the body is gone, the key and version remain so incremental sync converges and the audit chain stays intact.";
281
+ };
282
+ readonly updatedAt: {
283
+ readonly type: "string";
284
+ readonly format: "date-time";
285
+ };
286
+ readonly title: {
287
+ readonly type: "string";
288
+ readonly maxLength: 512;
289
+ readonly description: "Present only on an `open` room; sealed with the body otherwise.";
290
+ };
291
+ readonly description: {
292
+ readonly type: "string";
293
+ readonly maxLength: 2048;
294
+ readonly description: "Present only on an `open` room; sealed with the body otherwise.";
295
+ };
296
+ readonly author: {
297
+ readonly type: "string";
298
+ readonly description: "The member who wrote it. Present on `open` and `attributed`; on `private` the author is inside the sealed body, where only members can read it.";
299
+ };
300
+ };
301
+ };
302
+ readonly AuthorityPresentation: {
303
+ readonly title: "AuthorityPresentation";
304
+ readonly type: "object";
305
+ readonly additionalProperties: false;
306
+ readonly required: readonly ["membership", "authority"];
307
+ readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.";
308
+ readonly properties: {
309
+ readonly membership: {
310
+ readonly type: "string";
311
+ readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
312
+ };
313
+ readonly authority: {
314
+ readonly type: "array";
315
+ readonly minItems: 1;
316
+ readonly maxItems: 8;
317
+ readonly items: {
318
+ readonly type: "string";
319
+ };
320
+ readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
321
+ };
322
+ readonly subjectBinding: {
323
+ readonly type: "string";
324
+ readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
325
+ };
326
+ };
327
+ };
328
+ };
329
+ };
330
+ /**
331
+ * SPEC.md §7.2 policy for the request variant, from this specification's
332
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
333
+ * per-specification and cannot be derived from the document alone, and
334
+ * item 2 needs the schema this carries.
335
+ */
336
+ export declare const SPEC: {
337
+ readonly typeUri: "https://trusttasks.org/spec/rooms/records/list/0.1";
338
+ readonly isBearer: false;
339
+ readonly isProofRequired: true;
340
+ readonly isRecipientRequired: true;
341
+ readonly isIssuedAtRequired: true;
342
+ readonly payloadSchema: {
343
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
344
+ readonly $id: "https://trusttasks.org/spec/rooms/records/list/0.1";
345
+ readonly title: "Rooms Records List — payload";
346
+ readonly type: "object";
347
+ readonly additionalProperties: false;
348
+ readonly required: readonly ["roomId", "presentation"];
349
+ readonly properties: {
350
+ readonly roomId: {
351
+ readonly type: "string";
352
+ readonly description: "The room's identifier.";
353
+ };
354
+ readonly presentation: {
355
+ readonly $ref: "#/$defs/AuthorityPresentation";
356
+ readonly description: "Must confer the `read` action at this room's scope.";
357
+ };
358
+ readonly prefix: {
359
+ readonly type: "string";
360
+ readonly maxLength: 512;
361
+ readonly description: "Return only records whose key starts with this. On an `attributed` or `private` room keys are opaque, so a prefix is only useful where the client assigned structure to them.";
362
+ };
363
+ readonly sinceVersion: {
364
+ readonly type: "integer";
365
+ readonly minimum: 0;
366
+ readonly description: "Return only records changed after this version — the watermark that makes incremental sync possible. Tombstones are returned too: without them a puller learns of every create and update and never of a delete, so deleted records resurrect on the next full rebuild.";
367
+ };
368
+ readonly cursor: {
369
+ readonly type: "string";
370
+ readonly maxLength: 4096;
371
+ readonly description: "Opaque continuation token from a previous response. A host MUST NOT accept a cursor it did not issue.";
372
+ };
373
+ readonly limit: {
374
+ readonly type: "integer";
375
+ readonly minimum: 1;
376
+ readonly maximum: 500;
377
+ readonly description: "Maximum records to return. A host MAY return fewer.";
378
+ };
379
+ readonly ext: {
380
+ readonly $ref: "#/$defs/Ext";
381
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
382
+ };
383
+ };
384
+ readonly $defs: {
385
+ readonly Response: {
386
+ readonly $anchor: "response";
387
+ readonly title: "Rooms Records List — response payload";
388
+ readonly description: "Success response to rooms/records/list. Type https://trusttasks.org/spec/rooms/records/list/0.1#response. Returns METADATA, never bodies: a reader fetches the handful it wants with rooms/records/get.";
389
+ readonly type: "object";
390
+ readonly additionalProperties: false;
391
+ readonly required: readonly ["records"];
392
+ readonly properties: {
393
+ readonly records: {
394
+ readonly type: "array";
395
+ readonly items: {
396
+ readonly $ref: "#/$defs/RecordMetadata";
397
+ };
398
+ };
399
+ readonly cursor: {
400
+ readonly type: "string";
401
+ readonly maxLength: 4096;
402
+ readonly description: "Present when more records remain.";
403
+ };
404
+ readonly ext: {
405
+ readonly $ref: "#/$defs/Ext";
406
+ };
407
+ };
408
+ };
409
+ readonly Ext: {
410
+ readonly title: "Ext";
411
+ 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.";
412
+ readonly type: "object";
413
+ readonly minProperties: 1;
414
+ readonly additionalProperties: true;
415
+ readonly propertyNames: {
416
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
417
+ };
418
+ };
419
+ readonly RecordMetadata: {
420
+ readonly title: "RecordMetadata";
421
+ readonly type: "object";
422
+ readonly additionalProperties: false;
423
+ readonly required: readonly ["key", "version", "updatedAt"];
424
+ readonly description: "What `rooms/records/list` returns. Never the body: ranking happens on the client, and a host that returned every body would make the caller pay for the whole room on every listing.";
425
+ readonly properties: {
426
+ readonly key: {
427
+ readonly type: "string";
428
+ readonly description: "The record's key within the room. On `attributed` and `private` rooms this MUST be opaque — a random identifier, never a descriptive slug. A key reading `decision/acquire-northwind` defeats the encryption sitting beside it; structured naming belongs inside the sealed body.";
429
+ };
430
+ readonly version: {
431
+ readonly type: "integer";
432
+ readonly minimum: 1;
433
+ readonly description: "Server-assigned, monotonic per room.";
434
+ };
435
+ readonly epoch: {
436
+ readonly type: "integer";
437
+ readonly minimum: 1;
438
+ readonly description: "The epoch the record was sealed under. Absent on an `open` room.";
439
+ };
440
+ readonly status: {
441
+ readonly type: "string";
442
+ readonly enum: readonly ["active", "deprecated", "retracted"];
443
+ readonly description: "Curation state. `retracted` is a tombstone: the body is gone, the key and version remain so incremental sync converges and the audit chain stays intact.";
444
+ };
445
+ readonly updatedAt: {
446
+ readonly type: "string";
447
+ readonly format: "date-time";
448
+ };
449
+ readonly title: {
450
+ readonly type: "string";
451
+ readonly maxLength: 512;
452
+ readonly description: "Present only on an `open` room; sealed with the body otherwise.";
453
+ };
454
+ readonly description: {
455
+ readonly type: "string";
456
+ readonly maxLength: 2048;
457
+ readonly description: "Present only on an `open` room; sealed with the body otherwise.";
458
+ };
459
+ readonly author: {
460
+ readonly type: "string";
461
+ readonly description: "The member who wrote it. Present on `open` and `attributed`; on `private` the author is inside the sealed body, where only members can read it.";
462
+ };
463
+ };
464
+ };
465
+ readonly AuthorityPresentation: {
466
+ readonly title: "AuthorityPresentation";
467
+ readonly type: "object";
468
+ readonly additionalProperties: false;
469
+ readonly required: readonly ["membership", "authority"];
470
+ readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.";
471
+ readonly properties: {
472
+ readonly membership: {
473
+ readonly type: "string";
474
+ readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
475
+ };
476
+ readonly authority: {
477
+ readonly type: "array";
478
+ readonly minItems: 1;
479
+ readonly maxItems: 8;
480
+ readonly items: {
481
+ readonly type: "string";
482
+ };
483
+ readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
484
+ };
485
+ readonly subjectBinding: {
486
+ readonly type: "string";
487
+ readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
488
+ };
489
+ };
490
+ };
491
+ };
492
+ };
493
+ };
494
+ /**
495
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
496
+ * tracks the *issuer* party's requirement because a response swaps the
497
+ * parties (§7.3 item 5).
498
+ */
499
+ export declare const RESPONSE_SPEC: {
500
+ readonly typeUri: "https://trusttasks.org/spec/rooms/records/list/0.1#response";
501
+ readonly isBearer: false;
502
+ readonly isProofRequired: true;
503
+ readonly isRecipientRequired: true;
504
+ readonly isIssuedAtRequired: true;
505
+ readonly payloadSchema: {
506
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
507
+ readonly $ref: "#/$defs/Response";
508
+ readonly $defs: {
509
+ readonly Response: {
510
+ readonly $anchor: "response";
511
+ readonly title: "Rooms Records List — response payload";
512
+ readonly description: "Success response to rooms/records/list. Type https://trusttasks.org/spec/rooms/records/list/0.1#response. Returns METADATA, never bodies: a reader fetches the handful it wants with rooms/records/get.";
513
+ readonly type: "object";
514
+ readonly additionalProperties: false;
515
+ readonly required: readonly ["records"];
516
+ readonly properties: {
517
+ readonly records: {
518
+ readonly type: "array";
519
+ readonly items: {
520
+ readonly $ref: "#/$defs/RecordMetadata";
521
+ };
522
+ };
523
+ readonly cursor: {
524
+ readonly type: "string";
525
+ readonly maxLength: 4096;
526
+ readonly description: "Present when more records remain.";
527
+ };
528
+ readonly ext: {
529
+ readonly $ref: "#/$defs/Ext";
530
+ };
531
+ };
532
+ };
533
+ readonly Ext: {
534
+ readonly title: "Ext";
535
+ 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.";
536
+ readonly type: "object";
537
+ readonly minProperties: 1;
538
+ readonly additionalProperties: true;
539
+ readonly propertyNames: {
540
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
541
+ };
542
+ };
543
+ readonly RecordMetadata: {
544
+ readonly title: "RecordMetadata";
545
+ readonly type: "object";
546
+ readonly additionalProperties: false;
547
+ readonly required: readonly ["key", "version", "updatedAt"];
548
+ readonly description: "What `rooms/records/list` returns. Never the body: ranking happens on the client, and a host that returned every body would make the caller pay for the whole room on every listing.";
549
+ readonly properties: {
550
+ readonly key: {
551
+ readonly type: "string";
552
+ readonly description: "The record's key within the room. On `attributed` and `private` rooms this MUST be opaque — a random identifier, never a descriptive slug. A key reading `decision/acquire-northwind` defeats the encryption sitting beside it; structured naming belongs inside the sealed body.";
553
+ };
554
+ readonly version: {
555
+ readonly type: "integer";
556
+ readonly minimum: 1;
557
+ readonly description: "Server-assigned, monotonic per room.";
558
+ };
559
+ readonly epoch: {
560
+ readonly type: "integer";
561
+ readonly minimum: 1;
562
+ readonly description: "The epoch the record was sealed under. Absent on an `open` room.";
563
+ };
564
+ readonly status: {
565
+ readonly type: "string";
566
+ readonly enum: readonly ["active", "deprecated", "retracted"];
567
+ readonly description: "Curation state. `retracted` is a tombstone: the body is gone, the key and version remain so incremental sync converges and the audit chain stays intact.";
568
+ };
569
+ readonly updatedAt: {
570
+ readonly type: "string";
571
+ readonly format: "date-time";
572
+ };
573
+ readonly title: {
574
+ readonly type: "string";
575
+ readonly maxLength: 512;
576
+ readonly description: "Present only on an `open` room; sealed with the body otherwise.";
577
+ };
578
+ readonly description: {
579
+ readonly type: "string";
580
+ readonly maxLength: 2048;
581
+ readonly description: "Present only on an `open` room; sealed with the body otherwise.";
582
+ };
583
+ readonly author: {
584
+ readonly type: "string";
585
+ readonly description: "The member who wrote it. Present on `open` and `attributed`; on `private` the author is inside the sealed body, where only members can read it.";
586
+ };
587
+ };
588
+ };
589
+ readonly AuthorityPresentation: {
590
+ readonly title: "AuthorityPresentation";
591
+ readonly type: "object";
592
+ readonly additionalProperties: false;
593
+ readonly required: readonly ["membership", "authority"];
594
+ readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.";
595
+ readonly properties: {
596
+ readonly membership: {
597
+ readonly type: "string";
598
+ readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
599
+ };
600
+ readonly authority: {
601
+ readonly type: "array";
602
+ readonly minItems: 1;
603
+ readonly maxItems: 8;
604
+ readonly items: {
605
+ readonly type: "string";
606
+ };
607
+ readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
608
+ };
609
+ readonly subjectBinding: {
610
+ readonly type: "string";
611
+ readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
612
+ };
613
+ };
614
+ };
615
+ };
616
+ };
617
+ };
618
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/rooms/records/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAGpG,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,YAAY,EAAE,qBAAqB,CAAC;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,qBAAqB,EAAE,GAAG,EAAE,cAAc,EAAE,CAAC;AAE3D,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,oDAA6D,CAAC;AAEtF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,uBAAuB,CAAC;AAE9C,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,6DAAsE,CAAC;AAExG,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,+BAA+B,CAAC;AAEvD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsKjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4H1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}