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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. package/README.md +98 -22
  2. package/lib/commonjs/index.js +12 -8
  3. package/lib/commonjs/index.js.map +1 -1
  4. package/lib/commonjs/pid/index.js +3 -8
  5. package/lib/commonjs/pid/index.js.map +1 -1
  6. package/lib/commonjs/pid/issuing.js +152 -168
  7. package/lib/commonjs/pid/issuing.js.map +1 -1
  8. package/lib/commonjs/pid/metadata.js +28 -25
  9. package/lib/commonjs/pid/metadata.js.map +1 -1
  10. package/lib/commonjs/rp/__test__/index.test.js +5 -3
  11. package/lib/commonjs/rp/__test__/index.test.js.map +1 -1
  12. package/lib/commonjs/rp/index.js +158 -154
  13. package/lib/commonjs/rp/index.js.map +1 -1
  14. package/lib/commonjs/trust/types.js +9 -7
  15. package/lib/commonjs/trust/types.js.map +1 -1
  16. package/lib/commonjs/utils/crypto.js +46 -0
  17. package/lib/commonjs/utils/crypto.js.map +1 -0
  18. package/lib/commonjs/utils/dpop.js +14 -7
  19. package/lib/commonjs/utils/dpop.js.map +1 -1
  20. package/lib/commonjs/wallet-instance-attestation/index.js +3 -3
  21. package/lib/commonjs/wallet-instance-attestation/issuing.js +50 -60
  22. package/lib/commonjs/wallet-instance-attestation/issuing.js.map +1 -1
  23. package/lib/module/index.js +4 -3
  24. package/lib/module/index.js.map +1 -1
  25. package/lib/module/pid/index.js +1 -1
  26. package/lib/module/pid/index.js.map +1 -1
  27. package/lib/module/pid/issuing.js +151 -171
  28. package/lib/module/pid/issuing.js.map +1 -1
  29. package/lib/module/pid/metadata.js +28 -25
  30. package/lib/module/pid/metadata.js.map +1 -1
  31. package/lib/module/rp/__test__/index.test.js +1 -1
  32. package/lib/module/rp/__test__/index.test.js.map +1 -1
  33. package/lib/module/rp/index.js +155 -153
  34. package/lib/module/rp/index.js.map +1 -1
  35. package/lib/module/trust/types.js +7 -6
  36. package/lib/module/trust/types.js.map +1 -1
  37. package/lib/module/utils/crypto.js +40 -0
  38. package/lib/module/utils/crypto.js.map +1 -0
  39. package/lib/module/utils/dpop.js +13 -5
  40. package/lib/module/utils/dpop.js.map +1 -1
  41. package/lib/module/wallet-instance-attestation/index.js +2 -2
  42. package/lib/module/wallet-instance-attestation/index.js.map +1 -1
  43. package/lib/module/wallet-instance-attestation/issuing.js +48 -58
  44. package/lib/module/wallet-instance-attestation/issuing.js.map +1 -1
  45. package/lib/typescript/index.d.ts +4 -3
  46. package/lib/typescript/index.d.ts.map +1 -1
  47. package/lib/typescript/pid/index.d.ts +1 -1
  48. package/lib/typescript/pid/index.d.ts.map +1 -1
  49. package/lib/typescript/pid/issuing.d.ts +51 -87
  50. package/lib/typescript/pid/issuing.d.ts.map +1 -1
  51. package/lib/typescript/pid/metadata.d.ts +1338 -408
  52. package/lib/typescript/pid/metadata.d.ts.map +1 -1
  53. package/lib/typescript/rp/index.d.ts +48 -86
  54. package/lib/typescript/rp/index.d.ts.map +1 -1
  55. package/lib/typescript/rp/types.d.ts +413 -57
  56. package/lib/typescript/rp/types.d.ts.map +1 -1
  57. package/lib/typescript/sd-jwt/index.d.ts +1 -1
  58. package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
  59. package/lib/typescript/trust/types.d.ts +1000 -274
  60. package/lib/typescript/trust/types.d.ts.map +1 -1
  61. package/lib/typescript/utils/crypto.d.ts +10 -0
  62. package/lib/typescript/utils/crypto.d.ts.map +1 -0
  63. package/lib/typescript/utils/dpop.d.ts +10 -2
  64. package/lib/typescript/utils/dpop.d.ts.map +1 -1
  65. package/lib/typescript/wallet-instance-attestation/index.d.ts +2 -2
  66. package/lib/typescript/wallet-instance-attestation/index.d.ts.map +1 -1
  67. package/lib/typescript/wallet-instance-attestation/issuing.d.ts +17 -31
  68. package/lib/typescript/wallet-instance-attestation/issuing.d.ts.map +1 -1
  69. package/package.json +2 -2
  70. package/src/index.ts +5 -3
  71. package/src/pid/index.ts +1 -1
  72. package/src/pid/issuing.ts +233 -225
  73. package/src/pid/metadata.ts +32 -27
  74. package/src/rp/__test__/index.test.ts +1 -1
  75. package/src/rp/index.ts +180 -188
  76. package/src/sd-jwt/index.ts +1 -1
  77. package/src/trust/types.ts +39 -32
  78. package/src/utils/crypto.ts +41 -0
  79. package/src/utils/dpop.ts +17 -7
  80. package/src/wallet-instance-attestation/index.ts +2 -2
  81. package/src/wallet-instance-attestation/issuing.ts +55 -62
