@authhero/kysely-adapter 0.15.0 → 0.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.
@@ -3343,6 +3343,41 @@ declare const sqlUserSchema: z.ZodObject<{
3343
3343
  provider?: string | undefined;
3344
3344
  connection?: string | undefined;
3345
3345
  }>;
3346
+ declare const sqlHookSchema: z.ZodObject<{
3347
+ tenant_id: z.ZodString;
3348
+ enabled: z.ZodNumber;
3349
+ synchronous: z.ZodNumber;
3350
+ trigger_id: z.ZodEnum<[
3351
+ "pre-user-signup",
3352
+ "post-user-registration",
3353
+ "post-user-login"
3354
+ ]>;
3355
+ url: z.ZodString;
3356
+ priority: z.ZodOptional<z.ZodNumber>;
3357
+ hook_id: z.ZodString;
3358
+ created_at: z.ZodString;
3359
+ updated_at: z.ZodString;
3360
+ }, "strip", z.ZodTypeAny, {
3361
+ tenant_id: string;
3362
+ enabled: number;
3363
+ created_at: string;
3364
+ updated_at: string;
3365
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
3366
+ url: string;
3367
+ hook_id: string;
3368
+ synchronous: number;
3369
+ priority?: number | undefined;
3370
+ }, {
3371
+ tenant_id: string;
3372
+ enabled: number;
3373
+ created_at: string;
3374
+ updated_at: string;
3375
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
3376
+ url: string;
3377
+ hook_id: string;
3378
+ synchronous: number;
3379
+ priority?: number | undefined;
3380
+ }>;
3346
3381
  export interface Database {
3347
3382
  applications: z.infer<typeof sqlApplicationSchema>;
3348
3383
  branding: SqlBranding;
@@ -3353,9 +3388,7 @@ export interface Database {
3353
3388
  domains: Domain & {
3354
3389
  tenant_id: string;
3355
3390
  };
3356
- hooks: Hook & {
3357
- tenant_id: string;
3358
- };
3391
+ hooks: z.infer<typeof sqlHookSchema>;
3359
3392
  keys: SigningKey & {
3360
3393
  created_at: string;
3361
3394
  };