@openvtc/trust-tasks 0.26.15 → 0.26.17

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 (43) hide show
  1. package/CHANGELOG.md +104 -0
  2. package/dist/_shared/components.d.ts +35 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +6 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +6 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/rooms/keys/act/0.4/payload.d.ts +546 -0
  9. package/dist/rooms/keys/act/0.4/payload.d.ts.map +1 -0
  10. package/dist/rooms/keys/act/0.4/payload.js +305 -0
  11. package/dist/rooms/keys/act/0.4/payload.js.map +1 -0
  12. package/dist/rooms/keys/act/0.5/payload.d.ts +546 -0
  13. package/dist/rooms/keys/act/0.5/payload.d.ts.map +1 -0
  14. package/dist/rooms/keys/act/0.5/payload.js +305 -0
  15. package/dist/rooms/keys/act/0.5/payload.js.map +1 -0
  16. package/dist/rooms/keys/key-package/0.2/payload.d.ts +304 -0
  17. package/dist/rooms/keys/key-package/0.2/payload.d.ts.map +1 -0
  18. package/dist/rooms/keys/key-package/0.2/payload.js +166 -0
  19. package/dist/rooms/keys/key-package/0.2/payload.js.map +1 -0
  20. package/dist/vtc/_shared/0.1/community-room.d.ts +1 -1
  21. package/dist/vtc/_shared/0.1/community-room.d.ts.map +1 -1
  22. package/dist/vtc/community/theme/show/0.1/payload.d.ts +238 -0
  23. package/dist/vtc/community/theme/show/0.1/payload.d.ts.map +1 -0
  24. package/dist/vtc/community/theme/show/0.1/payload.js +135 -0
  25. package/dist/vtc/community/theme/show/0.1/payload.js.map +1 -0
  26. package/dist/vtc/community/theme/update/0.1/payload.d.ts +286 -0
  27. package/dist/vtc/community/theme/update/0.1/payload.d.ts.map +1 -0
  28. package/dist/vtc/community/theme/update/0.1/payload.js +157 -0
  29. package/dist/vtc/community/theme/update/0.1/payload.js.map +1 -0
  30. package/dist/vtc/rooms/memberships/list/0.1/payload.d.ts +696 -0
  31. package/dist/vtc/rooms/memberships/list/0.1/payload.d.ts.map +1 -0
  32. package/dist/vtc/rooms/memberships/list/0.1/payload.js +402 -0
  33. package/dist/vtc/rooms/memberships/list/0.1/payload.js.map +1 -0
  34. package/package.json +1 -1
  35. package/src/_shared/components.ts +35 -0
  36. package/src/index.ts +6 -0
  37. package/src/rooms/keys/act/0.4/payload.ts +380 -0
  38. package/src/rooms/keys/act/0.5/payload.ts +380 -0
  39. package/src/rooms/keys/key-package/0.2/payload.ts +219 -0
  40. package/src/vtc/_shared/0.1/community-room.ts +1 -1
  41. package/src/vtc/community/theme/show/0.1/payload.ts +170 -0
  42. package/src/vtc/community/theme/update/0.1/payload.ts +204 -0
  43. package/src/vtc/rooms/memberships/list/0.1/payload.ts +445 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/rooms/memberships/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAGlK,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,sCAAsC;IACrD;;OAEG;IACH,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,cAAc,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hB,CAAC"}
