@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,585 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/messaging/mux/revoke/0.1/payload.schema.json
4
+ */
5
+ import type { Ext, GrantId, GrantRef, MuxDid, MuxRole } from "../../../../_shared/components.js";
6
+ /**
7
+ * Revoke stored grants, as their principal or as their member DID. The outer document members are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface MessagingMuxRevokePayload {
10
+ /**
11
+ * `principal`: revoke grants delegated to the requester. `member`: revoke grants on a member DID the requester controls.
12
+ */
13
+ as: MuxRole;
14
+ /**
15
+ * As `member` only: the member DID whose grants are revoked; absent means the requester itself.
16
+ */
17
+ did?: MuxDid;
18
+ /**
19
+ * Grants to revoke, by identifier.
20
+ *
21
+ * @minItems 1
22
+ * @maxItems 256
23
+ */
24
+ grantIds?: [GrantId, ...GrantId[]];
25
+ /**
26
+ * As `principal`: member DIDs whose grants to the requester are revoked. As `member`: principal DIDs whose grants on the member are revoked.
27
+ *
28
+ * @minItems 1
29
+ * @maxItems 256
30
+ */
31
+ dids?: [MuxDid, ...MuxDid[]];
32
+ /**
33
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
34
+ */
35
+ ext?: Ext;
36
+ }
37
+ /**
38
+ * The success response to a messaging/mux/revoke request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/mux/revoke/0.1#response.
39
+ */
40
+ export interface MessagingMuxRevokeResponsePayload {
41
+ /**
42
+ * Grants this request deleted; their members are detached from every connection before this response is sent, and the principal's replay floor rises so their statements cannot be stored again.
43
+ *
44
+ * @maxItems 512
45
+ */
46
+ revoked: GrantRef[];
47
+ /**
48
+ * Requested grant identifiers that name no stored grant the requester may revoke in the role it named.
49
+ *
50
+ * @maxItems 256
51
+ */
52
+ unmatchedGrantIds?: GrantId[];
53
+ /**
54
+ * Requested DIDs with no stored grant the requester may revoke in the role it named.
55
+ *
56
+ * @maxItems 256
57
+ */
58
+ unmatchedDids?: MuxDid[];
59
+ /**
60
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
61
+ */
62
+ ext?: Ext;
63
+ }
64
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
65
+ export type { Ext, GrantId, GrantRef, MuxDid, MuxRole };
66
+ /** Trust Task type URI. */
67
+ export declare const TYPE_URI: "https://trusttasks.org/spec/messaging/mux/revoke/0.1";
68
+ /**
69
+ * The earlier version of this specification that this one declares it
70
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
71
+ * `null`. Only the direct declaration — follow the chain with
72
+ * `extendsChain` / `readForSpec`.
73
+ */
74
+ export declare const EXTENDS: string | null;
75
+ /**
76
+ * Why this version is deprecated, or `null` while it is current. A
77
+ * superseded or retired version is still supported, and is withdrawn from
78
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
79
+ * Versions").
80
+ */
81
+ export declare const DEPRECATION: string | null;
82
+ /** Stable alias for this specification's request payload shape. */
83
+ export type Payload = MessagingMuxRevokePayload;
84
+ /** Trust Task response type URI (request type URI + "#response"). */
85
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/messaging/mux/revoke/0.1#response";
86
+ /** Stable alias for this specification's success-response payload shape. */
87
+ export type Response = MessagingMuxRevokeResponsePayload;
88
+ /**
89
+ * This specification's payload schema, as a value.
90
+ *
91
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
92
+ * rather than only as a `.json` file because TypeScript types are erased
93
+ * at runtime: without a schema a consumer has nothing to validate, and
94
+ * every REQUIRED payload member is optional in practice. Cross-file
95
+ * `$ref`s are already inlined, so it needs no resolver.
96
+ */
97
+ export declare const PAYLOAD_SCHEMA: {
98
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
99
+ readonly $id: "https://trusttasks.org/spec/messaging/mux/revoke/0.1";
100
+ readonly title: "Messaging — Mux Revoke — payload";
101
+ readonly description: "Revoke stored grants, as their principal or as their member DID. The outer document members are owned by the framework — SPEC §6.3.";
102
+ readonly type: "object";
103
+ readonly additionalProperties: false;
104
+ readonly required: readonly ["as"];
105
+ readonly properties: {
106
+ readonly as: {
107
+ readonly $ref: "#/$defs/MuxRole";
108
+ readonly description: "`principal`: revoke grants delegated to the requester. `member`: revoke grants on a member DID the requester controls.";
109
+ };
110
+ readonly did: {
111
+ readonly $ref: "#/$defs/MuxDid";
112
+ readonly description: "As `member` only: the member DID whose grants are revoked; absent means the requester itself.";
113
+ };
114
+ readonly grantIds: {
115
+ readonly type: "array";
116
+ readonly minItems: 1;
117
+ readonly maxItems: 256;
118
+ readonly uniqueItems: true;
119
+ readonly items: {
120
+ readonly $ref: "#/$defs/GrantId";
121
+ };
122
+ readonly description: "Grants to revoke, by identifier.";
123
+ };
124
+ readonly dids: {
125
+ readonly type: "array";
126
+ readonly minItems: 1;
127
+ readonly maxItems: 256;
128
+ readonly uniqueItems: true;
129
+ readonly items: {
130
+ readonly $ref: "#/$defs/MuxDid";
131
+ };
132
+ readonly description: "As `principal`: member DIDs whose grants to the requester are revoked. As `member`: principal DIDs whose grants on the member are revoked.";
133
+ };
134
+ readonly ext: {
135
+ readonly $ref: "#/$defs/Ext";
136
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
137
+ };
138
+ };
139
+ readonly $defs: {
140
+ readonly Response: {
141
+ readonly $anchor: "response";
142
+ readonly title: "Messaging — Mux Revoke — response payload";
143
+ readonly description: "The success response to a messaging/mux/revoke request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/mux/revoke/0.1#response.";
144
+ readonly type: "object";
145
+ readonly additionalProperties: false;
146
+ readonly required: readonly ["revoked"];
147
+ readonly properties: {
148
+ readonly revoked: {
149
+ readonly type: "array";
150
+ readonly maxItems: 512;
151
+ readonly items: {
152
+ readonly $ref: "#/$defs/GrantRef";
153
+ };
154
+ readonly description: "Grants this request deleted; their members are detached from every connection before this response is sent, and the principal's replay floor rises so their statements cannot be stored again.";
155
+ };
156
+ readonly unmatchedGrantIds: {
157
+ readonly type: "array";
158
+ readonly maxItems: 256;
159
+ readonly items: {
160
+ readonly $ref: "#/$defs/GrantId";
161
+ };
162
+ readonly description: "Requested grant identifiers that name no stored grant the requester may revoke in the role it named.";
163
+ };
164
+ readonly unmatchedDids: {
165
+ readonly type: "array";
166
+ readonly maxItems: 256;
167
+ readonly items: {
168
+ readonly $ref: "#/$defs/MuxDid";
169
+ };
170
+ readonly description: "Requested DIDs with no stored grant the requester may revoke in the role it named.";
171
+ };
172
+ readonly ext: {
173
+ readonly $ref: "#/$defs/Ext";
174
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
175
+ };
176
+ };
177
+ };
178
+ readonly Ext: {
179
+ readonly title: "Ext";
180
+ 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.";
181
+ readonly type: "object";
182
+ readonly minProperties: 1;
183
+ readonly additionalProperties: true;
184
+ readonly propertyNames: {
185
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
186
+ };
187
+ };
188
+ readonly MuxDid: {
189
+ readonly title: "MuxDid";
190
+ readonly type: "string";
191
+ readonly minLength: 7;
192
+ readonly maxLength: 2048;
193
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
194
+ 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.";
195
+ };
196
+ readonly GrantId: {
197
+ readonly title: "GrantId";
198
+ readonly type: "string";
199
+ readonly minLength: 1;
200
+ readonly maxLength: 128;
201
+ readonly pattern: "^[A-Za-z0-9._:-]+$";
202
+ readonly description: "A grant's identifier, chosen by the member DID's signer and carried in its grant statement; a UUID is RECOMMENDED. A mediator refuses a grant whose identifier is already on the member DID's record.";
203
+ };
204
+ readonly GrantRef: {
205
+ readonly title: "GrantRef";
206
+ readonly type: "object";
207
+ readonly additionalProperties: false;
208
+ readonly required: readonly ["grantId", "did", "principal"];
209
+ readonly description: "Identifies one stored grant and the two parties to it.";
210
+ readonly properties: {
211
+ readonly grantId: {
212
+ readonly $ref: "#/$defs/GrantId";
213
+ };
214
+ readonly did: {
215
+ readonly $ref: "#/$defs/MuxDid";
216
+ readonly description: "The member DID.";
217
+ };
218
+ readonly principal: {
219
+ readonly $ref: "#/$defs/MuxDid";
220
+ readonly description: "The principal DID the grant delegates to.";
221
+ };
222
+ };
223
+ };
224
+ readonly MuxRole: {
225
+ readonly title: "MuxRole";
226
+ readonly type: "string";
227
+ readonly enum: readonly ["principal", "member"];
228
+ readonly description: "The side of a delegation a requester acts as. `principal`: the DID that authenticated the connection and to which members' traffic is delegated. `member`: a DID whose traffic is delegated.";
229
+ };
230
+ };
231
+ };
232
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
233
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
234
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
235
+ readonly $ref: "#/$defs/Response";
236
+ readonly $defs: {
237
+ readonly Response: {
238
+ readonly $anchor: "response";
239
+ readonly title: "Messaging — Mux Revoke — response payload";
240
+ readonly description: "The success response to a messaging/mux/revoke request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/mux/revoke/0.1#response.";
241
+ readonly type: "object";
242
+ readonly additionalProperties: false;
243
+ readonly required: readonly ["revoked"];
244
+ readonly properties: {
245
+ readonly revoked: {
246
+ readonly type: "array";
247
+ readonly maxItems: 512;
248
+ readonly items: {
249
+ readonly $ref: "#/$defs/GrantRef";
250
+ };
251
+ readonly description: "Grants this request deleted; their members are detached from every connection before this response is sent, and the principal's replay floor rises so their statements cannot be stored again.";
252
+ };
253
+ readonly unmatchedGrantIds: {
254
+ readonly type: "array";
255
+ readonly maxItems: 256;
256
+ readonly items: {
257
+ readonly $ref: "#/$defs/GrantId";
258
+ };
259
+ readonly description: "Requested grant identifiers that name no stored grant the requester may revoke in the role it named.";
260
+ };
261
+ readonly unmatchedDids: {
262
+ readonly type: "array";
263
+ readonly maxItems: 256;
264
+ readonly items: {
265
+ readonly $ref: "#/$defs/MuxDid";
266
+ };
267
+ readonly description: "Requested DIDs with no stored grant the requester may revoke in the role it named.";
268
+ };
269
+ readonly ext: {
270
+ readonly $ref: "#/$defs/Ext";
271
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
272
+ };
273
+ };
274
+ };
275
+ readonly Ext: {
276
+ readonly title: "Ext";
277
+ 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.";
278
+ readonly type: "object";
279
+ readonly minProperties: 1;
280
+ readonly additionalProperties: true;
281
+ readonly propertyNames: {
282
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
283
+ };
284
+ };
285
+ readonly MuxDid: {
286
+ readonly title: "MuxDid";
287
+ readonly type: "string";
288
+ readonly minLength: 7;
289
+ readonly maxLength: 2048;
290
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
291
+ 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.";
292
+ };
293
+ readonly GrantId: {
294
+ readonly title: "GrantId";
295
+ readonly type: "string";
296
+ readonly minLength: 1;
297
+ readonly maxLength: 128;
298
+ readonly pattern: "^[A-Za-z0-9._:-]+$";
299
+ readonly description: "A grant's identifier, chosen by the member DID's signer and carried in its grant statement; a UUID is RECOMMENDED. A mediator refuses a grant whose identifier is already on the member DID's record.";
300
+ };
301
+ readonly GrantRef: {
302
+ readonly title: "GrantRef";
303
+ readonly type: "object";
304
+ readonly additionalProperties: false;
305
+ readonly required: readonly ["grantId", "did", "principal"];
306
+ readonly description: "Identifies one stored grant and the two parties to it.";
307
+ readonly properties: {
308
+ readonly grantId: {
309
+ readonly $ref: "#/$defs/GrantId";
310
+ };
311
+ readonly did: {
312
+ readonly $ref: "#/$defs/MuxDid";
313
+ readonly description: "The member DID.";
314
+ };
315
+ readonly principal: {
316
+ readonly $ref: "#/$defs/MuxDid";
317
+ readonly description: "The principal DID the grant delegates to.";
318
+ };
319
+ };
320
+ };
321
+ readonly MuxRole: {
322
+ readonly title: "MuxRole";
323
+ readonly type: "string";
324
+ readonly enum: readonly ["principal", "member"];
325
+ readonly description: "The side of a delegation a requester acts as. `principal`: the DID that authenticated the connection and to which members' traffic is delegated. `member`: a DID whose traffic is delegated.";
326
+ };
327
+ };
328
+ };
329
+ /**
330
+ * SPEC.md §7.2 policy for the request variant, from this specification's
331
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
332
+ * per-specification and cannot be derived from the document alone, and
333
+ * item 2 needs the schema this carries.
334
+ */
335
+ export declare const SPEC: {
336
+ readonly typeUri: "https://trusttasks.org/spec/messaging/mux/revoke/0.1";
337
+ readonly isBearer: false;
338
+ readonly isProofRequired: true;
339
+ readonly isRecipientRequired: true;
340
+ readonly isIssuedAtRequired: true;
341
+ readonly payloadSchema: {
342
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
343
+ readonly $id: "https://trusttasks.org/spec/messaging/mux/revoke/0.1";
344
+ readonly title: "Messaging — Mux Revoke — payload";
345
+ readonly description: "Revoke stored grants, as their principal or as their member DID. The outer document members are owned by the framework — SPEC §6.3.";
346
+ readonly type: "object";
347
+ readonly additionalProperties: false;
348
+ readonly required: readonly ["as"];
349
+ readonly properties: {
350
+ readonly as: {
351
+ readonly $ref: "#/$defs/MuxRole";
352
+ readonly description: "`principal`: revoke grants delegated to the requester. `member`: revoke grants on a member DID the requester controls.";
353
+ };
354
+ readonly did: {
355
+ readonly $ref: "#/$defs/MuxDid";
356
+ readonly description: "As `member` only: the member DID whose grants are revoked; absent means the requester itself.";
357
+ };
358
+ readonly grantIds: {
359
+ readonly type: "array";
360
+ readonly minItems: 1;
361
+ readonly maxItems: 256;
362
+ readonly uniqueItems: true;
363
+ readonly items: {
364
+ readonly $ref: "#/$defs/GrantId";
365
+ };
366
+ readonly description: "Grants to revoke, by identifier.";
367
+ };
368
+ readonly dids: {
369
+ readonly type: "array";
370
+ readonly minItems: 1;
371
+ readonly maxItems: 256;
372
+ readonly uniqueItems: true;
373
+ readonly items: {
374
+ readonly $ref: "#/$defs/MuxDid";
375
+ };
376
+ readonly description: "As `principal`: member DIDs whose grants to the requester are revoked. As `member`: principal DIDs whose grants on the member are revoked.";
377
+ };
378
+ readonly ext: {
379
+ readonly $ref: "#/$defs/Ext";
380
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
381
+ };
382
+ };
383
+ readonly $defs: {
384
+ readonly Response: {
385
+ readonly $anchor: "response";
386
+ readonly title: "Messaging — Mux Revoke — response payload";
387
+ readonly description: "The success response to a messaging/mux/revoke request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/mux/revoke/0.1#response.";
388
+ readonly type: "object";
389
+ readonly additionalProperties: false;
390
+ readonly required: readonly ["revoked"];
391
+ readonly properties: {
392
+ readonly revoked: {
393
+ readonly type: "array";
394
+ readonly maxItems: 512;
395
+ readonly items: {
396
+ readonly $ref: "#/$defs/GrantRef";
397
+ };
398
+ readonly description: "Grants this request deleted; their members are detached from every connection before this response is sent, and the principal's replay floor rises so their statements cannot be stored again.";
399
+ };
400
+ readonly unmatchedGrantIds: {
401
+ readonly type: "array";
402
+ readonly maxItems: 256;
403
+ readonly items: {
404
+ readonly $ref: "#/$defs/GrantId";
405
+ };
406
+ readonly description: "Requested grant identifiers that name no stored grant the requester may revoke in the role it named.";
407
+ };
408
+ readonly unmatchedDids: {
409
+ readonly type: "array";
410
+ readonly maxItems: 256;
411
+ readonly items: {
412
+ readonly $ref: "#/$defs/MuxDid";
413
+ };
414
+ readonly description: "Requested DIDs with no stored grant the requester may revoke in the role it named.";
415
+ };
416
+ readonly ext: {
417
+ readonly $ref: "#/$defs/Ext";
418
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
419
+ };
420
+ };
421
+ };
422
+ readonly Ext: {
423
+ readonly title: "Ext";
424
+ 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.";
425
+ readonly type: "object";
426
+ readonly minProperties: 1;
427
+ readonly additionalProperties: true;
428
+ readonly propertyNames: {
429
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
430
+ };
431
+ };
432
+ readonly MuxDid: {
433
+ readonly title: "MuxDid";
434
+ readonly type: "string";
435
+ readonly minLength: 7;
436
+ readonly maxLength: 2048;
437
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
438
+ 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.";
439
+ };
440
+ readonly GrantId: {
441
+ readonly title: "GrantId";
442
+ readonly type: "string";
443
+ readonly minLength: 1;
444
+ readonly maxLength: 128;
445
+ readonly pattern: "^[A-Za-z0-9._:-]+$";
446
+ readonly description: "A grant's identifier, chosen by the member DID's signer and carried in its grant statement; a UUID is RECOMMENDED. A mediator refuses a grant whose identifier is already on the member DID's record.";
447
+ };
448
+ readonly GrantRef: {
449
+ readonly title: "GrantRef";
450
+ readonly type: "object";
451
+ readonly additionalProperties: false;
452
+ readonly required: readonly ["grantId", "did", "principal"];
453
+ readonly description: "Identifies one stored grant and the two parties to it.";
454
+ readonly properties: {
455
+ readonly grantId: {
456
+ readonly $ref: "#/$defs/GrantId";
457
+ };
458
+ readonly did: {
459
+ readonly $ref: "#/$defs/MuxDid";
460
+ readonly description: "The member DID.";
461
+ };
462
+ readonly principal: {
463
+ readonly $ref: "#/$defs/MuxDid";
464
+ readonly description: "The principal DID the grant delegates to.";
465
+ };
466
+ };
467
+ };
468
+ readonly MuxRole: {
469
+ readonly title: "MuxRole";
470
+ readonly type: "string";
471
+ readonly enum: readonly ["principal", "member"];
472
+ readonly description: "The side of a delegation a requester acts as. `principal`: the DID that authenticated the connection and to which members' traffic is delegated. `member`: a DID whose traffic is delegated.";
473
+ };
474
+ };
475
+ };
476
+ };
477
+ /**
478
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
479
+ * tracks the *issuer* party's requirement because a response swaps the
480
+ * parties (§7.3 item 5).
481
+ */
482
+ export declare const RESPONSE_SPEC: {
483
+ readonly typeUri: "https://trusttasks.org/spec/messaging/mux/revoke/0.1#response";
484
+ readonly isBearer: false;
485
+ readonly isProofRequired: false;
486
+ readonly isRecipientRequired: true;
487
+ readonly isIssuedAtRequired: true;
488
+ readonly payloadSchema: {
489
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
490
+ readonly $ref: "#/$defs/Response";
491
+ readonly $defs: {
492
+ readonly Response: {
493
+ readonly $anchor: "response";
494
+ readonly title: "Messaging — Mux Revoke — response payload";
495
+ readonly description: "The success response to a messaging/mux/revoke request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/mux/revoke/0.1#response.";
496
+ readonly type: "object";
497
+ readonly additionalProperties: false;
498
+ readonly required: readonly ["revoked"];
499
+ readonly properties: {
500
+ readonly revoked: {
501
+ readonly type: "array";
502
+ readonly maxItems: 512;
503
+ readonly items: {
504
+ readonly $ref: "#/$defs/GrantRef";
505
+ };
506
+ readonly description: "Grants this request deleted; their members are detached from every connection before this response is sent, and the principal's replay floor rises so their statements cannot be stored again.";
507
+ };
508
+ readonly unmatchedGrantIds: {
509
+ readonly type: "array";
510
+ readonly maxItems: 256;
511
+ readonly items: {
512
+ readonly $ref: "#/$defs/GrantId";
513
+ };
514
+ readonly description: "Requested grant identifiers that name no stored grant the requester may revoke in the role it named.";
515
+ };
516
+ readonly unmatchedDids: {
517
+ readonly type: "array";
518
+ readonly maxItems: 256;
519
+ readonly items: {
520
+ readonly $ref: "#/$defs/MuxDid";
521
+ };
522
+ readonly description: "Requested DIDs with no stored grant the requester may revoke in the role it named.";
523
+ };
524
+ readonly ext: {
525
+ readonly $ref: "#/$defs/Ext";
526
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
527
+ };
528
+ };
529
+ };
530
+ readonly Ext: {
531
+ readonly title: "Ext";
532
+ 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.";
533
+ readonly type: "object";
534
+ readonly minProperties: 1;
535
+ readonly additionalProperties: true;
536
+ readonly propertyNames: {
537
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
538
+ };
539
+ };
540
+ readonly MuxDid: {
541
+ readonly title: "MuxDid";
542
+ readonly type: "string";
543
+ readonly minLength: 7;
544
+ readonly maxLength: 2048;
545
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
546
+ 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.";
547
+ };
548
+ readonly GrantId: {
549
+ readonly title: "GrantId";
550
+ readonly type: "string";
551
+ readonly minLength: 1;
552
+ readonly maxLength: 128;
553
+ readonly pattern: "^[A-Za-z0-9._:-]+$";
554
+ readonly description: "A grant's identifier, chosen by the member DID's signer and carried in its grant statement; a UUID is RECOMMENDED. A mediator refuses a grant whose identifier is already on the member DID's record.";
555
+ };
556
+ readonly GrantRef: {
557
+ readonly title: "GrantRef";
558
+ readonly type: "object";
559
+ readonly additionalProperties: false;
560
+ readonly required: readonly ["grantId", "did", "principal"];
561
+ readonly description: "Identifies one stored grant and the two parties to it.";
562
+ readonly properties: {
563
+ readonly grantId: {
564
+ readonly $ref: "#/$defs/GrantId";
565
+ };
566
+ readonly did: {
567
+ readonly $ref: "#/$defs/MuxDid";
568
+ readonly description: "The member DID.";
569
+ };
570
+ readonly principal: {
571
+ readonly $ref: "#/$defs/MuxDid";
572
+ readonly description: "The principal DID the grant delegates to.";
573
+ };
574
+ };
575
+ };
576
+ readonly MuxRole: {
577
+ readonly title: "MuxRole";
578
+ readonly type: "string";
579
+ readonly enum: readonly ["principal", "member"];
580
+ readonly description: "The side of a delegation a requester acts as. `principal`: the DID that authenticated the connection and to which members' traffic is delegated. `member`: a DID whose traffic is delegated.";
581
+ };
582
+ };
583
+ };
584
+ };
585
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/messaging/mux/revoke/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAGjG;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,OAAO,CAAC;IACZ;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IAC7B;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD;;;;OAIG;IACH,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,EAAE,CAAC;IAC9B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAExD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiJjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwG1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}