@pagopa/io-react-native-wallet 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/commonjs/index.js +26 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/rp/types.js +5 -5
- package/lib/commonjs/rp/types.js.map +1 -1
- package/lib/commonjs/trust/types.js +12 -8
- package/lib/commonjs/trust/types.js.map +1 -1
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/rp/types.js +5 -5
- package/lib/module/rp/types.js.map +1 -1
- package/lib/module/trust/types.js +12 -8
- package/lib/module/trust/types.js.map +1 -1
- package/lib/typescript/index.d.ts +3 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/rp/types.d.ts +299 -103
- package/lib/typescript/rp/types.d.ts.map +1 -1
- package/lib/typescript/trust/types.d.ts +304 -120
- package/lib/typescript/trust/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +10 -0
- package/src/rp/types.ts +9 -7
- package/src/trust/types.ts +18 -10
@@ -462,42 +462,102 @@ export declare const EntityConfiguration: z.ZodObject<{
|
|
462
462
|
}>;
|
463
463
|
metadata: z.ZodObject<{
|
464
464
|
federation_entity: z.ZodObject<{
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
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
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
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
|
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
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
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
|
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
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
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
|
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
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
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
|
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
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
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
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
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
|
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
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
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
|
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
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
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
|
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
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
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
|
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
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiC9B,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,8BAA8B,CACtC,CAAC;AACF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAsB,CAAC"}
|
package/package.json
CHANGED
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
|
};
|
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
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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
|
})
|
package/src/trust/types.ts
CHANGED
@@ -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
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
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
|
|