@pagopa/io-react-native-wallet 0.2.8 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. package/lib/commonjs/rp/__test__/index.test.js +145 -0
  2. package/lib/commonjs/rp/__test__/index.test.js.map +1 -1
  3. package/lib/commonjs/rp/index.js +33 -41
  4. package/lib/commonjs/rp/index.js.map +1 -1
  5. package/lib/commonjs/rp/types.js +11 -9
  6. package/lib/commonjs/rp/types.js.map +1 -1
  7. package/lib/commonjs/utils/jwk.js +35 -0
  8. package/lib/commonjs/utils/jwk.js.map +1 -1
  9. package/lib/commonjs/wallet-instance-attestation/issuing.js +1 -1
  10. package/lib/commonjs/wallet-instance-attestation/issuing.js.map +1 -1
  11. package/lib/commonjs/wallet-instance-attestation/types.js +6 -2
  12. package/lib/commonjs/wallet-instance-attestation/types.js.map +1 -1
  13. package/lib/module/rp/__test__/index.test.js +145 -0
  14. package/lib/module/rp/__test__/index.test.js.map +1 -1
  15. package/lib/module/rp/index.js +33 -41
  16. package/lib/module/rp/index.js.map +1 -1
  17. package/lib/module/rp/types.js +11 -9
  18. package/lib/module/rp/types.js.map +1 -1
  19. package/lib/module/utils/jwk.js +34 -0
  20. package/lib/module/utils/jwk.js.map +1 -1
  21. package/lib/module/wallet-instance-attestation/issuing.js +2 -2
  22. package/lib/module/wallet-instance-attestation/issuing.js.map +1 -1
  23. package/lib/module/wallet-instance-attestation/types.js +6 -2
  24. package/lib/module/wallet-instance-attestation/types.js.map +1 -1
  25. package/lib/typescript/rp/index.d.ts +8 -8
  26. package/lib/typescript/rp/index.d.ts.map +1 -1
  27. package/lib/typescript/rp/types.d.ts +260 -389
  28. package/lib/typescript/rp/types.d.ts.map +1 -1
  29. package/lib/typescript/utils/jwk.d.ts +9 -0
  30. package/lib/typescript/utils/jwk.d.ts.map +1 -1
  31. package/lib/typescript/wallet-instance-attestation/issuing.d.ts.map +1 -1
  32. package/lib/typescript/wallet-instance-attestation/types.d.ts +40 -4
  33. package/lib/typescript/wallet-instance-attestation/types.d.ts.map +1 -1
  34. package/package.json +2 -2
  35. package/src/rp/__test__/index.test.ts +222 -0
  36. package/src/rp/index.ts +44 -54
  37. package/src/rp/types.ts +8 -7
  38. package/src/utils/jwk.ts +21 -0
  39. package/src/wallet-instance-attestation/issuing.ts +3 -2
  40. package/src/wallet-instance-attestation/types.ts +6 -2
@@ -2,20 +2,20 @@ import * as z from "zod";
2
2
  export type RequestObject = z.infer<typeof RequestObject>;
