@authhero/adapter-interfaces 0.11.1 → 0.11.2
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.
|
@@ -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,13 +582,11 @@ 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;
|
|
@@ -604,16 +598,14 @@ export declare const applicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
604
598
|
}, {
|
|
605
599
|
id: z.ZodString;
|
|
606
600
|
name: z.ZodString;
|
|
607
|
-
callbacks: z.
|
|
608
|
-
allowed_origins: z.
|
|
609
|
-
web_origins: z.
|
|
610
|
-
allowed_logout_urls: z.
|
|
601
|
+
callbacks: z.ZodArray<z.ZodString, "many">;
|
|
602
|
+
allowed_origins: z.ZodArray<z.ZodString, "many">;
|
|
603
|
+
web_origins: z.ZodArray<z.ZodString, "many">;
|
|
604
|
+
allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
|
|
611
605
|
addons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[
|
|
612
606
|
z.ZodString,
|
|
613
607
|
z.ZodNumber
|
|
614
608
|
]>>>>;
|
|
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
609
|
email_validation: z.ZodDefault<z.ZodEnum<[
|
|
618
610
|
"enabled",
|
|
619
611
|
"disabled",
|
|
@@ -626,12 +618,10 @@ export declare const applicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
626
618
|
updated_at: string;
|
|
627
619
|
name: string;
|
|
628
620
|
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;
|
|
621
|
+
callbacks: string[];
|
|
622
|
+
allowed_origins: string[];
|
|
623
|
+
web_origins: string[];
|
|
624
|
+
allowed_logout_urls: string[];
|
|
635
625
|
email_validation: "enabled" | "disabled" | "enforced";
|
|
636
626
|
client_secret: string;
|
|
637
627
|
disable_sign_ups: boolean;
|
|
@@ -641,13 +631,11 @@ export declare const applicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
641
631
|
updated_at: string;
|
|
642
632
|
name: string;
|
|
643
633
|
id: string;
|
|
644
|
-
callbacks
|
|
645
|
-
allowed_origins
|
|
646
|
-
web_origins
|
|
647
|
-
allowed_logout_urls
|
|
634
|
+
callbacks: string[];
|
|
635
|
+
allowed_origins: string[];
|
|
636
|
+
web_origins: string[];
|
|
637
|
+
allowed_logout_urls: string[];
|
|
648
638
|
addons?: Record<string, Record<string, string | number>> | undefined;
|
|
649
|
-
allowed_web_origins?: string | undefined;
|
|
650
|
-
allowed_callback_urls?: string | undefined;
|
|
651
639
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
652
640
|
client_secret?: string | undefined;
|
|
653
641
|
disable_sign_ups?: boolean | undefined;
|
|
@@ -788,8 +776,6 @@ export declare const brandingSchema: z.ZodObject<{
|
|
|
788
776
|
}>;
|
|
789
777
|
export type Branding = z.infer<typeof brandingSchema>;
|
|
790
778
|
export declare const ClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
791
|
-
id: z.ZodString;
|
|
792
|
-
name: z.ZodString;
|
|
793
779
|
domains: z.ZodArray<z.ZodObject<{
|
|
794
780
|
domain: z.ZodString;
|
|
795
781
|
dkim_private_key: z.ZodOptional<z.ZodString>;
|
|
@@ -812,17 +798,6 @@ export declare const ClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
812
798
|
email_api_key?: string | undefined;
|
|
813
799
|
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
814
800
|
}>, "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
801
|
tenant: z.ZodObject<{
|
|
827
802
|
name: z.ZodString;
|
|
828
803
|
audience: z.ZodOptional<z.ZodString>;
|
|
@@ -854,6 +829,25 @@ export declare const ClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
854
829
|
support_url?: string | undefined;
|
|
855
830
|
language?: string | undefined;
|
|
856
831
|
}>;
|
|
832
|
+
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
833
|
+
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
834
|
+
id: z.ZodString;
|
|
835
|
+
name: z.ZodString;
|
|
836
|
+
callbacks: z.ZodArray<z.ZodString, "many">;
|
|
837
|
+
allowed_origins: z.ZodArray<z.ZodString, "many">;
|
|
838
|
+
web_origins: z.ZodArray<z.ZodString, "many">;
|
|
839
|
+
allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
|
|
840
|
+
addons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[
|
|
841
|
+
z.ZodString,
|
|
842
|
+
z.ZodNumber
|
|
843
|
+
]>>>>;
|
|
844
|
+
email_validation: z.ZodDefault<z.ZodEnum<[
|
|
845
|
+
"enabled",
|
|
846
|
+
"disabled",
|
|
847
|
+
"enforced"
|
|
848
|
+
]>>;
|
|
849
|
+
client_secret: z.ZodDefault<z.ZodString>;
|
|
850
|
+
disable_sign_ups: z.ZodDefault<z.ZodBoolean>;
|
|
857
851
|
}, {
|
|
858
852
|
connections: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
859
853
|
id: z.ZodString;
|
|
@@ -910,11 +904,14 @@ export declare const ClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
910
904
|
userinfo_endpoint?: string | undefined;
|
|
911
905
|
}>, "many">;
|
|
912
906
|
}>, "strip", z.ZodTypeAny, {
|
|
907
|
+
created_at: string;
|
|
908
|
+
updated_at: string;
|
|
913
909
|
name: string;
|
|
914
910
|
id: string;
|
|
911
|
+
callbacks: string[];
|
|
912
|
+
allowed_origins: string[];
|
|
913
|
+
web_origins: string[];
|
|
915
914
|
allowed_logout_urls: string[];
|
|
916
|
-
allowed_web_origins: string[];
|
|
917
|
-
allowed_callback_urls: string[];
|
|
918
915
|
email_validation: "enabled" | "disabled" | "enforced";
|
|
919
916
|
client_secret: string;
|
|
920
917
|
disable_sign_ups: boolean;
|
|
@@ -925,7 +922,6 @@ export declare const ClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
925
922
|
email_api_key?: string | undefined;
|
|
926
923
|
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
927
924
|
}[];
|
|
928
|
-
tenant_id: string;
|
|
929
925
|
tenant: {
|
|
930
926
|
name: string;
|
|
931
927
|
sender_email: string;
|
|
@@ -955,15 +951,16 @@ export declare const ClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
955
951
|
token_exchange_basic_auth?: boolean | undefined;
|
|
956
952
|
userinfo_endpoint?: string | undefined;
|
|
957
953
|
}[];
|
|
954
|
+
addons?: Record<string, Record<string, string | number>> | undefined;
|
|
958
955
|
}, {
|
|
956
|
+
created_at: string;
|
|
957
|
+
updated_at: string;
|
|
959
958
|
name: string;
|
|
960
959
|
id: string;
|
|
960
|
+
callbacks: string[];
|
|
961
|
+
allowed_origins: string[];
|
|
962
|
+
web_origins: string[];
|
|
961
963
|
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
964
|
domains: {
|
|
968
965
|
domain: string;
|
|
969
966
|
dkim_private_key?: string | undefined;
|
|
@@ -971,7 +968,6 @@ export declare const ClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
971
968
|
email_api_key?: string | undefined;
|
|
972
969
|
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
973
970
|
}[];
|
|
974
|
-
tenant_id: string;
|
|
975
971
|
tenant: {
|
|
976
972
|
name: string;
|
|
977
973
|
sender_email: string;
|
|
@@ -1001,10 +997,12 @@ export declare const ClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1001
997
|
token_exchange_basic_auth?: boolean | undefined;
|
|
1002
998
|
userinfo_endpoint?: string | undefined;
|
|
1003
999
|
}[];
|
|
1000
|
+
addons?: Record<string, Record<string, string | number>> | undefined;
|
|
1001
|
+
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
1002
|
+
client_secret?: string | undefined;
|
|
1003
|
+
disable_sign_ups?: boolean | undefined;
|
|
1004
1004
|
}>;
|
|
1005
1005
|
export declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1006
|
-
id: z.ZodString;
|
|
1007
|
-
name: z.ZodString;
|
|
1008
1006
|
domains: z.ZodArray<z.ZodObject<{
|
|
1009
1007
|
domain: z.ZodString;
|
|
1010
1008
|
dkim_private_key: z.ZodOptional<z.ZodString>;
|
|
@@ -1027,17 +1025,6 @@ export declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1027
1025
|
email_api_key?: string | undefined;
|
|
1028
1026
|
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
1029
1027
|
}>, "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
1028
|
tenant: z.ZodObject<{
|
|
1042
1029
|
name: z.ZodString;
|
|
1043
1030
|
audience: z.ZodOptional<z.ZodString>;
|
|
@@ -1069,6 +1056,25 @@ export declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1069
1056
|
support_url?: string | undefined;
|
|
1070
1057
|
language?: string | undefined;
|
|
1071
1058
|
}>;
|
|
1059
|
+
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
1060
|
+
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
1061
|
+
id: z.ZodString;
|
|
1062
|
+
name: z.ZodString;
|
|
1063
|
+
callbacks: z.ZodArray<z.ZodString, "many">;
|
|
1064
|
+
allowed_origins: z.ZodArray<z.ZodString, "many">;
|
|
1065
|
+
web_origins: z.ZodArray<z.ZodString, "many">;
|
|
1066
|
+
allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
|
|
1067
|
+
addons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[
|
|
1068
|
+
z.ZodString,
|
|
1069
|
+
z.ZodNumber
|
|
1070
|
+
]>>>>;
|
|
1071
|
+
email_validation: z.ZodDefault<z.ZodEnum<[
|
|
1072
|
+
"enabled",
|
|
1073
|
+
"disabled",
|
|
1074
|
+
"enforced"
|
|
1075
|
+
]>>;
|
|
1076
|
+
client_secret: z.ZodDefault<z.ZodString>;
|
|
1077
|
+
disable_sign_ups: z.ZodDefault<z.ZodBoolean>;
|
|
1072
1078
|
}, {
|
|
1073
1079
|
connections: z.ZodArray<z.ZodObject<{
|
|
1074
1080
|
created_at: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -1123,11 +1129,14 @@ export declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1123
1129
|
userinfo_endpoint?: string | undefined;
|
|
1124
1130
|
}>, "many">;
|
|
1125
1131
|
}>, "strip", z.ZodTypeAny, {
|
|
1132
|
+
created_at: string;
|
|
1133
|
+
updated_at: string;
|
|
1126
1134
|
name: string;
|
|
1127
1135
|
id: string;
|
|
1136
|
+
callbacks: string[];
|
|
1137
|
+
allowed_origins: string[];
|
|
1138
|
+
web_origins: string[];
|
|
1128
1139
|
allowed_logout_urls: string[];
|
|
1129
|
-
allowed_web_origins: string[];
|
|
1130
|
-
allowed_callback_urls: string[];
|
|
1131
1140
|
email_validation: "enabled" | "disabled" | "enforced";
|
|
1132
1141
|
client_secret: string;
|
|
1133
1142
|
disable_sign_ups: boolean;
|
|
@@ -1138,7 +1147,6 @@ export declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1138
1147
|
email_api_key?: string | undefined;
|
|
1139
1148
|
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
1140
1149
|
}[];
|
|
1141
|
-
tenant_id: string;
|
|
1142
1150
|
tenant: {
|
|
1143
1151
|
name: string;
|
|
1144
1152
|
sender_email: string;
|
|
@@ -1168,15 +1176,16 @@ export declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1168
1176
|
token_exchange_basic_auth?: boolean | undefined;
|
|
1169
1177
|
userinfo_endpoint?: string | undefined;
|
|
1170
1178
|
}[];
|
|
1179
|
+
addons?: Record<string, Record<string, string | number>> | undefined;
|
|
1171
1180
|
}, {
|
|
1181
|
+
created_at: string;
|
|
1182
|
+
updated_at: string;
|
|
1172
1183
|
name: string;
|
|
1173
1184
|
id: string;
|
|
1185
|
+
callbacks: string[];
|
|
1186
|
+
allowed_origins: string[];
|
|
1187
|
+
web_origins: string[];
|
|
1174
1188
|
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
1189
|
domains: {
|
|
1181
1190
|
domain: string;
|
|
1182
1191
|
dkim_private_key?: string | undefined;
|
|
@@ -1184,7 +1193,6 @@ export declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1184
1193
|
email_api_key?: string | undefined;
|
|
1185
1194
|
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
1186
1195
|
}[];
|
|
1187
|
-
tenant_id: string;
|
|
1188
1196
|
tenant: {
|
|
1189
1197
|
name: string;
|
|
1190
1198
|
sender_email: string;
|
|
@@ -1214,6 +1222,10 @@ export declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1214
1222
|
token_exchange_basic_auth?: boolean | undefined;
|
|
1215
1223
|
userinfo_endpoint?: string | undefined;
|
|
1216
1224
|
}[];
|
|
1225
|
+
addons?: Record<string, Record<string, string | number>> | undefined;
|
|
1226
|
+
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
1227
|
+
client_secret?: string | undefined;
|
|
1228
|
+
disable_sign_ups?: boolean | undefined;
|
|
1217
1229
|
}>;
|
|
1218
1230
|
export type Client = z.infer<typeof ClientSchema>;
|
|
1219
1231
|
export type PartialClient = z.infer<typeof PartialClientSchema>;
|