@openvtc/trust-tasks 0.28.23 → 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.
- package/CHANGELOG.md +62 -0
- package/dist/_shared/components.d.ts +520 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +45 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -0
- package/dist/index.js.map +1 -1
- package/dist/messaging/mux/_shared/0.1/mux.d.ts +16 -0
- package/dist/messaging/mux/_shared/0.1/mux.d.ts.map +1 -0
- package/dist/messaging/mux/_shared/0.1/mux.js +6 -0
- package/dist/messaging/mux/_shared/0.1/mux.js.map +1 -0
- package/dist/messaging/mux/attach/0.1/payload.d.ts +996 -0
- package/dist/messaging/mux/attach/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/mux/attach/0.1/payload.js +594 -0
- package/dist/messaging/mux/attach/0.1/payload.js.map +1 -0
- package/dist/messaging/mux/detach/0.1/payload.d.ts +398 -0
- package/dist/messaging/mux/detach/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/mux/detach/0.1/payload.js +215 -0
- package/dist/messaging/mux/detach/0.1/payload.js.map +1 -0
- package/dist/messaging/mux/event/0.1/payload.d.ts +513 -0
- package/dist/messaging/mux/event/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/mux/event/0.1/payload.js +260 -0
- package/dist/messaging/mux/event/0.1/payload.js.map +1 -0
- package/dist/messaging/mux/grant/0.1/payload.d.ts +1008 -0
- package/dist/messaging/mux/grant/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/mux/grant/0.1/payload.js +606 -0
- package/dist/messaging/mux/grant/0.1/payload.js.map +1 -0
- package/dist/messaging/mux/list/0.1/payload.d.ts +1241 -0
- package/dist/messaging/mux/list/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/mux/list/0.1/payload.js +715 -0
- package/dist/messaging/mux/list/0.1/payload.js.map +1 -0
- package/dist/messaging/mux/notice/0.1/payload.d.ts +489 -0
- package/dist/messaging/mux/notice/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/mux/notice/0.1/payload.js +249 -0
- package/dist/messaging/mux/notice/0.1/payload.js.map +1 -0
- package/dist/messaging/mux/revoke/0.1/payload.d.ts +585 -0
- package/dist/messaging/mux/revoke/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/mux/revoke/0.1/payload.js +311 -0
- package/dist/messaging/mux/revoke/0.1/payload.js.map +1 -0
- package/dist/messaging/mux/revoke-all/0.1/payload.d.ts +682 -0
- package/dist/messaging/mux/revoke-all/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/mux/revoke-all/0.1/payload.js +397 -0
- package/dist/messaging/mux/revoke-all/0.1/payload.js.map +1 -0
- package/dist/messaging/mux/update/0.1/payload.d.ts +995 -0
- package/dist/messaging/mux/update/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/mux/update/0.1/payload.js +586 -0
- package/dist/messaging/mux/update/0.1/payload.js.map +1 -0
- package/dist/vta/_shared/0.1/memory-record.d.ts +22 -0
- package/dist/vta/_shared/0.1/memory-record.d.ts.map +1 -0
- package/dist/vta/_shared/0.1/memory-record.js +6 -0
- package/dist/vta/_shared/0.1/memory-record.js.map +1 -0
- package/dist/vta/memory/delete/0.1/payload.d.ts +13 -2
- package/dist/vta/memory/delete/0.1/payload.d.ts.map +1 -1
- package/dist/vta/memory/delete/0.1/payload.js +1 -1
- package/dist/vta/memory/delete/0.1/payload.js.map +1 -1
- package/dist/vta/memory/delete/0.2/payload.d.ts +415 -0
- package/dist/vta/memory/delete/0.2/payload.d.ts.map +1 -0
- package/dist/vta/memory/delete/0.2/payload.js +224 -0
- package/dist/vta/memory/delete/0.2/payload.js.map +1 -0
- package/dist/vta/memory/get/0.1/payload.d.ts +646 -0
- package/dist/vta/memory/get/0.1/payload.d.ts.map +1 -0
- package/dist/vta/memory/get/0.1/payload.js +349 -0
- package/dist/vta/memory/get/0.1/payload.js.map +1 -0
- package/dist/vta/memory/list/0.1/payload.d.ts +13 -2
- package/dist/vta/memory/list/0.1/payload.d.ts.map +1 -1
- package/dist/vta/memory/list/0.1/payload.js +1 -1
- package/dist/vta/memory/list/0.1/payload.js.map +1 -1
- package/dist/vta/memory/list/0.2/payload.d.ts +693 -0
- package/dist/vta/memory/list/0.2/payload.d.ts.map +1 -0
- package/dist/vta/memory/list/0.2/payload.js +363 -0
- package/dist/vta/memory/list/0.2/payload.js.map +1 -0
- package/dist/vta/memory/put/0.1/payload.d.ts +13 -2
- package/dist/vta/memory/put/0.1/payload.d.ts.map +1 -1
- package/dist/vta/memory/put/0.1/payload.js +1 -1
- package/dist/vta/memory/put/0.1/payload.js.map +1 -1
- package/dist/vta/memory/put/0.2/payload.d.ts +490 -0
- package/dist/vta/memory/put/0.2/payload.d.ts.map +1 -0
- package/dist/vta/memory/put/0.2/payload.js +264 -0
- package/dist/vta/memory/put/0.2/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +581 -0
- package/src/index.ts +45 -0
- package/src/messaging/mux/_shared/0.1/mux.ts +17 -0
- package/src/messaging/mux/attach/0.1/payload.ts +682 -0
- package/src/messaging/mux/detach/0.1/payload.ts +278 -0
- package/src/messaging/mux/event/0.1/payload.ts +371 -0
- package/src/messaging/mux/grant/0.1/payload.ts +710 -0
- package/src/messaging/mux/list/0.1/payload.ts +793 -0
- package/src/messaging/mux/notice/0.1/payload.ts +362 -0
- package/src/messaging/mux/revoke/0.1/payload.ts +389 -0
- package/src/messaging/mux/revoke-all/0.1/payload.ts +452 -0
- package/src/messaging/mux/update/0.1/payload.ts +644 -0
- package/src/vta/_shared/0.1/memory-record.ts +23 -0
- package/src/vta/memory/delete/0.1/payload.ts +14 -3
- package/src/vta/memory/delete/0.2/payload.ts +288 -0
- package/src/vta/memory/get/0.1/payload.ts +414 -0
- package/src/vta/memory/list/0.1/payload.ts +14 -3
- package/src/vta/memory/list/0.2/payload.ts +445 -0
- package/src/vta/memory/put/0.1/payload.ts +14 -3
- package/src/vta/memory/put/0.2/payload.ts +333 -0
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/messaging/mux/revoke-all/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { DataIntegrityProof, Ext, MuxDataIntegrityProof, MuxDid, RevokeAllStatement } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A member DID, proving current control with a signed revoke-all statement, advances its epoch at the mediator and so voids every grant on it at once. The outer document members are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface MessagingMuxRevokeAllPayload {
|
|
13
|
+
/**
|
|
14
|
+
* The revoke-all statement; the member DID is its `issuer`.
|
|
15
|
+
*/
|
|
16
|
+
revocation: RevokeAllStatement;
|
|
17
|
+
/**
|
|
18
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
19
|
+
*/
|
|
20
|
+
ext?: Ext;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The success response to a messaging/mux/revoke-all request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/mux/revoke-all/0.1#response.
|
|
24
|
+
*/
|
|
25
|
+
export interface MessagingMuxRevokeAllResponsePayload {
|
|
26
|
+
did: MuxDid;
|
|
27
|
+
/**
|
|
28
|
+
* The member DID's epoch now in force; a new grant must carry it.
|
|
29
|
+
*/
|
|
30
|
+
epoch: number;
|
|
31
|
+
/**
|
|
32
|
+
* False when the epoch named in the proof had already been voided, so nothing changed.
|
|
33
|
+
*/
|
|
34
|
+
epochAdvanced: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* How many grants that were active this request moved to `epochRevoked`.
|
|
37
|
+
*/
|
|
38
|
+
revokedGrants: number;
|
|
39
|
+
/**
|
|
40
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
41
|
+
*/
|
|
42
|
+
ext?: Ext;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
46
|
+
export type { DataIntegrityProof, Ext, MuxDataIntegrityProof, MuxDid, RevokeAllStatement };
|
|
47
|
+
|
|
48
|
+
/** Trust Task type URI. */
|
|
49
|
+
export const TYPE_URI = "https://trusttasks.org/spec/messaging/mux/revoke-all/0.1" as const;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The earlier version of this specification that this one declares it
|
|
53
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
54
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
55
|
+
* `extendsChain` / `readForSpec`.
|
|
56
|
+
*/
|
|
57
|
+
export const EXTENDS: string | null = null;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
61
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
62
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
63
|
+
* Versions").
|
|
64
|
+
*/
|
|
65
|
+
export const DEPRECATION: string | null = null;
|
|
66
|
+
|
|
67
|
+
/** Stable alias for this specification's request payload shape. */
|
|
68
|
+
export type Payload = MessagingMuxRevokeAllPayload;
|
|
69
|
+
|
|
70
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
71
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/messaging/mux/revoke-all/0.1#response" as const;
|
|
72
|
+
|
|
73
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
74
|
+
export type Response = MessagingMuxRevokeAllResponsePayload;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* This specification's payload schema, as a value.
|
|
78
|
+
*
|
|
79
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
80
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
81
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
82
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
83
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
84
|
+
*/
|
|
85
|
+
export const PAYLOAD_SCHEMA = {
|
|
86
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
87
|
+
"$id": "https://trusttasks.org/spec/messaging/mux/revoke-all/0.1",
|
|
88
|
+
"title": "Messaging — Mux Revoke All — payload",
|
|
89
|
+
"description": "A member DID, proving current control with a signed revoke-all statement, advances its epoch at the mediator and so voids every grant on it at once. The outer document members are owned by the framework — SPEC §6.3.",
|
|
90
|
+
"type": "object",
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"required": [
|
|
93
|
+
"revocation"
|
|
94
|
+
],
|
|
95
|
+
"properties": {
|
|
96
|
+
"revocation": {
|
|
97
|
+
"$ref": "#/$defs/RevokeAllStatement",
|
|
98
|
+
"description": "The revoke-all statement; the member DID is its `issuer`."
|
|
99
|
+
},
|
|
100
|
+
"ext": {
|
|
101
|
+
"$ref": "#/$defs/Ext",
|
|
102
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"$defs": {
|
|
106
|
+
"Response": {
|
|
107
|
+
"$anchor": "response",
|
|
108
|
+
"title": "Messaging — Mux Revoke All — response payload",
|
|
109
|
+
"description": "The success response to a messaging/mux/revoke-all request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/mux/revoke-all/0.1#response.",
|
|
110
|
+
"type": "object",
|
|
111
|
+
"additionalProperties": false,
|
|
112
|
+
"required": [
|
|
113
|
+
"did",
|
|
114
|
+
"epoch",
|
|
115
|
+
"epochAdvanced",
|
|
116
|
+
"revokedGrants"
|
|
117
|
+
],
|
|
118
|
+
"properties": {
|
|
119
|
+
"did": {
|
|
120
|
+
"$ref": "#/$defs/MuxDid"
|
|
121
|
+
},
|
|
122
|
+
"epoch": {
|
|
123
|
+
"type": "integer",
|
|
124
|
+
"minimum": 0,
|
|
125
|
+
"description": "The member DID's epoch now in force; a new grant must carry it."
|
|
126
|
+
},
|
|
127
|
+
"epochAdvanced": {
|
|
128
|
+
"type": "boolean",
|
|
129
|
+
"description": "False when the epoch named in the proof had already been voided, so nothing changed."
|
|
130
|
+
},
|
|
131
|
+
"revokedGrants": {
|
|
132
|
+
"type": "integer",
|
|
133
|
+
"minimum": 0,
|
|
134
|
+
"description": "How many grants that were active this request moved to `epochRevoked`."
|
|
135
|
+
},
|
|
136
|
+
"ext": {
|
|
137
|
+
"$ref": "#/$defs/Ext",
|
|
138
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"Ext": {
|
|
143
|
+
"title": "Ext",
|
|
144
|
+
"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.",
|
|
145
|
+
"type": "object",
|
|
146
|
+
"minProperties": 1,
|
|
147
|
+
"additionalProperties": true,
|
|
148
|
+
"propertyNames": {
|
|
149
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"MuxDid": {
|
|
153
|
+
"title": "MuxDid",
|
|
154
|
+
"type": "string",
|
|
155
|
+
"minLength": 7,
|
|
156
|
+
"maxLength": 2048,
|
|
157
|
+
"pattern": "^did:[a-z0-9]+:\\S+$",
|
|
158
|
+
"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."
|
|
159
|
+
},
|
|
160
|
+
"RevokeAllStatement": {
|
|
161
|
+
"title": "RevokeAllStatement",
|
|
162
|
+
"type": "object",
|
|
163
|
+
"additionalProperties": false,
|
|
164
|
+
"required": [
|
|
165
|
+
"type",
|
|
166
|
+
"issuer",
|
|
167
|
+
"audience",
|
|
168
|
+
"epoch",
|
|
169
|
+
"iat",
|
|
170
|
+
"exp",
|
|
171
|
+
"proof"
|
|
172
|
+
],
|
|
173
|
+
"description": "A member DID's statement, proving current control of it, that every grant on it signed under `epoch` or earlier is void. Signed by the member with an embedded Data Integrity proof whose purpose is `authentication`.",
|
|
174
|
+
"properties": {
|
|
175
|
+
"type": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"const": "muxRevokeAll",
|
|
178
|
+
"description": "Always `muxRevokeAll`; names the statement kind, so a statement of one kind is never accepted as another."
|
|
179
|
+
},
|
|
180
|
+
"issuer": {
|
|
181
|
+
"$ref": "#/$defs/MuxDid",
|
|
182
|
+
"description": "The member DID: the signer, and the DID the statement concerns."
|
|
183
|
+
},
|
|
184
|
+
"audience": {
|
|
185
|
+
"$ref": "#/$defs/MuxDid",
|
|
186
|
+
"description": "The mediator's DID. A statement names exactly one mediator and is refused by every other."
|
|
187
|
+
},
|
|
188
|
+
"epoch": {
|
|
189
|
+
"type": "integer",
|
|
190
|
+
"minimum": 0,
|
|
191
|
+
"description": "The epoch being voided: the member DID's current one."
|
|
192
|
+
},
|
|
193
|
+
"iat": {
|
|
194
|
+
"type": "integer",
|
|
195
|
+
"minimum": 0,
|
|
196
|
+
"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."
|
|
197
|
+
},
|
|
198
|
+
"exp": {
|
|
199
|
+
"type": "integer",
|
|
200
|
+
"minimum": 0,
|
|
201
|
+
"description": "JWT NumericDate (RFC 7519 §2): when the statement stops being accepted. REQUIRED; MUST be after `iat` and in the future."
|
|
202
|
+
},
|
|
203
|
+
"proof": {
|
|
204
|
+
"$ref": "#/$defs/MuxDataIntegrityProof"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"MuxDataIntegrityProof": {
|
|
209
|
+
"title": "MuxDataIntegrityProof",
|
|
210
|
+
"type": "object",
|
|
211
|
+
"additionalProperties": false,
|
|
212
|
+
"required": [
|
|
213
|
+
"type",
|
|
214
|
+
"cryptosuite",
|
|
215
|
+
"verificationMethod",
|
|
216
|
+
"proofPurpose",
|
|
217
|
+
"proofValue"
|
|
218
|
+
],
|
|
219
|
+
"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.",
|
|
220
|
+
"properties": {
|
|
221
|
+
"type": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"const": "DataIntegrityProof"
|
|
224
|
+
},
|
|
225
|
+
"cryptosuite": {
|
|
226
|
+
"type": "string",
|
|
227
|
+
"enum": [
|
|
228
|
+
"eddsa-jcs-2022",
|
|
229
|
+
"eddsa-rdfc-2022"
|
|
230
|
+
],
|
|
231
|
+
"description": "The W3C Data Integrity EdDSA cryptosuite used."
|
|
232
|
+
},
|
|
233
|
+
"verificationMethod": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"minLength": 5,
|
|
236
|
+
"maxLength": 2048,
|
|
237
|
+
"pattern": "^did:\\S+#\\S+$",
|
|
238
|
+
"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."
|
|
239
|
+
},
|
|
240
|
+
"proofPurpose": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"minLength": 1,
|
|
243
|
+
"maxLength": 64,
|
|
244
|
+
"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."
|
|
245
|
+
},
|
|
246
|
+
"created": {
|
|
247
|
+
"type": "string",
|
|
248
|
+
"format": "date-time",
|
|
249
|
+
"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."
|
|
250
|
+
},
|
|
251
|
+
"proofValue": {
|
|
252
|
+
"type": "string",
|
|
253
|
+
"minLength": 2,
|
|
254
|
+
"maxLength": 4096,
|
|
255
|
+
"pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
|
|
256
|
+
"description": "The multibase (base58btc) signature."
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
} as const;
|
|
262
|
+
|
|
263
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
264
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
265
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
266
|
+
"$ref": "#/$defs/Response",
|
|
267
|
+
"$defs": {
|
|
268
|
+
"Response": {
|
|
269
|
+
"$anchor": "response",
|
|
270
|
+
"title": "Messaging — Mux Revoke All — response payload",
|
|
271
|
+
"description": "The success response to a messaging/mux/revoke-all request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/mux/revoke-all/0.1#response.",
|
|
272
|
+
"type": "object",
|
|
273
|
+
"additionalProperties": false,
|
|
274
|
+
"required": [
|
|
275
|
+
"did",
|
|
276
|
+
"epoch",
|
|
277
|
+
"epochAdvanced",
|
|
278
|
+
"revokedGrants"
|
|
279
|
+
],
|
|
280
|
+
"properties": {
|
|
281
|
+
"did": {
|
|
282
|
+
"$ref": "#/$defs/MuxDid"
|
|
283
|
+
},
|
|
284
|
+
"epoch": {
|
|
285
|
+
"type": "integer",
|
|
286
|
+
"minimum": 0,
|
|
287
|
+
"description": "The member DID's epoch now in force; a new grant must carry it."
|
|
288
|
+
},
|
|
289
|
+
"epochAdvanced": {
|
|
290
|
+
"type": "boolean",
|
|
291
|
+
"description": "False when the epoch named in the proof had already been voided, so nothing changed."
|
|
292
|
+
},
|
|
293
|
+
"revokedGrants": {
|
|
294
|
+
"type": "integer",
|
|
295
|
+
"minimum": 0,
|
|
296
|
+
"description": "How many grants that were active this request moved to `epochRevoked`."
|
|
297
|
+
},
|
|
298
|
+
"ext": {
|
|
299
|
+
"$ref": "#/$defs/Ext",
|
|
300
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"Ext": {
|
|
305
|
+
"title": "Ext",
|
|
306
|
+
"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.",
|
|
307
|
+
"type": "object",
|
|
308
|
+
"minProperties": 1,
|
|
309
|
+
"additionalProperties": true,
|
|
310
|
+
"propertyNames": {
|
|
311
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"MuxDid": {
|
|
315
|
+
"title": "MuxDid",
|
|
316
|
+
"type": "string",
|
|
317
|
+
"minLength": 7,
|
|
318
|
+
"maxLength": 2048,
|
|
319
|
+
"pattern": "^did:[a-z0-9]+:\\S+$",
|
|
320
|
+
"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."
|
|
321
|
+
},
|
|
322
|
+
"RevokeAllStatement": {
|
|
323
|
+
"title": "RevokeAllStatement",
|
|
324
|
+
"type": "object",
|
|
325
|
+
"additionalProperties": false,
|
|
326
|
+
"required": [
|
|
327
|
+
"type",
|
|
328
|
+
"issuer",
|
|
329
|
+
"audience",
|
|
330
|
+
"epoch",
|
|
331
|
+
"iat",
|
|
332
|
+
"exp",
|
|
333
|
+
"proof"
|
|
334
|
+
],
|
|
335
|
+
"description": "A member DID's statement, proving current control of it, that every grant on it signed under `epoch` or earlier is void. Signed by the member with an embedded Data Integrity proof whose purpose is `authentication`.",
|
|
336
|
+
"properties": {
|
|
337
|
+
"type": {
|
|
338
|
+
"type": "string",
|
|
339
|
+
"const": "muxRevokeAll",
|
|
340
|
+
"description": "Always `muxRevokeAll`; names the statement kind, so a statement of one kind is never accepted as another."
|
|
341
|
+
},
|
|
342
|
+
"issuer": {
|
|
343
|
+
"$ref": "#/$defs/MuxDid",
|
|
344
|
+
"description": "The member DID: the signer, and the DID the statement concerns."
|
|
345
|
+
},
|
|
346
|
+
"audience": {
|
|
347
|
+
"$ref": "#/$defs/MuxDid",
|
|
348
|
+
"description": "The mediator's DID. A statement names exactly one mediator and is refused by every other."
|
|
349
|
+
},
|
|
350
|
+
"epoch": {
|
|
351
|
+
"type": "integer",
|
|
352
|
+
"minimum": 0,
|
|
353
|
+
"description": "The epoch being voided: the member DID's current one."
|
|
354
|
+
},
|
|
355
|
+
"iat": {
|
|
356
|
+
"type": "integer",
|
|
357
|
+
"minimum": 0,
|
|
358
|
+
"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."
|
|
359
|
+
},
|
|
360
|
+
"exp": {
|
|
361
|
+
"type": "integer",
|
|
362
|
+
"minimum": 0,
|
|
363
|
+
"description": "JWT NumericDate (RFC 7519 §2): when the statement stops being accepted. REQUIRED; MUST be after `iat` and in the future."
|
|
364
|
+
},
|
|
365
|
+
"proof": {
|
|
366
|
+
"$ref": "#/$defs/MuxDataIntegrityProof"
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"MuxDataIntegrityProof": {
|
|
371
|
+
"title": "MuxDataIntegrityProof",
|
|
372
|
+
"type": "object",
|
|
373
|
+
"additionalProperties": false,
|
|
374
|
+
"required": [
|
|
375
|
+
"type",
|
|
376
|
+
"cryptosuite",
|
|
377
|
+
"verificationMethod",
|
|
378
|
+
"proofPurpose",
|
|
379
|
+
"proofValue"
|
|
380
|
+
],
|
|
381
|
+
"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.",
|
|
382
|
+
"properties": {
|
|
383
|
+
"type": {
|
|
384
|
+
"type": "string",
|
|
385
|
+
"const": "DataIntegrityProof"
|
|
386
|
+
},
|
|
387
|
+
"cryptosuite": {
|
|
388
|
+
"type": "string",
|
|
389
|
+
"enum": [
|
|
390
|
+
"eddsa-jcs-2022",
|
|
391
|
+
"eddsa-rdfc-2022"
|
|
392
|
+
],
|
|
393
|
+
"description": "The W3C Data Integrity EdDSA cryptosuite used."
|
|
394
|
+
},
|
|
395
|
+
"verificationMethod": {
|
|
396
|
+
"type": "string",
|
|
397
|
+
"minLength": 5,
|
|
398
|
+
"maxLength": 2048,
|
|
399
|
+
"pattern": "^did:\\S+#\\S+$",
|
|
400
|
+
"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."
|
|
401
|
+
},
|
|
402
|
+
"proofPurpose": {
|
|
403
|
+
"type": "string",
|
|
404
|
+
"minLength": 1,
|
|
405
|
+
"maxLength": 64,
|
|
406
|
+
"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."
|
|
407
|
+
},
|
|
408
|
+
"created": {
|
|
409
|
+
"type": "string",
|
|
410
|
+
"format": "date-time",
|
|
411
|
+
"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."
|
|
412
|
+
},
|
|
413
|
+
"proofValue": {
|
|
414
|
+
"type": "string",
|
|
415
|
+
"minLength": 2,
|
|
416
|
+
"maxLength": 4096,
|
|
417
|
+
"pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
|
|
418
|
+
"description": "The multibase (base58btc) signature."
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
} as const;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
427
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
428
|
+
* per-specification and cannot be derived from the document alone, and
|
|
429
|
+
* item 2 needs the schema this carries.
|
|
430
|
+
*/
|
|
431
|
+
export const SPEC = {
|
|
432
|
+
typeUri: TYPE_URI,
|
|
433
|
+
isBearer: false,
|
|
434
|
+
isProofRequired: true,
|
|
435
|
+
isRecipientRequired: true,
|
|
436
|
+
isIssuedAtRequired: true,
|
|
437
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
438
|
+
} as const;
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
442
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
443
|
+
* parties (§7.3 item 5).
|
|
444
|
+
*/
|
|
445
|
+
export const RESPONSE_SPEC = {
|
|
446
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
447
|
+
isBearer: false,
|
|
448
|
+
isProofRequired: false,
|
|
449
|
+
isRecipientRequired: true,
|
|
450
|
+
isIssuedAtRequired: true,
|
|
451
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
452
|
+
} as const;
|