authhero 0.141.0 → 0.143.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>;
@@ -11204,6 +11265,7 @@ export declare const loginSessionInsertSchema: z.ZodObject<{
11204
11265
  useragent: z.ZodOptional<z.ZodString>;
11205
11266
  session_id: z.ZodOptional<z.ZodString>;
11206
11267
  authorization_url: z.ZodOptional<z.ZodString>;
11268
+ login_completed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11207
11269
  }, "strip", z.ZodTypeAny, {
11208
11270
  expires_at: string;
11209
11271
  csrf_token: string;
@@ -11225,6 +11287,7 @@ export declare const loginSessionInsertSchema: z.ZodObject<{
11225
11287
  ui_locales?: string | undefined;
11226
11288
  vendor_id?: string | undefined;
11227
11289
  };
11290
+ login_completed: boolean;
11228
11291
  auth0Client?: string | undefined;
11229
11292
  deleted_at?: string | undefined;
11230
11293
  ip?: string | undefined;
@@ -11258,8 +11321,9 @@ export declare const loginSessionInsertSchema: z.ZodObject<{
11258
11321
  useragent?: string | undefined;
11259
11322
  session_id?: string | undefined;
11260
11323
  authorization_url?: string | undefined;
11324
+ login_completed?: boolean | undefined;
11261
11325
  }>;
11262
- export type LoginSessionInsert = z.infer<typeof loginSessionInsertSchema>;
11326
+ export type LoginSessionInsert = z.input<typeof loginSessionInsertSchema>;
11263
11327
  export declare const loginSessionSchema: z.ZodObject<{
11264
11328
  id: z.ZodString;
11265
11329
  created_at: z.ZodString;
@@ -11324,6 +11388,7 @@ export declare const loginSessionSchema: z.ZodObject<{
11324
11388
  useragent: z.ZodOptional<z.ZodString>;
11325
11389
  session_id: z.ZodOptional<z.ZodString>;
11326
11390
  authorization_url: z.ZodOptional<z.ZodString>;
11391
+ login_completed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11327
11392
  }, "strip", z.ZodTypeAny, {
11328
11393
  created_at: string;
11329
11394
  updated_at: string;
@@ -11348,6 +11413,7 @@ export declare const loginSessionSchema: z.ZodObject<{
11348
11413
  ui_locales?: string | undefined;
11349
11414
  vendor_id?: string | undefined;
11350
11415
  };
11416
+ login_completed: boolean;
11351
11417
  auth0Client?: string | undefined;
11352
11418
  deleted_at?: string | undefined;
11353
11419
  ip?: string | undefined;
@@ -11384,6 +11450,7 @@ export declare const loginSessionSchema: z.ZodObject<{
11384
11450
  useragent?: string | undefined;
11385
11451
  session_id?: string | undefined;
11386
11452
  authorization_url?: string | undefined;
11453
+ login_completed?: boolean | undefined;
11387
11454
  }>;
11388
11455
  export type LoginSession = z.infer<typeof loginSessionSchema>;
11389
11456
  export declare enum LogTypes {
@@ -14391,10 +14458,6 @@ export declare function init(config: AuthHeroConfig): {
14391
14458
  style?: {
14392
14459
  css?: string | undefined;
14393
14460
  } | undefined;
14394
- languages?: {
14395
- default?: string | undefined;
14396
- primary?: string | undefined;
14397
- } | undefined;
14398
14461
  nodes?: ({
14399
14462
  type: "FLOW";
14400
14463
  id: string;
@@ -14463,6 +14526,10 @@ export declare function init(config: AuthHeroConfig): {
14463
14526
  };
14464
14527
  alias?: string | undefined;
14465
14528
  })[] | undefined;
14529
+ languages?: {
14530
+ default?: string | undefined;
14531
+ primary?: string | undefined;
14532
+ } | undefined;
14466
14533
  ending?: {
14467
14534
  coordinates?: {
14468
14535
  x: number;
@@ -14629,10 +14696,6 @@ export declare function init(config: AuthHeroConfig): {
14629
14696
  style?: {
14630
14697
  css?: string | undefined;
14631
14698
  } | undefined;
14632
- languages?: {
14633
- default?: string | undefined;
14634
- primary?: string | undefined;
14635
- } | undefined;
14636
14699
  nodes?: ({
14637
14700
  type: "FLOW";
14638
14701
  id: string;
@@ -14701,6 +14764,10 @@ export declare function init(config: AuthHeroConfig): {
14701
14764
  };
14702
14765
  alias?: string | undefined;
14703
14766
  })[] | undefined;
14767
+ languages?: {
14768
+ default?: string | undefined;
14769
+ primary?: string | undefined;
14770
+ } | undefined;
14704
14771
  ending?: {
14705
14772
  coordinates?: {
14706
14773
  x: number;
@@ -15309,29 +15376,47 @@ export declare function init(config: AuthHeroConfig): {
15309
15376
  "tenant-id": string;
15310
15377
  };
15311
15378
  };
15312
- output: {
15379
+ output: ({
15313
15380
  created_at: string;
15314
15381
  updated_at: string;
15315
15382
  enabled: boolean;
15316
15383
  url: string;
15317
15384
  trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15385
+ synchronous: boolean;
15318
15386
  hook_id: string;
15387
+ priority?: number | undefined | undefined;
15388
+ } | {
15389
+ created_at: string;
15390
+ updated_at: string;
15391
+ enabled: boolean;
15392
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15319
15393
  synchronous: boolean;
15394
+ hook_id: string;
15395
+ form_id: string;
15320
15396
  priority?: number | undefined | undefined;
15321
- }[] | {
15397
+ })[] | {
15322
15398
  length: number;
15323
15399
  start: number;
15324
15400
  limit: number;
15325
- hooks: {
15401
+ hooks: ({
15326
15402
  created_at: string;
15327
15403
  updated_at: string;
15328
15404
  enabled: boolean;
15329
15405
  url: string;
15330
15406
  trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15407
+ synchronous: boolean;
15331
15408
  hook_id: string;
15409
+ priority?: number | undefined | undefined;
15410
+ } | {
15411
+ created_at: string;
15412
+ updated_at: string;
15413
+ enabled: boolean;
15414
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15332
15415
  synchronous: boolean;
15416
+ hook_id: string;
15417
+ form_id: string;
15333
15418
  priority?: number | undefined | undefined;
15334
- }[];
15419
+ })[];
15335
15420
  };
15336
15421
  outputFormat: "json";
15337
15422
  status: 200;
@@ -15347,11 +15432,18 @@ export declare function init(config: AuthHeroConfig): {
15347
15432
  } & {
15348
15433
  json: {
15349
15434
  url: string;
15350
- trigger_id: "post-user-login" | "post-user-registration" | "pre-user-signup";
15435
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15351
15436
  enabled?: boolean | undefined;
15437
+ synchronous?: boolean | undefined;
15438
+ priority?: number | undefined;
15352
15439
  hook_id?: string | undefined;
15440
+ } | {
15441
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15442
+ form_id: string;
15443
+ enabled?: boolean | undefined;
15353
15444
  synchronous?: boolean | undefined;
15354
15445
  priority?: number | undefined;
15446
+ hook_id?: string | undefined;
15355
15447
  };
15356
15448
  };
15357
15449
  output: {
@@ -15360,8 +15452,17 @@ export declare function init(config: AuthHeroConfig): {
15360
15452
  enabled: boolean;
15361
15453
  url: string;
15362
15454
  trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15455
+ synchronous: boolean;
15363
15456
  hook_id: string;
15457
+ priority?: number | undefined | undefined;
15458
+ } | {
15459
+ created_at: string;
15460
+ updated_at: string;
15461
+ enabled: boolean;
15462
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15364
15463
  synchronous: boolean;
15464
+ hook_id: string;
15465
+ form_id: string;
15365
15466
  priority?: number | undefined | undefined;
15366
15467
  };
15367
15468
  outputFormat: "json";
@@ -15383,9 +15484,15 @@ export declare function init(config: AuthHeroConfig): {
15383
15484
  json: {
15384
15485
  url?: string | undefined;
15385
15486
  enabled?: boolean | undefined;
15386
- trigger_id?: "post-user-login" | "post-user-registration" | "pre-user-signup" | undefined;
15487
+ trigger_id?: "pre-user-signup" | "post-user-registration" | "post-user-login" | undefined;
15488
+ synchronous?: boolean | undefined;
15489
+ priority?: number | undefined;
15490
+ } | {
15491
+ enabled?: boolean | undefined;
15492
+ trigger_id?: "pre-user-signup" | "post-user-registration" | "post-user-login" | undefined;
15387
15493
  synchronous?: boolean | undefined;
15388
15494
  priority?: number | undefined;
15495
+ form_id?: string | undefined;
15389
15496
  };
15390
15497
  };
15391
15498
  output: {};
@@ -15404,12 +15511,36 @@ export declare function init(config: AuthHeroConfig): {
15404
15511
  json: {
15405
15512
  url?: string | undefined;
15406
15513
  enabled?: boolean | undefined;
15407
- trigger_id?: "post-user-login" | "post-user-registration" | "pre-user-signup" | undefined;
15514
+ trigger_id?: "pre-user-signup" | "post-user-registration" | "post-user-login" | undefined;
15515
+ synchronous?: boolean | undefined;
15516
+ priority?: number | undefined;
15517
+ } | {
15518
+ enabled?: boolean | undefined;
15519
+ trigger_id?: "pre-user-signup" | "post-user-registration" | "post-user-login" | undefined;
15408
15520
  synchronous?: boolean | undefined;
15409
15521
  priority?: number | undefined;
15522
+ form_id?: string | undefined;
15410
15523
  };
15411
15524
  };
15412
- output: never;
15525
+ output: {
15526
+ created_at: string;
15527
+ updated_at: string;
15528
+ enabled: boolean;
15529
+ url: string;
15530
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15531
+ synchronous: boolean;
15532
+ hook_id: string;
15533
+ priority?: number | undefined | undefined;
15534
+ } | {
15535
+ created_at: string;
15536
+ updated_at: string;
15537
+ enabled: boolean;
15538
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15539
+ synchronous: boolean;
15540
+ hook_id: string;
15541
+ form_id: string;
15542
+ priority?: number | undefined | undefined;
15543
+ };
15413
15544
  outputFormat: "json";
15414
15545
  status: 200;
15415
15546
  };
@@ -15445,8 +15576,17 @@ export declare function init(config: AuthHeroConfig): {
15445
15576
  enabled: boolean;
15446
15577
  url: string;
15447
15578
  trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15579
+ synchronous: boolean;
15448
15580
  hook_id: string;
15581
+ priority?: number | undefined | undefined;
15582
+ } | {
15583
+ created_at: string;
15584
+ updated_at: string;
15585
+ enabled: boolean;
15586
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
15449
15587
  synchronous: boolean;
15588
+ hook_id: string;
15589
+ form_id: string;
15450
15590
  priority?: number | undefined | undefined;
15451
15591
  };
15452
15592
  outputFormat: "json";