@openvtc/trust-tasks 0.28.22 → 0.28.24

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 (105) hide show
  1. package/CHANGELOG.md +87 -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/dist/vtc/members/rotate/0.1/payload.d.ts +12 -5
  81. package/dist/vtc/members/rotate/0.1/payload.d.ts.map +1 -1
  82. package/dist/vtc/members/rotate/0.1/payload.js +8 -2
  83. package/dist/vtc/members/rotate/0.1/payload.js.map +1 -1
  84. package/package.json +1 -1
  85. package/src/_shared/components.ts +581 -0
  86. package/src/index.ts +45 -0
  87. package/src/messaging/mux/_shared/0.1/mux.ts +17 -0
  88. package/src/messaging/mux/attach/0.1/payload.ts +682 -0
  89. package/src/messaging/mux/detach/0.1/payload.ts +278 -0
  90. package/src/messaging/mux/event/0.1/payload.ts +371 -0
  91. package/src/messaging/mux/grant/0.1/payload.ts +710 -0
  92. package/src/messaging/mux/list/0.1/payload.ts +793 -0
  93. package/src/messaging/mux/notice/0.1/payload.ts +362 -0
  94. package/src/messaging/mux/revoke/0.1/payload.ts +389 -0
  95. package/src/messaging/mux/revoke-all/0.1/payload.ts +452 -0
  96. package/src/messaging/mux/update/0.1/payload.ts +644 -0
  97. package/src/vta/_shared/0.1/memory-record.ts +23 -0
  98. package/src/vta/memory/delete/0.1/payload.ts +14 -3
  99. package/src/vta/memory/delete/0.2/payload.ts +288 -0
  100. package/src/vta/memory/get/0.1/payload.ts +414 -0
  101. package/src/vta/memory/list/0.1/payload.ts +14 -3
  102. package/src/vta/memory/list/0.2/payload.ts +445 -0
  103. package/src/vta/memory/put/0.1/payload.ts +14 -3
  104. package/src/vta/memory/put/0.2/payload.ts +333 -0
  105. package/src/vtc/members/rotate/0.1/payload.ts +12 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/messaging/mux/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAmEH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,oDAA6D,CAAC;AAEtF;;;;;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,6DAAsE,CAAC;AAKxG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,oDAAoD;IAC3D,OAAO,EAAE,gCAAgC;IACzC,aAAa,EAAE,mLAAmL;IAClM,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,IAAI;KACL;IACD,YAAY,EAAE;QACZ,IAAI,EAAE;YACJ,MAAM,EAAE,iBAAiB;YACzB,aAAa,EAAE,+JAA+J;SAC/K;QACD,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1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/messaging/mux/notice/0.1/payload.schema.json