@@ -0,0 +1,402 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/rooms/memberships/list/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/rooms/memberships/list/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/rooms/memberships/list/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/vtc/rooms/memberships/list/0.1",
21
+ "title": "VTC Rooms Memberships List — payload",
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "properties": {
25
+ "cursor": {
26
+ "type": "string",
27
+ "minLength": 1,
28
+ "maxLength": 1024,
29
+ "description": "Opaque continuation token from a previous page's `nextCursor`."
30
+ },
31
+ "limit": {
32
+ "type": "integer",
33
+ "minimum": 1,
34
+ "maximum": 100,
35
+ "description": "Page size. The community chooses when absent (50 in the reference implementation)."
36
+ },
37
+ "ext": {
38
+ "$ref": "#/$defs/Ext"
39
+ }
40
+ },
41
+ "$defs": {
42
+ "Response": {
43
+ "$anchor": "response",
44
+ "title": "VTC Rooms Memberships List — response payload",
45
+ "description": "Success response to vtc/rooms/memberships/list. Type https://trusttasks.org/spec/vtc/rooms/memberships/list/0.1#response. The community's record of the caller's admissions to the rooms it owns, in every state, and no one else's.",
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "required": [
49
+ "items"
50
+ ],
51
+ "properties": {
52
+ "items": {
53
+ "type": "array",
54
+ "maxItems": 100,
55
+ "items": {
56
+ "$ref": "#/$defs/RoomMembership"
57
+ }
58
+ },
59
+ "nextCursor": {
60
+ "type": "string",
61
+ "minLength": 1,
62
+ "maxLength": 1024,
63
+ "description": "Present when more remain; pass it as `cursor`."
64
+ },
65
+ "ext": {
66
+ "$ref": "#/$defs/Ext"
67
+ }
68
+ }
69
+ },
70
+ "Ext": {
71
+ "title": "Ext",
72
+ "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.",
73
+ "type": "object",
74
+ "minProperties": 1,
75
+ "additionalProperties": true,
76
+ "propertyNames": {
77
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
78
+ }
79
+ },
80
+ "RoomMembership": {
81
+ "title": "RoomMembership",
82
+ "type": "object",
83
+ "additionalProperties": false,
84
+ "required": [
85
+ "roomId",
86
+ "host",
87
+ "label",
88
+ "visibility",
89
+ "actions",
90
+ "validUntil",
91
+ "state",
92
+ "offeredAt"
93
+ ],
94
+ "description": "What vtc/rooms/memberships/list/0.1 returns: one room the community owns, and where the caller's admission to it stands in the community's own record. Unlike `OfferV2` it carries no credentials — those are collected with vtc/rooms/offers/list while an offer is open — and it is listed in every state, for as long as the community keeps the record, not only while an accept can be repeated. `label` and `description` are the room's as they stand when the record is read.",
95
+ "properties": {
96
+ "roomId": {
97
+ "type": "string",
98
+ "minLength": 1,
99
+ "maxLength": 512
100
+ },
101
+ "host": {
102
+ "type": "string",
103
+ "pattern": "^did:",
104
+ "maxLength": 2048,
105
+ "description": "The room's host: this community."
106
+ },
107
+ "label": {
108
+ "$ref": "#/$defs/RoomLabel"
109
+ },
110
+ "description": {
111
+ "$ref": "#/$defs/RoomDescription",
112
+ "description": "Absent when the room has none."
113
+ },
114
+ "visibility": {
115
+ "$ref": "#/$defs/Visibility"
116
+ },
117
+ "actions": {
118
+ "$ref": "#/$defs/MemberActions"
119
+ },
120
+ "validUntil": {
121
+ "type": "string",
122
+ "format": "date-time",
123
+ "description": "When the member's authority credential expires."
124
+ },
125
+ "state": {
126
+ "$ref": "#/$defs/MemberState"
127
+ },
128
+ "offeredAt": {
129
+ "type": "string",
130
+ "format": "date-time"
131
+ },
132
+ "admittedAt": {
133
+ "type": "string",
134
+ "format": "date-time",
135
+ "description": "When the community recorded the admission. Present when `state` is `admitted`, and kept when it becomes `removed`."
136
+ },
137
+ "removedAt": {
138
+ "type": "string",
139
+ "format": "date-time",
140
+ "description": "Present exactly when `state` is `removed`."
141
+ },
142
+ "repeatAcceptUntil": {
143
+ "type": "string",
144
+ "format": "date-time",
145
+ "description": "On an `attributed` or `private` room in state `admitted`: until when the community keeps the Welcome, so that a repeated vtc/rooms/offers/accept carrying the same KeyPackage is answered with it. Absent on an `open` room, in any other state, and once the community no longer keeps it. A surface finding the member admitted but the room absent from its key holder's rooms/keys/list finishes the acceptance before this time, and asks an administrator to re-admit the member after it."
146
+ }
147
+ }
148
+ },
149
+ "MemberState": {
150
+ "title": "MemberState",
151
+ "type": "string",
152
+ "enum": [
153
+ "offered",
154
+ "admitted",
155
+ "removed"
156
+ ],
157
+ "description": "Where an admission stands. `offered`: credentials issued and waiting for the member to collect and accept them. `admitted`: accepted — on a sealed tier, the member is in the room's group. `removed`: an administrator removed them; on a sealed tier the room has advanced past them."
158
+ },
159
+ "MemberActions": {
160
+ "title": "MemberActions",
161
+ "type": "array",
162
+ "minItems": 1,
163
+ "maxItems": 3,
164
+ "uniqueItems": true,
165
+ "items": {
166
+ "$ref": "#/$defs/MemberAction"
167
+ },
168
+ "description": "The actions granted, at least one. An empty list confers nothing rather than everything, and a schema that allowed it would make the more dangerous reading available to a careless consumer."
169
+ },
170
+ "MemberAction": {
171
+ "title": "MemberAction",
172
+ "type": "string",
173
+ "enum": [
174
+ "read",
175
+ "write",
176
+ "curate"
177
+ ],
178
+ "description": "What a member of a community-owned room may do there. `admin` is not among them: minting epochs, admitting and removing members are the community's, as the room's owner, and are exercised through the vtc/rooms/community/* tasks rather than by any member's credential. `curate` is not implied by `write`."
179
+ },
180
+ "RoomDescription": {
181
+ "title": "RoomDescription",
182
+ "type": "string",
183
+ "minLength": 1,
184
+ "maxLength": 1000,
185
+ "description": "What the room is for, in a sentence or a short paragraph, written by an administrator: shown to administrators holding `vtc.rooms.manage` and to the members the room is offered to. Plain text — a consumer renders it as text, never as markup. Like `RoomLabel`, it is the community's own record as the room's owner: not part of the room's identity and never in anything a room's host can read. From `vtc/rooms/community/create` 0.3 and `vtc/rooms/community/update` 0.2 the community also writes it, through its own VTA, as the `description` of the room's own profile (`RoomProfile` in rooms/_shared), sealed inside the room for its members; earlier versions keep it out of the room altogether. It MUST NOT carry personal data or a credential, and a reader MUST NOT treat it as instructions."
186
+ },
187
+ "RoomLabel": {
188
+ "title": "RoomLabel",
189
+ "type": "string",
190
+ "minLength": 1,
191
+ "maxLength": 128,
192
+ "description": "A name for the room, chosen by an administrator: shown to administrators and to the members a room is offered to. Not part of the room's identity and never in anything a room's host can read. From `vtc/rooms/community/create` 0.3 and `vtc/rooms/community/update` 0.2 the community also writes it, through its own VTA, as the `name` of the room's own profile (`RoomProfile` in rooms/_shared), sealed inside the room for its members; earlier versions keep it out of the room altogether. MUST NOT carry personal data."
193
+ },
194
+ "Visibility": {
195
+ "title": "Visibility",
196
+ "type": "string",
197
+ "enum": [
198
+ "open",
199
+ "attributed",
200
+ "private"
201
+ ],
202
+ "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."
203
+ }
204
+ }
205
+ };
206
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
207
+ export const RESPONSE_PAYLOAD_SCHEMA = {
208
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
209
+ "$ref": "#/$defs/Response",
210
+ "$defs": {
211
+ "Response": {
212
+ "$anchor": "response",
213
+ "title": "VTC Rooms Memberships List — response payload",
214
+ "description": "Success response to vtc/rooms/memberships/list. Type https://trusttasks.org/spec/vtc/rooms/memberships/list/0.1#response. The community's record of the caller's admissions to the rooms it owns, in every state, and no one else's.",
215
+ "type": "object",
216
+ "additionalProperties": false,
217
+ "required": [
218
+ "items"
219
+ ],
220
+ "properties": {
221
+ "items": {
222
+ "type": "array",
223
+ "maxItems": 100,
224
+ "items": {
225
+ "$ref": "#/$defs/RoomMembership"
226
+ }
227
+ },
228
+ "nextCursor": {
229
+ "type": "string",
230
+ "minLength": 1,
231
+ "maxLength": 1024,
232
+ "description": "Present when more remain; pass it as `cursor`."
233
+ },
234
+ "ext": {
235
+ "$ref": "#/$defs/Ext"
236
+ }
237
+ }
238
+ },
239
+ "Ext": {
240
+ "title": "Ext",
241
+ "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.",
242
+ "type": "object",
243
+ "minProperties": 1,
244
+ "additionalProperties": true,
245
+ "propertyNames": {
246
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
247
+ }
248
+ },
249
+ "RoomMembership": {
250
+ "title": "RoomMembership",
251
+ "type": "object",
252
+ "additionalProperties": false,
253
+ "required": [
254
+ "roomId",
255
+ "host",
256
+ "label",
257
+ "visibility",
258
+ "actions",
259
+ "validUntil",
260
+ "state",
261
+ "offeredAt"
262
+ ],
263
+ "description": "What vtc/rooms/memberships/list/0.1 returns: one room the community owns, and where the caller's admission to it stands in the community's own record. Unlike `OfferV2` it carries no credentials — those are collected with vtc/rooms/offers/list while an offer is open — and it is listed in every state, for as long as the community keeps the record, not only while an accept can be repeated. `label` and `description` are the room's as they stand when the record is read.",
264
+ "properties": {
265
+ "roomId": {
266
+ "type": "string",
267
+ "minLength": 1,
268
+ "maxLength": 512
269
+ },
270
+ "host": {
271
+ "type": "string",
272
+ "pattern": "^did:",
273
+ "maxLength": 2048,
274
+ "description": "The room's host: this community."
275
+ },
276
+ "label": {
277
+ "$ref": "#/$defs/RoomLabel"
278
+ },
279
+ "description": {
280
+ "$ref": "#/$defs/RoomDescription",
281
+ "description": "Absent when the room has none."
282
+ },
283
+ "visibility": {
284
+ "$ref": "#/$defs/Visibility"
285
+ },
286
+ "actions": {
287
+ "$ref": "#/$defs/MemberActions"
288
+ },
289
+ "validUntil": {
290
+ "type": "string",
291
+ "format": "date-time",
292
+ "description": "When the member's authority credential expires."
293
+ },
294
+ "state": {
295
+ "$ref": "#/$defs/MemberState"
296
+ },
297
+ "offeredAt": {
298
+ "type": "string",
299
+ "format": "date-time"
300
+ },
301
+ "admittedAt": {
302
+ "type": "string",
303
+ "format": "date-time",
304
+ "description": "When the community recorded the admission. Present when `state` is `admitted`, and kept when it becomes `removed`."
305
+ },
306
+ "removedAt": {
307
+ "type": "string",
308
+ "format": "date-time",
309
+ "description": "Present exactly when `state` is `removed`."
310
+ },
311
+ "repeatAcceptUntil": {
312
+ "type": "string",
313
+ "format": "date-time",
314
+ "description": "On an `attributed` or `private` room in state `admitted`: until when the community keeps the Welcome, so that a repeated vtc/rooms/offers/accept carrying the same KeyPackage is answered with it. Absent on an `open` room, in any other state, and once the community no longer keeps it. A surface finding the member admitted but the room absent from its key holder's rooms/keys/list finishes the acceptance before this time, and asks an administrator to re-admit the member after it."
315
+ }
316
+ }
317
+ },
318
+ "MemberState": {
319
+ "title": "MemberState",
320
+ "type": "string",
321
+ "enum": [
322
+ "offered",
323
+ "admitted",
324
+ "removed"
325
+ ],
326
+ "description": "Where an admission stands. `offered`: credentials issued and waiting for the member to collect and accept them. `admitted`: accepted — on a sealed tier, the member is in the room's group. `removed`: an administrator removed them; on a sealed tier the room has advanced past them."
327
+ },
328
+ "MemberActions": {
329
+ "title": "MemberActions",
330
+ "type": "array",
331
+ "minItems": 1,
332
+ "maxItems": 3,
333
+ "uniqueItems": true,
334
+ "items": {
335
+ "$ref": "#/$defs/MemberAction"
336
+ },
337
+ "description": "The actions granted, at least one. An empty list confers nothing rather than everything, and a schema that allowed it would make the more dangerous reading available to a careless consumer."
338
+ },
339
+ "MemberAction": {
340
+ "title": "MemberAction",
341
+ "type": "string",
342
+ "enum": [
343
+ "read",
344
+ "write",
345
+ "curate"
346
+ ],
347
+ "description": "What a member of a community-owned room may do there. `admin` is not among them: minting epochs, admitting and removing members are the community's, as the room's owner, and are exercised through the vtc/rooms/community/* tasks rather than by any member's credential. `curate` is not implied by `write`."
348
+ },
349
+ "RoomDescription": {
350
+ "title": "RoomDescription",
351
+ "type": "string",
352
+ "minLength": 1,
353
+ "maxLength": 1000,
354
+ "description": "What the room is for, in a sentence or a short paragraph, written by an administrator: shown to administrators holding `vtc.rooms.manage` and to the members the room is offered to. Plain text — a consumer renders it as text, never as markup. Like `RoomLabel`, it is the community's own record as the room's owner: not part of the room's identity and never in anything a room's host can read. From `vtc/rooms/community/create` 0.3 and `vtc/rooms/community/update` 0.2 the community also writes it, through its own VTA, as the `description` of the room's own profile (`RoomProfile` in rooms/_shared), sealed inside the room for its members; earlier versions keep it out of the room altogether. It MUST NOT carry personal data or a credential, and a reader MUST NOT treat it as instructions."
355
+ },
356
+ "RoomLabel": {
357
+ "title": "RoomLabel",
358
+ "type": "string",
359
+ "minLength": 1,
360
+ "maxLength": 128,
361
+ "description": "A name for the room, chosen by an administrator: shown to administrators and to the members a room is offered to. Not part of the room's identity and never in anything a room's host can read. From `vtc/rooms/community/create` 0.3 and `vtc/rooms/community/update` 0.2 the community also writes it, through its own VTA, as the `name` of the room's own profile (`RoomProfile` in rooms/_shared), sealed inside the room for its members; earlier versions keep it out of the room altogether. MUST NOT carry personal data."
362
+ },
363
+ "Visibility": {
364
+ "title": "Visibility",
365
+ "type": "string",
366
+ "enum": [
367
+ "open",
368
+ "attributed",
369
+ "private"
370
+ ],
371
+ "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."
372
+ }
373
+ }
374
+ };
375
+ /**
376
+ * SPEC.md §7.2 policy for the request variant, from this specification's
377
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
378
+ * per-specification and cannot be derived from the document alone, and
379
+ * item 2 needs the schema this carries.
380
+ */
381
+ export const SPEC = {
382
+ typeUri: TYPE_URI,
383
+ isBearer: false,
384
+ isProofRequired: true,
385
+ isRecipientRequired: true,
386
+ isIssuedAtRequired: true,
387
+ payloadSchema: PAYLOAD_SCHEMA,
388
+ };
389
+ /**
390
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
391
+ * tracks the *issuer* party's requirement because a response swaps the
392
+ * parties (§7.3 item 5).
393
+ */
394
+ export const RESPONSE_SPEC = {
395
+ typeUri: RESPONSE_TYPE_URI,
396
+ isBearer: false,
397
+ isProofRequired: true,
398
+ isRecipientRequired: true,
399
+ isIssuedAtRequired: true,
400
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
401
+ };
402
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/rooms/memberships/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAkCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,4DAAqE,CAAC;AAK9F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,qEAA8E,CAAC;AAKhH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,4DAA4D;IACnE,OAAO,EAAE,sCAAsC;IAC/C,MAAM,EAAE,QAAQ;IAChB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sxB;SACtyB;QACD,WAAW,EAAE;YACX,OAAO,EAAE,WAAW;YACpB,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,GAAG;YAChB,aAAa,EAAE,ogBAAogB;SACphB;QACD,YAAY,EAAE;YACZ,OAAO,EAAE,YAAY;YACrB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,MAAM;gBACN,YAAY;gBACZ,SAAS;aACV;YACD,aAAa,EAAE,8gBAA8gB;SAC9hB;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openvtc/trust-tasks",
3
- "version": "0.26.15",
3
+ "version": "0.26.17",
4
4
  "description": "Generated TypeScript bindings for the Trust Tasks framework registry.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -8462,6 +8462,41 @@ export interface RoomMember {
