@openvtc/trust-tasks 0.26.0 → 0.26.1
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 +28 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/vtc/oid4vp/identities/list/0.1/payload.d.ts +938 -0
- package/dist/vtc/oid4vp/identities/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/oid4vp/identities/list/0.1/payload.js +559 -0
- package/dist/vtc/oid4vp/identities/list/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/vtc/oid4vp/identities/list/0.1/payload.ts +706 -0
|
@@ -0,0 +1,938 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/oid4vp/identities/list/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext } from "../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* An administrator reads the OpenID4VP verifier identities the community holds — the identities it presents to wallets that speak OpenID4VP and no Trust Task protocol — and, for each, whether it can open a presentation session now and what stands in the way. The outer document members are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTCOpenID4VPVerifierIdentitiesListPayload {
|
|
10
|
+
ext?: Ext;
|
|
11
|
+
}
|
|
12
|
+
export interface VTCOpenID4VPVerifierIdentitiesListResponsePayload {
|
|
13
|
+
/**
|
|
14
|
+
* Every verifier identity the community holds, by `id`. Empty when it holds none.
|
|
15
|
+
*/
|
|
16
|
+
identities: Identity[];
|
|
17
|
+
/**
|
|
18
|
+
* The identity the community is configured to use when a session names no client identifier prefix; null when none is configured, and the first usable identity is used.
|
|
19
|
+
*/
|
|
20
|
+
defaultIdentity?: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* What is wrong with the community's verifier as a whole, rather than with one identity. Empty when nothing is.
|
|
23
|
+
*/
|
|
24
|
+
problems: Problem[];
|
|
25
|
+
ext?: Ext;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* One verifier identity, described by what is public about it. The signing key's private half, and where a remote custodian keeps it, are never returned.
|
|
29
|
+
*/
|
|
30
|
+
export interface Identity {
|
|
31
|
+
/**
|
|
32
|
+
* The administrator's name for the identity.
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
* The wallet ecosystem it is known to: `swiyu` (a DID registered in the swiyu Base Registry) or `eudi` (an X.509 access certificate).
|
|
37
|
+
*/
|
|
38
|
+
kind: "swiyu" | "eudi";
|
|
39
|
+
/**
|
|
40
|
+
* The OpenID4VP client identifier wallets see, prefix included. Null while an `eudi` identity has no certificate.
|
|
41
|
+
*/
|
|
42
|
+
clientId?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* The identity's DID, for a `swiyu` identity.
|
|
45
|
+
*/
|
|
46
|
+
did?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* The verification method that signs request objects, for an identity known by a DID.
|
|
49
|
+
*/
|
|
50
|
+
keyId?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Where the signing key is: `cached` by the community, kept by its `agent` (which signs every request object), or `invalid` when the record names neither or both.
|
|
53
|
+
*/
|
|
54
|
+
custody: "cached" | "agent" | "invalid";
|
|
55
|
+
/**
|
|
56
|
+
* Whether a session could be opened on this identity now: true exactly when no `error` problem applies to it, and none other than `defaultIdentityNotInstalled` applies to the community's verifier as a whole.
|
|
57
|
+
*/
|
|
58
|
+
usable: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Whether a session that names no client identifier prefix uses this identity.
|
|
61
|
+
*/
|
|
62
|
+
isDefault: boolean;
|
|
63
|
+
certificate?: Certificate;
|
|
64
|
+
/**
|
|
65
|
+
* What every request object carries in `verifier_info`, in the order it carries them. Empty when it carries none.
|
|
66
|
+
*/
|
|
67
|
+
attestations: Attestation[];
|
|
68
|
+
/**
|
|
69
|
+
* What is wrong with this identity. Empty when nothing is.
|
|
70
|
+
*/
|
|
71
|
+
problems: Problem[];
|
|
72
|
+
installedAt: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The access certificate, for an `eudi` identity that has one.
|
|
76
|
+
*/
|
|
77
|
+
export interface Certificate {
|
|
78
|
+
/**
|
|
79
|
+
* The leaf's subject distinguished name, as RFC 4514 renders it.
|
|
80
|
+
*/
|
|
81
|
+
subject?: string;
|
|
82
|
+
/**
|
|
83
|
+
* The leaf's issuer distinguished name, as RFC 4514 renders it.
|
|
84
|
+
*/
|
|
85
|
+
issuer?: string;
|
|
86
|
+
notBefore: string;
|
|
87
|
+
notAfter: string;
|
|
88
|
+
/**
|
|
89
|
+
* Certificates in the chain, leaf included.
|
|
90
|
+
*/
|
|
91
|
+
chainLength: number;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* One attestation about the verifier that every request object carries in `verifier_info`.
|
|
95
|
+
*/
|
|
96
|
+
export interface Attestation {
|
|
97
|
+
/**
|
|
98
|
+
* Which attestation it is, as tabled in the specification.
|
|
99
|
+
*/
|
|
100
|
+
kind: "identityTrustStatement" | "protectedVerificationAuthorization" | "registrationCertificate" | "other";
|
|
101
|
+
/**
|
|
102
|
+
* When it expires, if it says; null when it carries no expiry the maintainer reads.
|
|
103
|
+
*/
|
|
104
|
+
expiresAt?: string | null;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* One thing that stops, or will soon stop, a verifier identity or the community's verifier as a whole from serving wallets.
|
|
108
|
+
*/
|
|
109
|
+
export interface Problem {
|
|
110
|
+
/**
|
|
111
|
+
* What is wrong, as tabled in the specification.
|
|
112
|
+
*/
|
|
113
|
+
code: "keyCustodyInvalid" | "signerNotLoaded" | "agentLinkMissing" | "certificateMissing" | "certificateNotYetValid" | "certificateExpired" | "certificateExpiresSoon" | "identityStatementMissing" | "statementExpired" | "statementExpiresSoon" | "defaultIdentityNotInstalled" | "noPublicUrl";
|
|
114
|
+
/**
|
|
115
|
+
* `error`: sessions are refused, or wallets will refuse what the community sends, until it is fixed. `warning`: it works now and will not for long.
|
|
116
|
+
*/
|
|
117
|
+
severity: "error" | "warning";
|
|
118
|
+
/**
|
|
119
|
+
* Maintainer-authored prose for the administrator — what to run to fix it. Never parsed.
|
|
120
|
+
*/
|
|
121
|
+
detail?: string;
|
|
122
|
+
}
|
|
123
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
124
|
+
export type { Ext };
|
|
125
|
+
/** Trust Task type URI. */
|
|
126
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/oid4vp/identities/list/0.1";
|
|
127
|
+
/** Stable alias for this specification's request payload shape. */
|
|
128
|
+
export type Payload = VTCOpenID4VPVerifierIdentitiesListPayload;
|
|
129
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
130
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/oid4vp/identities/list/0.1#response";
|
|
131
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
132
|
+
export type Response = VTCOpenID4VPVerifierIdentitiesListResponsePayload;
|
|
133
|
+
/**
|
|
134
|
+
* This specification's payload schema, as a value.
|
|
135
|
+
*
|
|
136
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
137
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
138
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
139
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
140
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
141
|
+
*/
|
|
142
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
143
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
144
|
+
readonly $id: "https://trusttasks.org/spec/vtc/oid4vp/identities/list/0.1";
|
|
145
|
+
readonly title: "VTC OpenID4VP Verifier Identities List — payload";
|
|
146
|
+
readonly description: "An administrator reads the OpenID4VP verifier identities the community holds — the identities it presents to wallets that speak OpenID4VP and no Trust Task protocol — and, for each, whether it can open a presentation session now and what stands in the way. The outer document members are owned by the framework — SPEC §6.3.";
|
|
147
|
+
readonly type: "object";
|
|
148
|
+
readonly additionalProperties: false;
|
|
149
|
+
readonly properties: {
|
|
150
|
+
readonly ext: {
|
|
151
|
+
readonly $ref: "#/$defs/Ext";
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
readonly $defs: {
|
|
155
|
+
readonly Problem: {
|
|
156
|
+
readonly title: "Problem";
|
|
157
|
+
readonly type: "object";
|
|
158
|
+
readonly additionalProperties: false;
|
|
159
|
+
readonly description: "One thing that stops, or will soon stop, a verifier identity or the community's verifier as a whole from serving wallets.";
|
|
160
|
+
readonly required: readonly ["code", "severity"];
|
|
161
|
+
readonly properties: {
|
|
162
|
+
readonly code: {
|
|
163
|
+
readonly type: "string";
|
|
164
|
+
readonly enum: readonly ["keyCustodyInvalid", "signerNotLoaded", "agentLinkMissing", "certificateMissing", "certificateNotYetValid", "certificateExpired", "certificateExpiresSoon", "identityStatementMissing", "statementExpired", "statementExpiresSoon", "defaultIdentityNotInstalled", "noPublicUrl"];
|
|
165
|
+
readonly description: "What is wrong, as tabled in the specification.";
|
|
166
|
+
};
|
|
167
|
+
readonly severity: {
|
|
168
|
+
readonly type: "string";
|
|
169
|
+
readonly enum: readonly ["error", "warning"];
|
|
170
|
+
readonly description: "`error`: sessions are refused, or wallets will refuse what the community sends, until it is fixed. `warning`: it works now and will not for long.";
|
|
171
|
+
};
|
|
172
|
+
readonly detail: {
|
|
173
|
+
readonly type: "string";
|
|
174
|
+
readonly maxLength: 1024;
|
|
175
|
+
readonly description: "Maintainer-authored prose for the administrator — what to run to fix it. Never parsed.";
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
readonly Certificate: {
|
|
180
|
+
readonly title: "Certificate";
|
|
181
|
+
readonly type: "object";
|
|
182
|
+
readonly additionalProperties: false;
|
|
183
|
+
readonly description: "An X.509-identified verifier's access certificate: the leaf of the chain it sends wallets as `x5c`.";
|
|
184
|
+
readonly required: readonly ["notBefore", "notAfter", "chainLength"];
|
|
185
|
+
readonly properties: {
|
|
186
|
+
readonly subject: {
|
|
187
|
+
readonly type: "string";
|
|
188
|
+
readonly maxLength: 1024;
|
|
189
|
+
readonly description: "The leaf's subject distinguished name, as RFC 4514 renders it.";
|
|
190
|
+
};
|
|
191
|
+
readonly issuer: {
|
|
192
|
+
readonly type: "string";
|
|
193
|
+
readonly maxLength: 1024;
|
|
194
|
+
readonly description: "The leaf's issuer distinguished name, as RFC 4514 renders it.";
|
|
195
|
+
};
|
|
196
|
+
readonly notBefore: {
|
|
197
|
+
readonly type: "string";
|
|
198
|
+
readonly format: "date-time";
|
|
199
|
+
};
|
|
200
|
+
readonly notAfter: {
|
|
201
|
+
readonly type: "string";
|
|
202
|
+
readonly format: "date-time";
|
|
203
|
+
};
|
|
204
|
+
readonly chainLength: {
|
|
205
|
+
readonly type: "integer";
|
|
206
|
+
readonly minimum: 1;
|
|
207
|
+
readonly description: "Certificates in the chain, leaf included.";
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
readonly Attestation: {
|
|
212
|
+
readonly title: "Attestation";
|
|
213
|
+
readonly type: "object";
|
|
214
|
+
readonly additionalProperties: false;
|
|
215
|
+
readonly description: "One attestation about the verifier that every request object carries in `verifier_info`.";
|
|
216
|
+
readonly required: readonly ["kind"];
|
|
217
|
+
readonly properties: {
|
|
218
|
+
readonly kind: {
|
|
219
|
+
readonly type: "string";
|
|
220
|
+
readonly enum: readonly ["identityTrustStatement", "protectedVerificationAuthorization", "registrationCertificate", "other"];
|
|
221
|
+
readonly description: "Which attestation it is, as tabled in the specification.";
|
|
222
|
+
};
|
|
223
|
+
readonly expiresAt: {
|
|
224
|
+
readonly type: readonly ["string", "null"];
|
|
225
|
+
readonly format: "date-time";
|
|
226
|
+
readonly description: "When it expires, if it says; null when it carries no expiry the maintainer reads.";
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
readonly Identity: {
|
|
231
|
+
readonly title: "Identity";
|
|
232
|
+
readonly type: "object";
|
|
233
|
+
readonly additionalProperties: false;
|
|
234
|
+
readonly description: "One verifier identity, described by what is public about it. The signing key's private half, and where a remote custodian keeps it, are never returned.";
|
|
235
|
+
readonly required: readonly ["id", "kind", "custody", "usable", "isDefault", "attestations", "problems", "installedAt"];
|
|
236
|
+
readonly properties: {
|
|
237
|
+
readonly id: {
|
|
238
|
+
readonly type: "string";
|
|
239
|
+
readonly minLength: 1;
|
|
240
|
+
readonly maxLength: 128;
|
|
241
|
+
readonly description: "The administrator's name for the identity.";
|
|
242
|
+
};
|
|
243
|
+
readonly kind: {
|
|
244
|
+
readonly type: "string";
|
|
245
|
+
readonly enum: readonly ["swiyu", "eudi"];
|
|
246
|
+
readonly description: "The wallet ecosystem it is known to: `swiyu` (a DID registered in the swiyu Base Registry) or `eudi` (an X.509 access certificate).";
|
|
247
|
+
};
|
|
248
|
+
readonly clientId: {
|
|
249
|
+
readonly type: readonly ["string", "null"];
|
|
250
|
+
readonly description: "The OpenID4VP client identifier wallets see, prefix included. Null while an `eudi` identity has no certificate.";
|
|
251
|
+
};
|
|
252
|
+
readonly did: {
|
|
253
|
+
readonly type: readonly ["string", "null"];
|
|
254
|
+
readonly description: "The identity's DID, for a `swiyu` identity.";
|
|
255
|
+
};
|
|
256
|
+
readonly keyId: {
|
|
257
|
+
readonly type: readonly ["string", "null"];
|
|
258
|
+
readonly description: "The verification method that signs request objects, for an identity known by a DID.";
|
|
259
|
+
};
|
|
260
|
+
readonly custody: {
|
|
261
|
+
readonly type: "string";
|
|
262
|
+
readonly enum: readonly ["cached", "agent", "invalid"];
|
|
263
|
+
readonly description: "Where the signing key is: `cached` by the community, kept by its `agent` (which signs every request object), or `invalid` when the record names neither or both.";
|
|
264
|
+
};
|
|
265
|
+
readonly usable: {
|
|
266
|
+
readonly type: "boolean";
|
|
267
|
+
readonly description: "Whether a session could be opened on this identity now: true exactly when no `error` problem applies to it, and none other than `defaultIdentityNotInstalled` applies to the community's verifier as a whole.";
|
|
268
|
+
};
|
|
269
|
+
readonly isDefault: {
|
|
270
|
+
readonly type: "boolean";
|
|
271
|
+
readonly description: "Whether a session that names no client identifier prefix uses this identity.";
|
|
272
|
+
};
|
|
273
|
+
readonly certificate: {
|
|
274
|
+
readonly $ref: "#/$defs/Certificate";
|
|
275
|
+
readonly description: "The access certificate, for an `eudi` identity that has one.";
|
|
276
|
+
};
|
|
277
|
+
readonly attestations: {
|
|
278
|
+
readonly type: "array";
|
|
279
|
+
readonly items: {
|
|
280
|
+
readonly $ref: "#/$defs/Attestation";
|
|
281
|
+
};
|
|
282
|
+
readonly description: "What every request object carries in `verifier_info`, in the order it carries them. Empty when it carries none.";
|
|
283
|
+
};
|
|
284
|
+
readonly problems: {
|
|
285
|
+
readonly type: "array";
|
|
286
|
+
readonly items: {
|
|
287
|
+
readonly $ref: "#/$defs/Problem";
|
|
288
|
+
};
|
|
289
|
+
readonly description: "What is wrong with this identity. Empty when nothing is.";
|
|
290
|
+
};
|
|
291
|
+
readonly installedAt: {
|
|
292
|
+
readonly type: "string";
|
|
293
|
+
readonly format: "date-time";
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
readonly Response: {
|
|
298
|
+
readonly $anchor: "response";
|
|
299
|
+
readonly title: "VTC OpenID4VP Verifier Identities List — response payload";
|
|
300
|
+
readonly type: "object";
|
|
301
|
+
readonly additionalProperties: false;
|
|
302
|
+
readonly required: readonly ["identities", "problems"];
|
|
303
|
+
readonly properties: {
|
|
304
|
+
readonly identities: {
|
|
305
|
+
readonly type: "array";
|
|
306
|
+
readonly items: {
|
|
307
|
+
readonly $ref: "#/$defs/Identity";
|
|
308
|
+
};
|
|
309
|
+
readonly description: "Every verifier identity the community holds, by `id`. Empty when it holds none.";
|
|
310
|
+
};
|
|
311
|
+
readonly defaultIdentity: {
|
|
312
|
+
readonly type: readonly ["string", "null"];
|
|
313
|
+
readonly description: "The identity the community is configured to use when a session names no client identifier prefix; null when none is configured, and the first usable identity is used.";
|
|
314
|
+
};
|
|
315
|
+
readonly problems: {
|
|
316
|
+
readonly type: "array";
|
|
317
|
+
readonly items: {
|
|
318
|
+
readonly $ref: "#/$defs/Problem";
|
|
319
|
+
};
|
|
320
|
+
readonly description: "What is wrong with the community's verifier as a whole, rather than with one identity. Empty when nothing is.";
|
|
321
|
+
};
|
|
322
|
+
readonly ext: {
|
|
323
|
+
readonly $ref: "#/$defs/Ext";
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
readonly Ext: {
|
|
328
|
+
readonly title: "Ext";
|
|
329
|
+
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.";
|
|
330
|
+
readonly type: "object";
|
|
331
|
+
readonly minProperties: 1;
|
|
332
|
+
readonly additionalProperties: true;
|
|
333
|
+
readonly propertyNames: {
|
|
334
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
340
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
341
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
342
|
+
readonly $ref: "#/$defs/Response";
|
|
343
|
+
readonly $defs: {
|
|
344
|
+
readonly Problem: {
|
|
345
|
+
readonly title: "Problem";
|
|
346
|
+
readonly type: "object";
|
|
347
|
+
readonly additionalProperties: false;
|
|
348
|
+
readonly description: "One thing that stops, or will soon stop, a verifier identity or the community's verifier as a whole from serving wallets.";
|
|
349
|
+
readonly required: readonly ["code", "severity"];
|
|
350
|
+
readonly properties: {
|
|
351
|
+
readonly code: {
|
|
352
|
+
readonly type: "string";
|
|
353
|
+
readonly enum: readonly ["keyCustodyInvalid", "signerNotLoaded", "agentLinkMissing", "certificateMissing", "certificateNotYetValid", "certificateExpired", "certificateExpiresSoon", "identityStatementMissing", "statementExpired", "statementExpiresSoon", "defaultIdentityNotInstalled", "noPublicUrl"];
|
|
354
|
+
readonly description: "What is wrong, as tabled in the specification.";
|
|
355
|
+
};
|
|
356
|
+
readonly severity: {
|
|
357
|
+
readonly type: "string";
|
|
358
|
+
readonly enum: readonly ["error", "warning"];
|
|
359
|
+
readonly description: "`error`: sessions are refused, or wallets will refuse what the community sends, until it is fixed. `warning`: it works now and will not for long.";
|
|
360
|
+
};
|
|
361
|
+
readonly detail: {
|
|
362
|
+
readonly type: "string";
|
|
363
|
+
readonly maxLength: 1024;
|
|
364
|
+
readonly description: "Maintainer-authored prose for the administrator — what to run to fix it. Never parsed.";
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
readonly Certificate: {
|
|
369
|
+
readonly title: "Certificate";
|
|
370
|
+
readonly type: "object";
|
|
371
|
+
readonly additionalProperties: false;
|
|
372
|
+
readonly description: "An X.509-identified verifier's access certificate: the leaf of the chain it sends wallets as `x5c`.";
|
|
373
|
+
readonly required: readonly ["notBefore", "notAfter", "chainLength"];
|
|
374
|
+
readonly properties: {
|
|
375
|
+
readonly subject: {
|
|
376
|
+
readonly type: "string";
|
|
377
|
+
readonly maxLength: 1024;
|
|
378
|
+
readonly description: "The leaf's subject distinguished name, as RFC 4514 renders it.";
|
|
379
|
+
};
|
|
380
|
+
readonly issuer: {
|
|
381
|
+
readonly type: "string";
|
|
382
|
+
readonly maxLength: 1024;
|
|
383
|
+
readonly description: "The leaf's issuer distinguished name, as RFC 4514 renders it.";
|
|
384
|
+
};
|
|
385
|
+
readonly notBefore: {
|
|
386
|
+
readonly type: "string";
|
|
387
|
+
readonly format: "date-time";
|
|
388
|
+
};
|
|
389
|
+
readonly notAfter: {
|
|
390
|
+
readonly type: "string";
|
|
391
|
+
readonly format: "date-time";
|
|
392
|
+
};
|
|
393
|
+
readonly chainLength: {
|
|
394
|
+
readonly type: "integer";
|
|
395
|
+
readonly minimum: 1;
|
|
396
|
+
readonly description: "Certificates in the chain, leaf included.";
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
readonly Attestation: {
|
|
401
|
+
readonly title: "Attestation";
|
|
402
|
+
readonly type: "object";
|
|
403
|
+
readonly additionalProperties: false;
|
|
404
|
+
readonly description: "One attestation about the verifier that every request object carries in `verifier_info`.";
|
|
405
|
+
readonly required: readonly ["kind"];
|
|
406
|
+
readonly properties: {
|
|
407
|
+
readonly kind: {
|
|
408
|
+
readonly type: "string";
|
|
409
|
+
readonly enum: readonly ["identityTrustStatement", "protectedVerificationAuthorization", "registrationCertificate", "other"];
|
|
410
|
+
readonly description: "Which attestation it is, as tabled in the specification.";
|
|
411
|
+
};
|
|
412
|
+
readonly expiresAt: {
|
|
413
|
+
readonly type: readonly ["string", "null"];
|
|
414
|
+
readonly format: "date-time";
|
|
415
|
+
readonly description: "When it expires, if it says; null when it carries no expiry the maintainer reads.";
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
readonly Identity: {
|
|
420
|
+
readonly title: "Identity";
|
|
421
|
+
readonly type: "object";
|
|
422
|
+
readonly additionalProperties: false;
|
|
423
|
+
readonly description: "One verifier identity, described by what is public about it. The signing key's private half, and where a remote custodian keeps it, are never returned.";
|
|
424
|
+
readonly required: readonly ["id", "kind", "custody", "usable", "isDefault", "attestations", "problems", "installedAt"];
|
|
425
|
+
readonly properties: {
|
|
426
|
+
readonly id: {
|
|
427
|
+
readonly type: "string";
|
|
428
|
+
readonly minLength: 1;
|
|
429
|
+
readonly maxLength: 128;
|
|
430
|
+
readonly description: "The administrator's name for the identity.";
|
|
431
|
+
};
|
|
432
|
+
readonly kind: {
|
|
433
|
+
readonly type: "string";
|
|
434
|
+
readonly enum: readonly ["swiyu", "eudi"];
|
|
435
|
+
readonly description: "The wallet ecosystem it is known to: `swiyu` (a DID registered in the swiyu Base Registry) or `eudi` (an X.509 access certificate).";
|
|
436
|
+
};
|
|
437
|
+
readonly clientId: {
|
|
438
|
+
readonly type: readonly ["string", "null"];
|
|
439
|
+
readonly description: "The OpenID4VP client identifier wallets see, prefix included. Null while an `eudi` identity has no certificate.";
|
|
440
|
+
};
|
|
441
|
+
readonly did: {
|
|
442
|
+
readonly type: readonly ["string", "null"];
|
|
443
|
+
readonly description: "The identity's DID, for a `swiyu` identity.";
|
|
444
|
+
};
|
|
445
|
+
readonly keyId: {
|
|
446
|
+
readonly type: readonly ["string", "null"];
|
|
447
|
+
readonly description: "The verification method that signs request objects, for an identity known by a DID.";
|
|
448
|
+
};
|
|
449
|
+
readonly custody: {
|
|
450
|
+
readonly type: "string";
|
|
451
|
+
readonly enum: readonly ["cached", "agent", "invalid"];
|
|
452
|
+
readonly description: "Where the signing key is: `cached` by the community, kept by its `agent` (which signs every request object), or `invalid` when the record names neither or both.";
|
|
453
|
+
};
|
|
454
|
+
readonly usable: {
|
|
455
|
+
readonly type: "boolean";
|
|
456
|
+
readonly description: "Whether a session could be opened on this identity now: true exactly when no `error` problem applies to it, and none other than `defaultIdentityNotInstalled` applies to the community's verifier as a whole.";
|
|
457
|
+
};
|
|
458
|
+
readonly isDefault: {
|
|
459
|
+
readonly type: "boolean";
|
|
460
|
+
readonly description: "Whether a session that names no client identifier prefix uses this identity.";
|
|
461
|
+
};
|
|
462
|
+
readonly certificate: {
|
|
463
|
+
readonly $ref: "#/$defs/Certificate";
|
|
464
|
+
readonly description: "The access certificate, for an `eudi` identity that has one.";
|
|
465
|
+
};
|
|
466
|
+
readonly attestations: {
|
|
467
|
+
readonly type: "array";
|
|
468
|
+
readonly items: {
|
|
469
|
+
readonly $ref: "#/$defs/Attestation";
|
|
470
|
+
};
|
|
471
|
+
readonly description: "What every request object carries in `verifier_info`, in the order it carries them. Empty when it carries none.";
|
|
472
|
+
};
|
|
473
|
+
readonly problems: {
|
|
474
|
+
readonly type: "array";
|
|
475
|
+
readonly items: {
|
|
476
|
+
readonly $ref: "#/$defs/Problem";
|
|
477
|
+
};
|
|
478
|
+
readonly description: "What is wrong with this identity. Empty when nothing is.";
|
|
479
|
+
};
|
|
480
|
+
readonly installedAt: {
|
|
481
|
+
readonly type: "string";
|
|
482
|
+
readonly format: "date-time";
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
readonly Response: {
|
|
487
|
+
readonly $anchor: "response";
|
|
488
|
+
readonly title: "VTC OpenID4VP Verifier Identities List — response payload";
|
|
489
|
+
readonly type: "object";
|
|
490
|
+
readonly additionalProperties: false;
|
|
491
|
+
readonly required: readonly ["identities", "problems"];
|
|
492
|
+
readonly properties: {
|
|
493
|
+
readonly identities: {
|
|
494
|
+
readonly type: "array";
|
|
495
|
+
readonly items: {
|
|
496
|
+
readonly $ref: "#/$defs/Identity";
|
|
497
|
+
};
|
|
498
|
+
readonly description: "Every verifier identity the community holds, by `id`. Empty when it holds none.";
|
|
499
|
+
};
|
|
500
|
+
readonly defaultIdentity: {
|
|
501
|
+
readonly type: readonly ["string", "null"];
|
|
502
|
+
readonly description: "The identity the community is configured to use when a session names no client identifier prefix; null when none is configured, and the first usable identity is used.";
|
|
503
|
+
};
|
|
504
|
+
readonly problems: {
|
|
505
|
+
readonly type: "array";
|
|
506
|
+
readonly items: {
|
|
507
|
+
readonly $ref: "#/$defs/Problem";
|
|
508
|
+
};
|
|
509
|
+
readonly description: "What is wrong with the community's verifier as a whole, rather than with one identity. Empty when nothing is.";
|
|
510
|
+
};
|
|
511
|
+
readonly ext: {
|
|
512
|
+
readonly $ref: "#/$defs/Ext";
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
readonly Ext: {
|
|
517
|
+
readonly title: "Ext";
|
|
518
|
+
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.";
|
|
519
|
+
readonly type: "object";
|
|
520
|
+
readonly minProperties: 1;
|
|
521
|
+
readonly additionalProperties: true;
|
|
522
|
+
readonly propertyNames: {
|
|
523
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
};
|
|
528
|
+
/**
|
|
529
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
530
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
531
|
+
* per-specification and cannot be derived from the document alone, and
|
|
532
|
+
* item 2 needs the schema this carries.
|
|
533
|
+
*/
|
|
534
|
+
export declare const SPEC: {
|
|
535
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/oid4vp/identities/list/0.1";
|
|
536
|
+
readonly isBearer: false;
|
|
537
|
+
readonly isProofRequired: true;
|
|
538
|
+
readonly isRecipientRequired: true;
|
|
539
|
+
readonly isIssuedAtRequired: false;
|
|
540
|
+
readonly payloadSchema: {
|
|
541
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
542
|
+
readonly $id: "https://trusttasks.org/spec/vtc/oid4vp/identities/list/0.1";
|
|
543
|
+
readonly title: "VTC OpenID4VP Verifier Identities List — payload";
|
|
544
|
+
readonly description: "An administrator reads the OpenID4VP verifier identities the community holds — the identities it presents to wallets that speak OpenID4VP and no Trust Task protocol — and, for each, whether it can open a presentation session now and what stands in the way. The outer document members are owned by the framework — SPEC §6.3.";
|
|
545
|
+
readonly type: "object";
|
|
546
|
+
readonly additionalProperties: false;
|
|
547
|
+
readonly properties: {
|
|
548
|
+
readonly ext: {
|
|
549
|
+
readonly $ref: "#/$defs/Ext";
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
readonly $defs: {
|
|
553
|
+
readonly Problem: {
|
|
554
|
+
readonly title: "Problem";
|
|
555
|
+
readonly type: "object";
|
|
556
|
+
readonly additionalProperties: false;
|
|
557
|
+
readonly description: "One thing that stops, or will soon stop, a verifier identity or the community's verifier as a whole from serving wallets.";
|
|
558
|
+
readonly required: readonly ["code", "severity"];
|
|
559
|
+
readonly properties: {
|
|
560
|
+
readonly code: {
|
|
561
|
+
readonly type: "string";
|
|
562
|
+
readonly enum: readonly ["keyCustodyInvalid", "signerNotLoaded", "agentLinkMissing", "certificateMissing", "certificateNotYetValid", "certificateExpired", "certificateExpiresSoon", "identityStatementMissing", "statementExpired", "statementExpiresSoon", "defaultIdentityNotInstalled", "noPublicUrl"];
|
|
563
|
+
readonly description: "What is wrong, as tabled in the specification.";
|
|
564
|
+
};
|
|
565
|
+
readonly severity: {
|
|
566
|
+
readonly type: "string";
|
|
567
|
+
readonly enum: readonly ["error", "warning"];
|
|
568
|
+
readonly description: "`error`: sessions are refused, or wallets will refuse what the community sends, until it is fixed. `warning`: it works now and will not for long.";
|
|
569
|
+
};
|
|
570
|
+
readonly detail: {
|
|
571
|
+
readonly type: "string";
|
|
572
|
+
readonly maxLength: 1024;
|
|
573
|
+
readonly description: "Maintainer-authored prose for the administrator — what to run to fix it. Never parsed.";
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
readonly Certificate: {
|
|
578
|
+
readonly title: "Certificate";
|
|
579
|
+
readonly type: "object";
|
|
580
|
+
readonly additionalProperties: false;
|
|
581
|
+
readonly description: "An X.509-identified verifier's access certificate: the leaf of the chain it sends wallets as `x5c`.";
|
|
582
|
+
readonly required: readonly ["notBefore", "notAfter", "chainLength"];
|
|
583
|
+
readonly properties: {
|
|
584
|
+
readonly subject: {
|
|
585
|
+
readonly type: "string";
|
|
586
|
+
readonly maxLength: 1024;
|
|
587
|
+
readonly description: "The leaf's subject distinguished name, as RFC 4514 renders it.";
|
|
588
|
+
};
|
|
589
|
+
readonly issuer: {
|
|
590
|
+
readonly type: "string";
|
|
591
|
+
readonly maxLength: 1024;
|
|
592
|
+
readonly description: "The leaf's issuer distinguished name, as RFC 4514 renders it.";
|
|
593
|
+
};
|
|
594
|
+
readonly notBefore: {
|
|
595
|
+
readonly type: "string";
|
|
596
|
+
readonly format: "date-time";
|
|
597
|
+
};
|
|
598
|
+
readonly notAfter: {
|
|
599
|
+
readonly type: "string";
|
|
600
|
+
readonly format: "date-time";
|
|
601
|
+
};
|
|
602
|
+
readonly chainLength: {
|
|
603
|
+
readonly type: "integer";
|
|
604
|
+
readonly minimum: 1;
|
|
605
|
+
readonly description: "Certificates in the chain, leaf included.";
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
};
|
|
609
|
+
readonly Attestation: {
|
|
610
|
+
readonly title: "Attestation";
|
|
611
|
+
readonly type: "object";
|
|
612
|
+
readonly additionalProperties: false;
|
|
613
|
+
readonly description: "One attestation about the verifier that every request object carries in `verifier_info`.";
|
|
614
|
+
readonly required: readonly ["kind"];
|
|
615
|
+
readonly properties: {
|
|
616
|
+
readonly kind: {
|
|
617
|
+
readonly type: "string";
|
|
618
|
+
readonly enum: readonly ["identityTrustStatement", "protectedVerificationAuthorization", "registrationCertificate", "other"];
|
|
619
|
+
readonly description: "Which attestation it is, as tabled in the specification.";
|
|
620
|
+
};
|
|
621
|
+
readonly expiresAt: {
|
|
622
|
+
readonly type: readonly ["string", "null"];
|
|
623
|
+
readonly format: "date-time";
|
|
624
|
+
readonly description: "When it expires, if it says; null when it carries no expiry the maintainer reads.";
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
readonly Identity: {
|
|
629
|
+
readonly title: "Identity";
|
|
630
|
+
readonly type: "object";
|
|
631
|
+
readonly additionalProperties: false;
|
|
632
|
+
readonly description: "One verifier identity, described by what is public about it. The signing key's private half, and where a remote custodian keeps it, are never returned.";
|
|
633
|
+
readonly required: readonly ["id", "kind", "custody", "usable", "isDefault", "attestations", "problems", "installedAt"];
|
|
634
|
+
readonly properties: {
|
|
635
|
+
readonly id: {
|
|
636
|
+
readonly type: "string";
|
|
637
|
+
readonly minLength: 1;
|
|
638
|
+
readonly maxLength: 128;
|
|
639
|
+
readonly description: "The administrator's name for the identity.";
|
|
640
|
+
};
|
|
641
|
+
readonly kind: {
|
|
642
|
+
readonly type: "string";
|
|
643
|
+
readonly enum: readonly ["swiyu", "eudi"];
|
|
644
|
+
readonly description: "The wallet ecosystem it is known to: `swiyu` (a DID registered in the swiyu Base Registry) or `eudi` (an X.509 access certificate).";
|
|
645
|
+
};
|
|
646
|
+
readonly clientId: {
|
|
647
|
+
readonly type: readonly ["string", "null"];
|
|
648
|
+
readonly description: "The OpenID4VP client identifier wallets see, prefix included. Null while an `eudi` identity has no certificate.";
|
|
649
|
+
};
|
|
650
|
+
readonly did: {
|
|
651
|
+
readonly type: readonly ["string", "null"];
|
|
652
|
+
readonly description: "The identity's DID, for a `swiyu` identity.";
|
|
653
|
+
};
|
|
654
|
+
readonly keyId: {
|
|
655
|
+
readonly type: readonly ["string", "null"];
|
|
656
|
+
readonly description: "The verification method that signs request objects, for an identity known by a DID.";
|
|
657
|
+
};
|
|
658
|
+
readonly custody: {
|
|
659
|
+
readonly type: "string";
|
|
660
|
+
readonly enum: readonly ["cached", "agent", "invalid"];
|
|
661
|
+
readonly description: "Where the signing key is: `cached` by the community, kept by its `agent` (which signs every request object), or `invalid` when the record names neither or both.";
|
|
662
|
+
};
|
|
663
|
+
readonly usable: {
|
|
664
|
+
readonly type: "boolean";
|
|
665
|
+
readonly description: "Whether a session could be opened on this identity now: true exactly when no `error` problem applies to it, and none other than `defaultIdentityNotInstalled` applies to the community's verifier as a whole.";
|
|
666
|
+
};
|
|
667
|
+
readonly isDefault: {
|
|
668
|
+
readonly type: "boolean";
|
|
669
|
+
readonly description: "Whether a session that names no client identifier prefix uses this identity.";
|
|
670
|
+
};
|
|
671
|
+
readonly certificate: {
|
|
672
|
+
readonly $ref: "#/$defs/Certificate";
|
|
673
|
+
readonly description: "The access certificate, for an `eudi` identity that has one.";
|
|
674
|
+
};
|
|
675
|
+
readonly attestations: {
|
|
676
|
+
readonly type: "array";
|
|
677
|
+
readonly items: {
|
|
678
|
+
readonly $ref: "#/$defs/Attestation";
|
|
679
|
+
};
|
|
680
|
+
readonly description: "What every request object carries in `verifier_info`, in the order it carries them. Empty when it carries none.";
|
|
681
|
+
};
|
|
682
|
+
readonly problems: {
|
|
683
|
+
readonly type: "array";
|
|
684
|
+
readonly items: {
|
|
685
|
+
readonly $ref: "#/$defs/Problem";
|
|
686
|
+
};
|
|
687
|
+
readonly description: "What is wrong with this identity. Empty when nothing is.";
|
|
688
|
+
};
|
|
689
|
+
readonly installedAt: {
|
|
690
|
+
readonly type: "string";
|
|
691
|
+
readonly format: "date-time";
|
|
692
|
+
};
|
|
693
|
+
};
|
|
694
|
+
};
|
|
695
|
+
readonly Response: {
|
|
696
|
+
readonly $anchor: "response";
|
|
697
|
+
readonly title: "VTC OpenID4VP Verifier Identities List — response payload";
|
|
698
|
+
readonly type: "object";
|
|
699
|
+
readonly additionalProperties: false;
|
|
700
|
+
readonly required: readonly ["identities", "problems"];
|
|
701
|
+
readonly properties: {
|
|
702
|
+
readonly identities: {
|
|
703
|
+
readonly type: "array";
|
|
704
|
+
readonly items: {
|
|
705
|
+
readonly $ref: "#/$defs/Identity";
|
|
706
|
+
};
|
|
707
|
+
readonly description: "Every verifier identity the community holds, by `id`. Empty when it holds none.";
|
|
708
|
+
};
|
|
709
|
+
readonly defaultIdentity: {
|
|
710
|
+
readonly type: readonly ["string", "null"];
|
|
711
|
+
readonly description: "The identity the community is configured to use when a session names no client identifier prefix; null when none is configured, and the first usable identity is used.";
|
|
712
|
+
};
|
|
713
|
+
readonly problems: {
|
|
714
|
+
readonly type: "array";
|
|
715
|
+
readonly items: {
|
|
716
|
+
readonly $ref: "#/$defs/Problem";
|
|
717
|
+
};
|
|
718
|
+
readonly description: "What is wrong with the community's verifier as a whole, rather than with one identity. Empty when nothing is.";
|
|
719
|
+
};
|
|
720
|
+
readonly ext: {
|
|
721
|
+
readonly $ref: "#/$defs/Ext";
|
|
722
|
+
};
|
|
723
|
+
};
|
|
724
|
+
};
|
|
725
|
+
readonly Ext: {
|
|
726
|
+
readonly title: "Ext";
|
|
727
|
+
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.";
|
|
728
|
+
readonly type: "object";
|
|
729
|
+
readonly minProperties: 1;
|
|
730
|
+
readonly additionalProperties: true;
|
|
731
|
+
readonly propertyNames: {
|
|
732
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
};
|
|
736
|
+
};
|
|
737
|
+
};
|
|
738
|
+
/**
|
|
739
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
740
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
741
|
+
* parties (§7.3 item 5).
|
|
742
|
+
*/
|
|
743
|
+
export declare const RESPONSE_SPEC: {
|
|
744
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/oid4vp/identities/list/0.1#response";
|
|
745
|
+
readonly isBearer: false;
|
|
746
|
+
readonly isProofRequired: true;
|
|
747
|
+
readonly isRecipientRequired: true;
|
|
748
|
+
readonly isIssuedAtRequired: false;
|
|
749
|
+
readonly payloadSchema: {
|
|
750
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
751
|
+
readonly $ref: "#/$defs/Response";
|
|
752
|
+
readonly $defs: {
|
|
753
|
+
readonly Problem: {
|
|
754
|
+
readonly title: "Problem";
|
|
755
|
+
readonly type: "object";
|
|
756
|
+
readonly additionalProperties: false;
|
|
757
|
+
readonly description: "One thing that stops, or will soon stop, a verifier identity or the community's verifier as a whole from serving wallets.";
|
|
758
|
+
readonly required: readonly ["code", "severity"];
|
|
759
|
+
readonly properties: {
|
|
760
|
+
readonly code: {
|
|
761
|
+
readonly type: "string";
|
|
762
|
+
readonly enum: readonly ["keyCustodyInvalid", "signerNotLoaded", "agentLinkMissing", "certificateMissing", "certificateNotYetValid", "certificateExpired", "certificateExpiresSoon", "identityStatementMissing", "statementExpired", "statementExpiresSoon", "defaultIdentityNotInstalled", "noPublicUrl"];
|
|
763
|
+
readonly description: "What is wrong, as tabled in the specification.";
|
|
764
|
+
};
|
|
765
|
+
readonly severity: {
|
|
766
|
+
readonly type: "string";
|
|
767
|
+
readonly enum: readonly ["error", "warning"];
|
|
768
|
+
readonly description: "`error`: sessions are refused, or wallets will refuse what the community sends, until it is fixed. `warning`: it works now and will not for long.";
|
|
769
|
+
};
|
|
770
|
+
readonly detail: {
|
|
771
|
+
readonly type: "string";
|
|
772
|
+
readonly maxLength: 1024;
|
|
773
|
+
readonly description: "Maintainer-authored prose for the administrator — what to run to fix it. Never parsed.";
|
|
774
|
+
};
|
|
775
|
+
};
|
|
776
|
+
};
|
|
777
|
+
readonly Certificate: {
|
|
778
|
+
readonly title: "Certificate";
|
|
779
|
+
readonly type: "object";
|
|
780
|
+
readonly additionalProperties: false;
|
|
781
|
+
readonly description: "An X.509-identified verifier's access certificate: the leaf of the chain it sends wallets as `x5c`.";
|
|
782
|
+
readonly required: readonly ["notBefore", "notAfter", "chainLength"];
|
|
783
|
+
readonly properties: {
|
|
784
|
+
readonly subject: {
|
|
785
|
+
readonly type: "string";
|
|
786
|
+
readonly maxLength: 1024;
|
|
787
|
+
readonly description: "The leaf's subject distinguished name, as RFC 4514 renders it.";
|
|
788
|
+
};
|
|
789
|
+
readonly issuer: {
|
|
790
|
+
readonly type: "string";
|
|
791
|
+
readonly maxLength: 1024;
|
|
792
|
+
readonly description: "The leaf's issuer distinguished name, as RFC 4514 renders it.";
|
|
793
|
+
};
|
|
794
|
+
readonly notBefore: {
|
|
795
|
+
readonly type: "string";
|
|
796
|
+
readonly format: "date-time";
|
|
797
|
+
};
|
|
798
|
+
readonly notAfter: {
|
|
799
|
+
readonly type: "string";
|
|
800
|
+
readonly format: "date-time";
|
|
801
|
+
};
|
|
802
|
+
readonly chainLength: {
|
|
803
|
+
readonly type: "integer";
|
|
804
|
+
readonly minimum: 1;
|
|
805
|
+
readonly description: "Certificates in the chain, leaf included.";
|
|
806
|
+
};
|
|
807
|
+
};
|
|
808
|
+
};
|
|
809
|
+
readonly Attestation: {
|
|
810
|
+
readonly title: "Attestation";
|
|
811
|
+
readonly type: "object";
|
|
812
|
+
readonly additionalProperties: false;
|
|
813
|
+
readonly description: "One attestation about the verifier that every request object carries in `verifier_info`.";
|
|
814
|
+
readonly required: readonly ["kind"];
|
|
815
|
+
readonly properties: {
|
|
816
|
+
readonly kind: {
|
|
817
|
+
readonly type: "string";
|
|
818
|
+
readonly enum: readonly ["identityTrustStatement", "protectedVerificationAuthorization", "registrationCertificate", "other"];
|
|
819
|
+
readonly description: "Which attestation it is, as tabled in the specification.";
|
|
820
|
+
};
|
|
821
|
+
readonly expiresAt: {
|
|
822
|
+
readonly type: readonly ["string", "null"];
|
|
823
|
+
readonly format: "date-time";
|
|
824
|
+
readonly description: "When it expires, if it says; null when it carries no expiry the maintainer reads.";
|
|
825
|
+
};
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
readonly Identity: {
|
|
829
|
+
readonly title: "Identity";
|
|
830
|
+
readonly type: "object";
|
|
831
|
+
readonly additionalProperties: false;
|
|
832
|
+
readonly description: "One verifier identity, described by what is public about it. The signing key's private half, and where a remote custodian keeps it, are never returned.";
|
|
833
|
+
readonly required: readonly ["id", "kind", "custody", "usable", "isDefault", "attestations", "problems", "installedAt"];
|
|
834
|
+
readonly properties: {
|
|
835
|
+
readonly id: {
|
|
836
|
+
readonly type: "string";
|
|
837
|
+
readonly minLength: 1;
|
|
838
|
+
readonly maxLength: 128;
|
|
839
|
+
readonly description: "The administrator's name for the identity.";
|
|
840
|
+
};
|
|
841
|
+
readonly kind: {
|
|
842
|
+
readonly type: "string";
|
|
843
|
+
readonly enum: readonly ["swiyu", "eudi"];
|
|
844
|
+
readonly description: "The wallet ecosystem it is known to: `swiyu` (a DID registered in the swiyu Base Registry) or `eudi` (an X.509 access certificate).";
|
|
845
|
+
};
|
|
846
|
+
readonly clientId: {
|
|
847
|
+
readonly type: readonly ["string", "null"];
|
|
848
|
+
readonly description: "The OpenID4VP client identifier wallets see, prefix included. Null while an `eudi` identity has no certificate.";
|
|
849
|
+
};
|
|
850
|
+
readonly did: {
|
|
851
|
+
readonly type: readonly ["string", "null"];
|
|
852
|
+
readonly description: "The identity's DID, for a `swiyu` identity.";
|
|
853
|
+
};
|
|
854
|
+
readonly keyId: {
|
|
855
|
+
readonly type: readonly ["string", "null"];
|
|
856
|
+
readonly description: "The verification method that signs request objects, for an identity known by a DID.";
|
|
857
|
+
};
|
|
858
|
+
readonly custody: {
|
|
859
|
+
readonly type: "string";
|
|
860
|
+
readonly enum: readonly ["cached", "agent", "invalid"];
|
|
861
|
+
readonly description: "Where the signing key is: `cached` by the community, kept by its `agent` (which signs every request object), or `invalid` when the record names neither or both.";
|
|
862
|
+
};
|
|
863
|
+
readonly usable: {
|
|
864
|
+
readonly type: "boolean";
|
|
865
|
+
readonly description: "Whether a session could be opened on this identity now: true exactly when no `error` problem applies to it, and none other than `defaultIdentityNotInstalled` applies to the community's verifier as a whole.";
|
|
866
|
+
};
|
|
867
|
+
readonly isDefault: {
|
|
868
|
+
readonly type: "boolean";
|
|
869
|
+
readonly description: "Whether a session that names no client identifier prefix uses this identity.";
|
|
870
|
+
};
|
|
871
|
+
readonly certificate: {
|
|
872
|
+
readonly $ref: "#/$defs/Certificate";
|
|
873
|
+
readonly description: "The access certificate, for an `eudi` identity that has one.";
|
|
874
|
+
};
|
|
875
|
+
readonly attestations: {
|
|
876
|
+
readonly type: "array";
|
|
877
|
+
readonly items: {
|
|
878
|
+
readonly $ref: "#/$defs/Attestation";
|
|
879
|
+
};
|
|
880
|
+
readonly description: "What every request object carries in `verifier_info`, in the order it carries them. Empty when it carries none.";
|
|
881
|
+
};
|
|
882
|
+
readonly problems: {
|
|
883
|
+
readonly type: "array";
|
|
884
|
+
readonly items: {
|
|
885
|
+
readonly $ref: "#/$defs/Problem";
|
|
886
|
+
};
|
|
887
|
+
readonly description: "What is wrong with this identity. Empty when nothing is.";
|
|
888
|
+
};
|
|
889
|
+
readonly installedAt: {
|
|
890
|
+
readonly type: "string";
|
|
891
|
+
readonly format: "date-time";
|
|
892
|
+
};
|
|
893
|
+
};
|
|
894
|
+
};
|
|
895
|
+
readonly Response: {
|
|
896
|
+
readonly $anchor: "response";
|
|
897
|
+
readonly title: "VTC OpenID4VP Verifier Identities List — response payload";
|
|
898
|
+
readonly type: "object";
|
|
899
|
+
readonly additionalProperties: false;
|
|
900
|
+
readonly required: readonly ["identities", "problems"];
|
|
901
|
+
readonly properties: {
|
|
902
|
+
readonly identities: {
|
|
903
|
+
readonly type: "array";
|
|
904
|
+
readonly items: {
|
|
905
|
+
readonly $ref: "#/$defs/Identity";
|
|
906
|
+
};
|
|
907
|
+
readonly description: "Every verifier identity the community holds, by `id`. Empty when it holds none.";
|
|
908
|
+
};
|
|
909
|
+
readonly defaultIdentity: {
|
|
910
|
+
readonly type: readonly ["string", "null"];
|
|
911
|
+
readonly description: "The identity the community is configured to use when a session names no client identifier prefix; null when none is configured, and the first usable identity is used.";
|
|
912
|
+
};
|
|
913
|
+
readonly problems: {
|
|
914
|
+
readonly type: "array";
|
|
915
|
+
readonly items: {
|
|
916
|
+
readonly $ref: "#/$defs/Problem";
|
|
917
|
+
};
|
|
918
|
+
readonly description: "What is wrong with the community's verifier as a whole, rather than with one identity. Empty when nothing is.";
|
|
919
|
+
};
|
|
920
|
+
readonly ext: {
|
|
921
|
+
readonly $ref: "#/$defs/Ext";
|
|
922
|
+
};
|
|
923
|
+
};
|
|
924
|
+
};
|
|
925
|
+
readonly Ext: {
|
|
926
|
+
readonly title: "Ext";
|
|
927
|
+
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.";
|
|
928
|
+
readonly type: "object";
|
|
929
|
+
readonly minProperties: 1;
|
|
930
|
+
readonly additionalProperties: true;
|
|
931
|
+
readonly propertyNames: {
|
|
932
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
933
|
+
};
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
};
|
|
937
|
+
};
|
|
938
|
+
//# sourceMappingURL=payload.d.ts.map
|