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

Sign up to get free protection for your applications and to get access to all the features.
@@ -462,42 +462,102 @@ export declare const EntityConfiguration: z.ZodObject<{
462
462
  }>;
463
463
  metadata: z.ZodObject<{
464
464
  federation_entity: z.ZodObject<{
465
- organization_name: z.ZodString;
466
- homepage_uri: z.ZodString;
467
- policy_uri: z.ZodString;
468
- logo_uri: z.ZodString;
469
- contacts: z.ZodArray<z.ZodString, "many">;
470
- }, "strip", z.ZodTypeAny, {
471
- organization_name: string;
472
- homepage_uri: string;
473
- policy_uri: string;
474
- logo_uri: string;
475
- contacts: string[];
476
- }, {
477
- organization_name: string;
478
- homepage_uri: string;
479
- policy_uri: string;
480
- logo_uri: string;
481
- contacts: string[];
482
- }>;
483
- }, "strip", z.ZodTypeAny, {
484
- federation_entity: {
485
- organization_name: string;
486
- homepage_uri: string;
487
- policy_uri: string;
488
- logo_uri: string;
489
- contacts: string[];
490
- };
491
- }, {
492
- federation_entity: {
493
- organization_name: string;
494
- homepage_uri: string;
495
- policy_uri: string;
496
- logo_uri: string;
497
- contacts: string[];
498
- };
499
- }>;
500
- authority_hints: z.ZodArray<z.ZodString, "many">;
465
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
466
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
467
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
468
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
469
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
470
+ homepage_uri: z.ZodOptional<z.ZodString>;
471
+ policy_uri: z.ZodOptional<z.ZodString>;
472
+ logo_uri: z.ZodOptional<z.ZodString>;
473
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
474
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
475
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
476
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
477
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
478
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
479
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
480
+ homepage_uri: z.ZodOptional<z.ZodString>;
481
+ policy_uri: z.ZodOptional<z.ZodString>;
482
+ logo_uri: z.ZodOptional<z.ZodString>;
483
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
484
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
485
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
486
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
487
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
488
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
489
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
490
+ homepage_uri: z.ZodOptional<z.ZodString>;
491
+ policy_uri: z.ZodOptional<z.ZodString>;
492
+ logo_uri: z.ZodOptional<z.ZodString>;
493
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
494
+ }, z.ZodTypeAny, "passthrough">>;
495
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
496
+ federation_entity: z.ZodObject<{
497
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
498
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
499
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
500
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
501
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
502
+ homepage_uri: z.ZodOptional<z.ZodString>;
503
+ policy_uri: z.ZodOptional<z.ZodString>;
504
+ logo_uri: z.ZodOptional<z.ZodString>;
505
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
506
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
507
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
508
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
509
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
510
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
511
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
512
+ homepage_uri: z.ZodOptional<z.ZodString>;
513
+ policy_uri: z.ZodOptional<z.ZodString>;
514
+ logo_uri: z.ZodOptional<z.ZodString>;
515
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
516
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
517
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
518
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
519
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
520
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
521
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
522
+ homepage_uri: z.ZodOptional<z.ZodString>;
523
+ policy_uri: z.ZodOptional<z.ZodString>;
524
+ logo_uri: z.ZodOptional<z.ZodString>;
525
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
526
+ }, z.ZodTypeAny, "passthrough">>;
527
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
528
+ federation_entity: z.ZodObject<{
529
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
530
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
531
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
532
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
533
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
534
+ homepage_uri: z.ZodOptional<z.ZodString>;
535
+ policy_uri: z.ZodOptional<z.ZodString>;
536
+ logo_uri: z.ZodOptional<z.ZodString>;
537
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
538
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
539
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
540
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
541
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
542
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
543
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
544
+ homepage_uri: z.ZodOptional<z.ZodString>;
545
+ policy_uri: z.ZodOptional<z.ZodString>;
546
+ logo_uri: z.ZodOptional<z.ZodString>;
547
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
548
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
549
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
550
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
551
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
552
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
553
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
554
+ homepage_uri: z.ZodOptional<z.ZodString>;
555
+ policy_uri: z.ZodOptional<z.ZodString>;
556
+ logo_uri: z.ZodOptional<z.ZodString>;
557
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
558
+ }, z.ZodTypeAny, "passthrough">>;
559
+ }, z.ZodTypeAny, "passthrough">>;
560
+ authority_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
501
561
  }, "strip", z.ZodTypeAny, {
502
562
  iss: string;
503
563
  sub: string;
@@ -531,14 +591,22 @@ export declare const EntityConfiguration: z.ZodObject<{
531
591
  };
532
592
  metadata: {
533
593
  federation_entity: {
534
- organization_name: string;
535
- homepage_uri: string;
536
- policy_uri: string;
537
- logo_uri: string;
538
- contacts: string[];
594
+ federation_fetch_endpoint?: string | undefined;
595
+ federation_list_endpoint?: string | undefined;
596
+ federation_resolve_endpoint?: string | undefined;
597
+ federation_trust_mark_status_endpoint?: string | undefined;
598
+ federation_trust_mark_list_endpoint?: string | undefined;
599
+ homepage_uri?: string | undefined;
600
+ policy_uri?: string | undefined;
601
+ logo_uri?: string | undefined;
602
+ contacts?: string[] | undefined;
603
+ } & {
604
+ [k: string]: unknown;
539
605
  };
606
+ } & {
607
+ [k: string]: unknown;
540
608
  };
541
- authority_hints: string[];
609
+ authority_hints?: string[] | undefined;
542
610
  }, {
543
611
  iss: string;
544
612
  sub: string;
@@ -572,14 +640,22 @@ export declare const EntityConfiguration: z.ZodObject<{
572
640
  };
573
641
  metadata: {
574
642
  federation_entity: {
575
- organization_name: string;
576
- homepage_uri: string;
577
- policy_uri: string;
578
- logo_uri: string;
579
- contacts: string[];
643
+ federation_fetch_endpoint?: string | undefined;
644
+ federation_list_endpoint?: string | undefined;
645
+ federation_resolve_endpoint?: string | undefined;
646
+ federation_trust_mark_status_endpoint?: string | undefined;
647
+ federation_trust_mark_list_endpoint?: string | undefined;
648
+ homepage_uri?: string | undefined;
649
+ policy_uri?: string | undefined;
650
+ logo_uri?: string | undefined;
651
+ contacts?: string[] | undefined;
652
+ } & {
653
+ [k: string]: unknown;
580
654
  };
655
+ } & {
656
+ [k: string]: unknown;
581
657
  };
582
- authority_hints: string[];
658
+ authority_hints?: string[] | undefined;
583
659
  }>;
