@authhero/kysely-adapter 0.20.0 → 0.21.0
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/kysely-adapter.cjs +1 -1
- package/dist/kysely-adapter.d.ts +26 -14
- package/dist/kysely-adapter.mjs +127 -111
- package/package.json +2 -2
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -715,18 +715,20 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
715
715
|
}, {
|
|
716
716
|
id: z.ZodOptional<z.ZodString>;
|
|
717
717
|
name: z.ZodString;
|
|
718
|
-
strategy: z.
|
|
718
|
+
strategy: z.ZodEnum<[
|
|
719
719
|
"google-oauth2",
|
|
720
720
|
"facebook",
|
|
721
721
|
"vipps",
|
|
722
722
|
"freja",
|
|
723
723
|
"apple",
|
|
724
724
|
"email",
|
|
725
|
+
"auth0",
|
|
726
|
+
"authhero",
|
|
725
727
|
"Username-Password-Authentication",
|
|
726
728
|
"oidc",
|
|
727
729
|
"oauth2",
|
|
728
730
|
"custom"
|
|
729
|
-
]
|
|
731
|
+
]>;
|
|
730
732
|
options: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
731
733
|
kid: z.ZodOptional<z.ZodString>;
|
|
732
734
|
team_id: z.ZodOptional<z.ZodString>;
|
|
@@ -777,6 +779,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
777
779
|
created_at: string;
|
|
778
780
|
updated_at: string;
|
|
779
781
|
name: string;
|
|
782
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
780
783
|
options?: {
|
|
781
784
|
issuer?: string | undefined;
|
|
782
785
|
client_secret?: string | undefined;
|
|
@@ -795,12 +798,12 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
795
798
|
id?: string | undefined;
|
|
796
799
|
response_type?: AuthorizationResponseType | undefined;
|
|
797
800
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
798
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
799
801
|
enabled_clients?: string[] | undefined;
|
|
800
802
|
}, {
|
|
801
803
|
created_at: string;
|
|
802
804
|
updated_at: string;
|
|
803
805
|
name: string;
|
|
806
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
804
807
|
options?: {
|
|
805
808
|
issuer?: string | undefined;
|
|
806
809
|
client_secret?: string | undefined;
|
|
@@ -819,7 +822,6 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
819
822
|
id?: string | undefined;
|
|
820
823
|
response_type?: AuthorizationResponseType | undefined;
|
|
821
824
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
822
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
823
825
|
enabled_clients?: string[] | undefined;
|
|
824
826
|
}>, "many">;
|
|
825
827
|
id: z.ZodString;
|
|
@@ -961,6 +963,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
961
963
|
created_at: string;
|
|
962
964
|
updated_at: string;
|
|
963
965
|
name: string;
|
|
966
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
964
967
|
options?: {
|
|
965
968
|
issuer?: string | undefined;
|
|
966
969
|
client_secret?: string | undefined;
|
|
@@ -979,7 +982,6 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
979
982
|
id?: string | undefined;
|
|
980
983
|
response_type?: AuthorizationResponseType | undefined;
|
|
981
984
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
982
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
983
985
|
enabled_clients?: string[] | undefined;
|
|
984
986
|
}[];
|
|
985
987
|
callbacks?: string[] | undefined;
|
|
@@ -1039,6 +1041,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1039
1041
|
created_at: string;
|
|
1040
1042
|
updated_at: string;
|
|
1041
1043
|
name: string;
|
|
1044
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
1042
1045
|
options?: {
|
|
1043
1046
|
issuer?: string | undefined;
|
|
1044
1047
|
client_secret?: string | undefined;
|
|
@@ -1057,7 +1060,6 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1057
1060
|
id?: string | undefined;
|
|
1058
1061
|
response_type?: AuthorizationResponseType | undefined;
|
|
1059
1062
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1060
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1061
1063
|
enabled_clients?: string[] | undefined;
|
|
1062
1064
|
}[];
|
|
1063
1065
|
callbacks?: string[] | undefined;
|
|
@@ -1111,6 +1113,7 @@ declare const codeInsertSchema: z.ZodObject<{
|
|
|
1111
1113
|
"oauth2_state",
|
|
1112
1114
|
"ticket"
|
|
1113
1115
|
]>;
|
|
1116
|
+
code_verifier: z.ZodOptional<z.ZodString>;
|
|
1114
1117
|
expires_at: z.ZodString;
|
|
1115
1118
|
used_at: z.ZodOptional<z.ZodString>;
|
|
1116
1119
|
user_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1121,6 +1124,7 @@ declare const codeInsertSchema: z.ZodObject<{
|
|
|
1121
1124
|
expires_at: string;
|
|
1122
1125
|
user_id?: string | undefined;
|
|
1123
1126
|
connection_id?: string | undefined;
|
|
1127
|
+
code_verifier?: string | undefined;
|
|
1124
1128
|
used_at?: string | undefined;
|
|
1125
1129
|
}, {
|
|
1126
1130
|
code_id: string;
|
|
@@ -1129,6 +1133,7 @@ declare const codeInsertSchema: z.ZodObject<{
|
|
|
1129
1133
|
expires_at: string;
|
|
1130
1134
|
user_id?: string | undefined;
|
|
1131
1135
|
connection_id?: string | undefined;
|
|
1136
|
+
code_verifier?: string | undefined;
|
|
1132
1137
|
used_at?: string | undefined;
|
|
1133
1138
|
}>;
|
|
1134
1139
|
export type CodeInsert = z.infer<typeof codeInsertSchema>;
|
|
@@ -1145,6 +1150,7 @@ declare const codeSchema: z.ZodObject<{
|
|
|
1145
1150
|
"oauth2_state",
|
|
1146
1151
|
"ticket"
|
|
1147
1152
|
]>;
|
|
1153
|
+
code_verifier: z.ZodOptional<z.ZodString>;
|
|
1148
1154
|
expires_at: z.ZodString;
|
|
1149
1155
|
used_at: z.ZodOptional<z.ZodString>;
|
|
1150
1156
|
user_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1156,6 +1162,7 @@ declare const codeSchema: z.ZodObject<{
|
|
|
1156
1162
|
expires_at: string;
|
|
1157
1163
|
user_id?: string | undefined;
|
|
1158
1164
|
connection_id?: string | undefined;
|
|
1165
|
+
code_verifier?: string | undefined;
|
|
1159
1166
|
used_at?: string | undefined;
|
|
1160
1167
|
}, {
|
|
1161
1168
|
created_at: string;
|
|
@@ -1165,24 +1172,27 @@ declare const codeSchema: z.ZodObject<{
|
|
|
1165
1172
|
expires_at: string;
|
|
1166
1173
|
user_id?: string | undefined;
|
|
1167
1174
|
connection_id?: string | undefined;
|
|
1175
|
+
code_verifier?: string | undefined;
|
|
1168
1176
|
used_at?: string | undefined;
|
|
1169
1177
|
}>;
|
|
1170
1178
|
export type Code = z.infer<typeof codeSchema>;
|
|
1171
1179
|
declare const connectionInsertSchema: z.ZodObject<{
|
|
1172
1180
|
id: z.ZodOptional<z.ZodString>;
|
|
1173
1181
|
name: z.ZodString;
|
|
1174
|
-
strategy: z.
|
|
1182
|
+
strategy: z.ZodEnum<[
|
|
1175
1183
|
"google-oauth2",
|
|
1176
1184
|
"facebook",
|
|
1177
1185
|
"vipps",
|
|
1178
1186
|
"freja",
|
|
1179
1187
|
"apple",
|
|
1180
1188
|
"email",
|
|
1189
|
+
"auth0",
|
|
1190
|
+
"authhero",
|
|
1181
1191
|
"Username-Password-Authentication",
|
|
1182
1192
|
"oidc",
|
|
1183
1193
|
"oauth2",
|
|
1184
1194
|
"custom"
|
|
1185
|
-
]
|
|
1195
|
+
]>;
|
|
1186
1196
|
options: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
1187
1197
|
kid: z.ZodOptional<z.ZodString>;
|
|
1188
1198
|
team_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1231,6 +1241,7 @@ declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1231
1241
|
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
1232
1242
|
}, "strip", z.ZodTypeAny, {
|
|
1233
1243
|
name: string;
|
|
1244
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
1234
1245
|
options?: {
|
|
1235
1246
|
issuer?: string | undefined;
|
|
1236
1247
|
client_secret?: string | undefined;
|
|
@@ -1249,10 +1260,10 @@ declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1249
1260
|
id?: string | undefined;
|
|
1250
1261
|
response_type?: AuthorizationResponseType | undefined;
|
|
1251
1262
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1252
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1253
1263
|
enabled_clients?: string[] | undefined;
|
|
1254
1264
|
}, {
|
|
1255
1265
|
name: string;
|
|
1266
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
1256
1267
|
options?: {
|
|
1257
1268
|
issuer?: string | undefined;
|
|
1258
1269
|
client_secret?: string | undefined;
|
|
@@ -1271,7 +1282,6 @@ declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1271
1282
|
id?: string | undefined;
|
|
1272
1283
|
response_type?: AuthorizationResponseType | undefined;
|
|
1273
1284
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1274
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1275
1285
|
enabled_clients?: string[] | undefined;
|
|
1276
1286
|
}>;
|
|
1277
1287
|
export type ConnectionInsert = z.infer<typeof connectionInsertSchema>;
|
|
@@ -1282,18 +1292,20 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1282
1292
|
}, {
|
|
1283
1293
|
id: z.ZodOptional<z.ZodString>;
|
|
1284
1294
|
name: z.ZodString;
|
|
1285
|
-
strategy: z.
|
|
1295
|
+
strategy: z.ZodEnum<[
|
|
1286
1296
|
"google-oauth2",
|
|
1287
1297
|
"facebook",
|
|
1288
1298
|
"vipps",
|
|
1289
1299
|
"freja",
|
|
1290
1300
|
"apple",
|
|
1291
1301
|
"email",
|
|
1302
|
+
"auth0",
|
|
1303
|
+
"authhero",
|
|
1292
1304
|
"Username-Password-Authentication",
|
|
1293
1305
|
"oidc",
|
|
1294
1306
|
"oauth2",
|
|
1295
1307
|
"custom"
|
|
1296
|
-
]
|
|
1308
|
+
]>;
|
|
1297
1309
|
options: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
1298
1310
|
kid: z.ZodOptional<z.ZodString>;
|
|
1299
1311
|
team_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1344,6 +1356,7 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1344
1356
|
created_at: string;
|
|
1345
1357
|
updated_at: string;
|
|
1346
1358
|
name: string;
|
|
1359
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
1347
1360
|
options?: {
|
|
1348
1361
|
issuer?: string | undefined;
|
|
1349
1362
|
client_secret?: string | undefined;
|
|
@@ -1362,12 +1375,12 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1362
1375
|
id?: string | undefined;
|
|
1363
1376
|
response_type?: AuthorizationResponseType | undefined;
|
|
1364
1377
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1365
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1366
1378
|
enabled_clients?: string[] | undefined;
|
|
1367
1379
|
}, {
|
|
1368
1380
|
created_at: string;
|
|
1369
1381
|
updated_at: string;
|
|
1370
1382
|
name: string;
|
|
1383
|
+
strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
|
|
1371
1384
|
options?: {
|
|
1372
1385
|
issuer?: string | undefined;
|
|
1373
1386
|
client_secret?: string | undefined;
|
|
@@ -1386,7 +1399,6 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1386
1399
|
id?: string | undefined;
|
|
1387
1400
|
response_type?: AuthorizationResponseType | undefined;
|
|
1388
1401
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1389
|
-
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1390
1402
|
enabled_clients?: string[] | undefined;
|
|
1391
1403
|
}>;
|
|
1392
1404
|
export type Connection = z.infer<typeof connectionSchema>;
|