@authhero/kysely-adapter 10.77.0 → 10.78.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 +6 -2
- package/dist/kysely-adapter.d.ts +66 -21
- package/dist/kysely-adapter.mjs +1326 -1302
- package/package.json +2 -2
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -11247,6 +11247,24 @@ export interface ListParams {
|
|
|
11247
11247
|
from?: string;
|
|
11248
11248
|
take?: number;
|
|
11249
11249
|
}
|
|
11250
|
+
declare enum LoginSessionState {
|
|
11251
|
+
/** Initial state - awaiting user authentication */
|
|
11252
|
+
PENDING = "pending",
|
|
11253
|
+
/** User credentials validated, but may need additional steps */
|
|
11254
|
+
AUTHENTICATED = "authenticated",
|
|
11255
|
+
/** Waiting for email verification */
|
|
11256
|
+
AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification",
|
|
11257
|
+
/** Waiting for hook/flow completion (form, page redirect) */
|
|
11258
|
+
AWAITING_HOOK = "awaiting_hook",
|
|
11259
|
+
/** Waiting for user to complete action on continuation page (change-email, account, etc.) */
|
|
11260
|
+
AWAITING_CONTINUATION = "awaiting_continuation",
|
|
11261
|
+
/** Tokens issued successfully */
|
|
11262
|
+
COMPLETED = "completed",
|
|
11263
|
+
/** Authentication failed (wrong password, blocked, etc.) */
|
|
11264
|
+
FAILED = "failed",
|
|
11265
|
+
/** Session timed out */
|
|
11266
|
+
EXPIRED = "expired"
|
|
11267
|
+
}
|
|
11250
11268
|
declare const loginSessionInsertSchema: z.ZodObject<{
|
|
11251
11269
|
csrf_token: z.ZodString;
|
|
11252
11270
|
auth0Client: z.ZodOptional<z.ZodString>;
|
|
@@ -11308,8 +11326,12 @@ declare const loginSessionInsertSchema: z.ZodObject<{
|
|
|
11308
11326
|
useragent: z.ZodOptional<z.ZodString>;
|
|
11309
11327
|
session_id: z.ZodOptional<z.ZodString>;
|
|
11310
11328
|
authorization_url: z.ZodOptional<z.ZodString>;
|
|
11311
|
-
|
|
11329
|
+
state: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoginSessionState>>>;
|
|
11330
|
+
state_data: z.ZodOptional<z.ZodString>;
|
|
11331
|
+
failure_reason: z.ZodOptional<z.ZodString>;
|
|
11332
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
11312
11333
|
}, "strip", z.ZodTypeAny, {
|
|
11334
|
+
state: LoginSessionState;
|
|
11313
11335
|
expires_at: string;
|
|
11314
11336
|
csrf_token: string;
|
|
11315
11337
|
authParams: {
|
|
@@ -11330,13 +11352,15 @@ declare const loginSessionInsertSchema: z.ZodObject<{
|
|
|
11330
11352
|
ui_locales?: string | undefined;
|
|
11331
11353
|
vendor_id?: string | undefined;
|
|
11332
11354
|
};
|
|
11333
|
-
|
|
11355
|
+
user_id?: string | undefined;
|
|
11334
11356
|
auth0Client?: string | undefined;
|
|
11335
11357
|
deleted_at?: string | undefined;
|
|
11336
11358
|
ip?: string | undefined;
|
|
11337
11359
|
useragent?: string | undefined;
|
|
11338
11360
|
session_id?: string | undefined;
|
|
11339
11361
|
authorization_url?: string | undefined;
|
|
11362
|
+
state_data?: string | undefined;
|
|
11363
|
+
failure_reason?: string | undefined;
|
|
11340
11364
|
}, {
|
|
11341
11365
|
expires_at: string;
|
|
11342
11366
|
csrf_token: string;
|
|
@@ -11358,13 +11382,16 @@ declare const loginSessionInsertSchema: z.ZodObject<{
|
|
|
11358
11382
|
ui_locales?: string | undefined;
|
|
11359
11383
|
vendor_id?: string | undefined;
|
|
11360
11384
|
};
|
|
11385
|
+
user_id?: string | undefined;
|
|
11386
|
+
state?: LoginSessionState | undefined;
|
|
11361
11387
|
auth0Client?: string | undefined;
|
|
11362
11388
|
deleted_at?: string | undefined;
|
|
11363
11389
|
ip?: string | undefined;
|
|
11364
11390
|
useragent?: string | undefined;
|
|
11365
11391
|
session_id?: string | undefined;
|
|
11366
11392
|
authorization_url?: string | undefined;
|
|
11367
|
-
|
|
11393
|
+
state_data?: string | undefined;
|
|
11394
|
+
failure_reason?: string | undefined;
|
|
11368
11395
|
}>;
|
|
11369
11396
|
export type LoginSessionInsert = z.input<typeof loginSessionInsertSchema>;
|
|
11370
11397
|
declare const loginSessionSchema: z.ZodObject<{
|
|
@@ -11431,11 +11458,15 @@ declare const loginSessionSchema: z.ZodObject<{
|
|
|
11431
11458
|
useragent: z.ZodOptional<z.ZodString>;
|
|
11432
11459
|
session_id: z.ZodOptional<z.ZodString>;
|
|
11433
11460
|
authorization_url: z.ZodOptional<z.ZodString>;
|
|
11434
|
-
|
|
11461
|
+
state: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoginSessionState>>>;
|
|
11462
|
+
state_data: z.ZodOptional<z.ZodString>;
|
|
11463
|
+
failure_reason: z.ZodOptional<z.ZodString>;
|
|
11464
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
11435
11465
|
}, "strip", z.ZodTypeAny, {
|
|
11436
11466
|
created_at: string;
|
|
11437
11467
|
updated_at: string;
|
|
11438
11468
|
id: string;
|
|
11469
|
+
state: LoginSessionState;
|
|
11439
11470
|
expires_at: string;
|
|
11440
11471
|
csrf_token: string;
|
|
11441
11472
|
authParams: {
|
|
@@ -11456,13 +11487,15 @@ declare const loginSessionSchema: z.ZodObject<{
|
|
|
11456
11487
|
ui_locales?: string | undefined;
|
|
11457
11488
|
vendor_id?: string | undefined;
|
|
11458
11489
|
};
|
|
11459
|
-
|
|
11490
|
+
user_id?: string | undefined;
|
|
11460
11491
|
auth0Client?: string | undefined;
|
|
11461
11492
|
deleted_at?: string | undefined;
|
|
11462
11493
|
ip?: string | undefined;
|
|
11463
11494
|
useragent?: string | undefined;
|
|
11464
11495
|
session_id?: string | undefined;
|
|
11465
11496
|
authorization_url?: string | undefined;
|
|
11497
|
+
state_data?: string | undefined;
|
|
11498
|
+
failure_reason?: string | undefined;
|
|
11466
11499
|
}, {
|
|
11467
11500
|
created_at: string;
|
|
11468
11501
|
updated_at: string;
|
|
@@ -11487,13 +11520,16 @@ declare const loginSessionSchema: z.ZodObject<{
|
|
|
11487
11520
|
ui_locales?: string | undefined;
|
|
11488
11521
|
vendor_id?: string | undefined;
|
|
11489
11522
|
};
|
|
11523
|
+
user_id?: string | undefined;
|
|
11524
|
+
state?: LoginSessionState | undefined;
|
|
11490
11525
|
auth0Client?: string | undefined;
|
|
11491
11526
|
deleted_at?: string | undefined;
|
|
11492
11527
|
ip?: string | undefined;
|
|
11493
11528
|
useragent?: string | undefined;
|
|
11494
11529
|
session_id?: string | undefined;
|
|
11495
11530
|
authorization_url?: string | undefined;
|
|
11496
|
-
|
|
11531
|
+
state_data?: string | undefined;
|
|
11532
|
+
failure_reason?: string | undefined;
|
|
11497
11533
|
}>;
|
|
11498
11534
|
export type LoginSession = z.infer<typeof loginSessionSchema>;
|
|
11499
11535
|
declare const logInsertSchema: z.ZodObject<{
|
|
@@ -14682,15 +14718,24 @@ declare const sqlLoginSchema: z.ZodObject<{
|
|
|
14682
14718
|
[x: string]: any;
|
|
14683
14719
|
} & {
|
|
14684
14720
|
tenant_id: z.ZodString;
|
|
14685
|
-
|
|
14721
|
+
state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
14722
|
+
state_data: z.ZodOptional<z.ZodString>;
|
|
14723
|
+
failure_reason: z.ZodOptional<z.ZodString>;
|
|
14724
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
14686
14725
|
}, "strip", z.ZodTypeAny, {
|
|
14687
14726
|
[x: string]: any;
|
|
14688
14727
|
tenant_id?: unknown;
|
|
14689
|
-
|
|
14728
|
+
state?: unknown;
|
|
14729
|
+
state_data?: unknown;
|
|
14730
|
+
failure_reason?: unknown;
|
|
14731
|
+
user_id?: unknown;
|
|
14690
14732
|
}, {
|
|
14691
14733
|
[x: string]: any;
|
|
14692
14734
|
tenant_id?: unknown;
|
|
14693
|
-
|
|
14735
|
+
state?: unknown;
|
|
14736
|
+
state_data?: unknown;
|
|
14737
|
+
failure_reason?: unknown;
|
|
14738
|
+
user_id?: unknown;
|
|
14694
14739
|
}>;
|
|
14695
14740
|
declare const sqlConnectionSchema: z.ZodObject<{
|
|
14696
14741
|
[x: string]: any;
|
|
@@ -14754,8 +14799,8 @@ declare const sqlPasswordSchema: z.ZodObject<{
|
|
|
14754
14799
|
}, "strip", z.ZodTypeAny, {
|
|
14755
14800
|
password: string;
|
|
14756
14801
|
tenant_id: string;
|
|
14757
|
-
id: string;
|
|
14758
14802
|
user_id: string;
|
|
14803
|
+
id: string;
|
|
14759
14804
|
algorithm: "bcrypt" | "argon2id";
|
|
14760
14805
|
created_at: string;
|
|
14761
14806
|
updated_at: string;
|
|
@@ -14763,8 +14808,8 @@ declare const sqlPasswordSchema: z.ZodObject<{
|
|
|
14763
14808
|
}, {
|
|
14764
14809
|
password: string;
|
|
14765
14810
|
tenant_id: string;
|
|
14766
|
-
id: string;
|
|
14767
14811
|
user_id: string;
|
|
14812
|
+
id: string;
|
|
14768
14813
|
algorithm: "bcrypt" | "argon2id";
|
|
14769
14814
|
created_at: string;
|
|
14770
14815
|
updated_at: string;
|
|
@@ -15039,8 +15084,8 @@ declare const sqlSessionSchema: z.ZodObject<{
|
|
|
15039
15084
|
last_interaction_at: z.ZodString;
|
|
15040
15085
|
}, "strip", z.ZodTypeAny, {
|
|
15041
15086
|
tenant_id: string;
|
|
15042
|
-
id: string;
|
|
15043
15087
|
user_id: string;
|
|
15088
|
+
id: string;
|
|
15044
15089
|
created_at: string;
|
|
15045
15090
|
updated_at: string;
|
|
15046
15091
|
device: string;
|
|
@@ -15054,8 +15099,8 @@ declare const sqlSessionSchema: z.ZodObject<{
|
|
|
15054
15099
|
idle_expires_at?: string | undefined;
|
|
15055
15100
|
}, {
|
|
15056
15101
|
tenant_id: string;
|
|
15057
|
-
id: string;
|
|
15058
15102
|
user_id: string;
|
|
15103
|
+
id: string;
|
|
15059
15104
|
created_at: string;
|
|
15060
15105
|
updated_at: string;
|
|
15061
15106
|
device: string;
|
|
@@ -15083,8 +15128,8 @@ declare const sqlRefreshTokensSchema: z.ZodObject<{
|
|
|
15083
15128
|
created_at: z.ZodString;
|
|
15084
15129
|
}, "strip", z.ZodTypeAny, {
|
|
15085
15130
|
tenant_id: string;
|
|
15086
|
-
id: string;
|
|
15087
15131
|
user_id: string;
|
|
15132
|
+
id: string;
|
|
15088
15133
|
created_at: string;
|
|
15089
15134
|
device: string;
|
|
15090
15135
|
resource_servers: string;
|
|
@@ -15096,8 +15141,8 @@ declare const sqlRefreshTokensSchema: z.ZodObject<{
|
|
|
15096
15141
|
last_exchanged_at?: string | undefined;
|
|
15097
15142
|
}, {
|
|
15098
15143
|
tenant_id: string;
|
|
15099
|
-
id: string;
|
|
15100
15144
|
user_id: string;
|
|
15145
|
+
id: string;
|
|
15101
15146
|
created_at: string;
|
|
15102
15147
|
device: string;
|
|
15103
15148
|
resource_servers: string;
|
|
@@ -15167,7 +15212,7 @@ declare const sqlCustomDomainSchema: z.ZodObject<{
|
|
|
15167
15212
|
domain_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
15168
15213
|
}, "strip", z.ZodTypeAny, {
|
|
15169
15214
|
type: "auth0_managed_certs" | "self_managed_certs";
|
|
15170
|
-
status: "
|
|
15215
|
+
status: "pending" | "disabled" | "pending_verification" | "ready";
|
|
15171
15216
|
tenant_id: string;
|
|
15172
15217
|
created_at: string;
|
|
15173
15218
|
updated_at: string;
|
|
@@ -15188,7 +15233,7 @@ declare const sqlCustomDomainSchema: z.ZodObject<{
|
|
|
15188
15233
|
domain_metadata?: Record<string, string> | undefined;
|
|
15189
15234
|
}, {
|
|
15190
15235
|
type: "auth0_managed_certs" | "self_managed_certs";
|
|
15191
|
-
status: "
|
|
15236
|
+
status: "pending" | "disabled" | "pending_verification" | "ready";
|
|
15192
15237
|
tenant_id: string;
|
|
15193
15238
|
created_at: string;
|
|
15194
15239
|
updated_at: string;
|
|
@@ -15368,8 +15413,8 @@ declare const sqlLogSchema: z.ZodObject<{
|
|
|
15368
15413
|
tenant_id: string;
|
|
15369
15414
|
log_id: string;
|
|
15370
15415
|
description?: string | undefined;
|
|
15371
|
-
id?: string | undefined;
|
|
15372
15416
|
user_id?: string | undefined;
|
|
15417
|
+
id?: string | undefined;
|
|
15373
15418
|
connection?: string | undefined;
|
|
15374
15419
|
client_id?: string | undefined;
|
|
15375
15420
|
isMobile?: number | undefined;
|
|
@@ -15406,8 +15451,8 @@ declare const sqlLogSchema: z.ZodObject<{
|
|
|
15406
15451
|
tenant_id: string;
|
|
15407
15452
|
log_id: string;
|
|
15408
15453
|
description?: string | undefined;
|
|
15409
|
-
id?: string | undefined;
|
|
15410
15454
|
user_id?: string | undefined;
|
|
15455
|
+
id?: string | undefined;
|
|
15411
15456
|
connection?: string | undefined;
|
|
15412
15457
|
client_id?: string | undefined;
|
|
15413
15458
|
isMobile?: number | undefined;
|
|
@@ -16102,15 +16147,15 @@ declare const sqlUserOrganizationSchema: z.ZodObject<{
|
|
|
16102
16147
|
updated_at: z.ZodString;
|
|
16103
16148
|
}, "strip", z.ZodTypeAny, {
|
|
16104
16149
|
tenant_id: string;
|
|
16105
|
-
id: string;
|
|
16106
16150
|
user_id: string;
|
|
16151
|
+
id: string;
|
|
16107
16152
|
created_at: string;
|
|
16108
16153
|
updated_at: string;
|
|
16109
16154
|
organization_id: string;
|
|
16110
16155
|
}, {
|
|
16111
16156
|
tenant_id: string;
|
|
16112
|
-
id: string;
|
|
16113
16157
|
user_id: string;
|
|
16158
|
+
id: string;
|
|
16114
16159
|
created_at: string;
|
|
16115
16160
|
updated_at: string;
|
|
16116
16161
|
organization_id: string;
|