584
660
  }, "strip", z.ZodTypeAny, {
585
661
  header: {
@@ -620,14 +696,22 @@ export declare const EntityConfiguration: z.ZodObject<{
620
696
  };
621
697
  metadata: {
622
698
  federation_entity: {
623
- organization_name: string;
624
- homepage_uri: string;
625
- policy_uri: string;
626
- logo_uri: string;
627
- contacts: string[];
699
+ federation_fetch_endpoint?: string | undefined;
700
+ federation_list_endpoint?: string | undefined;
701
+ federation_resolve_endpoint?: string | undefined;
702
+ federation_trust_mark_status_endpoint?: string | undefined;
703
+ federation_trust_mark_list_endpoint?: string | undefined;
704
+ homepage_uri?: string | undefined;
705
+ policy_uri?: string | undefined;
706
+ logo_uri?: string | undefined;
707
+ contacts?: string[] | undefined;
708
+ } & {
709
+ [k: string]: unknown;
628
710
  };
711
+ } & {
712
+ [k: string]: unknown;
629
713
  };
630
- authority_hints: string[];
714
+ authority_hints?: string[] | undefined;
631
715
  };
632
716
  }, {
633
717
  header: {
@@ -668,14 +752,22 @@ export declare const EntityConfiguration: z.ZodObject<{
668
752
  };
669
753
  metadata: {
670
754
  federation_entity: {
671
- organization_name: string;
672
- homepage_uri: string;
673
- policy_uri: string;
674
- logo_uri: string;
675
- contacts: string[];
755
+ federation_fetch_endpoint?: string | undefined;
756
+ federation_list_endpoint?: string | undefined;
757
+ federation_resolve_endpoint?: string | undefined;
758
+ federation_trust_mark_status_endpoint?: string | undefined;
759
+ federation_trust_mark_list_endpoint?: string | undefined;
760
+ homepage_uri?: string | undefined;
761
+ policy_uri?: string | undefined;
762
+ logo_uri?: string | undefined;
763
+ contacts?: string[] | undefined;
764
+ } & {
765
+ [k: string]: unknown;
676
766
  };
767
+ } & {
768
+ [k: string]: unknown;
677
769
  };
678
- authority_hints: string[];
770
+ authority_hints?: string[] | undefined;
679
771
  };
680
772
  }>;
