@openvtc/trust-tasks 0.28.23 → 0.28.25

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 (100) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/dist/_shared/components.d.ts +520 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +45 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +45 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/messaging/mux/_shared/0.1/mux.d.ts +16 -0
  9. package/dist/messaging/mux/_shared/0.1/mux.d.ts.map +1 -0
  10. package/dist/messaging/mux/_shared/0.1/mux.js +6 -0
  11. package/dist/messaging/mux/_shared/0.1/mux.js.map +1 -0
  12. package/dist/messaging/mux/attach/0.1/payload.d.ts +996 -0
  13. package/dist/messaging/mux/attach/0.1/payload.d.ts.map +1 -0
  14. package/dist/messaging/mux/attach/0.1/payload.js +594 -0
  15. package/dist/messaging/mux/attach/0.1/payload.js.map +1 -0
  16. package/dist/messaging/mux/detach/0.1/payload.d.ts +398 -0
  17. package/dist/messaging/mux/detach/0.1/payload.d.ts.map +1 -0
  18. package/dist/messaging/mux/detach/0.1/payload.js +215 -0
  19. package/dist/messaging/mux/detach/0.1/payload.js.map +1 -0
  20. package/dist/messaging/mux/event/0.1/payload.d.ts +513 -0
  21. package/dist/messaging/mux/event/0.1/payload.d.ts.map +1 -0
  22. package/dist/messaging/mux/event/0.1/payload.js +260 -0
  23. package/dist/messaging/mux/event/0.1/payload.js.map +1 -0
  24. package/dist/messaging/mux/grant/0.1/payload.d.ts +1008 -0
  25. package/dist/messaging/mux/grant/0.1/payload.d.ts.map +1 -0
  26. package/dist/messaging/mux/grant/0.1/payload.js +606 -0
  27. package/dist/messaging/mux/grant/0.1/payload.js.map +1 -0
  28. package/dist/messaging/mux/list/0.1/payload.d.ts +1241 -0
  29. package/dist/messaging/mux/list/0.1/payload.d.ts.map +1 -0
  30. package/dist/messaging/mux/list/0.1/payload.js +715 -0
  31. package/dist/messaging/mux/list/0.1/payload.js.map +1 -0
  32. package/dist/messaging/mux/notice/0.1/payload.d.ts +489 -0
  33. package/dist/messaging/mux/notice/0.1/payload.d.ts.map +1 -0
  34. package/dist/messaging/mux/notice/0.1/payload.js +249 -0
  35. package/dist/messaging/mux/notice/0.1/payload.js.map +1 -0
  36. package/dist/messaging/mux/revoke/0.1/payload.d.ts +585 -0
  37. package/dist/messaging/mux/revoke/0.1/payload.d.ts.map +1 -0
  38. package/dist/messaging/mux/revoke/0.1/payload.js +311 -0
  39. package/dist/messaging/mux/revoke/0.1/payload.js.map +1 -0
  40. package/dist/messaging/mux/revoke-all/0.1/payload.d.ts +682 -0
  41. package/dist/messaging/mux/revoke-all/0.1/payload.d.ts.map +1 -0
  42. package/dist/messaging/mux/revoke-all/0.1/payload.js +397 -0
  43. package/dist/messaging/mux/revoke-all/0.1/payload.js.map +1 -0
  44. package/dist/messaging/mux/update/0.1/payload.d.ts +995 -0
  45. package/dist/messaging/mux/update/0.1/payload.d.ts.map +1 -0
  46. package/dist/messaging/mux/update/0.1/payload.js +586 -0
  47. package/dist/messaging/mux/update/0.1/payload.js.map +1 -0
  48. package/dist/vta/_shared/0.1/memory-record.d.ts +22 -0
  49. package/dist/vta/_shared/0.1/memory-record.d.ts.map +1 -0
  50. package/dist/vta/_shared/0.1/memory-record.js +6 -0
  51. package/dist/vta/_shared/0.1/memory-record.js.map +1 -0
  52. package/dist/vta/memory/delete/0.1/payload.d.ts +13 -2
  53. package/dist/vta/memory/delete/0.1/payload.d.ts.map +1 -1
  54. package/dist/vta/memory/delete/0.1/payload.js +1 -1
  55. package/dist/vta/memory/delete/0.1/payload.js.map +1 -1
  56. package/dist/vta/memory/delete/0.2/payload.d.ts +415 -0
  57. package/dist/vta/memory/delete/0.2/payload.d.ts.map +1 -0
  58. package/dist/vta/memory/delete/0.2/payload.js +224 -0
  59. package/dist/vta/memory/delete/0.2/payload.js.map +1 -0
  60. package/dist/vta/memory/get/0.1/payload.d.ts +646 -0
  61. package/dist/vta/memory/get/0.1/payload.d.ts.map +1 -0
  62. package/dist/vta/memory/get/0.1/payload.js +349 -0
  63. package/dist/vta/memory/get/0.1/payload.js.map +1 -0
  64. package/dist/vta/memory/list/0.1/payload.d.ts +13 -2
  65. package/dist/vta/memory/list/0.1/payload.d.ts.map +1 -1
  66. package/dist/vta/memory/list/0.1/payload.js +1 -1
  67. package/dist/vta/memory/list/0.1/payload.js.map +1 -1
  68. package/dist/vta/memory/list/0.2/payload.d.ts +693 -0
  69. package/dist/vta/memory/list/0.2/payload.d.ts.map +1 -0
  70. package/dist/vta/memory/list/0.2/payload.js +363 -0
  71. package/dist/vta/memory/list/0.2/payload.js.map +1 -0
  72. package/dist/vta/memory/put/0.1/payload.d.ts +13 -2
  73. package/dist/vta/memory/put/0.1/payload.d.ts.map +1 -1
  74. package/dist/vta/memory/put/0.1/payload.js +1 -1
  75. package/dist/vta/memory/put/0.1/payload.js.map +1 -1
  76. package/dist/vta/memory/put/0.2/payload.d.ts +490 -0
  77. package/dist/vta/memory/put/0.2/payload.d.ts.map +1 -0
  78. package/dist/vta/memory/put/0.2/payload.js +264 -0
  79. package/dist/vta/memory/put/0.2/payload.js.map +1 -0
  80. package/package.json +1 -1
  81. package/src/_shared/components.ts +581 -0
  82. package/src/index.ts +45 -0
  83. package/src/messaging/mux/_shared/0.1/mux.ts +17 -0
  84. package/src/messaging/mux/attach/0.1/payload.ts +682 -0
  85. package/src/messaging/mux/detach/0.1/payload.ts +278 -0
  86. package/src/messaging/mux/event/0.1/payload.ts +371 -0
  87. package/src/messaging/mux/grant/0.1/payload.ts +710 -0
  88. package/src/messaging/mux/list/0.1/payload.ts +793 -0
  89. package/src/messaging/mux/notice/0.1/payload.ts +362 -0
  90. package/src/messaging/mux/revoke/0.1/payload.ts +389 -0
  91. package/src/messaging/mux/revoke-all/0.1/payload.ts +452 -0
  92. package/src/messaging/mux/update/0.1/payload.ts +644 -0
  93. package/src/vta/_shared/0.1/memory-record.ts +23 -0
  94. package/src/vta/memory/delete/0.1/payload.ts +14 -3
  95. package/src/vta/memory/delete/0.2/payload.ts +288 -0
  96. package/src/vta/memory/get/0.1/payload.ts +414 -0
  97. package/src/vta/memory/list/0.1/payload.ts +14 -3
  98. package/src/vta/memory/list/0.2/payload.ts +445 -0
  99. package/src/vta/memory/put/0.1/payload.ts +14 -3
  100. package/src/vta/memory/put/0.2/payload.ts +333 -0
