authhero 0.141.0 → 0.142.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.
@@ -10792,66 +10792,127 @@ export declare const formSchema: z.ZodObject<{
10792
10792
  translations?: Record<string, any> | undefined;
10793
10793
  }>;
10794
10794
  export type Form = z.infer<typeof formSchema>;
10795
- export declare const hookInsertSchema: z.ZodObject<{
10796
- trigger_id: z.ZodEnum<[
10797
- "pre-user-signup",
10798
- "post-user-registration",
10799
- "post-user-login"
10800
- ]>;
10801
- enabled: z.ZodDefault<z.ZodBoolean>;
10802
- url: z.ZodString;
10803
- hook_id: z.ZodOptional<z.ZodString>;
10804
- synchronous: z.ZodDefault<z.ZodBoolean>;
10805
- priority: z.ZodOptional<z.ZodNumber>;
10806
- }, "strip", z.ZodTypeAny, {
10807
- enabled: boolean;
10808
- url: string;
10809
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10810
- synchronous: boolean;
10811
- hook_id?: string | undefined;
10812
- priority?: number | undefined;
10813
- }, {
10814
- url: string;
10815
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10816
- enabled?: boolean | undefined;
10817
- hook_id?: string | undefined;
10818
- synchronous?: boolean | undefined;
10819
- priority?: number | undefined;
10820
- }>;
10795
+ export declare const hookInsertSchema: z.ZodUnion<[
10796
+ z.ZodObject<{
10797
+ trigger_id: z.ZodEnum<[
10798
+ "pre-user-signup",
10799
+ "post-user-registration",
10800
+ "post-user-login"
10801
+ ]>;
10802
+ url: z.ZodString;
10803
+ enabled: z.ZodDefault<z.ZodBoolean>;
10804
+ synchronous: z.ZodDefault<z.ZodBoolean>;
10805
+ priority: z.ZodOptional<z.ZodNumber>;
10806
+ hook_id: z.ZodOptional<z.ZodString>;
10807
+ }, "strip", z.ZodTypeAny, {
10808
+ enabled: boolean;
10809
+ url: string;
10810
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10811
+ synchronous: boolean;
10812
+ priority?: number | undefined;
10813
+ hook_id?: string | undefined;
10814
+ }, {
10815
+ url: string;
10816
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10817
+ enabled?: boolean | undefined;
10818
+ synchronous?: boolean | undefined;
10819
+ priority?: number | undefined;
10820
+ hook_id?: string | undefined;
10821
+ }>,
10822
+ z.ZodObject<{
10823
+ trigger_id: z.ZodEnum<[
10824
+ "pre-user-signup",
10825
+ "post-user-registration",
10826
+ "post-user-login"
10827
+ ]>;
10828
+ form_id: z.ZodString;
10829
+ enabled: z.ZodDefault<z.ZodBoolean>;
10830
+ synchronous: z.ZodDefault<z.ZodBoolean>;
10831
+ priority: z.ZodOptional<z.ZodNumber>;
10832
+ hook_id: z.ZodOptional<z.ZodString>;
10833
+ }, "strip", z.ZodTypeAny, {
10834
+ enabled: boolean;
10835
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10836
+ synchronous: boolean;
10837
+ form_id: string;
10838
+ priority?: number | undefined;
10839
+ hook_id?: string | undefined;
10840
+ }, {
10841
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10842
+ form_id: string;
10843
+ enabled?: boolean | undefined;
10844
+ synchronous?: boolean | undefined;
10845
+ priority?: number | undefined;
10846
+ hook_id?: string | undefined;
10847
+ }>
10848
+ ]>;
10821
10849
  export type HookInsert = z.infer<typeof hookInsertSchema>;