681
773
  export type TrustAnchorEntityConfiguration = z.infer<typeof TrustAnchorEntityConfiguration>;
@@ -822,42 +914,102 @@ export declare const TrustAnchorEntityConfiguration: z.ZodObject<{
822
914
  }>;
823
915
  metadata: z.ZodObject<{
824
916
  federation_entity: z.ZodObject<{
825
- organization_name: z.ZodString;
826
- homepage_uri: z.ZodString;
827
- policy_uri: z.ZodString;
828
- logo_uri: z.ZodString;
829
- contacts: z.ZodArray<z.ZodString, "many">;
830
- }, "strip", z.ZodTypeAny, {
831
- organization_name: string;
832
- homepage_uri: string;
833
- policy_uri: string;
834
- logo_uri: string;
835
- contacts: string[];
836
- }, {
837
- organization_name: string;
838
- homepage_uri: string;
839
- policy_uri: string;
840
- logo_uri: string;
841
- contacts: string[];
842
- }>;
843
- }, "strip", z.ZodTypeAny, {
844
- federation_entity: {
845
- organization_name: string;
846
- homepage_uri: string;
847
- policy_uri: string;
848
- logo_uri: string;
849
- contacts: string[];
850
- };
851
- }, {
852
- federation_entity: {
853
- organization_name: string;
854
- homepage_uri: string;
855
- policy_uri: string;
856
- logo_uri: string;
857
- contacts: string[];
858
- };
859
- }>;
860
- authority_hints: z.ZodArray<z.ZodString, "many">;
917
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
918
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
919
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
920
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
921
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
922
+ homepage_uri: z.ZodOptional<z.ZodString>;
923
+ policy_uri: z.ZodOptional<z.ZodString>;
924
+ logo_uri: z.ZodOptional<z.ZodString>;
925
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
926
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
927
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
928
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
929
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
930
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
931
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
932
+ homepage_uri: z.ZodOptional<z.ZodString>;
933
+ policy_uri: z.ZodOptional<z.ZodString>;
934
+ logo_uri: z.ZodOptional<z.ZodString>;
935
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
936
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
937
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
938
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
939
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
940
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
941
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
942
+ homepage_uri: z.ZodOptional<z.ZodString>;
943
+ policy_uri: z.ZodOptional<z.ZodString>;
944
+ logo_uri: z.ZodOptional<z.ZodString>;
945
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
946
+ }, z.ZodTypeAny, "passthrough">>;
947
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
948
+ federation_entity: z.ZodObject<{
949
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
950
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
951
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
952
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
953
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
954
+ homepage_uri: z.ZodOptional<z.ZodString>;
955
+ policy_uri: z.ZodOptional<z.ZodString>;
956
+ logo_uri: z.ZodOptional<z.ZodString>;
957
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
958
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
959
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
960
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
961
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
962
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
963
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
964
+ homepage_uri: z.ZodOptional<z.ZodString>;
965
+ policy_uri: z.ZodOptional<z.ZodString>;
966
+ logo_uri: z.ZodOptional<z.ZodString>;
967
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
968
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
969
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
970
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
971
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
972
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
973
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
974
+ homepage_uri: z.ZodOptional<z.ZodString>;
975
+ policy_uri: z.ZodOptional<z.ZodString>;
976
+ logo_uri: z.ZodOptional<z.ZodString>;
977
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
978
+ }, z.ZodTypeAny, "passthrough">>;
979
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
980
+ federation_entity: z.ZodObject<{
981
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
982
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
983
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
984
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
985
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
986
+ homepage_uri: z.ZodOptional<z.ZodString>;
987
+ policy_uri: z.ZodOptional<z.ZodString>;
988
+ logo_uri: z.ZodOptional<z.ZodString>;
989
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
990
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
991
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
992
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
993
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
994
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
995
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
996
+ homepage_uri: z.ZodOptional<z.ZodString>;
997
+ policy_uri: z.ZodOptional<z.ZodString>;
998
+ logo_uri: z.ZodOptional<z.ZodString>;
999
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1000
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1001
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
1002
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
1003
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
1004
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
1005
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
1006
+ homepage_uri: z.ZodOptional<z.ZodString>;
1007
+ policy_uri: z.ZodOptional<z.ZodString>;
1008
+ logo_uri: z.ZodOptional<z.ZodString>;
1009
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1010
+ }, z.ZodTypeAny, "passthrough">>;
1011
+ }, z.ZodTypeAny, "passthrough">>;
1012
+ authority_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
861
1013
  }, "strip", z.ZodTypeAny, {
862
1014
  iss: string;
863
1015
  sub: string;
@@ -891,14 +1043,22 @@ export declare const TrustAnchorEntityConfiguration: z.ZodObject<{
891
1043
  };
892
1044
  metadata: {
893
1045
  federation_entity: {
894
- organization_name: string;
895
- homepage_uri: string;
896
- policy_uri: string;
897
- logo_uri: string;
898
- contacts: string[];
1046
+ federation_fetch_endpoint?: string | undefined;
1047
+ federation_list_endpoint?: string | undefined;
1048
+ federation_resolve_endpoint?: string | undefined;
1049
+ federation_trust_mark_status_endpoint?: string | undefined;
1050
+ federation_trust_mark_list_endpoint?: string | undefined;
1051
+ homepage_uri?: string | undefined;
1052
+ policy_uri?: string | undefined;
1053
+ logo_uri?: string | undefined;
1054
+ contacts?: string[] | undefined;
1055
+ } & {
1056
+ [k: string]: unknown;
899
1057
  };
1058
+ } & {
1059
+ [k: string]: unknown;
900
1060
  };
901
- authority_hints: string[];
1061
+ authority_hints?: string[] | undefined;
902
1062
  }, {
903
1063
  iss: string;
904
1064
  sub: string;
@@ -932,14 +1092,22 @@ export declare const TrustAnchorEntityConfiguration: z.ZodObject<{
932
1092
  };
933
1093
  metadata: {
934
1094
  federation_entity: {
935
- organization_name: string;
936
- homepage_uri: string;
937
- policy_uri: string;
938
- logo_uri: string;
939
- contacts: string[];
1095
+ federation_fetch_endpoint?: string | undefined;
1096
+ federation_list_endpoint?: string | undefined;
1097
+ federation_resolve_endpoint?: string | undefined;
1098
+ federation_trust_mark_status_endpoint?: string | undefined;
1099
+ federation_trust_mark_list_endpoint?: string | undefined;
1100
+ homepage_uri?: string | undefined;
1101
+ policy_uri?: string | undefined;
1102
+ logo_uri?: string | undefined;
1103
+ contacts?: string[] | undefined;
1104
+ } & {
1105
+ [k: string]: unknown;
940
1106
  };
1107
+ } & {
1108
+ [k: string]: unknown;
941
1109
  };
942
- authority_hints: string[];
1110
+ authority_hints?: string[] | undefined;
943
1111
  }>;
