@pagopa/io-react-native-wallet 0.5.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. package/README.md +52 -19
  2. package/lib/commonjs/index.js +34 -18
  3. package/lib/commonjs/index.js.map +1 -1
  4. package/lib/commonjs/pid/issuing.js +22 -28
  5. package/lib/commonjs/pid/issuing.js.map +1 -1
  6. package/lib/commonjs/rp/__test__/index.test.js +2 -2
  7. package/lib/commonjs/rp/__test__/index.test.js.map +1 -1
  8. package/lib/commonjs/rp/index.js +5 -19
  9. package/lib/commonjs/rp/index.js.map +1 -1
  10. package/lib/commonjs/rp/types.js +1 -21
  11. package/lib/commonjs/rp/types.js.map +1 -1
  12. package/lib/commonjs/trust/index.js +24 -5
  13. package/lib/commonjs/trust/index.js.map +1 -1
  14. package/lib/commonjs/trust/types.js +95 -4
  15. package/lib/commonjs/trust/types.js.map +1 -1
  16. package/lib/commonjs/wallet-instance-attestation/issuing.js +5 -13
  17. package/lib/commonjs/wallet-instance-attestation/issuing.js.map +1 -1
  18. package/lib/module/index.js +3 -5
  19. package/lib/module/index.js.map +1 -1
  20. package/lib/module/pid/issuing.js +16 -23
  21. package/lib/module/pid/issuing.js.map +1 -1
  22. package/lib/module/rp/__test__/index.test.js +2 -2
  23. package/lib/module/rp/__test__/index.test.js.map +1 -1
  24. package/lib/module/rp/index.js +2 -17
  25. package/lib/module/rp/index.js.map +1 -1
  26. package/lib/module/rp/types.js +0 -20
  27. package/lib/module/rp/types.js.map +1 -1
  28. package/lib/module/trust/index.js +19 -5
  29. package/lib/module/trust/index.js.map +1 -1
  30. package/lib/module/trust/types.js +94 -2
  31. package/lib/module/trust/types.js.map +1 -1
  32. package/lib/module/wallet-instance-attestation/issuing.js +5 -13
  33. package/lib/module/wallet-instance-attestation/issuing.js.map +1 -1
  34. package/lib/typescript/index.d.ts +3 -5
  35. package/lib/typescript/index.d.ts.map +1 -1
  36. package/lib/typescript/pid/issuing.d.ts +3 -12
  37. package/lib/typescript/pid/issuing.d.ts.map +1 -1
  38. package/lib/typescript/rp/index.d.ts +4 -12
  39. package/lib/typescript/rp/index.d.ts.map +1 -1
  40. package/lib/typescript/rp/types.d.ts +4 -1256
  41. package/lib/typescript/rp/types.d.ts.map +1 -1
  42. package/lib/typescript/trust/index.d.ts +806 -3
  43. package/lib/typescript/trust/index.d.ts.map +1 -1
  44. package/lib/typescript/trust/types.d.ts +8637 -5
  45. package/lib/typescript/trust/types.d.ts.map +1 -1
  46. package/lib/typescript/wallet-instance-attestation/issuing.d.ts +2 -1
  47. package/lib/typescript/wallet-instance-attestation/issuing.d.ts.map +1 -1
  48. package/lib/typescript/wallet-instance-attestation/types.d.ts +4 -4
  49. package/package.json +1 -1
  50. package/src/index.ts +19 -10
  51. package/src/pid/issuing.ts +24 -30
  52. package/src/rp/__test__/index.test.ts +2 -2
  53. package/src/rp/index.ts +8 -22
  54. package/src/rp/types.ts +0 -24
  55. package/src/trust/index.ts +106 -5
  56. package/src/trust/types.ts +114 -3
  57. package/src/wallet-instance-attestation/issuing.ts +10 -15
  58. package/lib/commonjs/pid/metadata.js +0 -52
  59. package/lib/commonjs/pid/metadata.js.map +0 -1
  60. package/lib/module/pid/metadata.js +0 -44
  61. package/lib/module/pid/metadata.js.map +0 -1
  62. package/lib/typescript/pid/metadata.d.ts +0 -1412
  63. package/lib/typescript/pid/metadata.d.ts.map +0 -1
  64. package/src/pid/metadata.ts +0 -51
