@authhero/kysely-adapter 0.10.0 → 0.11.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 +34 -11
- package/dist/kysely-adapter.iife.js +1 -1
- package/dist/kysely-adapter.mjs +394 -382
- package/package.json +2 -2
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -772,6 +772,8 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
772
772
|
client_secret: z.ZodOptional<z.ZodString>;
|
|
773
773
|
app_secret: z.ZodOptional<z.ZodString>;
|
|
774
774
|
scope: z.ZodOptional<z.ZodString>;
|
|
775
|
+
authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
776
|
+
token_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
775
777
|
}, "strip", z.ZodTypeAny, {
|
|
776
778
|
client_secret?: string | undefined;
|
|
777
779
|
client_id?: string | undefined;
|
|
@@ -780,6 +782,8 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
780
782
|
team_id?: string | undefined;
|
|
781
783
|
realms?: string | undefined;
|
|
782
784
|
app_secret?: string | undefined;
|
|
785
|
+
authorization_endpoint?: string | undefined;
|
|
786
|
+
token_endpoint?: string | undefined;
|
|
783
787
|
}, {
|
|
784
788
|
client_secret?: string | undefined;
|
|
785
789
|
client_id?: string | undefined;
|
|
@@ -788,9 +792,10 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
788
792
|
team_id?: string | undefined;
|
|
789
793
|
realms?: string | undefined;
|
|
790
794
|
app_secret?: string | undefined;
|
|
795
|
+
authorization_endpoint?: string | undefined;
|
|
796
|
+
token_endpoint?: string | undefined;
|
|
791
797
|
}>>>;
|
|
792
798
|
enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
793
|
-
authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
794
799
|
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
795
800
|
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
796
801
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -805,13 +810,14 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
805
810
|
team_id?: string | undefined;
|
|
806
811
|
realms?: string | undefined;
|
|
807
812
|
app_secret?: string | undefined;
|
|
813
|
+
authorization_endpoint?: string | undefined;
|
|
814
|
+
token_endpoint?: string | undefined;
|
|
808
815
|
} | undefined;
|
|
809
816
|
id?: string | undefined;
|
|
810
817
|
response_type?: AuthorizationResponseType | undefined;
|
|
811
818
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
812
819
|
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
813
820
|
enabled_clients?: string[] | undefined;
|
|
814
|
-
authorization_endpoint?: string | undefined;
|
|
815
821
|
}, {
|
|
816
822
|
created_at: string;
|
|
817
823
|
updated_at: string;
|
|
@@ -824,13 +830,14 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
824
830
|
team_id?: string | undefined;
|
|
825
831
|
realms?: string | undefined;
|
|
826
832
|
app_secret?: string | undefined;
|
|
833
|
+
authorization_endpoint?: string | undefined;
|
|
834
|
+
token_endpoint?: string | undefined;
|
|
827
835
|
} | undefined;
|
|
828
836
|
id?: string | undefined;
|
|
829
837
|
response_type?: AuthorizationResponseType | undefined;
|
|
830
838
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
831
839
|
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
832
840
|
enabled_clients?: string[] | undefined;
|
|
833
|
-
authorization_endpoint?: string | undefined;
|
|
834
841
|
}>, "many">;
|
|
835
842
|
id: z.ZodString;
|
|
836
843
|
name: z.ZodString;
|
|
@@ -979,13 +986,14 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
979
986
|
team_id?: string | undefined;
|
|
980
987
|
realms?: string | undefined;
|
|
981
988
|
app_secret?: string | undefined;
|
|
989
|
+
authorization_endpoint?: string | undefined;
|
|
990
|
+
token_endpoint?: string | undefined;
|
|
982
991
|
} | undefined;
|
|
983
992
|
id?: string | undefined;
|
|
984
993
|
response_type?: AuthorizationResponseType | undefined;
|
|
985
994
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
986
995
|
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
987
996
|
enabled_clients?: string[] | undefined;
|
|
988
|
-
authorization_endpoint?: string | undefined;
|
|
989
997
|
}[];
|
|
990
998
|
callbacks?: string[] | undefined;
|
|
991
999
|
allowed_origins?: string[] | undefined;
|
|
@@ -1052,13 +1060,14 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1052
1060
|
team_id?: string | undefined;
|
|
1053
1061
|
realms?: string | undefined;
|
|
1054
1062
|
app_secret?: string | undefined;
|
|
1063
|
+
authorization_endpoint?: string | undefined;
|
|
1064
|
+
token_endpoint?: string | undefined;
|
|
1055
1065
|
} | undefined;
|
|
1056
1066
|
id?: string | undefined;
|
|
1057
1067
|
response_type?: AuthorizationResponseType | undefined;
|
|
1058
1068
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1059
1069
|
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1060
1070
|
enabled_clients?: string[] | undefined;
|
|
1061
|
-
authorization_endpoint?: string | undefined;
|
|
1062
1071
|
}[];
|
|
1063
1072
|
callbacks?: string[] | undefined;
|
|
1064
1073
|
allowed_origins?: string[] | undefined;
|
|
@@ -1190,6 +1199,8 @@ declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1190
1199
|
client_secret: z.ZodOptional<z.ZodString>;
|
|
1191
1200
|
app_secret: z.ZodOptional<z.ZodString>;
|
|
1192
1201
|
scope: z.ZodOptional<z.ZodString>;
|
|
1202
|
+
authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1203
|
+
token_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1193
1204
|
}, "strip", z.ZodTypeAny, {
|
|
1194
1205
|
client_secret?: string | undefined;
|
|
1195
1206
|
client_id?: string | undefined;
|
|
@@ -1198,6 +1209,8 @@ declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1198
1209
|
team_id?: string | undefined;
|
|
1199
1210
|
realms?: string | undefined;
|
|
1200
1211
|
app_secret?: string | undefined;
|
|
1212
|
+
authorization_endpoint?: string | undefined;
|
|
1213
|
+
token_endpoint?: string | undefined;
|
|
1201
1214
|
}, {
|
|
1202
1215
|
client_secret?: string | undefined;
|
|
1203
1216
|
client_id?: string | undefined;
|
|
@@ -1206,9 +1219,10 @@ declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1206
1219
|
team_id?: string | undefined;
|
|
1207
1220
|
realms?: string | undefined;
|
|
1208
1221
|
app_secret?: string | undefined;
|
|
1222
|
+
authorization_endpoint?: string | undefined;
|
|
1223
|
+
token_endpoint?: string | undefined;
|
|
1209
1224
|
}>>>;
|
|
1210
1225
|
enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
1211
|
-
authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1212
1226
|
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
1213
1227
|
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
1214
1228
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1221,13 +1235,14 @@ declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1221
1235
|
team_id?: string | undefined;
|
|
1222
1236
|
realms?: string | undefined;
|
|
1223
1237
|
app_secret?: string | undefined;
|
|
1238
|
+
authorization_endpoint?: string | undefined;
|
|
1239
|
+
token_endpoint?: string | undefined;
|
|
1224
1240
|
} | undefined;
|
|
1225
1241
|
id?: string | undefined;
|
|
1226
1242
|
response_type?: AuthorizationResponseType | undefined;
|
|
1227
1243
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1228
1244
|
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1229
1245
|
enabled_clients?: string[] | undefined;
|
|
1230
|
-
authorization_endpoint?: string | undefined;
|
|
1231
1246
|
}, {
|
|
1232
1247
|
name: string;
|
|
1233
1248
|
options?: {
|
|
@@ -1238,13 +1253,14 @@ declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1238
1253
|
team_id?: string | undefined;
|
|
1239
1254
|
realms?: string | undefined;
|
|
1240
1255
|
app_secret?: string | undefined;
|
|
1256
|
+
authorization_endpoint?: string | undefined;
|
|
1257
|
+
token_endpoint?: string | undefined;
|
|
1241
1258
|
} | undefined;
|
|
1242
1259
|
id?: string | undefined;
|
|
1243
1260
|
response_type?: AuthorizationResponseType | undefined;
|
|
1244
1261
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1245
1262
|
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1246
1263
|
enabled_clients?: string[] | undefined;
|
|
1247
|
-
authorization_endpoint?: string | undefined;
|
|
1248
1264
|
}>;
|
|
1249
1265
|
export type ConnectionInsert = z.infer<typeof connectionInsertSchema>;
|
|
1250
1266
|
declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -1273,6 +1289,8 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1273
1289
|
client_secret: z.ZodOptional<z.ZodString>;
|
|
1274
1290
|
app_secret: z.ZodOptional<z.ZodString>;
|
|
1275
1291
|
scope: z.ZodOptional<z.ZodString>;
|
|
1292
|
+
authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1293
|
+
token_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1276
1294
|
}, "strip", z.ZodTypeAny, {
|
|
1277
1295
|
client_secret?: string | undefined;
|
|
1278
1296
|
client_id?: string | undefined;
|
|
@@ -1281,6 +1299,8 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1281
1299
|
team_id?: string | undefined;
|
|
1282
1300
|
realms?: string | undefined;
|
|
1283
1301
|
app_secret?: string | undefined;
|
|
1302
|
+
authorization_endpoint?: string | undefined;
|
|
1303
|
+
token_endpoint?: string | undefined;
|
|
1284
1304
|
}, {
|
|
1285
1305
|
client_secret?: string | undefined;
|
|
1286
1306
|
client_id?: string | undefined;
|
|
@@ -1289,9 +1309,10 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1289
1309
|
team_id?: string | undefined;
|
|
1290
1310
|
realms?: string | undefined;
|
|
1291
1311
|
app_secret?: string | undefined;
|
|
1312
|
+
authorization_endpoint?: string | undefined;
|
|
1313
|
+
token_endpoint?: string | undefined;
|
|
1292
1314
|
}>>>;
|
|
1293
1315
|
enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
1294
|
-
authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1295
1316
|
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
1296
1317
|
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
1297
1318
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -1306,13 +1327,14 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1306
1327
|
team_id?: string | undefined;
|
|
1307
1328
|
realms?: string | undefined;
|
|
1308
1329
|
app_secret?: string | undefined;
|
|
1330
|
+
authorization_endpoint?: string | undefined;
|
|
1331
|
+
token_endpoint?: string | undefined;
|
|
1309
1332
|
} | undefined;
|
|
1310
1333
|
id?: string | undefined;
|
|
1311
1334
|
response_type?: AuthorizationResponseType | undefined;
|
|
1312
1335
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1313
1336
|
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1314
1337
|
enabled_clients?: string[] | undefined;
|
|
1315
|
-
authorization_endpoint?: string | undefined;
|
|
1316
1338
|
}, {
|
|
1317
1339
|
created_at: string;
|
|
1318
1340
|
updated_at: string;
|
|
@@ -1325,13 +1347,14 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1325
1347
|
team_id?: string | undefined;
|
|
1326
1348
|
realms?: string | undefined;
|
|
1327
1349
|
app_secret?: string | undefined;
|
|
1350
|
+
authorization_endpoint?: string | undefined;
|
|
1351
|
+
token_endpoint?: string | undefined;
|
|
1328
1352
|
} | undefined;
|
|
1329
1353
|
id?: string | undefined;
|
|
1330
1354
|
response_type?: AuthorizationResponseType | undefined;
|
|
1331
1355
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1332
1356
|
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1333
1357
|
enabled_clients?: string[] | undefined;
|
|
1334
|
-
authorization_endpoint?: string | undefined;
|
|
1335
1358
|
}>;
|
|
1336
1359
|
export type Connection = z.infer<typeof connectionSchema>;
|
|
1337
1360
|
declare const domainSchema: z.ZodObject<z.objectUtil.extendShape<{
|