@authhero/kysely-adapter 0.20.0 → 0.20.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.
@@ -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.ZodOptional<z.ZodEnum<[
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;
@@ -1171,18 +1173,20 @@ export type Code = z.infer<typeof codeSchema>;
1171
1173
  declare const connectionInsertSchema: z.ZodObject<{
1172
1174
  id: z.ZodOptional<z.ZodString>;
1173
1175
  name: z.ZodString;
1174
- strategy: z.ZodOptional<z.ZodEnum<[
1176
+ strategy: z.ZodEnum<[
1175
1177
  "google-oauth2",
1176
1178
  "facebook",
1177
1179
  "vipps",
1178
1180
  "freja",
1179
1181
  "apple",
1180
1182
  "email",
1183
+ "auth0",
1184
+ "authhero",
1181
1185
  "Username-Password-Authentication",
1182
1186
  "oidc",
1183
1187
  "oauth2",
1184
1188
  "custom"
1185
- ]>>;
1189
+ ]>;
1186
1190
  options: z.ZodOptional<z.ZodDefault<z.ZodObject<{
1187
1191
  kid: z.ZodOptional<z.ZodString>;
1188
1192
  team_id: z.ZodOptional<z.ZodString>;
@@ -1231,6 +1235,7 @@ declare const connectionInsertSchema: z.ZodObject<{
1231
1235
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1232
1236
  }, "strip", z.ZodTypeAny, {
1233
1237
  name: string;
1238
+ strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
1234
1239
  options?: {
1235
1240
  issuer?: string | undefined;
1236
1241
  client_secret?: string | undefined;
@@ -1249,10 +1254,10 @@ declare const connectionInsertSchema: z.ZodObject<{
1249
1254
  id?: string | undefined;
1250
1255
  response_type?: AuthorizationResponseType | undefined;
1251
1256
  response_mode?: AuthorizationResponseMode | undefined;
1252
- strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1253
1257
  enabled_clients?: string[] | undefined;
1254
1258
  }, {
1255
1259
  name: string;
1260
+ strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
1256
1261
  options?: {
1257
1262
  issuer?: string | undefined;
1258
1263
  client_secret?: string | undefined;
@@ -1271,7 +1276,6 @@ declare const connectionInsertSchema: z.ZodObject<{
1271
1276
  id?: string | undefined;
1272
1277
  response_type?: AuthorizationResponseType | undefined;
1273
1278
  response_mode?: AuthorizationResponseMode | undefined;
1274
- strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1275
1279
  enabled_clients?: string[] | undefined;
1276
1280
  }>;
1277
1281
  export type ConnectionInsert = z.infer<typeof connectionInsertSchema>;
@@ -1282,18 +1286,20 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1282
1286
  }, {
1283
1287
  id: z.ZodOptional<z.ZodString>;
1284
1288
  name: z.ZodString;
1285
- strategy: z.ZodOptional<z.ZodEnum<[
1289
+ strategy: z.ZodEnum<[
1286
1290
  "google-oauth2",
1287
1291
  "facebook",
1288
1292
  "vipps",
1289
1293
  "freja",
1290
1294
  "apple",
1291
1295
  "email",
1296
+ "auth0",
1297
+ "authhero",
1292
1298
  "Username-Password-Authentication",
1293
1299
  "oidc",
1294
1300
  "oauth2",
1295
1301
  "custom"
1296
- ]>>;
1302
+ ]>;
1297
1303
  options: z.ZodOptional<z.ZodDefault<z.ZodObject<{
1298
1304
  kid: z.ZodOptional<z.ZodString>;
1299
1305
  team_id: z.ZodOptional<z.ZodString>;
@@ -1344,6 +1350,7 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1344
1350
  created_at: string;
1345
1351
  updated_at: string;
1346
1352
  name: string;
1353
+ strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
1347
1354
  options?: {
1348
1355
  issuer?: string | undefined;
1349
1356
  client_secret?: string | undefined;
@@ -1362,12 +1369,12 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1362
1369
  id?: string | undefined;
1363
1370
  response_type?: AuthorizationResponseType | undefined;
1364
1371
  response_mode?: AuthorizationResponseMode | undefined;
1365
- strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1366
1372
  enabled_clients?: string[] | undefined;
1367
1373
  }, {
1368
1374
  created_at: string;
1369
1375
  updated_at: string;
1370
1376
  name: string;
1377
+ strategy: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "auth0" | "authhero" | "Username-Password-Authentication" | "oidc" | "oauth2";
1371
1378
  options?: {
1372
1379
  issuer?: string | undefined;
1373
1380
  client_secret?: string | undefined;
@@ -1386,7 +1393,6 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1386
1393
  id?: string | undefined;
1387
1394
  response_type?: AuthorizationResponseType | undefined;
1388
1395
  response_mode?: AuthorizationResponseMode | undefined;
1389
- strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1390
1396
  enabled_clients?: string[] | undefined;
1391
1397
  }>;
1392
1398
  export type Connection = z.infer<typeof connectionSchema>;
@@ -3152,11 +3152,14 @@ const ps = i.object({
3152
3152
  "freja",
3153
3153
  "apple",
3154
3154
  "email",
3155
+ "auth0",
3156
+ "authhero",
3157
+ // This is incorrect as strategy. Remove once data is migrated
3155
3158
  "Username-Password-Authentication",
3156
3159
  "oidc",
3157
3160
  "oauth2",
3158
3161
  "custom"
3159
- ]).optional(),
3162
+ ]),
3160
3163
  options: i.object({
3161
3164
  kid: i.string().optional(),
3162
3165
  team_id: i.string().optional(),
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "0.20.0",
14
+ "version": "0.20.1",
15
15
  "files": [
16
16
  "dist"
17
17
  ],
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "kysely": "^0.27.4",
43
43
  "nanoid": "^5.0.8",
44
- "@authhero/adapter-interfaces": "^0.22.1"
44
+ "@authhero/adapter-interfaces": "^0.23.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@hono/zod-openapi": "^0.16.4",