8462
8462
  admittedAt?: string;
8463
8463
  removedAt?: string;
8464
8464
  }
8465
+ /**
8466
+ * What vtc/rooms/memberships/list/0.1 returns: one room the community owns, and where the caller's admission to it stands in the community's own record. Unlike `OfferV2` it carries no credentials — those are collected with vtc/rooms/offers/list while an offer is open — and it is listed in every state, for as long as the community keeps the record, not only while an accept can be repeated. `label` and `description` are the room's as they stand when the record is read.
8467
+ */
8468
+ export interface RoomMembership {
8469
+ roomId: string;
8470
+ /**
8471
+ * The room's host: this community.
8472
+ */
8473
+ host: string;
8474
+ label: RoomLabel;
8475
+ /**
8476
+ * Absent when the room has none.
8477
+ */
8478
+ description?: RoomDescription;
8479
+ visibility: Visibility;
8480
+ actions: MemberActions;
8481
+ /**
8482
+ * When the member's authority credential expires.
8483
+ */
8484
+ validUntil: string;
8485
+ state: MemberState;
8486
+ offeredAt: string;
8487
+ /**
8488
+ * When the community recorded the admission. Present when `state` is `admitted`, and kept when it becomes `removed`.
8489
+ */
8490
+ admittedAt?: string;
8491
+ /**
8492
+ * Present exactly when `state` is `removed`.
8493
+ */
8494
+ removedAt?: string;
8495
+ /**
8496
+ * On an `attributed` or `private` room in state `admitted`: until when the community keeps the Welcome, so that a repeated vtc/rooms/offers/accept carrying the same KeyPackage is answered with it. Absent on an `open` room, in any other state, and once the community no longer keeps it. A surface finding the member admitted but the room absent from its key holder's rooms/keys/list finishes the acceptance before this time, and asks an administrator to re-admit the member after it.
8497
+ */
8498
+ repeatAcceptUntil?: string;
8499
+ }
8465
8500
  /**
8466
8501
  * What a room says about itself to its own members: a name and, optionally, a description, short tags and an emoji, so that a member's wallet, portal or CLI can show what each room is rather than a DID.
8467
8502
  *
package/src/index.ts CHANGED
@@ -448,6 +448,8 @@ export * as RoomsInfo_v0_1 from "./rooms/info/0.1/payload.js";
448
448
  export * as RoomsKeysAct_v0_1 from "./rooms/keys/act/0.1/payload.js";
449
449
  export * as RoomsKeysAct_v0_2 from "./rooms/keys/act/0.2/payload.js";
450
450
  export * as RoomsKeysAct_v0_3 from "./rooms/keys/act/0.3/payload.js";
451
+ export * as RoomsKeysAct_v0_4 from "./rooms/keys/act/0.4/payload.js";
452
+ export * as RoomsKeysAct_v0_5 from "./rooms/keys/act/0.5/payload.js";
451
453
  export * as RoomsKeysBackfill_v0_1 from "./rooms/keys/backfill/0.1/payload.js";
452
454
  export * as RoomsKeysBrowse_v0_1 from "./rooms/keys/browse/0.1/payload.js";
453
455
  export * as RoomsKeysChain_v0_1 from "./rooms/keys/chain/0.1/payload.js";
@@ -455,6 +457,7 @@ export * as RoomsKeysCommit_v0_1 from "./rooms/keys/commit/0.1/payload.js";
455
457
  export * as RoomsKeysFileKey_v0_1 from "./rooms/keys/file-key/0.1/payload.js";
456
458
  export * as RoomsKeysFileKey_v0_2 from "./rooms/keys/file-key/0.2/payload.js";
457
459
  export * as RoomsKeysKeyPackage_v0_1 from "./rooms/keys/key-package/0.1/payload.js";
460
+ export * as RoomsKeysKeyPackage_v0_2 from "./rooms/keys/key-package/0.2/payload.js";
458
461
  export * as RoomsKeysLabel_v0_1 from "./rooms/keys/label/0.1/payload.js";
459
462
  export * as RoomsKeysList_v0_1 from "./rooms/keys/list/0.1/payload.js";
460
463
  export * as RoomsKeysList_v0_2 from "./rooms/keys/list/0.2/payload.js";
@@ -759,6 +762,8 @@ export * as VtcCommunityProfileShow_v0_1 from "./vtc/community/profile/show/0.1/
759
762
  export * as VtcCommunityProfileUpdate_v0_1 from "./vtc/community/profile/update/0.1/payload.js";
760
763
  export * as VtcCommunityRequestedAttributesShow_v0_1 from "./vtc/community/requested-attributes/show/0.1/payload.js";
761
764
  export * as VtcCommunityRequestedAttributesUpdate_v0_1 from "./vtc/community/requested-attributes/update/0.1/payload.js";
765
+ export * as VtcCommunityThemeShow_v0_1 from "./vtc/community/theme/show/0.1/payload.js";
766
+ export * as VtcCommunityThemeUpdate_v0_1 from "./vtc/community/theme/update/0.1/payload.js";
762
767
  export * as VtcConfigExport_v0_1 from "./vtc/config/export/0.1/payload.js";
763
768
  export * as VtcConfigImport_v0_1 from "./vtc/config/import/0.1/payload.js";
764
769
  export * as VtcCredentialsReissue_v0_1 from "./vtc/credentials/reissue/0.1/payload.js";
@@ -869,6 +874,7 @@ export * as VtcRoomsCommunityUpdate_v0_2 from "./vtc/rooms/community/update/0.2/
869
874
  export * as VtcRoomsGet_v0_1 from "./vtc/rooms/get/0.1/payload.js";
870
875
  export * as VtcRoomsLimitsSet_v0_1 from "./vtc/rooms/limits/set/0.1/payload.js";
871
876
  export * as VtcRoomsList_v0_1 from "./vtc/rooms/list/0.1/payload.js";
877
+ export * as VtcRoomsMembershipsList_v0_1 from "./vtc/rooms/memberships/list/0.1/payload.js";
872
878
  export * as VtcRoomsOffersAccept_v0_1 from "./vtc/rooms/offers/accept/0.1/payload.js";
873
879
  export * as VtcRoomsOffersList_v0_1 from "./vtc/rooms/offers/list/0.1/payload.js";
874
880
  export * as VtcRoomsOffersList_v0_2 from "./vtc/rooms/offers/list/0.2/payload.js";