@openid4vc/openid4vp 0.3.1-alpha-20251127040522 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts DELETED
@@ -1,2585 +0,0 @@
1
- import * as _openid4vc_oauth20 from "@openid4vc/oauth2";
2
- import { CallbackContext, CreateJarAuthorizationRequestOptions, DecodeJwtResult, HashAlgorithm, JarRequestObjectPayload, Jwk, JwkSet, JwtSigner, JwtSignerWithJwk, zJarRequestObjectPayload } from "@openid4vc/oauth2";
3
- import z$1, { z } from "zod";
4
- import { NonEmptyArray } from "@openid4vc/utils";
5
-
6
- //#region src/models/z-wallet-metadata.d.ts
7
- declare const zWalletMetadata: z.ZodObject<{
8
- presentation_definition_uri_supported: z.ZodOptional<z.ZodBoolean>;
9
- vp_formats_supported: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
10
- 'dc+sd-jwt': z.ZodOptional<z.ZodObject<{
11
- 'sd-jwt_alg_values': z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
12
- 'kb-jwt_alg_values': z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
13
- }, z.core.$loose>>;
14
- jwt_vc_json: z.ZodOptional<z.ZodObject<{
15
- alg_values: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
16
- }, z.core.$loose>>;
17
- ldp_vc: z.ZodOptional<z.ZodObject<{
18
- proof_type_values: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
19
- cryptosuite_values: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
20
- }, z.core.$loose>>;
21
- mso_mdoc: z.ZodOptional<z.ZodObject<{
22
- issuer_signed_alg_values: z.ZodOptional<z.ZodTuple<[z.ZodNumber], z.ZodNumber>>;
23
- device_signed_alg_values: z.ZodOptional<z.ZodTuple<[z.ZodNumber], z.ZodNumber>>;
24
- issuerauth_alg_values: z.ZodOptional<z.ZodTuple<[z.ZodNumber], z.ZodNumber>>;
25
- deviceauth_alg_values: z.ZodOptional<z.ZodTuple<[z.ZodNumber], z.ZodNumber>>;
26
- }, z.core.$loose>>;
27
- }, z.core.$catchall<z.ZodObject<{}, z.core.$loose>>>, z.ZodRecord<z.ZodString, z.ZodObject<{
28
- alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
29
- }, z.core.$loose>>]>>;
30
- client_id_schemes_supported: z.ZodOptional<z.ZodArray<z.ZodEnum<{
31
- redirect_uri: "redirect_uri";
32
- "pre-registered": "pre-registered";
33
- did: "did";
34
- verifier_attestation: "verifier_attestation";
35
- x509_san_dns: "x509_san_dns";
36
- x509_san_uri: "x509_san_uri";
37
- x509_hash: "x509_hash";
38
- https: "https";
39
- origin: "origin";
40
- "web-origin": "web-origin";
41
- }>>>;
42
- client_id_prefixes_supported: z.ZodOptional<z.ZodArray<z.ZodEnum<{
43
- redirect_uri: "redirect_uri";
44
- "pre-registered": "pre-registered";
45
- verifier_attestation: "verifier_attestation";
46
- x509_san_dns: "x509_san_dns";
47
- x509_san_uri: "x509_san_uri";
48
- x509_hash: "x509_hash";
49
- openid_federation: "openid_federation";
50
- decentralized_identifier: "decentralized_identifier";
51
- origin: "origin";
52
- }>>>;
53
- request_object_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
54
- authorization_encryption_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
55
- authorization_encryption_enc_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
56
- }, z.core.$strip>;
57
- type WalletMetadata = z.infer<typeof zWalletMetadata>;
58
- //#endregion
59
- //#region src/authorization-request/z-authorization-request.d.ts
60
- declare const zOpenid4vpAuthorizationRequest: z.ZodObject<{
61
- response_type: z.ZodLiteral<"vp_token">;
62
- client_id: z.ZodString;
63
- redirect_uri: z.ZodOptional<z.ZodURL>;
64
- response_uri: z.ZodOptional<z.ZodURL>;
65
- request_uri: z.ZodOptional<z.ZodURL>;
66
- request_uri_method: z.ZodOptional<z.ZodString>;
67
- response_mode: z.ZodOptional<z.ZodEnum<{
68
- direct_post: "direct_post";
69
- "direct_post.jwt": "direct_post.jwt";
70
- }>>;
71
- nonce: z.ZodString;
72
- wallet_nonce: z.ZodOptional<z.ZodString>;
73
- scope: z.ZodOptional<z.ZodString>;
74
- presentation_definition: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>>;
75
- presentation_definition_uri: z.ZodOptional<z.ZodURL>;
76
- dcql_query: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>>;
77
- client_metadata: z.ZodOptional<z.ZodObject<{
78
- logo_uri: z.ZodOptional<z.ZodUnion<[z.ZodURL, z.ZodString]>>;
79
- client_name: z.ZodOptional<z.ZodString>;
80
- authorization_signed_response_alg: z.ZodOptional<z.ZodString>;
81
- authorization_encrypted_response_alg: z.ZodOptional<z.ZodString>;
82
- authorization_encrypted_response_enc: z.ZodOptional<z.ZodOptional<z.ZodString>>;
83
- jwks_uri: z.ZodOptional<z.ZodURL>;
84
- jwks: z.ZodOptional<z.ZodObject<{
85
- keys: z.ZodArray<z.ZodObject<{
86
- kty: z.ZodString;
87
- crv: z.ZodOptional<z.ZodString>;
88
- x: z.ZodOptional<z.ZodString>;
89
- y: z.ZodOptional<z.ZodString>;
90
- e: z.ZodOptional<z.ZodString>;
91
- n: z.ZodOptional<z.ZodString>;
92
- alg: z.ZodOptional<z.ZodString>;
93
- d: z.ZodOptional<z.ZodString>;
94
- dp: z.ZodOptional<z.ZodString>;
95
- dq: z.ZodOptional<z.ZodString>;
96
- ext: z.ZodOptional<z.ZodBoolean>;
97
- k: z.ZodOptional<z.ZodString>;
98
- key_ops: z.ZodOptional<z.ZodArray<z.ZodString>>;
99
- kid: z.ZodOptional<z.ZodString>;
100
- oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
101
- d: z.ZodOptional<z.ZodString>;
102
- r: z.ZodOptional<z.ZodString>;
103
- t: z.ZodOptional<z.ZodString>;
104
- }, z.core.$loose>>>;
105
- p: z.ZodOptional<z.ZodString>;
106
- q: z.ZodOptional<z.ZodString>;
107
- qi: z.ZodOptional<z.ZodString>;
108
- use: z.ZodOptional<z.ZodString>;
109
- x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
110
- x5t: z.ZodOptional<z.ZodString>;
111
- 'x5t#S256': z.ZodOptional<z.ZodString>;
112
- x5u: z.ZodOptional<z.ZodString>;
113
- }, z.core.$loose>>;
114
- }, z.core.$loose>>;
115
- vp_formats: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
116
- alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
117
- }, z.core.$loose>>>;
118
- vp_formats_supported: z.ZodOptional<z.ZodObject<{
119
- 'dc+sd-jwt': z.ZodOptional<z.ZodObject<{
120
- 'sd-jwt_alg_values': z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
121
- 'kb-jwt_alg_values': z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
122
- }, z.core.$loose>>;
123
- jwt_vc_json: z.ZodOptional<z.ZodObject<{
124
- alg_values: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
125
- }, z.core.$loose>>;
126
- ldp_vc: z.ZodOptional<z.ZodObject<{
127
- proof_type_values: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
128
- cryptosuite_values: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
129
- }, z.core.$loose>>;
130
- mso_mdoc: z.ZodOptional<z.ZodObject<{
131
- issuer_signed_alg_values: z.ZodOptional<z.ZodTuple<[z.ZodNumber], z.ZodNumber>>;
132
- device_signed_alg_values: z.ZodOptional<z.ZodTuple<[z.ZodNumber], z.ZodNumber>>;
133
- issuerauth_alg_values: z.ZodOptional<z.ZodTuple<[z.ZodNumber], z.ZodNumber>>;
134
- deviceauth_alg_values: z.ZodOptional<z.ZodTuple<[z.ZodNumber], z.ZodNumber>>;
135
- }, z.core.$loose>>;
136
- }, z.core.$catchall<z.ZodObject<{}, z.core.$loose>>>>;
137
- encrypted_response_enc_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
138
- }, z.core.$loose>>;
139
- client_metadata_uri: z.ZodOptional<z.ZodURL>;
140
- state: z.ZodOptional<z.ZodString>;
141
- transaction_data: z.ZodOptional<z.ZodArray<z.ZodBase64URL>>;
142
- trust_chain: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
143
- client_id_scheme: z.ZodOptional<z.ZodEnum<{
144
- redirect_uri: "redirect_uri";
145
- "pre-registered": "pre-registered";
146
- entity_id: "entity_id";
147
- did: "did";
148
- verifier_attestation: "verifier_attestation";
149
- x509_san_dns: "x509_san_dns";
150
- x509_san_uri: "x509_san_uri";
151
- x509_hash: "x509_hash";
152
- }>>;
153
- verifier_attestations: z.ZodOptional<z.ZodArray<z.ZodObject<{
154
- format: z.ZodString;
155
- data: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodString]>;
156
- credential_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
157
- }, z.core.$strip>>>;
158
- verifier_info: z.ZodOptional<z.ZodArray<z.ZodObject<{
159
- format: z.ZodString;
160
- data: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodString]>;
161
- credential_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
162
- }, z.core.$strip>>>;
163
- }, z.core.$loose>;
164
- type Openid4vpAuthorizationRequest = z.infer<typeof zOpenid4vpAuthorizationRequest>;
165
- //#endregion
166
- //#region src/authorization-request/validate-authorization-request.d.ts
167
- interface WalletVerificationOptions {
168
- expectedNonce?: string;
169
- metadata?: WalletMetadata;
170
- }
171
- interface ValidateOpenid4vpAuthorizationRequestPayloadOptions {
172
- params: Openid4vpAuthorizationRequest;
173
- walletVerificationOptions?: WalletVerificationOptions;
174
- }
175
- /**
176
- * Validate the OpenId4Vp Authorization Request parameters
177
- */
178
- declare const validateOpenid4vpAuthorizationRequestPayload: (options: ValidateOpenid4vpAuthorizationRequestPayloadOptions) => void;
179
- //#endregion
180
- //#region src/jar/z-jar-authorization-request.d.ts
181
- declare const zOpenid4vpJarAuthorizationRequest: z.ZodObject<{
182
- request: z.ZodOptional<z.ZodString>;
183
- request_uri: z.ZodOptional<z.ZodURL>;
184
- client_id: z.ZodOptional<z.ZodString>;
185
- request_uri_method: z.ZodOptional<z.ZodString>;
186
- }, z.core.$loose>;
187
- type Openid4vpJarAuthorizationRequest = z.infer<typeof zOpenid4vpJarAuthorizationRequest>;
188
- //#endregion
189
- //#region src/authorization-request/z-authorization-request-dc-api.d.ts
190
- declare const zOpenid4vpAuthorizationRequestDcApi: z.ZodObject<{
191
- response_type: z.ZodLiteral<"vp_token">;
192
- nonce: z.ZodString;
193
- presentation_definition: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>>;
194
- dcql_query: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>>;
195
- client_metadata: z.ZodOptional<z.ZodObject<{
196
- logo_uri: z.ZodOptional<z.ZodUnion<[z.ZodURL, z.ZodString]>>;
197
- client_name: z.ZodOptional<z.ZodString>;
198
- authorization_signed_response_alg: z.ZodOptional<z.ZodString>;
199
- authorization_encrypted_response_alg: z.ZodOptional<z.ZodString>;
200
- authorization_encrypted_response_enc: z.ZodOptional<z.ZodOptional<z.ZodString>>;
201
- jwks_uri: z.ZodOptional<z.ZodURL>;
202
- jwks: z.ZodOptional<z.ZodObject<{
203
- keys: z.ZodArray<z.ZodObject<{
204
- kty: z.ZodString;
205
- crv: z.ZodOptional<z.ZodString>;
206
- x: z.ZodOptional<z.ZodString>;
207
- y: z.ZodOptional<z.ZodString>;
208
- e: z.ZodOptional<z.ZodString>;
209
- n: z.ZodOptional<z.ZodString>;
210
- alg: z.ZodOptional<z.ZodString>;
211
- d: z.ZodOptional<z.ZodString>;
212
- dp: z.ZodOptional<z.ZodString>;
213
- dq: z.ZodOptional<z.ZodString>;
214
- ext: z.ZodOptional<z.ZodBoolean>;
215
- k: z.ZodOptional<z.ZodString>;
216
- key_ops: z.ZodOptional<z.ZodArray<z.ZodString>>;
217
- kid: z.ZodOptional<z.ZodString>;
218
- oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
219
- d: z.ZodOptional<z.ZodString>;
220
- r: z.ZodOptional<z.ZodString>;
221
- t: z.ZodOptional<z.ZodString>;
222
- }, z.core.$loose>>>;
223
- p: z.ZodOptional<z.ZodString>;
224
- q: z.ZodOptional<z.ZodString>;
225
- qi: z.ZodOptional<z.ZodString>;
226
- use: z.ZodOptional<z.ZodString>;
227
- x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
228
- x5t: z.ZodOptional<z.ZodString>;
229
- 'x5t#S256': z.ZodOptional<z.ZodString>;
230
- x5u: z.ZodOptional<z.ZodString>;
231
- }, z.core.$loose>>;
232
- }, z.core.$loose>>;
233
- vp_formats: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
234
- alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
235
- }, z.core.$loose>>>;
236
- vp_formats_supported: z.ZodOptional<z.ZodObject<{
237
- 'dc+sd-jwt': z.ZodOptional<z.ZodObject<{
238
- 'sd-jwt_alg_values': z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
239
- 'kb-jwt_alg_values': z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
240
- }, z.core.$loose>>;
241
- jwt_vc_json: z.ZodOptional<z.ZodObject<{
242
- alg_values: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
243
- }, z.core.$loose>>;
244
- ldp_vc: z.ZodOptional<z.ZodObject<{
245
- proof_type_values: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
246
- cryptosuite_values: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
247
- }, z.core.$loose>>;
248
- mso_mdoc: z.ZodOptional<z.ZodObject<{
249
- issuer_signed_alg_values: z.ZodOptional<z.ZodTuple<[z.ZodNumber], z.ZodNumber>>;
250
- device_signed_alg_values: z.ZodOptional<z.ZodTuple<[z.ZodNumber], z.ZodNumber>>;
251
- issuerauth_alg_values: z.ZodOptional<z.ZodTuple<[z.ZodNumber], z.ZodNumber>>;
252
- deviceauth_alg_values: z.ZodOptional<z.ZodTuple<[z.ZodNumber], z.ZodNumber>>;
253
- }, z.core.$loose>>;
254
- }, z.core.$catchall<z.ZodObject<{}, z.core.$loose>>>>;
255
- encrypted_response_enc_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
256
- }, z.core.$loose>>;
257
- state: z.ZodOptional<z.ZodString>;
258
- transaction_data: z.ZodOptional<z.ZodArray<z.ZodBase64URL>>;
259
- trust_chain: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
260
- verifier_attestations: z.ZodOptional<z.ZodArray<z.ZodObject<{
261
- format: z.ZodString;
262
- data: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodString]>;
263
- credential_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
264
- }, z.core.$strip>>>;
265
- verifier_info: z.ZodOptional<z.ZodArray<z.ZodObject<{
266
- format: z.ZodString;
267
- data: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodString]>;
268
- credential_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
269
- }, z.core.$strip>>>;
270
- client_id: z.ZodOptional<z.ZodString>;
271
- expected_origins: z.ZodOptional<z.ZodArray<z.ZodString>>;
272
- response_mode: z.ZodEnum<{
273
- dc_api: "dc_api";
274
- "dc_api.jwt": "dc_api.jwt";
275
- "w3c_dc_api.jwt": "w3c_dc_api.jwt";
276
- w3c_dc_api: "w3c_dc_api";
277
- }>;
278
- client_id_scheme: z.ZodOptional<z.ZodNever>;
279
- scope: z.ZodOptional<z.ZodNever>;
280
- }, z.core.$loose>;
281
- type Openid4vpAuthorizationRequestDcApi = z.infer<typeof zOpenid4vpAuthorizationRequestDcApi>;
282
- declare function isOpenid4vpAuthorizationRequestDcApi(request: Openid4vpAuthorizationRequest | Openid4vpAuthorizationRequestDcApi | Openid4vpJarAuthorizationRequest): request is Openid4vpAuthorizationRequestDcApi;
283
- //#endregion
284
- //#region src/authorization-request/create-authorization-request.d.ts
285
- interface CreateOpenid4vpAuthorizationRequestOptions {
286
- scheme?: string;
287
- authorizationRequestPayload: Openid4vpAuthorizationRequest | Openid4vpAuthorizationRequestDcApi;
288
- jar?: Pick<CreateJarAuthorizationRequestOptions, 'additionalJwtPayload' | 'requestUri' | 'jwtSigner' | 'expiresInSeconds'>;
289
- wallet?: WalletVerificationOptions;
290
- callbacks: Pick<CallbackContext, 'signJwt' | 'encryptJwe'>;
291
- /**
292
- * Date that should be used as now. If not provided current date will be used.
293
- */
294
- now?: Date;
295
- }
296
- /**
297
- * Creates an OpenID4VP authorization request, optionally with a JWT Secured Authorization Request (JAR)
298
- * If the request is created after receiving wallet metadata via a POST to the request_uri endpoint, the wallet nonce needs to be provided
299
- *
300
- * @param options Configuration options for creating the authorization request
301
- * @param input.scheme Optional URI scheme to use (defaults to 'openid4vp://')
302
- * @param input.authorizationRequestPayload The OpenID4VP authorization request parameters
303
- * @param input.jar Optional JWT Secured Authorization Request (JAR) configuration
304
- * @param input.jar.requestUri The URI where the JAR will be accessible
305
- * @param input.jar.jwtSigner Function to sign the JAR JWT
306
- * @param input.jar.jweEncryptor Optional function to encrypt the JAR JWT
307
- * @param input.jar.additionalJwtPayload Optional additional claims to include in JAR JWT
308
- * @param input.wallet Optional wallet-specific parameters
309
- * @param input.wallet.nonce Optional wallet nonce
310
- * @param input.callbacks Callback functions for JWT operations
311
- * @returns Object containing the authorization request parameters, URI and optional JAR details
312
- */
313
- declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAuthorizationRequestOptions): Promise<{
314
- authorizationRequestPayload: {
315
- [x: string]: unknown;
316
- response_type: "vp_token";
317
- client_id: string;
318
- nonce: string;
319
- redirect_uri?: string | undefined;
320
- response_uri?: string | undefined;
321
- request_uri?: string | undefined;
322
- request_uri_method?: string | undefined;
323
- response_mode?: "direct_post" | "direct_post.jwt" | undefined;
324
- wallet_nonce?: string | undefined;
325
- scope?: string | undefined;
326
- presentation_definition?: any;
327
- presentation_definition_uri?: string | undefined;
328
- dcql_query?: any;
329
- client_metadata?: {
330
- [x: string]: unknown;
331
- logo_uri?: string | undefined;
332
- client_name?: string | undefined;
333
- authorization_signed_response_alg?: string | undefined;
334
- authorization_encrypted_response_alg?: string | undefined;
335
- authorization_encrypted_response_enc?: string | undefined;
336
- jwks_uri?: string | undefined;
337
- jwks?: {
338
- [x: string]: unknown;
339
- keys: {
340
- [x: string]: unknown;
341
- kty: string;
342
- crv?: string | undefined;
343
- x?: string | undefined;
344
- y?: string | undefined;
345
- e?: string | undefined;
346
- n?: string | undefined;
347
- alg?: string | undefined;
348
- d?: string | undefined;
349
- dp?: string | undefined;
350
- dq?: string | undefined;
351
- ext?: boolean | undefined;
352
- k?: string | undefined;
353
- key_ops?: string[] | undefined;
354
- kid?: string | undefined;
355
- oth?: {
356
- [x: string]: unknown;
357
- d?: string | undefined;
358
- r?: string | undefined;
359
- t?: string | undefined;
360
- }[] | undefined;
361
- p?: string | undefined;
362
- q?: string | undefined;
363
- qi?: string | undefined;
364
- use?: string | undefined;
365
- x5c?: string[] | undefined;
366
- x5t?: string | undefined;
367
- 'x5t#S256'?: string | undefined;
368
- x5u?: string | undefined;
369
- }[];
370
- } | undefined;
371
- vp_formats?: Record<string, {
372
- [x: string]: unknown;
373
- alg_values_supported?: string[] | undefined;
374
- }> | undefined;
375
- vp_formats_supported?: {
376
- [x: string]: {
377
- [x: string]: unknown;
378
- };
379
- 'dc+sd-jwt'?: {
380
- [x: string]: unknown;
381
- 'sd-jwt_alg_values'?: [string, ...string[]] | undefined;
382
- 'kb-jwt_alg_values'?: [string, ...string[]] | undefined;
383
- } | undefined;
384
- jwt_vc_json?: {
385
- [x: string]: unknown;
386
- alg_values?: [string, ...string[]] | undefined;
387
- } | undefined;
388
- ldp_vc?: {
389
- [x: string]: unknown;
390
- proof_type_values?: [string, ...string[]] | undefined;
391
- cryptosuite_values?: [string, ...string[]] | undefined;
392
- } | undefined;
393
- mso_mdoc?: {
394
- [x: string]: unknown;
395
- issuer_signed_alg_values?: [number, ...number[]] | undefined;
396
- device_signed_alg_values?: [number, ...number[]] | undefined;
397
- issuerauth_alg_values?: [number, ...number[]] | undefined;
398
- deviceauth_alg_values?: [number, ...number[]] | undefined;
399
- } | undefined;
400
- } | undefined;
401
- encrypted_response_enc_values_supported?: string[] | undefined;
402
- } | undefined;
403
- client_metadata_uri?: string | undefined;
404
- state?: string | undefined;
405
- transaction_data?: string[] | undefined;
406
- trust_chain?: [string, ...string[]] | undefined;
407
- client_id_scheme?: "redirect_uri" | "pre-registered" | "entity_id" | "did" | "verifier_attestation" | "x509_san_dns" | "x509_san_uri" | "x509_hash" | undefined;
408
- verifier_attestations?: {
409
- format: string;
410
- data: string | Record<string, unknown>;
411
- credential_ids?: string[] | undefined;
412
- }[] | undefined;
413
- verifier_info?: {
414
- format: string;
415
- data: string | Record<string, unknown>;
416
- credential_ids?: string[] | undefined;
417
- }[] | undefined;
418
- } | {
419
- [x: string]: unknown;
420
- response_type: "vp_token";
421
- nonce: string;
422
- response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
423
- presentation_definition?: any;
424
- dcql_query?: any;
425
- client_metadata?: {
426
- [x: string]: unknown;
427
- logo_uri?: string | undefined;
428
- client_name?: string | undefined;
429
- authorization_signed_response_alg?: string | undefined;
430
- authorization_encrypted_response_alg?: string | undefined;
431
- authorization_encrypted_response_enc?: string | undefined;
432
- jwks_uri?: string | undefined;
433
- jwks?: {
434
- [x: string]: unknown;
435
- keys: {
436
- [x: string]: unknown;
437
- kty: string;
438
- crv?: string | undefined;
439
- x?: string | undefined;
440
- y?: string | undefined;
441
- e?: string | undefined;
442
- n?: string | undefined;
443
- alg?: string | undefined;
444
- d?: string | undefined;
445
- dp?: string | undefined;
446
- dq?: string | undefined;
447
- ext?: boolean | undefined;
448
- k?: string | undefined;
449
- key_ops?: string[] | undefined;
450
- kid?: string | undefined;
451
- oth?: {
452
- [x: string]: unknown;
453
- d?: string | undefined;
454
- r?: string | undefined;
455
- t?: string | undefined;
456
- }[] | undefined;
457
- p?: string | undefined;
458
- q?: string | undefined;
459
- qi?: string | undefined;
460
- use?: string | undefined;
461
- x5c?: string[] | undefined;
462
- x5t?: string | undefined;
463
- 'x5t#S256'?: string | undefined;
464
- x5u?: string | undefined;
465
- }[];
466
- } | undefined;
467
- vp_formats?: Record<string, {
468
- [x: string]: unknown;
469
- alg_values_supported?: string[] | undefined;
470
- }> | undefined;
471
- vp_formats_supported?: {
472
- [x: string]: {
473
- [x: string]: unknown;
474
- };
475
- 'dc+sd-jwt'?: {
476
- [x: string]: unknown;
477
- 'sd-jwt_alg_values'?: [string, ...string[]] | undefined;
478
- 'kb-jwt_alg_values'?: [string, ...string[]] | undefined;
479
- } | undefined;
480
- jwt_vc_json?: {
481
- [x: string]: unknown;
482
- alg_values?: [string, ...string[]] | undefined;
483
- } | undefined;
484
- ldp_vc?: {
485
- [x: string]: unknown;
486
- proof_type_values?: [string, ...string[]] | undefined;
487
- cryptosuite_values?: [string, ...string[]] | undefined;
488
- } | undefined;
489
- mso_mdoc?: {
490
- [x: string]: unknown;
491
- issuer_signed_alg_values?: [number, ...number[]] | undefined;
492
- device_signed_alg_values?: [number, ...number[]] | undefined;
493
- issuerauth_alg_values?: [number, ...number[]] | undefined;
494
- deviceauth_alg_values?: [number, ...number[]] | undefined;
495
- } | undefined;
496
- } | undefined;
497
- encrypted_response_enc_values_supported?: string[] | undefined;
498
- } | undefined;
499
- state?: string | undefined;
500
- transaction_data?: string[] | undefined;
501
- trust_chain?: [string, ...string[]] | undefined;
502
- verifier_attestations?: {
503
- format: string;
504
- data: string | Record<string, unknown>;
505
- credential_ids?: string[] | undefined;
506
- }[] | undefined;
507
- verifier_info?: {
508
- format: string;
509
- data: string | Record<string, unknown>;
510
- credential_ids?: string[] | undefined;
511
- }[] | undefined;
512
- client_id?: string | undefined;
513
- expected_origins?: string[] | undefined;
514
- client_id_scheme?: undefined;
515
- scope?: undefined;
516
- };
517
- authorizationRequestObject: {
518
- [x: string]: unknown;
519
- request?: string | undefined;
520
- request_uri?: string | undefined;
521
- client_id?: string | undefined;
522
- };
523
- authorizationRequest: string;
524
- jar: {
525
- jarAuthorizationRequest: {
526
- [x: string]: unknown;
527
- request?: string | undefined;
528
- request_uri?: string | undefined;
529
- client_id?: string | undefined;
530
- };
531
- signerJwk: {
532
- [x: string]: unknown;
533
- kty: string;
534
- crv?: string | undefined;
535
- x?: string | undefined;
536
- y?: string | undefined;
537
- e?: string | undefined;
538
- n?: string | undefined;
539
- alg?: string | undefined;
540
- d?: string | undefined;
541
- dp?: string | undefined;
542
- dq?: string | undefined;
543
- ext?: boolean | undefined;
544
- k?: string | undefined;
545
- key_ops?: string[] | undefined;
546
- kid?: string | undefined;
547
- oth?: {
548
- [x: string]: unknown;
549
- d?: string | undefined;
550
- r?: string | undefined;
551
- t?: string | undefined;
552
- }[] | undefined;
553
- p?: string | undefined;
554
- q?: string | undefined;
555
- qi?: string | undefined;
556
- use?: string | undefined;
557
- x5c?: string[] | undefined;
558
- x5t?: string | undefined;
559
- 'x5t#S256'?: string | undefined;
560
- x5u?: string | undefined;
561
- };
562
- encryptionJwk: {
563
- [x: string]: unknown;
564
- kty: string;
565
- crv?: string | undefined;
566
- x?: string | undefined;
567
- y?: string | undefined;
568
- e?: string | undefined;
569
- n?: string | undefined;
570
- alg?: string | undefined;
571
- d?: string | undefined;
572
- dp?: string | undefined;
573
- dq?: string | undefined;
574
- ext?: boolean | undefined;
575
- k?: string | undefined;
576
- key_ops?: string[] | undefined;
577
- kid?: string | undefined;
578
- oth?: {
579
- [x: string]: unknown;
580
- d?: string | undefined;
581
- r?: string | undefined;
582
- t?: string | undefined;
583
- }[] | undefined;
584
- p?: string | undefined;
585
- q?: string | undefined;
586
- qi?: string | undefined;
587
- use?: string | undefined;
588
- x5c?: string[] | undefined;
589
- x5t?: string | undefined;
590
- 'x5t#S256'?: string | undefined;
591
- x5u?: string | undefined;
592
- } | undefined;
593
- authorizationRequestJwt: string;
594
- additionalJwtPayload?: Record<string, unknown> | undefined;
595
- requestUri?: string | undefined;
596
- jwtSigner: _openid4vc_oauth20.JwtSigner;
597
- expiresInSeconds: number;
598
- };
599
- } | {
600
- authorizationRequestPayload: {
601
- [x: string]: unknown;
602
- response_type: "vp_token";
603
- client_id: string;
604
- nonce: string;
605
- redirect_uri?: string | undefined;
606
- response_uri?: string | undefined;
607
- request_uri?: string | undefined;
608
- request_uri_method?: string | undefined;
609
- response_mode?: "direct_post" | "direct_post.jwt" | undefined;
610
- wallet_nonce?: string | undefined;
611
- scope?: string | undefined;
612
- presentation_definition?: any;
613
- presentation_definition_uri?: string | undefined;
614
- dcql_query?: any;
615
- client_metadata?: {
616
- [x: string]: unknown;
617
- logo_uri?: string | undefined;
618
- client_name?: string | undefined;
619
- authorization_signed_response_alg?: string | undefined;
620
- authorization_encrypted_response_alg?: string | undefined;
621
- authorization_encrypted_response_enc?: string | undefined;
622
- jwks_uri?: string | undefined;
623
- jwks?: {
624
- [x: string]: unknown;
625
- keys: {
626
- [x: string]: unknown;
627
- kty: string;
628
- crv?: string | undefined;
629
- x?: string | undefined;
630
- y?: string | undefined;
631
- e?: string | undefined;
632
- n?: string | undefined;
633
- alg?: string | undefined;
634
- d?: string | undefined;
635
- dp?: string | undefined;
636
- dq?: string | undefined;
637
- ext?: boolean | undefined;
638
- k?: string | undefined;
639
- key_ops?: string[] | undefined;
640
- kid?: string | undefined;
641
- oth?: {
642
- [x: string]: unknown;
643
- d?: string | undefined;
644
- r?: string | undefined;
645
- t?: string | undefined;
646
- }[] | undefined;
647
- p?: string | undefined;
648
- q?: string | undefined;
649
- qi?: string | undefined;
650
- use?: string | undefined;
651
- x5c?: string[] | undefined;
652
- x5t?: string | undefined;
653
- 'x5t#S256'?: string | undefined;
654
- x5u?: string | undefined;
655
- }[];
656
- } | undefined;
657
- vp_formats?: Record<string, {
658
- [x: string]: unknown;
659
- alg_values_supported?: string[] | undefined;
660
- }> | undefined;
661
- vp_formats_supported?: {
662
- [x: string]: {
663
- [x: string]: unknown;
664
- };
665
- 'dc+sd-jwt'?: {
666
- [x: string]: unknown;
667
- 'sd-jwt_alg_values'?: [string, ...string[]] | undefined;
668
- 'kb-jwt_alg_values'?: [string, ...string[]] | undefined;
669
- } | undefined;
670
- jwt_vc_json?: {
671
- [x: string]: unknown;
672
- alg_values?: [string, ...string[]] | undefined;
673
- } | undefined;
674
- ldp_vc?: {
675
- [x: string]: unknown;
676
- proof_type_values?: [string, ...string[]] | undefined;
677
- cryptosuite_values?: [string, ...string[]] | undefined;
678
- } | undefined;
679
- mso_mdoc?: {
680
- [x: string]: unknown;
681
- issuer_signed_alg_values?: [number, ...number[]] | undefined;
682
- device_signed_alg_values?: [number, ...number[]] | undefined;
683
- issuerauth_alg_values?: [number, ...number[]] | undefined;
684
- deviceauth_alg_values?: [number, ...number[]] | undefined;
685
- } | undefined;
686
- } | undefined;
687
- encrypted_response_enc_values_supported?: string[] | undefined;
688
- } | undefined;
689
- client_metadata_uri?: string | undefined;
690
- state?: string | undefined;
691
- transaction_data?: string[] | undefined;
692
- trust_chain?: [string, ...string[]] | undefined;
693
- client_id_scheme?: "redirect_uri" | "pre-registered" | "entity_id" | "did" | "verifier_attestation" | "x509_san_dns" | "x509_san_uri" | "x509_hash" | undefined;
694
- verifier_attestations?: {
695
- format: string;
696
- data: string | Record<string, unknown>;
697
- credential_ids?: string[] | undefined;
698
- }[] | undefined;
699
- verifier_info?: {
700
- format: string;
701
- data: string | Record<string, unknown>;
702
- credential_ids?: string[] | undefined;
703
- }[] | undefined;
704
- } | {
705
- [x: string]: unknown;
706
- response_type: "vp_token";
707
- nonce: string;
708
- response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
709
- presentation_definition?: any;
710
- dcql_query?: any;
711
- client_metadata?: {
712
- [x: string]: unknown;
713
- logo_uri?: string | undefined;
714
- client_name?: string | undefined;
715
- authorization_signed_response_alg?: string | undefined;
716
- authorization_encrypted_response_alg?: string | undefined;
717
- authorization_encrypted_response_enc?: string | undefined;
718
- jwks_uri?: string | undefined;
719
- jwks?: {
720
- [x: string]: unknown;
721
- keys: {
722
- [x: string]: unknown;
723
- kty: string;
724
- crv?: string | undefined;
725
- x?: string | undefined;
726
- y?: string | undefined;
727
- e?: string | undefined;
728
- n?: string | undefined;
729
- alg?: string | undefined;
730
- d?: string | undefined;
731
- dp?: string | undefined;
732
- dq?: string | undefined;
733
- ext?: boolean | undefined;
734
- k?: string | undefined;
735
- key_ops?: string[] | undefined;
736
- kid?: string | undefined;
737
- oth?: {
738
- [x: string]: unknown;
739
- d?: string | undefined;
740
- r?: string | undefined;
741
- t?: string | undefined;
742
- }[] | undefined;
743
- p?: string | undefined;
744
- q?: string | undefined;
745
- qi?: string | undefined;
746
- use?: string | undefined;
747
- x5c?: string[] | undefined;
748
- x5t?: string | undefined;
749
- 'x5t#S256'?: string | undefined;
750
- x5u?: string | undefined;
751
- }[];
752
- } | undefined;
753
- vp_formats?: Record<string, {
754
- [x: string]: unknown;
755
- alg_values_supported?: string[] | undefined;
756
- }> | undefined;
757
- vp_formats_supported?: {
758
- [x: string]: {
759
- [x: string]: unknown;
760
- };
761
- 'dc+sd-jwt'?: {
762
- [x: string]: unknown;
763
- 'sd-jwt_alg_values'?: [string, ...string[]] | undefined;
764
- 'kb-jwt_alg_values'?: [string, ...string[]] | undefined;
765
- } | undefined;
766
- jwt_vc_json?: {
767
- [x: string]: unknown;
768
- alg_values?: [string, ...string[]] | undefined;
769
- } | undefined;
770
- ldp_vc?: {
771
- [x: string]: unknown;
772
- proof_type_values?: [string, ...string[]] | undefined;
773
- cryptosuite_values?: [string, ...string[]] | undefined;
774
- } | undefined;
775
- mso_mdoc?: {
776
- [x: string]: unknown;
777
- issuer_signed_alg_values?: [number, ...number[]] | undefined;
778
- device_signed_alg_values?: [number, ...number[]] | undefined;
779
- issuerauth_alg_values?: [number, ...number[]] | undefined;
780
- deviceauth_alg_values?: [number, ...number[]] | undefined;
781
- } | undefined;
782
- } | undefined;
783
- encrypted_response_enc_values_supported?: string[] | undefined;
784
- } | undefined;
785
- state?: string | undefined;
786
- transaction_data?: string[] | undefined;
787
- trust_chain?: [string, ...string[]] | undefined;
788
- verifier_attestations?: {
789
- format: string;
790
- data: string | Record<string, unknown>;
791
- credential_ids?: string[] | undefined;
792
- }[] | undefined;
793
- verifier_info?: {
794
- format: string;
795
- data: string | Record<string, unknown>;
796
- credential_ids?: string[] | undefined;
797
- }[] | undefined;
798
- client_id?: string | undefined;
799
- expected_origins?: string[] | undefined;
800
- client_id_scheme?: undefined;
801
- scope?: undefined;
802
- };
803
- authorizationRequestObject: {
804
- [x: string]: unknown;
805
- response_type: "vp_token";
806
- client_id: string;
807
- nonce: string;
808
- redirect_uri?: string | undefined;
809
- response_uri?: string | undefined;
810
- request_uri?: string | undefined;
811
- request_uri_method?: string | undefined;
812
- response_mode?: "direct_post" | "direct_post.jwt" | undefined;
813
- wallet_nonce?: string | undefined;
814
- scope?: string | undefined;
815
- presentation_definition?: any;
816
- presentation_definition_uri?: string | undefined;
817
- dcql_query?: any;
818
- client_metadata?: {
819
- [x: string]: unknown;
820
- logo_uri?: string | undefined;
821
- client_name?: string | undefined;
822
- authorization_signed_response_alg?: string | undefined;
823
- authorization_encrypted_response_alg?: string | undefined;
824
- authorization_encrypted_response_enc?: string | undefined;
825
- jwks_uri?: string | undefined;
826
- jwks?: {
827
- [x: string]: unknown;
828
- keys: {
829
- [x: string]: unknown;
830
- kty: string;
831
- crv?: string | undefined;
832
- x?: string | undefined;
833
- y?: string | undefined;
834
- e?: string | undefined;
835
- n?: string | undefined;
836
- alg?: string | undefined;
837
- d?: string | undefined;
838
- dp?: string | undefined;
839
- dq?: string | undefined;
840
- ext?: boolean | undefined;
841
- k?: string | undefined;
842
- key_ops?: string[] | undefined;
843
- kid?: string | undefined;
844
- oth?: {
845
- [x: string]: unknown;
846
- d?: string | undefined;
847
- r?: string | undefined;
848
- t?: string | undefined;
849
- }[] | undefined;
850
- p?: string | undefined;
851
- q?: string | undefined;
852
- qi?: string | undefined;
853
- use?: string | undefined;
854
- x5c?: string[] | undefined;
855
- x5t?: string | undefined;
856
- 'x5t#S256'?: string | undefined;
857
- x5u?: string | undefined;
858
- }[];
859
- } | undefined;
860
- vp_formats?: Record<string, {
861
- [x: string]: unknown;
862
- alg_values_supported?: string[] | undefined;
863
- }> | undefined;
864
- vp_formats_supported?: {
865
- [x: string]: {
866
- [x: string]: unknown;
867
- };
868
- 'dc+sd-jwt'?: {
869
- [x: string]: unknown;
870
- 'sd-jwt_alg_values'?: [string, ...string[]] | undefined;
871
- 'kb-jwt_alg_values'?: [string, ...string[]] | undefined;
872
- } | undefined;
873
- jwt_vc_json?: {
874
- [x: string]: unknown;
875
- alg_values?: [string, ...string[]] | undefined;
876
- } | undefined;
877
- ldp_vc?: {
878
- [x: string]: unknown;
879
- proof_type_values?: [string, ...string[]] | undefined;
880
- cryptosuite_values?: [string, ...string[]] | undefined;
881
- } | undefined;
882
- mso_mdoc?: {
883
- [x: string]: unknown;
884
- issuer_signed_alg_values?: [number, ...number[]] | undefined;
885
- device_signed_alg_values?: [number, ...number[]] | undefined;
886
- issuerauth_alg_values?: [number, ...number[]] | undefined;
887
- deviceauth_alg_values?: [number, ...number[]] | undefined;
888
- } | undefined;
889
- } | undefined;
890
- encrypted_response_enc_values_supported?: string[] | undefined;
891
- } | undefined;
892
- client_metadata_uri?: string | undefined;
893
- state?: string | undefined;
894
- transaction_data?: string[] | undefined;
895
- trust_chain?: [string, ...string[]] | undefined;
896
- client_id_scheme?: "redirect_uri" | "pre-registered" | "entity_id" | "did" | "verifier_attestation" | "x509_san_dns" | "x509_san_uri" | "x509_hash" | undefined;
897
- verifier_attestations?: {
898
- format: string;
899
- data: string | Record<string, unknown>;
900
- credential_ids?: string[] | undefined;
901
- }[] | undefined;
902
- verifier_info?: {
903
- format: string;
904
- data: string | Record<string, unknown>;
905
- credential_ids?: string[] | undefined;
906
- }[] | undefined;
907
- } | {
908
- [x: string]: unknown;
909
- response_type: "vp_token";
910
- nonce: string;
911
- response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
912
- presentation_definition?: any;
913
- dcql_query?: any;
914
- client_metadata?: {
915
- [x: string]: unknown;
916
- logo_uri?: string | undefined;
917
- client_name?: string | undefined;
918
- authorization_signed_response_alg?: string | undefined;
919
- authorization_encrypted_response_alg?: string | undefined;
920
- authorization_encrypted_response_enc?: string | undefined;
921
- jwks_uri?: string | undefined;
922
- jwks?: {
923
- [x: string]: unknown;
924
- keys: {
925
- [x: string]: unknown;
926
- kty: string;
927
- crv?: string | undefined;
928
- x?: string | undefined;
929
- y?: string | undefined;
930
- e?: string | undefined;
931
- n?: string | undefined;
932
- alg?: string | undefined;
933
- d?: string | undefined;
934
- dp?: string | undefined;
935
- dq?: string | undefined;
936
- ext?: boolean | undefined;
937
- k?: string | undefined;
938
- key_ops?: string[] | undefined;
939
- kid?: string | undefined;
940
- oth?: {
941
- [x: string]: unknown;
942
- d?: string | undefined;
943
- r?: string | undefined;
944
- t?: string | undefined;
945
- }[] | undefined;
946
- p?: string | undefined;
947
- q?: string | undefined;
948
- qi?: string | undefined;
949
- use?: string | undefined;
950
- x5c?: string[] | undefined;
951
- x5t?: string | undefined;
952
- 'x5t#S256'?: string | undefined;
953
- x5u?: string | undefined;
954
- }[];
955
- } | undefined;
956
- vp_formats?: Record<string, {
957
- [x: string]: unknown;
958
- alg_values_supported?: string[] | undefined;
959
- }> | undefined;
960
- vp_formats_supported?: {
961
- [x: string]: {
962
- [x: string]: unknown;
963
- };
964
- 'dc+sd-jwt'?: {
965
- [x: string]: unknown;
966
- 'sd-jwt_alg_values'?: [string, ...string[]] | undefined;
967
- 'kb-jwt_alg_values'?: [string, ...string[]] | undefined;
968
- } | undefined;
969
- jwt_vc_json?: {
970
- [x: string]: unknown;
971
- alg_values?: [string, ...string[]] | undefined;
972
- } | undefined;
973
- ldp_vc?: {
974
- [x: string]: unknown;
975
- proof_type_values?: [string, ...string[]] | undefined;
976
- cryptosuite_values?: [string, ...string[]] | undefined;
977
- } | undefined;
978
- mso_mdoc?: {
979
- [x: string]: unknown;
980
- issuer_signed_alg_values?: [number, ...number[]] | undefined;
981
- device_signed_alg_values?: [number, ...number[]] | undefined;
982
- issuerauth_alg_values?: [number, ...number[]] | undefined;
983
- deviceauth_alg_values?: [number, ...number[]] | undefined;
984
- } | undefined;
985
- } | undefined;
986
- encrypted_response_enc_values_supported?: string[] | undefined;
987
- } | undefined;
988
- state?: string | undefined;
989
- transaction_data?: string[] | undefined;
990
- trust_chain?: [string, ...string[]] | undefined;
991
- verifier_attestations?: {
992
- format: string;
993
- data: string | Record<string, unknown>;
994
- credential_ids?: string[] | undefined;
995
- }[] | undefined;
996
- verifier_info?: {
997
- format: string;
998
- data: string | Record<string, unknown>;
999
- credential_ids?: string[] | undefined;
1000
- }[] | undefined;
1001
- client_id?: string | undefined;
1002
- expected_origins?: string[] | undefined;
1003
- client_id_scheme?: undefined;
1004
- scope?: undefined;
1005
- };
1006
- authorizationRequest: string;
1007
- jar: undefined;
1008
- }>;
1009
- //#endregion
1010
- //#region src/authorization-request/parse-authorization-request-params.d.ts
1011
- interface ParsedJarRequest {
1012
- type: 'jar';
1013
- provided: 'uri' | 'jwt' | 'params';
1014
- params: Openid4vpJarAuthorizationRequest;
1015
- }
1016
- interface ParsedOpenid4vpAuthorizationRequest {
1017
- type: 'openid4vp';
1018
- provided: 'uri' | 'jwt' | 'params';
1019
- params: Openid4vpAuthorizationRequest;
1020
- }
1021
- interface ParsedOpenid4vpDcApiAuthorizationRequest {
1022
- type: 'openid4vp_dc_api';
1023
- provided: 'uri' | 'jwt' | 'params';
1024
- params: Openid4vpAuthorizationRequestDcApi;
1025
- }
1026
- interface ParseOpenid4vpAuthorizationRequestOptions {
1027
- authorizationRequest: string | Record<string, unknown>;
1028
- }
1029
- declare function parseOpenid4vpAuthorizationRequest(options: ParseOpenid4vpAuthorizationRequestOptions): ParsedOpenid4vpAuthorizationRequest | ParsedJarRequest | ParsedOpenid4vpDcApiAuthorizationRequest;
1030
- //#endregion
1031
- //#region src/jar/handle-jar-request/verify-jar-request.d.ts
1032
- interface VerifiedJarRequest {
1033
- authorizationRequestPayload: JarRequestObjectPayload;
1034
- sendBy: 'value' | 'reference';
1035
- decryptionJwk?: Jwk;
1036
- signer: JwtSignerWithJwk;
1037
- jwt: DecodeJwtResult<undefined, typeof zJarRequestObjectPayload>;
1038
- }
1039
- //#endregion
1040
- //#region src/models/z-client-metadata.d.ts
1041
- declare const zClientMetadata: z.ZodObject<{
1042
- logo_uri: z.ZodOptional<z.ZodUnion<[z.ZodURL, z.ZodString]>>;
1043
- client_name: z.ZodOptional<z.ZodString>;
1044
- authorization_signed_response_alg: z.ZodOptional<z.ZodString>;
1045
- authorization_encrypted_response_alg: z.ZodOptional<z.ZodString>;
1046
- authorization_encrypted_response_enc: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1047
- jwks_uri: z.ZodOptional<z.ZodURL>;
1048
- jwks: z.ZodOptional<z.ZodObject<{
1049
- keys: z.ZodArray<z.ZodObject<{
1050
- kty: z.ZodString;
1051
- crv: z.ZodOptional<z.ZodString>;
1052
- x: z.ZodOptional<z.ZodString>;
1053
- y: z.ZodOptional<z.ZodString>;
1054
- e: z.ZodOptional<z.ZodString>;
1055
- n: z.ZodOptional<z.ZodString>;
1056
- alg: z.ZodOptional<z.ZodString>;
1057
- d: z.ZodOptional<z.ZodString>;
1058
- dp: z.ZodOptional<z.ZodString>;
1059
- dq: z.ZodOptional<z.ZodString>;
1060
- ext: z.ZodOptional<z.ZodBoolean>;
1061
- k: z.ZodOptional<z.ZodString>;
1062
- key_ops: z.ZodOptional<z.ZodArray<z.ZodString>>;
1063
- kid: z.ZodOptional<z.ZodString>;
1064
- oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
1065
- d: z.ZodOptional<z.ZodString>;
1066
- r: z.ZodOptional<z.ZodString>;
1067
- t: z.ZodOptional<z.ZodString>;
1068
- }, z.core.$loose>>>;
1069
- p: z.ZodOptional<z.ZodString>;
1070
- q: z.ZodOptional<z.ZodString>;
1071
- qi: z.ZodOptional<z.ZodString>;
1072
- use: z.ZodOptional<z.ZodString>;
1073
- x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
1074
- x5t: z.ZodOptional<z.ZodString>;
1075
- 'x5t#S256': z.ZodOptional<z.ZodString>;
1076
- x5u: z.ZodOptional<z.ZodString>;
1077
- }, z.core.$loose>>;
1078
- }, z.core.$loose>>;
1079
- vp_formats: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1080
- alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
1081
- }, z.core.$loose>>>;
1082
- vp_formats_supported: z.ZodOptional<z.ZodObject<{
1083
- 'dc+sd-jwt': z.ZodOptional<z.ZodObject<{
1084
- 'sd-jwt_alg_values': z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
1085
- 'kb-jwt_alg_values': z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
1086
- }, z.core.$loose>>;
1087
- jwt_vc_json: z.ZodOptional<z.ZodObject<{
1088
- alg_values: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
1089
- }, z.core.$loose>>;
1090
- ldp_vc: z.ZodOptional<z.ZodObject<{
1091
- proof_type_values: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
1092
- cryptosuite_values: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
1093
- }, z.core.$loose>>;
1094
- mso_mdoc: z.ZodOptional<z.ZodObject<{
1095
- issuer_signed_alg_values: z.ZodOptional<z.ZodTuple<[z.ZodNumber], z.ZodNumber>>;
1096
- device_signed_alg_values: z.ZodOptional<z.ZodTuple<[z.ZodNumber], z.ZodNumber>>;
1097
- issuerauth_alg_values: z.ZodOptional<z.ZodTuple<[z.ZodNumber], z.ZodNumber>>;
1098
- deviceauth_alg_values: z.ZodOptional<z.ZodTuple<[z.ZodNumber], z.ZodNumber>>;
1099
- }, z.core.$loose>>;
1100
- }, z.core.$catchall<z.ZodObject<{}, z.core.$loose>>>>;
1101
- encrypted_response_enc_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
1102
- }, z.core.$loose>;
1103
- type ClientMetadata = z.infer<typeof zClientMetadata>;
1104
- //#endregion
1105
- //#region src/version.d.ts
1106
- /**
1107
- * The Openid4vpVersionNumber
1108
- *
1109
- * 100 means 1.0 final, all others are draft versions
1110
- */
1111
- type Openid4vpVersionNumber = 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 100;
1112
- declare function parseAuthorizationRequestVersion(request: Openid4vpAuthorizationRequest | Openid4vpAuthorizationRequestDcApi): Openid4vpVersionNumber;
1113
- //#endregion
1114
- //#region src/client-identifier-prefix/z-client-id-prefix.d.ts
1115
- declare const zClientIdPrefix: z.ZodEnum<{
1116
- redirect_uri: "redirect_uri";
1117
- "pre-registered": "pre-registered";
1118
- did: "did";
1119
- verifier_attestation: "verifier_attestation";
1120
- x509_san_dns: "x509_san_dns";
1121
- x509_san_uri: "x509_san_uri";
1122
- x509_hash: "x509_hash";
1123
- https: "https";
1124
- openid_federation: "openid_federation";
1125
- decentralized_identifier: "decentralized_identifier";
1126
- origin: "origin";
1127
- "web-origin": "web-origin";
1128
- }>;
1129
- declare const zUniformClientIdPrefix: z.ZodEnum<{
1130
- redirect_uri: "redirect_uri";
1131
- "pre-registered": "pre-registered";
1132
- verifier_attestation: "verifier_attestation";
1133
- x509_san_dns: "x509_san_dns";
1134
- x509_san_uri: "x509_san_uri";
1135
- x509_hash: "x509_hash";
1136
- openid_federation: "openid_federation";
1137
- decentralized_identifier: "decentralized_identifier";
1138
- origin: "origin";
1139
- }>;
1140
- type ClientIdPrefix = z.infer<typeof zClientIdPrefix>;
1141
- type UniformClientIdPrefix = z.infer<typeof zUniformClientIdPrefix>;
1142
- declare const zLegacyClientIdScheme: z.ZodEnum<{
1143
- redirect_uri: "redirect_uri";
1144
- "pre-registered": "pre-registered";
1145
- entity_id: "entity_id";
1146
- did: "did";
1147
- verifier_attestation: "verifier_attestation";
1148
- x509_san_dns: "x509_san_dns";
1149
- x509_san_uri: "x509_san_uri";
1150
- }>;
1151
- type LegacyClientIdScheme = z.infer<typeof zLegacyClientIdScheme>;
1152
- //#endregion
1153
- //#region src/client-identifier-prefix/parse-client-identifier-prefix.d.ts
1154
- type ParsedClientIdentifierBase = {
1155
- /**
1156
- * The effective client identifier, and can be used to create and validate the session binding in e.g. the `aud`
1157
- * of the SD-JWT KB-JWT.
1158
- */
1159
- effective: string;
1160
- /**
1161
- * The identifier part of the client id. E.g. `did:example:123` for `decentralized_identifier:did:example:123`
1162
- */
1163
- identifier: string;
1164
- /**
1165
- * These are the original raw unvalidated values for the client id. Be cautious with using these.
1166
- */
1167
- original: {
1168
- /**
1169
- * This is the actual `client_id` parameter. May be undefined in case of unsigned
1170
- * DC API request.
1171
- */
1172
- clientId?: string;
1173
- /**
1174
- * This is the legacy `client_id_scheme` parameter
1175
- */
1176
- clientIdScheme?: LegacyClientIdScheme;
1177
- };
1178
- };
1179
- /**
1180
- * Result of parsing a client identifier
1181
- */
1182
- type ParsedClientIdentifier = ({
1183
- prefix: 'redirect_uri';
1184
- redirectUri: string;
1185
- clientMetadata?: ClientMetadata;
1186
- } | {
1187
- prefix: 'openid_federation';
1188
- trustChain?: unknown;
1189
- clientMetadata?: never;
1190
- } | {
1191
- prefix: 'decentralized_identifier';
1192
- didUrl: string;
1193
- clientMetadata?: ClientMetadata;
1194
- } | {
1195
- prefix: 'x509_san_uri' | 'x509_san_dns' | 'x509_hash';
1196
- clientMetadata?: ClientMetadata;
1197
- x5c: string[];
1198
- } | {
1199
- prefix: 'verifier_attestation' | 'pre-registered' | 'origin';
1200
- clientMetadata?: ClientMetadata;
1201
- }) & ParsedClientIdentifierBase;
1202
- interface GetOpenid4vpClientIdOptions {
1203
- /**
1204
- * The client_id. Could be undefined in case of DC API
1205
- */
1206
- clientId?: string;
1207
- /**
1208
- * Legacy client id scheme from the authorization request payload
1209
- */
1210
- legacyClientIdScheme?: unknown;
1211
- responseMode: unknown;
1212
- origin?: string;
1213
- /**
1214
- * The version of OpenID4VP used.
1215
- *
1216
- * Currently it is only used for:
1217
- * - determining whether effective client id is `origin:` or `web-origin:` when DC API is used.
1218
- *
1219
- * When no version is provided, it is assumed version 1.0 (100) is used.
1220
- */
1221
- version?: Openid4vpVersionNumber;
1222
- }
1223
- /**
1224
- * Get the client id for an authorization request based on the response_mode, client_id, client_id_scheme and origin values.
1225
- *
1226
- * It will return the client id prefix as used in OpenID4VP v1, and optionally provide the legacyClientId if the
1227
- * client id was provided with a client_id_scheme
1228
- */
1229
- declare function getOpenid4vpClientId(options: GetOpenid4vpClientIdOptions): {
1230
- /**
1231
- * The identifier part of the client id. E.g. `did:example:123`, or `https://federation.com`
1232
- */
1233
- clientIdIdentifier: string;
1234
- /**
1235
- * The client id prefix according to the latest verion of OpenID4VP. Older prefixes are
1236
- * transformed into a singular value. Do not use this for checking the actual client id prefix
1237
- * used, but can be used to understand which method is used.
1238
- *
1239
- * E.g. `did` will be put as `decentralized_identifier`
1240
- */
1241
- clientIdPrefix: UniformClientIdPrefix;
1242
- /**
1243
- * The effective client id prefix, is the client id prefix that was used in the actual request.
1244
- *
1245
- * E.g. `did` will remain as `did`
1246
- */
1247
- effectiveClientIdPrefix: ClientIdPrefix | LegacyClientIdScheme;
1248
- /**
1249
- * The effective client id is the client id that should be used for validation. E.g. if you're comparing
1250
- * the `aud` claim in a SD-JWT KB-JWT, this is the value where you should match against.
1251
- */
1252
- effectiveClientId: string;
1253
- /**
1254
- * These are the original raw unvalidated values for the client id
1255
- */
1256
- original: {
1257
- /**
1258
- * This is the actual `client_id` parameter. May be undefined in case of unsigned
1259
- * DC API request.
1260
- */
1261
- clientId?: string;
1262
- /**
1263
- * This is the legacy `client_id_scheme` parameter
1264
- */
1265
- clientIdScheme?: LegacyClientIdScheme;
1266
- };
1267
- };
1268
- //#endregion
1269
- //#region src/models/z-pex.d.ts
1270
- declare const zPexPresentationDefinition: z.ZodRecord<z.ZodString, z.ZodAny>;
1271
- declare const zPexPresentationSubmission: z.ZodRecord<z.ZodString, z.ZodAny>;
1272
- type PexPresentationDefinition = z.infer<typeof zPexPresentationDefinition>;
1273
- type PexPresentationSubmission = z.infer<typeof zPexPresentationSubmission>;
1274
- //#endregion
1275
- //#region src/transaction-data/z-transaction-data.d.ts
1276
- declare const zTransactionEntry: z.ZodObject<{
1277
- type: z.ZodString;
1278
- credential_ids: z.ZodTuple<[z.ZodString], z.ZodString>;
1279
- transaction_data_hashes_alg: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
1280
- }, z.core.$loose>;
1281
- type TransactionDataEntry = z.infer<typeof zTransactionEntry>;
1282
- //#endregion
1283
- //#region src/transaction-data/parse-transaction-data.d.ts
1284
- interface ParseTransactionDataOptions {
1285
- transactionData: string[];
1286
- }
1287
- interface ParsedTransactionDataEntry {
1288
- transactionData: TransactionDataEntry;
1289
- transactionDataIndex: number;
1290
- encoded: string;
1291
- }
1292
- declare function parseTransactionData(options: ParseTransactionDataOptions): ParsedTransactionDataEntry[];
1293
- //#endregion
1294
- //#region src/authorization-request/resolve-authorization-request.d.ts
1295
- interface ResolveOpenid4vpAuthorizationRequestOptions {
1296
- authorizationRequestPayload: Openid4vpAuthorizationRequest | Openid4vpAuthorizationRequestDcApi | Openid4vpJarAuthorizationRequest;
1297
- wallet?: WalletVerificationOptions;
1298
- origin?: string;
1299
- disableOriginValidation?: boolean;
1300
- callbacks: Pick<CallbackContext, 'verifyJwt' | 'decryptJwe' | 'getX509CertificateMetadata' | 'fetch' | 'hash'>;
1301
- }
1302
- type ResolvedOpenid4vpAuthorizationRequest = {
1303
- transactionData?: ParsedTransactionDataEntry[];
1304
- authorizationRequestPayload: Openid4vpAuthorizationRequest | Openid4vpAuthorizationRequestDcApi;
1305
- jar: VerifiedJarRequest | undefined;
1306
- client: ParsedClientIdentifier;
1307
- pex?: {
1308
- presentation_definition?: PexPresentationDefinition;
1309
- presentation_definition_uri?: string;
1310
- };
1311
- dcql?: {
1312
- query: unknown;
1313
- } | undefined;
1314
- /**
1315
- * The highest possible version number based on (draft)-version checks done on the request.
1316
- *
1317
- * 100 means 1.0 final, all other numbers are draft versions.
1318
- */
1319
- version: Openid4vpVersionNumber;
1320
- };
1321
- declare function resolveOpenid4vpAuthorizationRequest(options: ResolveOpenid4vpAuthorizationRequestOptions): Promise<ResolvedOpenid4vpAuthorizationRequest>;
1322
- //#endregion
1323
- //#region src/jarm/metadata/z-jarm-authorization-server-metadata.d.ts
1324
- declare const zJarmServerMetadata: z.ZodObject<{
1325
- authorization_signing_alg_values_supported: z.ZodArray<z.ZodString>;
1326
- authorization_encryption_alg_values_supported: z.ZodArray<z.ZodString>;
1327
- authorization_encryption_enc_values_supported: z.ZodArray<z.ZodString>;
1328
- }, z.core.$strip>;
1329
- type JarmServerMetadata = z.infer<typeof zJarmServerMetadata>;
1330
- //#endregion
1331
- //#region src/authorization-response/z-authorization-response.d.ts
1332
- declare const zOpenid4vpAuthorizationResponse: z.ZodObject<{
1333
- state: z.ZodOptional<z.ZodString>;
1334
- id_token: z.ZodOptional<z.ZodString>;
1335
- vp_token: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodTuple<[z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>], z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>, z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>]>>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodTuple<[z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>], z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>]>;
1336
- presentation_submission: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>>;
1337
- refresh_token: z.ZodOptional<z.ZodString>;
1338
- token_type: z.ZodOptional<z.ZodString>;
1339
- access_token: z.ZodOptional<z.ZodString>;
1340
- expires_in: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1341
- }, z.core.$loose>;
1342
- type Openid4vpAuthorizationResponse = z.infer<typeof zOpenid4vpAuthorizationResponse>;
1343
- //#endregion
1344
- //#region src/authorization-response/create-authorization-response.d.ts
1345
- interface CreateOpenid4vpAuthorizationResponseOptions {
1346
- authorizationRequestPayload: Openid4vpAuthorizationRequest | Openid4vpAuthorizationRequestDcApi;
1347
- /**
1348
- * Optional client metadata to use for sending the authorization response. In case of e.g. OpenID Federation
1349
- * the client metadata needs to be resolved and verified externally.
1350
- */
1351
- clientMetadata?: ClientMetadata;
1352
- /**
1353
- * The origin of the reuqest, required when creating a response for the Digital Credentials API.
1354
- */
1355
- origin?: string;
1356
- authorizationResponsePayload: Openid4vpAuthorizationResponse & {
1357
- state?: never;
1358
- };
1359
- jarm?: {
1360
- jwtSigner?: JwtSigner;
1361
- encryption?: {
1362
- nonce: string;
1363
- /**
1364
- * The JWK that should be used for encryption of the JARM response.
1365
- *
1366
- * If not defined, the Jwk will be determined based on the client_metadata.
1367
- */
1368
- jwk?: Jwk;
1369
- };
1370
- serverMetadata: JarmServerMetadata;
1371
- authorizationServer?: string;
1372
- audience?: string;
1373
- expiresInSeconds?: number;
1374
- };
1375
- callbacks: Pick<CallbackContext, 'signJwt' | 'encryptJwe' | 'fetch'>;
1376
- }
1377
- interface CreateOpenid4vpAuthorizationResponseResult {
1378
- authorizationResponsePayload: Openid4vpAuthorizationResponse;
1379
- jarm?: {
1380
- responseJwt: string;
1381
- /**
1382
- * The JWK used to encrypt the JARM response. Only defined if the response is encrypted.
1383
- */
1384
- encryptionJwk?: Jwk;
1385
- };
1386
- }
1387
- declare function createOpenid4vpAuthorizationResponse(options: CreateOpenid4vpAuthorizationResponseOptions): Promise<CreateOpenid4vpAuthorizationResponseResult>;
1388
- //#endregion
1389
- //#region src/jarm/jarm-authorization-response/verify-jarm-authorization-response.d.ts
1390
- declare enum JarmMode {
1391
- Signed = "Signed",
1392
- Encrypted = "Encrypted",
1393
- SignedEncrypted = "SignedEncrypted",
1394
- }
1395
- interface VerifyJarmAuthorizationResponseOptions {
1396
- jarmAuthorizationResponseJwt: string;
1397
- authorizationRequestPayload: Openid4vpAuthorizationRequest | Openid4vpAuthorizationRequestDcApi;
1398
- /**
1399
- * The client id of the authorization request. This should be the effective client id,
1400
- * meaning that if no client_id was present in the authorization request and DC API is used
1401
- * it should be `web-origin:<origin>` (until draft 24) or `origin:<origin>` (from draft 25)
1402
- */
1403
- expectedClientId: string;
1404
- callbacks: Pick<CallbackContext, 'decryptJwe' | 'verifyJwt'>;
1405
- }
1406
- type VerifiedJarmAuthorizationResponse = Awaited<ReturnType<typeof verifyJarmAuthorizationResponse>>;
1407
- /**
1408
- * Validate a JARM direct_post.jwt compliant authentication response
1409
- * * The decryption key should be resolvable using the the protected header's 'kid' field
1410
- * * The signature verification jwk should be resolvable using the jws protected header's 'kid' field and the payload's 'iss' field.
1411
- */
1412
- declare function verifyJarmAuthorizationResponse(options: VerifyJarmAuthorizationResponseOptions): Promise<{
1413
- jarmAuthorizationResponse: {
1414
- [x: string]: unknown;
1415
- iss: string;
1416
- aud: string | string[];
1417
- exp: number;
1418
- state?: string | undefined;
1419
- iat?: number | undefined;
1420
- nbf?: number | undefined;
1421
- nonce?: string | undefined;
1422
- jti?: string | undefined;
1423
- sub?: string | undefined;
1424
- cnf?: {
1425
- [x: string]: unknown;
1426
- jwk?: {
1427
- [x: string]: unknown;
1428
- kty: string;
1429
- crv?: string | undefined;
1430
- x?: string | undefined;
1431
- y?: string | undefined;
1432
- e?: string | undefined;
1433
- n?: string | undefined;
1434
- alg?: string | undefined;
1435
- d?: string | undefined;
1436
- dp?: string | undefined;
1437
- dq?: string | undefined;
1438
- ext?: boolean | undefined;
1439
- k?: string | undefined;
1440
- key_ops?: string[] | undefined;
1441
- kid?: string | undefined;
1442
- oth?: {
1443
- [x: string]: unknown;
1444
- d?: string | undefined;
1445
- r?: string | undefined;
1446
- t?: string | undefined;
1447
- }[] | undefined;
1448
- p?: string | undefined;
1449
- q?: string | undefined;
1450
- qi?: string | undefined;
1451
- use?: string | undefined;
1452
- x5c?: string[] | undefined;
1453
- x5t?: string | undefined;
1454
- 'x5t#S256'?: string | undefined;
1455
- x5u?: string | undefined;
1456
- } | undefined;
1457
- jkt?: string | undefined;
1458
- } | undefined;
1459
- status?: Record<string, any> | undefined;
1460
- trust_chain?: [string, ...string[]] | undefined;
1461
- } | {
1462
- [x: string]: unknown;
1463
- state?: string | undefined;
1464
- iss?: string | undefined;
1465
- aud?: string | string[] | undefined;
1466
- iat?: number | undefined;
1467
- exp?: number | undefined;
1468
- nbf?: number | undefined;
1469
- nonce?: string | undefined;
1470
- jti?: string | undefined;
1471
- sub?: string | undefined;
1472
- cnf?: {
1473
- [x: string]: unknown;
1474
- jwk?: {
1475
- [x: string]: unknown;
1476
- kty: string;
1477
- crv?: string | undefined;
1478
- x?: string | undefined;
1479
- y?: string | undefined;
1480
- e?: string | undefined;
1481
- n?: string | undefined;
1482
- alg?: string | undefined;
1483
- d?: string | undefined;
1484
- dp?: string | undefined;
1485
- dq?: string | undefined;
1486
- ext?: boolean | undefined;
1487
- k?: string | undefined;
1488
- key_ops?: string[] | undefined;
1489
- kid?: string | undefined;
1490
- oth?: {
1491
- [x: string]: unknown;
1492
- d?: string | undefined;
1493
- r?: string | undefined;
1494
- t?: string | undefined;
1495
- }[] | undefined;
1496
- p?: string | undefined;
1497
- q?: string | undefined;
1498
- qi?: string | undefined;
1499
- use?: string | undefined;
1500
- x5c?: string[] | undefined;
1501
- x5t?: string | undefined;
1502
- 'x5t#S256'?: string | undefined;
1503
- x5u?: string | undefined;
1504
- } | undefined;
1505
- jkt?: string | undefined;
1506
- } | undefined;
1507
- status?: Record<string, any> | undefined;
1508
- trust_chain?: [string, ...string[]] | undefined;
1509
- };
1510
- type: JarmMode;
1511
- issuer: string | undefined;
1512
- decryptionJwk: {
1513
- [x: string]: unknown;
1514
- kty: string;
1515
- crv?: string | undefined;
1516
- x?: string | undefined;
1517
- y?: string | undefined;
1518
- e?: string | undefined;
1519
- n?: string | undefined;
1520
- alg?: string | undefined;
1521
- d?: string | undefined;
1522
- dp?: string | undefined;
1523
- dq?: string | undefined;
1524
- ext?: boolean | undefined;
1525
- k?: string | undefined;
1526
- key_ops?: string[] | undefined;
1527
- kid?: string | undefined;
1528
- oth?: {
1529
- [x: string]: unknown;
1530
- d?: string | undefined;
1531
- r?: string | undefined;
1532
- t?: string | undefined;
1533
- }[] | undefined;
1534
- p?: string | undefined;
1535
- q?: string | undefined;
1536
- qi?: string | undefined;
1537
- use?: string | undefined;
1538
- x5c?: string[] | undefined;
1539
- x5t?: string | undefined;
1540
- 'x5t#S256'?: string | undefined;
1541
- x5u?: string | undefined;
1542
- } | undefined;
1543
- }>;
1544
- //#endregion
1545
- //#region src/jarm/jarm-authorization-response/z-jarm-authorization-response.d.ts
1546
- declare const zJarmHeader: z.ZodObject<{
1547
- apu: z.ZodOptional<z.ZodString>;
1548
- apv: z.ZodOptional<z.ZodString>;
1549
- alg: z.ZodString;
1550
- typ: z.ZodOptional<z.ZodString>;
1551
- kid: z.ZodOptional<z.ZodString>;
1552
- jwk: z.ZodOptional<z.ZodObject<{
1553
- kty: z.ZodString;
1554
- crv: z.ZodOptional<z.ZodString>;
1555
- x: z.ZodOptional<z.ZodString>;
1556
- y: z.ZodOptional<z.ZodString>;
1557
- e: z.ZodOptional<z.ZodString>;
1558
- n: z.ZodOptional<z.ZodString>;
1559
- alg: z.ZodOptional<z.ZodString>;
1560
- d: z.ZodOptional<z.ZodString>;
1561
- dp: z.ZodOptional<z.ZodString>;
1562
- dq: z.ZodOptional<z.ZodString>;
1563
- ext: z.ZodOptional<z.ZodBoolean>;
1564
- k: z.ZodOptional<z.ZodString>;
1565
- key_ops: z.ZodOptional<z.ZodArray<z.ZodString>>;
1566
- kid: z.ZodOptional<z.ZodString>;
1567
- oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
1568
- d: z.ZodOptional<z.ZodString>;
1569
- r: z.ZodOptional<z.ZodString>;
1570
- t: z.ZodOptional<z.ZodString>;
1571
- }, z.core.$loose>>>;
1572
- p: z.ZodOptional<z.ZodString>;
1573
- q: z.ZodOptional<z.ZodString>;
1574
- qi: z.ZodOptional<z.ZodString>;
1575
- use: z.ZodOptional<z.ZodString>;
1576
- x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
1577
- x5t: z.ZodOptional<z.ZodString>;
1578
- 'x5t#S256': z.ZodOptional<z.ZodString>;
1579
- x5u: z.ZodOptional<z.ZodString>;
1580
- }, z.core.$loose>>;
1581
- x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
1582
- trust_chain: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
1583
- }, z.core.$strip>;
1584
- type JarmHeader = z.infer<typeof zJarmHeader>;
1585
- //#endregion
1586
- //#region src/vp-token/z-vp-token.d.ts
1587
- declare const zVpTokenPresentationEntry: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>;
1588
- type VpTokenPresentationEntry = z.infer<typeof zVpTokenPresentationEntry>;
1589
- declare const zVpTokenPex: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodTuple<[z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>], z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>;
1590
- type VpTokenPex = z.infer<typeof zVpTokenPex>;
1591
- declare const zVpTokenDcql: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodTuple<[z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>], z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>, z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>]>>;
1592
- type VpTokenDcql = z.infer<typeof zVpTokenDcql>;
1593
- declare const zVpToken: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodTuple<[z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>], z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>, z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>]>>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodTuple<[z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>], z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>]>;
1594
- type VpToken = z.infer<typeof zVpToken>;
1595
- //#endregion
1596
- //#region src/authorization-response/validate-authorization-response-result.d.ts
1597
- interface ValidateOpenid4VpPexAuthorizationResponseResult {
1598
- type: 'pex';
1599
- pex: {
1600
- presentationSubmission: PexPresentationSubmission;
1601
- presentations: [VpTokenPresentationEntry, ...VpTokenPresentationEntry[]];
1602
- } & ({
1603
- scope: string;
1604
- presentationDefinition?: never;
1605
- } | {
1606
- scope?: never;
1607
- presentationDefinition: Record<string, unknown> | string;
1608
- });
1609
- }
1610
- interface ValidateOpenid4VpDcqlAuthorizationResponseResult {
1611
- type: 'dcql';
1612
- dcql: {
1613
- presentations: Record<string, [VpTokenPresentationEntry, ...VpTokenPresentationEntry[]]>;
1614
- } & ({
1615
- scope: string;
1616
- query?: never;
1617
- } | {
1618
- scope?: never;
1619
- query: unknown;
1620
- });
1621
- }
1622
- type ValidateOpenid4VpAuthorizationResponseResult = ValidateOpenid4VpPexAuthorizationResponseResult | ValidateOpenid4VpDcqlAuthorizationResponseResult;
1623
- //#endregion
1624
- //#region src/authorization-response/parse-authorization-response.d.ts
1625
- interface ParseOpenid4vpAuthorizationResponseOptions {
1626
- /**
1627
- * The authorization response as received from the wallet, and can optionally still be encrypted.
1628
- */
1629
- authorizationResponse: Record<string, unknown>;
1630
- authorizationRequestPayload: Openid4vpAuthorizationRequest | Openid4vpAuthorizationRequestDcApi;
1631
- callbacks: Pick<CallbackContext, 'decryptJwe' | 'verifyJwt'>;
1632
- origin?: string;
1633
- }
1634
- type ParsedOpenid4vpAuthorizationResponse = ValidateOpenid4VpAuthorizationResponseResult & {
1635
- authorizationResponsePayload: Openid4vpAuthorizationResponse;
1636
- expectedNonce: string;
1637
- jarm?: VerifiedJarmAuthorizationResponse & {
1638
- jarmHeader: JarmHeader;
1639
- };
1640
- };
1641
- declare function parseOpenid4vpAuthorizationResponse(options: ParseOpenid4vpAuthorizationResponseOptions): Promise<ParsedOpenid4vpAuthorizationResponse>;
1642
- //#endregion
1643
- //#region src/authorization-response/parse-authorization-response-payload.d.ts
1644
- declare function parseOpenid4VpAuthorizationResponsePayload(payload: Record<string, unknown>): {
1645
- [x: string]: unknown;
1646
- vp_token: string | Record<string, any> | [string | Record<string, any>, ...(string | Record<string, any>)[]] | Record<string, string | Record<string, any> | [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
1647
- state?: string | undefined;
1648
- id_token?: string | undefined;
1649
- presentation_submission?: any;
1650
- refresh_token?: string | undefined;
1651
- token_type?: string | undefined;
1652
- access_token?: string | undefined;
1653
- expires_in?: number | undefined;
1654
- };
1655
- //#endregion
1656
- //#region src/authorization-response/parse-jarm-authorization-response.d.ts
1657
- interface ParseJarmAuthorizationResponseOptions {
1658
- jarmResponseJwt: string;
1659
- authorizationRequestPayload: Openid4vpAuthorizationRequest | Openid4vpAuthorizationRequestDcApi;
1660
- callbacks: Pick<CallbackContext, 'decryptJwe' | 'verifyJwt'>;
1661
- expectedClientId: string;
1662
- }
1663
- declare function parseJarmAuthorizationResponse(options: ParseJarmAuthorizationResponseOptions): Promise<ParsedOpenid4vpAuthorizationResponse>;
1664
- //#endregion
1665
- //#region src/authorization-response/submit-authorization-response.d.ts
1666
- interface SubmitOpenid4vpAuthorizationResponseOptions {
1667
- authorizationRequestPayload: Pick<Openid4vpAuthorizationRequest, 'response_uri'>;
1668
- authorizationResponsePayload: Openid4vpAuthorizationResponse;
1669
- jarm?: {
1670
- responseJwt: string;
1671
- };
1672
- callbacks: Pick<CallbackContext, 'fetch'>;
1673
- }
1674
- declare function submitOpenid4vpAuthorizationResponse(options: SubmitOpenid4vpAuthorizationResponseOptions): Promise<{
1675
- readonly responseMode: "direct_post.jwt";
1676
- readonly response: Response;
1677
- } | {
1678
- responseMode: string;
1679
- response: Response;
1680
- }>;
1681
- //#endregion
1682
- //#region src/authorization-response/validate-authorization-response.d.ts
1683
- interface ValidateOpenid4vpAuthorizationResponseOptions {
1684
- authorizationRequestPayload: Openid4vpAuthorizationRequest | Openid4vpAuthorizationRequestDcApi;
1685
- authorizationResponsePayload: Openid4vpAuthorizationResponse;
1686
- }
1687
- /**
1688
- * The following steps need to be performed outside of this library
1689
- * - verifying the presentations
1690
- * - validating the presentations against the presentation definition
1691
- * - checking the revocation status of the presentations
1692
- * - checking the nonce of the presentations matches the nonce of the request (for mdoc's)
1693
- */
1694
- declare function validateOpenid4vpAuthorizationResponsePayload(options: ValidateOpenid4vpAuthorizationResponseOptions): ValidateOpenid4VpAuthorizationResponseResult;
1695
- //#endregion
1696
- //#region src/client-identifier-prefix/x509-hash.d.ts
1697
- declare function calculateX509HashClientIdPrefixValue({
1698
- x509Certificate,
1699
- hash
1700
- }: {
1701
- /**
1702
- * DER encoded x509 certificate. Either encoded as base64 or directly as Uint8Array
1703
- */
1704
- x509Certificate: string | Uint8Array;
1705
- hash: CallbackContext['hash'];
1706
- }): Promise<string>;
1707
- //#endregion
1708
- //#region src/jarm/jarm-extract-jwks.d.ts
1709
- declare function extractEncryptionJwkFromJwks(jwks: JwkSet, {
1710
- kid,
1711
- supportedAlgValues
1712
- }: {
1713
- kid?: string;
1714
- supportedAlgValues?: string[];
1715
- }): {
1716
- [x: string]: unknown;
1717
- kty: string;
1718
- crv?: string | undefined;
1719
- x?: string | undefined;
1720
- y?: string | undefined;
1721
- e?: string | undefined;
1722
- n?: string | undefined;
1723
- alg?: string | undefined;
1724
- d?: string | undefined;
1725
- dp?: string | undefined;
1726
- dq?: string | undefined;
1727
- ext?: boolean | undefined;
1728
- k?: string | undefined;
1729
- key_ops?: string[] | undefined;
1730
- kid?: string | undefined;
1731
- oth?: {
1732
- [x: string]: unknown;
1733
- d?: string | undefined;
1734
- r?: string | undefined;
1735
- t?: string | undefined;
1736
- }[] | undefined;
1737
- p?: string | undefined;
1738
- q?: string | undefined;
1739
- qi?: string | undefined;
1740
- use?: string | undefined;
1741
- x5c?: string[] | undefined;
1742
- x5t?: string | undefined;
1743
- 'x5t#S256'?: string | undefined;
1744
- x5u?: string | undefined;
1745
- } | undefined;
1746
- //#endregion
1747
- //#region src/jarm/jarm-response-mode.d.ts
1748
- declare const jarmResponseMode: readonly ["jwt", "query.jwt", "fragment.jwt", "form_post.jwt", "direct_post.jwt", "dc_api.jwt"];
1749
- type JarmResponseMode = (typeof jarmResponseMode)[number];
1750
- declare const isJarmResponseMode: (responseMode: string) => responseMode is JarmResponseMode;
1751
- //#endregion
1752
- //#region src/jarm/metadata/z-jarm-client-metadata.d.ts
1753
- /**
1754
- * Clients may register their public encryption keys using the jwks_uri or jwks metadata parameters.
1755
- */
1756
- declare const zJarmClientMetadata: z.ZodObject<{
1757
- authorization_signed_response_alg: z.ZodOptional<z.ZodString>;
1758
- authorization_encrypted_response_alg: z.ZodOptional<z.ZodString>;
1759
- authorization_encrypted_response_enc: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1760
- }, z.core.$strip>;
1761
- type JarmClientMetadata = z.infer<typeof zJarmClientMetadata>;
1762
- //#endregion
1763
- //#region src/models/z-credential-formats.d.ts
1764
- declare const zCredentialFormat: z.ZodEnum<{
1765
- "dc+sd-jwt": "dc+sd-jwt";
1766
- jwt_vc_json: "jwt_vc_json";
1767
- ldp_vc: "ldp_vc";
1768
- mso_mdoc: "mso_mdoc";
1769
- "vc+sd-jwt": "vc+sd-jwt";
1770
- }>;
1771
- type CredentialFormat = z.infer<typeof zCredentialFormat>;
1772
- //#endregion
1773
- //#region src/models/z-proof-formats.d.ts
1774
- declare const zProofFormat: z.ZodEnum<{
1775
- "dc+sd-jwt": "dc+sd-jwt";
1776
- mso_mdoc: "mso_mdoc";
1777
- "vc+sd-jwt": "vc+sd-jwt";
1778
- jwt_vp_json: "jwt_vp_json";
1779
- ldc_vp: "ldc_vp";
1780
- ac_vp: "ac_vp";
1781
- }>;
1782
- type ProofFormat = z.infer<typeof zProofFormat>;
1783
- //#endregion
1784
- //#region src/models/z-verifier-attestations.d.ts
1785
- declare const zVerifierAttestation: z$1.ZodObject<{
1786
- format: z$1.ZodString;
1787
- data: z$1.ZodUnion<[z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>, z$1.ZodString]>;
1788
- credential_ids: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
1789
- }, z$1.core.$strip>;
1790
- declare const zVerifierAttestations: z$1.ZodArray<z$1.ZodObject<{
1791
- format: z$1.ZodString;
1792
- data: z$1.ZodUnion<[z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>, z$1.ZodString]>;
1793
- credential_ids: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
1794
- }, z$1.core.$strip>>;
1795
- type VerifierAttestation = z$1.infer<typeof zVerifierAttestation>;
1796
- type VerifierAttestations = z$1.infer<typeof zVerifierAttestations>;
1797
- //#endregion
1798
- //#region src/Openid4vpClient.d.ts
1799
- interface Openid4vpClientOptions {
1800
- /**
1801
- * Callbacks required for the openid4vp client
1802
- */
1803
- callbacks: Omit<CallbackContext, 'generateRandom' | 'clientAuthentication'>;
1804
- }
1805
- declare class Openid4vpClient {
1806
- private options;
1807
- constructor(options: Openid4vpClientOptions);
1808
- parseOpenid4vpAuthorizationRequest(options: ParseOpenid4vpAuthorizationRequestOptions): ParsedOpenid4vpAuthorizationRequest | ParsedJarRequest | ParsedOpenid4vpDcApiAuthorizationRequest;
1809
- resolveOpenId4vpAuthorizationRequest(options: Omit<ResolveOpenid4vpAuthorizationRequestOptions, 'callbacks'>): Promise<ResolvedOpenid4vpAuthorizationRequest>;
1810
- createOpenid4vpAuthorizationResponse(options: Omit<CreateOpenid4vpAuthorizationResponseOptions, 'callbacks'>): Promise<CreateOpenid4vpAuthorizationResponseResult>;
1811
- submitOpenid4vpAuthorizationResponse(options: Omit<SubmitOpenid4vpAuthorizationResponseOptions, 'callbacks'>): Promise<{
1812
- readonly responseMode: "direct_post.jwt";
1813
- readonly response: Response;
1814
- } | {
1815
- responseMode: string;
1816
- response: Response;
1817
- }>;
1818
- }
1819
- //#endregion
1820
- //#region src/transaction-data/verify-transaction-data.d.ts
1821
- interface TransactionDataHashesCredentials {
1822
- /**
1823
- * credentialId is the pex input descriptor id
1824
- * or dcql credential query id.
1825
- *
1826
- * The values must be an array of transaction data hashes
1827
- */
1828
- [credentialId: string]: NonEmptyArray<{
1829
- /**
1830
- * The hashes of the transaction data
1831
- */
1832
- transaction_data_hashes: string[];
1833
- /**
1834
- * The transaction data hash alg. If not provided
1835
- * in the presentation, the default value of sha256
1836
- * is used.
1837
- */
1838
- transaction_data_hashes_alg?: string;
1839
- }> | undefined;
1840
- }
1841
- interface VerifyTransactionDataOptions {
1842
- transactionData: string[];
1843
- credentials: TransactionDataHashesCredentials;
1844
- callbacks: Pick<CallbackContext, 'hash'>;
1845
- }
1846
- interface VerifiedTransactionDataEntry {
1847
- transactionDataEntry: ParsedTransactionDataEntry;
1848
- credentialId: string;
1849
- presentations: NonEmptyArray<{
1850
- presentationIndex: number;
1851
- hash: string;
1852
- hashAlg: HashAlgorithm;
1853
- credentialHashIndex: number;
1854
- }>;
1855
- }
1856
- //#endregion
1857
- //#region src/Openid4vpVerifier.d.ts
1858
- interface Openid4vpVerifierOptions {
1859
- /**
1860
- * Callbacks required for the openid4vp verifier
1861
- */
1862
- callbacks: Omit<CallbackContext, 'generateRandom' | 'clientAuthentication'>;
1863
- }
1864
- declare class Openid4vpVerifier {
1865
- private options;
1866
- constructor(options: Openid4vpVerifierOptions);
1867
- createOpenId4vpAuthorizationRequest(options: Omit<CreateOpenid4vpAuthorizationRequestOptions, 'callbacks'>): Promise<{
1868
- authorizationRequestPayload: {
1869
- [x: string]: unknown;
1870
- response_type: "vp_token";
1871
- client_id: string;
1872
- nonce: string;
1873
- redirect_uri?: string | undefined;
1874
- response_uri?: string | undefined;
1875
- request_uri?: string | undefined;
1876
- request_uri_method?: string | undefined;
1877
- response_mode?: "direct_post" | "direct_post.jwt" | undefined;
1878
- wallet_nonce?: string | undefined;
1879
- scope?: string | undefined;
1880
- presentation_definition?: any;
1881
- presentation_definition_uri?: string | undefined;
1882
- dcql_query?: any;
1883
- client_metadata?: {
1884
- [x: string]: unknown;
1885
- logo_uri?: string | undefined;
1886
- client_name?: string | undefined;
1887
- authorization_signed_response_alg?: string | undefined;
1888
- authorization_encrypted_response_alg?: string | undefined;
1889
- authorization_encrypted_response_enc?: string | undefined;
1890
- jwks_uri?: string | undefined;
1891
- jwks?: {
1892
- [x: string]: unknown;
1893
- keys: {
1894
- [x: string]: unknown;
1895
- kty: string;
1896
- crv?: string | undefined;
1897
- x?: string | undefined;
1898
- y?: string | undefined;
1899
- e?: string | undefined;
1900
- n?: string | undefined;
1901
- alg?: string | undefined;
1902
- d?: string | undefined;
1903
- dp?: string | undefined;
1904
- dq?: string | undefined;
1905
- ext?: boolean | undefined;
1906
- k?: string | undefined;
1907
- key_ops?: string[] | undefined;
1908
- kid?: string | undefined;
1909
- oth?: {
1910
- [x: string]: unknown;
1911
- d?: string | undefined;
1912
- r?: string | undefined;
1913
- t?: string | undefined;
1914
- }[] | undefined;
1915
- p?: string | undefined;
1916
- q?: string | undefined;
1917
- qi?: string | undefined;
1918
- use?: string | undefined;
1919
- x5c?: string[] | undefined;
1920
- x5t?: string | undefined;
1921
- 'x5t#S256'?: string | undefined;
1922
- x5u?: string | undefined;
1923
- }[];
1924
- } | undefined;
1925
- vp_formats?: Record<string, {
1926
- [x: string]: unknown;
1927
- alg_values_supported?: string[] | undefined;
1928
- }> | undefined;
1929
- vp_formats_supported?: {
1930
- [x: string]: {
1931
- [x: string]: unknown;
1932
- };
1933
- 'dc+sd-jwt'?: {
1934
- [x: string]: unknown;
1935
- 'sd-jwt_alg_values'?: [string, ...string[]] | undefined;
1936
- 'kb-jwt_alg_values'?: [string, ...string[]] | undefined;
1937
- } | undefined;
1938
- jwt_vc_json?: {
1939
- [x: string]: unknown;
1940
- alg_values?: [string, ...string[]] | undefined;
1941
- } | undefined;
1942
- ldp_vc?: {
1943
- [x: string]: unknown;
1944
- proof_type_values?: [string, ...string[]] | undefined;
1945
- cryptosuite_values?: [string, ...string[]] | undefined;
1946
- } | undefined;
1947
- mso_mdoc?: {
1948
- [x: string]: unknown;
1949
- issuer_signed_alg_values?: [number, ...number[]] | undefined;
1950
- device_signed_alg_values?: [number, ...number[]] | undefined;
1951
- issuerauth_alg_values?: [number, ...number[]] | undefined;
1952
- deviceauth_alg_values?: [number, ...number[]] | undefined;
1953
- } | undefined;
1954
- } | undefined;
1955
- encrypted_response_enc_values_supported?: string[] | undefined;
1956
- } | undefined;
1957
- client_metadata_uri?: string | undefined;
1958
- state?: string | undefined;
1959
- transaction_data?: string[] | undefined;
1960
- trust_chain?: [string, ...string[]] | undefined;
1961
- client_id_scheme?: "redirect_uri" | "pre-registered" | "entity_id" | "did" | "verifier_attestation" | "x509_san_dns" | "x509_san_uri" | "x509_hash" | undefined;
1962
- verifier_attestations?: {
1963
- format: string;
1964
- data: string | Record<string, unknown>;
1965
- credential_ids?: string[] | undefined;
1966
- }[] | undefined;
1967
- verifier_info?: {
1968
- format: string;
1969
- data: string | Record<string, unknown>;
1970
- credential_ids?: string[] | undefined;
1971
- }[] | undefined;
1972
- } | {
1973
- [x: string]: unknown;
1974
- response_type: "vp_token";
1975
- nonce: string;
1976
- response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
1977
- presentation_definition?: any;
1978
- dcql_query?: any;
1979
- client_metadata?: {
1980
- [x: string]: unknown;
1981
- logo_uri?: string | undefined;
1982
- client_name?: string | undefined;
1983
- authorization_signed_response_alg?: string | undefined;
1984
- authorization_encrypted_response_alg?: string | undefined;
1985
- authorization_encrypted_response_enc?: string | undefined;
1986
- jwks_uri?: string | undefined;
1987
- jwks?: {
1988
- [x: string]: unknown;
1989
- keys: {
1990
- [x: string]: unknown;
1991
- kty: string;
1992
- crv?: string | undefined;
1993
- x?: string | undefined;
1994
- y?: string | undefined;
1995
- e?: string | undefined;
1996
- n?: string | undefined;
1997
- alg?: string | undefined;
1998
- d?: string | undefined;
1999
- dp?: string | undefined;
2000
- dq?: string | undefined;
2001
- ext?: boolean | undefined;
2002
- k?: string | undefined;
2003
- key_ops?: string[] | undefined;
2004
- kid?: string | undefined;
2005
- oth?: {
2006
- [x: string]: unknown;
2007
- d?: string | undefined;
2008
- r?: string | undefined;
2009
- t?: string | undefined;
2010
- }[] | undefined;
2011
- p?: string | undefined;
2012
- q?: string | undefined;
2013
- qi?: string | undefined;
2014
- use?: string | undefined;
2015
- x5c?: string[] | undefined;
2016
- x5t?: string | undefined;
2017
- 'x5t#S256'?: string | undefined;
2018
- x5u?: string | undefined;
2019
- }[];
2020
- } | undefined;
2021
- vp_formats?: Record<string, {
2022
- [x: string]: unknown;
2023
- alg_values_supported?: string[] | undefined;
2024
- }> | undefined;
2025
- vp_formats_supported?: {
2026
- [x: string]: {
2027
- [x: string]: unknown;
2028
- };
2029
- 'dc+sd-jwt'?: {
2030
- [x: string]: unknown;
2031
- 'sd-jwt_alg_values'?: [string, ...string[]] | undefined;
2032
- 'kb-jwt_alg_values'?: [string, ...string[]] | undefined;
2033
- } | undefined;
2034
- jwt_vc_json?: {
2035
- [x: string]: unknown;
2036
- alg_values?: [string, ...string[]] | undefined;
2037
- } | undefined;
2038
- ldp_vc?: {
2039
- [x: string]: unknown;
2040
- proof_type_values?: [string, ...string[]] | undefined;
2041
- cryptosuite_values?: [string, ...string[]] | undefined;
2042
- } | undefined;
2043
- mso_mdoc?: {
2044
- [x: string]: unknown;
2045
- issuer_signed_alg_values?: [number, ...number[]] | undefined;
2046
- device_signed_alg_values?: [number, ...number[]] | undefined;
2047
- issuerauth_alg_values?: [number, ...number[]] | undefined;
2048
- deviceauth_alg_values?: [number, ...number[]] | undefined;
2049
- } | undefined;
2050
- } | undefined;
2051
- encrypted_response_enc_values_supported?: string[] | undefined;
2052
- } | undefined;
2053
- state?: string | undefined;
2054
- transaction_data?: string[] | undefined;
2055
- trust_chain?: [string, ...string[]] | undefined;
2056
- verifier_attestations?: {
2057
- format: string;
2058
- data: string | Record<string, unknown>;
2059
- credential_ids?: string[] | undefined;
2060
- }[] | undefined;
2061
- verifier_info?: {
2062
- format: string;
2063
- data: string | Record<string, unknown>;
2064
- credential_ids?: string[] | undefined;
2065
- }[] | undefined;
2066
- client_id?: string | undefined;
2067
- expected_origins?: string[] | undefined;
2068
- client_id_scheme?: undefined;
2069
- scope?: undefined;
2070
- };
2071
- authorizationRequestObject: {
2072
- [x: string]: unknown;
2073
- request?: string | undefined;
2074
- request_uri?: string | undefined;
2075
- client_id?: string | undefined;
2076
- };
2077
- authorizationRequest: string;
2078
- jar: {
2079
- jarAuthorizationRequest: {
2080
- [x: string]: unknown;
2081
- request?: string | undefined;
2082
- request_uri?: string | undefined;
2083
- client_id?: string | undefined;
2084
- };
2085
- signerJwk: {
2086
- [x: string]: unknown;
2087
- kty: string;
2088
- crv?: string | undefined;
2089
- x?: string | undefined;
2090
- y?: string | undefined;
2091
- e?: string | undefined;
2092
- n?: string | undefined;
2093
- alg?: string | undefined;
2094
- d?: string | undefined;
2095
- dp?: string | undefined;
2096
- dq?: string | undefined;
2097
- ext?: boolean | undefined;
2098
- k?: string | undefined;
2099
- key_ops?: string[] | undefined;
2100
- kid?: string | undefined;
2101
- oth?: {
2102
- [x: string]: unknown;
2103
- d?: string | undefined;
2104
- r?: string | undefined;
2105
- t?: string | undefined;
2106
- }[] | undefined;
2107
- p?: string | undefined;
2108
- q?: string | undefined;
2109
- qi?: string | undefined;
2110
- use?: string | undefined;
2111
- x5c?: string[] | undefined;
2112
- x5t?: string | undefined;
2113
- 'x5t#S256'?: string | undefined;
2114
- x5u?: string | undefined;
2115
- };
2116
- encryptionJwk: {
2117
- [x: string]: unknown;
2118
- kty: string;
2119
- crv?: string | undefined;
2120
- x?: string | undefined;
2121
- y?: string | undefined;
2122
- e?: string | undefined;
2123
- n?: string | undefined;
2124
- alg?: string | undefined;
2125
- d?: string | undefined;
2126
- dp?: string | undefined;
2127
- dq?: string | undefined;
2128
- ext?: boolean | undefined;
2129
- k?: string | undefined;
2130
- key_ops?: string[] | undefined;
2131
- kid?: string | undefined;
2132
- oth?: {
2133
- [x: string]: unknown;
2134
- d?: string | undefined;
2135
- r?: string | undefined;
2136
- t?: string | undefined;
2137
- }[] | undefined;
2138
- p?: string | undefined;
2139
- q?: string | undefined;
2140
- qi?: string | undefined;
2141
- use?: string | undefined;
2142
- x5c?: string[] | undefined;
2143
- x5t?: string | undefined;
2144
- 'x5t#S256'?: string | undefined;
2145
- x5u?: string | undefined;
2146
- } | undefined;
2147
- authorizationRequestJwt: string;
2148
- additionalJwtPayload?: Record<string, unknown> | undefined;
2149
- requestUri?: string | undefined;
2150
- jwtSigner: _openid4vc_oauth20.JwtSigner;
2151
- expiresInSeconds: number;
2152
- };
2153
- } | {
2154
- authorizationRequestPayload: {
2155
- [x: string]: unknown;
2156
- response_type: "vp_token";
2157
- client_id: string;
2158
- nonce: string;
2159
- redirect_uri?: string | undefined;
2160
- response_uri?: string | undefined;
2161
- request_uri?: string | undefined;
2162
- request_uri_method?: string | undefined;
2163
- response_mode?: "direct_post" | "direct_post.jwt" | undefined;
2164
- wallet_nonce?: string | undefined;
2165
- scope?: string | undefined;
2166
- presentation_definition?: any;
2167
- presentation_definition_uri?: string | undefined;
2168
- dcql_query?: any;
2169
- client_metadata?: {
2170
- [x: string]: unknown;
2171
- logo_uri?: string | undefined;
2172
- client_name?: string | undefined;
2173
- authorization_signed_response_alg?: string | undefined;
2174
- authorization_encrypted_response_alg?: string | undefined;
2175
- authorization_encrypted_response_enc?: string | undefined;
2176
- jwks_uri?: string | undefined;
2177
- jwks?: {
2178
- [x: string]: unknown;
2179
- keys: {
2180
- [x: string]: unknown;
2181
- kty: string;
2182
- crv?: string | undefined;
2183
- x?: string | undefined;
2184
- y?: string | undefined;
2185
- e?: string | undefined;
2186
- n?: string | undefined;
2187
- alg?: string | undefined;
2188
- d?: string | undefined;
2189
- dp?: string | undefined;
2190
- dq?: string | undefined;
2191
- ext?: boolean | undefined;
2192
- k?: string | undefined;
2193
- key_ops?: string[] | undefined;
2194
- kid?: string | undefined;
2195
- oth?: {
2196
- [x: string]: unknown;
2197
- d?: string | undefined;
2198
- r?: string | undefined;
2199
- t?: string | undefined;
2200
- }[] | undefined;
2201
- p?: string | undefined;
2202
- q?: string | undefined;
2203
- qi?: string | undefined;
2204
- use?: string | undefined;
2205
- x5c?: string[] | undefined;
2206
- x5t?: string | undefined;
2207
- 'x5t#S256'?: string | undefined;
2208
- x5u?: string | undefined;
2209
- }[];
2210
- } | undefined;
2211
- vp_formats?: Record<string, {
2212
- [x: string]: unknown;
2213
- alg_values_supported?: string[] | undefined;
2214
- }> | undefined;
2215
- vp_formats_supported?: {
2216
- [x: string]: {
2217
- [x: string]: unknown;
2218
- };
2219
- 'dc+sd-jwt'?: {
2220
- [x: string]: unknown;
2221
- 'sd-jwt_alg_values'?: [string, ...string[]] | undefined;
2222
- 'kb-jwt_alg_values'?: [string, ...string[]] | undefined;
2223
- } | undefined;
2224
- jwt_vc_json?: {
2225
- [x: string]: unknown;
2226
- alg_values?: [string, ...string[]] | undefined;
2227
- } | undefined;
2228
- ldp_vc?: {
2229
- [x: string]: unknown;
2230
- proof_type_values?: [string, ...string[]] | undefined;
2231
- cryptosuite_values?: [string, ...string[]] | undefined;
2232
- } | undefined;
2233
- mso_mdoc?: {
2234
- [x: string]: unknown;
2235
- issuer_signed_alg_values?: [number, ...number[]] | undefined;
2236
- device_signed_alg_values?: [number, ...number[]] | undefined;
2237
- issuerauth_alg_values?: [number, ...number[]] | undefined;
2238
- deviceauth_alg_values?: [number, ...number[]] | undefined;
2239
- } | undefined;
2240
- } | undefined;
2241
- encrypted_response_enc_values_supported?: string[] | undefined;
2242
- } | undefined;
2243
- client_metadata_uri?: string | undefined;
2244
- state?: string | undefined;
2245
- transaction_data?: string[] | undefined;
2246
- trust_chain?: [string, ...string[]] | undefined;
2247
- client_id_scheme?: "redirect_uri" | "pre-registered" | "entity_id" | "did" | "verifier_attestation" | "x509_san_dns" | "x509_san_uri" | "x509_hash" | undefined;
2248
- verifier_attestations?: {
2249
- format: string;
2250
- data: string | Record<string, unknown>;
2251
- credential_ids?: string[] | undefined;
2252
- }[] | undefined;
2253
- verifier_info?: {
2254
- format: string;
2255
- data: string | Record<string, unknown>;
2256
- credential_ids?: string[] | undefined;
2257
- }[] | undefined;
2258
- } | {
2259
- [x: string]: unknown;
2260
- response_type: "vp_token";
2261
- nonce: string;
2262
- response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
2263
- presentation_definition?: any;
2264
- dcql_query?: any;
2265
- client_metadata?: {
2266
- [x: string]: unknown;
2267
- logo_uri?: string | undefined;
2268
- client_name?: string | undefined;
2269
- authorization_signed_response_alg?: string | undefined;
2270
- authorization_encrypted_response_alg?: string | undefined;
2271
- authorization_encrypted_response_enc?: string | undefined;
2272
- jwks_uri?: string | undefined;
2273
- jwks?: {
2274
- [x: string]: unknown;
2275
- keys: {
2276
- [x: string]: unknown;
2277
- kty: string;
2278
- crv?: string | undefined;
2279
- x?: string | undefined;
2280
- y?: string | undefined;
2281
- e?: string | undefined;
2282
- n?: string | undefined;
2283
- alg?: string | undefined;
2284
- d?: string | undefined;
2285
- dp?: string | undefined;
2286
- dq?: string | undefined;
2287
- ext?: boolean | undefined;
2288
- k?: string | undefined;
2289
- key_ops?: string[] | undefined;
2290
- kid?: string | undefined;
2291
- oth?: {
2292
- [x: string]: unknown;
2293
- d?: string | undefined;
2294
- r?: string | undefined;
2295
- t?: string | undefined;
2296
- }[] | undefined;
2297
- p?: string | undefined;
2298
- q?: string | undefined;
2299
- qi?: string | undefined;
2300
- use?: string | undefined;
2301
- x5c?: string[] | undefined;
2302
- x5t?: string | undefined;
2303
- 'x5t#S256'?: string | undefined;
2304
- x5u?: string | undefined;
2305
- }[];
2306
- } | undefined;
2307
- vp_formats?: Record<string, {
2308
- [x: string]: unknown;
2309
- alg_values_supported?: string[] | undefined;
2310
- }> | undefined;
2311
- vp_formats_supported?: {
2312
- [x: string]: {
2313
- [x: string]: unknown;
2314
- };
2315
- 'dc+sd-jwt'?: {
2316
- [x: string]: unknown;
2317
- 'sd-jwt_alg_values'?: [string, ...string[]] | undefined;
2318
- 'kb-jwt_alg_values'?: [string, ...string[]] | undefined;
2319
- } | undefined;
2320
- jwt_vc_json?: {
2321
- [x: string]: unknown;
2322
- alg_values?: [string, ...string[]] | undefined;
2323
- } | undefined;
2324
- ldp_vc?: {
2325
- [x: string]: unknown;
2326
- proof_type_values?: [string, ...string[]] | undefined;
2327
- cryptosuite_values?: [string, ...string[]] | undefined;
2328
- } | undefined;
2329
- mso_mdoc?: {
2330
- [x: string]: unknown;
2331
- issuer_signed_alg_values?: [number, ...number[]] | undefined;
2332
- device_signed_alg_values?: [number, ...number[]] | undefined;
2333
- issuerauth_alg_values?: [number, ...number[]] | undefined;
2334
- deviceauth_alg_values?: [number, ...number[]] | undefined;
2335
- } | undefined;
2336
- } | undefined;
2337
- encrypted_response_enc_values_supported?: string[] | undefined;
2338
- } | undefined;
2339
- state?: string | undefined;
2340
- transaction_data?: string[] | undefined;
2341
- trust_chain?: [string, ...string[]] | undefined;
2342
- verifier_attestations?: {
2343
- format: string;
2344
- data: string | Record<string, unknown>;
2345
- credential_ids?: string[] | undefined;
2346
- }[] | undefined;
2347
- verifier_info?: {
2348
- format: string;
2349
- data: string | Record<string, unknown>;
2350
- credential_ids?: string[] | undefined;
2351
- }[] | undefined;
2352
- client_id?: string | undefined;
2353
- expected_origins?: string[] | undefined;
2354
- client_id_scheme?: undefined;
2355
- scope?: undefined;
2356
- };
2357
- authorizationRequestObject: {
2358
- [x: string]: unknown;
2359
- response_type: "vp_token";
2360
- client_id: string;
2361
- nonce: string;
2362
- redirect_uri?: string | undefined;
2363
- response_uri?: string | undefined;
2364
- request_uri?: string | undefined;
2365
- request_uri_method?: string | undefined;
2366
- response_mode?: "direct_post" | "direct_post.jwt" | undefined;
2367
- wallet_nonce?: string | undefined;
2368
- scope?: string | undefined;
2369
- presentation_definition?: any;
2370
- presentation_definition_uri?: string | undefined;
2371
- dcql_query?: any;
2372
- client_metadata?: {
2373
- [x: string]: unknown;
2374
- logo_uri?: string | undefined;
2375
- client_name?: string | undefined;
2376
- authorization_signed_response_alg?: string | undefined;
2377
- authorization_encrypted_response_alg?: string | undefined;
2378
- authorization_encrypted_response_enc?: string | undefined;
2379
- jwks_uri?: string | undefined;
2380
- jwks?: {
2381
- [x: string]: unknown;
2382
- keys: {
2383
- [x: string]: unknown;
2384
- kty: string;
2385
- crv?: string | undefined;
2386
- x?: string | undefined;
2387
- y?: string | undefined;
2388
- e?: string | undefined;
2389
- n?: string | undefined;
2390
- alg?: string | undefined;
2391
- d?: string | undefined;
2392
- dp?: string | undefined;
2393
- dq?: string | undefined;
2394
- ext?: boolean | undefined;
2395
- k?: string | undefined;
2396
- key_ops?: string[] | undefined;
2397
- kid?: string | undefined;
2398
- oth?: {
2399
- [x: string]: unknown;
2400
- d?: string | undefined;
2401
- r?: string | undefined;
2402
- t?: string | undefined;
2403
- }[] | undefined;
2404
- p?: string | undefined;
2405
- q?: string | undefined;
2406
- qi?: string | undefined;
2407
- use?: string | undefined;
2408
- x5c?: string[] | undefined;
2409
- x5t?: string | undefined;
2410
- 'x5t#S256'?: string | undefined;
2411
- x5u?: string | undefined;
2412
- }[];
2413
- } | undefined;
2414
- vp_formats?: Record<string, {
2415
- [x: string]: unknown;
2416
- alg_values_supported?: string[] | undefined;
2417
- }> | undefined;
2418
- vp_formats_supported?: {
2419
- [x: string]: {
2420
- [x: string]: unknown;
2421
- };
2422
- 'dc+sd-jwt'?: {
2423
- [x: string]: unknown;
2424
- 'sd-jwt_alg_values'?: [string, ...string[]] | undefined;
2425
- 'kb-jwt_alg_values'?: [string, ...string[]] | undefined;
2426
- } | undefined;
2427
- jwt_vc_json?: {
2428
- [x: string]: unknown;
2429
- alg_values?: [string, ...string[]] | undefined;
2430
- } | undefined;
2431
- ldp_vc?: {
2432
- [x: string]: unknown;
2433
- proof_type_values?: [string, ...string[]] | undefined;
2434
- cryptosuite_values?: [string, ...string[]] | undefined;
2435
- } | undefined;
2436
- mso_mdoc?: {
2437
- [x: string]: unknown;
2438
- issuer_signed_alg_values?: [number, ...number[]] | undefined;
2439
- device_signed_alg_values?: [number, ...number[]] | undefined;
2440
- issuerauth_alg_values?: [number, ...number[]] | undefined;
2441
- deviceauth_alg_values?: [number, ...number[]] | undefined;
2442
- } | undefined;
2443
- } | undefined;
2444
- encrypted_response_enc_values_supported?: string[] | undefined;
2445
- } | undefined;
2446
- client_metadata_uri?: string | undefined;
2447
- state?: string | undefined;
2448
- transaction_data?: string[] | undefined;
2449
- trust_chain?: [string, ...string[]] | undefined;
2450
- client_id_scheme?: "redirect_uri" | "pre-registered" | "entity_id" | "did" | "verifier_attestation" | "x509_san_dns" | "x509_san_uri" | "x509_hash" | undefined;
2451
- verifier_attestations?: {
2452
- format: string;
2453
- data: string | Record<string, unknown>;
2454
- credential_ids?: string[] | undefined;
2455
- }[] | undefined;
2456
- verifier_info?: {
2457
- format: string;
2458
- data: string | Record<string, unknown>;
2459
- credential_ids?: string[] | undefined;
2460
- }[] | undefined;
2461
- } | {
2462
- [x: string]: unknown;
2463
- response_type: "vp_token";
2464
- nonce: string;
2465
- response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
2466
- presentation_definition?: any;
2467
- dcql_query?: any;
2468
- client_metadata?: {
2469
- [x: string]: unknown;
2470
- logo_uri?: string | undefined;
2471
- client_name?: string | undefined;
2472
- authorization_signed_response_alg?: string | undefined;
2473
- authorization_encrypted_response_alg?: string | undefined;
2474
- authorization_encrypted_response_enc?: string | undefined;
2475
- jwks_uri?: string | undefined;
2476
- jwks?: {
2477
- [x: string]: unknown;
2478
- keys: {
2479
- [x: string]: unknown;
2480
- kty: string;
2481
- crv?: string | undefined;
2482
- x?: string | undefined;
2483
- y?: string | undefined;
2484
- e?: string | undefined;
2485
- n?: string | undefined;
2486
- alg?: string | undefined;
2487
- d?: string | undefined;
2488
- dp?: string | undefined;
2489
- dq?: string | undefined;
2490
- ext?: boolean | undefined;
2491
- k?: string | undefined;
2492
- key_ops?: string[] | undefined;
2493
- kid?: string | undefined;
2494
- oth?: {
2495
- [x: string]: unknown;
2496
- d?: string | undefined;
2497
- r?: string | undefined;
2498
- t?: string | undefined;
2499
- }[] | undefined;
2500
- p?: string | undefined;
2501
- q?: string | undefined;
2502
- qi?: string | undefined;
2503
- use?: string | undefined;
2504
- x5c?: string[] | undefined;
2505
- x5t?: string | undefined;
2506
- 'x5t#S256'?: string | undefined;
2507
- x5u?: string | undefined;
2508
- }[];
2509
- } | undefined;
2510
- vp_formats?: Record<string, {
2511
- [x: string]: unknown;
2512
- alg_values_supported?: string[] | undefined;
2513
- }> | undefined;
2514
- vp_formats_supported?: {
2515
- [x: string]: {
2516
- [x: string]: unknown;
2517
- };
2518
- 'dc+sd-jwt'?: {
2519
- [x: string]: unknown;
2520
- 'sd-jwt_alg_values'?: [string, ...string[]] | undefined;
2521
- 'kb-jwt_alg_values'?: [string, ...string[]] | undefined;
2522
- } | undefined;
2523
- jwt_vc_json?: {
2524
- [x: string]: unknown;
2525
- alg_values?: [string, ...string[]] | undefined;
2526
- } | undefined;
2527
- ldp_vc?: {
2528
- [x: string]: unknown;
2529
- proof_type_values?: [string, ...string[]] | undefined;
2530
- cryptosuite_values?: [string, ...string[]] | undefined;
2531
- } | undefined;
2532
- mso_mdoc?: {
2533
- [x: string]: unknown;
2534
- issuer_signed_alg_values?: [number, ...number[]] | undefined;
2535
- device_signed_alg_values?: [number, ...number[]] | undefined;
2536
- issuerauth_alg_values?: [number, ...number[]] | undefined;
2537
- deviceauth_alg_values?: [number, ...number[]] | undefined;
2538
- } | undefined;
2539
- } | undefined;
2540
- encrypted_response_enc_values_supported?: string[] | undefined;
2541
- } | undefined;
2542
- state?: string | undefined;
2543
- transaction_data?: string[] | undefined;
2544
- trust_chain?: [string, ...string[]] | undefined;
2545
- verifier_attestations?: {
2546
- format: string;
2547
- data: string | Record<string, unknown>;
2548
- credential_ids?: string[] | undefined;
2549
- }[] | undefined;
2550
- verifier_info?: {
2551
- format: string;
2552
- data: string | Record<string, unknown>;
2553
- credential_ids?: string[] | undefined;
2554
- }[] | undefined;
2555
- client_id?: string | undefined;
2556
- expected_origins?: string[] | undefined;
2557
- client_id_scheme?: undefined;
2558
- scope?: undefined;
2559
- };
2560
- authorizationRequest: string;
2561
- jar: undefined;
2562
- }>;
2563
- parseOpenid4vpAuthorizationRequestPayload(options: ParseOpenid4vpAuthorizationRequestOptions): ParsedOpenid4vpAuthorizationRequest | ParsedJarRequest | ParsedOpenid4vpDcApiAuthorizationRequest;
2564
- parseOpenid4vpAuthorizationResponse(options: ParseOpenid4vpAuthorizationResponseOptions): Promise<ParsedOpenid4vpAuthorizationResponse>;
2565
- validateOpenid4vpAuthorizationResponsePayload(options: ValidateOpenid4vpAuthorizationResponseOptions): ValidateOpenid4VpAuthorizationResponseResult;
2566
- parsePexVpToken(vpToken: unknown): [string | Record<string, any>, ...(string | Record<string, any>)[]];
2567
- parseDcqlVpToken(vpToken: unknown): Record<string, [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
2568
- parseTransactionData(options: ParseTransactionDataOptions): ParsedTransactionDataEntry[];
2569
- /**
2570
- * Verify transaction data against submitted credentials.
2571
- *
2572
- * NOTE: this expects transaction data based authorization based on hashes. This is the method defined
2573
- * for SD-JWT VC, but for mDOCs it's much more generic. If you're using transaction data with mDOCs based
2574
- * on hashes, you can extract the values from the DeviceResponse, otherwise you must verify the transaction data
2575
- * manually.
2576
- */
2577
- verifyTransactionData(options: Omit<VerifyTransactionDataOptions, 'callbacks'>): Promise<VerifiedTransactionDataEntry[]>;
2578
- }
2579
- //#endregion
2580
- //#region src/vp-token/parse-vp-token.d.ts
2581
- declare function parsePexVpToken(vpToken: unknown): [VpTokenPresentationEntry, ...VpTokenPresentationEntry[]];
2582
- declare function parseDcqlVpToken(vpToken: unknown): Record<string, [VpTokenPresentationEntry, ...VpTokenPresentationEntry[]]>;
2583
- //#endregion
2584
- export { type ClientIdPrefix, type ClientMetadata, type CreateOpenid4vpAuthorizationRequestOptions, type CreateOpenid4vpAuthorizationResponseOptions, type CreateOpenid4vpAuthorizationResponseResult, type CredentialFormat, type GetOpenid4vpClientIdOptions, type JarmClientMetadata, JarmMode, type Openid4vpAuthorizationRequest, type Openid4vpAuthorizationRequestDcApi, type Openid4vpAuthorizationResponse, Openid4vpClient, Openid4vpVerifier, type Openid4vpVersionNumber, type ParseJarmAuthorizationResponseOptions, type ParseOpenid4vpAuthorizationRequestOptions, type ParseOpenid4vpAuthorizationResponseOptions, type ParseTransactionDataOptions, type ParsedOpenid4vpAuthorizationResponse, type ProofFormat, type ResolveOpenid4vpAuthorizationRequestOptions, type ResolvedOpenid4vpAuthorizationRequest, type SubmitOpenid4vpAuthorizationResponseOptions, type TransactionDataEntry, type TransactionDataHashesCredentials, type ValidateOpenid4VpAuthorizationResponseResult, type ValidateOpenid4VpDcqlAuthorizationResponseResult, type ValidateOpenid4VpPexAuthorizationResponseResult, type ValidateOpenid4vpAuthorizationRequestPayloadOptions, type ValidateOpenid4vpAuthorizationResponseOptions, type VerifiedTransactionDataEntry, type VerifierAttestation, type VerifierAttestations, type VerifyJarmAuthorizationResponseOptions, type VerifyTransactionDataOptions, type VpToken, type VpTokenDcql, type VpTokenPex, type VpTokenPresentationEntry, type WalletMetadata, type WalletVerificationOptions, calculateX509HashClientIdPrefixValue, createOpenid4vpAuthorizationRequest, createOpenid4vpAuthorizationResponse, extractEncryptionJwkFromJwks, getOpenid4vpClientId, isJarmResponseMode, isOpenid4vpAuthorizationRequestDcApi, parseAuthorizationRequestVersion, parseDcqlVpToken, parseJarmAuthorizationResponse, parseOpenid4VpAuthorizationResponsePayload, parseOpenid4vpAuthorizationRequest, parseOpenid4vpAuthorizationResponse, parsePexVpToken, parseTransactionData, resolveOpenid4vpAuthorizationRequest, submitOpenid4vpAuthorizationResponse, validateOpenid4vpAuthorizationRequestPayload, validateOpenid4vpAuthorizationResponsePayload, verifyJarmAuthorizationResponse, zClientIdPrefix, zClientMetadata, zCredentialFormat, zJarmClientMetadata, zOpenid4vpAuthorizationResponse, zProofFormat, zVerifierAttestations, zWalletMetadata };
2585
- //# sourceMappingURL=index.d.cts.map