@authhero/kysely-adapter 9.9.0 → 10.1.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 +13 -11
- package/dist/kysely-adapter.mjs +702 -668
- package/package.json +3 -3
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -1604,7 +1604,7 @@ declare const loginSessionInsertSchema: z.ZodObject<{
|
|
|
1604
1604
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
1605
1605
|
ip: z.ZodOptional<z.ZodString>;
|
|
1606
1606
|
useragent: z.ZodOptional<z.ZodString>;
|
|
1607
|
-
|
|
1607
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
1608
1608
|
authorization_url: z.ZodOptional<z.ZodString>;
|
|
1609
1609
|
}, "strip", z.ZodTypeAny, {
|
|
1610
1610
|
expires_at: string;
|
|
@@ -1631,7 +1631,7 @@ declare const loginSessionInsertSchema: z.ZodObject<{
|
|
|
1631
1631
|
deleted_at?: string | undefined;
|
|
1632
1632
|
ip?: string | undefined;
|
|
1633
1633
|
useragent?: string | undefined;
|
|
1634
|
-
|
|
1634
|
+
session_id?: string | undefined;
|
|
1635
1635
|
authorization_url?: string | undefined;
|
|
1636
1636
|
}, {
|
|
1637
1637
|
expires_at: string;
|
|
@@ -1658,7 +1658,7 @@ declare const loginSessionInsertSchema: z.ZodObject<{
|
|
|
1658
1658
|
deleted_at?: string | undefined;
|
|
1659
1659
|
ip?: string | undefined;
|
|
1660
1660
|
useragent?: string | undefined;
|
|
1661
|
-
|
|
1661
|
+
session_id?: string | undefined;
|
|
1662
1662
|
authorization_url?: string | undefined;
|
|
1663
1663
|
}>;
|
|
1664
1664
|
export type LoginSessionInsert = z.infer<typeof loginSessionInsertSchema>;
|
|
@@ -1724,7 +1724,7 @@ declare const loginSessionSchema: z.ZodObject<{
|
|
|
1724
1724
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
1725
1725
|
ip: z.ZodOptional<z.ZodString>;
|
|
1726
1726
|
useragent: z.ZodOptional<z.ZodString>;
|
|
1727
|
-
|
|
1727
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
1728
1728
|
authorization_url: z.ZodOptional<z.ZodString>;
|
|
1729
1729
|
}, "strip", z.ZodTypeAny, {
|
|
1730
1730
|
created_at: string;
|
|
@@ -1754,7 +1754,7 @@ declare const loginSessionSchema: z.ZodObject<{
|
|
|
1754
1754
|
deleted_at?: string | undefined;
|
|
1755
1755
|
ip?: string | undefined;
|
|
1756
1756
|
useragent?: string | undefined;
|
|
1757
|
-
|
|
1757
|
+
session_id?: string | undefined;
|
|
1758
1758
|
authorization_url?: string | undefined;
|
|
1759
1759
|
}, {
|
|
1760
1760
|
created_at: string;
|
|
@@ -1784,7 +1784,7 @@ declare const loginSessionSchema: z.ZodObject<{
|
|
|
1784
1784
|
deleted_at?: string | undefined;
|
|
1785
1785
|
ip?: string | undefined;
|
|
1786
1786
|
useragent?: string | undefined;
|
|
1787
|
-
|
|
1787
|
+
session_id?: string | undefined;
|
|
1788
1788
|
authorization_url?: string | undefined;
|
|
1789
1789
|
}>;
|
|
1790
1790
|
export type LoginSession = z.infer<typeof loginSessionSchema>;
|
|
@@ -3223,6 +3223,7 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
|
|
|
3223
3223
|
user_id: string;
|
|
3224
3224
|
id: string;
|
|
3225
3225
|
client_id: string;
|
|
3226
|
+
session_id: string;
|
|
3226
3227
|
device: {
|
|
3227
3228
|
last_ip: string;
|
|
3228
3229
|
initial_user_agent: string;
|
|
@@ -3231,7 +3232,6 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
|
|
|
3231
3232
|
last_user_agent: string;
|
|
3232
3233
|
last_asn: string;
|
|
3233
3234
|
};
|
|
3234
|
-
session_id: string;
|
|
3235
3235
|
resource_servers: {
|
|
3236
3236
|
audience: string;
|
|
3237
3237
|
scopes: string;
|
|
@@ -3244,6 +3244,7 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
|
|
|
3244
3244
|
user_id: string;
|
|
3245
3245
|
id: string;
|
|
3246
3246
|
client_id: string;
|
|
3247
|
+
session_id: string;
|
|
3247
3248
|
device: {
|
|
3248
3249
|
last_ip: string;
|
|
3249
3250
|
initial_user_agent: string;
|
|
@@ -3252,7 +3253,6 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
|
|
|
3252
3253
|
last_user_agent: string;
|
|
3253
3254
|
last_asn: string;
|
|
3254
3255
|
};
|
|
3255
|
-
session_id: string;
|
|
3256
3256
|
resource_servers: {
|
|
3257
3257
|
audience: string;
|
|
3258
3258
|
scopes: string;
|
|
@@ -3310,6 +3310,7 @@ declare const refreshTokenSchema: z.ZodObject<{
|
|
|
3310
3310
|
user_id: string;
|
|
3311
3311
|
id: string;
|
|
3312
3312
|
client_id: string;
|
|
3313
|
+
session_id: string;
|
|
3313
3314
|
device: {
|
|
3314
3315
|
last_ip: string;
|
|
3315
3316
|
initial_user_agent: string;
|
|
@@ -3318,7 +3319,6 @@ declare const refreshTokenSchema: z.ZodObject<{
|
|
|
3318
3319
|
last_user_agent: string;
|
|
3319
3320
|
last_asn: string;
|
|
3320
3321
|
};
|
|
3321
|
-
session_id: string;
|
|
3322
3322
|
resource_servers: {
|
|
3323
3323
|
audience: string;
|
|
3324
3324
|
scopes: string;
|
|
@@ -3332,6 +3332,7 @@ declare const refreshTokenSchema: z.ZodObject<{
|
|
|
3332
3332
|
user_id: string;
|
|
3333
3333
|
id: string;
|
|
3334
3334
|
client_id: string;
|
|
3335
|
+
session_id: string;
|
|
3335
3336
|
device: {
|
|
3336
3337
|
last_ip: string;
|
|
3337
3338
|
initial_user_agent: string;
|
|
@@ -3340,7 +3341,6 @@ declare const refreshTokenSchema: z.ZodObject<{
|
|
|
3340
3341
|
last_user_agent: string;
|
|
3341
3342
|
last_asn: string;
|
|
3342
3343
|
};
|
|
3343
|
-
session_id: string;
|
|
3344
3344
|
resource_servers: {
|
|
3345
3345
|
audience: string;
|
|
3346
3346
|
scopes: string;
|
|
@@ -4066,7 +4066,9 @@ export interface Database {
|
|
|
4066
4066
|
}
|
|
4067
4067
|
export declare function migrateToLatest(db: Kysely<Database>, debug?: boolean): Promise<void>;
|
|
4068
4068
|
export declare function migrateDown(db: Kysely<Database>): Promise<void>;
|
|
4069
|
-
declare function createAdapters(db: Kysely<Database>): DataAdapters
|
|
4069
|
+
declare function createAdapters(db: Kysely<Database>): DataAdapters & {
|
|
4070
|
+
cleanup: () => Promise<void>;
|
|
4071
|
+
};
|
|
4070
4072
|
|
|
4071
4073
|
export {
|
|
4072
4074
|
createAdapters as default,
|