4
+ */
5
+ import type { DetachReason, Ext, GrantId, MuxDid } from "../../../../_shared/components.js";
6
+ /**
7
+ * A durable notice from a mediator, stored in the recipient's inbox and delivered at least once, about grants the recipient must act on or know of: suspended, revoked, expiring, or present on a member DID. The members present depend on `notice`; see the specification. The outer document members are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface MessagingMuxNoticePayload {
10
+ /**
11
+ * Which notice this is. Each kind carries the members the specification lists for it, and no others.
12
+ */
13
+ notice: "grantsSuspended" | "grantsRevoked" | "grantsExpiring" | "grantsPresent";
14
+ /**
15
+ * `grantsSuspended` only, REQUIRED: the recipient's grants that were suspended. They must be recreated by a fresh messaging/mux/grant signed by the member DID under its current epoch.
16
+ *
17
+ * @minItems 1
18
+ * @maxItems 256
19
+ */
20
+ suspensions?: [Suspension, ...Suspension[]];
21
+ /**
22
+ * `grantsRevoked` only, REQUIRED: the recipient's grants that were revoked by someone other than the recipient.
23
+ *
24
+ * @minItems 1
25
+ * @maxItems 256
26
+ */
27
+ revocations?: [Revocation, ...Revocation[]];
28
+ /**
29
+ * `grantsExpiring` only, REQUIRED: grants delegated to the recipient that have passed about three quarters of their lifetime.
30
+ *
31
+ * @minItems 1
32
+ * @maxItems 256
33
+ */
34
+ expiring?: [ExpiringGrant, ...ExpiringGrant[]];
35
+ /**
36
+ * `grantsPresent` only, REQUIRED: the member DID the recipient authenticated as.
37
+ */
38
+ did?: MuxDid;
39
+ /**
40
+ * `grantsPresent` only, REQUIRED: grants on the member DID the mediator holds, in every state.
41
+ */
42
+ count?: number;
43
+ /**
44
+ * `grantsPresent` only, REQUIRED: how many of them this authentication just suspended under the unknown-key rule.
45
+ */
46
+ suspended?: number;
47
+ /**
48
+ * `grantsPresent` only, REQUIRED: the member DID's epoch now in force.
49
+ */
50
+ epoch?: number;
51
+ /**
52
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
53
+ */
54
+ ext?: Ext;
55
+ }
56
+ export interface Suspension {
57
+ /**
58
+ * The member DID.
59
+ */
60
+ did: MuxDid;
61
+ /**
62
+ * @minItems 1
63
+ * @maxItems 256
64
+ */
65
+ grantIds: [GrantId, ...GrantId[]];
66
+ /**
67
+ * Why: `suspendedUnknownKey` in this version.
68
+ */
69
+ reason: DetachReason;
70
+ /**
71
+ * When the suspension was committed.
72
+ */
73
+ suspendedAt: string;
74
+ }
75
+ export interface Revocation {
76
+ /**
77
+ * The member DID.
78
+ */
79
+ did: MuxDid;
80
+ /**
81
+ * @minItems 1
82
+ * @maxItems 256
83
+ */
84
+ grantIds: [GrantId, ...GrantId[]];
85
+ /**
86
+ * Why: `revokedByMember`, `epochBumped`, `admin` or `accountRemoved`.
87
+ */
88
+ reason: DetachReason;
89
+ /**
90
+ * When the revocation was committed.
91
+ */
92
+ revokedAt: string;
93
+ }
94
+ export interface ExpiringGrant {
95
+ grantId: GrantId;
96
+ /**
97
+ * The member DID.
98
+ */
99
+ did: MuxDid;
100
+ /**
101
+ * The grant's effective expiry.
102
+ */
103
+ expiresAt: string;
104
+ }
105
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
106
+ export type { DetachReason, Ext, GrantId, MuxDid };
107
+ /** Trust Task type URI. */
108
+ export declare const TYPE_URI: "https://trusttasks.org/spec/messaging/mux/notice/0.1";
109
+ /**
110
+ * The earlier version of this specification that this one declares it
111
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
112
+ * `null`. Only the direct declaration — follow the chain with
113
+ * `extendsChain` / `readForSpec`.
114
+ */
115
+ export declare const EXTENDS: string | null;
116
+ /**
117
+ * Why this version is deprecated, or `null` while it is current. A
118
+ * superseded or retired version is still supported, and is withdrawn from
119
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
120
+ * Versions").
121
+ */
122
+ export declare const DEPRECATION: string | null;
123
+ /** Stable alias for this specification's request payload shape. */
124
+ export type Payload = MessagingMuxNoticePayload;
125
+ /**
126
+ * This specification's payload schema, as a value.
127
+ *
128
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
129
+ * rather than only as a `.json` file because TypeScript types are erased
130
+ * at runtime: without a schema a consumer has nothing to validate, and
131
+ * every REQUIRED payload member is optional in practice. Cross-file
132
+ * `$ref`s are already inlined, so it needs no resolver.
133
+ */
134
+ export declare const PAYLOAD_SCHEMA: {
135
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
136
+ readonly $id: "https://trusttasks.org/spec/messaging/mux/notice/0.1";
137
+ readonly title: "Messaging — Mux Notice — payload";
138
+ readonly description: "A durable notice from a mediator, stored in the recipient's inbox and delivered at least once, about grants the recipient must act on or know of: suspended, revoked, expiring, or present on a member DID. The members present depend on `notice`; see the specification. The outer document members are owned by the framework — SPEC §6.3.";
139
+ readonly type: "object";
140
+ readonly additionalProperties: false;
141
+ readonly required: readonly ["notice"];
142
+ readonly properties: {
143
+ readonly notice: {
144
+ readonly type: "string";
145
+ readonly enum: readonly ["grantsSuspended", "grantsRevoked", "grantsExpiring", "grantsPresent"];
146
+ readonly description: "Which notice this is. Each kind carries the members the specification lists for it, and no others.";
147
+ };
148
+ readonly suspensions: {
149
+ readonly type: "array";
150
+ readonly minItems: 1;
151
+ readonly maxItems: 256;
152
+ readonly items: {
153
+ readonly title: "Suspension";
154
+ readonly type: "object";
155
+ readonly additionalProperties: false;
156
+ readonly required: readonly ["did", "grantIds", "reason", "suspendedAt"];
157
+ readonly properties: {
158
+ readonly did: {
159
+ readonly $ref: "#/$defs/MuxDid";
160
+ readonly description: "The member DID.";
161
+ };
162
+ readonly grantIds: {
163
+ readonly type: "array";
164
+ readonly minItems: 1;
165
+ readonly maxItems: 256;
166
+ readonly uniqueItems: true;
167
+ readonly items: {
168
+ readonly $ref: "#/$defs/GrantId";
169
+ };
170
+ };
171
+ readonly reason: {
172
+ readonly $ref: "#/$defs/DetachReason";
173
+ readonly description: "Why: `suspendedUnknownKey` in this version.";
174
+ };
175
+ readonly suspendedAt: {
176
+ readonly type: "string";
177
+ readonly format: "date-time";
178
+ readonly description: "When the suspension was committed.";
179
+ };
180
+ };
181
+ };
182
+ readonly description: "`grantsSuspended` only, REQUIRED: the recipient's grants that were suspended. They must be recreated by a fresh messaging/mux/grant signed by the member DID under its current epoch.";
183
+ };
184
+ readonly revocations: {
185
+ readonly type: "array";
186
+ readonly minItems: 1;
187
+ readonly maxItems: 256;
188
+ readonly items: {
189
+ readonly title: "Revocation";
190
+ readonly type: "object";
191
+ readonly additionalProperties: false;
192
+ readonly required: readonly ["did", "grantIds", "reason", "revokedAt"];
193
+ readonly properties: {
194
+ readonly did: {
195
+ readonly $ref: "#/$defs/MuxDid";
196
+ readonly description: "The member DID.";
197
+ };
198
+ readonly grantIds: {
199
+ readonly type: "array";
200
+ readonly minItems: 1;
201
+ readonly maxItems: 256;
202
+ readonly uniqueItems: true;
203
+ readonly items: {
204
+ readonly $ref: "#/$defs/GrantId";
205
+ };
206
+ };
207
+ readonly reason: {
208
+ readonly $ref: "#/$defs/DetachReason";
209
+ readonly description: "Why: `revokedByMember`, `epochBumped`, `admin` or `accountRemoved`.";
210
+ };
211
+ readonly revokedAt: {
212
+ readonly type: "string";
213
+ readonly format: "date-time";
214
+ readonly description: "When the revocation was committed.";
215
+ };
216
+ };
217
+ };
218
+ readonly description: "`grantsRevoked` only, REQUIRED: the recipient's grants that were revoked by someone other than the recipient.";
219
+ };
220
+ readonly expiring: {
221
+ readonly type: "array";
222
+ readonly minItems: 1;
223
+ readonly maxItems: 256;
224
+ readonly items: {
225
+ readonly title: "ExpiringGrant";
226
+ readonly type: "object";
227
+ readonly additionalProperties: false;
228
+ readonly required: readonly ["grantId", "did", "expiresAt"];
229
+ readonly properties: {
230
+ readonly grantId: {
231
+ readonly $ref: "#/$defs/GrantId";
232
+ };
233
+ readonly did: {
234
+ readonly $ref: "#/$defs/MuxDid";
235
+ readonly description: "The member DID.";
236
+ };
237
+ readonly expiresAt: {
238
+ readonly type: "string";
239
+ readonly format: "date-time";
240
+ readonly description: "The grant's effective expiry.";
241
+ };
242
+ };
243
+ };
244
+ readonly description: "`grantsExpiring` only, REQUIRED: grants delegated to the recipient that have passed about three quarters of their lifetime.";
245
+ };
246
+ readonly did: {
247
+ readonly $ref: "#/$defs/MuxDid";
248
+ readonly description: "`grantsPresent` only, REQUIRED: the member DID the recipient authenticated as.";
249
+ };
250
+ readonly count: {
251
+ readonly type: "integer";
252
+ readonly minimum: 0;
253
+ readonly description: "`grantsPresent` only, REQUIRED: grants on the member DID the mediator holds, in every state.";
254
+ };
255
+ readonly suspended: {
256
+ readonly type: "integer";
257
+ readonly minimum: 0;
258
+ readonly description: "`grantsPresent` only, REQUIRED: how many of them this authentication just suspended under the unknown-key rule.";
259
+ };
260
+ readonly epoch: {
261
+ readonly type: "integer";
262
+ readonly minimum: 0;
263
+ readonly description: "`grantsPresent` only, REQUIRED: the member DID's epoch now in force.";
264
+ };
265
+ readonly ext: {
266
+ readonly $ref: "#/$defs/Ext";
267
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
268
+ };
269
+ };
270
+ readonly $defs: {
271
+ readonly Ext: {
272
+ readonly title: "Ext";
273
+ 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.";
274
+ readonly type: "object";
275
+ readonly minProperties: 1;
276
+ readonly additionalProperties: true;
277
+ readonly propertyNames: {
278
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
279
+ };
280
+ };
281
+ readonly MuxDid: {
282
+ readonly title: "MuxDid";
283
+ readonly type: "string";
284
+ readonly minLength: 7;
285
+ readonly maxLength: 2048;
286
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
287
+ 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.";
288
+ };
289
+ readonly GrantId: {
290
+ readonly title: "GrantId";
291
+ readonly type: "string";
292
+ readonly minLength: 1;
293
+ readonly maxLength: 128;
294
+ readonly pattern: "^[A-Za-z0-9._:-]+$";
295
+ 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.";
296
+ };
297
+ readonly DetachReason: {
298
+ readonly title: "DetachReason";
299
+ readonly type: "string";
300
+ readonly enum: readonly ["revokedByMember", "revokedByPrincipal", "epochBumped", "suspendedUnknownKey", "keyRotated", "expired", "accountBlocked", "superseded", "admin", "detachRequested", "accountRemoved", "resolutionFailed"];
301
+ readonly description: "Why a member left a connection, or why a stored grant did not attach on connect. `revokedByMember` / `revokedByPrincipal`: messaging/mux/revoke by that side. `epochBumped`: the member DID ran messaging/mux/revoke-all. `suspendedUnknownKey`: the unknown-key rule suspended the grant. `keyRotated`: the grant's signing key left the member DID's current authentication relationship (grant state `staleKey`). `expired`: the grant or attach reached its effective expiry. `accountBlocked`: the member's account was blocked. `superseded`: the member DID's own direct connection, or a newer connection of the same kind, now receives its live traffic; the member stays on this connection inactive. `admin`: an operator acted. `detachRequested`: the principal removed a session attach with messaging/mux/detach. `accountRemoved`: the member's account, or the principal's, was removed. `resolutionFailed`: the member DID could not be resolved when the grant was re-validated; the grant is not changed and is re-checked later.";
302
+ };
303
+ };
304
+ };
305
+ /**
306
+ * SPEC.md §7.2 policy for the request variant, from this specification's
307
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
308
+ * per-specification and cannot be derived from the document alone, and
309
+ * item 2 needs the schema this carries.
310
+ */
311
+ export declare const SPEC: {
312
+ readonly typeUri: "https://trusttasks.org/spec/messaging/mux/notice/0.1";
313
+ readonly isBearer: false;
314
+ readonly isProofRequired: true;
315
+ readonly isRecipientRequired: true;
316
+ readonly isIssuedAtRequired: true;
317
+ readonly payloadSchema: {
318
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
319
+ readonly $id: "https://trusttasks.org/spec/messaging/mux/notice/0.1";
320
+ readonly title: "Messaging — Mux Notice — payload";
321
+ readonly description: "A durable notice from a mediator, stored in the recipient's inbox and delivered at least once, about grants the recipient must act on or know of: suspended, revoked, expiring, or present on a member DID. The members present depend on `notice`; see the specification. The outer document members are owned by the framework — SPEC §6.3.";
322
+ readonly type: "object";
323
+ readonly additionalProperties: false;
324
+ readonly required: readonly ["notice"];
325
+ readonly properties: {
326
+ readonly notice: {
327
+ readonly type: "string";
328
+ readonly enum: readonly ["grantsSuspended", "grantsRevoked", "grantsExpiring", "grantsPresent"];
329
+ readonly description: "Which notice this is. Each kind carries the members the specification lists for it, and no others.";
330
+ };
331
+ readonly suspensions: {
332
+ readonly type: "array";
333
+ readonly minItems: 1;
334
+ readonly maxItems: 256;
335
+ readonly items: {
336
+ readonly title: "Suspension";
337
+ readonly type: "object";
338
+ readonly additionalProperties: false;
339
+ readonly required: readonly ["did", "grantIds", "reason", "suspendedAt"];
340
+ readonly properties: {
341
+ readonly did: {
342
+ readonly $ref: "#/$defs/MuxDid";
343
+ readonly description: "The member DID.";
344
+ };
345
+ readonly grantIds: {
346
+ readonly type: "array";
347
+ readonly minItems: 1;
348
+ readonly maxItems: 256;
349
+ readonly uniqueItems: true;
350
+ readonly items: {
351
+ readonly $ref: "#/$defs/GrantId";
352
+ };
353
+ };
354
+ readonly reason: {
355
+ readonly $ref: "#/$defs/DetachReason";
356
+ readonly description: "Why: `suspendedUnknownKey` in this version.";
357
+ };
358
+ readonly suspendedAt: {
359
+ readonly type: "string";
360
+ readonly format: "date-time";
361
+ readonly description: "When the suspension was committed.";
362
+ };
363
+ };
364
+ };
365
+ readonly description: "`grantsSuspended` only, REQUIRED: the recipient's grants that were suspended. They must be recreated by a fresh messaging/mux/grant signed by the member DID under its current epoch.";
366
+ };
367
+ readonly revocations: {
368
+ readonly type: "array";
369
+ readonly minItems: 1;
370
+ readonly maxItems: 256;
371
+ readonly items: {
372
+ readonly title: "Revocation";
373
+ readonly type: "object";
374
+ readonly additionalProperties: false;
375
+ readonly required: readonly ["did", "grantIds", "reason", "revokedAt"];
376
+ readonly properties: {
377
+ readonly did: {
378
+ readonly $ref: "#/$defs/MuxDid";
379
+ readonly description: "The member DID.";
380
+ };
381
+ readonly grantIds: {
382
+ readonly type: "array";
383
+ readonly minItems: 1;
384
+ readonly maxItems: 256;
385
+ readonly uniqueItems: true;
386
+ readonly items: {
387
+ readonly $ref: "#/$defs/GrantId";
388
+ };
389
+ };
390
+ readonly reason: {
391
+ readonly $ref: "#/$defs/DetachReason";
392
+ readonly description: "Why: `revokedByMember`, `epochBumped`, `admin` or `accountRemoved`.";
393
+ };
394
+ readonly revokedAt: {
395
+ readonly type: "string";
396
+ readonly format: "date-time";
397
+ readonly description: "When the revocation was committed.";
398
+ };
399
+ };
400
+ };
401
+ readonly description: "`grantsRevoked` only, REQUIRED: the recipient's grants that were revoked by someone other than the recipient.";
402
+ };
403
+ readonly expiring: {
404
+ readonly type: "array";
405
+ readonly minItems: 1;
406
+ readonly maxItems: 256;
407
+ readonly items: {
408
+ readonly title: "ExpiringGrant";
409
+ readonly type: "object";
410
+ readonly additionalProperties: false;
411
+ readonly required: readonly ["grantId", "did", "expiresAt"];
412
+ readonly properties: {
413
+ readonly grantId: {
414
+ readonly $ref: "#/$defs/GrantId";
415
+ };
416
+ readonly did: {
417
+ readonly $ref: "#/$defs/MuxDid";
418
+ readonly description: "The member DID.";
419
+ };
420
+ readonly expiresAt: {
421
+ readonly type: "string";
422
+ readonly format: "date-time";
423
+ readonly description: "The grant's effective expiry.";
424
+ };
425
+ };
426
+ };
427
+ readonly description: "`grantsExpiring` only, REQUIRED: grants delegated to the recipient that have passed about three quarters of their lifetime.";
428
+ };
429
+ readonly did: {
430
+ readonly $ref: "#/$defs/MuxDid";
431
+ readonly description: "`grantsPresent` only, REQUIRED: the member DID the recipient authenticated as.";
432
+ };
433
+ readonly count: {
434
+ readonly type: "integer";
435
+ readonly minimum: 0;
436
+ readonly description: "`grantsPresent` only, REQUIRED: grants on the member DID the mediator holds, in every state.";
437
+ };
438
+ readonly suspended: {
439
+ readonly type: "integer";
440
+ readonly minimum: 0;
441
+ readonly description: "`grantsPresent` only, REQUIRED: how many of them this authentication just suspended under the unknown-key rule.";
442
+ };
443
+ readonly epoch: {
444
+ readonly type: "integer";
445
+ readonly minimum: 0;
446
+ readonly description: "`grantsPresent` only, REQUIRED: the member DID's epoch now in force.";
447
+ };
448
+ readonly ext: {
449
+ readonly $ref: "#/$defs/Ext";
450
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
451
+ };
452
+ };
453
+ readonly $defs: {
454
+ readonly Ext: {
455
+ readonly title: "Ext";
456
+ 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.";
457
+ readonly type: "object";
458
+ readonly minProperties: 1;
459
+ readonly additionalProperties: true;
460
+ readonly propertyNames: {
461
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
462
+ };
463
+ };
464
+ readonly MuxDid: {
465
+ readonly title: "MuxDid";
466
+ readonly type: "string";
467
+ readonly minLength: 7;
468
+ readonly maxLength: 2048;
469
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
470
+ 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.";
471
+ };
472
+ readonly GrantId: {
473
+ readonly title: "GrantId";
474
+ readonly type: "string";
475
+ readonly minLength: 1;
476
+ readonly maxLength: 128;
477
+ readonly pattern: "^[A-Za-z0-9._:-]+$";
478
+ 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.";
479
+ };
480
+ readonly DetachReason: {
481
+ readonly title: "DetachReason";
482
+ readonly type: "string";
483
+ readonly enum: readonly ["revokedByMember", "revokedByPrincipal", "epochBumped", "suspendedUnknownKey", "keyRotated", "expired", "accountBlocked", "superseded", "admin", "detachRequested", "accountRemoved", "resolutionFailed"];
484
+ readonly description: "Why a member left a connection, or why a stored grant did not attach on connect. `revokedByMember` / `revokedByPrincipal`: messaging/mux/revoke by that side. `epochBumped`: the member DID ran messaging/mux/revoke-all. `suspendedUnknownKey`: the unknown-key rule suspended the grant. `keyRotated`: the grant's signing key left the member DID's current authentication relationship (grant state `staleKey`). `expired`: the grant or attach reached its effective expiry. `accountBlocked`: the member's account was blocked. `superseded`: the member DID's own direct connection, or a newer connection of the same kind, now receives its live traffic; the member stays on this connection inactive. `admin`: an operator acted. `detachRequested`: the principal removed a session attach with messaging/mux/detach. `accountRemoved`: the member's account, or the principal's, was removed. `resolutionFailed`: the member DID could not be resolved when the grant was re-validated; the grant is not changed and is re-checked later.";
485
+ };
486
+ };
487
+ };
488
+ };
489
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/messaging/mux/notice/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAG5F;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,MAAM,EAAE,iBAAiB,GAAG,eAAe,GAAG,gBAAgB,GAAG,eAAe,CAAC;IACjF;;;;;OAKG;IACH,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE,GAAG,UAAU,EAAE,CAAC,CAAC;IAC5C;;;;;OAKG;IACH,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE,GAAG,UAAU,EAAE,CAAC,CAAC;IAC5C;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CAAC,aAAa,EAAE,GAAG,aAAa,EAAE,CAAC,CAAC;IAC/C;;OAEG;IACH,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