@authhero/kysely-adapter 10.5.0 → 10.7.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.
@@ -764,7 +764,9 @@ declare const ClientSchema: z.ZodObject<{
764
764
  jwks_uri: z.ZodOptional<z.ZodDefault<z.ZodString>>;
765
765
  discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
766
766
  issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
767
+ provider: z.ZodOptional<z.ZodString>;
767
768
  }, "strip", z.ZodTypeAny, {
769
+ provider?: string | undefined;
768
770
  issuer?: string | undefined;
769
771
  client_secret?: string | undefined;
770
772
  client_id?: string | undefined;
@@ -779,6 +781,7 @@ declare const ClientSchema: z.ZodObject<{
779
781
  jwks_uri?: string | undefined;
780
782
  discovery_url?: string | undefined;
781
783
  }, {
784
+ provider?: string | undefined;
782
785
  issuer?: string | undefined;
783
786
  client_secret?: string | undefined;
784
787
  client_id?: string | undefined;
@@ -802,6 +805,7 @@ declare const ClientSchema: z.ZodObject<{
802
805
  name: string;
803
806
  strategy: string;
804
807
  options?: {
808
+ provider?: string | undefined;
805
809
  issuer?: string | undefined;
806
810
  client_secret?: string | undefined;
807
811
  client_id?: string | undefined;
@@ -826,6 +830,7 @@ declare const ClientSchema: z.ZodObject<{
826
830
  name: string;
827
831
  strategy: string;
828
832
  options?: {
833
+ provider?: string | undefined;
829
834
  issuer?: string | undefined;
830
835
  client_secret?: string | undefined;
831
836
  client_id?: string | undefined;
@@ -979,6 +984,7 @@ declare const ClientSchema: z.ZodObject<{
979
984
  name: string;
980
985
  strategy: string;
981
986
  options?: {
987
+ provider?: string | undefined;
982
988
  issuer?: string | undefined;
983
989
  client_secret?: string | undefined;
984
990
  client_id?: string | undefined;
@@ -1050,6 +1056,7 @@ declare const ClientSchema: z.ZodObject<{
1050
1056
  name: string;
1051
1057
  strategy: string;
1052
1058
  options?: {
1059
+ provider?: string | undefined;
1053
1060
  issuer?: string | undefined;
1054
1061
  client_secret?: string | undefined;
1055
1062
  client_id?: string | undefined;
@@ -1201,7 +1208,9 @@ declare const connectionInsertSchema: z.ZodObject<{
1201
1208
  jwks_uri: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1202
1209
  discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1203
1210
  issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1211
+ provider: z.ZodOptional<z.ZodString>;
1204
1212
  }, "strip", z.ZodTypeAny, {
1213
+ provider?: string | undefined;
1205
1214
  issuer?: string | undefined;
1206
1215
  client_secret?: string | undefined;
1207
1216
  client_id?: string | undefined;
@@ -1216,6 +1225,7 @@ declare const connectionInsertSchema: z.ZodObject<{
1216
1225
  jwks_uri?: string | undefined;
1217
1226
  discovery_url?: string | undefined;
1218
1227
  }, {
1228
+ provider?: string | undefined;
1219
1229
  issuer?: string | undefined;
1220
1230
  client_secret?: string | undefined;
1221
1231
  client_id?: string | undefined;
@@ -1237,6 +1247,7 @@ declare const connectionInsertSchema: z.ZodObject<{
1237
1247
  name: string;
1238
1248
  strategy: string;
1239
1249
  options?: {
1250
+ provider?: string | undefined;
1240
1251
  issuer?: string | undefined;
1241
1252
  client_secret?: string | undefined;
1242
1253
  client_id?: string | undefined;
@@ -1259,6 +1270,7 @@ declare const connectionInsertSchema: z.ZodObject<{
1259
1270
  name: string;
1260
1271
  strategy: string;
1261
1272
  options?: {
1273
+ provider?: string | undefined;
1262
1274
  issuer?: string | undefined;
1263
1275
  client_secret?: string | undefined;
1264
1276
  client_id?: string | undefined;
@@ -1301,7 +1313,9 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1301
1313
  jwks_uri: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1302
1314
  discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1303
1315
  issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1316
+ provider: z.ZodOptional<z.ZodString>;
1304
1317
  }, "strip", z.ZodTypeAny, {
1318
+ provider?: string | undefined;
1305
1319
  issuer?: string | undefined;
1306
1320
  client_secret?: string | undefined;
1307
1321
  client_id?: string | undefined;
@@ -1316,6 +1330,7 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1316
1330
  jwks_uri?: string | undefined;
1317
1331
  discovery_url?: string | undefined;
1318
1332
  }, {
1333
+ provider?: string | undefined;
1319
1334
  issuer?: string | undefined;
1320
1335
  client_secret?: string | undefined;
1321
1336
  client_id?: string | undefined;
@@ -1339,6 +1354,7 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1339
1354
  name: string;
1340
1355
  strategy: string;
1341
1356
  options?: {
1357
+ provider?: string | undefined;
1342
1358
  issuer?: string | undefined;
1343
1359
  client_secret?: string | undefined;
1344
1360
  client_id?: string | undefined;
@@ -1363,6 +1379,7 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1363
1379
  name: string;
1364
1380
  strategy: string;
1365
1381
  options?: {
1382
+ provider?: string | undefined;
1366
1383
  issuer?: string | undefined;
1367
1384
  client_secret?: string | undefined;
1368
1385
  client_id?: string | undefined;
@@ -1514,6 +1531,102 @@ declare const customDomainSchema: z.ZodObject<{
1514
1531
  } | undefined;
1515
1532
  }>;
1516
1533
  export type CustomDomain = z.infer<typeof customDomainSchema>;
1534
+ declare const customDomainWithTenantIdSchema: z.ZodObject<z.objectUtil.extendShape<{
1535
+ custom_domain_id: z.ZodString;
1536
+ primary: z.ZodBoolean;
1537
+ status: z.ZodEnum<[
1538
+ "disabled",
1539
+ "pending",
1540
+ "pending_verification",
1541
+ "ready"
1542
+ ]>;
1543
+ origin_domain_name: z.ZodOptional<z.ZodString>;
1544
+ verification: z.ZodOptional<z.ZodObject<{
1545
+ methods: z.ZodArray<z.ZodObject<{
1546
+ name: z.ZodLiteral<"txt">;
1547
+ record: z.ZodString;
1548
+ domain: z.ZodString;
1549
+ }, "strip", z.ZodTypeAny, {
1550
+ name: "txt";
1551
+ domain: string;
1552
+ record: string;
1553
+ }, {
1554
+ name: "txt";
1555
+ domain: string;
1556
+ record: string;
1557
+ }>, "many">;
1558
+ }, "strip", z.ZodTypeAny, {
1559
+ methods: {
1560
+ name: "txt";
1561
+ domain: string;
1562
+ record: string;
1563
+ }[];
1564
+ }, {
1565
+ methods: {
1566
+ name: "txt";
1567
+ domain: string;
1568
+ record: string;
1569
+ }[];
1570
+ }>>;
1571
+ tls_policy: z.ZodOptional<z.ZodString>;
1572
+ domain: z.ZodString;
1573
+ type: z.ZodEnum<[
1574
+ "auth0_managed_certs",
1575
+ "self_managed_certs"
1576
+ ]>;
1577
+ verification_method: z.ZodOptional<z.ZodEnum<[
1578
+ "txt"
1579
+ ]>>;
1580
+ custom_client_ip_header: z.ZodOptional<z.ZodEnum<[
1581
+ "true-client-ip",
1582
+ "cf-connecting-ip",
1583
+ "x-forwarded-for",
1584
+ "x-azure-clientip",
1585
+ "null"
1586
+ ]>>;
1587
+ domain_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1588
+ }, {
1589
+ tenant_id: z.ZodString;
1590
+ }>, "strip", z.ZodTypeAny, {
1591
+ type: "auth0_managed_certs" | "self_managed_certs";
1592
+ status: "disabled" | "pending" | "pending_verification" | "ready";
1593
+ primary: boolean;
1594
+ domain: string;
1595
+ custom_domain_id: string;
1596
+ tenant_id: string;
1597
+ verification_method?: "txt" | undefined;
1598
+ tls_policy?: string | undefined;
1599
+ custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
1600
+ domain_metadata?: Record<string, string> | undefined;
1601
+ origin_domain_name?: string | undefined;
1602
+ verification?: {
1603
+ methods: {
1604
+ name: "txt";
1605
+ domain: string;
1606
+ record: string;
1607
+ }[];
1608
+ } | undefined;
1609
+ }, {
1610
+ type: "auth0_managed_certs" | "self_managed_certs";
1611
+ status: "disabled" | "pending" | "pending_verification" | "ready";
1612
+ primary: boolean;
1613
+ domain: string;
1614
+ custom_domain_id: string;
1615
+ tenant_id: string;
1616
+ verification_method?: "txt" | undefined;
1617
+ tls_policy?: string | undefined;
1618
+ custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
1619
+ domain_metadata?: Record<string, string> | undefined;
1620
+ origin_domain_name?: string | undefined;
1621
+ verification?: {
1622
+ methods: {
1623
+ name: "txt";
1624
+ domain: string;
1625
+ record: string;
1626
+ }[];
1627
+ } | undefined;
1628
+ }>;
1629
+ export type CustomDomainWithTenantId = z.infer<typeof customDomainWithTenantIdSchema>;
1517
1630
  declare const hookInsertSchema: z.ZodObject<{
1518
1631
  trigger_id: z.ZodEnum<[
1519
1632
  "pre-user-signup",
@@ -3476,6 +3589,7 @@ export interface ConnectionsAdapter {
3476
3589
  export interface CustomDomainsAdapter {
3477
3590
  create: (tenant_id: string, custom_domain: CustomDomainInsert) => Promise<CustomDomain>;
3478
3591
  get: (tenant_id: string, id: string) => Promise<CustomDomain | null>;
3592
+ getByDomain: (domain: string) => Promise<CustomDomainWithTenantId | null>;
3479
3593
  list: (tenant_id: string) => Promise<CustomDomain[]>;
3480
3594
  remove: (tenant_id: string, id: string) => Promise<boolean>;
3481
3595
  update: (tenant_id: string, id: string, custom_domain: Partial<CustomDomain>) => Promise<boolean>;