10822
- export declare const hookSchema: z.ZodObject<{
10823
- trigger_id: z.ZodEnum<[
10824
- "pre-user-signup",
10825
- "post-user-registration",
10826
- "post-user-login"
10827
- ]>;
10828
- enabled: z.ZodDefault<z.ZodBoolean>;
10829
- url: z.ZodString;
10830
- synchronous: z.ZodDefault<z.ZodBoolean>;
10831
- priority: z.ZodOptional<z.ZodNumber>;
10832
- } & {
10833
- hook_id: z.ZodString;
10834
- created_at: z.ZodString;
10835
- updated_at: z.ZodString;
10836
- }, "strip", z.ZodTypeAny, {
10837
- created_at: string;
10838
- updated_at: string;
10839
- enabled: boolean;
10840
- url: string;
10841
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10842
- hook_id: string;
10843
- synchronous: boolean;
10844
- priority?: number | undefined;
10845
- }, {
10846
- created_at: string;
10847
- updated_at: string;
10848
- url: string;
10849
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10850
- hook_id: string;
10851
- enabled?: boolean | undefined;
10852
- synchronous?: boolean | undefined;
10853
- priority?: number | undefined;
10854
- }>;
10850
+ export declare const hookSchema: z.ZodUnion<[
10851
+ z.ZodObject<{
10852
+ hook_id: z.ZodString;
10853
+ url: z.ZodString;
10854
+ created_at: z.ZodString;
10855
+ updated_at: z.ZodString;
10856
+ trigger_id: z.ZodEnum<[
10857
+ "pre-user-signup",
10858
+ "post-user-registration",
10859
+ "post-user-login"
10860
+ ]>;
10861
+ enabled: z.ZodDefault<z.ZodBoolean>;
10862
+ synchronous: z.ZodDefault<z.ZodBoolean>;
10863
+ priority: z.ZodOptional<z.ZodNumber>;
10864
+ }, "strip", z.ZodTypeAny, {
10865
+ created_at: string;
10866
+ updated_at: string;
10867
+ enabled: boolean;
10868
+ url: string;
10869
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10870
+ synchronous: boolean;
10871
+ hook_id: string;
10872
+ priority?: number | undefined;
10873
+ }, {
10874
+ created_at: string;
10875
+ updated_at: string;
10876
+ url: string;
10877
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10878
+ hook_id: string;
10879
+ enabled?: boolean | undefined;
10880
+ synchronous?: boolean | undefined;
10881
+ priority?: number | undefined;
10882
+ }>,
10883
+ z.ZodObject<{
10884
+ hook_id: z.ZodString;
10885
+ form_id: z.ZodString;
10886
+ created_at: z.ZodString;
10887
+ updated_at: z.ZodString;
10888
+ trigger_id: z.ZodEnum<[
10889
+ "pre-user-signup",
10890
+ "post-user-registration",
10891
+ "post-user-login"
10892
+ ]>;
10893
+ enabled: z.ZodDefault<z.ZodBoolean>;
10894
+ synchronous: z.ZodDefault<z.ZodBoolean>;
10895
+ priority: z.ZodOptional<z.ZodNumber>;
10896
+ }, "strip", z.ZodTypeAny, {
10897
+ created_at: string;
10898
+ updated_at: string;
10899
+ enabled: boolean;
10900
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10901
+ synchronous: boolean;
10902
+ hook_id: string;
10903
+ form_id: string;
10904
+ priority?: number | undefined;
10905
+ }, {
10906
+ created_at: string;
10907
+ updated_at: string;
10908
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10909
+ hook_id: string;
10910
+ form_id: string;
10911
+ enabled?: boolean | undefined;
10912
+ synchronous?: boolean | undefined;
10913
+ priority?: number | undefined;
10914
+ }>
10915
+ ]>;
10855
10916
  export type Hook = z.infer<typeof hookSchema>;
10856
10917
  export declare const profileDataSchema: z.ZodObject<{
10857
10918
  email: z.ZodOptional<z.ZodString>;
@@ -15309,29 +15370,47 @@ export declare function init(config: AuthHeroConfig): {
15309
15370
  "tenant-id": string;
15310
15371
  };
15311
15372
  };
