@authhero/kysely-adapter 0.10.0 → 0.11.1

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,7 +772,14 @@ 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>>;
777
+ userinfo_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
778
+ jwks_uri: z.ZodOptional<z.ZodDefault<z.ZodString>>;
779
+ discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
780
+ issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
775
781
  }, "strip", z.ZodTypeAny, {
782
+ issuer?: string | undefined;
776
783
  client_secret?: string | undefined;
777
784
  client_id?: string | undefined;
778
785
  scope?: string | undefined;
@@ -780,7 +787,13 @@ declare const ClientSchema: z.ZodObject<{
780
787
  team_id?: string | undefined;
781
788
  realms?: string | undefined;
782
789
  app_secret?: string | undefined;
790
+ authorization_endpoint?: string | undefined;
791
+ token_endpoint?: string | undefined;
792
+ userinfo_endpoint?: string | undefined;
793
+ jwks_uri?: string | undefined;
794
+ discovery_url?: string | undefined;
783
795
  }, {
796
+ issuer?: string | undefined;
784
797
  client_secret?: string | undefined;
785
798
  client_id?: string | undefined;
786
799
  scope?: string | undefined;
@@ -788,9 +801,13 @@ declare const ClientSchema: z.ZodObject<{
788
801
  team_id?: string | undefined;
789
802
  realms?: string | undefined;
790
803
  app_secret?: string | undefined;
804
+ authorization_endpoint?: string | undefined;
805
+ token_endpoint?: string | undefined;
806
+ userinfo_endpoint?: string | undefined;
807
+ jwks_uri?: string | undefined;
808
+ discovery_url?: string | undefined;
791
809
  }>>>;
792
810
  enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
793
- authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
794
811
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
795
812
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
796
813
  }>, "strip", z.ZodTypeAny, {
@@ -798,6 +815,7 @@ declare const ClientSchema: z.ZodObject<{
798
815
  updated_at: string;
799
816
  name: string;
800
817
  options?: {
818
+ issuer?: string | undefined;
801
819
  client_secret?: string | undefined;
802
820
  client_id?: string | undefined;
803
821
  scope?: string | undefined;
@@ -805,18 +823,23 @@ declare const ClientSchema: z.ZodObject<{
805
823
  team_id?: string | undefined;
806
824
  realms?: string | undefined;
807
825
  app_secret?: string | undefined;
826
+ authorization_endpoint?: string | undefined;
827
+ token_endpoint?: string | undefined;
828
+ userinfo_endpoint?: string | undefined;
829
+ jwks_uri?: string | undefined;
830
+ discovery_url?: string | undefined;
808
831
  } | undefined;
809
832
  id?: string | undefined;
810
833
  response_type?: AuthorizationResponseType | undefined;
811
834
  response_mode?: AuthorizationResponseMode | undefined;
812
835
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
813
836
  enabled_clients?: string[] | undefined;
814
- authorization_endpoint?: string | undefined;
815
837
  }, {
816
838
  created_at: string;
817
839
  updated_at: string;
818
840
  name: string;
819
841
  options?: {
842
+ issuer?: string | undefined;
820
843
  client_secret?: string | undefined;
821
844
  client_id?: string | undefined;
822
845
  scope?: string | undefined;
@@ -824,13 +847,17 @@ declare const ClientSchema: z.ZodObject<{
824
847
  team_id?: string | undefined;
825
848
  realms?: string | undefined;
826
849
  app_secret?: string | undefined;
850
+ authorization_endpoint?: string | undefined;
851
+ token_endpoint?: string | undefined;
852
+ userinfo_endpoint?: string | undefined;
853
+ jwks_uri?: string | undefined;
854
+ discovery_url?: string | undefined;
827
855
  } | undefined;
828
856
  id?: string | undefined;
829
857
  response_type?: AuthorizationResponseType | undefined;
830
858
  response_mode?: AuthorizationResponseMode | undefined;
831
859
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
832
860
  enabled_clients?: string[] | undefined;
833
- authorization_endpoint?: string | undefined;
834
861
  }>, "many">;
835
862
  id: z.ZodString;
836
863
  name: z.ZodString;
@@ -972,6 +999,7 @@ declare const ClientSchema: z.ZodObject<{
972
999
  updated_at: string;
973
1000
  name: string;
974
1001
  options?: {
1002
+ issuer?: string | undefined;
975
1003
  client_secret?: string | undefined;
976
1004
  client_id?: string | undefined;
977
1005
  scope?: string | undefined;
@@ -979,13 +1007,17 @@ declare const ClientSchema: z.ZodObject<{
979
1007
  team_id?: string | undefined;
980
1008
  realms?: string | undefined;
981
1009
  app_secret?: string | undefined;
1010
+ authorization_endpoint?: string | undefined;
1011
+ token_endpoint?: string | undefined;
1012
+ userinfo_endpoint?: string | undefined;
1013
+ jwks_uri?: string | undefined;
1014
+ discovery_url?: string | undefined;
982
1015
  } | undefined;
983
1016
  id?: string | undefined;
984
1017
  response_type?: AuthorizationResponseType | undefined;
985
1018
  response_mode?: AuthorizationResponseMode | undefined;
986
1019
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
987
1020
  enabled_clients?: string[] | undefined;
988
- authorization_endpoint?: string | undefined;
989
1021
  }[];
990
1022
  callbacks?: string[] | undefined;
991
1023
  allowed_origins?: string[] | undefined;
@@ -1045,6 +1077,7 @@ declare const ClientSchema: z.ZodObject<{
1045
1077
  updated_at: string;
1046
1078
  name: string;
1047
1079
  options?: {
1080
+ issuer?: string | undefined;
1048
1081
  client_secret?: string | undefined;
1049
1082
  client_id?: string | undefined;
1050
1083
  scope?: string | undefined;
@@ -1052,13 +1085,17 @@ declare const ClientSchema: z.ZodObject<{
1052
1085
  team_id?: string | undefined;
1053
1086
  realms?: string | undefined;
1054
1087
  app_secret?: string | undefined;
1088
+ authorization_endpoint?: string | undefined;
1089
+ token_endpoint?: string | undefined;
1090
+ userinfo_endpoint?: string | undefined;
1091
+ jwks_uri?: string | undefined;
1092
+ discovery_url?: string | undefined;
1055
1093
  } | undefined;
1056
1094
  id?: string | undefined;
1057
1095
  response_type?: AuthorizationResponseType | undefined;
1058
1096
  response_mode?: AuthorizationResponseMode | undefined;
1059
1097
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1060
1098
  enabled_clients?: string[] | undefined;
1061
- authorization_endpoint?: string | undefined;
1062
1099
  }[];
1063
1100
  callbacks?: string[] | undefined;
1064
1101
  allowed_origins?: string[] | undefined;
@@ -1190,7 +1227,14 @@ declare const connectionInsertSchema: z.ZodObject<{
1190
1227
  client_secret: z.ZodOptional<z.ZodString>;
1191
1228
  app_secret: z.ZodOptional<z.ZodString>;
1192
1229
  scope: z.ZodOptional<z.ZodString>;
1230
+ authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1231
+ token_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1232
+ userinfo_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1233
+ jwks_uri: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1234
+ discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1235
+ issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1193
1236
  }, "strip", z.ZodTypeAny, {
1237
+ issuer?: string | undefined;
1194
1238
  client_secret?: string | undefined;
1195
1239
  client_id?: string | undefined;
1196
1240
  scope?: string | undefined;
@@ -1198,7 +1242,13 @@ declare const connectionInsertSchema: z.ZodObject<{
1198
1242
  team_id?: string | undefined;
1199
1243
  realms?: string | undefined;
1200
1244
  app_secret?: string | undefined;
1245
+ authorization_endpoint?: string | undefined;
1246
+ token_endpoint?: string | undefined;
1247
+ userinfo_endpoint?: string | undefined;
1248
+ jwks_uri?: string | undefined;
1249
+ discovery_url?: string | undefined;
1201
1250
  }, {
1251
+ issuer?: string | undefined;
1202
1252
  client_secret?: string | undefined;
1203
1253
  client_id?: string | undefined;
1204
1254
  scope?: string | undefined;
@@ -1206,14 +1256,19 @@ declare const connectionInsertSchema: z.ZodObject<{
1206
1256
  team_id?: string | undefined;
1207
1257
  realms?: string | undefined;
1208
1258
  app_secret?: string | undefined;
1259
+ authorization_endpoint?: string | undefined;
1260
+ token_endpoint?: string | undefined;
1261
+ userinfo_endpoint?: string | undefined;
1262
+ jwks_uri?: string | undefined;
1263
+ discovery_url?: string | undefined;
1209
1264
  }>>>;
1210
1265
  enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1211
- authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1212
1266
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1213
1267
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1214
1268
  }, "strip", z.ZodTypeAny, {
1215
1269
  name: string;
1216
1270
  options?: {
1271
+ issuer?: string | undefined;
1217
1272
  client_secret?: string | undefined;
1218
1273
  client_id?: string | undefined;
1219
1274
  scope?: string | undefined;
@@ -1221,16 +1276,21 @@ declare const connectionInsertSchema: z.ZodObject<{
1221
1276
  team_id?: string | undefined;
1222
1277
  realms?: string | undefined;
1223
1278
  app_secret?: string | undefined;
1279
+ authorization_endpoint?: string | undefined;
1280
+ token_endpoint?: string | undefined;
1281
+ userinfo_endpoint?: string | undefined;
1282
+ jwks_uri?: string | undefined;
1283
+ discovery_url?: string | undefined;
1224
1284
  } | undefined;
1225
1285
  id?: string | undefined;
1226
1286
  response_type?: AuthorizationResponseType | undefined;
1227
1287
  response_mode?: AuthorizationResponseMode | undefined;
1228
1288
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1229
1289
  enabled_clients?: string[] | undefined;
1230
- authorization_endpoint?: string | undefined;
1231
1290
  }, {
1232
1291
  name: string;
1233
1292
  options?: {
1293
+ issuer?: string | undefined;
1234
1294
  client_secret?: string | undefined;
1235
1295
  client_id?: string | undefined;
1236
1296
  scope?: string | undefined;
@@ -1238,13 +1298,17 @@ declare const connectionInsertSchema: z.ZodObject<{
1238
1298
  team_id?: string | undefined;
1239
1299
  realms?: string | undefined;
1240
1300
  app_secret?: string | undefined;
1301
+ authorization_endpoint?: string | undefined;
1302
+ token_endpoint?: string | undefined;
1303
+ userinfo_endpoint?: string | undefined;
1304
+ jwks_uri?: string | undefined;
1305
+ discovery_url?: string | undefined;
1241
1306
  } | undefined;
1242
1307
  id?: string | undefined;
1243
1308
  response_type?: AuthorizationResponseType | undefined;
1244
1309
  response_mode?: AuthorizationResponseMode | undefined;
1245
1310
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1246
1311
  enabled_clients?: string[] | undefined;
1247
- authorization_endpoint?: string | undefined;
1248
1312
  }>;
1249
1313
  export type ConnectionInsert = z.infer<typeof connectionInsertSchema>;
1250
1314
  declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
@@ -1273,7 +1337,14 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1273
1337
  client_secret: z.ZodOptional<z.ZodString>;
1274
1338
  app_secret: z.ZodOptional<z.ZodString>;
1275
1339
  scope: z.ZodOptional<z.ZodString>;
1340
+ authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1341
+ token_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1342
+ userinfo_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1343
+ jwks_uri: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1344
+ discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1345
+ issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1276
1346
  }, "strip", z.ZodTypeAny, {
1347
+ issuer?: string | undefined;
1277
1348
  client_secret?: string | undefined;
1278
1349
  client_id?: string | undefined;
1279
1350
  scope?: string | undefined;
@@ -1281,7 +1352,13 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1281
1352
  team_id?: string | undefined;
1282
1353
  realms?: string | undefined;
1283
1354
  app_secret?: string | undefined;
1355
+ authorization_endpoint?: string | undefined;
1356
+ token_endpoint?: string | undefined;
1357
+ userinfo_endpoint?: string | undefined;
1358
+ jwks_uri?: string | undefined;
1359
+ discovery_url?: string | undefined;
1284
1360
  }, {
1361
+ issuer?: string | undefined;
1285
1362
  client_secret?: string | undefined;
1286
1363
  client_id?: string | undefined;
1287
1364
  scope?: string | undefined;
@@ -1289,9 +1366,13 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1289
1366
  team_id?: string | undefined;
1290
1367
  realms?: string | undefined;
1291
1368
  app_secret?: string | undefined;
1369
+ authorization_endpoint?: string | undefined;
1370
+ token_endpoint?: string | undefined;
1371
+ userinfo_endpoint?: string | undefined;
1372
+ jwks_uri?: string | undefined;
1373
+ discovery_url?: string | undefined;
1292
1374
  }>>>;
1293
1375
  enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1294
- authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1295
1376
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1296
1377
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1297
1378
  }>, "strip", z.ZodTypeAny, {
@@ -1299,6 +1380,7 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1299
1380
  updated_at: string;
1300
1381
  name: string;
1301
1382
  options?: {
1383
+ issuer?: string | undefined;
1302
1384
  client_secret?: string | undefined;
1303
1385
  client_id?: string | undefined;
1304
1386
  scope?: string | undefined;
@@ -1306,18 +1388,23 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1306
1388
  team_id?: string | undefined;
1307
1389
  realms?: string | undefined;
1308
1390
  app_secret?: string | undefined;
1391
+ authorization_endpoint?: string | undefined;
1392
+ token_endpoint?: string | undefined;
1393
+ userinfo_endpoint?: string | undefined;
1394
+ jwks_uri?: string | undefined;
1395
+ discovery_url?: string | undefined;
1309
1396
  } | undefined;
1310
1397
  id?: string | undefined;
1311
1398
  response_type?: AuthorizationResponseType | undefined;
1312
1399
  response_mode?: AuthorizationResponseMode | undefined;
1313
1400
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1314
1401
  enabled_clients?: string[] | undefined;
1315
- authorization_endpoint?: string | undefined;
1316
1402
  }, {
1317
1403
  created_at: string;
1318
1404
  updated_at: string;
1319
1405
  name: string;
1320
1406
  options?: {
1407
+ issuer?: string | undefined;
1321
1408
  client_secret?: string | undefined;
1322
1409
  client_id?: string | undefined;
1323
1410
  scope?: string | undefined;
@@ -1325,13 +1412,17 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1325
1412
  team_id?: string | undefined;
1326
1413
  realms?: string | undefined;
1327
1414
  app_secret?: string | undefined;
1415
+ authorization_endpoint?: string | undefined;
1416
+ token_endpoint?: string | undefined;
1417
+ userinfo_endpoint?: string | undefined;
1418
+ jwks_uri?: string | undefined;
1419
+ discovery_url?: string | undefined;
1328
1420
  } | undefined;
1329
1421
  id?: string | undefined;
1330
1422
  response_type?: AuthorizationResponseType | undefined;
1331
1423
  response_mode?: AuthorizationResponseMode | undefined;
1332
1424
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1333
1425
  enabled_clients?: string[] | undefined;
1334
- authorization_endpoint?: string | undefined;
1335
1426
  }>;
1336
1427
  export type Connection = z.infer<typeof connectionSchema>;
1337
1428
  declare const domainSchema: z.ZodObject<z.objectUtil.extendShape<{