@openvtc/trust-tasks 0.9.0 → 0.10.0
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/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -1
- package/dist/vta/_shared/0.1/context.d.ts +11 -0
- package/dist/vta/_shared/0.1/context.d.ts.map +1 -0
- package/dist/vta/_shared/0.1/context.js +6 -0
- package/dist/vta/_shared/0.1/context.js.map +1 -0
- package/dist/vta/_shared/0.1/webvh-records.d.ts +11 -0
- package/dist/vta/_shared/0.1/webvh-records.d.ts.map +1 -0
- package/dist/vta/_shared/0.1/webvh-records.js +6 -0
- package/dist/vta/_shared/0.1/webvh-records.js.map +1 -0
- package/dist/vta/contexts/create/1.0/payload.d.ts +443 -0
- package/dist/vta/contexts/create/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/create/1.0/payload.js +226 -0
- package/dist/vta/contexts/create/1.0/payload.js.map +1 -0
- package/dist/vta/contexts/delete/1.0/payload.d.ts +256 -0
- package/dist/vta/contexts/delete/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/delete/1.0/payload.js +143 -0
- package/dist/vta/contexts/delete/1.0/payload.js.map +1 -0
- package/dist/vta/contexts/get/1.0/payload.d.ts +405 -0
- package/dist/vta/contexts/get/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/get/1.0/payload.js +212 -0
- package/dist/vta/contexts/get/1.0/payload.js.map +1 -0
- package/dist/vta/contexts/list/1.0/payload.d.ts +460 -0
- package/dist/vta/contexts/list/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/list/1.0/payload.js +237 -0
- package/dist/vta/contexts/list/1.0/payload.js.map +1 -0
- package/dist/vta/contexts/preview-delete/1.0/payload.d.ts +394 -0
- package/dist/vta/contexts/preview-delete/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/preview-delete/1.0/payload.js +209 -0
- package/dist/vta/contexts/preview-delete/1.0/payload.js.map +1 -0
- package/dist/vta/contexts/update/1.0/payload.d.ts +653 -0
- package/dist/vta/contexts/update/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/update/1.0/payload.js +314 -0
- package/dist/vta/contexts/update/1.0/payload.js.map +1 -0
- package/dist/vta/contexts/update-did/1.0/payload.d.ts +419 -0
- package/dist/vta/contexts/update-did/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/update-did/1.0/payload.js +218 -0
- package/dist/vta/contexts/update-did/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/agent-name/check/1.0/payload.d.ts +301 -0
- package/dist/vta/webvh/agent-name/check/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/agent-name/check/1.0/payload.js +165 -0
- package/dist/vta/webvh/agent-name/check/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/agent-name/disable/1.0/payload.d.ts +274 -0
- package/dist/vta/webvh/agent-name/disable/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/agent-name/disable/1.0/payload.js +153 -0
- package/dist/vta/webvh/agent-name/disable/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/agent-name/enable/1.0/payload.d.ts +274 -0
- package/dist/vta/webvh/agent-name/enable/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/agent-name/enable/1.0/payload.js +153 -0
- package/dist/vta/webvh/agent-name/enable/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/agent-name/list/1.0/payload.d.ts +377 -0
- package/dist/vta/webvh/agent-name/list/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/agent-name/list/1.0/payload.js +201 -0
- package/dist/vta/webvh/agent-name/list/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/agent-name/remove/1.0/payload.d.ts +274 -0
- package/dist/vta/webvh/agent-name/remove/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/agent-name/remove/1.0/payload.js +153 -0
- package/dist/vta/webvh/agent-name/remove/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/agent-name/set/1.0/payload.d.ts +274 -0
- package/dist/vta/webvh/agent-name/set/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/agent-name/set/1.0/payload.js +153 -0
- package/dist/vta/webvh/agent-name/set/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/create/1.0/payload.d.ts +806 -0
- package/dist/vta/webvh/dids/create/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/create/1.0/payload.js +400 -0
- package/dist/vta/webvh/dids/create/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/delete/1.0/payload.d.ts +257 -0
- package/dist/vta/webvh/dids/delete/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/delete/1.0/payload.js +145 -0
- package/dist/vta/webvh/dids/delete/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/get/1.0/payload.d.ts +539 -0
- package/dist/vta/webvh/dids/get/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/get/1.0/payload.js +282 -0
- package/dist/vta/webvh/dids/get/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/list/1.0/payload.d.ts +537 -0
- package/dist/vta/webvh/dids/list/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/list/1.0/payload.js +278 -0
- package/dist/vta/webvh/dids/list/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/register-with-server/1.0/payload.d.ts +299 -0
- package/dist/vta/webvh/dids/register-with-server/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/register-with-server/1.0/payload.js +163 -0
- package/dist/vta/webvh/dids/register-with-server/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/rotate-keys/1.0/payload.d.ts +357 -0
- package/dist/vta/webvh/dids/rotate-keys/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/rotate-keys/1.0/payload.js +196 -0
- package/dist/vta/webvh/dids/rotate-keys/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/servers/list/1.0/payload.d.ts +366 -0
- package/dist/vta/webvh/servers/list/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/servers/list/1.0/payload.js +200 -0
- package/dist/vta/webvh/servers/list/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/servers/register/1.0/payload.d.ts +335 -0
- package/dist/vta/webvh/servers/register/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/servers/register/1.0/payload.js +183 -0
- package/dist/vta/webvh/servers/register/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/servers/remove/1.0/payload.d.ts +237 -0
- package/dist/vta/webvh/servers/remove/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/servers/remove/1.0/payload.js +137 -0
- package/dist/vta/webvh/servers/remove/1.0/payload.js.map +1 -0
- package/package.json +2 -1
- package/src/index.ts +24 -0
- package/src/vta/_shared/0.1/context.ts +11 -0
- package/src/vta/_shared/0.1/webvh-records.ts +11 -0
- package/src/vta/contexts/create/1.0/payload.ts +301 -0
- package/src/vta/contexts/delete/1.0/payload.ts +183 -0
- package/src/vta/contexts/get/1.0/payload.ts +275 -0
- package/src/vta/contexts/list/1.0/payload.ts +309 -0
- package/src/vta/contexts/preview-delete/1.0/payload.ts +267 -0
- package/src/vta/contexts/update/1.0/payload.ts +421 -0
- package/src/vta/contexts/update-did/1.0/payload.ts +285 -0
- package/src/vta/webvh/agent-name/check/1.0/payload.ts +216 -0
- package/src/vta/webvh/agent-name/disable/1.0/payload.ts +197 -0
- package/src/vta/webvh/agent-name/enable/1.0/payload.ts +197 -0
- package/src/vta/webvh/agent-name/list/1.0/payload.ts +258 -0
- package/src/vta/webvh/agent-name/remove/1.0/payload.ts +197 -0
- package/src/vta/webvh/agent-name/set/1.0/payload.ts +197 -0
- package/src/vta/webvh/dids/create/1.0/payload.ts +548 -0
- package/src/vta/webvh/dids/delete/1.0/payload.ts +182 -0
- package/src/vta/webvh/dids/get/1.0/payload.ts +363 -0
- package/src/vta/webvh/dids/list/1.0/payload.ts +361 -0
- package/src/vta/webvh/dids/register-with-server/1.0/payload.ts +212 -0
- package/src/vta/webvh/dids/rotate-keys/1.0/payload.ts +251 -0
- package/src/vta/webvh/servers/list/1.0/payload.ts +248 -0
- package/src/vta/webvh/servers/register/1.0/payload.ts +230 -0
- package/src/vta/webvh/servers/remove/1.0/payload.ts +170 -0
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/contexts/list/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/contexts/list/1.0";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/contexts/list/1.0#response";
|
|
9
|
+
/**
|
|
10
|
+
* This specification's payload schema, as a value.
|
|
11
|
+
*
|
|
12
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
13
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
14
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
15
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
16
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
17
|
+
*/
|
|
18
|
+
export const PAYLOAD_SCHEMA = {
|
|
19
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
20
|
+
"$id": "https://trusttasks.org/spec/vta/contexts/list/1.0",
|
|
21
|
+
"title": "VTA Contexts List — payload",
|
|
22
|
+
"description": "Request payload for vta/contexts/list. Takes no filters: the result is already narrowed to what the caller may reach.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"properties": {
|
|
26
|
+
"ext": {
|
|
27
|
+
"$ref": "#/$defs/Ext"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"$defs": {
|
|
31
|
+
"Response": {
|
|
32
|
+
"$anchor": "response",
|
|
33
|
+
"title": "VTA Contexts List — response payload",
|
|
34
|
+
"description": "Success response to vta/contexts/list. Type https://trusttasks.org/spec/vta/contexts/list/1.0#response.",
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": [
|
|
38
|
+
"contexts"
|
|
39
|
+
],
|
|
40
|
+
"properties": {
|
|
41
|
+
"contexts": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"description": "Contexts the caller may access, in maintainer-defined order. An empty array means the caller can reach none — which is a successful answer, and is not distinguishable from a VTA that holds none. A caller needing that distinction wants vta/contexts/get on a known id, which answers notFound.",
|
|
44
|
+
"items": {
|
|
45
|
+
"$ref": "#/$defs/ContextRecord"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"ext": {
|
|
49
|
+
"$ref": "#/$defs/Ext"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"Ext": {
|
|
54
|
+
"title": "Ext",
|
|
55
|
+
"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.",
|
|
56
|
+
"type": "object",
|
|
57
|
+
"minProperties": 1,
|
|
58
|
+
"additionalProperties": true,
|
|
59
|
+
"propertyNames": {
|
|
60
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"ContextRecord": {
|
|
64
|
+
"title": "ContextRecord",
|
|
65
|
+
"description": "A context as the VTA holds it.",
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"required": [
|
|
69
|
+
"id",
|
|
70
|
+
"name",
|
|
71
|
+
"basePath",
|
|
72
|
+
"createdAt",
|
|
73
|
+
"updatedAt"
|
|
74
|
+
],
|
|
75
|
+
"properties": {
|
|
76
|
+
"id": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"minLength": 1,
|
|
79
|
+
"description": "Context id. For a nested context this is the full path (`parent/leaf`), not the leaf alone — an ACL scope naming this context must use this value verbatim."
|
|
80
|
+
},
|
|
81
|
+
"name": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"minLength": 1,
|
|
84
|
+
"description": "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name."
|
|
85
|
+
},
|
|
86
|
+
"did": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"description": "DID this context acts as, when one has been assigned. Absent means the context has no identity of its own yet — not that it has been denied one."
|
|
89
|
+
},
|
|
90
|
+
"description": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"description": "Free-form description."
|
|
93
|
+
},
|
|
94
|
+
"parent": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"description": "Id of the context this one nests under. Absent for a top-level context. Authority granted at a parent reaches its children, so this member is load-bearing for anyone reasoning about scope."
|
|
97
|
+
},
|
|
98
|
+
"basePath": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"description": "Resolved path from the root context, as the VTA derives it from the parent chain. Consumers MUST treat this as derived state: it is recomputed by the maintainer and is not independently settable."
|
|
101
|
+
},
|
|
102
|
+
"createdAt": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"format": "date-time",
|
|
105
|
+
"description": "RFC 3339."
|
|
106
|
+
},
|
|
107
|
+
"updatedAt": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"format": "date-time",
|
|
110
|
+
"description": "RFC 3339."
|
|
111
|
+
},
|
|
112
|
+
"ext": {
|
|
113
|
+
"$ref": "#/$defs/Ext"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
120
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
121
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
122
|
+
"$ref": "#/$defs/Response",
|
|
123
|
+
"$defs": {
|
|
124
|
+
"Response": {
|
|
125
|
+
"$anchor": "response",
|
|
126
|
+
"title": "VTA Contexts List — response payload",
|
|
127
|
+
"description": "Success response to vta/contexts/list. Type https://trusttasks.org/spec/vta/contexts/list/1.0#response.",
|
|
128
|
+
"type": "object",
|
|
129
|
+
"additionalProperties": false,
|
|
130
|
+
"required": [
|
|
131
|
+
"contexts"
|
|
132
|
+
],
|
|
133
|
+
"properties": {
|
|
134
|
+
"contexts": {
|
|
135
|
+
"type": "array",
|
|
136
|
+
"description": "Contexts the caller may access, in maintainer-defined order. An empty array means the caller can reach none — which is a successful answer, and is not distinguishable from a VTA that holds none. A caller needing that distinction wants vta/contexts/get on a known id, which answers notFound.",
|
|
137
|
+
"items": {
|
|
138
|
+
"$ref": "#/$defs/ContextRecord"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"ext": {
|
|
142
|
+
"$ref": "#/$defs/Ext"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"Ext": {
|
|
147
|
+
"title": "Ext",
|
|
148
|
+
"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.",
|
|
149
|
+
"type": "object",
|
|
150
|
+
"minProperties": 1,
|
|
151
|
+
"additionalProperties": true,
|
|
152
|
+
"propertyNames": {
|
|
153
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"ContextRecord": {
|
|
157
|
+
"title": "ContextRecord",
|
|
158
|
+
"description": "A context as the VTA holds it.",
|
|
159
|
+
"type": "object",
|
|
160
|
+
"additionalProperties": false,
|
|
161
|
+
"required": [
|
|
162
|
+
"id",
|
|
163
|
+
"name",
|
|
164
|
+
"basePath",
|
|
165
|
+
"createdAt",
|
|
166
|
+
"updatedAt"
|
|
167
|
+
],
|
|
168
|
+
"properties": {
|
|
169
|
+
"id": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"minLength": 1,
|
|
172
|
+
"description": "Context id. For a nested context this is the full path (`parent/leaf`), not the leaf alone — an ACL scope naming this context must use this value verbatim."
|
|
173
|
+
},
|
|
174
|
+
"name": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"minLength": 1,
|
|
177
|
+
"description": "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name."
|
|
178
|
+
},
|
|
179
|
+
"did": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"description": "DID this context acts as, when one has been assigned. Absent means the context has no identity of its own yet — not that it has been denied one."
|
|
182
|
+
},
|
|
183
|
+
"description": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"description": "Free-form description."
|
|
186
|
+
},
|
|
187
|
+
"parent": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"description": "Id of the context this one nests under. Absent for a top-level context. Authority granted at a parent reaches its children, so this member is load-bearing for anyone reasoning about scope."
|
|
190
|
+
},
|
|
191
|
+
"basePath": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"description": "Resolved path from the root context, as the VTA derives it from the parent chain. Consumers MUST treat this as derived state: it is recomputed by the maintainer and is not independently settable."
|
|
194
|
+
},
|
|
195
|
+
"createdAt": {
|
|
196
|
+
"type": "string",
|
|
197
|
+
"format": "date-time",
|
|
198
|
+
"description": "RFC 3339."
|
|
199
|
+
},
|
|
200
|
+
"updatedAt": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"format": "date-time",
|
|
203
|
+
"description": "RFC 3339."
|
|
204
|
+
},
|
|
205
|
+
"ext": {
|
|
206
|
+
"$ref": "#/$defs/Ext"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
/**
|
|
213
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
214
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
215
|
+
* per-specification and cannot be derived from the document alone, and
|
|
216
|
+
* item 2 needs the schema this carries.
|
|
217
|
+
*/
|
|
218
|
+
export const SPEC = {
|
|
219
|
+
typeUri: TYPE_URI,
|
|
220
|
+
isBearer: false,
|
|
221
|
+
isProofRequired: false,
|
|
222
|
+
isRecipientRequired: true,
|
|
223
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
227
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
228
|
+
* parties (§7.3 item 5).
|
|
229
|
+
*/
|
|
230
|
+
export const RESPONSE_SPEC = {
|
|
231
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
232
|
+
isBearer: false,
|
|
233
|
+
isProofRequired: false,
|
|
234
|
+
isRecipientRequired: true,
|
|
235
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
236
|
+
};
|
|
237
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/contexts/list/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA+DH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,mDAA4D,CAAC;AAKrF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,4DAAqE,CAAC;AAKvG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,mDAAmD;IAC1D,OAAO,EAAE,6BAA6B;IACtC,aAAa,EAAE,uHAAuH;IACtI,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,YAAY,EAAE;QACZ,KAAK,EAAE;YACL,MAAM,E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AE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/contexts/preview-delete/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Request payload for vta/contexts/preview-delete: what deleting this context would destroy, computed without destroying it.
|
|
7
|
+
*/
|
|
8
|
+
export interface VTAContextsPreviewDeletePayload {
|
|
9
|
+
/**
|
|
10
|
+
* Context to preview the deletion of.
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
ext?: Ext;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 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.
|
|
17
|
+
*/
|
|
18
|
+
export interface Ext {
|
|
19
|
+
[k: string]: unknown | undefined;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Success response to vta/contexts/preview-delete. Every array is what WOULD be affected; nothing has been. Type https://trusttasks.org/spec/vta/contexts/preview-delete/1.0#response.
|
|
23
|
+
*/
|
|
24
|
+
export interface VTAContextsPreviewDeleteResponsePayload {
|
|
25
|
+
/**
|
|
26
|
+
* The context previewed.
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
/**
|
|
30
|
+
* Key ids that would be destroyed. A derived key can be re-derived from the seed; an internally-generated one cannot be recovered by any means, and this list does not distinguish them — a consumer rendering it for a human SHOULD resolve each key before presenting the choice.
|
|
31
|
+
*/
|
|
32
|
+
keys: string[];
|
|
33
|
+
/**
|
|
34
|
+
* did:webvh DIDs that would stop being served. Anything that recorded one as an issuer or subject is left pointing at nothing.
|
|
35
|
+
*/
|
|
36
|
+
webvhDids: string[];
|
|
37
|
+
/**
|
|
38
|
+
* Subjects whose ACL entry would be removed outright, because this context was its only scope.
|
|
39
|
+
*/
|
|
40
|
+
aclEntriesRemoved: string[];
|
|
41
|
+
/**
|
|
42
|
+
* Subjects whose ACL entry would be narrowed — they hold other scopes and keep them.
|
|
43
|
+
*/
|
|
44
|
+
aclEntriesUpdated: string[];
|
|
45
|
+
/**
|
|
46
|
+
* DID templates scoped to this context that would be removed.
|
|
47
|
+
*/
|
|
48
|
+
didTemplates?: string[];
|
|
49
|
+
ext?: Ext;
|
|
50
|
+
}
|
|
51
|
+
/** Trust Task type URI. */
|
|
52
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/contexts/preview-delete/1.0";
|
|
53
|
+
/** Stable alias for this specification's request payload shape. */
|
|
54
|
+
export type Payload = VTAContextsPreviewDeletePayload;
|
|
55
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
56
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/contexts/preview-delete/1.0#response";
|
|
57
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
58
|
+
export type Response = VTAContextsPreviewDeleteResponsePayload;
|
|
59
|
+
/**
|
|
60
|
+
* This specification's payload schema, as a value.
|
|
61
|
+
*
|
|
62
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
63
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
64
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
65
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
66
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
67
|
+
*/
|
|
68
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
69
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
70
|
+
readonly $id: "https://trusttasks.org/spec/vta/contexts/preview-delete/1.0";
|
|
71
|
+
readonly title: "VTA Contexts Preview-Delete — payload";
|
|
72
|
+
readonly description: "Request payload for vta/contexts/preview-delete: what deleting this context would destroy, computed without destroying it.";
|
|
73
|
+
readonly type: "object";
|
|
74
|
+
readonly additionalProperties: false;
|
|
75
|
+
readonly required: readonly ["id"];
|
|
76
|
+
readonly properties: {
|
|
77
|
+
readonly id: {
|
|
78
|
+
readonly type: "string";
|
|
79
|
+
readonly minLength: 1;
|
|
80
|
+
readonly description: "Context to preview the deletion of.";
|
|
81
|
+
};
|
|
82
|
+
readonly ext: {
|
|
83
|
+
readonly $ref: "#/$defs/Ext";
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
readonly $defs: {
|
|
87
|
+
readonly Response: {
|
|
88
|
+
readonly $anchor: "response";
|
|
89
|
+
readonly title: "VTA Contexts Preview-Delete — response payload";
|
|
90
|
+
readonly description: "Success response to vta/contexts/preview-delete. Every array is what WOULD be affected; nothing has been. Type https://trusttasks.org/spec/vta/contexts/preview-delete/1.0#response.";
|
|
91
|
+
readonly type: "object";
|
|
92
|
+
readonly additionalProperties: false;
|
|
93
|
+
readonly required: readonly ["id", "keys", "webvhDids", "aclEntriesRemoved", "aclEntriesUpdated"];
|
|
94
|
+
readonly properties: {
|
|
95
|
+
readonly id: {
|
|
96
|
+
readonly type: "string";
|
|
97
|
+
readonly description: "The context previewed.";
|
|
98
|
+
};
|
|
99
|
+
readonly keys: {
|
|
100
|
+
readonly type: "array";
|
|
101
|
+
readonly items: {
|
|
102
|
+
readonly type: "string";
|
|
103
|
+
};
|
|
104
|
+
readonly description: "Key ids that would be destroyed. A derived key can be re-derived from the seed; an internally-generated one cannot be recovered by any means, and this list does not distinguish them — a consumer rendering it for a human SHOULD resolve each key before presenting the choice.";
|
|
105
|
+
};
|
|
106
|
+
readonly webvhDids: {
|
|
107
|
+
readonly type: "array";
|
|
108
|
+
readonly items: {
|
|
109
|
+
readonly type: "string";
|
|
110
|
+
};
|
|
111
|
+
readonly description: "did:webvh DIDs that would stop being served. Anything that recorded one as an issuer or subject is left pointing at nothing.";
|
|
112
|
+
};
|
|
113
|
+
readonly aclEntriesRemoved: {
|
|
114
|
+
readonly type: "array";
|
|
115
|
+
readonly items: {
|
|
116
|
+
readonly type: "string";
|
|
117
|
+
};
|
|
118
|
+
readonly description: "Subjects whose ACL entry would be removed outright, because this context was its only scope.";
|
|
119
|
+
};
|
|
120
|
+
readonly aclEntriesUpdated: {
|
|
121
|
+
readonly type: "array";
|
|
122
|
+
readonly items: {
|
|
123
|
+
readonly type: "string";
|
|
124
|
+
};
|
|
125
|
+
readonly description: "Subjects whose ACL entry would be narrowed — they hold other scopes and keep them.";
|
|
126
|
+
};
|
|
127
|
+
readonly didTemplates: {
|
|
128
|
+
readonly type: "array";
|
|
129
|
+
readonly items: {
|
|
130
|
+
readonly type: "string";
|
|
131
|
+
};
|
|
132
|
+
readonly description: "DID templates scoped to this context that would be removed.";
|
|
133
|
+
};
|
|
134
|
+
readonly ext: {
|
|
135
|
+
readonly $ref: "#/$defs/Ext";
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
readonly Ext: {
|
|
140
|
+
readonly title: "Ext";
|
|
141
|
+
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.";
|
|
142
|
+
readonly type: "object";
|
|
143
|
+
readonly minProperties: 1;
|
|
144
|
+
readonly additionalProperties: true;
|
|
145
|
+
readonly propertyNames: {
|
|
146
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
152
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
153
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
154
|
+
readonly $ref: "#/$defs/Response";
|
|
155
|
+
readonly $defs: {
|
|
156
|
+
readonly Response: {
|
|
157
|
+
readonly $anchor: "response";
|
|
158
|
+
readonly title: "VTA Contexts Preview-Delete — response payload";
|
|
159
|
+
readonly description: "Success response to vta/contexts/preview-delete. Every array is what WOULD be affected; nothing has been. Type https://trusttasks.org/spec/vta/contexts/preview-delete/1.0#response.";
|
|
160
|
+
readonly type: "object";
|
|
161
|
+
readonly additionalProperties: false;
|
|
162
|
+
readonly required: readonly ["id", "keys", "webvhDids", "aclEntriesRemoved", "aclEntriesUpdated"];
|
|
163
|
+
readonly properties: {
|
|
164
|
+
readonly id: {
|
|
165
|
+
readonly type: "string";
|
|
166
|
+
readonly description: "The context previewed.";
|
|
167
|
+
};
|
|
168
|
+
readonly keys: {
|
|
169
|
+
readonly type: "array";
|
|
170
|
+
readonly items: {
|
|
171
|
+
readonly type: "string";
|
|
172
|
+
};
|
|
173
|
+
readonly description: "Key ids that would be destroyed. A derived key can be re-derived from the seed; an internally-generated one cannot be recovered by any means, and this list does not distinguish them — a consumer rendering it for a human SHOULD resolve each key before presenting the choice.";
|
|
174
|
+
};
|
|
175
|
+
readonly webvhDids: {
|
|
176
|
+
readonly type: "array";
|
|
177
|
+
readonly items: {
|
|
178
|
+
readonly type: "string";
|
|
179
|
+
};
|
|
180
|
+
readonly description: "did:webvh DIDs that would stop being served. Anything that recorded one as an issuer or subject is left pointing at nothing.";
|
|
181
|
+
};
|
|
182
|
+
readonly aclEntriesRemoved: {
|
|
183
|
+
readonly type: "array";
|
|
184
|
+
readonly items: {
|
|
185
|
+
readonly type: "string";
|
|
186
|
+
};
|
|
187
|
+
readonly description: "Subjects whose ACL entry would be removed outright, because this context was its only scope.";
|
|
188
|
+
};
|
|
189
|
+
readonly aclEntriesUpdated: {
|
|
190
|
+
readonly type: "array";
|
|
191
|
+
readonly items: {
|
|
192
|
+
readonly type: "string";
|
|
193
|
+
};
|
|
194
|
+
readonly description: "Subjects whose ACL entry would be narrowed — they hold other scopes and keep them.";
|
|
195
|
+
};
|
|
196
|
+
readonly didTemplates: {
|
|
197
|
+
readonly type: "array";
|
|
198
|
+
readonly items: {
|
|
199
|
+
readonly type: "string";
|
|
200
|
+
};
|
|
201
|
+
readonly description: "DID templates scoped to this context that would be removed.";
|
|
202
|
+
};
|
|
203
|
+
readonly ext: {
|
|
204
|
+
readonly $ref: "#/$defs/Ext";
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
readonly Ext: {
|
|
209
|
+
readonly title: "Ext";
|
|
210
|
+
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.";
|
|
211
|
+
readonly type: "object";
|
|
212
|
+
readonly minProperties: 1;
|
|
213
|
+
readonly additionalProperties: true;
|
|
214
|
+
readonly propertyNames: {
|
|
215
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
222
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
223
|
+
* per-specification and cannot be derived from the document alone, and
|
|
224
|
+
* item 2 needs the schema this carries.
|
|
225
|
+
*/
|
|
226
|
+
export declare const SPEC: {
|
|
227
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/contexts/preview-delete/1.0";
|
|
228
|
+
readonly isBearer: false;
|
|
229
|
+
readonly isProofRequired: false;
|
|
230
|
+
readonly isRecipientRequired: true;
|
|
231
|
+
readonly payloadSchema: {
|
|
232
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
233
|
+
readonly $id: "https://trusttasks.org/spec/vta/contexts/preview-delete/1.0";
|
|
234
|
+
readonly title: "VTA Contexts Preview-Delete — payload";
|
|
235
|
+
readonly description: "Request payload for vta/contexts/preview-delete: what deleting this context would destroy, computed without destroying it.";
|
|
236
|
+
readonly type: "object";
|
|
237
|
+
readonly additionalProperties: false;
|
|
238
|
+
readonly required: readonly ["id"];
|
|
239
|
+
readonly properties: {
|
|
240
|
+
readonly id: {
|
|
241
|
+
readonly type: "string";
|
|
242
|
+
readonly minLength: 1;
|
|
243
|
+
readonly description: "Context to preview the deletion of.";
|
|
244
|
+
};
|
|
245
|
+
readonly ext: {
|
|
246
|
+
readonly $ref: "#/$defs/Ext";
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
readonly $defs: {
|
|
250
|
+
readonly Response: {
|
|
251
|
+
readonly $anchor: "response";
|
|
252
|
+
readonly title: "VTA Contexts Preview-Delete — response payload";
|
|
253
|
+
readonly description: "Success response to vta/contexts/preview-delete. Every array is what WOULD be affected; nothing has been. Type https://trusttasks.org/spec/vta/contexts/preview-delete/1.0#response.";
|
|
254
|
+
readonly type: "object";
|
|
255
|
+
readonly additionalProperties: false;
|
|
256
|
+
readonly required: readonly ["id", "keys", "webvhDids", "aclEntriesRemoved", "aclEntriesUpdated"];
|
|
257
|
+
readonly properties: {
|
|
258
|
+
readonly id: {
|
|
259
|
+
readonly type: "string";
|
|
260
|
+
readonly description: "The context previewed.";
|
|
261
|
+
};
|
|
262
|
+
readonly keys: {
|
|
263
|
+
readonly type: "array";
|
|
264
|
+
readonly items: {
|
|
265
|
+
readonly type: "string";
|
|
266
|
+
};
|
|
267
|
+
readonly description: "Key ids that would be destroyed. A derived key can be re-derived from the seed; an internally-generated one cannot be recovered by any means, and this list does not distinguish them — a consumer rendering it for a human SHOULD resolve each key before presenting the choice.";
|
|
268
|
+
};
|
|
269
|
+
readonly webvhDids: {
|
|
270
|
+
readonly type: "array";
|
|
271
|
+
readonly items: {
|
|
272
|
+
readonly type: "string";
|
|
273
|
+
};
|
|
274
|
+
readonly description: "did:webvh DIDs that would stop being served. Anything that recorded one as an issuer or subject is left pointing at nothing.";
|
|
275
|
+
};
|
|
276
|
+
readonly aclEntriesRemoved: {
|
|
277
|
+
readonly type: "array";
|
|
278
|
+
readonly items: {
|
|
279
|
+
readonly type: "string";
|
|
280
|
+
};
|
|
281
|
+
readonly description: "Subjects whose ACL entry would be removed outright, because this context was its only scope.";
|
|
282
|
+
};
|
|
283
|
+
readonly aclEntriesUpdated: {
|
|
284
|
+
readonly type: "array";
|
|
285
|
+
readonly items: {
|
|
286
|
+
readonly type: "string";
|
|
287
|
+
};
|
|
288
|
+
readonly description: "Subjects whose ACL entry would be narrowed — they hold other scopes and keep them.";
|
|
289
|
+
};
|
|
290
|
+
readonly didTemplates: {
|
|
291
|
+
readonly type: "array";
|
|
292
|
+
readonly items: {
|
|
293
|
+
readonly type: "string";
|
|
294
|
+
};
|
|
295
|
+
readonly description: "DID templates scoped to this context that would be removed.";
|
|
296
|
+
};
|
|
297
|
+
readonly ext: {
|
|
298
|
+
readonly $ref: "#/$defs/Ext";
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
readonly Ext: {
|
|
303
|
+
readonly title: "Ext";
|
|
304
|
+
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.";
|
|
305
|
+
readonly type: "object";
|
|
306
|
+
readonly minProperties: 1;
|
|
307
|
+
readonly additionalProperties: true;
|
|
308
|
+
readonly propertyNames: {
|
|
309
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
/**
|
|
316
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
317
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
318
|
+
* parties (§7.3 item 5).
|
|
319
|
+
*/
|
|
320
|
+
export declare const RESPONSE_SPEC: {
|
|
321
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/contexts/preview-delete/1.0#response";
|
|
322
|
+
readonly isBearer: false;
|
|
323
|
+
readonly isProofRequired: false;
|
|
324
|
+
readonly isRecipientRequired: true;
|
|
325
|
+
readonly payloadSchema: {
|
|
326
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
327
|
+
readonly $ref: "#/$defs/Response";
|
|
328
|
+
readonly $defs: {
|
|
329
|
+
readonly Response: {
|
|
330
|
+
readonly $anchor: "response";
|
|
331
|
+
readonly title: "VTA Contexts Preview-Delete — response payload";
|
|
332
|
+
readonly description: "Success response to vta/contexts/preview-delete. Every array is what WOULD be affected; nothing has been. Type https://trusttasks.org/spec/vta/contexts/preview-delete/1.0#response.";
|
|
333
|
+
readonly type: "object";
|
|
334
|
+
readonly additionalProperties: false;
|
|
335
|
+
readonly required: readonly ["id", "keys", "webvhDids", "aclEntriesRemoved", "aclEntriesUpdated"];
|
|
336
|
+
readonly properties: {
|
|
337
|
+
readonly id: {
|
|
338
|
+
readonly type: "string";
|
|
339
|
+
readonly description: "The context previewed.";
|
|
340
|
+
};
|
|
341
|
+
readonly keys: {
|
|
342
|
+
readonly type: "array";
|
|
343
|
+
readonly items: {
|
|
344
|
+
readonly type: "string";
|
|
345
|
+
};
|
|
346
|
+
readonly description: "Key ids that would be destroyed. A derived key can be re-derived from the seed; an internally-generated one cannot be recovered by any means, and this list does not distinguish them — a consumer rendering it for a human SHOULD resolve each key before presenting the choice.";
|
|
347
|
+
};
|
|
348
|
+
readonly webvhDids: {
|
|
349
|
+
readonly type: "array";
|
|
350
|
+
readonly items: {
|
|
351
|
+
readonly type: "string";
|
|
352
|
+
};
|
|
353
|
+
readonly description: "did:webvh DIDs that would stop being served. Anything that recorded one as an issuer or subject is left pointing at nothing.";
|
|
354
|
+
};
|
|
355
|
+
readonly aclEntriesRemoved: {
|
|
356
|
+
readonly type: "array";
|
|
357
|
+
readonly items: {
|
|
358
|
+
readonly type: "string";
|
|
359
|
+
};
|
|
360
|
+
readonly description: "Subjects whose ACL entry would be removed outright, because this context was its only scope.";
|
|
361
|
+
};
|
|
362
|
+
readonly aclEntriesUpdated: {
|
|
363
|
+
readonly type: "array";
|
|
364
|
+
readonly items: {
|
|
365
|
+
readonly type: "string";
|
|
366
|
+
};
|
|
367
|
+
readonly description: "Subjects whose ACL entry would be narrowed — they hold other scopes and keep them.";
|
|
368
|
+
};
|
|
369
|
+
readonly didTemplates: {
|
|
370
|
+
readonly type: "array";
|
|
371
|
+
readonly items: {
|
|
372
|
+
readonly type: "string";
|
|
373
|
+
};
|
|
374
|
+
readonly description: "DID templates scoped to this context that would be removed.";
|
|
375
|
+
};
|
|
376
|
+
readonly ext: {
|
|
377
|
+
readonly $ref: "#/$defs/Ext";
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
readonly Ext: {
|
|
382
|
+
readonly title: "Ext";
|
|
383
|
+
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.";
|
|
384
|
+
readonly type: "object";
|
|
385
|
+
readonly minProperties: 1;
|
|
386
|
+
readonly additionalProperties: true;
|
|
387
|
+
readonly propertyNames: {
|
|
388
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/contexts/preview-delete/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,uCAAuC;IACtD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IA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