@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.
- package/CHANGELOG.md +87 -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/dist/vtc/members/rotate/0.1/payload.d.ts +12 -5
- package/dist/vtc/members/rotate/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/members/rotate/0.1/payload.js +8 -2
- package/dist/vtc/members/rotate/0.1/payload.js.map +1 -1
- 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
- package/src/vtc/members/rotate/0.1/payload.ts +12 -3
|
@@ -0,0 +1,311 @@
|
|
|
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
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/messaging/mux/revoke/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/revoke/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/revoke/0.1",
|
|
35
|
+
"title": "Messaging — Mux Revoke — payload",
|
|
36
|
+
"description": "Revoke stored grants, as their principal or as their member DID. The outer document members are owned by the framework — SPEC §6.3.",
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"required": [
|
|
40
|
+
"as"
|
|
41
|
+
],
|
|
42
|
+
"properties": {
|
|
43
|
+
"as": {
|
|
44
|
+
"$ref": "#/$defs/MuxRole",
|
|
45
|
+
"description": "`principal`: revoke grants delegated to the requester. `member`: revoke grants on a member DID the requester controls."
|
|
46
|
+
},
|
|
47
|
+
"did": {
|
|
48
|
+
"$ref": "#/$defs/MuxDid",
|
|
49
|
+
"description": "As `member` only: the member DID whose grants are revoked; absent means the requester itself."
|
|
50
|
+
},
|
|
51
|
+
"grantIds": {
|
|
52
|
+
"type": "array",
|
|
53
|
+
"minItems": 1,
|
|
54
|
+
"maxItems": 256,
|
|
55
|
+
"uniqueItems": true,
|
|
56
|
+
"items": {
|
|
57
|
+
"$ref": "#/$defs/GrantId"
|
|
58
|
+
},
|
|
59
|
+
"description": "Grants to revoke, by identifier."
|
|
60
|
+
},
|
|
61
|
+
"dids": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"minItems": 1,
|
|
64
|
+
"maxItems": 256,
|
|
65
|
+
"uniqueItems": true,
|
|
66
|
+
"items": {
|
|
67
|
+
"$ref": "#/$defs/MuxDid"
|
|
68
|
+
},
|
|
69
|
+
"description": "As `principal`: member DIDs whose grants to the requester are revoked. As `member`: principal DIDs whose grants on the member are revoked."
|
|
70
|
+
},
|
|
71
|
+
"ext": {
|
|
72
|
+
"$ref": "#/$defs/Ext",
|
|
73
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"$defs": {
|
|
77
|
+
"Response": {
|
|
78
|
+
"$anchor": "response",
|
|
79
|
+
"title": "Messaging — Mux Revoke — response payload",
|
|
80
|
+
"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.",
|
|
81
|
+
"type": "object",
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"required": [
|
|
84
|
+
"revoked"
|
|
85
|
+
],
|
|
86
|
+
"properties": {
|
|
87
|
+
"revoked": {
|
|
88
|
+
"type": "array",
|
|
89
|
+
"maxItems": 512,
|
|
90
|
+
"items": {
|
|
91
|
+
"$ref": "#/$defs/GrantRef"
|
|
92
|
+
},
|
|
93
|
+
"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."
|
|
94
|
+
},
|
|
95
|
+
"unmatchedGrantIds": {
|
|
96
|
+
"type": "array",
|
|
97
|
+
"maxItems": 256,
|
|
98
|
+
"items": {
|
|
99
|
+
"$ref": "#/$defs/GrantId"
|
|
100
|
+
},
|
|
101
|
+
"description": "Requested grant identifiers that name no stored grant the requester may revoke in the role it named."
|
|
102
|
+
},
|
|
103
|
+
"unmatchedDids": {
|
|
104
|
+
"type": "array",
|
|
105
|
+
"maxItems": 256,
|
|
106
|
+
"items": {
|
|
107
|
+
"$ref": "#/$defs/MuxDid"
|
|
108
|
+
},
|
|
109
|
+
"description": "Requested DIDs with no stored grant the requester may revoke in the role it named."
|
|
110
|
+
},
|
|
111
|
+
"ext": {
|
|
112
|
+
"$ref": "#/$defs/Ext",
|
|
113
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"Ext": {
|
|
118
|
+
"title": "Ext",
|
|
119
|
+
"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.",
|
|
120
|
+
"type": "object",
|
|
121
|
+
"minProperties": 1,
|
|
122
|
+
"additionalProperties": true,
|
|
123
|
+
"propertyNames": {
|
|
124
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"MuxDid": {
|
|
128
|
+
"title": "MuxDid",
|
|
129
|
+
"type": "string",
|
|
130
|
+
"minLength": 7,
|
|
131
|
+
"maxLength": 2048,
|
|
132
|
+
"pattern": "^did:[a-z0-9]+:\\S+$",
|
|
133
|
+
"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."
|
|
134
|
+
},
|
|
135
|
+
"GrantId": {
|
|
136
|
+
"title": "GrantId",
|
|
137
|
+
"type": "string",
|
|
138
|
+
"minLength": 1,
|
|
139
|
+
"maxLength": 128,
|
|
140
|
+
"pattern": "^[A-Za-z0-9._:-]+$",
|
|
141
|
+
"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."
|
|
142
|
+
},
|
|
143
|
+
"GrantRef": {
|
|
144
|
+
"title": "GrantRef",
|
|
145
|
+
"type": "object",
|
|
146
|
+
"additionalProperties": false,
|
|
147
|
+
"required": [
|
|
148
|
+
"grantId",
|
|
149
|
+
"did",
|
|
150
|
+
"principal"
|
|
151
|
+
],
|
|
152
|
+
"description": "Identifies one stored grant and the two parties to it.",
|
|
153
|
+
"properties": {
|
|
154
|
+
"grantId": {
|
|
155
|
+
"$ref": "#/$defs/GrantId"
|
|
156
|
+
},
|
|
157
|
+
"did": {
|
|
158
|
+
"$ref": "#/$defs/MuxDid",
|
|
159
|
+
"description": "The member DID."
|
|
160
|
+
},
|
|
161
|
+
"principal": {
|
|
162
|
+
"$ref": "#/$defs/MuxDid",
|
|
163
|
+
"description": "The principal DID the grant delegates to."
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"MuxRole": {
|
|
168
|
+
"title": "MuxRole",
|
|
169
|
+
"type": "string",
|
|
170
|
+
"enum": [
|
|
171
|
+
"principal",
|
|
172
|
+
"member"
|
|
173
|
+
],
|
|
174
|
+
"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."
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
179
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
180
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
181
|
+
"$ref": "#/$defs/Response",
|
|
182
|
+
"$defs": {
|
|
183
|
+
"Response": {
|
|
184
|
+
"$anchor": "response",
|
|
185
|
+
"title": "Messaging — Mux Revoke — response payload",
|
|
186
|
+
"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.",
|
|
187
|
+
"type": "object",
|
|
188
|
+
"additionalProperties": false,
|
|
189
|
+
"required": [
|
|
190
|
+
"revoked"
|
|
191
|
+
],
|
|
192
|
+
"properties": {
|
|
193
|
+
"revoked": {
|
|
194
|
+
"type": "array",
|
|
195
|
+
"maxItems": 512,
|
|
196
|
+
"items": {
|
|
197
|
+
"$ref": "#/$defs/GrantRef"
|
|
198
|
+
},
|
|
199
|
+
"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."
|
|
200
|
+
},
|
|
201
|
+
"unmatchedGrantIds": {
|
|
202
|
+
"type": "array",
|
|
203
|
+
"maxItems": 256,
|
|
204
|
+
"items": {
|
|
205
|
+
"$ref": "#/$defs/GrantId"
|
|
206
|
+
},
|
|
207
|
+
"description": "Requested grant identifiers that name no stored grant the requester may revoke in the role it named."
|
|
208
|
+
},
|
|
209
|
+
"unmatchedDids": {
|
|
210
|
+
"type": "array",
|
|
211
|
+
"maxItems": 256,
|
|
212
|
+
"items": {
|
|
213
|
+
"$ref": "#/$defs/MuxDid"
|
|
214
|
+
},
|
|
215
|
+
"description": "Requested DIDs with no stored grant the requester may revoke in the role it named."
|
|
216
|
+
},
|
|
217
|
+
"ext": {
|
|
218
|
+
"$ref": "#/$defs/Ext",
|
|
219
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"Ext": {
|
|
224
|
+
"title": "Ext",
|
|
225
|
+
"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.",
|
|
226
|
+
"type": "object",
|
|
227
|
+
"minProperties": 1,
|
|
228
|
+
"additionalProperties": true,
|
|
229
|
+
"propertyNames": {
|
|
230
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"MuxDid": {
|
|
234
|
+
"title": "MuxDid",
|
|
235
|
+
"type": "string",
|
|
236
|
+
"minLength": 7,
|
|
237
|
+
"maxLength": 2048,
|
|
238
|
+
"pattern": "^did:[a-z0-9]+:\\S+$",
|
|
239
|
+
"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."
|
|
240
|
+
},
|
|
241
|
+
"GrantId": {
|
|
242
|
+
"title": "GrantId",
|
|
243
|
+
"type": "string",
|
|
244
|
+
"minLength": 1,
|
|
245
|
+
"maxLength": 128,
|
|
246
|
+
"pattern": "^[A-Za-z0-9._:-]+$",
|
|
247
|
+
"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."
|
|
248
|
+
},
|
|
249
|
+
"GrantRef": {
|
|
250
|
+
"title": "GrantRef",
|
|
251
|
+
"type": "object",
|
|
252
|
+
"additionalProperties": false,
|
|
253
|
+
"required": [
|
|
254
|
+
"grantId",
|
|
255
|
+
"did",
|
|
256
|
+
"principal"
|
|
257
|
+
],
|
|
258
|
+
"description": "Identifies one stored grant and the two parties to it.",
|
|
259
|
+
"properties": {
|
|
260
|
+
"grantId": {
|
|
261
|
+
"$ref": "#/$defs/GrantId"
|
|
262
|
+
},
|
|
263
|
+
"did": {
|
|
264
|
+
"$ref": "#/$defs/MuxDid",
|
|
265
|
+
"description": "The member DID."
|
|
266
|
+
},
|
|
267
|
+
"principal": {
|
|
268
|
+
"$ref": "#/$defs/MuxDid",
|
|
269
|
+
"description": "The principal DID the grant delegates to."
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"MuxRole": {
|
|
274
|
+
"title": "MuxRole",
|
|
275
|
+
"type": "string",
|
|
276
|
+
"enum": [
|
|
277
|
+
"principal",
|
|
278
|
+
"member"
|
|
279
|
+
],
|
|
280
|
+
"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."
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
286
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
287
|
+
* per-specification and cannot be derived from the document alone, and
|
|
288
|
+
* item 2 needs the schema this carries.
|
|
289
|
+
*/
|
|
290
|
+
export const SPEC = {
|
|
291
|
+
typeUri: TYPE_URI,
|
|
292
|
+
isBearer: false,
|
|
293
|
+
isProofRequired: true,
|
|
294
|
+
isRecipientRequired: true,
|
|
295
|
+
isIssuedAtRequired: true,
|
|
296
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
300
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
301
|
+
* parties (§7.3 item 5).
|
|
302
|
+
*/
|
|
303
|
+
export const RESPONSE_SPEC = {
|
|
304
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
305
|
+
isBearer: false,
|
|
306
|
+
isProofRequired: false,
|
|
307
|
+
isRecipientRequired: true,
|
|
308
|
+
isIssuedAtRequired: true,
|
|
309
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
310
|
+
};
|
|
311
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/messaging/mux/revoke/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAmEH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,sDAA+D,CAAC;AAExF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAkB,IAAI,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAkB,IAAI,CAAC;AAK/C,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,+DAAwE,CAAC;AAK1G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,sDAAsD;IAC7D,OAAO,EAAE,kCAAkC;IAC3C,aAAa,EAAE,qIAAqI;IACpJ,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,wHAAwH;SACxI;QACD,KAAK,EAAE;YACL,MAAM,EAAE,gBAAgB;YACxB,aAAa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