@authhero/adapter-interfaces 0.11.1 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +100 -299
- package/dist/adapter-interfaces.iife.js +1 -1
- package/dist/adapter-interfaces.mjs +245 -270
- package/package.json +1 -1
|
@@ -553,16 +553,14 @@ export type UserResponse = z.infer<typeof userResponseSchema>;
|
|
|
553
553
|
export declare const applicationInsertSchema: z.ZodObject<{
|
|
554
554
|
id: z.ZodString;
|
|
555
555
|
name: z.ZodString;
|
|
556
|
-
callbacks: z.
|
|
557
|
-
allowed_origins: z.
|
|
558
|
-
web_origins: z.
|
|
559
|
-
allowed_logout_urls: z.
|
|
556
|
+
callbacks: z.ZodArray<z.ZodString, "many">;
|
|
557
|
+
allowed_origins: z.ZodArray<z.ZodString, "many">;
|
|
558
|
+
web_origins: z.ZodArray<z.ZodString, "many">;
|
|
559
|
+
allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
|
|
560
560
|
addons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[
|
|
561
561
|
z.ZodString,
|
|
562
562
|
z.ZodNumber
|
|
563
563
|
]>>>>;
|
|
564
|
-
allowed_web_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
565
|
-
allowed_callback_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
566
564
|
email_validation: z.ZodDefault<z.ZodEnum<[
|
|
567
565
|
"enabled",
|
|
568
566
|
"disabled",
|
|
@@ -573,12 +571,10 @@ export declare const applicationInsertSchema: z.ZodObject<{
|
|
|
573
571
|
}, "strip", z.ZodTypeAny, {
|
|
574
572
|
name: string;
|
|
575
573
|
id: string;
|
|
576
|
-
callbacks: string;
|
|
577
|
-
allowed_origins: string;
|
|
578
|
-
web_origins: string;
|
|
579
|
-
allowed_logout_urls: string;
|
|
580
|
-
allowed_web_origins: string;
|
|
581
|
-
allowed_callback_urls: string;
|
|
574
|
+
callbacks: string[];
|
|
575
|
+
allowed_origins: string[];
|
|
576
|
+
web_origins: string[];
|
|
577
|
+
allowed_logout_urls: string[];
|
|
582
578
|
email_validation: "enabled" | "disabled" | "enforced";
|
|
583
579
|
client_secret: string;
|
|
584
580
|
disable_sign_ups: boolean;
|
|
@@ -586,34 +582,27 @@ export declare const applicationInsertSchema: z.ZodObject<{
|
|
|
586
582
|
}, {
|
|
587
583
|
name: string;
|
|
588
584
|
id: string;
|
|
589
|
-
callbacks
|
|
590
|
-
allowed_origins
|
|
591
|
-
web_origins
|
|
592
|
-
allowed_logout_urls
|
|
585
|
+
callbacks: string[];
|
|
586
|
+
allowed_origins: string[];
|
|
587
|
+
web_origins: string[];
|
|
588
|
+
allowed_logout_urls: string[];
|
|
593
589
|
addons?: Record<string, Record<string, string | number>> | undefined;
|
|
594
|
-
allowed_web_origins?: string | undefined;
|
|
595
|
-
allowed_callback_urls?: string | undefined;
|
|
596
590
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
597
591
|
client_secret?: string | undefined;
|
|
598
592
|
disable_sign_ups?: boolean | undefined;
|
|
599
593
|
}>;
|
|
600
594
|
export type ApplicationInsert = z.infer<typeof applicationInsertSchema>;
|
|
601
|
-
export declare const applicationSchema: z.ZodObject<
|
|
602
|
-
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
603
|
-
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
604
|
-
}, {
|
|
595
|
+
export declare const applicationSchema: z.ZodObject<{
|
|
605
596
|
id: z.ZodString;
|
|
606
597
|
name: z.ZodString;
|
|
607
|
-
callbacks: z.
|
|
608
|
-
allowed_origins: z.
|
|
609
|
-
web_origins: z.
|
|
610
|
-
allowed_logout_urls: z.
|
|
598
|
+
callbacks: z.ZodArray<z.ZodString, "many">;
|
|
599
|
+
allowed_origins: z.ZodArray<z.ZodString, "many">;
|
|
600
|
+
web_origins: z.ZodArray<z.ZodString, "many">;
|
|
601
|
+
allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
|
|
611
602
|
addons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[
|
|
612
603
|
z.ZodString,
|
|
613
604
|
z.ZodNumber
|
|
614
605
|
]>>>>;
|
|
615
|
-
allowed_web_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
616
|
-
allowed_callback_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
617
606
|
email_validation: z.ZodDefault<z.ZodEnum<[
|
|
618
607
|
"enabled",
|
|
619
608
|
"disabled",
|
|
@@ -621,17 +610,17 @@ export declare const applicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
621
610
|
]>>;
|
|
622
611
|
client_secret: z.ZodDefault<z.ZodString>;
|
|
623
612
|
disable_sign_ups: z.ZodDefault<z.ZodBoolean>;
|
|
624
|
-
|
|
613
|
+
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
614
|
+
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
615
|
+
}, "strip", z.ZodTypeAny, {
|
|
625
616
|
created_at: string;
|
|
626
617
|
updated_at: string;
|
|
627
618
|
name: string;
|
|
628
619
|
id: string;
|
|
629
|
-
callbacks: string;
|
|
630
|
-
allowed_origins: string;
|
|
631
|
-
web_origins: string;
|
|
632
|
-
allowed_logout_urls: string;
|
|
633
|
-
allowed_web_origins: string;
|
|
634
|
-
allowed_callback_urls: string;
|
|
620
|
+
callbacks: string[];
|
|
621
|
+
allowed_origins: string[];
|
|
622
|
+
web_origins: string[];
|
|
623
|
+
allowed_logout_urls: string[];
|
|
635
624
|
email_validation: "enabled" | "disabled" | "enforced";
|
|
636
625
|
client_secret: string;
|
|
637
626
|
disable_sign_ups: boolean;
|
|
@@ -641,13 +630,11 @@ export declare const applicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
641
630
|
updated_at: string;
|
|
642
631
|
name: string;
|
|
643
632
|
id: string;
|
|
644
|
-
callbacks
|
|
645
|
-
allowed_origins
|
|
646
|
-
web_origins
|
|
647
|
-
allowed_logout_urls
|
|
633
|
+
callbacks: string[];
|
|
634
|
+
allowed_origins: string[];
|
|
635
|
+
web_origins: string[];
|
|
636
|
+
allowed_logout_urls: string[];
|
|
648
637
|
addons?: Record<string, Record<string, string | number>> | undefined;
|
|
649
|
-
allowed_web_origins?: string | undefined;
|
|
650
|
-
allowed_callback_urls?: string | undefined;
|
|
651
638
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
652
639
|
client_secret?: string | undefined;
|
|
653
640
|
disable_sign_ups?: boolean | undefined;
|
|
@@ -787,9 +774,7 @@ export declare const brandingSchema: z.ZodObject<{
|
|
|
787
774
|
} | undefined;
|
|
788
775
|
}>;
|
|
789
776
|
export type Branding = z.infer<typeof brandingSchema>;
|
|
790
|
-
|
|
791
|
-
id: z.ZodString;
|
|
792
|
-
name: z.ZodString;
|
|
777
|
+
declare const ClientSchema: z.ZodObject<{
|
|
793
778
|
domains: z.ZodArray<z.ZodObject<{
|
|
794
779
|
domain: z.ZodString;
|
|
795
780
|
dkim_private_key: z.ZodOptional<z.ZodString>;
|
|
@@ -812,49 +797,46 @@ export declare const ClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
812
797
|
email_api_key?: string | undefined;
|
|
813
798
|
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
814
799
|
}>, "many">;
|
|
815
|
-
allowed_callback_urls: z.ZodArray<z.ZodString, "many">;
|
|
816
|
-
allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
|
|
817
|
-
allowed_web_origins: z.ZodArray<z.ZodString, "many">;
|
|
818
|
-
email_validation: z.ZodUnion<[
|
|
819
|
-
z.ZodLiteral<"enabled">,
|
|
820
|
-
z.ZodLiteral<"disabled">,
|
|
821
|
-
z.ZodLiteral<"enforced">
|
|
822
|
-
]>;
|
|
823
|
-
tenant_id: z.ZodString;
|
|
824
|
-
client_secret: z.ZodString;
|
|
825
|
-
disable_sign_ups: z.ZodBoolean;
|
|
826
800
|
tenant: z.ZodObject<{
|
|
827
801
|
name: z.ZodString;
|
|
828
|
-
audience: z.
|
|
829
|
-
logo: z.ZodOptional<z.ZodString>;
|
|
830
|
-
primary_color: z.ZodOptional<z.ZodString>;
|
|
831
|
-
secondary_color: z.ZodOptional<z.ZodString>;
|
|
802
|
+
audience: z.ZodString;
|
|
832
803
|
sender_email: z.ZodString;
|
|
833
804
|
sender_name: z.ZodString;
|
|
834
805
|
support_url: z.ZodOptional<z.ZodString>;
|
|
806
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
807
|
+
primary_color: z.ZodOptional<z.ZodString>;
|
|
808
|
+
secondary_color: z.ZodOptional<z.ZodString>;
|
|
835
809
|
language: z.ZodOptional<z.ZodString>;
|
|
810
|
+
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
811
|
+
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
812
|
+
id: z.ZodString;
|
|
836
813
|
}, "strip", z.ZodTypeAny, {
|
|
814
|
+
created_at: string;
|
|
815
|
+
updated_at: string;
|
|
837
816
|
name: string;
|
|
817
|
+
id: string;
|
|
818
|
+
audience: string;
|
|
838
819
|
sender_email: string;
|
|
839
820
|
sender_name: string;
|
|
840
|
-
|
|
821
|
+
support_url?: string | undefined;
|
|
841
822
|
logo?: string | undefined;
|
|
842
823
|
primary_color?: string | undefined;
|
|
843
824
|
secondary_color?: string | undefined;
|
|
844
|
-
support_url?: string | undefined;
|
|
845
825
|
language?: string | undefined;
|
|
846
826
|
}, {
|
|
827
|
+
created_at: string;
|
|
828
|
+
updated_at: string;
|
|
847
829
|
name: string;
|
|
830
|
+
id: string;
|
|
831
|
+
audience: string;
|
|
848
832
|
sender_email: string;
|
|
849
833
|
sender_name: string;
|
|
850
|
-
|
|
834
|
+
support_url?: string | undefined;
|
|
851
835
|
logo?: string | undefined;
|
|
852
836
|
primary_color?: string | undefined;
|
|
853
837
|
secondary_color?: string | undefined;
|
|
854
|
-
support_url?: string | undefined;
|
|
855
838
|
language?: string | undefined;
|
|
856
839
|
}>;
|
|
857
|
-
}, {
|
|
858
840
|
connections: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
859
841
|
id: z.ZodString;
|
|
860
842
|
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -909,12 +891,34 @@ export declare const ClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
909
891
|
token_exchange_basic_auth?: boolean | undefined;
|
|
910
892
|
userinfo_endpoint?: string | undefined;
|
|
911
893
|
}>, "many">;
|
|
912
|
-
|
|
894
|
+
id: z.ZodString;
|
|
895
|
+
name: z.ZodString;
|
|
896
|
+
callbacks: z.ZodArray<z.ZodString, "many">;
|
|
897
|
+
allowed_origins: z.ZodArray<z.ZodString, "many">;
|
|
898
|
+
web_origins: z.ZodArray<z.ZodString, "many">;
|
|
899
|
+
allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
|
|
900
|
+
addons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[
|
|
901
|
+
z.ZodString,
|
|
902
|
+
z.ZodNumber
|
|
903
|
+
]>>>>;
|
|
904
|
+
email_validation: z.ZodDefault<z.ZodEnum<[
|
|
905
|
+
"enabled",
|
|
906
|
+
"disabled",
|
|
907
|
+
"enforced"
|
|
908
|
+
]>>;
|
|
909
|
+
client_secret: z.ZodDefault<z.ZodString>;
|
|
910
|
+
disable_sign_ups: z.ZodDefault<z.ZodBoolean>;
|
|
911
|
+
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
912
|
+
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
913
|
+
}, "strip", z.ZodTypeAny, {
|
|
914
|
+
created_at: string;
|
|
915
|
+
updated_at: string;
|
|
913
916
|
name: string;
|
|
914
917
|
id: string;
|
|
918
|
+
callbacks: string[];
|
|
919
|
+
allowed_origins: string[];
|
|
920
|
+
web_origins: string[];
|
|
915
921
|
allowed_logout_urls: string[];
|
|
916
|
-
allowed_web_origins: string[];
|
|
917
|
-
allowed_callback_urls: string[];
|
|
918
922
|
email_validation: "enabled" | "disabled" | "enforced";
|
|
919
923
|
client_secret: string;
|
|
920
924
|
disable_sign_ups: boolean;
|
|
@@ -925,16 +929,18 @@ export declare const ClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
925
929
|
email_api_key?: string | undefined;
|
|
926
930
|
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
927
931
|
}[];
|
|
928
|
-
tenant_id: string;
|
|
929
932
|
tenant: {
|
|
933
|
+
created_at: string;
|
|
934
|
+
updated_at: string;
|
|
930
935
|
name: string;
|
|
936
|
+
id: string;
|
|
937
|
+
audience: string;
|
|
931
938
|
sender_email: string;
|
|
932
939
|
sender_name: string;
|
|
933
|
-
|
|
940
|
+
support_url?: string | undefined;
|
|
934
941
|
logo?: string | undefined;
|
|
935
942
|
primary_color?: string | undefined;
|
|
936
943
|
secondary_color?: string | undefined;
|
|
937
|
-
support_url?: string | undefined;
|
|
938
944
|
language?: string | undefined;
|
|
939
945
|
};
|
|
940
946
|
connections: {
|
|
@@ -955,15 +961,16 @@ export declare const ClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
955
961
|
token_exchange_basic_auth?: boolean | undefined;
|
|
956
962
|
userinfo_endpoint?: string | undefined;
|
|
957
963
|
}[];
|
|
964
|
+
addons?: Record<string, Record<string, string | number>> | undefined;
|
|
958
965
|
}, {
|
|
966
|
+
created_at: string;
|
|
967
|
+
updated_at: string;
|
|
959
968
|
name: string;
|
|
960
969
|
id: string;
|
|
970
|
+
callbacks: string[];
|
|
971
|
+
allowed_origins: string[];
|
|
972
|
+
web_origins: string[];
|
|
961
973
|
allowed_logout_urls: string[];
|
|
962
|
-
allowed_web_origins: string[];
|
|
963
|
-
allowed_callback_urls: string[];
|
|
964
|
-
email_validation: "enabled" | "disabled" | "enforced";
|
|
965
|
-
client_secret: string;
|
|
966
|
-
disable_sign_ups: boolean;
|
|
967
974
|
domains: {
|
|
968
975
|
domain: string;
|
|
969
976
|
dkim_private_key?: string | undefined;
|
|
@@ -971,235 +978,24 @@ export declare const ClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
971
978
|
email_api_key?: string | undefined;
|
|
972
979
|
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
973
980
|
}[];
|
|
974
|
-
tenant_id: string;
|
|
975
981
|
tenant: {
|
|
976
|
-
name: string;
|
|
977
|
-
sender_email: string;
|
|
978
|
-
sender_name: string;
|
|
979
|
-
audience?: string | undefined;
|
|
980
|
-
logo?: string | undefined;
|
|
981
|
-
primary_color?: string | undefined;
|
|
982
|
-
secondary_color?: string | undefined;
|
|
983
|
-
support_url?: string | undefined;
|
|
984
|
-
language?: string | undefined;
|
|
985
|
-
};
|
|
986
|
-
connections: {
|
|
987
982
|
created_at: string;
|
|
988
983
|
updated_at: string;
|
|
989
984
|
name: string;
|
|
990
|
-
id
|
|
991
|
-
|
|
992
|
-
client_id?: string | undefined;
|
|
993
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
994
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
995
|
-
scope?: string | undefined;
|
|
996
|
-
authorization_endpoint?: string | undefined;
|
|
997
|
-
private_key?: string | undefined;
|
|
998
|
-
kid?: string | undefined;
|
|
999
|
-
team_id?: string | undefined;
|
|
1000
|
-
token_endpoint?: string | undefined;
|
|
1001
|
-
token_exchange_basic_auth?: boolean | undefined;
|
|
1002
|
-
userinfo_endpoint?: string | undefined;
|
|
1003
|
-
}[];
|
|
1004
|
-
}>;
|
|
1005
|
-
export declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1006
|
-
id: z.ZodString;
|
|
1007
|
-
name: z.ZodString;
|
|
1008
|
-
domains: z.ZodArray<z.ZodObject<{
|
|
1009
|
-
domain: z.ZodString;
|
|
1010
|
-
dkim_private_key: z.ZodOptional<z.ZodString>;
|
|
1011
|
-
dkim_public_key: z.ZodOptional<z.ZodString>;
|
|
1012
|
-
email_api_key: z.ZodOptional<z.ZodString>;
|
|
1013
|
-
email_service: z.ZodOptional<z.ZodUnion<[
|
|
1014
|
-
z.ZodLiteral<"mailgun">,
|
|
1015
|
-
z.ZodLiteral<"mailchannels">
|
|
1016
|
-
]>>;
|
|
1017
|
-
}, "strip", z.ZodTypeAny, {
|
|
1018
|
-
domain: string;
|
|
1019
|
-
dkim_private_key?: string | undefined;
|
|
1020
|
-
dkim_public_key?: string | undefined;
|
|
1021
|
-
email_api_key?: string | undefined;
|
|
1022
|
-
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
1023
|
-
}, {
|
|
1024
|
-
domain: string;
|
|
1025
|
-
dkim_private_key?: string | undefined;
|
|
1026
|
-
dkim_public_key?: string | undefined;
|
|
1027
|
-
email_api_key?: string | undefined;
|
|
1028
|
-
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
1029
|
-
}>, "many">;
|
|
1030
|
-
allowed_callback_urls: z.ZodArray<z.ZodString, "many">;
|
|
1031
|
-
allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
|
|
1032
|
-
allowed_web_origins: z.ZodArray<z.ZodString, "many">;
|
|
1033
|
-
email_validation: z.ZodUnion<[
|
|
1034
|
-
z.ZodLiteral<"enabled">,
|
|
1035
|
-
z.ZodLiteral<"disabled">,
|
|
1036
|
-
z.ZodLiteral<"enforced">
|
|
1037
|
-
]>;
|
|
1038
|
-
tenant_id: z.ZodString;
|
|
1039
|
-
client_secret: z.ZodString;
|
|
1040
|
-
disable_sign_ups: z.ZodBoolean;
|
|
1041
|
-
tenant: z.ZodObject<{
|
|
1042
|
-
name: z.ZodString;
|
|
1043
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
1044
|
-
logo: z.ZodOptional<z.ZodString>;
|
|
1045
|
-
primary_color: z.ZodOptional<z.ZodString>;
|
|
1046
|
-
secondary_color: z.ZodOptional<z.ZodString>;
|
|
1047
|
-
sender_email: z.ZodString;
|
|
1048
|
-
sender_name: z.ZodString;
|
|
1049
|
-
support_url: z.ZodOptional<z.ZodString>;
|
|
1050
|
-
language: z.ZodOptional<z.ZodString>;
|
|
1051
|
-
}, "strip", z.ZodTypeAny, {
|
|
1052
|
-
name: string;
|
|
985
|
+
id: string;
|
|
986
|
+
audience: string;
|
|
1053
987
|
sender_email: string;
|
|
1054
988
|
sender_name: string;
|
|
1055
|
-
audience?: string | undefined;
|
|
1056
|
-
logo?: string | undefined;
|
|
1057
|
-
primary_color?: string | undefined;
|
|
1058
|
-
secondary_color?: string | undefined;
|
|
1059
989
|
support_url?: string | undefined;
|
|
1060
|
-
language?: string | undefined;
|
|
1061
|
-
}, {
|
|
1062
|
-
name: string;
|
|
1063
|
-
sender_email: string;
|
|
1064
|
-
sender_name: string;
|
|
1065
|
-
audience?: string | undefined;
|
|
1066
|
-
logo?: string | undefined;
|
|
1067
|
-
primary_color?: string | undefined;
|
|
1068
|
-
secondary_color?: string | undefined;
|
|
1069
|
-
support_url?: string | undefined;
|
|
1070
|
-
language?: string | undefined;
|
|
1071
|
-
}>;
|
|
1072
|
-
}, {
|
|
1073
|
-
connections: z.ZodArray<z.ZodObject<{
|
|
1074
|
-
created_at: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1075
|
-
updated_at: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1076
|
-
id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1077
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1078
|
-
client_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1079
|
-
client_secret: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1080
|
-
authorization_endpoint: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1081
|
-
response_type: z.ZodOptional<z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>>;
|
|
1082
|
-
response_mode: z.ZodOptional<z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>>;
|
|
1083
|
-
private_key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1084
|
-
kid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1085
|
-
team_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1086
|
-
token_endpoint: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1087
|
-
token_exchange_basic_auth: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1088
|
-
userinfo_endpoint: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1089
|
-
scope: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1090
|
-
}, "strip", z.ZodTypeAny, {
|
|
1091
|
-
created_at?: string | undefined;
|
|
1092
|
-
updated_at?: string | undefined;
|
|
1093
|
-
name?: string | undefined;
|
|
1094
|
-
id?: string | undefined;
|
|
1095
|
-
client_secret?: string | undefined;
|
|
1096
|
-
client_id?: string | undefined;
|
|
1097
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
1098
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
1099
|
-
scope?: string | undefined;
|
|
1100
|
-
authorization_endpoint?: string | undefined;
|
|
1101
|
-
private_key?: string | undefined;
|
|
1102
|
-
kid?: string | undefined;
|
|
1103
|
-
team_id?: string | undefined;
|
|
1104
|
-
token_endpoint?: string | undefined;
|
|
1105
|
-
token_exchange_basic_auth?: boolean | undefined;
|
|
1106
|
-
userinfo_endpoint?: string | undefined;
|
|
1107
|
-
}, {
|
|
1108
|
-
created_at?: string | undefined;
|
|
1109
|
-
updated_at?: string | undefined;
|
|
1110
|
-
name?: string | undefined;
|
|
1111
|
-
id?: string | undefined;
|
|
1112
|
-
client_secret?: string | undefined;
|
|
1113
|
-
client_id?: string | undefined;
|
|
1114
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
1115
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
1116
|
-
scope?: string | undefined;
|
|
1117
|
-
authorization_endpoint?: string | undefined;
|
|
1118
|
-
private_key?: string | undefined;
|
|
1119
|
-
kid?: string | undefined;
|
|
1120
|
-
team_id?: string | undefined;
|
|
1121
|
-
token_endpoint?: string | undefined;
|
|
1122
|
-
token_exchange_basic_auth?: boolean | undefined;
|
|
1123
|
-
userinfo_endpoint?: string | undefined;
|
|
1124
|
-
}>, "many">;
|
|
1125
|
-
}>, "strip", z.ZodTypeAny, {
|
|
1126
|
-
name: string;
|
|
1127
|
-
id: string;
|
|
1128
|
-
allowed_logout_urls: string[];
|
|
1129
|
-
allowed_web_origins: string[];
|
|
1130
|
-
allowed_callback_urls: string[];
|
|
1131
|
-
email_validation: "enabled" | "disabled" | "enforced";
|
|
1132
|
-
client_secret: string;
|
|
1133
|
-
disable_sign_ups: boolean;
|
|
1134
|
-
domains: {
|
|
1135
|
-
domain: string;
|
|
1136
|
-
dkim_private_key?: string | undefined;
|
|
1137
|
-
dkim_public_key?: string | undefined;
|
|
1138
|
-
email_api_key?: string | undefined;
|
|
1139
|
-
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
1140
|
-
}[];
|
|
1141
|
-
tenant_id: string;
|
|
1142
|
-
tenant: {
|
|
1143
|
-
name: string;
|
|
1144
|
-
sender_email: string;
|
|
1145
|
-
sender_name: string;
|
|
1146
|
-
audience?: string | undefined;
|
|
1147
990
|
logo?: string | undefined;
|
|
1148
991
|
primary_color?: string | undefined;
|
|
1149
992
|
secondary_color?: string | undefined;
|
|
1150
|
-
support_url?: string | undefined;
|
|
1151
993
|
language?: string | undefined;
|
|
1152
994
|
};
|
|
1153
995
|
connections: {
|
|
1154
|
-
created_at
|
|
1155
|
-
updated_at
|
|
1156
|
-
name?: string | undefined;
|
|
1157
|
-
id?: string | undefined;
|
|
1158
|
-
client_secret?: string | undefined;
|
|
1159
|
-
client_id?: string | undefined;
|
|
1160
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
1161
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
1162
|
-
scope?: string | undefined;
|
|
1163
|
-
authorization_endpoint?: string | undefined;
|
|
1164
|
-
private_key?: string | undefined;
|
|
1165
|
-
kid?: string | undefined;
|
|
1166
|
-
team_id?: string | undefined;
|
|
1167
|
-
token_endpoint?: string | undefined;
|
|
1168
|
-
token_exchange_basic_auth?: boolean | undefined;
|
|
1169
|
-
userinfo_endpoint?: string | undefined;
|
|
1170
|
-
}[];
|
|
1171
|
-
}, {
|
|
1172
|
-
name: string;
|
|
1173
|
-
id: string;
|
|
1174
|
-
allowed_logout_urls: string[];
|
|
1175
|
-
allowed_web_origins: string[];
|
|
1176
|
-
allowed_callback_urls: string[];
|
|
1177
|
-
email_validation: "enabled" | "disabled" | "enforced";
|
|
1178
|
-
client_secret: string;
|
|
1179
|
-
disable_sign_ups: boolean;
|
|
1180
|
-
domains: {
|
|
1181
|
-
domain: string;
|
|
1182
|
-
dkim_private_key?: string | undefined;
|
|
1183
|
-
dkim_public_key?: string | undefined;
|
|
1184
|
-
email_api_key?: string | undefined;
|
|
1185
|
-
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
1186
|
-
}[];
|
|
1187
|
-
tenant_id: string;
|
|
1188
|
-
tenant: {
|
|
996
|
+
created_at: string;
|
|
997
|
+
updated_at: string;
|
|
1189
998
|
name: string;
|
|
1190
|
-
sender_email: string;
|
|
1191
|
-
sender_name: string;
|
|
1192
|
-
audience?: string | undefined;
|
|
1193
|
-
logo?: string | undefined;
|
|
1194
|
-
primary_color?: string | undefined;
|
|
1195
|
-
secondary_color?: string | undefined;
|
|
1196
|
-
support_url?: string | undefined;
|
|
1197
|
-
language?: string | undefined;
|
|
1198
|
-
};
|
|
1199
|
-
connections: {
|
|
1200
|
-
created_at?: string | undefined;
|
|
1201
|
-
updated_at?: string | undefined;
|
|
1202
|
-
name?: string | undefined;
|
|
1203
999
|
id?: string | undefined;
|
|
1204
1000
|
client_secret?: string | undefined;
|
|
1205
1001
|
client_id?: string | undefined;
|
|
@@ -1214,9 +1010,12 @@ export declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1214
1010
|
token_exchange_basic_auth?: boolean | undefined;
|
|
1215
1011
|
userinfo_endpoint?: string | undefined;
|
|
1216
1012
|
}[];
|
|
1013
|
+
addons?: Record<string, Record<string, string | number>> | undefined;
|
|
1014
|
+
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
1015
|
+
client_secret?: string | undefined;
|
|
1016
|
+
disable_sign_ups?: boolean | undefined;
|
|
1217
1017
|
}>;
|
|
1218
1018
|
export type Client = z.infer<typeof ClientSchema>;
|
|
1219
|
-
export type PartialClient = z.infer<typeof PartialClientSchema>;
|
|
1220
1019
|
export declare const codeTypeSchema: z.ZodEnum<[
|
|
1221
1020
|
"password_reset",
|
|
1222
1021
|
"email_verification",
|
|
@@ -2288,23 +2087,23 @@ export declare const tenantInsertSchema: z.ZodObject<{
|
|
|
2288
2087
|
audience: string;
|
|
2289
2088
|
sender_email: string;
|
|
2290
2089
|
sender_name: string;
|
|
2090
|
+
support_url?: string | undefined;
|
|
2291
2091
|
logo?: string | undefined;
|
|
2292
2092
|
primary_color?: string | undefined;
|
|
2293
2093
|
secondary_color?: string | undefined;
|
|
2294
|
-
support_url?: string | undefined;
|
|
2295
2094
|
language?: string | undefined;
|
|
2296
2095
|
}, {
|
|
2297
2096
|
name: string;
|
|
2298
2097
|
audience: string;
|
|
2299
2098
|
sender_email: string;
|
|
2300
2099
|
sender_name: string;
|
|
2100
|
+
support_url?: string | undefined;
|
|
2301
2101
|
logo?: string | undefined;
|
|
2302
2102
|
primary_color?: string | undefined;
|
|
2303
2103
|
secondary_color?: string | undefined;
|
|
2304
|
-
support_url?: string | undefined;
|
|
2305
2104
|
language?: string | undefined;
|
|
2306
2105
|
}>;
|
|
2307
|
-
export declare const tenantSchema: z.ZodObject<
|
|
2106
|
+
export declare const tenantSchema: z.ZodObject<{
|
|
2308
2107
|
name: z.ZodString;
|
|
2309
2108
|
audience: z.ZodString;
|
|
2310
2109
|
sender_email: z.ZodString;
|
|
@@ -2314,32 +2113,34 @@ export declare const tenantSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2314
2113
|
primary_color: z.ZodOptional<z.ZodString>;
|
|
2315
2114
|
secondary_color: z.ZodOptional<z.ZodString>;
|
|
2316
2115
|
language: z.ZodOptional<z.ZodString>;
|
|
2317
|
-
}, {
|
|
2318
2116
|
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
2319
2117
|
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
2320
|
-
|
|
2118
|
+
id: z.ZodString;
|
|
2119
|
+
}, "strip", z.ZodTypeAny, {
|
|
2321
2120
|
created_at: string;
|
|
2322
2121
|
updated_at: string;
|
|
2323
2122
|
name: string;
|
|
2123
|
+
id: string;
|
|
2324
2124
|
audience: string;
|
|
2325
2125
|
sender_email: string;
|
|
2326
2126
|
sender_name: string;
|
|
2127
|
+
support_url?: string | undefined;
|
|
2327
2128
|
logo?: string | undefined;
|
|
2328
2129
|
primary_color?: string | undefined;
|
|
2329
2130
|
secondary_color?: string | undefined;
|
|
2330
|
-
support_url?: string | undefined;
|
|
2331
2131
|
language?: string | undefined;
|
|
2332
2132
|
}, {
|
|
2333
2133
|
created_at: string;
|
|
2334
2134
|
updated_at: string;
|
|
2335
2135
|
name: string;
|
|
2136
|
+
id: string;
|
|
2336
2137
|
audience: string;
|
|
2337
2138
|
sender_email: string;
|
|
2338
2139
|
sender_name: string;
|
|
2140
|
+
support_url?: string | undefined;
|
|
2339
2141
|
logo?: string | undefined;
|
|
2340
2142
|
primary_color?: string | undefined;
|
|
2341
2143
|
secondary_color?: string | undefined;
|
|
2342
|
-
support_url?: string | undefined;
|
|
2343
2144
|
language?: string | undefined;
|
|
2344
2145
|
}>;
|
|
2345
2146
|
export interface Tenant {
|
|
@@ -4337,7 +4138,7 @@ export interface HooksAdapter {
|
|
|
4337
4138
|
list: (tenant_id: string, params: ListParams) => Promise<ListHooksResponse>;
|
|
4338
4139
|
}
|
|
4339
4140
|
export interface ClientsAdapter {
|
|
4340
|
-
get: (id: string) => Promise<
|
|
4141
|
+
get: (id: string) => Promise<Client | null>;
|
|
4341
4142
|
}
|
|
4342
4143
|
export interface ThemesAdapter {
|
|
4343
4144
|
create: (tenant_id: string, theme: ThemeInsert) => Promise<Theme>;
|