@openvtc/trust-tasks 0.19.3 → 0.19.5
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 +209 -0
- package/dist/_shared/components.d.ts +298 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/vetting/_shared/0.1/identity-vetting.d.ts +11 -0
- package/dist/vetting/_shared/0.1/identity-vetting.d.ts.map +1 -0
- package/dist/vetting/_shared/0.1/identity-vetting.js +6 -0
- package/dist/vetting/_shared/0.1/identity-vetting.js.map +1 -0
- package/dist/vetting/_shared/0.1/vetting-card.d.ts +16 -0
- package/dist/vetting/_shared/0.1/vetting-card.d.ts.map +1 -0
- package/dist/vetting/_shared/0.1/vetting-card.js +6 -0
- package/dist/vetting/_shared/0.1/vetting-card.js.map +1 -0
- package/dist/vetting/_shared/0.1/vetting.d.ts +16 -0
- package/dist/vetting/_shared/0.1/vetting.d.ts.map +1 -0
- package/dist/vetting/_shared/0.1/vetting.js +6 -0
- package/dist/vetting/_shared/0.1/vetting.js.map +1 -0
- package/dist/vetting/decline/0.1/payload.d.ts +138 -0
- package/dist/vetting/decline/0.1/payload.d.ts.map +1 -0
- package/dist/vetting/decline/0.1/payload.js +81 -0
- package/dist/vetting/decline/0.1/payload.js.map +1 -0
- package/dist/vetting/request/0.1/payload.d.ts +1188 -0
- package/dist/vetting/request/0.1/payload.d.ts.map +1 -0
- package/dist/vetting/request/0.1/payload.js +596 -0
- package/dist/vetting/request/0.1/payload.js.map +1 -0
- package/dist/vetting/session/0.1/payload.d.ts +978 -0
- package/dist/vetting/session/0.1/payload.d.ts.map +1 -0
- package/dist/vetting/session/0.1/payload.js +570 -0
- package/dist/vetting/session/0.1/payload.js.map +1 -0
- package/dist/vta/webvh/dids/realign-keys/1.0/payload.d.ts +484 -0
- package/dist/vta/webvh/dids/realign-keys/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/realign-keys/1.0/payload.js +259 -0
- package/dist/vta/webvh/dids/realign-keys/1.0/payload.js.map +1 -0
- package/dist/vtc/_shared/0.1/vetter-profile.d.ts +16 -0
- package/dist/vtc/_shared/0.1/vetter-profile.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/vetter-profile.js +6 -0
- package/dist/vtc/_shared/0.1/vetter-profile.js.map +1 -0
- package/dist/vtc/join-requests/manifest/0.2/payload.d.ts +1294 -0
- package/dist/vtc/join-requests/manifest/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/join-requests/manifest/0.2/payload.js +667 -0
- package/dist/vtc/join-requests/manifest/0.2/payload.js.map +1 -0
- package/dist/vtc/vetting/revoke-statement/0.1/payload.d.ts +299 -0
- package/dist/vtc/vetting/revoke-statement/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/revoke-statement/0.1/payload.js +172 -0
- package/dist/vtc/vetting/revoke-statement/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/vetters/grant/0.1/payload.d.ts +337 -0
- package/dist/vtc/vetting/vetters/grant/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/vetters/grant/0.1/payload.js +183 -0
- package/dist/vtc/vetting/vetters/grant/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/vetters/list/0.1/payload.d.ts +1257 -0
- package/dist/vtc/vetting/vetters/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/vetters/list/0.1/payload.js +597 -0
- package/dist/vtc/vetting/vetters/list/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/vetters/profile/0.1/payload.d.ts +970 -0
- package/dist/vtc/vetting/vetters/profile/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/vetters/profile/0.1/payload.js +463 -0
- package/dist/vtc/vetting/vetters/profile/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/vetters/resend/0.1/payload.d.ts +240 -0
- package/dist/vtc/vetting/vetters/resend/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/vetters/resend/0.1/payload.js +137 -0
- package/dist/vtc/vetting/vetters/resend/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +318 -0
- package/src/index.ts +14 -0
- package/src/vetting/_shared/0.1/identity-vetting.ts +11 -0
- package/src/vetting/_shared/0.1/vetting-card.ts +17 -0
- package/src/vetting/_shared/0.1/vetting.ts +17 -0
- package/src/vetting/decline/0.1/payload.ts +111 -0
- package/src/vetting/request/0.1/payload.ts +799 -0
- package/src/vetting/session/0.1/payload.ts +629 -0
- package/src/vta/webvh/dids/realign-keys/1.0/payload.ts +332 -0
- package/src/vtc/_shared/0.1/vetter-profile.ts +17 -0
- package/src/vtc/join-requests/manifest/0.2/payload.ts +815 -0
- package/src/vtc/vetting/revoke-statement/0.1/payload.ts +218 -0
- package/src/vtc/vetting/vetters/grant/0.1/payload.ts +237 -0
- package/src/vtc/vetting/vetters/list/0.1/payload.ts +816 -0
- package/src/vtc/vetting/vetters/profile/0.1/payload.ts +647 -0
- package/src/vtc/vetting/vetters/resend/0.1/payload.ts +174 -0
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/webvh/dids/realign-keys/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext } from "../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* Rename a did:webvh's key records so each is addressed by the verification-method identifier its published document declares. The payload names no identifier but the DID: every target is derived by the recipient from that DID's own document.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTAWebVHDIDsRealignKeysPayload {
|
|
10
|
+
/**
|
|
11
|
+
* The DID whose key records are to be realigned. The only identifier the producer chooses.
|
|
12
|
+
*/
|
|
13
|
+
did: string;
|
|
14
|
+
/**
|
|
15
|
+
* Compute and report the realignment without performing it. Absent reads as false.
|
|
16
|
+
*/
|
|
17
|
+
dryRun?: boolean;
|
|
18
|
+
ext?: Ext;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Success response to vta/webvh/dids/realign-keys. Type https://trusttasks.org/spec/vta/webvh/dids/realign-keys/1.0#response.
|
|
22
|
+
*/
|
|
23
|
+
export interface VTAWebVHDIDsRealignKeysResponsePayload {
|
|
24
|
+
did: string;
|
|
25
|
+
/**
|
|
26
|
+
* The renames performed, or in a dry run the ones that would be.
|
|
27
|
+
*/
|
|
28
|
+
moved: ARecordRenamedOntoTheIdentifierItsKeyIsPublishedUnder[];
|
|
29
|
+
/**
|
|
30
|
+
* Verification-method identifiers whose record was already correct.
|
|
31
|
+
*/
|
|
32
|
+
alreadyAligned: string[];
|
|
33
|
+
/**
|
|
34
|
+
* Verification-method identifiers the recipient holds no key for. Not a failure — a DID may publish a method whose private half lives elsewhere — but the difference between this being empty and not is the difference between the DID being consistent and merely unchanged.
|
|
35
|
+
*/
|
|
36
|
+
unmatched: string[];
|
|
37
|
+
/**
|
|
38
|
+
* Where the recipient will allocate the next identifier it mints for this DID. Past everything the document already publishes, so a later rotation cannot reissue a published identifier under new key material.
|
|
39
|
+
*/
|
|
40
|
+
nextFragmentId: number;
|
|
41
|
+
/**
|
|
42
|
+
* True when nothing was written. Echoed so a report is self-describing: a plan and a receipt are otherwise the same shape.
|
|
43
|
+
*/
|
|
44
|
+
dryRun: boolean;
|
|
45
|
+
ext?: Ext;
|
|
46
|
+
}
|
|
47
|
+
export interface ARecordRenamedOntoTheIdentifierItsKeyIsPublishedUnder {
|
|
48
|
+
/**
|
|
49
|
+
* The identifier the record had.
|
|
50
|
+
*/
|
|
51
|
+
from: string;
|
|
52
|
+
/**
|
|
53
|
+
* The verification-method identifier it takes.
|
|
54
|
+
*/
|
|
55
|
+
to: string;
|
|
56
|
+
/**
|
|
57
|
+
* Multibase public half of the key, which is what identified the record. Reported so the producer can check the rename against the published document rather than trusting this report.
|
|
58
|
+
*/
|
|
59
|
+
publicKey: string;
|
|
60
|
+
}
|
|
61
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
62
|
+
export type { Ext };
|
|
63
|
+
/** Trust Task type URI. */
|
|
64
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/webvh/dids/realign-keys/1.0";
|
|
65
|
+
/** Stable alias for this specification's request payload shape. */
|
|
66
|
+
export type Payload = VTAWebVHDIDsRealignKeysPayload;
|
|
67
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
68
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/webvh/dids/realign-keys/1.0#response";
|
|
69
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
70
|
+
export type Response = VTAWebVHDIDsRealignKeysResponsePayload;
|
|
71
|
+
/**
|
|
72
|
+
* This specification's payload schema, as a value.
|
|
73
|
+
*
|
|
74
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
75
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
76
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
77
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
78
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
79
|
+
*/
|
|
80
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
81
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
82
|
+
readonly $id: "https://trusttasks.org/spec/vta/webvh/dids/realign-keys/1.0";
|
|
83
|
+
readonly title: "VTA WebVH DIDs Realign-Keys — payload";
|
|
84
|
+
readonly description: "Rename a did:webvh's key records so each is addressed by the verification-method identifier its published document declares. The payload names no identifier but the DID: every target is derived by the recipient from that DID's own document.";
|
|
85
|
+
readonly type: "object";
|
|
86
|
+
readonly additionalProperties: false;
|
|
87
|
+
readonly required: readonly ["did"];
|
|
88
|
+
readonly properties: {
|
|
89
|
+
readonly did: {
|
|
90
|
+
readonly type: "string";
|
|
91
|
+
readonly minLength: 1;
|
|
92
|
+
readonly description: "The DID whose key records are to be realigned. The only identifier the producer chooses.";
|
|
93
|
+
};
|
|
94
|
+
readonly dryRun: {
|
|
95
|
+
readonly type: "boolean";
|
|
96
|
+
readonly description: "Compute and report the realignment without performing it. Absent reads as false.";
|
|
97
|
+
};
|
|
98
|
+
readonly ext: {
|
|
99
|
+
readonly $ref: "#/$defs/Ext";
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
readonly $defs: {
|
|
103
|
+
readonly Response: {
|
|
104
|
+
readonly $anchor: "response";
|
|
105
|
+
readonly title: "VTA WebVH DIDs Realign-Keys — response payload";
|
|
106
|
+
readonly description: "Success response to vta/webvh/dids/realign-keys. Type https://trusttasks.org/spec/vta/webvh/dids/realign-keys/1.0#response.";
|
|
107
|
+
readonly type: "object";
|
|
108
|
+
readonly additionalProperties: false;
|
|
109
|
+
readonly required: readonly ["did", "moved", "alreadyAligned", "unmatched", "nextFragmentId", "dryRun"];
|
|
110
|
+
readonly properties: {
|
|
111
|
+
readonly did: {
|
|
112
|
+
readonly type: "string";
|
|
113
|
+
};
|
|
114
|
+
readonly moved: {
|
|
115
|
+
readonly type: "array";
|
|
116
|
+
readonly description: "The renames performed, or in a dry run the ones that would be.";
|
|
117
|
+
readonly items: {
|
|
118
|
+
readonly $ref: "#/$defs/RealignedKey";
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
readonly alreadyAligned: {
|
|
122
|
+
readonly type: "array";
|
|
123
|
+
readonly description: "Verification-method identifiers whose record was already correct.";
|
|
124
|
+
readonly items: {
|
|
125
|
+
readonly type: "string";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
readonly unmatched: {
|
|
129
|
+
readonly type: "array";
|
|
130
|
+
readonly description: "Verification-method identifiers the recipient holds no key for. Not a failure — a DID may publish a method whose private half lives elsewhere — but the difference between this being empty and not is the difference between the DID being consistent and merely unchanged.";
|
|
131
|
+
readonly items: {
|
|
132
|
+
readonly type: "string";
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
readonly nextFragmentId: {
|
|
136
|
+
readonly type: "integer";
|
|
137
|
+
readonly minimum: 0;
|
|
138
|
+
readonly description: "Where the recipient will allocate the next identifier it mints for this DID. Past everything the document already publishes, so a later rotation cannot reissue a published identifier under new key material.";
|
|
139
|
+
};
|
|
140
|
+
readonly dryRun: {
|
|
141
|
+
readonly type: "boolean";
|
|
142
|
+
readonly description: "True when nothing was written. Echoed so a report is self-describing: a plan and a receipt are otherwise the same shape.";
|
|
143
|
+
};
|
|
144
|
+
readonly ext: {
|
|
145
|
+
readonly $ref: "#/$defs/Ext";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
readonly RealignedKey: {
|
|
150
|
+
readonly title: "A record renamed onto the identifier its key is published under";
|
|
151
|
+
readonly type: "object";
|
|
152
|
+
readonly additionalProperties: false;
|
|
153
|
+
readonly required: readonly ["from", "to", "publicKey"];
|
|
154
|
+
readonly properties: {
|
|
155
|
+
readonly from: {
|
|
156
|
+
readonly type: "string";
|
|
157
|
+
readonly minLength: 1;
|
|
158
|
+
readonly description: "The identifier the record had.";
|
|
159
|
+
};
|
|
160
|
+
readonly to: {
|
|
161
|
+
readonly type: "string";
|
|
162
|
+
readonly minLength: 1;
|
|
163
|
+
readonly description: "The verification-method identifier it takes.";
|
|
164
|
+
};
|
|
165
|
+
readonly publicKey: {
|
|
166
|
+
readonly type: "string";
|
|
167
|
+
readonly minLength: 1;
|
|
168
|
+
readonly description: "Multibase public half of the key, which is what identified the record. Reported so the producer can check the rename against the published document rather than trusting this report.";
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
readonly Ext: {
|
|
173
|
+
readonly title: "Ext";
|
|
174
|
+
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.";
|
|
175
|
+
readonly type: "object";
|
|
176
|
+
readonly minProperties: 1;
|
|
177
|
+
readonly additionalProperties: true;
|
|
178
|
+
readonly propertyNames: {
|
|
179
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
185
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
186
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
187
|
+
readonly $ref: "#/$defs/Response";
|
|
188
|
+
readonly $defs: {
|
|
189
|
+
readonly Response: {
|
|
190
|
+
readonly $anchor: "response";
|
|
191
|
+
readonly title: "VTA WebVH DIDs Realign-Keys — response payload";
|
|
192
|
+
readonly description: "Success response to vta/webvh/dids/realign-keys. Type https://trusttasks.org/spec/vta/webvh/dids/realign-keys/1.0#response.";
|
|
193
|
+
readonly type: "object";
|
|
194
|
+
readonly additionalProperties: false;
|
|
195
|
+
readonly required: readonly ["did", "moved", "alreadyAligned", "unmatched", "nextFragmentId", "dryRun"];
|
|
196
|
+
readonly properties: {
|
|
197
|
+
readonly did: {
|
|
198
|
+
readonly type: "string";
|
|
199
|
+
};
|
|
200
|
+
readonly moved: {
|
|
201
|
+
readonly type: "array";
|
|
202
|
+
readonly description: "The renames performed, or in a dry run the ones that would be.";
|
|
203
|
+
readonly items: {
|
|
204
|
+
readonly $ref: "#/$defs/RealignedKey";
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
readonly alreadyAligned: {
|
|
208
|
+
readonly type: "array";
|
|
209
|
+
readonly description: "Verification-method identifiers whose record was already correct.";
|
|
210
|
+
readonly items: {
|
|
211
|
+
readonly type: "string";
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
readonly unmatched: {
|
|
215
|
+
readonly type: "array";
|
|
216
|
+
readonly description: "Verification-method identifiers the recipient holds no key for. Not a failure — a DID may publish a method whose private half lives elsewhere — but the difference between this being empty and not is the difference between the DID being consistent and merely unchanged.";
|
|
217
|
+
readonly items: {
|
|
218
|
+
readonly type: "string";
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
readonly nextFragmentId: {
|
|
222
|
+
readonly type: "integer";
|
|
223
|
+
readonly minimum: 0;
|
|
224
|
+
readonly description: "Where the recipient will allocate the next identifier it mints for this DID. Past everything the document already publishes, so a later rotation cannot reissue a published identifier under new key material.";
|
|
225
|
+
};
|
|
226
|
+
readonly dryRun: {
|
|
227
|
+
readonly type: "boolean";
|
|
228
|
+
readonly description: "True when nothing was written. Echoed so a report is self-describing: a plan and a receipt are otherwise the same shape.";
|
|
229
|
+
};
|
|
230
|
+
readonly ext: {
|
|
231
|
+
readonly $ref: "#/$defs/Ext";
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
readonly RealignedKey: {
|
|
236
|
+
readonly title: "A record renamed onto the identifier its key is published under";
|
|
237
|
+
readonly type: "object";
|
|
238
|
+
readonly additionalProperties: false;
|
|
239
|
+
readonly required: readonly ["from", "to", "publicKey"];
|
|
240
|
+
readonly properties: {
|
|
241
|
+
readonly from: {
|
|
242
|
+
readonly type: "string";
|
|
243
|
+
readonly minLength: 1;
|
|
244
|
+
readonly description: "The identifier the record had.";
|
|
245
|
+
};
|
|
246
|
+
readonly to: {
|
|
247
|
+
readonly type: "string";
|
|
248
|
+
readonly minLength: 1;
|
|
249
|
+
readonly description: "The verification-method identifier it takes.";
|
|
250
|
+
};
|
|
251
|
+
readonly publicKey: {
|
|
252
|
+
readonly type: "string";
|
|
253
|
+
readonly minLength: 1;
|
|
254
|
+
readonly description: "Multibase public half of the key, which is what identified the record. Reported so the producer can check the rename against the published document rather than trusting this report.";
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
readonly Ext: {
|
|
259
|
+
readonly title: "Ext";
|
|
260
|
+
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.";
|
|
261
|
+
readonly type: "object";
|
|
262
|
+
readonly minProperties: 1;
|
|
263
|
+
readonly additionalProperties: true;
|
|
264
|
+
readonly propertyNames: {
|
|
265
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
/**
|
|
271
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
272
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
273
|
+
* per-specification and cannot be derived from the document alone, and
|
|
274
|
+
* item 2 needs the schema this carries.
|
|
275
|
+
*/
|
|
276
|
+
export declare const SPEC: {
|
|
277
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/webvh/dids/realign-keys/1.0";
|
|
278
|
+
readonly isBearer: false;
|
|
279
|
+
readonly isProofRequired: true;
|
|
280
|
+
readonly isRecipientRequired: true;
|
|
281
|
+
readonly isIssuedAtRequired: true;
|
|
282
|
+
readonly payloadSchema: {
|
|
283
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
284
|
+
readonly $id: "https://trusttasks.org/spec/vta/webvh/dids/realign-keys/1.0";
|
|
285
|
+
readonly title: "VTA WebVH DIDs Realign-Keys — payload";
|
|
286
|
+
readonly description: "Rename a did:webvh's key records so each is addressed by the verification-method identifier its published document declares. The payload names no identifier but the DID: every target is derived by the recipient from that DID's own document.";
|
|
287
|
+
readonly type: "object";
|
|
288
|
+
readonly additionalProperties: false;
|
|
289
|
+
readonly required: readonly ["did"];
|
|
290
|
+
readonly properties: {
|
|
291
|
+
readonly did: {
|
|
292
|
+
readonly type: "string";
|
|
293
|
+
readonly minLength: 1;
|
|
294
|
+
readonly description: "The DID whose key records are to be realigned. The only identifier the producer chooses.";
|
|
295
|
+
};
|
|
296
|
+
readonly dryRun: {
|
|
297
|
+
readonly type: "boolean";
|
|
298
|
+
readonly description: "Compute and report the realignment without performing it. Absent reads as false.";
|
|
299
|
+
};
|
|
300
|
+
readonly ext: {
|
|
301
|
+
readonly $ref: "#/$defs/Ext";
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
readonly $defs: {
|
|
305
|
+
readonly Response: {
|
|
306
|
+
readonly $anchor: "response";
|
|
307
|
+
readonly title: "VTA WebVH DIDs Realign-Keys — response payload";
|
|
308
|
+
readonly description: "Success response to vta/webvh/dids/realign-keys. Type https://trusttasks.org/spec/vta/webvh/dids/realign-keys/1.0#response.";
|
|
309
|
+
readonly type: "object";
|
|
310
|
+
readonly additionalProperties: false;
|
|
311
|
+
readonly required: readonly ["did", "moved", "alreadyAligned", "unmatched", "nextFragmentId", "dryRun"];
|
|
312
|
+
readonly properties: {
|
|
313
|
+
readonly did: {
|
|
314
|
+
readonly type: "string";
|
|
315
|
+
};
|
|
316
|
+
readonly moved: {
|
|
317
|
+
readonly type: "array";
|
|
318
|
+
readonly description: "The renames performed, or in a dry run the ones that would be.";
|
|
319
|
+
readonly items: {
|
|
320
|
+
readonly $ref: "#/$defs/RealignedKey";
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
readonly alreadyAligned: {
|
|
324
|
+
readonly type: "array";
|
|
325
|
+
readonly description: "Verification-method identifiers whose record was already correct.";
|
|
326
|
+
readonly items: {
|
|
327
|
+
readonly type: "string";
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
readonly unmatched: {
|
|
331
|
+
readonly type: "array";
|
|
332
|
+
readonly description: "Verification-method identifiers the recipient holds no key for. Not a failure — a DID may publish a method whose private half lives elsewhere — but the difference between this being empty and not is the difference between the DID being consistent and merely unchanged.";
|
|
333
|
+
readonly items: {
|
|
334
|
+
readonly type: "string";
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
readonly nextFragmentId: {
|
|
338
|
+
readonly type: "integer";
|
|
339
|
+
readonly minimum: 0;
|
|
340
|
+
readonly description: "Where the recipient will allocate the next identifier it mints for this DID. Past everything the document already publishes, so a later rotation cannot reissue a published identifier under new key material.";
|
|
341
|
+
};
|
|
342
|
+
readonly dryRun: {
|
|
343
|
+
readonly type: "boolean";
|
|
344
|
+
readonly description: "True when nothing was written. Echoed so a report is self-describing: a plan and a receipt are otherwise the same shape.";
|
|
345
|
+
};
|
|
346
|
+
readonly ext: {
|
|
347
|
+
readonly $ref: "#/$defs/Ext";
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
readonly RealignedKey: {
|
|
352
|
+
readonly title: "A record renamed onto the identifier its key is published under";
|
|
353
|
+
readonly type: "object";
|
|
354
|
+
readonly additionalProperties: false;
|
|
355
|
+
readonly required: readonly ["from", "to", "publicKey"];
|
|
356
|
+
readonly properties: {
|
|
357
|
+
readonly from: {
|
|
358
|
+
readonly type: "string";
|
|
359
|
+
readonly minLength: 1;
|
|
360
|
+
readonly description: "The identifier the record had.";
|
|
361
|
+
};
|
|
362
|
+
readonly to: {
|
|
363
|
+
readonly type: "string";
|
|
364
|
+
readonly minLength: 1;
|
|
365
|
+
readonly description: "The verification-method identifier it takes.";
|
|
366
|
+
};
|
|
367
|
+
readonly publicKey: {
|
|
368
|
+
readonly type: "string";
|
|
369
|
+
readonly minLength: 1;
|
|
370
|
+
readonly description: "Multibase public half of the key, which is what identified the record. Reported so the producer can check the rename against the published document rather than trusting this report.";
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
readonly Ext: {
|
|
375
|
+
readonly title: "Ext";
|
|
376
|
+
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.";
|
|
377
|
+
readonly type: "object";
|
|
378
|
+
readonly minProperties: 1;
|
|
379
|
+
readonly additionalProperties: true;
|
|
380
|
+
readonly propertyNames: {
|
|
381
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
/**
|
|
388
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
389
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
390
|
+
* parties (§7.3 item 5).
|
|
391
|
+
*/
|
|
392
|
+
export declare const RESPONSE_SPEC: {
|
|
393
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/webvh/dids/realign-keys/1.0#response";
|
|
394
|
+
readonly isBearer: false;
|
|
395
|
+
readonly isProofRequired: true;
|
|
396
|
+
readonly isRecipientRequired: true;
|
|
397
|
+
readonly isIssuedAtRequired: true;
|
|
398
|
+
readonly payloadSchema: {
|
|
399
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
400
|
+
readonly $ref: "#/$defs/Response";
|
|
401
|
+
readonly $defs: {
|
|
402
|
+
readonly Response: {
|
|
403
|
+
readonly $anchor: "response";
|
|
404
|
+
readonly title: "VTA WebVH DIDs Realign-Keys — response payload";
|
|
405
|
+
readonly description: "Success response to vta/webvh/dids/realign-keys. Type https://trusttasks.org/spec/vta/webvh/dids/realign-keys/1.0#response.";
|
|
406
|
+
readonly type: "object";
|
|
407
|
+
readonly additionalProperties: false;
|
|
408
|
+
readonly required: readonly ["did", "moved", "alreadyAligned", "unmatched", "nextFragmentId", "dryRun"];
|
|
409
|
+
readonly properties: {
|
|
410
|
+
readonly did: {
|
|
411
|
+
readonly type: "string";
|
|
412
|
+
};
|
|
413
|
+
readonly moved: {
|
|
414
|
+
readonly type: "array";
|
|
415
|
+
readonly description: "The renames performed, or in a dry run the ones that would be.";
|
|
416
|
+
readonly items: {
|
|
417
|
+
readonly $ref: "#/$defs/RealignedKey";
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
readonly alreadyAligned: {
|
|
421
|
+
readonly type: "array";
|
|
422
|
+
readonly description: "Verification-method identifiers whose record was already correct.";
|
|
423
|
+
readonly items: {
|
|
424
|
+
readonly type: "string";
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
readonly unmatched: {
|
|
428
|
+
readonly type: "array";
|
|
429
|
+
readonly description: "Verification-method identifiers the recipient holds no key for. Not a failure — a DID may publish a method whose private half lives elsewhere — but the difference between this being empty and not is the difference between the DID being consistent and merely unchanged.";
|
|
430
|
+
readonly items: {
|
|
431
|
+
readonly type: "string";
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
readonly nextFragmentId: {
|
|
435
|
+
readonly type: "integer";
|
|
436
|
+
readonly minimum: 0;
|
|
437
|
+
readonly description: "Where the recipient will allocate the next identifier it mints for this DID. Past everything the document already publishes, so a later rotation cannot reissue a published identifier under new key material.";
|
|
438
|
+
};
|
|
439
|
+
readonly dryRun: {
|
|
440
|
+
readonly type: "boolean";
|
|
441
|
+
readonly description: "True when nothing was written. Echoed so a report is self-describing: a plan and a receipt are otherwise the same shape.";
|
|
442
|
+
};
|
|
443
|
+
readonly ext: {
|
|
444
|
+
readonly $ref: "#/$defs/Ext";
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
readonly RealignedKey: {
|
|
449
|
+
readonly title: "A record renamed onto the identifier its key is published under";
|
|
450
|
+
readonly type: "object";
|
|
451
|
+
readonly additionalProperties: false;
|
|
452
|
+
readonly required: readonly ["from", "to", "publicKey"];
|
|
453
|
+
readonly properties: {
|
|
454
|
+
readonly from: {
|
|
455
|
+
readonly type: "string";
|
|
456
|
+
readonly minLength: 1;
|
|
457
|
+
readonly description: "The identifier the record had.";
|
|
458
|
+
};
|
|
459
|
+
readonly to: {
|
|
460
|
+
readonly type: "string";
|
|
461
|
+
readonly minLength: 1;
|
|
462
|
+
readonly description: "The verification-method identifier it takes.";
|
|
463
|
+
};
|
|
464
|
+
readonly publicKey: {
|
|
465
|
+
readonly type: "string";
|
|
466
|
+
readonly minLength: 1;
|
|
467
|
+
readonly description: "Multibase public half of the key, which is what identified the record. Reported so the producer can check the rename against the published document rather than trusting this report.";
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
readonly Ext: {
|
|
472
|
+
readonly title: "Ext";
|
|
473
|
+
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.";
|
|
474
|
+
readonly type: "object";
|
|
475
|
+
readonly minProperties: 1;
|
|
476
|
+
readonly additionalProperties: true;
|
|
477
|
+
readonly propertyNames: {
|
|
478
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vta/webvh/dids/realign-keys/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,sCAAsC;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,KAAK,EAAE,qDAAqD,EAAE,CAAC;IAC/D;;OAEG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB;;OAEG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,qDAAqD;IACpE;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,6DAAsE,CAAC;AAE/F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,8BAA8B,CAAC;AAErD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,sEAA+E,CAAC;AAEjH,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,sCAAsC,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoHjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+F1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|