@openvtc/trust-tasks 0.17.6 → 0.17.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 (58) hide show
  1. package/CHANGELOG.md +158 -0
  2. package/dist/_shared/components.d.ts +4 -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/room.d.ts +1 -1
  9. package/dist/rooms/_shared/0.1/room.d.ts.map +1 -1
  10. package/dist/rooms/create/0.1/payload.d.ts +42 -2
  11. package/dist/rooms/create/0.1/payload.d.ts.map +1 -1
  12. package/dist/rooms/create/0.1/payload.js +24 -0
  13. package/dist/rooms/create/0.1/payload.js.map +1 -1
  14. package/dist/rooms/keys/backfill/0.1/payload.d.ts +336 -0
  15. package/dist/rooms/keys/backfill/0.1/payload.d.ts.map +1 -0
  16. package/dist/rooms/keys/backfill/0.1/payload.js +177 -0
  17. package/dist/rooms/keys/backfill/0.1/payload.js.map +1 -0
  18. package/dist/rooms/keys/chain/0.1/payload.d.ts +382 -0
  19. package/dist/rooms/keys/chain/0.1/payload.d.ts.map +1 -0
  20. package/dist/rooms/keys/chain/0.1/payload.js +213 -0
  21. package/dist/rooms/keys/chain/0.1/payload.js.map +1 -0
  22. package/dist/rooms/keys/list/0.1/payload.d.ts +314 -0
  23. package/dist/rooms/keys/list/0.1/payload.d.ts.map +1 -0
  24. package/dist/rooms/keys/list/0.1/payload.js +175 -0
  25. package/dist/rooms/keys/list/0.1/payload.js.map +1 -0
  26. package/dist/rooms/keys/seal/0.1/payload.d.ts +352 -0
  27. package/dist/rooms/keys/seal/0.1/payload.d.ts.map +1 -0
  28. package/dist/rooms/keys/seal/0.1/payload.js +199 -0
  29. package/dist/rooms/keys/seal/0.1/payload.js.map +1 -0
  30. package/dist/rooms/owner/invite/0.1/payload.d.ts +291 -0
  31. package/dist/rooms/owner/invite/0.1/payload.d.ts.map +1 -0
  32. package/dist/rooms/owner/invite/0.1/payload.js +158 -0
  33. package/dist/rooms/owner/invite/0.1/payload.js.map +1 -0
  34. package/dist/rooms/owner/issue-authority/0.1/payload.d.ts +315 -0
  35. package/dist/rooms/owner/issue-authority/0.1/payload.d.ts.map +1 -0
  36. package/dist/rooms/owner/issue-authority/0.1/payload.js +173 -0
  37. package/dist/rooms/owner/issue-authority/0.1/payload.js.map +1 -0
  38. package/dist/rooms/owner/issue-membership/0.1/payload.d.ts +291 -0
  39. package/dist/rooms/owner/issue-membership/0.1/payload.d.ts.map +1 -0
  40. package/dist/rooms/owner/issue-membership/0.1/payload.js +158 -0
  41. package/dist/rooms/owner/issue-membership/0.1/payload.js.map +1 -0
  42. package/dist/rooms/owner/register/0.1/payload.d.ts +382 -0
  43. package/dist/rooms/owner/register/0.1/payload.d.ts.map +1 -0
  44. package/dist/rooms/owner/register/0.1/payload.js +215 -0
  45. package/dist/rooms/owner/register/0.1/payload.js.map +1 -0
  46. package/package.json +1 -1
  47. package/src/_shared/components.ts +4 -0
  48. package/src/index.ts +8 -0
  49. package/src/rooms/_shared/0.1/room.ts +1 -1
  50. package/src/rooms/create/0.1/payload.ts +30 -2
  51. package/src/rooms/keys/backfill/0.1/payload.ts +236 -0
  52. package/src/rooms/keys/chain/0.1/payload.ts +262 -0
  53. package/src/rooms/keys/list/0.1/payload.ts +222 -0
  54. package/src/rooms/keys/seal/0.1/payload.ts +246 -0
  55. package/src/rooms/owner/invite/0.1/payload.ts +212 -0
  56. package/src/rooms/owner/issue-authority/0.1/payload.ts +233 -0
  57. package/src/rooms/owner/issue-membership/0.1/payload.ts +212 -0
  58. package/src/rooms/owner/register/0.1/payload.ts +278 -0
