@authhero/kysely-adapter 10.4.0 → 10.6.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 +179 -6
- package/dist/kysely-adapter.mjs +575 -565
- package/package.json +3 -3
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -1432,7 +1432,33 @@ declare const customDomainSchema: z.ZodObject<{
|
|
|
1432
1432
|
"ready"
|
|
1433
1433
|
]>;
|
|
1434
1434
|
origin_domain_name: z.ZodOptional<z.ZodString>;
|
|
1435
|
-
verification: z.ZodOptional<z.ZodObject<{
|
|
1435
|
+
verification: z.ZodOptional<z.ZodObject<{
|
|
1436
|
+
methods: z.ZodArray<z.ZodObject<{
|
|
1437
|
+
name: z.ZodLiteral<"txt">;
|
|
1438
|
+
record: z.ZodString;
|
|
1439
|
+
domain: z.ZodString;
|
|
1440
|
+
}, "strip", z.ZodTypeAny, {
|
|
1441
|
+
name: "txt";
|
|
1442
|
+
domain: string;
|
|
1443
|
+
record: string;
|
|
1444
|
+
}, {
|
|
1445
|
+
name: "txt";
|
|
1446
|
+
domain: string;
|
|
1447
|
+
record: string;
|
|
1448
|
+
}>, "many">;
|
|
1449
|
+
}, "strip", z.ZodTypeAny, {
|
|
1450
|
+
methods: {
|
|
1451
|
+
name: "txt";
|
|
1452
|
+
domain: string;
|
|
1453
|
+
record: string;
|
|
1454
|
+
}[];
|
|
1455
|
+
}, {
|
|
1456
|
+
methods: {
|
|
1457
|
+
name: "txt";
|
|
1458
|
+
domain: string;
|
|
1459
|
+
record: string;
|
|
1460
|
+
}[];
|
|
1461
|
+
}>>;
|
|
1436
1462
|
tls_policy: z.ZodOptional<z.ZodString>;
|
|
1437
1463
|
domain: z.ZodString;
|
|
1438
1464
|
type: z.ZodEnum<[
|
|
@@ -1461,7 +1487,13 @@ declare const customDomainSchema: z.ZodObject<{
|
|
|
1461
1487
|
custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
|
|
1462
1488
|
domain_metadata?: Record<string, string> | undefined;
|
|
1463
1489
|
origin_domain_name?: string | undefined;
|
|
1464
|
-
verification?: {
|
|
1490
|
+
verification?: {
|
|
1491
|
+
methods: {
|
|
1492
|
+
name: "txt";
|
|
1493
|
+
domain: string;
|
|
1494
|
+
record: string;
|
|
1495
|
+
}[];
|
|
1496
|
+
} | undefined;
|
|
1465
1497
|
}, {
|
|
1466
1498
|
type: "auth0_managed_certs" | "self_managed_certs";
|
|
1467
1499
|
status: "disabled" | "pending" | "pending_verification" | "ready";
|
|
@@ -1473,9 +1505,111 @@ declare const customDomainSchema: z.ZodObject<{
|
|
|
1473
1505
|
custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
|
|
1474
1506
|
domain_metadata?: Record<string, string> | undefined;
|
|
1475
1507
|
origin_domain_name?: string | undefined;
|
|
1476
|
-
verification?: {
|
|
1508
|
+
verification?: {
|
|
1509
|
+
methods: {
|
|
1510
|
+
name: "txt";
|
|
1511
|
+
domain: string;
|
|
1512
|
+
record: string;
|
|
1513
|
+
}[];
|
|
1514
|
+
} | undefined;
|
|
1477
1515
|
}>;
|
|
1478
1516
|
export type CustomDomain = z.infer<typeof customDomainSchema>;
|
|
1517
|
+
declare const customDomainWithTenantIdSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1518
|
+
custom_domain_id: z.ZodString;
|
|
1519
|
+
primary: z.ZodBoolean;
|
|
1520
|
+
status: z.ZodEnum<[
|
|
1521
|
+
"disabled",
|
|
1522
|
+
"pending",
|
|
1523
|
+
"pending_verification",
|
|
1524
|
+
"ready"
|
|
1525
|
+
]>;
|
|
1526
|
+
origin_domain_name: z.ZodOptional<z.ZodString>;
|
|
1527
|
+
verification: z.ZodOptional<z.ZodObject<{
|
|
1528
|
+
methods: z.ZodArray<z.ZodObject<{
|
|
1529
|
+
name: z.ZodLiteral<"txt">;
|
|
1530
|
+
record: z.ZodString;
|
|
1531
|
+
domain: z.ZodString;
|
|
1532
|
+
}, "strip", z.ZodTypeAny, {
|
|
1533
|
+
name: "txt";
|
|
1534
|
+
domain: string;
|
|
1535
|
+
record: string;
|
|
1536
|
+
}, {
|
|
1537
|
+
name: "txt";
|
|
1538
|
+
domain: string;
|
|
1539
|
+
record: string;
|
|
1540
|
+
}>, "many">;
|
|
1541
|
+
}, "strip", z.ZodTypeAny, {
|
|
1542
|
+
methods: {
|
|
1543
|
+
name: "txt";
|
|
1544
|
+
domain: string;
|
|
1545
|
+
record: string;
|
|
1546
|
+
}[];
|
|
1547
|
+
}, {
|
|
1548
|
+
methods: {
|
|
1549
|
+
name: "txt";
|
|
1550
|
+
domain: string;
|
|
1551
|
+
record: string;
|
|
1552
|
+
}[];
|
|
1553
|
+
}>>;
|
|
1554
|
+
tls_policy: z.ZodOptional<z.ZodString>;
|
|
1555
|
+
domain: z.ZodString;
|
|
1556
|
+
type: z.ZodEnum<[
|
|
1557
|
+
"auth0_managed_certs",
|
|
1558
|
+
"self_managed_certs"
|
|
1559
|
+
]>;
|
|
1560
|
+
verification_method: z.ZodOptional<z.ZodEnum<[
|
|
1561
|
+
"txt"
|
|
1562
|
+
]>>;
|
|
1563
|
+
custom_client_ip_header: z.ZodOptional<z.ZodEnum<[
|
|
1564
|
+
"true-client-ip",
|
|
1565
|
+
"cf-connecting-ip",
|
|
1566
|
+
"x-forwarded-for",
|
|
1567
|
+
"x-azure-clientip",
|
|
1568
|
+
"null"
|
|
1569
|
+
]>>;
|
|
1570
|
+
domain_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1571
|
+
}, {
|
|
1572
|
+
tenant_id: z.ZodString;
|
|
1573
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1574
|
+
type: "auth0_managed_certs" | "self_managed_certs";
|
|
1575
|
+
status: "disabled" | "pending" | "pending_verification" | "ready";
|
|
1576
|
+
primary: boolean;
|
|
1577
|
+
domain: string;
|
|
1578
|
+
custom_domain_id: string;
|
|
1579
|
+
tenant_id: string;
|
|
1580
|
+
verification_method?: "txt" | undefined;
|
|
1581
|
+
tls_policy?: string | undefined;
|
|
1582
|
+
custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
|
|
1583
|
+
domain_metadata?: Record<string, string> | undefined;
|
|
1584
|
+
origin_domain_name?: string | undefined;
|
|
1585
|
+
verification?: {
|
|
1586
|
+
methods: {
|
|
1587
|
+
name: "txt";
|
|
1588
|
+
domain: string;
|
|
1589
|
+
record: string;
|
|
1590
|
+
}[];
|
|
1591
|
+
} | undefined;
|
|
1592
|
+
}, {
|
|
1593
|
+
type: "auth0_managed_certs" | "self_managed_certs";
|
|
1594
|
+
status: "disabled" | "pending" | "pending_verification" | "ready";
|
|
1595
|
+
primary: boolean;
|
|
1596
|
+
domain: string;
|
|
1597
|
+
custom_domain_id: string;
|
|
1598
|
+
tenant_id: string;
|
|
1599
|
+
verification_method?: "txt" | undefined;
|
|
1600
|
+
tls_policy?: string | undefined;
|
|
1601
|
+
custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
|
|
1602
|
+
domain_metadata?: Record<string, string> | undefined;
|
|
1603
|
+
origin_domain_name?: string | undefined;
|
|
1604
|
+
verification?: {
|
|
1605
|
+
methods: {
|
|
1606
|
+
name: "txt";
|
|
1607
|
+
domain: string;
|
|
1608
|
+
record: string;
|
|
1609
|
+
}[];
|
|
1610
|
+
} | undefined;
|
|
1611
|
+
}>;
|
|
1612
|
+
export type CustomDomainWithTenantId = z.infer<typeof customDomainWithTenantIdSchema>;
|
|
1479
1613
|
declare const hookInsertSchema: z.ZodObject<{
|
|
1480
1614
|
trigger_id: z.ZodEnum<[
|
|
1481
1615
|
"pre-user-signup",
|
|
@@ -3438,6 +3572,7 @@ export interface ConnectionsAdapter {
|
|
|
3438
3572
|
export interface CustomDomainsAdapter {
|
|
3439
3573
|
create: (tenant_id: string, custom_domain: CustomDomainInsert) => Promise<CustomDomain>;
|
|
3440
3574
|
get: (tenant_id: string, id: string) => Promise<CustomDomain | null>;
|
|
3575
|
+
getByDomain: (domain: string) => Promise<CustomDomainWithTenantId | null>;
|
|
3441
3576
|
list: (tenant_id: string) => Promise<CustomDomain[]>;
|
|
3442
3577
|
remove: (tenant_id: string, id: string) => Promise<boolean>;
|
|
3443
3578
|
update: (tenant_id: string, id: string, custom_domain: Partial<CustomDomain>) => Promise<boolean>;
|
|
@@ -3993,7 +4128,33 @@ declare const sqlCustomDomainSchema: z.ZodObject<{
|
|
|
3993
4128
|
"ready"
|
|
3994
4129
|
]>;
|
|
3995
4130
|
origin_domain_name: z.ZodOptional<z.ZodString>;
|
|
3996
|
-
verification: z.ZodOptional<z.ZodObject<{
|
|
4131
|
+
verification: z.ZodOptional<z.ZodObject<{
|
|
4132
|
+
methods: z.ZodArray<z.ZodObject<{
|
|
4133
|
+
name: z.ZodLiteral<"txt">;
|
|
4134
|
+
record: z.ZodString;
|
|
4135
|
+
domain: z.ZodString;
|
|
4136
|
+
}, "strip", z.ZodTypeAny, {
|
|
4137
|
+
name: "txt";
|
|
4138
|
+
domain: string;
|
|
4139
|
+
record: string;
|
|
4140
|
+
}, {
|
|
4141
|
+
name: "txt";
|
|
4142
|
+
domain: string;
|
|
4143
|
+
record: string;
|
|
4144
|
+
}>, "many">;
|
|
4145
|
+
}, "strip", z.ZodTypeAny, {
|
|
4146
|
+
methods: {
|
|
4147
|
+
name: "txt";
|
|
4148
|
+
domain: string;
|
|
4149
|
+
record: string;
|
|
4150
|
+
}[];
|
|
4151
|
+
}, {
|
|
4152
|
+
methods: {
|
|
4153
|
+
name: "txt";
|
|
4154
|
+
domain: string;
|
|
4155
|
+
record: string;
|
|
4156
|
+
}[];
|
|
4157
|
+
}>>;
|
|
3997
4158
|
tls_policy: z.ZodOptional<z.ZodString>;
|
|
3998
4159
|
domain: z.ZodString;
|
|
3999
4160
|
type: z.ZodEnum<[
|
|
@@ -4021,7 +4182,13 @@ declare const sqlCustomDomainSchema: z.ZodObject<{
|
|
|
4021
4182
|
custom_domain_id: string;
|
|
4022
4183
|
domain: string;
|
|
4023
4184
|
origin_domain_name?: string | undefined;
|
|
4024
|
-
verification?: {
|
|
4185
|
+
verification?: {
|
|
4186
|
+
methods: {
|
|
4187
|
+
name: "txt";
|
|
4188
|
+
domain: string;
|
|
4189
|
+
record: string;
|
|
4190
|
+
}[];
|
|
4191
|
+
} | undefined;
|
|
4025
4192
|
tls_policy?: string | undefined;
|
|
4026
4193
|
verification_method?: "txt" | undefined;
|
|
4027
4194
|
custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
|
|
@@ -4036,7 +4203,13 @@ declare const sqlCustomDomainSchema: z.ZodObject<{
|
|
|
4036
4203
|
custom_domain_id: string;
|
|
4037
4204
|
domain: string;
|
|
4038
4205
|
origin_domain_name?: string | undefined;
|
|
4039
|
-
verification?: {
|
|
4206
|
+
verification?: {
|
|
4207
|
+
methods: {
|
|
4208
|
+
name: "txt";
|
|
4209
|
+
domain: string;
|
|
4210
|
+
record: string;
|
|
4211
|
+
}[];
|
|
4212
|
+
} | undefined;
|
|
4040
4213
|
tls_policy?: string | undefined;
|
|
4041
4214
|
verification_method?: "txt" | undefined;
|
|
4042
4215
|
custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
|