@@ -33,10 +33,10 @@ export declare const RequestObject: z.ZodObject<{
33
33
  iss: string;
34
34
  iat: number;
35
35
  exp: number;
36
+ nonce: string;
36
37
  response_type: "vp_token";
37
38
  state: string;
38
39
  client_id: string;
39
- nonce: string;
40
40
  response_uri: string;
41
41
  response_mode: "direct_post.jwt";
42
42
  client_id_scheme: "entity_id";
@@ -45,10 +45,10 @@ export declare const RequestObject: z.ZodObject<{
45
45
  iss: string;
46
46
  iat: number;
47
47
  exp: number;
48
+ nonce: string;
48
49
  response_type: "vp_token";
49
50
  state: string;
50
51
  client_id: string;
51
- nonce: string;
52
52
  response_uri: string;
53
53
  response_mode: "direct_post.jwt";
54
54
  client_id_scheme: "entity_id";
@@ -65,10 +65,10 @@ export declare const RequestObject: z.ZodObject<{
65
65
  iss: string;
66
66
  iat: number;
67
67
  exp: number;
68
+ nonce: string;
68
69
  response_type: "vp_token";
69
70
  state: string;
70
71
  client_id: string;
71
- nonce: string;
72
72
  response_uri: string;
73
73
  response_mode: "direct_post.jwt";
74
74
  client_id_scheme: "entity_id";
@@ -85,10 +85,10 @@ export declare const RequestObject: z.ZodObject<{
85
85
  iss: string;
86
86
  iat: number;
87
87
  exp: number;
88
+ nonce: string;
88
89
  response_type: "vp_token";
89
90
  state: string;
90
91
  client_id: string;
91
- nonce: string;
92
92
  response_uri: string;
93
93
  response_mode: "direct_post.jwt";
94
94
  client_id_scheme: "entity_id";
@@ -338,12 +338,83 @@ export declare const RpEntityConfiguration: z.ZodIntersection<z.ZodObject<{
338
338
  }, z.ZodTypeAny, "passthrough">>;
339
339
  }, z.ZodTypeAny, "passthrough">>;
340
340
  authority_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
341
- }, "strip", z.ZodTypeAny, {
342
- iss: string;
343
- sub: string;
344
- iat: number;
345
- exp: number;
346
- jwks: {
341
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
342
+ exp: z.ZodNumber;
343
+ iat: z.ZodNumber;
344
+ iss: z.ZodString;
345
+ sub: z.ZodString;
346
+ jwks: z.ZodObject<{
347
+ keys: z.ZodArray<z.ZodObject<{
348
+ alg: z.ZodOptional<z.ZodString>;
349
+ crv: z.ZodOptional<z.ZodString>;
350
+ d: z.ZodOptional<z.ZodString>;
351
+ dp: z.ZodOptional<z.ZodString>;
352
+ dq: z.ZodOptional<z.ZodString>;
353
+ e: z.ZodOptional<z.ZodString>;
354
+ ext: z.ZodOptional<z.ZodBoolean>;
355
+ k: z.ZodOptional<z.ZodString>;
356
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
357
+ kid: z.ZodOptional<z.ZodString>;
358
+ kty: z.ZodUnion<[z.ZodLiteral<"RSA">, z.ZodLiteral<"EC">]>;
359
+ n: z.ZodOptional<z.ZodString>;
360
+ p: z.ZodOptional<z.ZodString>;
361
+ q: z.ZodOptional<z.ZodString>;
362
+ qi: z.ZodOptional<z.ZodString>;
363
+ use: z.ZodOptional<z.ZodString>;
364
+ x: z.ZodOptional<z.ZodString>;
365
+ y: z.ZodOptional<z.ZodString>;
366
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
367
+ x5t: z.ZodOptional<z.ZodString>;
368
+ "x5t#S256": z.ZodOptional<z.ZodString>;
369
+ x5u: z.ZodOptional<z.ZodString>;
370
+ }, "strip", z.ZodTypeAny, {
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
+ kty: "RSA" | "EC";
395
+ alg?: string | undefined;
396
+ crv?: string | undefined;
397
+ d?: string | undefined;
398
+ dp?: string | undefined;
399
+ dq?: string | undefined;
400
+ e?: string | undefined;
401
+ ext?: boolean | undefined;
402
+ k?: string | undefined;
403
+ key_ops?: string[] | undefined;
404
+ kid?: string | undefined;
405
+ n?: string | undefined;
406
+ p?: string | undefined;
407
+ q?: string | undefined;
408
+ qi?: string | undefined;
409
+ use?: string | undefined;
410
+ x?: string | undefined;
411
+ y?: string | undefined;
412
+ x5c?: string[] | undefined;
413
+ x5t?: string | undefined;
414
+ "x5t#S256"?: string | undefined;
415
+ x5u?: string | undefined;
416
+ }>, "many">;
417
+ }, "strip", z.ZodTypeAny, {
347
418
  keys: {
348
419
  kty: "RSA" | "EC";
349
420
  alg?: string | undefined;
@@ -368,31 +439,7 @@ export declare const RpEntityConfiguration: z.ZodIntersection<z.ZodObject<{
368
439
  "x5t#S256"?: string | undefined;
369
440
  x5u?: string | undefined;
370
441
  }[];
371
- };
372
- metadata: {
373
- federation_entity: {
374
- federation_fetch_endpoint?: string | undefined;
375
- federation_list_endpoint?: string | undefined;
376
- federation_resolve_endpoint?: string | undefined;
377
- federation_trust_mark_status_endpoint?: string | undefined;
378
- federation_trust_mark_list_endpoint?: string | undefined;
379
- homepage_uri?: string | undefined;
380
- policy_uri?: string | undefined;
381
- logo_uri?: string | undefined;
382
- contacts?: string[] | undefined;
383
- } & {
384
- [k: string]: unknown;
385
- };
386
- } & {
387
- [k: string]: unknown;
388
- };
389
- authority_hints?: string[] | undefined;
390
- }, {
391
- iss: string;
392
- sub: string;
393
- iat: number;
394
- exp: number;
395
- jwks: {
442
+ }, {
396
443
  keys: {
397
444
  kty: "RSA" | "EC";
398
445
  alg?: string | undefined;
@@ -417,26 +464,331 @@ export declare const RpEntityConfiguration: z.ZodIntersection<z.ZodObject<{
417
464
  "x5t#S256"?: string | undefined;
418
465
  x5u?: string | undefined;
419
466
  }[];
420
- };
421
- metadata: {
422
- federation_entity: {
423
- federation_fetch_endpoint?: string | undefined;
424
- federation_list_endpoint?: string | undefined;
425
- federation_resolve_endpoint?: string | undefined;
426
- federation_trust_mark_status_endpoint?: string | undefined;
427
- federation_trust_mark_list_endpoint?: string | undefined;
428
- homepage_uri?: string | undefined;
429
- policy_uri?: string | undefined;
430
- logo_uri?: string | undefined;
431
- contacts?: string[] | undefined;
432
- } & {
433
- [k: string]: unknown;
434
- };
435
- } & {
436
- [k: string]: unknown;
437
- };
438
- authority_hints?: string[] | undefined;
439
- }>;
467
+ }>;
468
+ metadata: z.ZodObject<{
469
+ federation_entity: z.ZodObject<{
470
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
471
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
472
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
473
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
474
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
475
+ homepage_uri: z.ZodOptional<z.ZodString>;
476
+ policy_uri: z.ZodOptional<z.ZodString>;
477
+ logo_uri: z.ZodOptional<z.ZodString>;
478
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
479
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
480
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
481
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
482
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
483
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
484
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
485
+ homepage_uri: z.ZodOptional<z.ZodString>;
486
+ policy_uri: z.ZodOptional<z.ZodString>;
487
+ logo_uri: z.ZodOptional<z.ZodString>;
488
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
489
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
490
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
491
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
492
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
493
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
494
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
495
+ homepage_uri: z.ZodOptional<z.ZodString>;
496
+ policy_uri: z.ZodOptional<z.ZodString>;
497
+ logo_uri: z.ZodOptional<z.ZodString>;
498
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
499
+ }, z.ZodTypeAny, "passthrough">>;
500
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
501
+ federation_entity: z.ZodObject<{
502
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
503
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
504
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
505
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
506
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
507
+ homepage_uri: z.ZodOptional<z.ZodString>;
508
+ policy_uri: z.ZodOptional<z.ZodString>;
509
+ logo_uri: z.ZodOptional<z.ZodString>;
510
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
511
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
512
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
513
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
514
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
515
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
516
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
517
+ homepage_uri: z.ZodOptional<z.ZodString>;
518
+ policy_uri: z.ZodOptional<z.ZodString>;
519
+ logo_uri: z.ZodOptional<z.ZodString>;
520
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
521
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
522
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
523
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
524
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
525
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
526
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
527
+ homepage_uri: z.ZodOptional<z.ZodString>;
528
+ policy_uri: z.ZodOptional<z.ZodString>;
529
+ logo_uri: z.ZodOptional<z.ZodString>;
530
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
531
+ }, z.ZodTypeAny, "passthrough">>;
532
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
533
+ federation_entity: z.ZodObject<{
534
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
535
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
536
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
537
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
538
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
539
+ homepage_uri: z.ZodOptional<z.ZodString>;
540
+ policy_uri: z.ZodOptional<z.ZodString>;
541
+ logo_uri: z.ZodOptional<z.ZodString>;
542
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
543
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
544
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
545
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
546
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
547
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
548
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
549
+ homepage_uri: z.ZodOptional<z.ZodString>;
550
+ policy_uri: z.ZodOptional<z.ZodString>;
551
+ logo_uri: z.ZodOptional<z.ZodString>;
552
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
553
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
554
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
555
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
556
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
557
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
558
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
559
+ homepage_uri: z.ZodOptional<z.ZodString>;
560
+ policy_uri: z.ZodOptional<z.ZodString>;
561
+ logo_uri: z.ZodOptional<z.ZodString>;
562
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
563
+ }, z.ZodTypeAny, "passthrough">>;
564
+ }, z.ZodTypeAny, "passthrough">>;
565
+ authority_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
566
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
567
+ exp: z.ZodNumber;
568
+ iat: z.ZodNumber;
569
+ iss: z.ZodString;
570
+ sub: z.ZodString;
571
+ jwks: z.ZodObject<{
572
+ keys: z.ZodArray<z.ZodObject<{
573
+ alg: z.ZodOptional<z.ZodString>;
574
+ crv: z.ZodOptional<z.ZodString>;
575
+ d: z.ZodOptional<z.ZodString>;
576
+ dp: z.ZodOptional<z.ZodString>;
577
+ dq: z.ZodOptional<z.ZodString>;
578
+ e: z.ZodOptional<z.ZodString>;
579
+ ext: z.ZodOptional<z.ZodBoolean>;
580
+ k: z.ZodOptional<z.ZodString>;
581
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
582
+ kid: z.ZodOptional<z.ZodString>;
583
+ kty: z.ZodUnion<[z.ZodLiteral<"RSA">, z.ZodLiteral<"EC">]>;
584
+ n: z.ZodOptional<z.ZodString>;
585
+ p: z.ZodOptional<z.ZodString>;
586
+ q: z.ZodOptional<z.ZodString>;
587
+ qi: z.ZodOptional<z.ZodString>;
588
+ use: z.ZodOptional<z.ZodString>;
589
+ x: z.ZodOptional<z.ZodString>;
590
+ y: z.ZodOptional<z.ZodString>;
591
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
592
+ x5t: z.ZodOptional<z.ZodString>;
593
+ "x5t#S256": z.ZodOptional<z.ZodString>;
594
+ x5u: z.ZodOptional<z.ZodString>;
595
+ }, "strip", z.ZodTypeAny, {
596
+ kty: "RSA" | "EC";
597
+ alg?: string | undefined;
598
+ crv?: string | undefined;
599
+ d?: string | undefined;
600
+ dp?: string | undefined;
601
+ dq?: string | undefined;
602
+ e?: string | undefined;
603
+ ext?: boolean | undefined;
604
+ k?: string | undefined;
605
+ key_ops?: string[] | undefined;
606
+ kid?: string | undefined;
607
+ n?: string | undefined;
608
+ p?: string | undefined;
609
+ q?: string | undefined;
610
+ qi?: string | undefined;
611
+ use?: string | undefined;
612
+ x?: string | undefined;
613
+ y?: string | undefined;
614
+ x5c?: string[] | undefined;
615
+ x5t?: string | undefined;
616
+ "x5t#S256"?: string | undefined;
617
+ x5u?: string | undefined;
618
+ }, {
619
+ kty: "RSA" | "EC";
620
+ alg?: string | undefined;
621
+ crv?: string | undefined;
622
+ d?: string | undefined;
623
+ dp?: string | undefined;
624
+ dq?: string | undefined;
625
+ e?: string | undefined;
626
+ ext?: boolean | undefined;
627
+ k?: string | undefined;
628
+ key_ops?: string[] | undefined;
629
+ kid?: string | undefined;
630
+ n?: string | undefined;
631
+ p?: string | undefined;
632
+ q?: string | undefined;
633
+ qi?: string | undefined;
634
+ use?: string | undefined;
635
+ x?: string | undefined;
636
+ y?: string | undefined;
637
+ x5c?: string[] | undefined;
638
+ x5t?: string | undefined;
639
+ "x5t#S256"?: string | undefined;
640
+ x5u?: string | undefined;
641
+ }>, "many">;
642
+ }, "strip", z.ZodTypeAny, {
643
+ keys: {
644
+ kty: "RSA" | "EC";
645
+ alg?: string | undefined;
646
+ crv?: string | undefined;
647
+ d?: string | undefined;
648
+ dp?: string | undefined;
649
+ dq?: string | undefined;
650
+ e?: string | undefined;
651
+ ext?: boolean | undefined;
652
+ k?: string | undefined;
653
+ key_ops?: string[] | undefined;
654
+ kid?: string | undefined;
655
+ n?: string | undefined;
656
+ p?: string | undefined;
657
+ q?: string | undefined;
658
+ qi?: string | undefined;
659
+ use?: string | undefined;
660
+ x?: string | undefined;
661
+ y?: string | undefined;
662
+ x5c?: string[] | undefined;
663
+ x5t?: string | undefined;
664
+ "x5t#S256"?: string | undefined;
665
+ x5u?: string | undefined;
666
+ }[];
667
+ }, {
668
+ keys: {
669
+ kty: "RSA" | "EC";
670
+ alg?: string | undefined;
671
+ crv?: string | undefined;
672
+ d?: string | undefined;
673
+ dp?: string | undefined;
674
+ dq?: string | undefined;
675
+ e?: string | undefined;
676
+ ext?: boolean | undefined;
677
+ k?: string | undefined;
678
+ key_ops?: string[] | undefined;
679
+ kid?: string | undefined;
680
+ n?: string | undefined;
681
+ p?: string | undefined;
682
+ q?: string | undefined;
683
+ qi?: string | undefined;
684
+ use?: string | undefined;
685
+ x?: string | undefined;
686
+ y?: string | undefined;
687
+ x5c?: string[] | undefined;
688
+ x5t?: string | undefined;
689
+ "x5t#S256"?: string | undefined;
690
+ x5u?: string | undefined;
691
+ }[];
692
+ }>;
693
+ metadata: z.ZodObject<{
694
+ federation_entity: z.ZodObject<{
695
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
696
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
697
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
698
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
699
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
700
+ homepage_uri: z.ZodOptional<z.ZodString>;
701
+ policy_uri: z.ZodOptional<z.ZodString>;
702
+ logo_uri: z.ZodOptional<z.ZodString>;
703
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
704
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
705
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
706
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
707
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
708
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
709
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
710
+ homepage_uri: z.ZodOptional<z.ZodString>;
711
+ policy_uri: z.ZodOptional<z.ZodString>;
712
+ logo_uri: z.ZodOptional<z.ZodString>;
713
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
714
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
715
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
716
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
717
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
718
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
719
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
720
+ homepage_uri: z.ZodOptional<z.ZodString>;
721
+ policy_uri: z.ZodOptional<z.ZodString>;
722
+ logo_uri: z.ZodOptional<z.ZodString>;
723
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
724
+ }, z.ZodTypeAny, "passthrough">>;
725
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
726
+ federation_entity: z.ZodObject<{
727
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
728
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
729
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
730
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
731
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
732
+ homepage_uri: z.ZodOptional<z.ZodString>;
733
+ policy_uri: z.ZodOptional<z.ZodString>;
734
+ logo_uri: z.ZodOptional<z.ZodString>;
735
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
736
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
737
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
738
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
739
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
740
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
741
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
742
+ homepage_uri: z.ZodOptional<z.ZodString>;
743
+ policy_uri: z.ZodOptional<z.ZodString>;
744
+ logo_uri: z.ZodOptional<z.ZodString>;
745
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
746
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
747
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
748
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
749
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
750
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
751
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
752
+ homepage_uri: z.ZodOptional<z.ZodString>;
753
+ policy_uri: z.ZodOptional<z.ZodString>;
754
+ logo_uri: z.ZodOptional<z.ZodString>;
755
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
756
+ }, z.ZodTypeAny, "passthrough">>;
757
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
758
+ federation_entity: z.ZodObject<{
759
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
760
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
761
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
762
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
763
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
764
+ homepage_uri: z.ZodOptional<z.ZodString>;
765
+ policy_uri: z.ZodOptional<z.ZodString>;
766
+ logo_uri: z.ZodOptional<z.ZodString>;
767
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
768
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
769
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
770
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
771
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
772
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
773
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
774
+ homepage_uri: z.ZodOptional<z.ZodString>;
775
+ policy_uri: z.ZodOptional<z.ZodString>;
776
+ logo_uri: z.ZodOptional<z.ZodString>;
777
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
778
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
779
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
780
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
781
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
782
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
783
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
784
+ homepage_uri: z.ZodOptional<z.ZodString>;
785
+ policy_uri: z.ZodOptional<z.ZodString>;
786
+ logo_uri: z.ZodOptional<z.ZodString>;
787
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
788
+ }, z.ZodTypeAny, "passthrough">>;
789
+ }, z.ZodTypeAny, "passthrough">>;
790
+ authority_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
791
+ }, z.ZodTypeAny, "passthrough">>;
440
792
  }, "strip", z.ZodTypeAny, {
441
793
  header: {
442
794
  alg: string;
@@ -492,6 +844,8 @@ export declare const RpEntityConfiguration: z.ZodIntersection<z.ZodObject<{
492
844
  [k: string]: unknown;
493
845
  };
494
846
  authority_hints?: string[] | undefined;
847
+ } & {
848
+ [k: string]: unknown;
495
849
  };
496
850
  }, {
497
851
  header: {
@@ -548,6 +902,8 @@ export declare const RpEntityConfiguration: z.ZodIntersection<z.ZodObject<{
548
902
  [k: string]: unknown;
549
903
  };
550
904
  authority_hints?: string[] | undefined;
905
+ } & {
906
+ [k: string]: unknown;
551
907
  };
552
908
  }>, z.ZodObject<{
553
909
  payload: z.ZodObject<{
@@ -998,14 +1354,14 @@ export declare const QRCodePayload: z.ZodObject<{
998
1354
  clientId: z.ZodString;
999
1355
  requestURI: z.ZodString;
1000
1356
  }, "strip", z.ZodTypeAny, {
1357
+ clientId: string;
1001
1358
  protocol: string;
1002
1359
  resource: string;
1003
- clientId: string;
1004
1360
  requestURI: string;
1005
1361
  }, {
1362
+ clientId: string;
1006
1363
  protocol: string;
1007
1364
  resource: string;
1008
- clientId: string;
1009
1365
  requestURI: string;
1010
1366
  }>;
1011
1367
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/rp/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBxB,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgBjC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;EAKxB,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACO,MAAM;IACzB,MAAM,EAAE;CACtB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { Disclosure, type DisclosureWithEncoded } from "./types";
3
- import type { JWK } from "src/utils/jwk";
3
+ import type { JWK } from "../utils/jwk";
4
4
  /**
5
5
  * Decode a given SD-JWT with Disclosures to get the parsed SD-JWT object they define.
6
6
  * It ensures provided data is in a valid shape.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sd-jwt/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,C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