@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.d.ts","sourceRoot":"","sources":["../../../../../src/messaging/mux/grant/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,GAAG,EAAE,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAGxK;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;;OAKG;IACH,MAAM,EAAE,CAAC,cAAc,EAAE,GAAG,cAAc,EAAE,CAAC,CAAC;IAC9C;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,GAAG,EAAE,MA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json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/messaging/mux/grant/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/grant/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/grant/0.1",
35
+ "title": "Messaging — Mux Grant — payload",
36
+ "description": "Store or replace grants: each a grant statement in which a member DID, with an embedded Data Integrity proof, delegates to a principal the carrying of its messages, under the member's current epoch and an explicit scope and expiry. The outer document members are owned by the framework — SPEC §6.3.",
37
+ "type": "object",
38
+ "additionalProperties": false,
39
+ "required": [
40
+ "grants"
41
+ ],
42
+ "properties": {
43
+ "grants": {
44
+ "type": "array",
45
+ "minItems": 1,
46
+ "maxItems": 256,
47
+ "description": "The grant statements to store; the member DID is each statement's `issuer`. Each is checked and answered on its own; the batch is never all-or-nothing.",
48
+ "items": {
49
+ "$ref": "#/$defs/GrantStatement"
50
+ }
51
+ },
52
+ "ext": {
53
+ "$ref": "#/$defs/Ext",
54
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
55
+ }
56
+ },
57
+ "$defs": {
58
+ "Response": {
59
+ "$anchor": "response",
60
+ "title": "Messaging — Mux Grant — response payload",
61
+ "description": "The success response to a messaging/mux/grant request: one outcome per submitted grant, in request order. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/mux/grant/0.1#response.",
62
+ "type": "object",
63
+ "additionalProperties": false,
64
+ "required": [
65
+ "results"
66
+ ],
67
+ "properties": {
68
+ "results": {
69
+ "type": "array",
70
+ "maxItems": 256,
71
+ "items": {
72
+ "$ref": "#/$defs/GrantOutcome"
73
+ }
74
+ },
75
+ "ext": {
76
+ "$ref": "#/$defs/Ext",
77
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
78
+ }
79
+ }
80
+ },
81
+ "GrantOutcome": {
82
+ "title": "GrantOutcome",
83
+ "type": "object",
84
+ "additionalProperties": false,
85
+ "required": [
86
+ "status",
87
+ "grantId",
88
+ "did",
89
+ "principal"
90
+ ],
91
+ "description": "The outcome for one submitted grant.",
92
+ "properties": {
93
+ "status": {
94
+ "type": "string",
95
+ "enum": [
96
+ "stored",
97
+ "refused"
98
+ ]
99
+ },
100
+ "grantId": {
101
+ "$ref": "#/$defs/GrantId",
102
+ "description": "The grant's identifier, from its statement."
103
+ },
104
+ "did": {
105
+ "$ref": "#/$defs/MuxDid",
106
+ "description": "The member DID: the statement's `issuer`."
107
+ },
108
+ "principal": {
109
+ "$ref": "#/$defs/MuxDid",
110
+ "description": "The principal DID, from the statement."
111
+ },
112
+ "code": {
113
+ "type": "string",
114
+ "enum": [
115
+ "messaging/mux:statementProofInvalid",
116
+ "messaging/mux:didUnresolvable",
117
+ "messaging/mux:proofPurposeInvalid",
118
+ "messaging/mux:audienceMismatch",
119
+ "messaging/mux:principalMismatch",
120
+ "messaging/mux:notYetValid",
121
+ "messaging/mux:statementExpired",
122
+ "messaging/mux:lifetimeTooLong",
123
+ "messaging/mux:emptyScope",
124
+ "messaging/mux:accountUnavailable",
125
+ "messaging/mux:scopeNotPermitted",
126
+ "messaging/mux/grant:epochMismatch",
127
+ "messaging/mux/grant:replayed",
128
+ "messaging/mux/grant:grantIdReused",
129
+ "messaging/mux/grant:didQuota",
130
+ "messaging/mux/grant:principalQuota",
131
+ "messaging/mux/grant:contended"
132
+ ],
133
+ "description": "Present exactly when `status` is `refused`: the first check the grant failed, in the order the specification lists them."
134
+ },
135
+ "currentEpoch": {
136
+ "type": "integer",
137
+ "minimum": 0,
138
+ "description": "Present exactly when `code` is `messaging/mux/grant:epochMismatch`: the member DID's current epoch, under which the member re-signs."
139
+ },
140
+ "replayFloorAt": {
141
+ "type": "string",
142
+ "format": "date-time",
143
+ "description": "Present exactly when `code` is `messaging/mux/grant:replayed`: the instant a replacement grant's `iat` must be strictly later than — the principal's replay floor for this member, or the `iat` of the grant it would replace, whichever is later."
144
+ },
145
+ "replacedGrantId": {
146
+ "$ref": "#/$defs/GrantId",
147
+ "description": "Present when this grant replaced an earlier grant for the same member and principal, in whatever state that grant was. Replacing raises the principal's replay floor, so the replaced statement can never be stored again."
148
+ },
149
+ "attachedNow": {
150
+ "type": "boolean",
151
+ "description": "Present exactly when `status` is `stored`: whether the member was attached at once to a connection the principal holds."
152
+ }
153
+ }
154
+ },
155
+ "GrantId": {
156
+ "title": "GrantId",
157
+ "type": "string",
158
+ "minLength": 1,
159
+ "maxLength": 128,
160
+ "pattern": "^[A-Za-z0-9._:-]+$",
161
+ "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."
162
+ },
163
+ "MuxDid": {
164
+ "title": "MuxDid",
165
+ "type": "string",
166
+ "minLength": 7,
167
+ "maxLength": 2048,
168
+ "pattern": "^did:[a-z0-9]+:\\S+$",
169
+ "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."
170
+ },
171
+ "Ext": {
172
+ "title": "Ext",
173
+ "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.",
174
+ "type": "object",
175
+ "minProperties": 1,
176
+ "additionalProperties": true,
177
+ "propertyNames": {
178
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
179
+ }
180
+ },
181
+ "GrantStatement": {
182
+ "title": "GrantStatement",
183
+ "type": "object",
184
+ "additionalProperties": false,
185
+ "required": [
186
+ "type",
187
+ "issuer",
188
+ "audience",
189
+ "grantId",
190
+ "principal",
191
+ "scope",
192
+ "epoch",
193
+ "iat",
194
+ "exp",
195
+ "proof"
196
+ ],
197
+ "description": "A member DID's standing statement that the named principal may carry its traffic at this mediator, on any connection, until `exp`, within `scope`, under the member's current `epoch`. Signed by the member with an embedded Data Integrity proof whose purpose is `authentication`, and stored verbatim by the mediator as the only evidence of the delegation.",
198
+ "properties": {
199
+ "type": {
200
+ "type": "string",
201
+ "const": "muxGrant",
202
+ "description": "Always `muxGrant`; names the statement kind, so a statement of one kind is never accepted as another."
203
+ },
204
+ "issuer": {
205
+ "$ref": "#/$defs/MuxDid",
206
+ "description": "The member DID: the signer, and the DID the statement concerns."
207
+ },
208
+ "audience": {
209
+ "$ref": "#/$defs/MuxDid",
210
+ "description": "The mediator's DID. A statement names exactly one mediator and is refused by every other."
211
+ },
212
+ "grantId": {
213
+ "$ref": "#/$defs/GrantId"
214
+ },
215
+ "principal": {
216
+ "$ref": "#/$defs/MuxDid",
217
+ "description": "The principal DID that may carry the member's traffic. MUST differ from `issuer`."
218
+ },
219
+ "scope": {
220
+ "$ref": "#/$defs/StatementScope"
221
+ },
222
+ "epoch": {
223
+ "type": "integer",
224
+ "minimum": 0,
225
+ "description": "The member DID's current epoch at the mediator. Only messaging/mux/revoke-all advances it."
226
+ },
227
+ "iat": {
228
+ "type": "integer",
229
+ "minimum": 0,
230
+ "description": "JWT NumericDate (RFC 7519 §2), whole seconds since 1970-01-01T00:00:00Z UTC: when the statement was signed. MUST NOT be more than 60 seconds in the mediator's future."
231
+ },
232
+ "exp": {
233
+ "type": "integer",
234
+ "minimum": 0,
235
+ "description": "JWT NumericDate (RFC 7519 §2): when the statement stops being accepted. REQUIRED; MUST be after `iat` and in the future."
236
+ },
237
+ "proof": {
238
+ "$ref": "#/$defs/MuxDataIntegrityProof"
239
+ }
240
+ }
241
+ },
242
+ "MuxDataIntegrityProof": {
243
+ "title": "MuxDataIntegrityProof",
244
+ "type": "object",
245
+ "additionalProperties": false,
246
+ "required": [
247
+ "type",
248
+ "cryptosuite",
249
+ "verificationMethod",
250
+ "proofPurpose",
251
+ "proofValue"
252
+ ],
253
+ "description": "The W3C Data Integrity proof embedded in a mux statement, made by the member DID: the format and verifier Trust Tasks already use for document proofs (SPEC §4.7). The proof covers the whole statement except `proof` itself, as the cryptosuite defines. Closed: a member Data Integrity defines but this list omits is refused.",
254
+ "properties": {
255
+ "type": {
256
+ "type": "string",
257
+ "const": "DataIntegrityProof"
258
+ },
259
+ "cryptosuite": {
260
+ "type": "string",
261
+ "enum": [
262
+ "eddsa-jcs-2022",
263
+ "eddsa-rdfc-2022"
264
+ ],
265
+ "description": "The W3C Data Integrity EdDSA cryptosuite used."
266
+ },
267
+ "verificationMethod": {
268
+ "type": "string",
269
+ "minLength": 5,
270
+ "maxLength": 2048,
271
+ "pattern": "^did:\\S+#\\S+$",
272
+ "description": "The DID URL of the verification method that signed. MUST be controlled by the statement's `issuer` and listed in that DID's current `authentication` relationship."
273
+ },
274
+ "proofPurpose": {
275
+ "type": "string",
276
+ "minLength": 1,
277
+ "maxLength": 64,
278
+ "description": "MUST be `authentication`. Any other value is refused with `messaging/mux:proofPurposeInvalid` — a proof made for another relationship (an `assertionMethod` credential signature, say) is never accepted as control of the DID."
279
+ },
280
+ "created": {
281
+ "type": "string",
282
+ "format": "date-time",
283
+ "description": "OPTIONAL: when the proof was made, as Data Integrity defines it. Covered by the proof; the statement's own `iat` is what the mediator checks."
284
+ },
285
+ "proofValue": {
286
+ "type": "string",
287
+ "minLength": 2,
288
+ "maxLength": 4096,
289
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
290
+ "description": "The multibase (base58btc) signature."
291
+ }
292
+ }
293
+ },
294
+ "StatementScope": {
295
+ "title": "StatementScope",
296
+ "type": "array",
297
+ "maxItems": 16,
298
+ "items": {
299
+ "$ref": "#/$defs/MuxScopeValue"
300
+ },
301
+ "description": "The scope a member DID signs into a statement: a JSON array of MuxScopeValue, compared as a set — order is not significant and a repeated value collapses. It MUST NOT be empty; an empty signed scope is refused with the task's `emptyScope` code, never read as \"all\". Unlike MuxScope, emptiness is not a schema failure here, so that the refusal is reported per statement rather than failing the whole batch."
302
+ },
303
+ "MuxScopeValue": {
304
+ "title": "MuxScopeValue",
305
+ "type": "string",
306
+ "enum": [
307
+ "receive",
308
+ "pickup",
309
+ "delete",
310
+ "send"
311
+ ],
312
+ "description": "One capability a member DID extends to a principal's connection. `receive`: live delivery of the member's inbound messages on the connection. `pickup`: message-pickup status and delivery requests naming the member as `recipient_did`, and inclusion in a raw-TSP inbox drain. `delete`: deleting the member's stored messages, including delete-on-ack and delete-on-send; a member without `delete` keeps its messages in its inbox until something holding `delete` collects them. `send`: the mediator accepts on this connection frames whose sender is the member DID — the frame is still signed or authcrypted with the member's own keys; the scope only lets the mediator accept it on this socket."
313
+ }
314
+ }
315
+ };
316
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
317
+ export const RESPONSE_PAYLOAD_SCHEMA = {
318
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
319
+ "$ref": "#/$defs/Response",
320
+ "$defs": {
321
+ "Response": {
322
+ "$anchor": "response",
323
+ "title": "Messaging — Mux Grant — response payload",
324
+ "description": "The success response to a messaging/mux/grant request: one outcome per submitted grant, in request order. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/mux/grant/0.1#response.",
325
+ "type": "object",
326
+ "additionalProperties": false,
327
+ "required": [
328
+ "results"
329
+ ],
330
+ "properties": {
331
+ "results": {
332
+ "type": "array",
333
+ "maxItems": 256,
334
+ "items": {
335
+ "$ref": "#/$defs/GrantOutcome"
336
+ }
337
+ },
338
+ "ext": {
339
+ "$ref": "#/$defs/Ext",
340
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
341
+ }
342
+ }
343
+ },
344
+ "GrantOutcome": {
345
+ "title": "GrantOutcome",
346
+ "type": "object",
347
+ "additionalProperties": false,
348
+ "required": [
349
+ "status",
350
+ "grantId",
351
+ "did",
352
+ "principal"
353
+ ],
354
+ "description": "The outcome for one submitted grant.",
355
+ "properties": {
356
+ "status": {
357
+ "type": "string",
358
+ "enum": [
359
+ "stored",
360
+ "refused"
361
+ ]
362
+ },
363
+ "grantId": {
364
+ "$ref": "#/$defs/GrantId",
365
+ "description": "The grant's identifier, from its statement."
366
+ },
367
+ "did": {
368
+ "$ref": "#/$defs/MuxDid",
369
+ "description": "The member DID: the statement's `issuer`."
370
+ },
371
+ "principal": {
372
+ "$ref": "#/$defs/MuxDid",
373
+ "description": "The principal DID, from the statement."
374
+ },
375
+ "code": {
376
+ "type": "string",
377
+ "enum": [
378
+ "messaging/mux:statementProofInvalid",
379
+ "messaging/mux:didUnresolvable",
380
+ "messaging/mux:proofPurposeInvalid",
381
+ "messaging/mux:audienceMismatch",
382
+ "messaging/mux:principalMismatch",
383
+ "messaging/mux:notYetValid",
384
+ "messaging/mux:statementExpired",
385
+ "messaging/mux:lifetimeTooLong",
386
+ "messaging/mux:emptyScope",
387
+ "messaging/mux:accountUnavailable",
388
+ "messaging/mux:scopeNotPermitted",
389
+ "messaging/mux/grant:epochMismatch",
390
+ "messaging/mux/grant:replayed",
391
+ "messaging/mux/grant:grantIdReused",
392
+ "messaging/mux/grant:didQuota",
393
+ "messaging/mux/grant:principalQuota",
394
+ "messaging/mux/grant:contended"
395
+ ],
396
+ "description": "Present exactly when `status` is `refused`: the first check the grant failed, in the order the specification lists them."
397
+ },
398
+ "currentEpoch": {
399
+ "type": "integer",
400
+ "minimum": 0,
401
+ "description": "Present exactly when `code` is `messaging/mux/grant:epochMismatch`: the member DID's current epoch, under which the member re-signs."
402
+ },
403
+ "replayFloorAt": {
404
+ "type": "string",
405
+ "format": "date-time",
406
+ "description": "Present exactly when `code` is `messaging/mux/grant:replayed`: the instant a replacement grant's `iat` must be strictly later than — the principal's replay floor for this member, or the `iat` of the grant it would replace, whichever is later."
407
+ },
408
+ "replacedGrantId": {
409
+ "$ref": "#/$defs/GrantId",
410
+ "description": "Present when this grant replaced an earlier grant for the same member and principal, in whatever state that grant was. Replacing raises the principal's replay floor, so the replaced statement can never be stored again."
411
+ },
412
+ "attachedNow": {
413
+ "type": "boolean",
414
+ "description": "Present exactly when `status` is `stored`: whether the member was attached at once to a connection the principal holds."
415
+ }
416
+ }
417
+ },
418
+ "GrantId": {
419
+ "title": "GrantId",
420
+ "type": "string",
421
+ "minLength": 1,
422
+ "maxLength": 128,
423
+ "pattern": "^[A-Za-z0-9._:-]+$",
424
+ "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."
425
+ },
426
+ "MuxDid": {
427
+ "title": "MuxDid",
428
+ "type": "string",
429
+ "minLength": 7,
430
+ "maxLength": 2048,
431
+ "pattern": "^did:[a-z0-9]+:\\S+$",
432
+ "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."
433
+ },
434
+ "Ext": {
435
+ "title": "Ext",
436
+ "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.",
437
+ "type": "object",
438
+ "minProperties": 1,
439
+ "additionalProperties": true,
440
+ "propertyNames": {
441
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
442
+ }
443
+ },
444
+ "GrantStatement": {
445
+ "title": "GrantStatement",
446
+ "type": "object",
447
+ "additionalProperties": false,
448
+ "required": [
449
+ "type",
450
+ "issuer",
451
+ "audience",
452
+ "grantId",
453
+ "principal",
454
+ "scope",
455
+ "epoch",
456
+ "iat",
457
+ "exp",
458
+ "proof"
459
+ ],
460
+ "description": "A member DID's standing statement that the named principal may carry its traffic at this mediator, on any connection, until `exp`, within `scope`, under the member's current `epoch`. Signed by the member with an embedded Data Integrity proof whose purpose is `authentication`, and stored verbatim by the mediator as the only evidence of the delegation.",
461
+ "properties": {
462
+ "type": {
463
+ "type": "string",
464
+ "const": "muxGrant",
465
+ "description": "Always `muxGrant`; names the statement kind, so a statement of one kind is never accepted as another."
466
+ },
467
+ "issuer": {
468
+ "$ref": "#/$defs/MuxDid",
469
+ "description": "The member DID: the signer, and the DID the statement concerns."
470
+ },
471
+ "audience": {
472
+ "$ref": "#/$defs/MuxDid",
473
+ "description": "The mediator's DID. A statement names exactly one mediator and is refused by every other."
474
+ },
475
+ "grantId": {
476
+ "$ref": "#/$defs/GrantId"
477
+ },
478
+ "principal": {
479
+ "$ref": "#/$defs/MuxDid",
480
+ "description": "The principal DID that may carry the member's traffic. MUST differ from `issuer`."
481
+ },
482
+ "scope": {
483
+ "$ref": "#/$defs/StatementScope"
484
+ },
485
+ "epoch": {
486
+ "type": "integer",
487
+ "minimum": 0,
488
+ "description": "The member DID's current epoch at the mediator. Only messaging/mux/revoke-all advances it."
489
+ },
490
+ "iat": {
491
+ "type": "integer",
492
+ "minimum": 0,
493
+ "description": "JWT NumericDate (RFC 7519 §2), whole seconds since 1970-01-01T00:00:00Z UTC: when the statement was signed. MUST NOT be more than 60 seconds in the mediator's future."
494
+ },
495
+ "exp": {
496
+ "type": "integer",
497
+ "minimum": 0,
498
+ "description": "JWT NumericDate (RFC 7519 §2): when the statement stops being accepted. REQUIRED; MUST be after `iat` and in the future."
499
+ },
500
+ "proof": {
501
+ "$ref": "#/$defs/MuxDataIntegrityProof"
502
+ }
503
+ }
504
+ },
505
+ "MuxDataIntegrityProof": {
506
+ "title": "MuxDataIntegrityProof",
507
+ "type": "object",
508
+ "additionalProperties": false,
509
+ "required": [
510
+ "type",
511
+ "cryptosuite",
512
+ "verificationMethod",
513
+ "proofPurpose",
514
+ "proofValue"
515
+ ],
516
+ "description": "The W3C Data Integrity proof embedded in a mux statement, made by the member DID: the format and verifier Trust Tasks already use for document proofs (SPEC §4.7). The proof covers the whole statement except `proof` itself, as the cryptosuite defines. Closed: a member Data Integrity defines but this list omits is refused.",
517
+ "properties": {
518
+ "type": {
519
+ "type": "string",
520
+ "const": "DataIntegrityProof"
521
+ },
522
+ "cryptosuite": {
523
+ "type": "string",
524
+ "enum": [
525
+ "eddsa-jcs-2022",
526
+ "eddsa-rdfc-2022"
527
+ ],
528
+ "description": "The W3C Data Integrity EdDSA cryptosuite used."
529
+ },
530
+ "verificationMethod": {
531
+ "type": "string",
532
+ "minLength": 5,
533
+ "maxLength": 2048,
534
+ "pattern": "^did:\\S+#\\S+$",
535
+ "description": "The DID URL of the verification method that signed. MUST be controlled by the statement's `issuer` and listed in that DID's current `authentication` relationship."
536
+ },
537
+ "proofPurpose": {
538
+ "type": "string",
539
+ "minLength": 1,
540
+ "maxLength": 64,
541
+ "description": "MUST be `authentication`. Any other value is refused with `messaging/mux:proofPurposeInvalid` — a proof made for another relationship (an `assertionMethod` credential signature, say) is never accepted as control of the DID."
542
+ },
543
+ "created": {
544
+ "type": "string",
545
+ "format": "date-time",
546
+ "description": "OPTIONAL: when the proof was made, as Data Integrity defines it. Covered by the proof; the statement's own `iat` is what the mediator checks."
547
+ },
548
+ "proofValue": {
549
+ "type": "string",
550
+ "minLength": 2,
551
+ "maxLength": 4096,
552
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
553
+ "description": "The multibase (base58btc) signature."
554
+ }
555
+ }
556
+ },
557
+ "StatementScope": {
558
+ "title": "StatementScope",
559
+ "type": "array",
560
+ "maxItems": 16,
561
+ "items": {
562
+ "$ref": "#/$defs/MuxScopeValue"
563
+ },
564
+ "description": "The scope a member DID signs into a statement: a JSON array of MuxScopeValue, compared as a set — order is not significant and a repeated value collapses. It MUST NOT be empty; an empty signed scope is refused with the task's `emptyScope` code, never read as \"all\". Unlike MuxScope, emptiness is not a schema failure here, so that the refusal is reported per statement rather than failing the whole batch."
565
+ },
566
+ "MuxScopeValue": {
567
+ "title": "MuxScopeValue",
568
+ "type": "string",
569
+ "enum": [
570
+ "receive",
571
+ "pickup",
572
+ "delete",
573
+ "send"
574
+ ],
575
+ "description": "One capability a member DID extends to a principal's connection. `receive`: live delivery of the member's inbound messages on the connection. `pickup`: message-pickup status and delivery requests naming the member as `recipient_did`, and inclusion in a raw-TSP inbox drain. `delete`: deleting the member's stored messages, including delete-on-ack and delete-on-send; a member without `delete` keeps its messages in its inbox until something holding `delete` collects them. `send`: the mediator accepts on this connection frames whose sender is the member DID — the frame is still signed or authcrypted with the member's own keys; the scope only lets the mediator accept it on this socket."
576
+ }
577
+ }
578
+ };
579
+ /**
580
+ * SPEC.md §7.2 policy for the request variant, from this specification's
581
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
582
+ * per-specification and cannot be derived from the document alone, and
583
+ * item 2 needs the schema this carries.
584
+ */
585
+ export const SPEC = {
586
+ typeUri: TYPE_URI,
587
+ isBearer: false,
588
+ isProofRequired: true,
589
+ isRecipientRequired: true,
590
+ isIssuedAtRequired: true,
591
+ payloadSchema: PAYLOAD_SCHEMA,
592
+ };
593
+ /**
594
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
595
+ * tracks the *issuer* party's requirement because a response swaps the
596
+ * parties (§7.3 item 5).
597
+ */
598
+ export const RESPONSE_SPEC = {
599
+ typeUri: RESPONSE_TYPE_URI,
600
+ isBearer: false,
601
+ isProofRequired: false,
602
+ isRecipientRequired: true,
603
+ isIssuedAtRequired: true,
604
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
605
+ };
606
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/messaging/mux/grant/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA6FH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,qDAA8D,CAAC;AAEvF;;;;;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,8DAAuE,CAAC;AAKzG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,qDAAqD;IAC5D,OAAO,EAAE,iCAAiC;IAC1C,aAAa,EAAE,4SAA4S;IAC3T,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,QAAQ;KACT;IACD,YAAY,EAAE;QACZ,QAAQ,EAAE;YACR,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,CAAC;YACb,UAAU,EAAE,GAAG;YACf,aAAa,EAAE,yJAAyJ;YACxK,OAAO,EAAE;gBACP,MAAM,EAAE,wBAAwB;aACjC;SACF;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;YACrB,aAAa,EAAE,yDAAyD;SACzE;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,0CAA0C;YACnD,aAAa,EAAE,wNAAwN;YACvO,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,SAAS;aACV;YACD,YAAY,EAAE;gBACZ,SAAS,EAAE;oBACT,MAAM,EAAE,OAAO;oBACf,UA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