@openvtc/trust-tasks 0.28.16 → 0.28.18
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 +43 -0
- package/dist/_shared/components.d.ts +26 -1
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/vta/collection/_shared/0.1/collection.d.ts +2 -2
- package/dist/vta/collection/_shared/0.1/collection.d.ts.map +1 -1
- package/dist/vta/collection/list/0.1/payload.d.ts +4 -4
- package/dist/vta/collection/list/0.1/payload.js +2 -2
- package/dist/vta/collection/list/0.1/payload.js.map +1 -1
- package/dist/vta/collection/settings/set/0.1/payload.d.ts +469 -0
- package/dist/vta/collection/settings/set/0.1/payload.d.ts.map +1 -0
- package/dist/vta/collection/settings/set/0.1/payload.js +275 -0
- package/dist/vta/collection/settings/set/0.1/payload.js.map +1 -0
- package/dist/vta/collection/settings/show/0.1/payload.d.ts +437 -0
- package/dist/vta/collection/settings/show/0.1/payload.d.ts.map +1 -0
- package/dist/vta/collection/settings/show/0.1/payload.js +260 -0
- package/dist/vta/collection/settings/show/0.1/payload.js.map +1 -0
- package/dist/vtc/networks/preview/0.1/payload.d.ts +696 -0
- package/dist/vtc/networks/preview/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/networks/preview/0.1/payload.js +376 -0
- package/dist/vtc/networks/preview/0.1/payload.js.map +1 -0
- package/dist/vtn/registry/check/0.1/payload.d.ts +528 -0
- package/dist/vtn/registry/check/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/registry/check/0.1/payload.js +282 -0
- package/dist/vtn/registry/check/0.1/payload.js.map +1 -0
- package/dist/vtn/registry/status/0.1/payload.d.ts +736 -0
- package/dist/vtn/registry/status/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/registry/status/0.1/payload.js +421 -0
- package/dist/vtn/registry/status/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +26 -1
- package/src/index.ts +15 -0
- package/src/vta/collection/_shared/0.1/collection.ts +2 -2
- package/src/vta/collection/list/0.1/payload.ts +2 -2
- package/src/vta/collection/settings/set/0.1/payload.ts +319 -0
- package/src/vta/collection/settings/show/0.1/payload.ts +296 -0
- package/src/vtc/networks/preview/0.1/payload.ts +483 -0
- package/src/vtn/registry/check/0.1/payload.ts +365 -0
- package/src/vtn/registry/status/0.1/payload.ts +502 -0
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtn/registry/check/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Did_VtnV0_1 as Did, Ext } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* Ask the network to ask its trust registry about one party. The outer document members are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTNRegistryCheckPayload {
|
|
10
|
+
/**
|
|
11
|
+
* The party asked about.
|
|
12
|
+
*/
|
|
13
|
+
did: Did;
|
|
14
|
+
ext?: Ext;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* What the registry answered, and its own answer document.
|
|
18
|
+
*/
|
|
19
|
+
export interface VTNRegistryCheckResponsePayload {
|
|
20
|
+
/**
|
|
21
|
+
* The trust registry asked.
|
|
22
|
+
*/
|
|
23
|
+
registry: Did;
|
|
24
|
+
/**
|
|
25
|
+
* The network's DID: the authority of its records.
|
|
26
|
+
*/
|
|
27
|
+
authority: Did;
|
|
28
|
+
/**
|
|
29
|
+
* The TRQP resource the network's records are published under.
|
|
30
|
+
*/
|
|
31
|
+
resource: string;
|
|
32
|
+
actions: Actions;
|
|
33
|
+
/**
|
|
34
|
+
* The party asked about.
|
|
35
|
+
*/
|
|
36
|
+
did: Did;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the registry answered. `false` is indeterminate, never "not a member".
|
|
39
|
+
*/
|
|
40
|
+
reachable: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Whether the registry holds an authorised member record for the party. Absent when not reachable.
|
|
43
|
+
*/
|
|
44
|
+
member?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Whether the registry holds an authorised listed record for the party. Absent when not reachable.
|
|
47
|
+
*/
|
|
48
|
+
listed?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* The registry's answer document, verbatim and signed by the registry.
|
|
51
|
+
*/
|
|
52
|
+
answer?: {};
|
|
53
|
+
/**
|
|
54
|
+
* Why the registry could not be asked, when not reachable.
|
|
55
|
+
*/
|
|
56
|
+
reason?: string;
|
|
57
|
+
ext?: Ext;
|
|
58
|
+
}
|
|
59
|
+
export interface Actions {
|
|
60
|
+
/**
|
|
61
|
+
* The action acknowledged members are published under.
|
|
62
|
+
*/
|
|
63
|
+
member: string;
|
|
64
|
+
/**
|
|
65
|
+
* The action listed parties are published under, where the network publishes them.
|
|
66
|
+
*/
|
|
67
|
+
listed: string;
|
|
68
|
+
}
|
|
69
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
70
|
+
export type { Did, Ext };
|
|
71
|
+
/** Trust Task type URI. */
|
|
72
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vtn/registry/check/0.1";
|
|
73
|
+
/**
|
|
74
|
+
* The earlier version of this specification that this one declares it
|
|
75
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
76
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
77
|
+
* `extendsChain` / `readForSpec`.
|
|
78
|
+
*/
|
|
79
|
+
export declare const EXTENDS: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
82
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
83
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
84
|
+
* Versions").
|
|
85
|
+
*/
|
|
86
|
+
export declare const DEPRECATION: string | null;
|
|
87
|
+
/** Stable alias for this specification's request payload shape. */
|
|
88
|
+
export type Payload = VTNRegistryCheckPayload;
|
|
89
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
90
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtn/registry/check/0.1#response";
|
|
91
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
92
|
+
export type Response = VTNRegistryCheckResponsePayload;
|
|
93
|
+
/**
|
|
94
|
+
* This specification's payload schema, as a value.
|
|
95
|
+
*
|
|
96
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
97
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
98
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
99
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
100
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
101
|
+
*/
|
|
102
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
103
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
104
|
+
readonly $id: "https://trusttasks.org/spec/vtn/registry/check/0.1";
|
|
105
|
+
readonly title: "VTN Registry — Check — payload";
|
|
106
|
+
readonly description: "Ask the network to ask its trust registry about one party. The outer document members are owned by the framework — SPEC §6.3.";
|
|
107
|
+
readonly type: "object";
|
|
108
|
+
readonly additionalProperties: false;
|
|
109
|
+
readonly required: readonly ["did"];
|
|
110
|
+
readonly properties: {
|
|
111
|
+
readonly did: {
|
|
112
|
+
readonly $ref: "#/$defs/Did";
|
|
113
|
+
readonly description: "The party asked about.";
|
|
114
|
+
};
|
|
115
|
+
readonly ext: {
|
|
116
|
+
readonly $ref: "#/$defs/Ext";
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
readonly $defs: {
|
|
120
|
+
readonly Actions: {
|
|
121
|
+
readonly type: "object";
|
|
122
|
+
readonly additionalProperties: false;
|
|
123
|
+
readonly required: readonly ["member", "listed"];
|
|
124
|
+
readonly properties: {
|
|
125
|
+
readonly member: {
|
|
126
|
+
readonly type: "string";
|
|
127
|
+
readonly minLength: 1;
|
|
128
|
+
readonly description: "The action acknowledged members are published under.";
|
|
129
|
+
};
|
|
130
|
+
readonly listed: {
|
|
131
|
+
readonly type: "string";
|
|
132
|
+
readonly minLength: 1;
|
|
133
|
+
readonly description: "The action listed parties are published under, where the network publishes them.";
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
readonly Response: {
|
|
138
|
+
readonly $anchor: "response";
|
|
139
|
+
readonly title: "VTN Registry — Check — response payload";
|
|
140
|
+
readonly description: "What the registry answered, and its own answer document.";
|
|
141
|
+
readonly type: "object";
|
|
142
|
+
readonly additionalProperties: false;
|
|
143
|
+
readonly required: readonly ["registry", "authority", "resource", "actions", "did", "reachable"];
|
|
144
|
+
readonly properties: {
|
|
145
|
+
readonly registry: {
|
|
146
|
+
readonly $ref: "#/$defs/Did";
|
|
147
|
+
readonly description: "The trust registry asked.";
|
|
148
|
+
};
|
|
149
|
+
readonly authority: {
|
|
150
|
+
readonly $ref: "#/$defs/Did";
|
|
151
|
+
readonly description: "The network's DID: the authority of its records.";
|
|
152
|
+
};
|
|
153
|
+
readonly resource: {
|
|
154
|
+
readonly type: "string";
|
|
155
|
+
readonly minLength: 1;
|
|
156
|
+
readonly description: "The TRQP resource the network's records are published under.";
|
|
157
|
+
};
|
|
158
|
+
readonly actions: {
|
|
159
|
+
readonly $ref: "#/$defs/Actions";
|
|
160
|
+
};
|
|
161
|
+
readonly did: {
|
|
162
|
+
readonly $ref: "#/$defs/Did";
|
|
163
|
+
readonly description: "The party asked about.";
|
|
164
|
+
};
|
|
165
|
+
readonly reachable: {
|
|
166
|
+
readonly type: "boolean";
|
|
167
|
+
readonly description: "Whether the registry answered. `false` is indeterminate, never \"not a member\".";
|
|
168
|
+
};
|
|
169
|
+
readonly member: {
|
|
170
|
+
readonly type: "boolean";
|
|
171
|
+
readonly description: "Whether the registry holds an authorised member record for the party. Absent when not reachable.";
|
|
172
|
+
};
|
|
173
|
+
readonly listed: {
|
|
174
|
+
readonly type: "boolean";
|
|
175
|
+
readonly description: "Whether the registry holds an authorised listed record for the party. Absent when not reachable.";
|
|
176
|
+
};
|
|
177
|
+
readonly answer: {
|
|
178
|
+
readonly type: "object";
|
|
179
|
+
readonly description: "The registry's answer document, verbatim and signed by the registry.";
|
|
180
|
+
};
|
|
181
|
+
readonly reason: {
|
|
182
|
+
readonly type: "string";
|
|
183
|
+
readonly maxLength: 1024;
|
|
184
|
+
readonly description: "Why the registry could not be asked, when not reachable.";
|
|
185
|
+
};
|
|
186
|
+
readonly ext: {
|
|
187
|
+
readonly $ref: "#/$defs/Ext";
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
readonly Ext: {
|
|
192
|
+
readonly title: "Ext";
|
|
193
|
+
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.";
|
|
194
|
+
readonly type: "object";
|
|
195
|
+
readonly minProperties: 1;
|
|
196
|
+
readonly additionalProperties: true;
|
|
197
|
+
readonly propertyNames: {
|
|
198
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
readonly Did: {
|
|
202
|
+
readonly type: "string";
|
|
203
|
+
readonly pattern: "^did:[a-z0-9]+:.+$";
|
|
204
|
+
readonly maxLength: 2048;
|
|
205
|
+
readonly description: "A DID.";
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
210
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
211
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
212
|
+
readonly $ref: "#/$defs/Response";
|
|
213
|
+
readonly $defs: {
|
|
214
|
+
readonly Actions: {
|
|
215
|
+
readonly type: "object";
|
|
216
|
+
readonly additionalProperties: false;
|
|
217
|
+
readonly required: readonly ["member", "listed"];
|
|
218
|
+
readonly properties: {
|
|
219
|
+
readonly member: {
|
|
220
|
+
readonly type: "string";
|
|
221
|
+
readonly minLength: 1;
|
|
222
|
+
readonly description: "The action acknowledged members are published under.";
|
|
223
|
+
};
|
|
224
|
+
readonly listed: {
|
|
225
|
+
readonly type: "string";
|
|
226
|
+
readonly minLength: 1;
|
|
227
|
+
readonly description: "The action listed parties are published under, where the network publishes them.";
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
readonly Response: {
|
|
232
|
+
readonly $anchor: "response";
|
|
233
|
+
readonly title: "VTN Registry — Check — response payload";
|
|
234
|
+
readonly description: "What the registry answered, and its own answer document.";
|
|
235
|
+
readonly type: "object";
|
|
236
|
+
readonly additionalProperties: false;
|
|
237
|
+
readonly required: readonly ["registry", "authority", "resource", "actions", "did", "reachable"];
|
|
238
|
+
readonly properties: {
|
|
239
|
+
readonly registry: {
|
|
240
|
+
readonly $ref: "#/$defs/Did";
|
|
241
|
+
readonly description: "The trust registry asked.";
|
|
242
|
+
};
|
|
243
|
+
readonly authority: {
|
|
244
|
+
readonly $ref: "#/$defs/Did";
|
|
245
|
+
readonly description: "The network's DID: the authority of its records.";
|
|
246
|
+
};
|
|
247
|
+
readonly resource: {
|
|
248
|
+
readonly type: "string";
|
|
249
|
+
readonly minLength: 1;
|
|
250
|
+
readonly description: "The TRQP resource the network's records are published under.";
|
|
251
|
+
};
|
|
252
|
+
readonly actions: {
|
|
253
|
+
readonly $ref: "#/$defs/Actions";
|
|
254
|
+
};
|
|
255
|
+
readonly did: {
|
|
256
|
+
readonly $ref: "#/$defs/Did";
|
|
257
|
+
readonly description: "The party asked about.";
|
|
258
|
+
};
|
|
259
|
+
readonly reachable: {
|
|
260
|
+
readonly type: "boolean";
|
|
261
|
+
readonly description: "Whether the registry answered. `false` is indeterminate, never \"not a member\".";
|
|
262
|
+
};
|
|
263
|
+
readonly member: {
|
|
264
|
+
readonly type: "boolean";
|
|
265
|
+
readonly description: "Whether the registry holds an authorised member record for the party. Absent when not reachable.";
|
|
266
|
+
};
|
|
267
|
+
readonly listed: {
|
|
268
|
+
readonly type: "boolean";
|
|
269
|
+
readonly description: "Whether the registry holds an authorised listed record for the party. Absent when not reachable.";
|
|
270
|
+
};
|
|
271
|
+
readonly answer: {
|
|
272
|
+
readonly type: "object";
|
|
273
|
+
readonly description: "The registry's answer document, verbatim and signed by the registry.";
|
|
274
|
+
};
|
|
275
|
+
readonly reason: {
|
|
276
|
+
readonly type: "string";
|
|
277
|
+
readonly maxLength: 1024;
|
|
278
|
+
readonly description: "Why the registry could not be asked, when not reachable.";
|
|
279
|
+
};
|
|
280
|
+
readonly ext: {
|
|
281
|
+
readonly $ref: "#/$defs/Ext";
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
readonly Ext: {
|
|
286
|
+
readonly title: "Ext";
|
|
287
|
+
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.";
|
|
288
|
+
readonly type: "object";
|
|
289
|
+
readonly minProperties: 1;
|
|
290
|
+
readonly additionalProperties: true;
|
|
291
|
+
readonly propertyNames: {
|
|
292
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
readonly Did: {
|
|
296
|
+
readonly type: "string";
|
|
297
|
+
readonly pattern: "^did:[a-z0-9]+:.+$";
|
|
298
|
+
readonly maxLength: 2048;
|
|
299
|
+
readonly description: "A DID.";
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
305
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
306
|
+
* per-specification and cannot be derived from the document alone, and
|
|
307
|
+
* item 2 needs the schema this carries.
|
|
308
|
+
*/
|
|
309
|
+
export declare const SPEC: {
|
|
310
|
+
readonly typeUri: "https://trusttasks.org/spec/vtn/registry/check/0.1";
|
|
311
|
+
readonly isBearer: false;
|
|
312
|
+
readonly isProofRequired: false;
|
|
313
|
+
readonly isRecipientRequired: true;
|
|
314
|
+
readonly isIssuedAtRequired: false;
|
|
315
|
+
readonly payloadSchema: {
|
|
316
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
317
|
+
readonly $id: "https://trusttasks.org/spec/vtn/registry/check/0.1";
|
|
318
|
+
readonly title: "VTN Registry — Check — payload";
|
|
319
|
+
readonly description: "Ask the network to ask its trust registry about one party. The outer document members are owned by the framework — SPEC §6.3.";
|
|
320
|
+
readonly type: "object";
|
|
321
|
+
readonly additionalProperties: false;
|
|
322
|
+
readonly required: readonly ["did"];
|
|
323
|
+
readonly properties: {
|
|
324
|
+
readonly did: {
|
|
325
|
+
readonly $ref: "#/$defs/Did";
|
|
326
|
+
readonly description: "The party asked about.";
|
|
327
|
+
};
|
|
328
|
+
readonly ext: {
|
|
329
|
+
readonly $ref: "#/$defs/Ext";
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
readonly $defs: {
|
|
333
|
+
readonly Actions: {
|
|
334
|
+
readonly type: "object";
|
|
335
|
+
readonly additionalProperties: false;
|
|
336
|
+
readonly required: readonly ["member", "listed"];
|
|
337
|
+
readonly properties: {
|
|
338
|
+
readonly member: {
|
|
339
|
+
readonly type: "string";
|
|
340
|
+
readonly minLength: 1;
|
|
341
|
+
readonly description: "The action acknowledged members are published under.";
|
|
342
|
+
};
|
|
343
|
+
readonly listed: {
|
|
344
|
+
readonly type: "string";
|
|
345
|
+
readonly minLength: 1;
|
|
346
|
+
readonly description: "The action listed parties are published under, where the network publishes them.";
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
readonly Response: {
|
|
351
|
+
readonly $anchor: "response";
|
|
352
|
+
readonly title: "VTN Registry — Check — response payload";
|
|
353
|
+
readonly description: "What the registry answered, and its own answer document.";
|
|
354
|
+
readonly type: "object";
|
|
355
|
+
readonly additionalProperties: false;
|
|
356
|
+
readonly required: readonly ["registry", "authority", "resource", "actions", "did", "reachable"];
|
|
357
|
+
readonly properties: {
|
|
358
|
+
readonly registry: {
|
|
359
|
+
readonly $ref: "#/$defs/Did";
|
|
360
|
+
readonly description: "The trust registry asked.";
|
|
361
|
+
};
|
|
362
|
+
readonly authority: {
|
|
363
|
+
readonly $ref: "#/$defs/Did";
|
|
364
|
+
readonly description: "The network's DID: the authority of its records.";
|
|
365
|
+
};
|
|
366
|
+
readonly resource: {
|
|
367
|
+
readonly type: "string";
|
|
368
|
+
readonly minLength: 1;
|
|
369
|
+
readonly description: "The TRQP resource the network's records are published under.";
|
|
370
|
+
};
|
|
371
|
+
readonly actions: {
|
|
372
|
+
readonly $ref: "#/$defs/Actions";
|
|
373
|
+
};
|
|
374
|
+
readonly did: {
|
|
375
|
+
readonly $ref: "#/$defs/Did";
|
|
376
|
+
readonly description: "The party asked about.";
|
|
377
|
+
};
|
|
378
|
+
readonly reachable: {
|
|
379
|
+
readonly type: "boolean";
|
|
380
|
+
readonly description: "Whether the registry answered. `false` is indeterminate, never \"not a member\".";
|
|
381
|
+
};
|
|
382
|
+
readonly member: {
|
|
383
|
+
readonly type: "boolean";
|
|
384
|
+
readonly description: "Whether the registry holds an authorised member record for the party. Absent when not reachable.";
|
|
385
|
+
};
|
|
386
|
+
readonly listed: {
|
|
387
|
+
readonly type: "boolean";
|
|
388
|
+
readonly description: "Whether the registry holds an authorised listed record for the party. Absent when not reachable.";
|
|
389
|
+
};
|
|
390
|
+
readonly answer: {
|
|
391
|
+
readonly type: "object";
|
|
392
|
+
readonly description: "The registry's answer document, verbatim and signed by the registry.";
|
|
393
|
+
};
|
|
394
|
+
readonly reason: {
|
|
395
|
+
readonly type: "string";
|
|
396
|
+
readonly maxLength: 1024;
|
|
397
|
+
readonly description: "Why the registry could not be asked, when not reachable.";
|
|
398
|
+
};
|
|
399
|
+
readonly ext: {
|
|
400
|
+
readonly $ref: "#/$defs/Ext";
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
readonly Ext: {
|
|
405
|
+
readonly title: "Ext";
|
|
406
|
+
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.";
|
|
407
|
+
readonly type: "object";
|
|
408
|
+
readonly minProperties: 1;
|
|
409
|
+
readonly additionalProperties: true;
|
|
410
|
+
readonly propertyNames: {
|
|
411
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
readonly Did: {
|
|
415
|
+
readonly type: "string";
|
|
416
|
+
readonly pattern: "^did:[a-z0-9]+:.+$";
|
|
417
|
+
readonly maxLength: 2048;
|
|
418
|
+
readonly description: "A DID.";
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
/**
|
|
424
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
425
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
426
|
+
* parties (§7.3 item 5).
|
|
427
|
+
*/
|
|
428
|
+
export declare const RESPONSE_SPEC: {
|
|
429
|
+
readonly typeUri: "https://trusttasks.org/spec/vtn/registry/check/0.1#response";
|
|
430
|
+
readonly isBearer: false;
|
|
431
|
+
readonly isProofRequired: false;
|
|
432
|
+
readonly isRecipientRequired: true;
|
|
433
|
+
readonly isIssuedAtRequired: false;
|
|
434
|
+
readonly payloadSchema: {
|
|
435
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
436
|
+
readonly $ref: "#/$defs/Response";
|
|
437
|
+
readonly $defs: {
|
|
438
|
+
readonly Actions: {
|
|
439
|
+
readonly type: "object";
|
|
440
|
+
readonly additionalProperties: false;
|
|
441
|
+
readonly required: readonly ["member", "listed"];
|
|
442
|
+
readonly properties: {
|
|
443
|
+
readonly member: {
|
|
444
|
+
readonly type: "string";
|
|
445
|
+
readonly minLength: 1;
|
|
446
|
+
readonly description: "The action acknowledged members are published under.";
|
|
447
|
+
};
|
|
448
|
+
readonly listed: {
|
|
449
|
+
readonly type: "string";
|
|
450
|
+
readonly minLength: 1;
|
|
451
|
+
readonly description: "The action listed parties are published under, where the network publishes them.";
|
|
452
|
+
};
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
readonly Response: {
|
|
456
|
+
readonly $anchor: "response";
|
|
457
|
+
readonly title: "VTN Registry — Check — response payload";
|
|
458
|
+
readonly description: "What the registry answered, and its own answer document.";
|
|
459
|
+
readonly type: "object";
|
|
460
|
+
readonly additionalProperties: false;
|
|
461
|
+
readonly required: readonly ["registry", "authority", "resource", "actions", "did", "reachable"];
|
|
462
|
+
readonly properties: {
|
|
463
|
+
readonly registry: {
|
|
464
|
+
readonly $ref: "#/$defs/Did";
|
|
465
|
+
readonly description: "The trust registry asked.";
|
|
466
|
+
};
|
|
467
|
+
readonly authority: {
|
|
468
|
+
readonly $ref: "#/$defs/Did";
|
|
469
|
+
readonly description: "The network's DID: the authority of its records.";
|
|
470
|
+
};
|
|
471
|
+
readonly resource: {
|
|
472
|
+
readonly type: "string";
|
|
473
|
+
readonly minLength: 1;
|
|
474
|
+
readonly description: "The TRQP resource the network's records are published under.";
|
|
475
|
+
};
|
|
476
|
+
readonly actions: {
|
|
477
|
+
readonly $ref: "#/$defs/Actions";
|
|
478
|
+
};
|
|
479
|
+
readonly did: {
|
|
480
|
+
readonly $ref: "#/$defs/Did";
|
|
481
|
+
readonly description: "The party asked about.";
|
|
482
|
+
};
|
|
483
|
+
readonly reachable: {
|
|
484
|
+
readonly type: "boolean";
|
|
485
|
+
readonly description: "Whether the registry answered. `false` is indeterminate, never \"not a member\".";
|
|
486
|
+
};
|
|
487
|
+
readonly member: {
|
|
488
|
+
readonly type: "boolean";
|
|
489
|
+
readonly description: "Whether the registry holds an authorised member record for the party. Absent when not reachable.";
|
|
490
|
+
};
|
|
491
|
+
readonly listed: {
|
|
492
|
+
readonly type: "boolean";
|
|
493
|
+
readonly description: "Whether the registry holds an authorised listed record for the party. Absent when not reachable.";
|
|
494
|
+
};
|
|
495
|
+
readonly answer: {
|
|
496
|
+
readonly type: "object";
|
|
497
|
+
readonly description: "The registry's answer document, verbatim and signed by the registry.";
|
|
498
|
+
};
|
|
499
|
+
readonly reason: {
|
|
500
|
+
readonly type: "string";
|
|
501
|
+
readonly maxLength: 1024;
|
|
502
|
+
readonly description: "Why the registry could not be asked, when not reachable.";
|
|
503
|
+
};
|
|
504
|
+
readonly ext: {
|
|
505
|
+
readonly $ref: "#/$defs/Ext";
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
readonly Ext: {
|
|
510
|
+
readonly title: "Ext";
|
|
511
|
+
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.";
|
|
512
|
+
readonly type: "object";
|
|
513
|
+
readonly minProperties: 1;
|
|
514
|
+
readonly additionalProperties: true;
|
|
515
|
+
readonly propertyNames: {
|
|
516
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
readonly Did: {
|
|
520
|
+
readonly type: "string";
|
|
521
|
+
readonly pattern: "^did:[a-z0-9]+:.+$";
|
|
522
|
+
readonly maxLength: 2048;
|
|
523
|
+
readonly description: "A DID.";
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
};
|
|
528
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d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