15312
- output: {
15373
+ output: ({
15313
15374
  created_at: string;
15314
15375
  updated_at: string;
15315
15376
  enabled: boolean;
15316
15377
  url: string;
15317
15378
  trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15379
+ synchronous: boolean;
15318
15380
  hook_id: string;
15381
+ priority?: number | undefined | undefined;
15382
+ } | {
15383
+ created_at: string;
15384
+ updated_at: string;
15385
+ enabled: boolean;
15386
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15319
15387
  synchronous: boolean;
15388
+ hook_id: string;
15389
+ form_id: string;
15320
15390
  priority?: number | undefined | undefined;
15321
- }[] | {
15391
+ })[] | {
15322
15392
  length: number;
15323
15393
  start: number;
15324
15394
  limit: number;
15325
- hooks: {
15395
+ hooks: ({
15326
15396
  created_at: string;
15327
15397
  updated_at: string;
15328
15398
  enabled: boolean;
15329
15399
  url: string;
15330
15400
  trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15401
+ synchronous: boolean;
15331
15402
  hook_id: string;
15403
+ priority?: number | undefined | undefined;
15404
+ } | {
15405
+ created_at: string;
15406
+ updated_at: string;
15407
+ enabled: boolean;
15408
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15332
15409
  synchronous: boolean;
15410
+ hook_id: string;
15411
+ form_id: string;
15333
15412
  priority?: number | undefined | undefined;
15334
- }[];
15413
+ })[];
15335
15414
  };
15336
15415
  outputFormat: "json";
15337
15416
  status: 200;
@@ -15347,11 +15426,18 @@ export declare function init(config: AuthHeroConfig): {
15347
15426
  } & {
15348
15427
  json: {
15349
15428
  url: string;
15350
- trigger_id: "post-user-login" | "post-user-registration" | "pre-user-signup";
15429
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15351
15430
  enabled?: boolean | undefined;
15431
+ synchronous?: boolean | undefined;
15432
+ priority?: number | undefined;
15352
15433
  hook_id?: string | undefined;
15434
+ } | {
15435
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15436
+ form_id: string;
15437
+ enabled?: boolean | undefined;
15353
15438
  synchronous?: boolean | undefined;
15354
15439
  priority?: number | undefined;
15440
+ hook_id?: string | undefined;
15355
15441
  };
15356
15442
  };
15357
15443
  output: {
@@ -15360,8 +15446,17 @@ export declare function init(config: AuthHeroConfig): {
15360
15446
  enabled: boolean;
15361
15447
  url: string;
15362
15448
  trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15449
+ synchronous: boolean;
15363
15450
  hook_id: string;
15451
+ priority?: number | undefined | undefined;
15452
+ } | {
15453
+ created_at: string;
15454
+ updated_at: string;
15455
+ enabled: boolean;
15456
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15364
15457
  synchronous: boolean;
15458
+ hook_id: string;
15459
+ form_id: string;
15365
15460
  priority?: number | undefined | undefined;
15366
15461
  };
15367
15462
  outputFormat: "json";
@@ -15383,9 +15478,15 @@ export declare function init(config: AuthHeroConfig): {
15383
15478
  json: {
15384
15479
  url?: string | undefined;
15385
15480
  enabled?: boolean | undefined;
15386
- trigger_id?: "post-user-login" | "post-user-registration" | "pre-user-signup" | undefined;
15481
+ trigger_id?: "pre-user-signup" | "post-user-registration" | "post-user-login" | undefined;
15387
15482
  synchronous?: boolean | undefined;
15388
15483
  priority?: number | undefined;
15484
+ } | {
15485
+ enabled?: boolean | undefined;
15486
+ trigger_id?: "pre-user-signup" | "post-user-registration" | "post-user-login" | undefined;
15487
+ synchronous?: boolean | undefined;
15488
+ priority?: number | undefined;
15489
+ form_id?: string | undefined;
15389
15490
  };
15390
15491
  };
15391
15492
  output: {};
@@ -15404,12 +15505,36 @@ export declare function init(config: AuthHeroConfig): {
15404
15505
  json: {
15405
15506
  url?: string | undefined;
15406
15507
  enabled?: boolean | undefined;
15407
- trigger_id?: "post-user-login" | "post-user-registration" | "pre-user-signup" | undefined;
15508
+ trigger_id?: "pre-user-signup" | "post-user-registration" | "post-user-login" | undefined;
15509
+ synchronous?: boolean | undefined;
15510
+ priority?: number | undefined;
15511
+ } | {
15512
+ enabled?: boolean | undefined;
15513
+ trigger_id?: "pre-user-signup" | "post-user-registration" | "post-user-login" | undefined;
15408
15514
  synchronous?: boolean | undefined;
15409
15515
  priority?: number | undefined;
15516
+ form_id?: string | undefined;
15410
15517
  };
15411
15518
  };
15412
- output: never;
15519
+ output: {
15520
+ created_at: string;
15521
+ updated_at: string;
15522
+ enabled: boolean;
15523
+ url: string;
15524
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15525
+ synchronous: boolean;
15526
+ hook_id: string;
15527
+ priority?: number | undefined | undefined;
15528
+ } | {
15529
+ created_at: string;
15530
+ updated_at: string;
15531
+ enabled: boolean;
15532
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15533
+ synchronous: boolean;
15534
+ hook_id: string;
15535
+ form_id: string;
15536
+ priority?: number | undefined | undefined;
15537
+ };
15413
15538
  outputFormat: "json";
15414
15539
  status: 200;
15415
15540
  };
@@ -15445,8 +15570,17 @@ export declare function init(config: AuthHeroConfig): {
15445
15570
  enabled: boolean;
15446
15571
  url: string;
15447
15572
  trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15573
+ synchronous: boolean;
15448
15574
  hook_id: string;
15575
+ priority?: number | undefined | undefined;
15576
+ } | {
15577
+ created_at: string;
15578
+ updated_at: string;
15579
+ enabled: boolean;
15580
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15449
15581
  synchronous: boolean;
15582
+ hook_id: string;
15583
+ form_id: string;
15450
15584
  priority?: number | undefined | undefined;
15451
15585
  };
15452
15586
  outputFormat: "json";