@@ -1,16 +1,819 @@
1
- import { EntityConfiguration } from "./types";
1
+ import { WalletProviderEntityConfiguration, TrustAnchorEntityConfiguration, CredentialIssuerEntityConfiguration, RelyingPartyEntityConfiguration, EntityConfiguration } from "./types";
2
2
  import { verifyTrustChain } from "./chain";
3
3
  export { verifyTrustChain };
4
4
  /**
5
- * Fetch and parse teh entity configuration document for a given federation entity
5
+ * Fetch and parse the entity configuration document for a given federation entity.
6
+ * This is an inner method to serve public interfaces.
7
+ *
8
+ * To add another entity configuration type (example: Foo entity type):
9
+ * - create its zod schema and type by inherit from the base type (example: FooEntityConfiguration = BaseEntityConfiguration.and(...))
10
+ * - add such type to EntityConfiguration union
11
+ * - add an overload to this function
12
+ * - create a public function which use such type (example: getFooEntityConfiguration = (url, options) => Promise<FooEntityConfiguration>)
6
13
  *
7
14
  * @param entityBaseUrl The base url of the entity.
15
+ * @param schema The expected schema of the entity configuration, according to the kind of entity we are fetching from.
8
16
  * @param options.appFetch An optional instance of the http client to be used.
9
17
  * @returns The parsed entity configuration object
10
18
  * @throws {IoWalletError} If the http request fails
11
19
  * @throws Parse error if the document is not in the expected shape.
12
20
  */