3
3
  export declare const RequestObject: z.ZodObject<{
4
4
  header: z.ZodObject<{
5
- typ: z.ZodLiteral<"JWT">;
5
+ typ: z.ZodOptional<z.ZodLiteral<"JWT">>;
6
6
  alg: z.ZodString;
7
7
  kid: z.ZodString;
8
8
  trust_chain: z.ZodArray<z.ZodString, "many">;
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  alg: string;
11
11
  kid: string;
12
- typ: "JWT";
13
12
  trust_chain: string[];
13
+ typ?: "JWT" | undefined;
14
14
  }, {
15
15
  alg: string;
16
16
  kid: string;
17
- typ: "JWT";
18
17
  trust_chain: string[];
18
+ typ?: "JWT" | undefined;
19
19
  }>;
20
20
  payload: z.ZodObject<{
21
21
  iss: z.ZodString;
@@ -58,8 +58,8 @@ export declare const RequestObject: z.ZodObject<{
58
58
  header: {
59
59
  alg: string;
60
60
  kid: string;
61
- typ: "JWT";
62
61
  trust_chain: string[];
62
+ typ?: "JWT" | undefined;
63
63
  };
64
64
  payload: {
65
65
  iss: string;
@@ -78,8 +78,8 @@ export declare const RequestObject: z.ZodObject<{
78
78
  header: {
79
79
  alg: string;
80
80
  kid: string;
81
- typ: "JWT";
82
81
  trust_chain: string[];
82
+ typ?: "JWT" | undefined;
83
83
  };
84
84
  payload: {
85
85
  iss: string;
@@ -242,286 +242,193 @@ export declare const RpEntityConfiguration: z.ZodObject<{
242
242
  application_type: z.ZodString;
243
243
  client_id: z.ZodString;
244
244
  client_name: z.ZodString;
245
- jwks: z.ZodObject<{
246
- keys: z.ZodArray<z.ZodObject<{
247
- alg: z.ZodOptional<z.ZodString>;
248
- crv: z.ZodOptional<z.ZodString>;
249
- d: z.ZodOptional<z.ZodString>;
250
- dp: z.ZodOptional<z.ZodString>;
251
- dq: z.ZodOptional<z.ZodString>;
252
- e: z.ZodOptional<z.ZodString>;
253
- ext: z.ZodOptional<z.ZodBoolean>;
254
- k: z.ZodOptional<z.ZodString>;
255
- key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
256
- kid: z.ZodOptional<z.ZodString>;
257
- kty: z.ZodUnion<[z.ZodLiteral<"RSA">, z.ZodLiteral<"EC">]>;
258
- n: z.ZodOptional<z.ZodString>;
259
- p: z.ZodOptional<z.ZodString>;
260
- q: z.ZodOptional<z.ZodString>;
261
- qi: z.ZodOptional<z.ZodString>;
262
- use: z.ZodOptional<z.ZodString>;
263
- x: z.ZodOptional<z.ZodString>;
264
- y: z.ZodOptional<z.ZodString>;
265
- x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
266
- x5t: z.ZodOptional<z.ZodString>;
267
- "x5t#S256": z.ZodOptional<z.ZodString>;
268
- x5u: z.ZodOptional<z.ZodString>;
269
- }, "strip", z.ZodTypeAny, {
270
- kty: "RSA" | "EC";
271
- alg?: string | undefined;
272
- crv?: string | undefined;
273
- d?: string | undefined;
274
- dp?: string | undefined;
275
- dq?: string | undefined;
276
- e?: string | undefined;
277
- ext?: boolean | undefined;
278
- k?: string | undefined;
279
- key_ops?: string[] | undefined;
280
- kid?: string | undefined;
281
- n?: string | undefined;
282
- p?: string | undefined;
283
- q?: string | undefined;
284
- qi?: string | undefined;
285
- use?: string | undefined;
286
- x?: string | undefined;
287
- y?: string | undefined;
288
- x5c?: string[] | undefined;
289
- x5t?: string | undefined;
290
- "x5t#S256"?: string | undefined;
291
- x5u?: string | undefined;
292
- }, {
293
- kty: "RSA" | "EC";
294
- alg?: string | undefined;
295
- crv?: string | undefined;
296
- d?: string | undefined;
297
- dp?: string | undefined;
298
- dq?: string | undefined;
299
- e?: string | undefined;
300
- ext?: boolean | undefined;
301
- k?: string | undefined;
302
- key_ops?: string[] | undefined;
303
- kid?: string | undefined;
304
- n?: string | undefined;
305
- p?: string | undefined;
306
- q?: string | undefined;
307
- qi?: string | undefined;
308
- use?: string | undefined;
309
- x?: string | undefined;
310
- y?: string | undefined;
311
- x5c?: string[] | undefined;
312
- x5t?: string | undefined;
313
- "x5t#S256"?: string | undefined;
314
- x5u?: string | undefined;
315
- }>, "many">;
245
+ jwks: z.ZodArray<z.ZodObject<{
246
+ alg: z.ZodOptional<z.ZodString>;
247
+ crv: z.ZodOptional<z.ZodString>;
248
+ d: z.ZodOptional<z.ZodString>;
249
+ dp: z.ZodOptional<z.ZodString>;
250
+ dq: z.ZodOptional<z.ZodString>;
251
+ e: z.ZodOptional<z.ZodString>;
252
+ ext: z.ZodOptional<z.ZodBoolean>;
253
+ k: z.ZodOptional<z.ZodString>;
254
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
255
+ kid: z.ZodOptional<z.ZodString>;
256
+ kty: z.ZodUnion<[z.ZodLiteral<"RSA">, z.ZodLiteral<"EC">]>;
257
+ n: z.ZodOptional<z.ZodString>;
258
+ p: z.ZodOptional<z.ZodString>;
259
+ q: z.ZodOptional<z.ZodString>;
260
+ qi: z.ZodOptional<z.ZodString>;
261
+ use: z.ZodOptional<z.ZodString>;
262
+ x: z.ZodOptional<z.ZodString>;
263
+ y: z.ZodOptional<z.ZodString>;
264
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
265
+ x5t: z.ZodOptional<z.ZodString>;
266
+ "x5t#S256": z.ZodOptional<z.ZodString>;
267
+ x5u: z.ZodOptional<z.ZodString>;
316
268
  }, "strip", z.ZodTypeAny, {
317
- keys: {
318
- kty: "RSA" | "EC";
319
- alg?: string | undefined;
320
- crv?: string | undefined;
321
- d?: string | undefined;
322
- dp?: string | undefined;
323
- dq?: string | undefined;
324
- e?: string | undefined;
325
- ext?: boolean | undefined;
326
- k?: string | undefined;
327
- key_ops?: string[] | undefined;
328
- kid?: string | undefined;
329
- n?: string | undefined;
330
- p?: string | undefined;
331
- q?: string | undefined;
332
- qi?: string | undefined;
333
- use?: string | undefined;
334
- x?: string | undefined;
335
- y?: string | undefined;
336
- x5c?: string[] | undefined;
337
- x5t?: string | undefined;
338
- "x5t#S256"?: string | undefined;
339
- x5u?: string | undefined;
340
- }[];
269
+ kty: "RSA" | "EC";
270
+ alg?: string | undefined;
271
+ crv?: string | undefined;
272
+ d?: string | undefined;
273
+ dp?: string | undefined;
274
+ dq?: string | undefined;
275
+ e?: string | undefined;
276
+ ext?: boolean | undefined;
277
+ k?: string | undefined;
278
+ key_ops?: string[] | undefined;
279
+ kid?: string | undefined;
280
+ n?: string | undefined;
281
+ p?: string | undefined;
282
+ q?: string | undefined;
283
+ qi?: string | undefined;
284
+ use?: string | undefined;
285
+ x?: string | undefined;
286
+ y?: string | undefined;
287
+ x5c?: string[] | undefined;
288
+ x5t?: string | undefined;
289
+ "x5t#S256"?: string | undefined;
290
+ x5u?: string | undefined;
341
291
  }, {
342
- keys: {
343
- kty: "RSA" | "EC";
344
- alg?: string | undefined;
345
- crv?: string | undefined;
346
- d?: string | undefined;
347
- dp?: string | undefined;
348
- dq?: string | undefined;
349
- e?: string | undefined;
350
- ext?: boolean | undefined;
351
- k?: string | undefined;
352
- key_ops?: string[] | undefined;
353
- kid?: string | undefined;
354
- n?: string | undefined;
355
- p?: string | undefined;
356
- q?: string | undefined;
357
- qi?: string | undefined;
358
- use?: string | undefined;
359
- x?: string | undefined;
360
- y?: string | undefined;
361
- x5c?: string[] | undefined;
362
- x5t?: string | undefined;
363
- "x5t#S256"?: string | undefined;
364
- x5u?: string | undefined;
365
- }[];
366
- }>;
292
+ kty: "RSA" | "EC";
293
+ alg?: string | undefined;
294
+ crv?: string | undefined;
295
+ d?: string | undefined;
296
+ dp?: string | undefined;
297
+ dq?: string | undefined;
298
+ e?: string | undefined;
299
+ ext?: boolean | undefined;
300
+ k?: string | undefined;
301
+ key_ops?: string[] | undefined;
302
+ kid?: string | undefined;
303
+ n?: string | undefined;
304
+ p?: string | undefined;
305
+ q?: string | undefined;
306
+ qi?: string | undefined;
307
+ use?: string | undefined;
308
+ x?: string | undefined;
309
+ y?: string | undefined;
310
+ x5c?: string[] | undefined;
311
+ x5t?: string | undefined;
312
+ "x5t#S256"?: string | undefined;
313
+ x5u?: string | undefined;
314
+ }>, "many">;
367
315
  contacts: z.ZodArray<z.ZodString, "many">;
368
316
  }, "strip", z.ZodTypeAny, {
369
317
  jwks: {
370
- keys: {
371
- kty: "RSA" | "EC";
372
- alg?: string | undefined;
373
- crv?: string | undefined;
374
- d?: string | undefined;
375
- dp?: string | undefined;
376
- dq?: string | undefined;
377
- e?: string | undefined;
378
- ext?: boolean | undefined;
379
- k?: string | undefined;
380
- key_ops?: string[] | undefined;
381
- kid?: string | undefined;
382
- n?: string | undefined;
383
- p?: string | undefined;
384
- q?: string | undefined;
385
- qi?: string | undefined;
386
- use?: string | undefined;
387
- x?: string | undefined;
388
- y?: string | undefined;
389
- x5c?: string[] | undefined;
390
- x5t?: string | undefined;
391
- "x5t#S256"?: string | undefined;
392
- x5u?: string | undefined;
393
- }[];
394
- };
318
+ kty: "RSA" | "EC";
319
+ alg?: string | undefined;
320
+ crv?: string | undefined;
321
+ d?: string | undefined;
322
+ dp?: string | undefined;
323
+ dq?: string | undefined;
324
+ e?: string | undefined;
325
+ ext?: boolean | undefined;
326
+ k?: string | undefined;
327
+ key_ops?: string[] | undefined;
328
+ kid?: string | undefined;
329
+ n?: string | undefined;
330
+ p?: string | undefined;
331
+ q?: string | undefined;
332
+ qi?: string | undefined;
333
+ use?: string | undefined;
334
+ x?: string | undefined;
335
+ y?: string | undefined;
336
+ x5c?: string[] | undefined;
337
+ x5t?: string | undefined;
338
+ "x5t#S256"?: string | undefined;
339
+ x5u?: string | undefined;
340
+ }[];
395
341
  client_id: string;
396
342
  application_type: string;
397
343
  client_name: string;
398
344
  contacts: string[];
399
345
  }, {
400
346
  jwks: {
401
- keys: {
402
- kty: "RSA" | "EC";
403
- alg?: string | undefined;
404
- crv?: string | undefined;
405
- d?: string | undefined;
406
- dp?: string | undefined;
407
- dq?: string | undefined;
408
- e?: string | undefined;
409
- ext?: boolean | undefined;
410
- k?: string | undefined;
411
- key_ops?: string[] | undefined;
412
- kid?: string | undefined;
413
- n?: string | undefined;
414
- p?: string | undefined;
415
- q?: string | undefined;
416
- qi?: string | undefined;
417
- use?: string | undefined;
418
- x?: string | undefined;
419
- y?: string | undefined;
420
- x5c?: string[] | undefined;
421
- x5t?: string | undefined;
422
- "x5t#S256"?: string | undefined;
423
- x5u?: string | undefined;
424
- }[];
425
- };
347
+ kty: "RSA" | "EC";
348
+ alg?: string | undefined;
349
+ crv?: string | undefined;
350
+ d?: string | undefined;
351
+ dp?: string | undefined;
352
+ dq?: string | undefined;
353
+ e?: string | undefined;
354
+ ext?: boolean | undefined;
355
+ k?: string | undefined;
356
+ key_ops?: string[] | undefined;
357
+ kid?: string | undefined;
358
+ n?: string | undefined;
359
+ p?: string | undefined;
360
+ q?: string | undefined;
361
+ qi?: string | undefined;
362
+ use?: string | undefined;
363
+ x?: string | undefined;
364
+ y?: string | undefined;
365
+ x5c?: string[] | undefined;
366
+ x5t?: string | undefined;
367
+ "x5t#S256"?: string | undefined;
368
+ x5u?: string | undefined;
369
+ }[];
426
370
  client_id: string;
427
371
  application_type: string;
428
372
  client_name: string;
429
373
  contacts: string[];
430
374
  }>;
431
- federation_entity: z.ZodObject<{
432
- organization_name: z.ZodString;
433
- homepage_uri: z.ZodString;
434
- policy_uri: z.ZodString;
435
- logo_uri: z.ZodString;
436
- contacts: z.ZodArray<z.ZodString, "many">;
437
- }, "strip", z.ZodTypeAny, {
438
- organization_name: string;
439
- homepage_uri: string;
440
- policy_uri: string;
441
- logo_uri: string;
442
- contacts: string[];
443
- }, {
444
- organization_name: string;
445
- homepage_uri: string;
446
- policy_uri: string;
447
- logo_uri: string;
448
- contacts: string[];
449
- }>;
450
375
  }, "strip", z.ZodTypeAny, {
451
- federation_entity: {
452
- organization_name: string;
453
- homepage_uri: string;
454
- policy_uri: string;
455
- logo_uri: string;
456
- contacts: string[];
457
- };
458
376
  wallet_relying_party: {
459
377
  jwks: {
460
- keys: {
461
- kty: "RSA" | "EC";
462
- alg?: string | undefined;
463
- crv?: string | undefined;
464
- d?: string | undefined;
465
- dp?: string | undefined;
466
- dq?: string | undefined;
467
- e?: string | undefined;
468
- ext?: boolean | undefined;
469
- k?: string | undefined;
470
- key_ops?: string[] | undefined;
471
- kid?: string | undefined;
472
- n?: string | undefined;
473
- p?: string | undefined;
474
- q?: string | undefined;
475
- qi?: string | undefined;
476
- use?: string | undefined;
477
- x?: string | undefined;
478
- y?: string | undefined;
479
- x5c?: string[] | undefined;
480
- x5t?: string | undefined;
481
- "x5t#S256"?: string | undefined;
482
- x5u?: string | undefined;
483
- }[];
484
- };
378
+ kty: "RSA" | "EC";
379
+ alg?: string | undefined;
380
+ crv?: string | undefined;
381
+ d?: string | undefined;
382
+ dp?: string | undefined;
383
+ dq?: string | undefined;
384
+ e?: string | undefined;
385
+ ext?: boolean | undefined;
386
+ k?: string | undefined;
387
+ key_ops?: string[] | undefined;
388
+ kid?: string | undefined;
389
+ n?: string | undefined;
390
+ p?: string | undefined;
391
+ q?: string | undefined;
392
+ qi?: string | undefined;
393
+ use?: string | undefined;
394
+ x?: string | undefined;
395
+ y?: string | undefined;
396
+ x5c?: string[] | undefined;
397
+ x5t?: string | undefined;
398
+ "x5t#S256"?: string | undefined;
399
+ x5u?: string | undefined;
400
+ }[];
485
401
  client_id: string;
486
402
  application_type: string;
487
403
  client_name: string;
488
404
  contacts: string[];
489
405
  };
490
406
  }, {
491
- federation_entity: {
492
- organization_name: string;
493
- homepage_uri: string;
494
- policy_uri: string;
495
- logo_uri: string;
496
- contacts: string[];
497
- };
498
407
  wallet_relying_party: {
499
408
  jwks: {
500
- keys: {
501
- kty: "RSA" | "EC";
502
- alg?: string | undefined;
503
- crv?: string | undefined;
504
- d?: string | undefined;
505
- dp?: string | undefined;
506
- dq?: string | undefined;
507
- e?: string | undefined;
508
- ext?: boolean | undefined;
509
- k?: string | undefined;
510
- key_ops?: string[] | undefined;
511
- kid?: string | undefined;
512
- n?: string | undefined;
513
- p?: string | undefined;
514
- q?: string | undefined;
515
- qi?: string | undefined;
516
- use?: string | undefined;
517
- x?: string | undefined;
518
- y?: string | undefined;
519
- x5c?: string[] | undefined;
520
- x5t?: string | undefined;
521
- "x5t#S256"?: string | undefined;
522
- x5u?: string | undefined;
523
- }[];
524
- };
409
+ kty: "RSA" | "EC";
410
+ alg?: string | undefined;
411
+ crv?: string | undefined;
412
+ d?: string | undefined;
413
+ dp?: string | undefined;
414
+ dq?: string | undefined;
415
+ e?: string | undefined;
416
+ ext?: boolean | undefined;
417
+ k?: string | undefined;
418
+ key_ops?: string[] | undefined;
419
+ kid?: string | undefined;
420
+ n?: string | undefined;
421
+ p?: string | undefined;
422
+ q?: string | undefined;
423
+ qi?: string | undefined;
424
+ use?: string | undefined;
425
+ x?: string | undefined;
426
+ y?: string | undefined;
427
+ x5c?: string[] | undefined;
428
+ x5t?: string | undefined;
429
+ "x5t#S256"?: string | undefined;
430
+ x5u?: string | undefined;
431
+ }[];
525
432
  client_id: string;
526
433
  application_type: string;
527
434
  client_name: string;
@@ -561,40 +468,31 @@ export declare const RpEntityConfiguration: z.ZodObject<{
561
468
  }[];
562
469
  };
563
470
  metadata: {
564
- federation_entity: {
565
- organization_name: string;
566
- homepage_uri: string;
567
- policy_uri: string;
568
- logo_uri: string;
569
- contacts: string[];
570
- };
571
471
  wallet_relying_party: {
572
472
  jwks: {
573
- keys: {
574
- kty: "RSA" | "EC";
575
- alg?: string | undefined;
576
- crv?: string | undefined;
577
- d?: string | undefined;
578
- dp?: string | undefined;
579
- dq?: string | undefined;
580
- e?: string | undefined;
581
- ext?: boolean | undefined;
582
- k?: string | undefined;
583
- key_ops?: string[] | undefined;
584
- kid?: string | undefined;
585
- n?: string | undefined;
586
- p?: string | undefined;
587
- q?: string | undefined;
588
- qi?: string | undefined;
589
- use?: string | undefined;
590
- x?: string | undefined;
591
- y?: string | undefined;
592
- x5c?: string[] | undefined;
593
- x5t?: string | undefined;
594
- "x5t#S256"?: string | undefined;
595
- x5u?: string | undefined;
596
- }[];
597
- };
473
+ kty: "RSA" | "EC";
474
+ alg?: string | undefined;
475
+ crv?: string | undefined;
476
+ d?: string | undefined;
477
+ dp?: string | undefined;
478
+ dq?: string | undefined;
479
+ e?: string | undefined;
480
+ ext?: boolean | undefined;
481
+ k?: string | undefined;
482
+ key_ops?: string[] | undefined;
483
+ kid?: string | undefined;
484
+ n?: string | undefined;
485
+ p?: string | undefined;
486
+ q?: string | undefined;
487
+ qi?: string | undefined;
488
+ use?: string | undefined;
489
+ x?: string | undefined;
490
+ y?: string | undefined;
491
+ x5c?: string[] | undefined;
492
+ x5t?: string | undefined;
493
+ "x5t#S256"?: string | undefined;
494
+ x5u?: string | undefined;
495
+ }[];
598
496
  client_id: string;
599
497
  application_type: string;
600
498
  client_name: string;
@@ -634,40 +532,31 @@ export declare const RpEntityConfiguration: z.ZodObject<{
634
532
  }[];
635
533
  };
636
534
  metadata: {
637
- federation_entity: {
638
- organization_name: string;
639
- homepage_uri: string;
640
- policy_uri: string;
641
- logo_uri: string;
642
- contacts: string[];
643
- };
644
535
  wallet_relying_party: {
645
536
  jwks: {
646
- keys: {
647
- kty: "RSA" | "EC";
648
- alg?: string | undefined;
649
- crv?: string | undefined;
650
- d?: string | undefined;
651
- dp?: string | undefined;
652
- dq?: string | undefined;
653
- e?: string | undefined;
654
- ext?: boolean | undefined;
655
- k?: string | undefined;
656
- key_ops?: string[] | undefined;
657
- kid?: string | undefined;
658
- n?: string | undefined;
659
- p?: string | undefined;
660
- q?: string | undefined;
661
- qi?: string | undefined;
662
- use?: string | undefined;
663
- x?: string | undefined;
664
- y?: string | undefined;
665
- x5c?: string[] | undefined;
666
- x5t?: string | undefined;
667
- "x5t#S256"?: string | undefined;
668
- x5u?: string | undefined;
669
- }[];
670
- };
537
+ kty: "RSA" | "EC";
538
+ alg?: string | undefined;
539
+ crv?: string | undefined;
540
+ d?: string | undefined;
541
+ dp?: string | undefined;
542
+ dq?: string | undefined;
543
+ e?: string | undefined;
544
+ ext?: boolean | undefined;
545
+ k?: string | undefined;
546
+ key_ops?: string[] | undefined;
547
+ kid?: string | undefined;
548
+ n?: string | undefined;
549
+ p?: string | undefined;
550
+ q?: string | undefined;
551
+ qi?: string | undefined;
552
+ use?: string | undefined;
553
+ x?: string | undefined;
554
+ y?: string | undefined;
555
+ x5c?: string[] | undefined;
556
+ x5t?: string | undefined;
557
+ "x5t#S256"?: string | undefined;
558
+ x5u?: string | undefined;
559
+ }[];
671
560
  client_id: string;
672
561
  application_type: string;
673
562
  client_name: string;
@@ -714,40 +603,31 @@ export declare const RpEntityConfiguration: z.ZodObject<{
714
603
  }[];
715
604
  };
716
605
  metadata: {
717
- federation_entity: {
718
- organization_name: string;
719
- homepage_uri: string;
720
- policy_uri: string;
721
- logo_uri: string;
722
- contacts: string[];
723
- };
724
606
  wallet_relying_party: {
725
607
  jwks: {
726
- keys: {
727
- kty: "RSA" | "EC";
728
- alg?: string | undefined;
729
- crv?: string | undefined;
730
- d?: string | undefined;
731
- dp?: string | undefined;
732
- dq?: string | undefined;
733
- e?: string | undefined;
734
- ext?: boolean | undefined;
735
- k?: string | undefined;
736
- key_ops?: string[] | undefined;
737
- kid?: string | undefined;
738
- n?: string | undefined;
739
- p?: string | undefined;
740
- q?: string | undefined;
741
- qi?: string | undefined;
742
- use?: string | undefined;
743
- x?: string | undefined;
744
- y?: string | undefined;
745
- x5c?: string[] | undefined;
746
- x5t?: string | undefined;
747
- "x5t#S256"?: string | undefined;
748
- x5u?: string | undefined;
749
- }[];
750
- };
608
+ kty: "RSA" | "EC";
609
+ alg?: string | undefined;
610
+ crv?: string | undefined;
611
+ d?: string | undefined;
612
+ dp?: string | undefined;
613
+ dq?: string | undefined;
614
+ e?: string | undefined;
615
+ ext?: boolean | undefined;
616
+ k?: string | undefined;
617
+ key_ops?: string[] | undefined;
618
+ kid?: string | undefined;
619
+ n?: string | undefined;
620
+ p?: string | undefined;
621
+ q?: string | undefined;
622
+ qi?: string | undefined;
623
+ use?: string | undefined;
624
+ x?: string | undefined;
625
+ y?: string | undefined;
626
+ x5c?: string[] | undefined;
627
+ x5t?: string | undefined;
628
+ "x5t#S256"?: string | undefined;
629
+ x5u?: string | undefined;
630
+ }[];
751
631
  client_id: string;
752
632
  application_type: string;
753
633
  client_name: string;
@@ -794,40 +674,31 @@ export declare const RpEntityConfiguration: z.ZodObject<{
794
674
  }[];
795
675
  };
796
676
  metadata: {
797
- federation_entity: {
798
- organization_name: string;
799
- homepage_uri: string;
800
- policy_uri: string;
801
- logo_uri: string;
802
- contacts: string[];
803
- };
804
677
  wallet_relying_party: {
805
678
  jwks: {
806
- keys: {
807
- kty: "RSA" | "EC";
808
- alg?: string | undefined;
809
- crv?: string | undefined;
810
- d?: string | undefined;
811
- dp?: string | undefined;
812
- dq?: string | undefined;
813
- e?: string | undefined;
814
- ext?: boolean | undefined;
815
- k?: string | undefined;
816
- key_ops?: string[] | undefined;
817
- kid?: string | undefined;
818
- n?: string | undefined;
819
- p?: string | undefined;
820
- q?: string | undefined;
821
- qi?: string | undefined;
822
- use?: string | undefined;
823
- x?: string | undefined;
824
- y?: string | undefined;
825
- x5c?: string[] | undefined;
826
- x5t?: string | undefined;
827
- "x5t#S256"?: string | undefined;
828
- x5u?: string | undefined;
829
- }[];
830
- };
679
+ kty: "RSA" | "EC";
680
+ alg?: string | undefined;
681
+ crv?: string | undefined;
682
+ d?: string | undefined;
683
+ dp?: string | undefined;
684
+ dq?: string | undefined;
685
+ e?: string | undefined;
686
+ ext?: boolean | undefined;
687
+ k?: string | undefined;
688
+ key_ops?: string[] | undefined;
689
+ kid?: string | undefined;
690
+ n?: string | undefined;
691
+ p?: string | undefined;
692
+ q?: string | undefined;
693
+ qi?: string | undefined;
694
+ use?: string | undefined;
695
+ x?: string | undefined;
696
+ y?: string | undefined;
697
+ x5c?: string[] | undefined;
698
+ x5t?: string | undefined;
699
+ "x5t#S256"?: string | undefined;
700
+ x5u?: string | undefined;
701
+ }[];
831
702
  client_id: string;
832
703
  application_type: string;
833
704
  client_name: string;
@@ -839,17 +710,17 @@ export declare const RpEntityConfiguration: z.ZodObject<{
839
710
  }>;
840
711
  export type QRCodePayload = z.infer<typeof QRCodePayload>;
841
712
  export declare const QRCodePayload: z.ZodObject<{
842
- protocol: z.ZodLiteral<"eudiw:">;
713
+ protocol: z.ZodString;
843
714
  resource: z.ZodString;
844
715
  clientId: z.ZodString;
845
716
  requestURI: z.ZodString;
846
717
  }, "strip", z.ZodTypeAny, {
847
- protocol: "eudiw:";
718
+ protocol: string;
848
719
  resource: string;
849
720
  clientId: string;
850
721
  requestURI: string;
851
722
  }, {
852
- protocol: "eudiw:";
723
+ protocol: string;
853
724
  resource: string;
854
725
  clientId: string;
855
726
  requestURI: string;