@@ -0,0 +1,382 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/rooms/owner/register/0.1/payload.schema.json
4
+ */
5
+ import type { Ext, RetentionPolicy, Visibility } from "../../../../_shared/components.js";
6
+ export interface RoomsOwnerRegisterPayload {
7
+ /**
8
+ * The room being registered. Its identity exists already — this asks a host to store it, not to name it.
9
+ */
10
+ roomId: string;
11
+ /**
12
+ * The host to register with, as a DID. Named by the caller because a room has no host until this call succeeds, and because a room may be registered with more than one (a mirror serves reads while its primary takes writes).
13
+ */
14
+ host: string;
15
+ /**
16
+ * The tier to create the room at. Passed through to `rooms/create`, whose description of the choice governs.
17
+ */
18
+ visibility: Visibility;
19
+ /**
20
+ * The accountable party. Absent means the caller — a registration is normally made by the owner it names, and defaulting saves a surface repeating the DID it just authenticated as. Present and different is legitimate: an operator registering on behalf of the party who will answer for the room.
21
+ */
22
+ ownerDid?: string;
23
+ /**
24
+ * Whether the room keeps its history readable across a membership change. Immutable once set, so a caller that omits it is taking the host's default for the life of the room.
25
+ */
26
+ retentionPolicy?: RetentionPolicy;
27
+ /**
28
+ * How long the host is asked to hold the room after it lapses.
29
+ */
30
+ retentionDays?: number;
31
+ /**
32
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
33
+ */
34
+ ext?: Ext;
35
+ }
36
+ /**
37
+ * Success response to rooms/owner/register. Type https://trusttasks.org/spec/rooms/owner/register/0.1#response.
38
+ */
39
+ export interface RoomsOwnerRegisterResponsePayload {
40
+ roomId: string;
41
+ /**
42
+ * The host that accepted it, echoed so a caller recording where its room lives records what the recipient actually reached rather than what it asked for.
43
+ */
44
+ host: string;
45
+ /**
46
+ * The epoch the room now stands at, as the host reports it. `1` for a room registered for the first time.
47
+ */
48
+ epoch: number;
49
+ ext?: Ext;
50
+ }
51
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
52
+ export type { Ext, RetentionPolicy, Visibility };
53
+ /** Trust Task type URI. */
54
+ export declare const TYPE_URI: "https://trusttasks.org/spec/rooms/owner/register/0.1";
55
+ /** Stable alias for this specification's request payload shape. */
56
+ export type Payload = RoomsOwnerRegisterPayload;
57
+ /** Trust Task response type URI (request type URI + "#response"). */
58
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/rooms/owner/register/0.1#response";
59
+ /** Stable alias for this specification's success-response payload shape. */
60
+ export type Response = RoomsOwnerRegisterResponsePayload;
61
+ /**
62
+ * This specification's payload schema, as a value.
63
+ *
64
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
65
+ * rather than only as a `.json` file because TypeScript types are erased
66
+ * at runtime: without a schema a consumer has nothing to validate, and
67
+ * every REQUIRED payload member is optional in practice. Cross-file
68
+ * `$ref`s are already inlined, so it needs no resolver.
69
+ */
70
+ export declare const PAYLOAD_SCHEMA: {
71
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
72
+ readonly $id: "https://trusttasks.org/spec/rooms/owner/register/0.1";
73
+ readonly title: "Rooms Owner Register — payload";
74
+ readonly type: "object";
75
+ readonly additionalProperties: false;
76
+ readonly required: readonly ["roomId", "host", "visibility"];
77
+ readonly properties: {
78
+ readonly roomId: {
79
+ readonly type: "string";
80
+ readonly description: "The room being registered. Its identity exists already — this asks a host to store it, not to name it.";
81
+ };
82
+ readonly host: {
83
+ readonly type: "string";
84
+ readonly description: "The host to register with, as a DID. Named by the caller because a room has no host until this call succeeds, and because a room may be registered with more than one (a mirror serves reads while its primary takes writes).";
85
+ };
86
+ readonly visibility: {
87
+ readonly $ref: "#/$defs/Visibility";
88
+ readonly description: "The tier to create the room at. Passed through to `rooms/create`, whose description of the choice governs.";
89
+ };
90
+ readonly ownerDid: {
91
+ readonly type: "string";
92
+ readonly description: "The accountable party. Absent means the caller — a registration is normally made by the owner it names, and defaulting saves a surface repeating the DID it just authenticated as. Present and different is legitimate: an operator registering on behalf of the party who will answer for the room.";
93
+ };
94
+ readonly retentionPolicy: {
95
+ readonly $ref: "#/$defs/RetentionPolicy";
96
+ readonly description: "Whether the room keeps its history readable across a membership change. Immutable once set, so a caller that omits it is taking the host's default for the life of the room.";
97
+ };
98
+ readonly retentionDays: {
99
+ readonly type: "integer";
100
+ readonly minimum: 1;
101
+ readonly description: "How long the host is asked to hold the room after it lapses.";
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 Owner Register — response payload";
112
+ readonly description: "Success response to rooms/owner/register. Type https://trusttasks.org/spec/rooms/owner/register/0.1#response.";
113
+ readonly type: "object";
114
+ readonly additionalProperties: false;
115
+ readonly required: readonly ["roomId", "host", "epoch"];
116
+ readonly properties: {
117
+ readonly roomId: {
118
+ readonly type: "string";
119
+ };
120
+ readonly host: {
121
+ readonly type: "string";
122
+ readonly description: "The host that accepted it, echoed so a caller recording where its room lives records what the recipient actually reached rather than what it asked for.";
123
+ };
124
+ readonly epoch: {
125
+ readonly type: "integer";
126
+ readonly minimum: 1;
127
+ readonly description: "The epoch the room now stands at, as the host reports it. `1` for a room registered for the first time.";
128
+ };
129
+ readonly ext: {
130
+ readonly $ref: "#/$defs/Ext";
131
+ };
132
+ };
133
+ };
134
+ readonly Ext: {
135
+ readonly title: "Ext";
136
+ 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.";
137
+ readonly type: "object";
138
+ readonly minProperties: 1;
139
+ readonly additionalProperties: true;
140
+ readonly propertyNames: {
141
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
142
+ };
143
+ };
144
+ readonly RetentionPolicy: {
145
+ readonly title: "RetentionPolicy";
146
+ readonly type: "string";
147
+ readonly enum: readonly ["chained", "fromJoin"];
148
+ readonly description: "Whether a room keeps its history readable across a membership change, fixed at creation and immutable thereafter — like `Visibility`, and for the same reason: the rungs of an epoch key chain either exist for an epoch or they do not, and no later change of mind can seal key material that was never sealed or unseal what was already severed. `chained`: each advance produces an `EpochLink`, so every member reads the room's whole retained history however long they have been in it — what a **library** wants, at the cost of post-compromise security for record content, since a compromised current key then reaches every retained epoch. `fromJoin`: no rungs are produced, so a member reads only from the epoch their group state is at — what a **stream** wants, and what a room under a strict forward-secrecy obligation wants, at the cost that a joining member finds an empty-looking room and nobody can reread a record once their group state has moved past the epoch it was sealed under. Absent means `chained`; see the prose on why the absent case is the readable one.";
149
+ readonly $comment: "Deliberately no JSON Schema `default`. A declared default is materialised by the generated bindings — the member becomes non-optional with a serde default — so an absent value would reappear as an explicit one on re-serialisation and break round-trip idempotence for every document written before this member existed. The meaning of absence is stated in prose, where a binding cannot act on it.";
150
+ };
151
+ readonly Visibility: {
152
+ readonly title: "Visibility";
153
+ readonly type: "string";
154
+ readonly enum: readonly ["open", "attributed", "private"];
155
+ readonly description: "How much of a room its host can see, fixed at creation and immutable thereafter. `open`: records are cleartext, searchable and fully audited. `attributed`: record content is sealed, and the host still learns which member acted. `private`: content is sealed and membership is presented in zero knowledge, so the host verifies that a member acted without learning which. Immutable because a downgrade cannot un-see cleartext and an upgrade would protect only what came after while presenting as though it protected everything.";
156
+ };
157
+ };
158
+ };
159
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
160
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
161
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
162
+ readonly $ref: "#/$defs/Response";
163
+ readonly $defs: {
164
+ readonly Response: {
165
+ readonly $anchor: "response";
166
+ readonly title: "Rooms Owner Register — response payload";
167
+ readonly description: "Success response to rooms/owner/register. Type https://trusttasks.org/spec/rooms/owner/register/0.1#response.";
168
+ readonly type: "object";
169
+ readonly additionalProperties: false;
170
+ readonly required: readonly ["roomId", "host", "epoch"];
171
+ readonly properties: {
172
+ readonly roomId: {
173
+ readonly type: "string";
174
+ };
175
+ readonly host: {
176
+ readonly type: "string";
177
+ readonly description: "The host that accepted it, echoed so a caller recording where its room lives records what the recipient actually reached rather than what it asked for.";
178
+ };
179
+ readonly epoch: {
180
+ readonly type: "integer";
181
+ readonly minimum: 1;
182
+ readonly description: "The epoch the room now stands at, as the host reports it. `1` for a room registered for the first time.";
183
+ };
184
+ readonly ext: {
185
+ readonly $ref: "#/$defs/Ext";
186
+ };
187
+ };
188
+ };
189
+ readonly Ext: {
190
+ readonly title: "Ext";
191
+ 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.";
192
+ readonly type: "object";
193
+ readonly minProperties: 1;
194
+ readonly additionalProperties: true;
195
+ readonly propertyNames: {
196
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
197
+ };
198
+ };
199
+ readonly RetentionPolicy: {
200
+ readonly title: "RetentionPolicy";
201
+ readonly type: "string";
202
+ readonly enum: readonly ["chained", "fromJoin"];
203
+ readonly description: "Whether a room keeps its history readable across a membership change, fixed at creation and immutable thereafter — like `Visibility`, and for the same reason: the rungs of an epoch key chain either exist for an epoch or they do not, and no later change of mind can seal key material that was never sealed or unseal what was already severed. `chained`: each advance produces an `EpochLink`, so every member reads the room's whole retained history however long they have been in it — what a **library** wants, at the cost of post-compromise security for record content, since a compromised current key then reaches every retained epoch. `fromJoin`: no rungs are produced, so a member reads only from the epoch their group state is at — what a **stream** wants, and what a room under a strict forward-secrecy obligation wants, at the cost that a joining member finds an empty-looking room and nobody can reread a record once their group state has moved past the epoch it was sealed under. Absent means `chained`; see the prose on why the absent case is the readable one.";
204
+ readonly $comment: "Deliberately no JSON Schema `default`. A declared default is materialised by the generated bindings — the member becomes non-optional with a serde default — so an absent value would reappear as an explicit one on re-serialisation and break round-trip idempotence for every document written before this member existed. The meaning of absence is stated in prose, where a binding cannot act on it.";
205
+ };
206
+ readonly Visibility: {
207
+ readonly title: "Visibility";
208
+ readonly type: "string";
209
+ readonly enum: readonly ["open", "attributed", "private"];
210
+ readonly description: "How much of a room its host can see, fixed at creation and immutable thereafter. `open`: records are cleartext, searchable and fully audited. `attributed`: record content is sealed, and the host still learns which member acted. `private`: content is sealed and membership is presented in zero knowledge, so the host verifies that a member acted without learning which. Immutable because a downgrade cannot un-see cleartext and an upgrade would protect only what came after while presenting as though it protected everything.";
211
+ };
212
+ };
213
+ };
214
+ /**
215
+ * SPEC.md §7.2 policy for the request variant, from this specification's
216
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
217
+ * per-specification and cannot be derived from the document alone, and
218
+ * item 2 needs the schema this carries.
219
+ */
220
+ export declare const SPEC: {
221
+ readonly typeUri: "https://trusttasks.org/spec/rooms/owner/register/0.1";
222
+ readonly isBearer: false;
223
+ readonly isProofRequired: true;
224
+ readonly isRecipientRequired: true;
225
+ readonly isIssuedAtRequired: true;
226
+ readonly payloadSchema: {
227
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
228
+ readonly $id: "https://trusttasks.org/spec/rooms/owner/register/0.1";
229
+ readonly title: "Rooms Owner Register — payload";
230
+ readonly type: "object";
231
+ readonly additionalProperties: false;
232
+ readonly required: readonly ["roomId", "host", "visibility"];
233
+ readonly properties: {
234
+ readonly roomId: {
235
+ readonly type: "string";
236
+ readonly description: "The room being registered. Its identity exists already — this asks a host to store it, not to name it.";
237
+ };
238
+ readonly host: {
239
+ readonly type: "string";
240
+ readonly description: "The host to register with, as a DID. Named by the caller because a room has no host until this call succeeds, and because a room may be registered with more than one (a mirror serves reads while its primary takes writes).";
241
+ };
242
+ readonly visibility: {
243
+ readonly $ref: "#/$defs/Visibility";
244
+ readonly description: "The tier to create the room at. Passed through to `rooms/create`, whose description of the choice governs.";
245
+ };
246
+ readonly ownerDid: {
247
+ readonly type: "string";
248
+ readonly description: "The accountable party. Absent means the caller — a registration is normally made by the owner it names, and defaulting saves a surface repeating the DID it just authenticated as. Present and different is legitimate: an operator registering on behalf of the party who will answer for the room.";
249
+ };
250
+ readonly retentionPolicy: {
251
+ readonly $ref: "#/$defs/RetentionPolicy";
252
+ readonly description: "Whether the room keeps its history readable across a membership change. Immutable once set, so a caller that omits it is taking the host's default for the life of the room.";
253
+ };
254
+ readonly retentionDays: {
255
+ readonly type: "integer";
256
+ readonly minimum: 1;
257
+ readonly description: "How long the host is asked to hold the room after it lapses.";
258
+ };
259
+ readonly ext: {
260
+ readonly $ref: "#/$defs/Ext";
261
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
262
+ };
263
+ };
264
+ readonly $defs: {
265
+ readonly Response: {
266
+ readonly $anchor: "response";
267
+ readonly title: "Rooms Owner Register — response payload";
268
+ readonly description: "Success response to rooms/owner/register. Type https://trusttasks.org/spec/rooms/owner/register/0.1#response.";
269
+ readonly type: "object";
270
+ readonly additionalProperties: false;
271
+ readonly required: readonly ["roomId", "host", "epoch"];
272
+ readonly properties: {
273
+ readonly roomId: {
274
+ readonly type: "string";
275
+ };
276
+ readonly host: {
277
+ readonly type: "string";
278
+ readonly description: "The host that accepted it, echoed so a caller recording where its room lives records what the recipient actually reached rather than what it asked for.";
279
+ };
280
+ readonly epoch: {
281
+ readonly type: "integer";
282
+ readonly minimum: 1;
283
+ readonly description: "The epoch the room now stands at, as the host reports it. `1` for a room registered for the first time.";
284
+ };
285
+ readonly ext: {
286
+ readonly $ref: "#/$defs/Ext";
287
+ };
288
+ };
289
+ };
290
+ readonly Ext: {
291
+ readonly title: "Ext";
292
+ 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.";
293
+ readonly type: "object";
294
+ readonly minProperties: 1;
295
+ readonly additionalProperties: true;
296
+ readonly propertyNames: {
297
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
298
+ };
299
+ };
300
+ readonly RetentionPolicy: {
301
+ readonly title: "RetentionPolicy";
302
+ readonly type: "string";
303
+ readonly enum: readonly ["chained", "fromJoin"];
304
+ readonly description: "Whether a room keeps its history readable across a membership change, fixed at creation and immutable thereafter — like `Visibility`, and for the same reason: the rungs of an epoch key chain either exist for an epoch or they do not, and no later change of mind can seal key material that was never sealed or unseal what was already severed. `chained`: each advance produces an `EpochLink`, so every member reads the room's whole retained history however long they have been in it — what a **library** wants, at the cost of post-compromise security for record content, since a compromised current key then reaches every retained epoch. `fromJoin`: no rungs are produced, so a member reads only from the epoch their group state is at — what a **stream** wants, and what a room under a strict forward-secrecy obligation wants, at the cost that a joining member finds an empty-looking room and nobody can reread a record once their group state has moved past the epoch it was sealed under. Absent means `chained`; see the prose on why the absent case is the readable one.";
305
+ readonly $comment: "Deliberately no JSON Schema `default`. A declared default is materialised by the generated bindings — the member becomes non-optional with a serde default — so an absent value would reappear as an explicit one on re-serialisation and break round-trip idempotence for every document written before this member existed. The meaning of absence is stated in prose, where a binding cannot act on it.";
306
+ };
307
+ readonly Visibility: {
308
+ readonly title: "Visibility";
309
+ readonly type: "string";
310
+ readonly enum: readonly ["open", "attributed", "private"];
311
+ readonly description: "How much of a room its host can see, fixed at creation and immutable thereafter. `open`: records are cleartext, searchable and fully audited. `attributed`: record content is sealed, and the host still learns which member acted. `private`: content is sealed and membership is presented in zero knowledge, so the host verifies that a member acted without learning which. Immutable because a downgrade cannot un-see cleartext and an upgrade would protect only what came after while presenting as though it protected everything.";
312
+ };
313
+ };
314
+ };
315
+ };
316
+ /**
317
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
318
+ * tracks the *issuer* party's requirement because a response swaps the
319
+ * parties (§7.3 item 5).
320
+ */
321
+ export declare const RESPONSE_SPEC: {
322
+ readonly typeUri: "https://trusttasks.org/spec/rooms/owner/register/0.1#response";
323
+ readonly isBearer: false;
324
+ readonly isProofRequired: true;
325
+ readonly isRecipientRequired: true;
326
+ readonly isIssuedAtRequired: true;
327
+ readonly payloadSchema: {
328
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
329
+ readonly $ref: "#/$defs/Response";
330
+ readonly $defs: {
331
+ readonly Response: {
332
+ readonly $anchor: "response";
333
+ readonly title: "Rooms Owner Register — response payload";
334
+ readonly description: "Success response to rooms/owner/register. Type https://trusttasks.org/spec/rooms/owner/register/0.1#response.";
335
+ readonly type: "object";
336
+ readonly additionalProperties: false;
337
+ readonly required: readonly ["roomId", "host", "epoch"];
338
+ readonly properties: {
339
+ readonly roomId: {
340
+ readonly type: "string";
341
+ };
342
+ readonly host: {
343
+ readonly type: "string";
344
+ readonly description: "The host that accepted it, echoed so a caller recording where its room lives records what the recipient actually reached rather than what it asked for.";
345
+ };
346
+ readonly epoch: {
347
+ readonly type: "integer";
348
+ readonly minimum: 1;
349
+ readonly description: "The epoch the room now stands at, as the host reports it. `1` for a room registered for the first time.";
350
+ };
351
+ readonly ext: {
352
+ readonly $ref: "#/$defs/Ext";
353
+ };
354
+ };
355
+ };
356
+ readonly Ext: {
357
+ readonly title: "Ext";
358
+ 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.";
359
+ readonly type: "object";
360
+ readonly minProperties: 1;
361
+ readonly additionalProperties: true;
362
+ readonly propertyNames: {
363
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
364
+ };
365
+ };
366
+ readonly RetentionPolicy: {
367
+ readonly title: "RetentionPolicy";
368
+ readonly type: "string";
369
+ readonly enum: readonly ["chained", "fromJoin"];
370
+ readonly description: "Whether a room keeps its history readable across a membership change, fixed at creation and immutable thereafter — like `Visibility`, and for the same reason: the rungs of an epoch key chain either exist for an epoch or they do not, and no later change of mind can seal key material that was never sealed or unseal what was already severed. `chained`: each advance produces an `EpochLink`, so every member reads the room's whole retained history however long they have been in it — what a **library** wants, at the cost of post-compromise security for record content, since a compromised current key then reaches every retained epoch. `fromJoin`: no rungs are produced, so a member reads only from the epoch their group state is at — what a **stream** wants, and what a room under a strict forward-secrecy obligation wants, at the cost that a joining member finds an empty-looking room and nobody can reread a record once their group state has moved past the epoch it was sealed under. Absent means `chained`; see the prose on why the absent case is the readable one.";
371
+ readonly $comment: "Deliberately no JSON Schema `default`. A declared default is materialised by the generated bindings — the member becomes non-optional with a serde default — so an absent value would reappear as an explicit one on re-serialisation and break round-trip idempotence for every document written before this member existed. The meaning of absence is stated in prose, where a binding cannot act on it.";
372
+ };
373
+ readonly Visibility: {
374
+ readonly title: "Visibility";
375
+ readonly type: "string";
376
+ readonly enum: readonly ["open", "attributed", "private"];
377
+ readonly description: "How much of a room its host can see, fixed at creation and immutable thereafter. `open`: records are cleartext, searchable and fully audited. `attributed`: record content is sealed, and the host still learns which member acted. `private`: content is sealed and membership is presented in zero knowledge, so the host verifies that a member acted without learning which. Immutable because a downgrade cannot un-see cleartext and an upgrade would protect only what came after while presenting as though it protected everything.";
378
+ };
379
+ };
380
+ };
381
+ };
382
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/rooms/owner/register/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAG1F,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC;AAEjD,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,sDAA+D,CAAC;AAExF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,yBAAyB,CAAC;AAEhD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,+DAAwE,CAAC;AAE1G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,iCAAiC,CAAC;AAEzD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuGjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgE1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,215 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/rooms/owner/register/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/rooms/owner/register/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/owner/register/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/register/0.1",
21
+ "title": "Rooms Owner Register — payload",
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "required": [
25
+ "roomId",
26
+ "host",
27
+ "visibility"
28
+ ],
29
+ "properties": {
30
+ "roomId": {
31
+ "type": "string",
32
+ "description": "The room being registered. Its identity exists already — this asks a host to store it, not to name it."
33
+ },
34
+ "host": {
35
+ "type": "string",
36
+ "description": "The host to register with, as a DID. Named by the caller because a room has no host until this call succeeds, and because a room may be registered with more than one (a mirror serves reads while its primary takes writes)."
37
+ },
38
+ "visibility": {
39
+ "$ref": "#/$defs/Visibility",
40
+ "description": "The tier to create the room at. Passed through to `rooms/create`, whose description of the choice governs."
41
+ },
42
+ "ownerDid": {
43
+ "type": "string",
44
+ "description": "The accountable party. Absent means the caller — a registration is normally made by the owner it names, and defaulting saves a surface repeating the DID it just authenticated as. Present and different is legitimate: an operator registering on behalf of the party who will answer for the room."
45
+ },
46
+ "retentionPolicy": {
47
+ "$ref": "#/$defs/RetentionPolicy",
48
+ "description": "Whether the room keeps its history readable across a membership change. Immutable once set, so a caller that omits it is taking the host's default for the life of the room."
49
+ },
50
+ "retentionDays": {
51
+ "type": "integer",
52
+ "minimum": 1,
53
+ "description": "How long the host is asked to hold the room after it lapses."
54
+ },
55
+ "ext": {
56
+ "$ref": "#/$defs/Ext",
57
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
58
+ }
59
+ },
60
+ "$defs": {
61
+ "Response": {
62
+ "$anchor": "response",
63
+ "title": "Rooms Owner Register — response payload",
64
+ "description": "Success response to rooms/owner/register. Type https://trusttasks.org/spec/rooms/owner/register/0.1#response.",
65
+ "type": "object",
66
+ "additionalProperties": false,
67
+ "required": [
68
+ "roomId",
69
+ "host",
70
+ "epoch"
71
+ ],
72
+ "properties": {
73
+ "roomId": {
74
+ "type": "string"
75
+ },
76
+ "host": {
77
+ "type": "string",
78
+ "description": "The host that accepted it, echoed so a caller recording where its room lives records what the recipient actually reached rather than what it asked for."
79
+ },
80
+ "epoch": {
81
+ "type": "integer",
82
+ "minimum": 1,
83
+ "description": "The epoch the room now stands at, as the host reports it. `1` for a room registered for the first time."
84
+ },
85
+ "ext": {
86
+ "$ref": "#/$defs/Ext"
87
+ }
88
+ }
89
+ },
90
+ "Ext": {
91
+ "title": "Ext",
92
+ "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.",
93
+ "type": "object",
94
+ "minProperties": 1,
95
+ "additionalProperties": true,
96
+ "propertyNames": {
97
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
98
+ }
99
+ },
100
+ "RetentionPolicy": {
101
+ "title": "RetentionPolicy",
102
+ "type": "string",
103
+ "enum": [
104
+ "chained",
105
+ "fromJoin"
106
+ ],
107
+ "description": "Whether a room keeps its history readable across a membership change, fixed at creation and immutable thereafter — like `Visibility`, and for the same reason: the rungs of an epoch key chain either exist for an epoch or they do not, and no later change of mind can seal key material that was never sealed or unseal what was already severed. `chained`: each advance produces an `EpochLink`, so every member reads the room's whole retained history however long they have been in it — what a **library** wants, at the cost of post-compromise security for record content, since a compromised current key then reaches every retained epoch. `fromJoin`: no rungs are produced, so a member reads only from the epoch their group state is at — what a **stream** wants, and what a room under a strict forward-secrecy obligation wants, at the cost that a joining member finds an empty-looking room and nobody can reread a record once their group state has moved past the epoch it was sealed under. Absent means `chained`; see the prose on why the absent case is the readable one.",
108
+ "$comment": "Deliberately no JSON Schema `default`. A declared default is materialised by the generated bindings — the member becomes non-optional with a serde default — so an absent value would reappear as an explicit one on re-serialisation and break round-trip idempotence for every document written before this member existed. The meaning of absence is stated in prose, where a binding cannot act on it."
109
+ },
110
+ "Visibility": {
111
+ "title": "Visibility",
112
+ "type": "string",
113
+ "enum": [
114
+ "open",
115
+ "attributed",
116
+ "private"
117
+ ],
118
+ "description": "How much of a room its host can see, fixed at creation and immutable thereafter. `open`: records are cleartext, searchable and fully audited. `attributed`: record content is sealed, and the host still learns which member acted. `private`: content is sealed and membership is presented in zero knowledge, so the host verifies that a member acted without learning which. Immutable because a downgrade cannot un-see cleartext and an upgrade would protect only what came after while presenting as though it protected everything."
119
+ }
120
+ }
121
+ };
122
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
123
+ export const RESPONSE_PAYLOAD_SCHEMA = {
124
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
125
+ "$ref": "#/$defs/Response",
126
+ "$defs": {
127
+ "Response": {
128
+ "$anchor": "response",
129
+ "title": "Rooms Owner Register — response payload",
130
+ "description": "Success response to rooms/owner/register. Type https://trusttasks.org/spec/rooms/owner/register/0.1#response.",
131
+ "type": "object",
132
+ "additionalProperties": false,
133
+ "required": [
134
+ "roomId",
135
+ "host",
136
+ "epoch"
137
+ ],
138
+ "properties": {
139
+ "roomId": {
140
+ "type": "string"
141
+ },
142
+ "host": {
143
+ "type": "string",
144
+ "description": "The host that accepted it, echoed so a caller recording where its room lives records what the recipient actually reached rather than what it asked for."
145
+ },
146
+ "epoch": {
147
+ "type": "integer",
148
+ "minimum": 1,
149
+ "description": "The epoch the room now stands at, as the host reports it. `1` for a room registered for the first time."
150
+ },
151
+ "ext": {
152
+ "$ref": "#/$defs/Ext"
153
+ }
154
+ }
155
+ },
156
+ "Ext": {
157
+ "title": "Ext",
158
+ "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.",
159
+ "type": "object",
160
+ "minProperties": 1,
161
+ "additionalProperties": true,
162
+ "propertyNames": {
163
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
164
+ }
165
+ },
166
+ "RetentionPolicy": {
167
+ "title": "RetentionPolicy",
168
+ "type": "string",
169
+ "enum": [
170
+ "chained",
171
+ "fromJoin"
172
+ ],
173
+ "description": "Whether a room keeps its history readable across a membership change, fixed at creation and immutable thereafter — like `Visibility`, and for the same reason: the rungs of an epoch key chain either exist for an epoch or they do not, and no later change of mind can seal key material that was never sealed or unseal what was already severed. `chained`: each advance produces an `EpochLink`, so every member reads the room's whole retained history however long they have been in it — what a **library** wants, at the cost of post-compromise security for record content, since a compromised current key then reaches every retained epoch. `fromJoin`: no rungs are produced, so a member reads only from the epoch their group state is at — what a **stream** wants, and what a room under a strict forward-secrecy obligation wants, at the cost that a joining member finds an empty-looking room and nobody can reread a record once their group state has moved past the epoch it was sealed under. Absent means `chained`; see the prose on why the absent case is the readable one.",
174
+ "$comment": "Deliberately no JSON Schema `default`. A declared default is materialised by the generated bindings — the member becomes non-optional with a serde default — so an absent value would reappear as an explicit one on re-serialisation and break round-trip idempotence for every document written before this member existed. The meaning of absence is stated in prose, where a binding cannot act on it."
175
+ },
176
+ "Visibility": {
177
+ "title": "Visibility",
178
+ "type": "string",
179
+ "enum": [
180
+ "open",
181
+ "attributed",
182
+ "private"
183
+ ],
184
+ "description": "How much of a room its host can see, fixed at creation and immutable thereafter. `open`: records are cleartext, searchable and fully audited. `attributed`: record content is sealed, and the host still learns which member acted. `private`: content is sealed and membership is presented in zero knowledge, so the host verifies that a member acted without learning which. Immutable because a downgrade cannot un-see cleartext and an upgrade would protect only what came after while presenting as though it protected everything."
185
+ }
186
+ }
187
+ };
188
+ /**
189
+ * SPEC.md §7.2 policy for the request variant, from this specification's
190
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
191
+ * per-specification and cannot be derived from the document alone, and
192
+ * item 2 needs the schema this carries.
193
+ */
194
+ export const SPEC = {
195
+ typeUri: TYPE_URI,
196
+ isBearer: false,
197
+ isProofRequired: true,
198
+ isRecipientRequired: true,
199
+ isIssuedAtRequired: true,
200
+ payloadSchema: PAYLOAD_SCHEMA,
201
+ };
202
+ /**
203
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
204
+ * tracks the *issuer* party's requirement because a response swaps the
205
+ * parties (§7.3 item 5).
206
+ */
207
+ export const RESPONSE_SPEC = {
208
+ typeUri: RESPONSE_TYPE_URI,
209
+ isBearer: false,
210
+ isProofRequired: true,
211
+ isRecipientRequired: true,
212
+ isIssuedAtRequired: true,
213
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
214
+ };
215
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/rooms/owner/register/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.17.6",
3
+ "version": "0.17.8",
4
4
  "description": "Generated TypeScript bindings for the Trust Tasks framework registry.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -267,6 +267,10 @@ export type RecordType = "authorization" | "recognition";
