@authhero/kysely-adapter 0.9.7 → 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.
@@ -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,20 +792,12 @@ 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
- client_id: z.ZodOptional<z.ZodString>;
797
- client_secret: z.ZodOptional<z.ZodString>;
798
- private_key: z.ZodOptional<z.ZodString>;
799
- kid: z.ZodOptional<z.ZodString>;
800
- team_id: z.ZodOptional<z.ZodString>;
801
- token_endpoint: z.ZodOptional<z.ZodString>;
802
- token_exchange_basic_auth: z.ZodOptional<z.ZodBoolean>;
803
- userinfo_endpoint: z.ZodOptional<z.ZodString>;
804
- scope: z.ZodOptional<z.ZodString>;
805
801
  }>, "strip", z.ZodTypeAny, {
806
802
  created_at: string;
807
803
  updated_at: string;
@@ -814,22 +810,14 @@ declare const ClientSchema: z.ZodObject<{
814
810
  team_id?: string | undefined;
815
811
  realms?: string | undefined;
816
812
  app_secret?: string | undefined;
813
+ authorization_endpoint?: string | undefined;
814
+ token_endpoint?: string | undefined;
817
815
  } | undefined;
818
816
  id?: string | undefined;
819
- client_secret?: string | undefined;
820
- client_id?: string | undefined;
821
817
  response_type?: AuthorizationResponseType | undefined;
822
818
  response_mode?: AuthorizationResponseMode | undefined;
823
- scope?: string | undefined;
824
819
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
825
- kid?: string | undefined;
826
- team_id?: string | undefined;
827
820
  enabled_clients?: string[] | undefined;
828
- authorization_endpoint?: string | undefined;
829
- private_key?: string | undefined;
830
- token_endpoint?: string | undefined;
831
- token_exchange_basic_auth?: boolean | undefined;
832
- userinfo_endpoint?: string | undefined;
833
821
  }, {
834
822
  created_at: string;
835
823
  updated_at: string;
@@ -842,22 +830,14 @@ declare const ClientSchema: z.ZodObject<{
842
830
  team_id?: string | undefined;
843
831
  realms?: string | undefined;
844
832
  app_secret?: string | undefined;
833
+ authorization_endpoint?: string | undefined;
834
+ token_endpoint?: string | undefined;
845
835
  } | undefined;
846
836
  id?: string | undefined;
847
- client_secret?: string | undefined;
848
- client_id?: string | undefined;
849
837
  response_type?: AuthorizationResponseType | undefined;
850
838
  response_mode?: AuthorizationResponseMode | undefined;
851
- scope?: string | undefined;
852
839
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
853
- kid?: string | undefined;
854
- team_id?: string | undefined;
855
840
  enabled_clients?: string[] | undefined;
856
- authorization_endpoint?: string | undefined;
857
- private_key?: string | undefined;
858
- token_endpoint?: string | undefined;
859
- token_exchange_basic_auth?: boolean | undefined;
860
- userinfo_endpoint?: string | undefined;
861
841
  }>, "many">;
862
842
  id: z.ZodString;
863
843
  name: z.ZodString;
@@ -1006,22 +986,14 @@ declare const ClientSchema: z.ZodObject<{
1006
986
  team_id?: string | undefined;
1007
987
  realms?: string | undefined;
1008
988
  app_secret?: string | undefined;
989
+ authorization_endpoint?: string | undefined;
990
+ token_endpoint?: string | undefined;
1009
991
  } | undefined;
1010
992
  id?: string | undefined;
1011
- client_secret?: string | undefined;
1012
- client_id?: string | undefined;
1013
993
  response_type?: AuthorizationResponseType | undefined;
1014
994
  response_mode?: AuthorizationResponseMode | undefined;
1015
- scope?: string | undefined;
1016
995
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1017
- kid?: string | undefined;
1018
- team_id?: string | undefined;
1019
996
  enabled_clients?: string[] | undefined;
1020
- authorization_endpoint?: string | undefined;
1021
- private_key?: string | undefined;
1022
- token_endpoint?: string | undefined;
1023
- token_exchange_basic_auth?: boolean | undefined;
1024
- userinfo_endpoint?: string | undefined;
1025
997
  }[];
1026
998
  callbacks?: string[] | undefined;
1027
999
  allowed_origins?: string[] | undefined;
@@ -1088,22 +1060,14 @@ declare const ClientSchema: z.ZodObject<{
1088
1060
  team_id?: string | undefined;
1089
1061
  realms?: string | undefined;
1090
1062
  app_secret?: string | undefined;
1063
+ authorization_endpoint?: string | undefined;
1064
+ token_endpoint?: string | undefined;
1091
1065
  } | undefined;
1092
1066
  id?: string | undefined;
1093
- client_secret?: string | undefined;
1094
- client_id?: string | undefined;
1095
1067
  response_type?: AuthorizationResponseType | undefined;
