@authhero/adapter-interfaces 0.11.2 → 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.
@@ -592,10 +592,7 @@ export declare const applicationInsertSchema: z.ZodObject<{
592
592
  disable_sign_ups?: boolean | undefined;
593
593
  }>;
594
594
  export type ApplicationInsert = z.infer<typeof applicationInsertSchema>;
595
- export declare const applicationSchema: z.ZodObject<z.objectUtil.extendShape<{
596
- created_at: z.ZodEffects<z.ZodString, string, string>;
597
- updated_at: z.ZodEffects<z.ZodString, string, string>;
598
- }, {
595
+ export declare const applicationSchema: z.ZodObject<{
599
596
  id: z.ZodString;
600
597
  name: z.ZodString;
601
598
  callbacks: z.ZodArray<z.ZodString, "many">;
@@ -613,7 +610,9 @@ export declare const applicationSchema: z.ZodObject<z.objectUtil.extendShape<{
613
610
  ]>>;
614
611
  client_secret: z.ZodDefault<z.ZodString>;
615
612
  disable_sign_ups: z.ZodDefault<z.ZodBoolean>;
616
- }>, "strip", z.ZodTypeAny, {
613
+ created_at: z.ZodEffects<z.ZodString, string, string>;
614
+ updated_at: z.ZodEffects<z.ZodString, string, string>;
615
+ }, "strip", z.ZodTypeAny, {
617
616
  created_at: string;
618
617
  updated_at: string;
619
618
  name: string;
@@ -775,7 +774,7 @@ export declare const brandingSchema: z.ZodObject<{
775
774
  } | undefined;
776
775
  }>;
777
776
  export type Branding = z.infer<typeof brandingSchema>;
778
- export declare const ClientSchema: z.ZodObject<z.objectUtil.extendShape<{
777
+ declare const ClientSchema: z.ZodObject<{
779
778
  domains: z.ZodArray<z.ZodObject<{
780
779
  domain: z.ZodString;
781
780
  dkim_private_key: z.ZodOptional<z.ZodString>;
@@ -800,55 +799,44 @@ export declare const ClientSchema: z.ZodObject<z.objectUtil.extendShape<{
800
799
  }>, "many">;
801
800
  tenant: z.ZodObject<{
802
801
  name: z.ZodString;
803
- audience: z.ZodOptional<z.ZodString>;
804
- logo: z.ZodOptional<z.ZodString>;
805
- primary_color: z.ZodOptional<z.ZodString>;
806
- secondary_color: z.ZodOptional<z.ZodString>;
802
+ audience: z.ZodString;
807
803
  sender_email: z.ZodString;
808
804
  sender_name: z.ZodString;
809
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>;
810
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;
811
813
  }, "strip", z.ZodTypeAny, {
814
+ created_at: string;
815
+ updated_at: string;
812
816
  name: string;
817
+ id: string;
818
+ audience: string;
813
819
  sender_email: string;
814
820
  sender_name: string;
815
- audience?: string | undefined;
821
+ support_url?: string | undefined;
816
822
  logo?: string | undefined;
817
823
  primary_color?: string | undefined;
818
824
  secondary_color?: string | undefined;
819
- support_url?: string | undefined;
820
825
  language?: string | undefined;
821
826
  }, {
827
+ created_at: string;
828
+ updated_at: string;
822
829
  name: string;
830
+ id: string;
831
+ audience: string;
823
832
  sender_email: string;
824
833
  sender_name: string;
825
- audience?: string | undefined;
834
+ support_url?: string | undefined;
826
835
  logo?: string | undefined;
827
836
  primary_color?: string | undefined;
828
837
  secondary_color?: string | undefined;
829
- support_url?: string | undefined;
830
838
  language?: string | undefined;
831
839
  }>;
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>;
851
- }, {
852
840
  connections: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
853
841
  id: z.ZodString;
854
842
  created_at: z.ZodEffects<z.ZodString, string, string>;
@@ -903,161 +891,6 @@ export declare const ClientSchema: z.ZodObject<z.objectUtil.extendShape<{
903
891
  token_exchange_basic_auth?: boolean | undefined;
904
892
  userinfo_endpoint?: string | undefined;
905
893
  }>, "many">;
906
- }>, "strip", z.ZodTypeAny, {
907
- created_at: string;
908
- updated_at: string;
909
- name: string;
910
- id: string;
911
- callbacks: string[];
912
- allowed_origins: string[];
913
- web_origins: string[];
914
- allowed_logout_urls: string[];
915
- email_validation: "enabled" | "disabled" | "enforced";
916
- client_secret: string;
917
- disable_sign_ups: boolean;
918
- domains: {
919
- domain: string;
920
- dkim_private_key?: string | undefined;
921
- dkim_public_key?: string | undefined;
922
- email_api_key?: string | undefined;
923
- email_service?: "mailgun" | "mailchannels" | undefined;
924
- }[];
925
- tenant: {
926
- name: string;
927
- sender_email: string;
928
- sender_name: string;
929
- audience?: string | undefined;
930
- logo?: string | undefined;
931
- primary_color?: string | undefined;
932
- secondary_color?: string | undefined;
933
- support_url?: string | undefined;
934
- language?: string | undefined;
935
- };
936
- connections: {
937
- created_at: string;
938
- updated_at: string;
939
- name: string;
940
- id?: string | undefined;
941
- client_secret?: string | undefined;
942
- client_id?: string | undefined;
943
- response_type?: AuthorizationResponseType | undefined;
944
- response_mode?: AuthorizationResponseMode | undefined;
945
- scope?: string | undefined;
946
- authorization_endpoint?: string | undefined;
947
- private_key?: string | undefined;
948
- kid?: string | undefined;
949
- team_id?: string | undefined;
950
- token_endpoint?: string | undefined;
951
- token_exchange_basic_auth?: boolean | undefined;
952
- userinfo_endpoint?: string | undefined;
953
- }[];
954
- addons?: Record<string, Record<string, string | number>> | undefined;
955
- }, {
956
- created_at: string;
957
- updated_at: string;
958
- name: string;
959
- id: string;
960
- callbacks: string[];
961
- allowed_origins: string[];
962
- web_origins: string[];
963
- allowed_logout_urls: string[];
964
- domains: {
965
- domain: string;
966
- dkim_private_key?: string | undefined;
967
- dkim_public_key?: string | undefined;
968
- email_api_key?: string | undefined;
969
- email_service?: "mailgun" | "mailchannels" | undefined;
970
- }[];
971
- tenant: {
972
- name: string;
973
- sender_email: string;
974
- sender_name: string;
975
- audience?: string | undefined;
976
- logo?: string | undefined;
977
- primary_color?: string | undefined;
978
- secondary_color?: string | undefined;
979
- support_url?: string | undefined;
980
- language?: string | undefined;
981
- };
982
- connections: {
983
- created_at: string;
984
- updated_at: string;
985
- name: string;
986
- id?: string | undefined;
987
- client_secret?: string | undefined;
988
- client_id?: string | undefined;
989
- response_type?: AuthorizationResponseType | undefined;
990
- response_mode?: AuthorizationResponseMode | undefined;
991
- scope?: string | undefined;
992
- authorization_endpoint?: string | undefined;
993
- private_key?: string | undefined;
994
- kid?: string | undefined;
995
- team_id?: string | undefined;
996
- token_endpoint?: string | undefined;
997
- token_exchange_basic_auth?: boolean | undefined;
998
- userinfo_endpoint?: string | undefined;
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
- }>;
1005
- export declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
1006
- domains: z.ZodArray<z.ZodObject<{
1007
- domain: z.ZodString;
1008
- dkim_private_key: z.ZodOptional<z.ZodString>;
1009
- dkim_public_key: z.ZodOptional<z.ZodString>;
1010
- email_api_key: z.ZodOptional<z.ZodString>;
1011
- email_service: z.ZodOptional<z.ZodUnion<[
1012
- z.ZodLiteral<"mailgun">,
1013
- z.ZodLiteral<"mailchannels">
1014
- ]>>;
1015
- }, "strip", z.ZodTypeAny, {
1016
- domain: string;
1017
- dkim_private_key?: string | undefined;
1018
- dkim_public_key?: string | undefined;
1019
- email_api_key?: string | undefined;
1020
- email_service?: "mailgun" | "mailchannels" | undefined;
1021
- }, {
1022
- domain: string;
1023
- dkim_private_key?: string | undefined;
1024
- dkim_public_key?: string | undefined;
1025
- email_api_key?: string | undefined;
1026
- email_service?: "mailgun" | "mailchannels" | undefined;
1027
- }>, "many">;
1028
- tenant: z.ZodObject<{
1029
- name: z.ZodString;
1030
- audience: z.ZodOptional<z.ZodString>;
1031
- logo: z.ZodOptional<z.ZodString>;
1032
- primary_color: z.ZodOptional<z.ZodString>;
1033
- secondary_color: z.ZodOptional<z.ZodString>;
1034
- sender_email: z.ZodString;
1035
- sender_name: z.ZodString;
1036
- support_url: z.ZodOptional<z.ZodString>;
1037
- language: z.ZodOptional<z.ZodString>;
1038
- }, "strip", z.ZodTypeAny, {
1039
- name: string;
1040
- sender_email: string;
1041
- sender_name: string;
1042
- audience?: string | undefined;
1043
- logo?: string | undefined;
1044
- primary_color?: string | undefined;
1045
- secondary_color?: string | undefined;
1046
- support_url?: string | undefined;
1047
- language?: string | undefined;
1048
- }, {
1049
- name: string;
1050
- sender_email: string;
1051
- sender_name: string;
1052
- audience?: string | undefined;
1053
- logo?: string | undefined;
1054
- primary_color?: string | undefined;
1055
- secondary_color?: string | undefined;
1056
- support_url?: string | undefined;
1057
- language?: string | undefined;
1058
- }>;
1059
- created_at: z.ZodEffects<z.ZodString, string, string>;
1060
- updated_at: z.ZodEffects<z.ZodString, string, string>;
1061
894
  id: z.ZodString;
1062
895
  name: z.ZodString;
1063
896
  callbacks: z.ZodArray<z.ZodString, "many">;
@@ -1075,60 +908,9 @@ export declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
1075
908
  ]>>;
1076
909
  client_secret: z.ZodDefault<z.ZodString>;
1077
910
  disable_sign_ups: z.ZodDefault<z.ZodBoolean>;
1078
- }, {
1079
- connections: z.ZodArray<z.ZodObject<{
1080
- created_at: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1081
- updated_at: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1082
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1083
- name: z.ZodOptional<z.ZodString>;
1084
- client_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1085
- client_secret: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1086
- authorization_endpoint: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1087
- response_type: z.ZodOptional<z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>>;
1088
- response_mode: z.ZodOptional<z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>>;
1089
- private_key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1090
- kid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1091
- team_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1092
- token_endpoint: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1093
- token_exchange_basic_auth: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1094
- userinfo_endpoint: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1095
- scope: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1096
- }, "strip", z.ZodTypeAny, {
1097
- created_at?: string | undefined;
1098
- updated_at?: string | undefined;
1099
- name?: string | undefined;
1100
- id?: string | undefined;
1101
- client_secret?: string | undefined;
1102
- client_id?: string | undefined;
1103
- response_type?: AuthorizationResponseType | undefined;
1104
- response_mode?: AuthorizationResponseMode | undefined;
1105
- scope?: string | undefined;
1106
- authorization_endpoint?: string | undefined;
1107
- private_key?: string | undefined;
1108
- kid?: string | undefined;
1109
- team_id?: string | undefined;
1110
- token_endpoint?: string | undefined;
1111
- token_exchange_basic_auth?: boolean | undefined;
1112
- userinfo_endpoint?: string | undefined;
1113
- }, {
1114
- created_at?: string | undefined;
1115
- updated_at?: string | undefined;
1116
- name?: string | undefined;
1117
- id?: string | undefined;
1118
- client_secret?: string | undefined;
1119
- client_id?: string | undefined;
1120
- response_type?: AuthorizationResponseType | undefined;
1121
- response_mode?: AuthorizationResponseMode | undefined;
1122
- scope?: string | undefined;
1123
- authorization_endpoint?: string | undefined;
1124
- private_key?: string | undefined;
1125
- kid?: string | undefined;
1126
- team_id?: string | undefined;
1127
- token_endpoint?: string | undefined;
1128
- token_exchange_basic_auth?: boolean | undefined;
1129
- userinfo_endpoint?: string | undefined;
1130
- }>, "many">;
1131
- }>, "strip", z.ZodTypeAny, {
911
+ created_at: z.ZodEffects<z.ZodString, string, string>;
912
+ updated_at: z.ZodEffects<z.ZodString, string, string>;
913
+ }, "strip", z.ZodTypeAny, {
1132
914
  created_at: string;
1133
915
  updated_at: string;
1134
916
  name: string;
@@ -1148,20 +930,23 @@ export declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
1148
930
  email_service?: "mailgun" | "mailchannels" | undefined;
1149
931
  }[];
1150
932
  tenant: {
933
+ created_at: string;
934
+ updated_at: string;
1151
935
  name: string;
936
+ id: string;
937
+ audience: string;
1152
938
  sender_email: string;
1153
939
  sender_name: string;
1154
- audience?: string | undefined;
940
+ support_url?: string | undefined;
1155
941
  logo?: string | undefined;
1156
942
  primary_color?: string | undefined;
1157
943
  secondary_color?: string | undefined;
1158
- support_url?: string | undefined;
1159
944
  language?: string | undefined;
1160
945
  };
1161
946
  connections: {
1162
- created_at?: string | undefined;
1163
- updated_at?: string | undefined;
1164
- name?: string | undefined;
947
+ created_at: string;
948
+ updated_at: string;
949
+ name: string;
1165
950
  id?: string | undefined;
1166
951
  client_secret?: string | undefined;
1167
952
  client_id?: string | undefined;
@@ -1194,20 +979,23 @@ export declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
1194
979
  email_service?: "mailgun" | "mailchannels" | undefined;
1195
980
  }[];
1196
981
  tenant: {
982
+ created_at: string;
983
+ updated_at: string;
1197
984
  name: string;
985
+ id: string;
986
+ audience: string;
1198
987
  sender_email: string;
1199
988
  sender_name: string;
1200
- audience?: string | undefined;
989
+ support_url?: string | undefined;
1201
990
  logo?: string | undefined;
1202
991
  primary_color?: string | undefined;
1203
992
  secondary_color?: string | undefined;
1204
- support_url?: string | undefined;
1205
993
  language?: string | undefined;
1206
994
  };
1207
995
  connections: {
1208
- created_at?: string | undefined;
1209
- updated_at?: string | undefined;
1210
- name?: string | undefined;
996
+ created_at: string;
997
+ updated_at: string;
998
+ name: string;
1211
999
  id?: string | undefined;
1212
1000
  client_secret?: string | undefined;
1213
1001
  client_id?: string | undefined;
@@ -1228,7 +1016,6 @@ export declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
1228
1016
  disable_sign_ups?: boolean | undefined;
1229
1017
  }>;
1230
1018
  export type Client = z.infer<typeof ClientSchema>;
1231
- export type PartialClient = z.infer<typeof PartialClientSchema>;
1232
1019
  export declare const codeTypeSchema: z.ZodEnum<[
1233
1020
  "password_reset",
1234
1021
  "email_verification",
@@ -2300,23 +2087,23 @@ export declare const tenantInsertSchema: z.ZodObject<{
2300
2087
  audience: string;
2301
2088
  sender_email: string;
2302
2089
  sender_name: string;
2090
+ support_url?: string | undefined;
2303
2091
  logo?: string | undefined;
2304
2092
  primary_color?: string | undefined;
2305
2093
  secondary_color?: string | undefined;
2306
- support_url?: string | undefined;
2307
2094
  language?: string | undefined;
2308
2095
  }, {
2309
2096
  name: string;
2310
2097
  audience: string;
2311
2098
  sender_email: string;
2312
2099
  sender_name: string;
2100
+ support_url?: string | undefined;
2313
2101
  logo?: string | undefined;
2314
2102
  primary_color?: string | undefined;
2315
2103
  secondary_color?: string | undefined;
2316
- support_url?: string | undefined;
2317
2104
  language?: string | undefined;
2318
2105
  }>;
2319
- export declare const tenantSchema: z.ZodObject<z.objectUtil.extendShape<{
2106
+ export declare const tenantSchema: z.ZodObject<{
2320
2107
  name: z.ZodString;
2321
2108
  audience: z.ZodString;
2322
2109
  sender_email: z.ZodString;
@@ -2326,32 +2113,34 @@ export declare const tenantSchema: z.ZodObject<z.objectUtil.extendShape<{
2326
2113
  primary_color: z.ZodOptional<z.ZodString>;
2327
2114
  secondary_color: z.ZodOptional<z.ZodString>;
2328
2115
  language: z.ZodOptional<z.ZodString>;
2329
- }, {
2330
2116
  created_at: z.ZodEffects<z.ZodString, string, string>;
2331
2117
  updated_at: z.ZodEffects<z.ZodString, string, string>;
2332
- }>, "strip", z.ZodTypeAny, {
2118
+ id: z.ZodString;
2119
+ }, "strip", z.ZodTypeAny, {
2333
2120
  created_at: string;
2334
2121
  updated_at: string;
2335
2122
  name: string;
2123
+ id: string;
2336
2124
  audience: string;
2337
2125
  sender_email: string;
2338
2126
  sender_name: string;
2127
+ support_url?: string | undefined;
2339
2128
  logo?: string | undefined;
2340
2129
  primary_color?: string | undefined;
2341
2130
  secondary_color?: string | undefined;
2342
- support_url?: string | undefined;
2343
2131
  language?: string | undefined;
2344
2132
  }, {
2345
2133
  created_at: string;
2346
2134
  updated_at: string;
2347
2135
  name: string;
2136
+ id: string;
2348
2137
  audience: string;
2349
2138
  sender_email: string;
2350
2139
  sender_name: string;
2140
+ support_url?: string | undefined;
2351
2141
  logo?: string | undefined;
2352
2142
  primary_color?: string | undefined;
2353
2143
  secondary_color?: string | undefined;
2354
- support_url?: string | undefined;
2355
2144
  language?: string | undefined;
2356
2145
  }>;
2357
2146
  export interface Tenant {
@@ -4349,7 +4138,7 @@ export interface HooksAdapter {
4349
4138
  list: (tenant_id: string, params: ListParams) => Promise<ListHooksResponse>;
4350
4139
  }
4351
4140
  export interface ClientsAdapter {
4352
- get: (id: string) => Promise<PartialClient | null>;
4141
+ get: (id: string) => Promise<Client | null>;
4353
4142
  }
4354
4143
  export interface ThemesAdapter {
4355
4144
  create: (tenant_id: string, theme: ThemeInsert) => Promise<Theme>;