@authhero/kysely-adapter 10.14.0 → 10.16.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 +147 -78
- package/dist/kysely-adapter.mjs +748 -709
- package/package.json +3 -3
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -3148,66 +3148,127 @@ declare const formSchema: z.ZodObject<{
|
|
|
3148
3148
|
translations?: Record<string, any> | undefined;
|
|
3149
3149
|
}>;
|
|
3150
3150
|
export type Form = z.infer<typeof formSchema>;
|
|
3151
|
-
declare const hookInsertSchema: z.
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3151
|
+
declare const hookInsertSchema: z.ZodUnion<[
|
|
3152
|
+
z.ZodObject<{
|
|
3153
|
+
trigger_id: z.ZodEnum<[
|
|
3154
|
+
"pre-user-signup",
|
|
3155
|
+
"post-user-registration",
|
|
3156
|
+
"post-user-login"
|
|
3157
|
+
]>;
|
|
3158
|
+
url: z.ZodString;
|
|
3159
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3160
|
+
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
3161
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
3162
|
+
hook_id: z.ZodOptional<z.ZodString>;
|
|
3163
|
+
}, "strip", z.ZodTypeAny, {
|
|
3164
|
+
enabled: boolean;
|
|
3165
|
+
url: string;
|
|
3166
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
3167
|
+
synchronous: boolean;
|
|
3168
|
+
priority?: number | undefined;
|
|
3169
|
+
hook_id?: string | undefined;
|
|
3170
|
+
}, {
|
|
3171
|
+
url: string;
|
|
3172
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
3173
|
+
enabled?: boolean | undefined;
|
|
3174
|
+
synchronous?: boolean | undefined;
|
|
3175
|
+
priority?: number | undefined;
|
|
3176
|
+
hook_id?: string | undefined;
|
|
3177
|
+
}>,
|
|
3178
|
+
z.ZodObject<{
|
|
3179
|
+
trigger_id: z.ZodEnum<[
|
|
3180
|
+
"pre-user-signup",
|
|
3181
|
+
"post-user-registration",
|
|
3182
|
+
"post-user-login"
|
|
3183
|
+
]>;
|
|
3184
|
+
form_id: z.ZodString;
|
|
3185
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3186
|
+
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
3187
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
3188
|
+
hook_id: z.ZodOptional<z.ZodString>;
|
|
3189
|
+
}, "strip", z.ZodTypeAny, {
|
|
3190
|
+
enabled: boolean;
|
|
3191
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
3192
|
+
synchronous: boolean;
|
|
3193
|
+
form_id: string;
|
|
3194
|
+
priority?: number | undefined;
|
|
3195
|
+
hook_id?: string | undefined;
|
|
3196
|
+
}, {
|
|
3197
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
3198
|
+
form_id: string;
|
|
3199
|
+
enabled?: boolean | undefined;
|
|
3200
|
+
synchronous?: boolean | undefined;
|
|
3201
|
+
priority?: number | undefined;
|
|
3202
|
+
hook_id?: string | undefined;
|
|
3203
|
+
}>
|
|
3204
|
+
]>;
|
|
3177
3205
|
export type HookInsert = z.infer<typeof hookInsertSchema>;
|
|
3178
|
-
declare const hookSchema: z.
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
}, "strip", z.ZodTypeAny, {
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
}, {
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
}
|
|
3206
|
+
declare const hookSchema: z.ZodUnion<[
|
|
3207
|
+
z.ZodObject<{
|
|
3208
|
+
hook_id: z.ZodString;
|
|
3209
|
+
url: z.ZodString;
|
|
3210
|
+
created_at: z.ZodString;
|
|
3211
|
+
updated_at: z.ZodString;
|
|
3212
|
+
trigger_id: z.ZodEnum<[
|
|
3213
|
+
"pre-user-signup",
|
|
3214
|
+
"post-user-registration",
|
|
3215
|
+
"post-user-login"
|
|
3216
|
+
]>;
|
|
3217
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3218
|
+
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
3219
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
3220
|
+
}, "strip", z.ZodTypeAny, {
|
|
3221
|
+
created_at: string;
|
|
3222
|
+
updated_at: string;
|
|
3223
|
+
enabled: boolean;
|
|
3224
|
+
url: string;
|
|
3225
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
3226
|
+
synchronous: boolean;
|
|
3227
|
+
hook_id: string;
|
|
3228
|
+
priority?: number | undefined;
|
|
3229
|
+
}, {
|
|
3230
|
+
created_at: string;
|
|
3231
|
+
updated_at: string;
|
|
3232
|
+
url: string;
|
|
3233
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
3234
|
+
hook_id: string;
|
|
3235
|
+
enabled?: boolean | undefined;
|
|
3236
|
+
synchronous?: boolean | undefined;
|
|
3237
|
+
priority?: number | undefined;
|
|
3238
|
+
}>,
|
|
3239
|
+
z.ZodObject<{
|
|
3240
|
+
hook_id: z.ZodString;
|
|
3241
|
+
form_id: z.ZodString;
|
|
3242
|
+
created_at: z.ZodString;
|
|
3243
|
+
updated_at: z.ZodString;
|
|
3244
|
+
trigger_id: z.ZodEnum<[
|
|
3245
|
+
"pre-user-signup",
|
|
3246
|
+
"post-user-registration",
|
|
3247
|
+
"post-user-login"
|
|
3248
|
+
]>;
|
|
3249
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3250
|
+
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
3251
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
3252
|
+
}, "strip", z.ZodTypeAny, {
|
|
3253
|
+
created_at: string;
|
|
3254
|
+
updated_at: string;
|
|
3255
|
+
enabled: boolean;
|
|
3256
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
3257
|
+
synchronous: boolean;
|
|
3258
|
+
hook_id: string;
|
|
3259
|
+
form_id: string;
|
|
3260
|
+
priority?: number | undefined;
|
|
3261
|
+
}, {
|
|
3262
|
+
created_at: string;
|
|
3263
|
+
updated_at: string;
|
|
3264
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
3265
|
+
hook_id: string;
|
|
3266
|
+
form_id: string;
|
|
3267
|
+
enabled?: boolean | undefined;
|
|
3268
|
+
synchronous?: boolean | undefined;
|
|
3269
|
+
priority?: number | undefined;
|
|
3270
|
+
}>
|
|
3271
|
+
]>;
|
|
3211
3272
|
export type Hook = z.infer<typeof hookSchema>;
|
|
3212
3273
|
export interface ListParams {
|
|
3213
3274
|
page: number;
|
|
@@ -3280,6 +3341,7 @@ declare const loginSessionInsertSchema: z.ZodObject<{
|
|
|
3280
3341
|
useragent: z.ZodOptional<z.ZodString>;
|
|
3281
3342
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3282
3343
|
authorization_url: z.ZodOptional<z.ZodString>;
|
|
3344
|
+
login_completed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3283
3345
|
}, "strip", z.ZodTypeAny, {
|
|
3284
3346
|
expires_at: string;
|
|
3285
3347
|
csrf_token: string;
|
|
@@ -3301,6 +3363,7 @@ declare const loginSessionInsertSchema: z.ZodObject<{
|
|
|
3301
3363
|
ui_locales?: string | undefined;
|
|
3302
3364
|
vendor_id?: string | undefined;
|
|
3303
3365
|
};
|
|
3366
|
+
login_completed: boolean;
|
|
3304
3367
|
auth0Client?: string | undefined;
|
|
3305
3368
|
deleted_at?: string | undefined;
|
|
3306
3369
|
ip?: string | undefined;
|
|
@@ -3334,8 +3397,9 @@ declare const loginSessionInsertSchema: z.ZodObject<{
|
|
|
3334
3397
|
useragent?: string | undefined;
|
|
3335
3398
|
session_id?: string | undefined;
|
|
3336
3399
|
authorization_url?: string | undefined;
|
|
3400
|
+
login_completed?: boolean | undefined;
|
|
3337
3401
|
}>;
|
|
3338
|
-
export type LoginSessionInsert = z.
|
|
3402
|
+
export type LoginSessionInsert = z.input<typeof loginSessionInsertSchema>;
|
|
3339
3403
|
declare const loginSessionSchema: z.ZodObject<{
|
|
3340
3404
|
id: z.ZodString;
|
|
3341
3405
|
created_at: z.ZodString;
|
|
@@ -3400,6 +3464,7 @@ declare const loginSessionSchema: z.ZodObject<{
|
|
|
3400
3464
|
useragent: z.ZodOptional<z.ZodString>;
|
|
3401
3465
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3402
3466
|
authorization_url: z.ZodOptional<z.ZodString>;
|
|
3467
|
+
login_completed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3403
3468
|
}, "strip", z.ZodTypeAny, {
|
|
3404
3469
|
created_at: string;
|
|
3405
3470
|
updated_at: string;
|
|
@@ -3424,6 +3489,7 @@ declare const loginSessionSchema: z.ZodObject<{
|
|
|
3424
3489
|
ui_locales?: string | undefined;
|
|
3425
3490
|
vendor_id?: string | undefined;
|
|
3426
3491
|
};
|
|
3492
|
+
login_completed: boolean;
|
|
3427
3493
|
auth0Client?: string | undefined;
|
|
3428
3494
|
deleted_at?: string | undefined;
|
|
3429
3495
|
ip?: string | undefined;
|
|
@@ -3460,6 +3526,7 @@ declare const loginSessionSchema: z.ZodObject<{
|
|
|
3460
3526
|
useragent?: string | undefined;
|
|
3461
3527
|
session_id?: string | undefined;
|
|
3462
3528
|
authorization_url?: string | undefined;
|
|
3529
|
+
login_completed?: boolean | undefined;
|
|
3463
3530
|
}>;
|
|
3464
3531
|
export type LoginSession = z.infer<typeof loginSessionSchema>;
|
|
3465
3532
|
declare const LogType: z.ZodEnum<[
|
|
@@ -5237,12 +5304,15 @@ declare const sqlLoginSchema: z.ZodObject<{
|
|
|
5237
5304
|
[x: string]: any;
|
|
5238
5305
|
} & {
|
|
5239
5306
|
tenant_id: z.ZodString;
|
|
5307
|
+
login_completed: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
5240
5308
|
}, "strip", z.ZodTypeAny, {
|
|
5241
5309
|
[x: string]: any;
|
|
5242
5310
|
tenant_id?: unknown;
|
|
5311
|
+
login_completed?: unknown;
|
|
5243
5312
|
}, {
|
|
5244
5313
|
[x: string]: any;
|
|
5245
5314
|
tenant_id?: unknown;
|
|
5315
|
+
login_completed?: unknown;
|
|
5246
5316
|
}>;
|
|
5247
5317
|
declare const sqlConnectionSchema: z.ZodObject<{
|
|
5248
5318
|
[x: string]: any;
|
|
@@ -5530,38 +5600,37 @@ declare const sqlUserSchema: z.ZodObject<{
|
|
|
5530
5600
|
}>;
|
|
5531
5601
|
declare const sqlHookSchema: z.ZodObject<{
|
|
5532
5602
|
tenant_id: z.ZodString;
|
|
5533
|
-
enabled: z.ZodNumber;
|
|
5534
|
-
synchronous: z.ZodNumber;
|
|
5535
|
-
trigger_id: z.ZodEnum<[
|
|
5536
|
-
"pre-user-signup",
|
|
5537
|
-
"post-user-registration",
|
|
5538
|
-
"post-user-login"
|
|
5539
|
-
]>;
|
|
5540
|
-
url: z.ZodString;
|
|
5541
|
-
priority: z.ZodOptional<z.ZodNumber>;
|
|
5542
|
-
hook_id: z.ZodString;
|
|
5543
5603
|
created_at: z.ZodString;
|
|
5544
5604
|
updated_at: z.ZodString;
|
|
5605
|
+
hook_id: z.ZodString;
|
|
5606
|
+
trigger_id: z.ZodString;
|
|
5607
|
+
priority: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
5608
|
+
enabled: z.ZodNumber;
|
|
5609
|
+
synchronous: z.ZodNumber;
|
|
5610
|
+
url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5611
|
+
form_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5545
5612
|
}, "strip", z.ZodTypeAny, {
|
|
5546
5613
|
tenant_id: string;
|
|
5547
5614
|
enabled: number;
|
|
5548
5615
|
created_at: string;
|
|
5549
5616
|
updated_at: string;
|
|
5550
|
-
synchronous: number;
|
|
5551
|
-
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
5552
|
-
url: string;
|
|
5553
5617
|
hook_id: string;
|
|
5554
|
-
|
|
5618
|
+
trigger_id: string;
|
|
5619
|
+
synchronous: number;
|
|
5620
|
+
priority?: number | null | undefined;
|
|
5621
|
+
url?: string | null | undefined;
|
|
5622
|
+
form_id?: string | null | undefined;
|
|
5555
5623
|
}, {
|
|
5556
5624
|
tenant_id: string;
|
|
5557
5625
|
enabled: number;
|
|
5558
5626
|
created_at: string;
|
|
5559
5627
|
updated_at: string;
|
|
5560
|
-
synchronous: number;
|
|
5561
|
-
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
5562
|
-
url: string;
|
|
5563
5628
|
hook_id: string;
|
|
5564
|
-
|
|
5629
|
+
trigger_id: string;
|
|
5630
|
+
synchronous: number;
|
|
5631
|
+
priority?: number | null | undefined;
|
|
5632
|
+
url?: string | null | undefined;
|
|
5633
|
+
form_id?: string | null | undefined;
|
|
5565
5634
|
}>;
|
|
5566
5635
|
declare const sqlEmailProvidersSchema: z.ZodObject<{
|
|
5567
5636
|
tenant_id: z.ZodString;
|