13
- export declare function getEntityConfiguration(entityBaseUrl: string, { appFetch, }?: {
21
+ declare function fetchAndParseEntityConfiguration(entityBaseUrl: string, schema: typeof WalletProviderEntityConfiguration, options?: {
22
+ appFetch?: GlobalFetch["fetch"];
23
+ }): Promise<WalletProviderEntityConfiguration>;
24
+ declare function fetchAndParseEntityConfiguration(entityBaseUrl: string, schema: typeof RelyingPartyEntityConfiguration, options?: {
25
+ appFetch?: GlobalFetch["fetch"];
26
+ }): Promise<RelyingPartyEntityConfiguration>;
27
+ declare function fetchAndParseEntityConfiguration(entityBaseUrl: string, schema: typeof TrustAnchorEntityConfiguration, options?: {
28
+ appFetch?: GlobalFetch["fetch"];
29
+ }): Promise<TrustAnchorEntityConfiguration>;
30
+ declare function fetchAndParseEntityConfiguration(entityBaseUrl: string, schema: typeof CredentialIssuerEntityConfiguration, options?: {
31
+ appFetch?: GlobalFetch["fetch"];
32
+ }): Promise<CredentialIssuerEntityConfiguration>;
33
+ declare function fetchAndParseEntityConfiguration(entityBaseUrl: string, schema: typeof EntityConfiguration, options?: {
14
34
  appFetch?: GlobalFetch["fetch"];
15
35
  }): Promise<EntityConfiguration>;
36
+ export declare const getWalletProviderEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
37
+ header: {
38
+ alg: string;
39
+ kid: string;
40
+ typ: "entity-statement+jwt";
41
+ };
42
+ payload: {
43
+ iss: string;
44
+ sub: string;
45
+ iat: number;
46
+ exp: number;
47
+ jwks: {
48
+ keys: {
49
+ kty: "RSA" | "EC";
50
+ alg?: string | undefined;
51
+ crv?: string | undefined;
52
+ d?: string | undefined;
53
+ dp?: string | undefined;
54
+ dq?: string | undefined;
55
+ e?: string | undefined;
56
+ ext?: boolean | undefined;
57
+ k?: string | undefined;
58
+ key_ops?: string[] | undefined;
59
+ kid?: string | undefined;
60
+ n?: string | undefined;
61
+ p?: string | undefined;
62
+ q?: string | undefined;
63
+ qi?: string | undefined;
64
+ use?: string | undefined;
65
+ x?: string | undefined;
66
+ y?: string | undefined;
67
+ x5c?: string[] | undefined;
68
+ x5t?: string | undefined;
69
+ "x5t#S256"?: string | undefined;
70
+ x5u?: string | undefined;
71
+ }[];
72
+ };
73
+ metadata: {
74
+ federation_entity: {
75
+ federation_fetch_endpoint?: string | undefined;
76
+ federation_list_endpoint?: string | undefined;
77
+ federation_resolve_endpoint?: string | undefined;
78
+ federation_trust_mark_status_endpoint?: string | undefined;
79
+ federation_trust_mark_list_endpoint?: string | undefined;
80
+ homepage_uri?: string | undefined;
81
+ policy_uri?: string | undefined;
82
+ logo_uri?: string | undefined;
83
+ contacts?: string[] | undefined;
84
+ } & {
85
+ [k: string]: unknown;
86
+ };
87
+ } & {
88
+ [k: string]: unknown;
89
+ };
90
+ authority_hints?: string[] | undefined;
91
+ } & {
92
+ [k: string]: unknown;
93
+ };
94
+ } & {
95
+ payload: {
96
+ metadata: {
97
+ wallet_provider: {
98
+ jwks: {
99
+ keys: {
100
+ kty: "RSA" | "EC";
101
+ alg?: string | undefined;
102
+ crv?: string | undefined;
103
+ d?: string | undefined;
104
+ dp?: string | undefined;
105
+ dq?: string | undefined;
106
+ e?: string | undefined;
107
+ ext?: boolean | undefined;
108
+ k?: string | undefined;
109
+ key_ops?: string[] | undefined;
110
+ kid?: string | undefined;
111
+ n?: string | undefined;
112
+ p?: string | undefined;
113
+ q?: string | undefined;
114
+ qi?: string | undefined;
115
+ use?: string | undefined;
116
+ x?: string | undefined;
117
+ y?: string | undefined;
118
+ x5c?: string[] | undefined;
119
+ x5t?: string | undefined;
120
+ "x5t#S256"?: string | undefined;
121
+ x5u?: string | undefined;
122
+ }[];
123
+ };
124
+ token_endpoint: string;
125
+ grant_types_supported: string[];
126
+ token_endpoint_auth_methods_supported: string[];
127
+ token_endpoint_auth_signing_alg_values_supported: string[];
128
+ attested_security_context_values_supported?: string[] | undefined;
129
+ } & {
130
+ [k: string]: unknown;
131
+ };
132
+ };
133
+ };
134
+ }>;
135
+ export declare const getCredentialIssuerEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
136
+ header: {
137
+ alg: string;
138
+ kid: string;
139
+ typ: "entity-statement+jwt";
140
+ };
141
+ payload: {
142
+ iss: string;
143
+ sub: string;
144
+ iat: number;
145
+ exp: number;
146
+ jwks: {
147
+ keys: {
148
+ kty: "RSA" | "EC";
149
+ alg?: string | undefined;
150
+ crv?: string | undefined;
151
+ d?: string | undefined;
152
+ dp?: string | undefined;
153
+ dq?: string | undefined;
154
+ e?: string | undefined;
155
+ ext?: boolean | undefined;
156
+ k?: string | undefined;
157
+ key_ops?: string[] | undefined;
158
+ kid?: string | undefined;
159
+ n?: string | undefined;
160
+ p?: string | undefined;
161
+ q?: string | undefined;
162
+ qi?: string | undefined;
163
+ use?: string | undefined;
164
+ x?: string | undefined;
165
+ y?: string | undefined;
166
+ x5c?: string[] | undefined;
167
+ x5t?: string | undefined;
168
+ "x5t#S256"?: string | undefined;
169
+ x5u?: string | undefined;
170
+ }[];
171
+ };
172
+ metadata: {
173
+ federation_entity: {
174
+ federation_fetch_endpoint?: string | undefined;
175
+ federation_list_endpoint?: string | undefined;
176
+ federation_resolve_endpoint?: string | undefined;
177
+ federation_trust_mark_status_endpoint?: string | undefined;
178
+ federation_trust_mark_list_endpoint?: string | undefined;
179
+ homepage_uri?: string | undefined;
180
+ policy_uri?: string | undefined;
181
+ logo_uri?: string | undefined;
182
+ contacts?: string[] | undefined;
183
+ } & {
184
+ [k: string]: unknown;
185
+ };
186
+ } & {
187
+ [k: string]: unknown;
188
+ };
189
+ authority_hints?: string[] | undefined;
190
+ } & {
191
+ [k: string]: unknown;
192
+ };
193
+ } & {
194
+ payload: {
195
+ jwks: {
196
+ keys: {
197
+ kty: "RSA" | "EC";
198
+ alg?: string | undefined;
199
+ crv?: string | undefined;
200
+ d?: string | undefined;
201
+ dp?: string | undefined;
202
+ dq?: string | undefined;
203
+ e?: string | undefined;
204
+ ext?: boolean | undefined;
205
+ k?: string | undefined;
206
+ key_ops?: string[] | undefined;
207
+ kid?: string | undefined;
208
+ n?: string | undefined;
209
+ p?: string | undefined;
210
+ q?: string | undefined;
211
+ qi?: string | undefined;
212
+ use?: string | undefined;
213
+ x?: string | undefined;
214
+ y?: string | undefined;
215
+ x5c?: string[] | undefined;
216
+ x5t?: string | undefined;
217
+ "x5t#S256"?: string | undefined;
218
+ x5u?: string | undefined;
219
+ }[];
220
+ };
221
+ metadata: {
222
+ openid_credential_issuer: {
223
+ jwks: {
224
+ keys: {
225
+ kty: "RSA" | "EC";
226
+ alg?: string | undefined;
227
+ crv?: string | undefined;
228
+ d?: string | undefined;
229
+ dp?: string | undefined;
230
+ dq?: string | undefined;
231
+ e?: string | undefined;
232
+ ext?: boolean | undefined;
233
+ k?: string | undefined;
234
+ key_ops?: string[] | undefined;
235
+ kid?: string | undefined;
236
+ n?: string | undefined;
237
+ p?: string | undefined;
238
+ q?: string | undefined;
239
+ qi?: string | undefined;
240
+ use?: string | undefined;
241
+ x?: string | undefined;
242
+ y?: string | undefined;
243
+ x5c?: string[] | undefined;
244
+ x5t?: string | undefined;
245
+ "x5t#S256"?: string | undefined;
246
+ x5u?: string | undefined;
247
+ }[];
248
+ };
249
+ credential_issuer: string;
250
+ authorization_endpoint: string;
251
+ token_endpoint: string;
252
+ pushed_authorization_request_endpoint: string;
253
+ dpop_signing_alg_values_supported: string[];
254
+ credential_endpoint: string;
255
+ credentials_supported: {
256
+ format: "vc+sd-jwt";
257
+ cryptographic_binding_methods_supported: string[];
258
+ cryptographic_suites_supported: string[];
259
+ display: {
260
+ name: string;
261
+ locale: string;
262
+ logo: {
263
+ url: string;
264
+ alt_text: string;
265
+ };
266
+ background_color: string;
267
+ text_color: string;
268
+ }[];
269
+ }[];
270
+ };
271
+ };
272
+ };
273
+ }>;
274
+ export declare const getTrustAnchorEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
275
+ header: {
276
+ alg: string;
277
+ kid: string;
278
+ typ: "entity-statement+jwt";
279
+ };
280
+ payload: {
281
+ iss: string;
282
+ sub: string;
283
+ iat: number;
284
+ exp: number;
285
+ jwks: {
286
+ keys: {
287
+ kty: "RSA" | "EC";
288
+ alg?: string | undefined;
289
+ crv?: string | undefined;
290
+ d?: string | undefined;
291
+ dp?: string | undefined;
292
+ dq?: string | undefined;
293
+ e?: string | undefined;
294
+ ext?: boolean | undefined;
295
+ k?: string | undefined;
296
+ key_ops?: string[] | undefined;
297
+ kid?: string | undefined;
298
+ n?: string | undefined;
299
+ p?: string | undefined;
300
+ q?: string | undefined;
301
+ qi?: string | undefined;
302
+ use?: string | undefined;
303
+ x?: string | undefined;
304
+ y?: string | undefined;
305
+ x5c?: string[] | undefined;
306
+ x5t?: string | undefined;
307
+ "x5t#S256"?: string | undefined;
308
+ x5u?: string | undefined;
309
+ }[];
310
+ };
311
+ metadata: {
312
+ federation_entity: {
313
+ federation_fetch_endpoint?: string | undefined;
314
+ federation_list_endpoint?: string | undefined;
315
+ federation_resolve_endpoint?: string | undefined;
316
+ federation_trust_mark_status_endpoint?: string | undefined;
317
+ federation_trust_mark_list_endpoint?: string | undefined;
318
+ homepage_uri?: string | undefined;
319
+ policy_uri?: string | undefined;
320
+ logo_uri?: string | undefined;
321
+ contacts?: string[] | undefined;
322
+ } & {
323
+ [k: string]: unknown;
324
+ };
325
+ } & {
326
+ [k: string]: unknown;
327
+ };
328
+ authority_hints?: string[] | undefined;
329
+ } & {
330
+ [k: string]: unknown;
331
+ };
332
+ }>;
333
+ export declare const getRelyingPartyEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
334
+ header: {
335
+ alg: string;
336
+ kid: string;
337
+ typ: "entity-statement+jwt";
338
+ };
339
+ payload: {
340
+ iss: string;
341
+ sub: string;
342
+ iat: number;
343
+ exp: number;
344
+ jwks: {
345
+ keys: {
346
+ kty: "RSA" | "EC";
347
+ alg?: string | undefined;
348
+ crv?: string | undefined;
349
+ d?: string | undefined;
350
+ dp?: string | undefined;
351
+ dq?: string | undefined;
352
+ e?: string | undefined;
353
+ ext?: boolean | undefined;
354
+ k?: string | undefined;
355
+ key_ops?: string[] | undefined;
356
+ kid?: string | undefined;
357
+ n?: string | undefined;
358
+ p?: string | undefined;
359
+ q?: string | undefined;
360
+ qi?: string | undefined;
361
+ use?: string | undefined;
362
+ x?: string | undefined;
363
+ y?: string | undefined;
364
+ x5c?: string[] | undefined;
365
+ x5t?: string | undefined;
366
+ "x5t#S256"?: string | undefined;
367
+ x5u?: string | undefined;
368
+ }[];
369
+ };
370
+ metadata: {
371
+ federation_entity: {
372
+ federation_fetch_endpoint?: string | undefined;
373
+ federation_list_endpoint?: string | undefined;
374
+ federation_resolve_endpoint?: string | undefined;
375
+ federation_trust_mark_status_endpoint?: string | undefined;
376
+ federation_trust_mark_list_endpoint?: string | undefined;
377
+ homepage_uri?: string | undefined;
378
+ policy_uri?: string | undefined;
379
+ logo_uri?: string | undefined;
380
+ contacts?: string[] | undefined;
381
+ } & {
382
+ [k: string]: unknown;
383
+ };
384
+ } & {
385
+ [k: string]: unknown;
386
+ };
387
+ authority_hints?: string[] | undefined;
388
+ } & {
389
+ [k: string]: unknown;
390
+ };
391
+ } & {
392
+ payload: {
393
+ metadata: {
394
+ wallet_relying_party: {
395
+ jwks: {
396
+ kty: "RSA" | "EC";
397
+ alg?: string | undefined;
398
+ crv?: string | undefined;
399
+ d?: string | undefined;
400
+ dp?: string | undefined;
401
+ dq?: string | undefined;
402
+ e?: string | undefined;
403
+ ext?: boolean | undefined;
404
+ k?: string | undefined;
405
+ key_ops?: string[] | undefined;
406
+ kid?: string | undefined;
407
+ n?: string | undefined;
408
+ p?: string | undefined;
409
+ q?: string | undefined;
410
+ qi?: string | undefined;
411
+ use?: string | undefined;
412
+ x?: string | undefined;
413
+ y?: string | undefined;
414
+ x5c?: string[] | undefined;
415
+ x5t?: string | undefined;
416
+ "x5t#S256"?: string | undefined;
417
+ x5u?: string | undefined;
418
+ }[];
419
+ application_type?: string | undefined;
420
+ client_id?: string | undefined;
421
+ client_name?: string | undefined;
422
+ contacts?: string[] | undefined;
423
+ } & {
424
+ [k: string]: unknown;
425
+ };
426
+ };
427
+ };
428
+ }>;
429
+ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
430
+ header: {
431
+ alg: string;
432
+ kid: string;
433
+ typ: "entity-statement+jwt";
434
+ };
435
+ payload: {
436
+ iss: string;
437
+ sub: string;
438
+ iat: number;
439
+ exp: number;
440
+ jwks: {
441
+ keys: {
442
+ kty: "RSA" | "EC";
443
+ alg?: string | undefined;
444
+ crv?: string | undefined;
445
+ d?: string | undefined;
446
+ dp?: string | undefined;
447
+ dq?: string | undefined;
448
+ e?: string | undefined;
449
+ ext?: boolean | undefined;
450
+ k?: string | undefined;
451
+ key_ops?: string[] | undefined;
452
+ kid?: string | undefined;
453
+ n?: string | undefined;
454
+ p?: string | undefined;
455
+ q?: string | undefined;
456
+ qi?: string | undefined;
457
+ use?: string | undefined;
458
+ x?: string | undefined;
459
+ y?: string | undefined;
460
+ x5c?: string[] | undefined;
461
+ x5t?: string | undefined;
462
+ "x5t#S256"?: string | undefined;
463
+ x5u?: string | undefined;
464
+ }[];
465
+ };
466
+ metadata: {
467
+ federation_entity: {
468
+ federation_fetch_endpoint?: string | undefined;
469
+ federation_list_endpoint?: string | undefined;
470
+ federation_resolve_endpoint?: string | undefined;
471
+ federation_trust_mark_status_endpoint?: string | undefined;
472
+ federation_trust_mark_list_endpoint?: string | undefined;
473
+ homepage_uri?: string | undefined;
474
+ policy_uri?: string | undefined;
475
+ logo_uri?: string | undefined;
476
+ contacts?: string[] | undefined;
477
+ } & {
478
+ [k: string]: unknown;
479
+ };
480
+ } & {
481
+ [k: string]: unknown;
482
+ };
483
+ authority_hints?: string[] | undefined;
484
+ } & {
485
+ [k: string]: unknown;
486
+ };
487
+ } | ({
488
+ header: {
489
+ alg: string;
490
+ kid: string;
491
+ typ: "entity-statement+jwt";
492
+ };
493
+ payload: {
494
+ iss: string;
495
+ sub: string;
496
+ iat: number;
497
+ exp: number;
498
+ jwks: {
499
+ keys: {
500
+ kty: "RSA" | "EC";
501
+ alg?: string | undefined;
502
+ crv?: string | undefined;
503
+ d?: string | undefined;
504
+ dp?: string | undefined;
505
+ dq?: string | undefined;
506
+ e?: string | undefined;
507
+ ext?: boolean | undefined;
508
+ k?: string | undefined;
509
+ key_ops?: string[] | undefined;
510
+ kid?: string | undefined;
511
+ n?: string | undefined;
512
+ p?: string | undefined;
513
+ q?: string | undefined;
514
+ qi?: string | undefined;
515
+ use?: string | undefined;
516
+ x?: string | undefined;
517
+ y?: string | undefined;
518
+ x5c?: string[] | undefined;
519
+ x5t?: string | undefined;
520
+ "x5t#S256"?: string | undefined;
521
+ x5u?: string | undefined;
522
+ }[];
523
+ };
524
+ metadata: {
525
+ federation_entity: {
526
+ federation_fetch_endpoint?: string | undefined;
527
+ federation_list_endpoint?: string | undefined;
528
+ federation_resolve_endpoint?: string | undefined;
529
+ federation_trust_mark_status_endpoint?: string | undefined;
530
+ federation_trust_mark_list_endpoint?: string | undefined;
531
+ homepage_uri?: string | undefined;
532
+ policy_uri?: string | undefined;
533
+ logo_uri?: string | undefined;
534
+ contacts?: string[] | undefined;
535
+ } & {
536
+ [k: string]: unknown;
537
+ };
538
+ } & {
539
+ [k: string]: unknown;
540
+ };
541
+ authority_hints?: string[] | undefined;
542
+ } & {
543
+ [k: string]: unknown;
544
+ };
545
+ } & {
546
+ payload: {
547
+ jwks: {
548
+ keys: {
549
+ kty: "RSA" | "EC";
550
+ alg?: string | undefined;
551
+ crv?: string | undefined;
552
+ d?: string | undefined;
553
+ dp?: string | undefined;
554
+ dq?: string | undefined;
555
+ e?: string | undefined;
556
+ ext?: boolean | undefined;
557
+ k?: string | undefined;
558
+ key_ops?: string[] | undefined;
559
+ kid?: string | undefined;
560
+ n?: string | undefined;
561
+ p?: string | undefined;
562
+ q?: string | undefined;
563
+ qi?: string | undefined;
564
+ use?: string | undefined;
565
+ x?: string | undefined;
566
+ y?: string | undefined;
567
+ x5c?: string[] | undefined;
568
+ x5t?: string | undefined;
569
+ "x5t#S256"?: string | undefined;
570
+ x5u?: string | undefined;
571
+ }[];
572
+ };
573
+ metadata: {
574
+ openid_credential_issuer: {
575
+ jwks: {
576
+ keys: {
577
+ kty: "RSA" | "EC";
578
+ alg?: string | undefined;
579
+ crv?: string | undefined;
580
+ d?: string | undefined;
581
+ dp?: string | undefined;
582
+ dq?: string | undefined;
583
+ e?: string | undefined;
584
+ ext?: boolean | undefined;
585
+ k?: string | undefined;
586
+ key_ops?: string[] | undefined;
587
+ kid?: string | undefined;
588
+ n?: string | undefined;
589
+ p?: string | undefined;
590
+ q?: string | undefined;
591
+ qi?: string | undefined;
592
+ use?: string | undefined;
593
+ x?: string | undefined;
594
+ y?: string | undefined;
595
+ x5c?: string[] | undefined;
596
+ x5t?: string | undefined;
597
+ "x5t#S256"?: string | undefined;
598
+ x5u?: string | undefined;
599
+ }[];
600
+ };
601
+ credential_issuer: string;
602
+ authorization_endpoint: string;
603
+ token_endpoint: string;
604
+ pushed_authorization_request_endpoint: string;
605
+ dpop_signing_alg_values_supported: string[];
606
+ credential_endpoint: string;
607
+ credentials_supported: {
608
+ format: "vc+sd-jwt";
609
+ cryptographic_binding_methods_supported: string[];
610
+ cryptographic_suites_supported: string[];
611
+ display: {
612
+ name: string;
613
+ locale: string;
614
+ logo: {
615
+ url: string;
616
+ alt_text: string;
617
+ };
618
+ background_color: string;
619
+ text_color: string;
620
+ }[];
621
+ }[];
622
+ };
623
+ };
624
+ };
625
+ }) | ({
626
+ header: {
627
+ alg: string;
628
+ kid: string;
629
+ typ: "entity-statement+jwt";
630
+ };
631
+ payload: {
632
+ iss: string;
633
+ sub: string;
634
+ iat: number;
635
+ exp: number;
636
+ jwks: {
637
+ keys: {
638
+ kty: "RSA" | "EC";
639
+ alg?: string | undefined;
640
+ crv?: string | undefined;
641
+ d?: string | undefined;
642
+ dp?: string | undefined;
643
+ dq?: string | undefined;
644
+ e?: string | undefined;
645
+ ext?: boolean | undefined;
646
+ k?: string | undefined;
647
+ key_ops?: string[] | undefined;
648
+ kid?: string | undefined;
649
+ n?: string | undefined;
650
+ p?: string | undefined;
651
+ q?: string | undefined;
652
+ qi?: string | undefined;
653
+ use?: string | undefined;
654
+ x?: string | undefined;
655
+ y?: string | undefined;
656
+ x5c?: string[] | undefined;
657
+ x5t?: string | undefined;
658
+ "x5t#S256"?: string | undefined;
659
+ x5u?: string | undefined;
660
+ }[];
661
+ };
662
+ metadata: {
663
+ federation_entity: {
664
+ federation_fetch_endpoint?: string | undefined;
665
+ federation_list_endpoint?: string | undefined;
666
+ federation_resolve_endpoint?: string | undefined;
667
+ federation_trust_mark_status_endpoint?: string | undefined;
668
+ federation_trust_mark_list_endpoint?: string | undefined;
669
+ homepage_uri?: string | undefined;
670
+ policy_uri?: string | undefined;
671
+ logo_uri?: string | undefined;
672
+ contacts?: string[] | undefined;
673
+ } & {
674
+ [k: string]: unknown;
675
+ };
676
+ } & {
677
+ [k: string]: unknown;
678
+ };
679
+ authority_hints?: string[] | undefined;
680
+ } & {
681
+ [k: string]: unknown;
682
+ };
683
+ } & {
684
+ payload: {
685
+ metadata: {
686
+ wallet_provider: {
687
+ jwks: {
688
+ keys: {
689
+ kty: "RSA" | "EC";
690
+ alg?: string | undefined;
691
+ crv?: string | undefined;
692
+ d?: string | undefined;
693
+ dp?: string | undefined;
694
+ dq?: string | undefined;
695
+ e?: string | undefined;
696
+ ext?: boolean | undefined;
697
+ k?: string | undefined;
698
+ key_ops?: string[] | undefined;
699
+ kid?: string | undefined;
700
+ n?: string | undefined;
701
+ p?: string | undefined;
702
+ q?: string | undefined;
703
+ qi?: string | undefined;
704
+ use?: string | undefined;
705
+ x?: string | undefined;
706
+ y?: string | undefined;
707
+ x5c?: string[] | undefined;
708
+ x5t?: string | undefined;
709
+ "x5t#S256"?: string | undefined;
710
+ x5u?: string | undefined;
711
+ }[];
712
+ };
713
+ token_endpoint: string;
714
+ grant_types_supported: string[];
715
+ token_endpoint_auth_methods_supported: string[];
716
+ token_endpoint_auth_signing_alg_values_supported: string[];
717
+ attested_security_context_values_supported?: string[] | undefined;
718
+ } & {
719
+ [k: string]: unknown;
720
+ };
721
+ };
722
+ };
723
+ }) | ({
724
+ header: {
725
+ alg: string;
726
+ kid: string;
727
+ typ: "entity-statement+jwt";
728
+ };
729
+ payload: {
730
+ iss: string;
731
+ sub: string;
732
+ iat: number;
733
+ exp: number;
734
+ jwks: {
735
+ keys: {
736
+ kty: "RSA" | "EC";
737
+ alg?: string | undefined;
738
+ crv?: string | undefined;
739
+ d?: string | undefined;
740
+ dp?: string | undefined;
741
+ dq?: string | undefined;
742
+ e?: string | undefined;
743
+ ext?: boolean | undefined;
744
+ k?: string | undefined;
745
+ key_ops?: string[] | undefined;
746
+ kid?: string | undefined;
747
+ n?: string | undefined;
748
+ p?: string | undefined;
749
+ q?: string | undefined;
750
+ qi?: string | undefined;
751
+ use?: string | undefined;
752
+ x?: string | undefined;
753
+ y?: string | undefined;
754
+ x5c?: string[] | undefined;
755
+ x5t?: string | undefined;
756
+ "x5t#S256"?: string | undefined;
757
+ x5u?: string | undefined;
758
+ }[];
759
+ };
760
+ metadata: {
761
+ federation_entity: {
762
+ federation_fetch_endpoint?: string | undefined;
763
+ federation_list_endpoint?: string | undefined;
764
+ federation_resolve_endpoint?: string | undefined;
765
+ federation_trust_mark_status_endpoint?: string | undefined;
766
+ federation_trust_mark_list_endpoint?: string | undefined;
767
+ homepage_uri?: string | undefined;
768
+ policy_uri?: string | undefined;
769
+ logo_uri?: string | undefined;
770
+ contacts?: string[] | undefined;
771
+ } & {
772
+ [k: string]: unknown;
773
+ };
774
+ } & {
775
+ [k: string]: unknown;
776
+ };
777
+ authority_hints?: string[] | undefined;
778
+ } & {
779
+ [k: string]: unknown;
780
+ };
781
+ } & {
782
+ payload: {
783
+ metadata: {
784
+ wallet_relying_party: {
785
+ jwks: {
786
+ kty: "RSA" | "EC";
787
+ alg?: string | undefined;
788
+ crv?: string | undefined;
789
+ d?: string | undefined;
790
+ dp?: string | undefined;
791
+ dq?: string | undefined;
792
+ e?: string | undefined;
793
+ ext?: boolean | undefined;
794
+ k?: string | undefined;
795
+ key_ops?: string[] | undefined;
796
+ kid?: string | undefined;
797
+ n?: string | undefined;
798
+ p?: string | undefined;
799
+ q?: string | undefined;
800
+ qi?: string | undefined;
801
+ use?: string | undefined;
802
+ x?: string | undefined;
803
+ y?: string | undefined;
804
+ x5c?: string[] | undefined;
805
+ x5t?: string | undefined;
806
+ "x5t#S256"?: string | undefined;
807
+ x5u?: string | undefined;
808
+ }[];
809
+ application_type?: string | undefined;
810
+ client_id?: string | undefined;
811
+ client_name?: string | undefined;
812
+ contacts?: string[] | undefined;
813
+ } & {
814
+ [k: string]: unknown;
815
+ };
816
+ };
817
+ };
818
+ })>;
16
819
  //# sourceMappingURL=index.d.ts.map