267
267
  * Absent means *not decided by the holder* and resolves from the claim-type registry, which defaults `payment.*` and `gov.*` to `stepUp`.
268
268
  */
269
269
  export type ReleaseRequirement = "consent" | "stepUp";
270
+ /**
271
+ * Whether a room keeps its history readable across a membership change, fixed at creation and immutable thereafter — like `Visibility`, and for the same reason: the rungs of an epoch key chain either exist for an epoch or they do not, and no later change of mind can seal key material that was never sealed or unseal what was already severed. `chained`: each advance produces an `EpochLink`, so every member reads the room's whole retained history however long they have been in it — what a **library** wants, at the cost of post-compromise security for record content, since a compromised current key then reaches every retained epoch. `fromJoin`: no rungs are produced, so a member reads only from the epoch their group state is at — what a **stream** wants, and what a room under a strict forward-secrecy obligation wants, at the cost that a joining member finds an empty-looking room and nobody can reread a record once their group state has moved past the epoch it was sealed under. Absent means `chained`; see the prose on why the absent case is the readable one.
272
+ */
273
+ export type RetentionPolicy = "chained" | "fromJoin";
270
274
  /**
271
275
  * How a consent prompt reaches the approver: `wake` pushes to the approver's device for a DID-signed decision; `bridge-relay` renders it through an enrolled bridge (e.g. a numbered card in the operator's messaging app) for a bridge-attested decision.
272
276
  */