1096
1068
  response_mode?: AuthorizationResponseMode | undefined;
1097
- scope?: string | undefined;
1098
1069
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1099
- kid?: string | undefined;
1100
- team_id?: string | undefined;
1101
1070
  enabled_clients?: string[] | undefined;
1102
- authorization_endpoint?: string | undefined;
1103
- private_key?: string | undefined;
1104
- token_endpoint?: string | undefined;
1105
- token_exchange_basic_auth?: boolean | undefined;
1106
- userinfo_endpoint?: string | undefined;
1107
1071
  }[];
1108
1072
  callbacks?: string[] | undefined;
1109
1073
  allowed_origins?: string[] | undefined;
@@ -1235,6 +1199,8 @@ declare const connectionInsertSchema: z.ZodObject<{
1235
1199
  client_secret: z.ZodOptional<z.ZodString>;
1236
1200
  app_secret: z.ZodOptional<z.ZodString>;
1237
1201
  scope: z.ZodOptional<z.ZodString>;
1202
+ authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1203
+ token_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1238
1204
  }, "strip", z.ZodTypeAny, {
1239
1205
  client_secret?: string | undefined;
1240
1206
  client_id?: string | undefined;
@@ -1243,6 +1209,8 @@ declare const connectionInsertSchema: z.ZodObject<{
1243
1209
  team_id?: string | undefined;
1244
1210
  realms?: string | undefined;
1245
1211
  app_secret?: string | undefined;
1212
+ authorization_endpoint?: string | undefined;
1213
+ token_endpoint?: string | undefined;
1246
1214
  }, {
1247
1215
  client_secret?: string | undefined;
1248
1216
  client_id?: string | undefined;
@@ -1251,20 +1219,12 @@ declare const connectionInsertSchema: z.ZodObject<{
1251
1219
  team_id?: string | undefined;
1252
1220
  realms?: string | undefined;
1253
1221
  app_secret?: string | undefined;
1222
+ authorization_endpoint?: string | undefined;
1223
+ token_endpoint?: string | undefined;
1254
1224
  }>>>;
1255
1225
  enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1256
- authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1257
1226
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1258
1227
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1259
- client_id: z.ZodOptional<z.ZodString>;
1260
- client_secret: z.ZodOptional<z.ZodString>;
1261
- private_key: z.ZodOptional<z.ZodString>;
1262
- kid: z.ZodOptional<z.ZodString>;
1263
- team_id: z.ZodOptional<z.ZodString>;
1264
- token_endpoint: z.ZodOptional<z.ZodString>;
1265
- token_exchange_basic_auth: z.ZodOptional<z.ZodBoolean>;
1266
- userinfo_endpoint: z.ZodOptional<z.ZodString>;
1267
- scope: z.ZodOptional<z.ZodString>;
1268
1228
  }, "strip", z.ZodTypeAny, {
1269
1229
  name: string;
1270
1230
  options?: {
@@ -1275,22 +1235,14 @@ declare const connectionInsertSchema: z.ZodObject<{
1275
1235
  team_id?: string | undefined;
1276
1236
  realms?: string | undefined;
1277
1237
  app_secret?: string | undefined;
1238
+ authorization_endpoint?: string | undefined;
1239
+ token_endpoint?: string | undefined;
1278
1240
  } | undefined;
1279
1241
  id?: string | undefined;
1280
- client_secret?: string | undefined;
1281
- client_id?: string | undefined;
1282
1242
  response_type?: AuthorizationResponseType | undefined;
1283
1243
  response_mode?: AuthorizationResponseMode | undefined;
1284
- scope?: string | undefined;
1285
1244
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1286
- kid?: string | undefined;
1287
- team_id?: string | undefined;
1288
1245
  enabled_clients?: string[] | undefined;
1289
- authorization_endpoint?: string | undefined;
1290
- private_key?: string | undefined;
1291
- token_endpoint?: string | undefined;
1292
- token_exchange_basic_auth?: boolean | undefined;
1293
- userinfo_endpoint?: string | undefined;
1294
1246
  }, {
1295
1247
  name: string;
1296
1248
  options?: {
@@ -1301,22 +1253,14 @@ declare const connectionInsertSchema: z.ZodObject<{
1301
1253
  team_id?: string | undefined;
1302
1254
  realms?: string | undefined;
1303
1255
  app_secret?: string | undefined;
1256
+ authorization_endpoint?: string | undefined;
1257
+ token_endpoint?: string | undefined;
1304
1258
  } | undefined;
1305
1259
  id?: string | undefined;
1306
- client_secret?: string | undefined;
1307
- client_id?: string | undefined;
1308
1260
  response_type?: AuthorizationResponseType | undefined;
1309
1261
  response_mode?: AuthorizationResponseMode | undefined;
1310
- scope?: string | undefined;
1311
1262
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1312
- kid?: string | undefined;
1313
- team_id?: string | undefined;
1314
1263
  enabled_clients?: string[] | undefined;
1315
- authorization_endpoint?: string | undefined;
1316
- private_key?: string | undefined;
1317
- token_endpoint?: string | undefined;
1318
- token_exchange_basic_auth?: boolean | undefined;
1319
- userinfo_endpoint?: string | undefined;
1320
1264
  }>;
1321
1265
  export type ConnectionInsert = z.infer<typeof connectionInsertSchema>;
1322
1266
  declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
@@ -1345,6 +1289,8 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1345
1289
  client_secret: z.ZodOptional<z.ZodString>;
1346
1290
  app_secret: z.ZodOptional<z.ZodString>;
1347
1291
  scope: z.ZodOptional<z.ZodString>;
1292
+ authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1293
+ token_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1348
1294
  }, "strip", z.ZodTypeAny, {
1349
1295
  client_secret?: string | undefined;
1350
1296
  client_id?: string | undefined;
@@ -1353,6 +1299,8 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1353
1299
  team_id?: string | undefined;
1354
1300
  realms?: string | undefined;
1355
1301
  app_secret?: string | undefined;
1302
+ authorization_endpoint?: string | undefined;
1303
+ token_endpoint?: string | undefined;
1356
1304
  }, {
1357
1305
  client_secret?: string | undefined;
1358
1306
  client_id?: string | undefined;
@@ -1361,20 +1309,12 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1361
1309
  team_id?: string | undefined;
1362
1310
  realms?: string | undefined;
1363
1311
  app_secret?: string | undefined;
1312
+ authorization_endpoint?: string | undefined;
1313
+ token_endpoint?: string | undefined;
1364
1314
  }>>>;
1365
1315
  enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1366
- authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1367
1316
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1368
1317
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1369
- client_id: z.ZodOptional<z.ZodString>;
1370
- client_secret: z.ZodOptional<z.ZodString>;
1371
- private_key: z.ZodOptional<z.ZodString>;
1372
- kid: z.ZodOptional<z.ZodString>;
1373
- team_id: z.ZodOptional<z.ZodString>;
1374
- token_endpoint: z.ZodOptional<z.ZodString>;
1375
- token_exchange_basic_auth: z.ZodOptional<z.ZodBoolean>;
1376
- userinfo_endpoint: z.ZodOptional<z.ZodString>;
1377
- scope: z.ZodOptional<z.ZodString>;
1378
1318
  }>, "strip", z.ZodTypeAny, {
1379
1319
  created_at: string;
1380
1320
  updated_at: string;
@@ -1387,22 +1327,14 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1387
1327
  team_id?: string | undefined;
1388
1328
  realms?: string | undefined;
1389
1329
  app_secret?: string | undefined;
1330
+ authorization_endpoint?: string | undefined;
1331
+ token_endpoint?: string | undefined;
1390
1332
  } | undefined;
1391
1333
  id?: string | undefined;
1392
- client_secret?: string | undefined;
1393
- client_id?: string | undefined;
1394
1334
  response_type?: AuthorizationResponseType | undefined;
1395
1335
  response_mode?: AuthorizationResponseMode | undefined;
1396
- scope?: string | undefined;
1397
1336
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1398
- kid?: string | undefined;
1399
- team_id?: string | undefined;
1400
1337
  enabled_clients?: string[] | undefined;
1401
- authorization_endpoint?: string | undefined;
1402
- private_key?: string | undefined;
1403
- token_endpoint?: string | undefined;
1404
- token_exchange_basic_auth?: boolean | undefined;
1405
- userinfo_endpoint?: string | undefined;
1406
1338
  }, {
1407
1339
  created_at: string;
1408
1340
  updated_at: string;
@@ -1415,22 +1347,14 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1415
1347
  team_id?: string | undefined;
1416
1348
  realms?: string | undefined;
1417
1349
  app_secret?: string | undefined;
1350
+ authorization_endpoint?: string | undefined;
1351
+ token_endpoint?: string | undefined;
1418
1352
  } | undefined;
1419
1353
  id?: string | undefined;
1420
- client_secret?: string | undefined;
1421
- client_id?: string | undefined;
1422
1354
  response_type?: AuthorizationResponseType | undefined;
1423
1355
  response_mode?: AuthorizationResponseMode | undefined;
1424
- scope?: string | undefined;
1425
1356
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1426
- kid?: string | undefined;
1427
- team_id?: string | undefined;
1428
1357
  enabled_clients?: string[] | undefined;
1429
- authorization_endpoint?: string | undefined;
1430
- private_key?: string | undefined;
1431
- token_endpoint?: string | undefined;
1432
- token_exchange_basic_auth?: boolean | undefined;
1433
- userinfo_endpoint?: string | undefined;
1434
1358
  }>;
1435
1359
  export type Connection = z.infer<typeof connectionSchema>;
1436
1360
  declare const domainSchema: z.ZodObject<z.objectUtil.extendShape<{