944
1112
  }, "strip", z.ZodTypeAny, {
945
1113
  header: {
@@ -980,14 +1148,22 @@ export declare const TrustAnchorEntityConfiguration: z.ZodObject<{
980
1148
  };
981
1149
  metadata: {
982
1150
  federation_entity: {
983
- organization_name: string;
984
- homepage_uri: string;
985
- policy_uri: string;
986
- logo_uri: string;
987
- contacts: string[];
1151
+ federation_fetch_endpoint?: string | undefined;
1152
+ federation_list_endpoint?: string | undefined;
1153
+ federation_resolve_endpoint?: string | undefined;
1154
+ federation_trust_mark_status_endpoint?: string | undefined;
1155
+ federation_trust_mark_list_endpoint?: string | undefined;
1156
+ homepage_uri?: string | undefined;
1157
+ policy_uri?: string | undefined;
1158
+ logo_uri?: string | undefined;
1159
+ contacts?: string[] | undefined;
1160
+ } & {
1161
+ [k: string]: unknown;
988
1162
  };
1163
+ } & {
1164
+ [k: string]: unknown;
989
1165
  };
990
- authority_hints: string[];
1166
+ authority_hints?: string[] | undefined;
991
1167
  };
992
1168
  }, {
993
1169
  header: {
@@ -1028,14 +1204,22 @@ export declare const TrustAnchorEntityConfiguration: z.ZodObject<{
1028
1204
  };
1029
1205
  metadata: {
1030
1206
  federation_entity: {
1031
- organization_name: string;
1032
- homepage_uri: string;
1033
- policy_uri: string;
1034
- logo_uri: string;
1035
- contacts: string[];
1207
+ federation_fetch_endpoint?: string | undefined;
1208
+ federation_list_endpoint?: string | undefined;
1209
+ federation_resolve_endpoint?: string | undefined;
1210
+ federation_trust_mark_status_endpoint?: string | undefined;
1211
+ federation_trust_mark_list_endpoint?: string | undefined;
1212
+ homepage_uri?: string | undefined;
1213
+ policy_uri?: string | undefined;
1214
+ logo_uri?: string | undefined;
1215
+ contacts?: string[] | undefined;
1216
+ } & {
1217
+ [k: string]: unknown;
1036
1218
  };
1219
+ } & {
1220
+ [k: string]: unknown;
1037
1221
  };
1038
- authority_hints: string[];
1222
+ authority_hints?: string[] | undefined;
1039
1223
  };
1040
1224
  }>;