@@ -0,0 +1,398 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/messaging/mux/detach/0.1/payload.schema.json
4
+ */
5
+ import type { Ext, MuxDid } from "../../../../_shared/components.js";
6
+ /**
7
+ * A principal removes session attaches from the connection that carries the request. The outer document members are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface MessagingMuxDetachPayload {
10
+ /**
11
+ * The member DIDs whose session attaches on this connection are removed. A DID appears at most once.
12
+ *
13
+ * @minItems 1
14
+ * @maxItems 256
15
+ */
16
+ dids: [MuxDid, ...MuxDid[]];
17
+ /**
18
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
19
+ */
20
+ ext?: Ext;
21
+ }
22
+ /**
23
+ * The success response to a messaging/mux/detach request: every requested DID appears in `detached` or `notAttached`. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/mux/detach/0.1#response.
24
+ */
25
+ export interface MessagingMuxDetachResponsePayload {
26
+ /**
27
+ * DIDs whose session attach was removed. Each has left the connection, unless it is also listed in `retainedByGrant`.
28
+ *
29
+ * @maxItems 256
30
+ */
31
+ detached: MuxDid[];
32
+ /**
33
+ * DIDs that are also members through a stored grant: their session attach was removed, and they stay on the connection under the grant's scope. Revoke the grant with messaging/mux/revoke to remove them.
34
+ *
35
+ * @maxItems 256
36
+ */
37
+ retainedByGrant: MuxDid[];
38
+ /**
39
+ * DIDs that had no session attach on this connection. Nothing changed for them.
40
+ *
41
+ * @maxItems 256
42
+ */
43
+ notAttached: MuxDid[];
44
+ /**
45
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
46
+ */
47
+ ext?: Ext;
48
+ }
49
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
50
+ export type { Ext, MuxDid };
51
+ /** Trust Task type URI. */
52
+ export declare const TYPE_URI: "https://trusttasks.org/spec/messaging/mux/detach/0.1";
53
+ /**
54
+ * The earlier version of this specification that this one declares it
55
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
56
+ * `null`. Only the direct declaration — follow the chain with
57
+ * `extendsChain` / `readForSpec`.
58
+ */
59
+ export declare const EXTENDS: string | null;
60
+ /**
61
+ * Why this version is deprecated, or `null` while it is current. A
62
+ * superseded or retired version is still supported, and is withdrawn from
63
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
64
+ * Versions").
65
+ */
66
+ export declare const DEPRECATION: string | null;
67
+ /** Stable alias for this specification's request payload shape. */
68
+ export type Payload = MessagingMuxDetachPayload;
69
+ /** Trust Task response type URI (request type URI + "#response"). */
70
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/messaging/mux/detach/0.1#response";
71
+ /** Stable alias for this specification's success-response payload shape. */
72
+ export type Response = MessagingMuxDetachResponsePayload;
73
+ /**
74
+ * This specification's payload schema, as a value.
75
+ *
76
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
77
+ * rather than only as a `.json` file because TypeScript types are erased
78
+ * at runtime: without a schema a consumer has nothing to validate, and
79
+ * every REQUIRED payload member is optional in practice. Cross-file
80
+ * `$ref`s are already inlined, so it needs no resolver.
81
+ */
82
+ export declare const PAYLOAD_SCHEMA: {
83
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
84
+ readonly $id: "https://trusttasks.org/spec/messaging/mux/detach/0.1";
85
+ readonly title: "Messaging — Mux Detach — payload";
86
+ readonly description: "A principal removes session attaches from the connection that carries the request. The outer document members are owned by the framework — SPEC §6.3.";
87
+ readonly type: "object";
88
+ readonly additionalProperties: false;
89
+ readonly required: readonly ["dids"];
90
+ readonly properties: {
91
+ readonly dids: {
92
+ readonly type: "array";
93
+ readonly minItems: 1;
94
+ readonly maxItems: 256;
95
+ readonly uniqueItems: true;
96
+ readonly items: {
97
+ readonly $ref: "#/$defs/MuxDid";
98
+ };
99
+ readonly description: "The member DIDs whose session attaches on this connection are removed. A DID appears at most once.";
100
+ };
101
+ readonly ext: {
102
+ readonly $ref: "#/$defs/Ext";
103
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
104
+ };
105
+ };
106
+ readonly $defs: {
107
+ readonly Response: {
108
+ readonly $anchor: "response";
109
+ readonly title: "Messaging — Mux Detach — response payload";
110
+ readonly description: "The success response to a messaging/mux/detach request: every requested DID appears in `detached` or `notAttached`. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/mux/detach/0.1#response.";
111
+ readonly type: "object";
112
+ readonly additionalProperties: false;
113
+ readonly required: readonly ["detached", "retainedByGrant", "notAttached"];
114
+ readonly properties: {
115
+ readonly detached: {
116
+ readonly type: "array";
117
+ readonly maxItems: 256;
118
+ readonly items: {
119
+ readonly $ref: "#/$defs/MuxDid";
120
+ };
121
+ readonly description: "DIDs whose session attach was removed. Each has left the connection, unless it is also listed in `retainedByGrant`.";
122
+ };
123
+ readonly retainedByGrant: {
124
+ readonly type: "array";
125
+ readonly maxItems: 256;
126
+ readonly items: {
127
+ readonly $ref: "#/$defs/MuxDid";
128
+ };
129
+ readonly description: "DIDs that are also members through a stored grant: their session attach was removed, and they stay on the connection under the grant's scope. Revoke the grant with messaging/mux/revoke to remove them.";
130
+ };
131
+ readonly notAttached: {
132
+ readonly type: "array";
133
+ readonly maxItems: 256;
134
+ readonly items: {
135
+ readonly $ref: "#/$defs/MuxDid";
136
+ };
137
+ readonly description: "DIDs that had no session attach on this connection. Nothing changed for them.";
138
+ };
139
+ readonly ext: {
140
+ readonly $ref: "#/$defs/Ext";
141
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
142
+ };
143
+ };
144
+ };
145
+ readonly Ext: {
146
+ readonly title: "Ext";
147
+ 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.";
148
+ readonly type: "object";
149
+ readonly minProperties: 1;
150
+ readonly additionalProperties: true;
151
+ readonly propertyNames: {
152
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
153
+ };
154
+ };
155
+ readonly MuxDid: {
156
+ readonly title: "MuxDid";
157
+ readonly type: "string";
158
+ readonly minLength: 7;
159
+ readonly maxLength: 2048;
160
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
161
+ readonly description: "A DID, carried verbatim and compared by exact string equality. Unlike the messaging family's `Vid`, never a hash: the mediator resolves it to verify a statement signed by it. For a member DID reached over TSP, the TSP VID is the DID itself.";
162
+ };
163
+ };
164
+ };
165
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
166
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
167
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
168
+ readonly $ref: "#/$defs/Response";
169
+ readonly $defs: {
170
+ readonly Response: {
171
+ readonly $anchor: "response";
172
+ readonly title: "Messaging — Mux Detach — response payload";
173
+ readonly description: "The success response to a messaging/mux/detach request: every requested DID appears in `detached` or `notAttached`. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/mux/detach/0.1#response.";
174
+ readonly type: "object";
175
+ readonly additionalProperties: false;
176
+ readonly required: readonly ["detached", "retainedByGrant", "notAttached"];
177
+ readonly properties: {
178
+ readonly detached: {
179
+ readonly type: "array";
180
+ readonly maxItems: 256;
181
+ readonly items: {
182
+ readonly $ref: "#/$defs/MuxDid";
183
+ };
184
+ readonly description: "DIDs whose session attach was removed. Each has left the connection, unless it is also listed in `retainedByGrant`.";
185
+ };
186
+ readonly retainedByGrant: {
187
+ readonly type: "array";
188
+ readonly maxItems: 256;
189
+ readonly items: {
190
+ readonly $ref: "#/$defs/MuxDid";
191
+ };
192
+ readonly description: "DIDs that are also members through a stored grant: their session attach was removed, and they stay on the connection under the grant's scope. Revoke the grant with messaging/mux/revoke to remove them.";
193
+ };
194
+ readonly notAttached: {
195
+ readonly type: "array";
196
+ readonly maxItems: 256;
197
+ readonly items: {
198
+ readonly $ref: "#/$defs/MuxDid";
199
+ };
200
+ readonly description: "DIDs that had no session attach on this connection. Nothing changed for them.";
201
+ };
202
+ readonly ext: {
203
+ readonly $ref: "#/$defs/Ext";
204
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
205
+ };
206
+ };
207
+ };
208
+ readonly Ext: {
209
+ readonly title: "Ext";
210
+ 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.";
211
+ readonly type: "object";
212
+ readonly minProperties: 1;
213
+ readonly additionalProperties: true;
214
+ readonly propertyNames: {
215
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
216
+ };
217
+ };
218
+ readonly MuxDid: {
219
+ readonly title: "MuxDid";
220
+ readonly type: "string";
221
+ readonly minLength: 7;
222
+ readonly maxLength: 2048;
223
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
224
+ readonly description: "A DID, carried verbatim and compared by exact string equality. Unlike the messaging family's `Vid`, never a hash: the mediator resolves it to verify a statement signed by it. For a member DID reached over TSP, the TSP VID is the DID itself.";
225
+ };
226
+ };
227
+ };
228
+ /**
229
+ * SPEC.md §7.2 policy for the request variant, from this specification's
230
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
231
+ * per-specification and cannot be derived from the document alone, and
232
+ * item 2 needs the schema this carries.
233
+ */
234
+ export declare const SPEC: {
235
+ readonly typeUri: "https://trusttasks.org/spec/messaging/mux/detach/0.1";
236
+ readonly isBearer: false;
237
+ readonly isProofRequired: false;
238
+ readonly isRecipientRequired: true;
239
+ readonly isIssuedAtRequired: true;
240
+ readonly payloadSchema: {
241
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
242
+ readonly $id: "https://trusttasks.org/spec/messaging/mux/detach/0.1";
243
+ readonly title: "Messaging — Mux Detach — payload";
244
+ readonly description: "A principal removes session attaches from the connection that carries the request. The outer document members are owned by the framework — SPEC §6.3.";
245
+ readonly type: "object";
246
+ readonly additionalProperties: false;
247
+ readonly required: readonly ["dids"];
248
+ readonly properties: {
249
+ readonly dids: {
250
+ readonly type: "array";
251
+ readonly minItems: 1;
252
+ readonly maxItems: 256;
253
+ readonly uniqueItems: true;
254
+ readonly items: {
255
+ readonly $ref: "#/$defs/MuxDid";
256
+ };
257
+ readonly description: "The member DIDs whose session attaches on this connection are removed. A DID appears at most once.";
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: "Messaging — Mux Detach — response payload";
268
+ readonly description: "The success response to a messaging/mux/detach request: every requested DID appears in `detached` or `notAttached`. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/mux/detach/0.1#response.";
269
+ readonly type: "object";
270
+ readonly additionalProperties: false;
271
+ readonly required: readonly ["detached", "retainedByGrant", "notAttached"];
272
+ readonly properties: {
273
+ readonly detached: {
274
+ readonly type: "array";
275
+ readonly maxItems: 256;
276
+ readonly items: {
277
+ readonly $ref: "#/$defs/MuxDid";
278
+ };
279
+ readonly description: "DIDs whose session attach was removed. Each has left the connection, unless it is also listed in `retainedByGrant`.";
280
+ };
281
+ readonly retainedByGrant: {
282
+ readonly type: "array";
283
+ readonly maxItems: 256;
284
+ readonly items: {
285
+ readonly $ref: "#/$defs/MuxDid";
286
+ };
287
+ readonly description: "DIDs that are also members through a stored grant: their session attach was removed, and they stay on the connection under the grant's scope. Revoke the grant with messaging/mux/revoke to remove them.";
288
+ };
289
+ readonly notAttached: {
290
+ readonly type: "array";
291
+ readonly maxItems: 256;
292
+ readonly items: {
293
+ readonly $ref: "#/$defs/MuxDid";
294
+ };
295
+ readonly description: "DIDs that had no session attach on this connection. Nothing changed for them.";
296
+ };
297
+ readonly ext: {
298
+ readonly $ref: "#/$defs/Ext";
299
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
300
+ };
301
+ };
302
+ };
303
+ readonly Ext: {
304
+ readonly title: "Ext";
305
+ 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.";
306
+ readonly type: "object";
307
+ readonly minProperties: 1;
308
+ readonly additionalProperties: true;
309
+ readonly propertyNames: {
310
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
311
+ };
312
+ };
313
+ readonly MuxDid: {
314
+ readonly title: "MuxDid";
315
+ readonly type: "string";
316
+ readonly minLength: 7;
317
+ readonly maxLength: 2048;
318
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
319
+ readonly description: "A DID, carried verbatim and compared by exact string equality. Unlike the messaging family's `Vid`, never a hash: the mediator resolves it to verify a statement signed by it. For a member DID reached over TSP, the TSP VID is the DID itself.";
320
+ };
321
+ };
322
+ };
323
+ };
324
+ /**
325
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
326
+ * tracks the *issuer* party's requirement because a response swaps the
327
+ * parties (§7.3 item 5).
328
+ */
329
+ export declare const RESPONSE_SPEC: {
330
+ readonly typeUri: "https://trusttasks.org/spec/messaging/mux/detach/0.1#response";
331
+ readonly isBearer: false;
332
+ readonly isProofRequired: false;
333
+ readonly isRecipientRequired: true;
334
+ readonly isIssuedAtRequired: true;
335
+ readonly payloadSchema: {
336
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
337
+ readonly $ref: "#/$defs/Response";
338
+ readonly $defs: {
339
+ readonly Response: {
340
+ readonly $anchor: "response";
341
+ readonly title: "Messaging — Mux Detach — response payload";
342
+ readonly description: "The success response to a messaging/mux/detach request: every requested DID appears in `detached` or `notAttached`. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/mux/detach/0.1#response.";
343
+ readonly type: "object";
344
+ readonly additionalProperties: false;
345
+ readonly required: readonly ["detached", "retainedByGrant", "notAttached"];
346
+ readonly properties: {
347
+ readonly detached: {
348
+ readonly type: "array";
349
+ readonly maxItems: 256;
350
+ readonly items: {
351
+ readonly $ref: "#/$defs/MuxDid";
352
+ };
353
+ readonly description: "DIDs whose session attach was removed. Each has left the connection, unless it is also listed in `retainedByGrant`.";
354
+ };
355
+ readonly retainedByGrant: {
356
+ readonly type: "array";
357
+ readonly maxItems: 256;
358
+ readonly items: {
359
+ readonly $ref: "#/$defs/MuxDid";
360
+ };
361
+ readonly description: "DIDs that are also members through a stored grant: their session attach was removed, and they stay on the connection under the grant's scope. Revoke the grant with messaging/mux/revoke to remove them.";
362
+ };
363
+ readonly notAttached: {
364
+ readonly type: "array";
365
+ readonly maxItems: 256;
366
+ readonly items: {
367
+ readonly $ref: "#/$defs/MuxDid";
368
+ };
369
+ readonly description: "DIDs that had no session attach on this connection. Nothing changed for them.";
370
+ };
371
+ readonly ext: {
372
+ readonly $ref: "#/$defs/Ext";
373
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
374
+ };
375
+ };
376
+ };
377
+ readonly Ext: {
378
+ readonly title: "Ext";
379
+ 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.";
380
+ readonly type: "object";
381
+ readonly minProperties: 1;
382
+ readonly additionalProperties: true;
383
+ readonly propertyNames: {
384
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
385
+ };
386
+ };
387
+ readonly MuxDid: {
388
+ readonly title: "MuxDid";
389
+ readonly type: "string";
390
+ readonly minLength: 7;
391
+ readonly maxLength: 2048;
392
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
393
+ readonly description: "A DID, carried verbatim and compared by exact string equality. Unlike the messaging family's `Vid`, never a hash: the mediator resolves it to verify a statement signed by it. For a member DID reached over TSP, the TSP VID is the DID itself.";
394
+ };
395
+ };
396
+ };
397
+ };
398
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/messaging/mux/detach/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAGrE;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;;;OAKG;IACH,IAAI,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IAC5B;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD;;;;OAIG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB;;;;OAIG;IACH,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B;;;;OAIG;IACH,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;AAE5B,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,sDAA+D,CAAC;AAExF;;;;;GAKG;AACH,eAAO,MAAM,OAAO,EAAE,MAAM,GAAG,IAAW,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,GAAG,IAAW,CAAC;AAE/C,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwFjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiE1B,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/messaging/mux/detach/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/messaging/mux/detach/0.1";
7
+ /**
8
+ * The earlier version of this specification that this one declares it
9
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
10
+ * `null`. Only the direct declaration — follow the chain with
11
+ * `extendsChain` / `readForSpec`.
12
+ */
13
+ export const EXTENDS = null;
14
+ /**
15
+ * Why this version is deprecated, or `null` while it is current. A
16
+ * superseded or retired version is still supported, and is withdrawn from
17
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
18
+ * Versions").
19
+ */
20
+ export const DEPRECATION = null;
21
+ /** Trust Task response type URI (request type URI + "#response"). */
22
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/messaging/mux/detach/0.1#response";
23
+ /**
24
+ * This specification's payload schema, as a value.
25
+ *
26
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
27
+ * rather than only as a `.json` file because TypeScript types are erased
28
+ * at runtime: without a schema a consumer has nothing to validate, and
29
+ * every REQUIRED payload member is optional in practice. Cross-file
30
+ * `$ref`s are already inlined, so it needs no resolver.
31
+ */
32
+ export const PAYLOAD_SCHEMA = {
33
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
34
+ "$id": "https://trusttasks.org/spec/messaging/mux/detach/0.1",
35
+ "title": "Messaging — Mux Detach — payload",
36
+ "description": "A principal removes session attaches from the connection that carries the request. The outer document members are owned by the framework — SPEC §6.3.",
37
+ "type": "object",
38
+ "additionalProperties": false,
39
+ "required": [
40
+ "dids"
41
+ ],
42
+ "properties": {
43
+ "dids": {
44
+ "type": "array",
45
+ "minItems": 1,
46
+ "maxItems": 256,
47
+ "uniqueItems": true,
48
+ "items": {
49
+ "$ref": "#/$defs/MuxDid"
50
+ },
51
+ "description": "The member DIDs whose session attaches on this connection are removed. A DID appears at most once."
52
+ },
53
+ "ext": {
54
+ "$ref": "#/$defs/Ext",
55
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
56
+ }
57
+ },
58
+ "$defs": {
59
+ "Response": {
60
+ "$anchor": "response",
61
+ "title": "Messaging — Mux Detach — response payload",
62
+ "description": "The success response to a messaging/mux/detach request: every requested DID appears in `detached` or `notAttached`. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/mux/detach/0.1#response.",
63
+ "type": "object",
64
+ "additionalProperties": false,
65
+ "required": [
66
+ "detached",
67
+ "retainedByGrant",
68
+ "notAttached"
69
+ ],
70
+ "properties": {
71
+ "detached": {
72
+ "type": "array",
73
+ "maxItems": 256,
74
+ "items": {
75
+ "$ref": "#/$defs/MuxDid"
76
+ },
77
+ "description": "DIDs whose session attach was removed. Each has left the connection, unless it is also listed in `retainedByGrant`."
78
+ },
79
+ "retainedByGrant": {
80
+ "type": "array",
81
+ "maxItems": 256,
82
+ "items": {
83
+ "$ref": "#/$defs/MuxDid"
84
+ },
85
+ "description": "DIDs that are also members through a stored grant: their session attach was removed, and they stay on the connection under the grant's scope. Revoke the grant with messaging/mux/revoke to remove them."
86
+ },
87
+ "notAttached": {
88
+ "type": "array",
89
+ "maxItems": 256,
90
+ "items": {
91
+ "$ref": "#/$defs/MuxDid"
92
+ },
93
+ "description": "DIDs that had no session attach on this connection. Nothing changed for them."
94
+ },
95
+ "ext": {
96
+ "$ref": "#/$defs/Ext",
97
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
98
+ }
99
+ }
100
+ },
101
+ "Ext": {
102
+ "title": "Ext",
103
+ "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.",
104
+ "type": "object",
105
+ "minProperties": 1,
106
+ "additionalProperties": true,
107
+ "propertyNames": {
108
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
109
+ }
110
+ },
111
+ "MuxDid": {
112
+ "title": "MuxDid",
113
+ "type": "string",
114
+ "minLength": 7,
115
+ "maxLength": 2048,
116
+ "pattern": "^did:[a-z0-9]+:\\S+$",
117
+ "description": "A DID, carried verbatim and compared by exact string equality. Unlike the messaging family's `Vid`, never a hash: the mediator resolves it to verify a statement signed by it. For a member DID reached over TSP, the TSP VID is the DID itself."
118
+ }
119
+ }
120
+ };
121
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
122
+ export const RESPONSE_PAYLOAD_SCHEMA = {
123
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
124
+ "$ref": "#/$defs/Response",
125
+ "$defs": {
126
+ "Response": {
127
+ "$anchor": "response",
128
+ "title": "Messaging — Mux Detach — response payload",
129
+ "description": "The success response to a messaging/mux/detach request: every requested DID appears in `detached` or `notAttached`. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/mux/detach/0.1#response.",
130
+ "type": "object",
131
+ "additionalProperties": false,
132
+ "required": [
133
+ "detached",
134
+ "retainedByGrant",
135
+ "notAttached"
136
+ ],
137
+ "properties": {
138
+ "detached": {
139
+ "type": "array",
140
+ "maxItems": 256,
141
+ "items": {
142
+ "$ref": "#/$defs/MuxDid"
143
+ },
144
+ "description": "DIDs whose session attach was removed. Each has left the connection, unless it is also listed in `retainedByGrant`."
145
+ },
146
+ "retainedByGrant": {
147
+ "type": "array",
148
+ "maxItems": 256,
149
+ "items": {
150
+ "$ref": "#/$defs/MuxDid"
151
+ },
152
+ "description": "DIDs that are also members through a stored grant: their session attach was removed, and they stay on the connection under the grant's scope. Revoke the grant with messaging/mux/revoke to remove them."
153
+ },
154
+ "notAttached": {
155
+ "type": "array",
156
+ "maxItems": 256,
157
+ "items": {
158
+ "$ref": "#/$defs/MuxDid"
159
+ },
160
+ "description": "DIDs that had no session attach on this connection. Nothing changed for them."
161
+ },
162
+ "ext": {
163
+ "$ref": "#/$defs/Ext",
164
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
165
+ }
166
+ }
167
+ },
168
+ "Ext": {
169
+ "title": "Ext",
170
+ "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.",
171
+ "type": "object",
172
+ "minProperties": 1,
173
+ "additionalProperties": true,
174
+ "propertyNames": {
175
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
176
+ }
177
+ },
178
+ "MuxDid": {
179
+ "title": "MuxDid",
180
+ "type": "string",
181
+ "minLength": 7,
182
+ "maxLength": 2048,
183
+ "pattern": "^did:[a-z0-9]+:\\S+$",
184
+ "description": "A DID, carried verbatim and compared by exact string equality. Unlike the messaging family's `Vid`, never a hash: the mediator resolves it to verify a statement signed by it. For a member DID reached over TSP, the TSP VID is the DID itself."
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: false,
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: false,
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/messaging/mux/detach/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAoDH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,sDAA+D,CAAC;AAExF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAkB,IAAI,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAkB,IAAI,CAAC;AAK/C,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,+DAAwE,CAAC;AAK1G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,sDAAsD;IAC7D,OAAO,EAAE,kCAAkC;IAC3C,aAAa,EAAE,uJAAuJ;IACtK,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,MAAM;KACP;IACD,YAAY,EAAE;QACZ,MAAM,EAAE;YACN,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,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