1041
1225
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/trust/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,SAAS;;;;;;;;;EAAuD,CAAC;AAC9E,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAElD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC9D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc1B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAsB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagopa/io-react-native-wallet",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Provide data structures, helpers and API for IO Wallet",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
package/src/index.ts CHANGED
@@ -8,7 +8,13 @@ import * as Errors from "./utils/errors";
8
8
  import * as WalletInstanceAttestation from "./wallet-instance-attestation";
9
9
  import { getUnsignedDPop } from "./utils/dpop";
10
10
  import { RelyingPartySolution } from "./rp";
11
+ import { RpEntityConfiguration } from "./rp/types";
11
12
  import { verifyTrustChain, getEntityConfiguration } from "./trust";
13
+ import {
14
+ EntityConfiguration,
15
+ EntityStatement,
16
+ TrustAnchorEntityConfiguration,
17
+ } from "./trust/types";
12
18
 
13
19
  export {
14
20
  PID,
@@ -19,4 +25,8 @@ export {
19
25
  RelyingPartySolution,
20
26
  verifyTrustChain,
21
27
  getEntityConfiguration,
28
+ EntityConfiguration,
29
+ EntityStatement,
30
+ RpEntityConfiguration,
31
+ TrustAnchorEntityConfiguration,
22
32
  };
@@ -314,7 +314,7 @@ export class Issuing {
314
314
  */
315
315
  async getEntityConfiguration(): Promise<PidIssuerEntityConfiguration> {
316
316
  const metadataUrl = new URL(
317
- ".well-known/openid-federation",
317
+ "ci/.well-known/openid-federation",
318
318
  this.pidProviderBaseUrl
319
319
  ).href;
320
320
 
@@ -26,14 +26,14 @@ export const PidIssuerEntityConfiguration = z.object({
26
26
  pushed_authorization_request_endpoint: z.string(),
27
27
  dpop_signing_alg_values_supported: z.array(z.string()),
28
28
  credential_endpoint: z.string(),
29
- credentials_supported: z.object({
30
- "eu.eudiw.pid.it": z.object({
29
+ credentials_supported: z.array(
30
+ z.object({
31
31
  format: z.literal("vc+sd-jwt"),
32
32
  cryptographic_binding_methods_supported: z.array(z.string()),
33
33
  cryptographic_suites_supported: z.array(z.string()),
34
34
  display: z.array(PidDisplayMetadata),
35
- }),
36
- }),
35
+ })
36
+ ),
37
37
  }),
38
38
  federation_entity: z.object({
39
39
  organization_name: z.string(),
package/src/rp/types.ts CHANGED
@@ -35,13 +35,15 @@ export const RpEntityConfiguration = EntityConfiguration.and(
35
35
  z.object({
36
36
  payload: z.object({
37
37
  metadata: z.object({
38
- wallet_relying_party: z.object({
39
- application_type: z.string(),
40
- client_id: z.string(),
41
- client_name: z.string(),
42
- jwks: z.array(JWK),
43
- contacts: z.array(z.string()),
44
- }),
38
+ wallet_relying_party: z
39
+ .object({
40
+ application_type: z.string().optional(),
41
+ client_id: z.string().optional(),
42
+ client_name: z.string().optional(),
43
+ jwks: z.array(JWK),
44
+ contacts: z.array(z.string()).optional(),
45
+ })
46
+ .passthrough(),
45
47
  }),
46
48
  }),
47
49
  })
@@ -37,16 +37,24 @@ export const EntityConfiguration = z.object({
37
37
  jwks: z.object({
38
38
  keys: z.array(JWK),
39
39
  }),
40
- metadata: z.object({
41
- federation_entity: z.object({
42
- organization_name: z.string(),
43
- homepage_uri: z.string(),
44
- policy_uri: z.string(),
45
- logo_uri: z.string(),
46
- contacts: z.array(z.string()),
47
- }),
48
- }),
49
- authority_hints: z.array(z.string()),
40
+ metadata: z
41
+ .object({
42
+ federation_entity: z
43
+ .object({
44
+ federation_fetch_endpoint: z.string().optional(),
45
+ federation_list_endpoint: z.string().optional(),
46
+ federation_resolve_endpoint: z.string().optional(),
47
+ federation_trust_mark_status_endpoint: z.string().optional(),
48
+ federation_trust_mark_list_endpoint: z.string().optional(),
49
+ homepage_uri: z.string().optional(),
50
+ policy_uri: z.string().optional(),
51
+ logo_uri: z.string().optional(),
52
+ contacts: z.array(z.string()).optional(),
53
+ })
54
+ .passthrough(),
55
+ })
56
+ .passthrough(),
57
+ authority_hints: z.array(z.string()).optional(),
50
58
  }),
51
59
  });
52
60