@authhero/adapter-interfaces 0.63.0 → 0.65.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.
@@ -9216,6 +9216,107 @@ export declare const formControlSchema: z.ZodObject<{
9216
9216
  customizations?: Record<string, any> | undefined;
9217
9217
  }>;
9218
9218
  export type FormControl = z.infer<typeof formControlSchema>;
9219
+ /**
9220
+ * Schema for form components (fields, text, buttons, etc)
9221
+ */
9222
+ export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type", [
9223
+ z.ZodObject<{
9224
+ id: z.ZodString;
9225
+ type: z.ZodLiteral<"RICH_TEXT">;
9226
+ config: z.ZodObject<{
9227
+ content: z.ZodString;
9228
+ }, "strip", z.ZodTypeAny, {
9229
+ content: string;
9230
+ }, {
9231
+ content: string;
9232
+ }>;
9233
+ order: z.ZodOptional<z.ZodNumber>;
9234
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9235
+ }, "strip", z.ZodTypeAny, {
9236
+ type: "RICH_TEXT";
9237
+ id: string;
9238
+ config: {
9239
+ content: string;
9240
+ };
9241
+ visible: boolean;
9242
+ order?: number | undefined;
9243
+ }, {
9244
+ type: "RICH_TEXT";
9245
+ id: string;
9246
+ config: {
9247
+ content: string;
9248
+ };
9249
+ order?: number | undefined;
9250
+ visible?: boolean | undefined;
9251
+ }>,
9252
+ z.ZodObject<{
9253
+ id: z.ZodString;
9254
+ type: z.ZodLiteral<"LEGAL">;
9255
+ config: z.ZodObject<{
9256
+ text: z.ZodString;
9257
+ html: z.ZodOptional<z.ZodBoolean>;
9258
+ }, "strip", z.ZodTypeAny, {
9259
+ text: string;
9260
+ html?: boolean | undefined;
9261
+ }, {
9262
+ text: string;
9263
+ html?: boolean | undefined;
9264
+ }>;
9265
+ required: z.ZodOptional<z.ZodBoolean>;
9266
+ order: z.ZodOptional<z.ZodNumber>;
9267
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9268
+ }, "strip", z.ZodTypeAny, {
9269
+ type: "LEGAL";
9270
+ id: string;
9271
+ config: {
9272
+ text: string;
9273
+ html?: boolean | undefined;
9274
+ };
9275
+ visible: boolean;
9276
+ required?: boolean | undefined;
9277
+ order?: number | undefined;
9278
+ }, {
9279
+ type: "LEGAL";
9280
+ id: string;
9281
+ config: {
9282
+ text: string;
9283
+ html?: boolean | undefined;
9284
+ };
9285
+ required?: boolean | undefined;
9286
+ order?: number | undefined;
9287
+ visible?: boolean | undefined;
9288
+ }>,
9289
+ z.ZodObject<{
9290
+ id: z.ZodString;
9291
+ type: z.ZodLiteral<"NEXT_BUTTON">;
9292
+ config: z.ZodObject<{
9293
+ text: z.ZodOptional<z.ZodString>;
9294
+ }, "strip", z.ZodTypeAny, {
9295
+ text?: string | undefined;
9296
+ }, {
9297
+ text?: string | undefined;
9298
+ }>;
9299
+ order: z.ZodOptional<z.ZodNumber>;
9300
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9301
+ }, "strip", z.ZodTypeAny, {
9302
+ type: "NEXT_BUTTON";
9303
+ id: string;
9304
+ config: {
9305
+ text?: string | undefined;
9306
+ };
9307
+ visible: boolean;
9308
+ order?: number | undefined;
9309
+ }, {
9310
+ type: "NEXT_BUTTON";
9311
+ id: string;
9312
+ config: {
9313
+ text?: string | undefined;
9314
+ };
9315
+ order?: number | undefined;
9316
+ visible?: boolean | undefined;
9317
+ }>
9318
+ ]>;
9319
+ export type FormNodeComponent = z.infer<typeof formNodeComponentDefinition>;
9219
9320
  /**
9220
9321
  * Schema for forms (flow-based, matches new JSON structure)
9221
9322
  */
@@ -9391,20 +9492,194 @@ export declare const formInsertSchema: z.ZodObject<{
9391
9492
  }>;
9392
9493
  alias: z.ZodOptional<z.ZodString>;
9393
9494
  config: z.ZodObject<{
9394
- components: z.ZodArray<z.ZodAny, "many">;
9495
+ components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [
9496
+ z.ZodObject<{
9497
+ id: z.ZodString;
9498
+ type: z.ZodLiteral<"RICH_TEXT">;
9499
+ config: z.ZodObject<{
9500
+ content: z.ZodString;
9501
+ }, "strip", z.ZodTypeAny, {
9502
+ content: string;
9503
+ }, {
9504
+ content: string;
9505
+ }>;
9506
+ order: z.ZodOptional<z.ZodNumber>;
9507
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9508
+ }, "strip", z.ZodTypeAny, {
9509
+ type: "RICH_TEXT";
9510
+ id: string;
9511
+ config: {
9512
+ content: string;
9513
+ };
9514
+ visible: boolean;
9515
+ order?: number | undefined;
9516
+ }, {
9517
+ type: "RICH_TEXT";
9518
+ id: string;
9519
+ config: {
9520
+ content: string;
9521
+ };
9522
+ order?: number | undefined;
9523
+ visible?: boolean | undefined;
9524
+ }>,
9525
+ z.ZodObject<{
9526
+ id: z.ZodString;
9527
+ type: z.ZodLiteral<"LEGAL">;
9528
+ config: z.ZodObject<{
9529
+ text: z.ZodString;
9530
+ html: z.ZodOptional<z.ZodBoolean>;
9531
+ }, "strip", z.ZodTypeAny, {
9532
+ text: string;
9533
+ html?: boolean | undefined;
9534
+ }, {
9535
+ text: string;
9536
+ html?: boolean | undefined;
9537
+ }>;
9538
+ required: z.ZodOptional<z.ZodBoolean>;
9539
+ order: z.ZodOptional<z.ZodNumber>;
9540
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9541
+ }, "strip", z.ZodTypeAny, {
9542
+ type: "LEGAL";
9543
+ id: string;
9544
+ config: {
9545
+ text: string;
9546
+ html?: boolean | undefined;
9547
+ };
9548
+ visible: boolean;
9549
+ required?: boolean | undefined;
9550
+ order?: number | undefined;
9551
+ }, {
9552
+ type: "LEGAL";
9553
+ id: string;
9554
+ config: {
9555
+ text: string;
9556
+ html?: boolean | undefined;
9557
+ };
9558
+ required?: boolean | undefined;
9559
+ order?: number | undefined;
9560
+ visible?: boolean | undefined;
9561
+ }>,
9562
+ z.ZodObject<{
9563
+ id: z.ZodString;
9564
+ type: z.ZodLiteral<"NEXT_BUTTON">;
9565
+ config: z.ZodObject<{
9566
+ text: z.ZodOptional<z.ZodString>;
9567
+ }, "strip", z.ZodTypeAny, {
9568
+ text?: string | undefined;
9569
+ }, {
9570
+ text?: string | undefined;
9571
+ }>;
9572
+ order: z.ZodOptional<z.ZodNumber>;
9573
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9574
+ }, "strip", z.ZodTypeAny, {
9575
+ type: "NEXT_BUTTON";
9576
+ id: string;
9577
+ config: {
9578
+ text?: string | undefined;
9579
+ };
9580
+ visible: boolean;
9581
+ order?: number | undefined;
9582
+ }, {
9583
+ type: "NEXT_BUTTON";
9584
+ id: string;
9585
+ config: {
9586
+ text?: string | undefined;
9587
+ };
9588
+ order?: number | undefined;
9589
+ visible?: boolean | undefined;
9590
+ }>
9591
+ ]>, "many">;
9395
9592
  next_node: z.ZodString;
9396
9593
  }, "strip", z.ZodTypeAny, {
9397
- components: any[];
9594
+ components: ({
9595
+ type: "RICH_TEXT";
9596
+ id: string;
9597
+ config: {
9598
+ content: string;
9599
+ };
9600
+ visible: boolean;
9601
+ order?: number | undefined;
9602
+ } | {
9603
+ type: "LEGAL";
9604
+ id: string;
9605
+ config: {
9606
+ text: string;
9607
+ html?: boolean | undefined;
9608
+ };
9609
+ visible: boolean;
9610
+ required?: boolean | undefined;
9611
+ order?: number | undefined;
9612
+ } | {
9613
+ type: "NEXT_BUTTON";
9614
+ id: string;
9615
+ config: {
9616
+ text?: string | undefined;
9617
+ };
9618
+ visible: boolean;
9619
+ order?: number | undefined;
9620
+ })[];
9398
9621
  next_node: string;
9399
9622
  }, {
9400
- components: any[];
9623
+ components: ({
9624
+ type: "RICH_TEXT";
9625
+ id: string;
9626
+ config: {
9627
+ content: string;
9628
+ };
9629
+ order?: number | undefined;
9630
+ visible?: boolean | undefined;
9631
+ } | {
9632
+ type: "LEGAL";
9633
+ id: string;
9634
+ config: {
9635
+ text: string;
9636
+ html?: boolean | undefined;
9637
+ };
9638
+ required?: boolean | undefined;
9639
+ order?: number | undefined;
9640
+ visible?: boolean | undefined;
9641
+ } | {
9642
+ type: "NEXT_BUTTON";
9643
+ id: string;
9644
+ config: {
9645
+ text?: string | undefined;
9646
+ };
9647
+ order?: number | undefined;
9648
+ visible?: boolean | undefined;
9649
+ })[];
9401
9650
  next_node: string;
9402
9651
  }>;
9403
9652
  }, "strip", z.ZodTypeAny, {
9404
9653
  type: "STEP";
9405
9654
  id: string;
9406
9655
  config: {
9407
- components: any[];
9656
+ components: ({
9657
+ type: "RICH_TEXT";
9658
+ id: string;
9659
+ config: {
9660
+ content: string;
9661
+ };
9662
+ visible: boolean;
9663
+ order?: number | undefined;
9664
+ } | {
9665
+ type: "LEGAL";
9666
+ id: string;
9667
+ config: {
9668
+ text: string;
9669
+ html?: boolean | undefined;
9670
+ };
9671
+ visible: boolean;
9672
+ required?: boolean | undefined;
9673
+ order?: number | undefined;
9674
+ } | {
9675
+ type: "NEXT_BUTTON";
9676
+ id: string;
9677
+ config: {
9678
+ text?: string | undefined;
9679
+ };
9680
+ visible: boolean;
9681
+ order?: number | undefined;
9682
+ })[];
9408
9683
  next_node: string;
9409
9684
  };
9410
9685
  coordinates: {
@@ -9416,7 +9691,33 @@ export declare const formInsertSchema: z.ZodObject<{
9416
9691
  type: "STEP";
9417
9692
  id: string;
9418
9693
  config: {
9419
- components: any[];
9694
+ components: ({
9695
+ type: "RICH_TEXT";
9696
+ id: string;
9697
+ config: {
9698
+ content: string;
9699
+ };
9700
+ order?: number | undefined;
9701
+ visible?: boolean | undefined;
9702
+ } | {
9703
+ type: "LEGAL";
9704
+ id: string;
9705
+ config: {
9706
+ text: string;
9707
+ html?: boolean | undefined;
9708
+ };
9709
+ required?: boolean | undefined;
9710
+ order?: number | undefined;
9711
+ visible?: boolean | undefined;
9712
+ } | {
9713
+ type: "NEXT_BUTTON";
9714
+ id: string;
9715
+ config: {
9716
+ text?: string | undefined;
9717
+ };
9718
+ order?: number | undefined;
9719
+ visible?: boolean | undefined;
9720
+ })[];
9420
9721
  next_node: string;
9421
9722
  };
9422
9723
  coordinates: {
@@ -9585,7 +9886,33 @@ export declare const formInsertSchema: z.ZodObject<{
9585
9886
  type: "STEP";
9586
9887
  id: string;
9587
9888
  config: {
9588
- components: any[];
9889
+ components: ({
9890
+ type: "RICH_TEXT";
9891
+ id: string;
9892
+ config: {
9893
+ content: string;
9894
+ };
9895
+ visible: boolean;
9896
+ order?: number | undefined;
9897
+ } | {
9898
+ type: "LEGAL";
9899
+ id: string;
9900
+ config: {
9901
+ text: string;
9902
+ html?: boolean | undefined;
9903
+ };
9904
+ visible: boolean;
9905
+ required?: boolean | undefined;
9906
+ order?: number | undefined;
9907
+ } | {
9908
+ type: "NEXT_BUTTON";
9909
+ id: string;
9910
+ config: {
9911
+ text?: string | undefined;
9912
+ };
9913
+ visible: boolean;
9914
+ order?: number | undefined;
9915
+ })[];
9589
9916
  next_node: string;
9590
9917
  };
9591
9918
  coordinates: {
@@ -9666,7 +9993,33 @@ export declare const formInsertSchema: z.ZodObject<{
9666
9993
  type: "STEP";
9667
9994
  id: string;
9668
9995
  config: {
9669
- components: any[];
9996
+ components: ({
9997
+ type: "RICH_TEXT";
9998
+ id: string;
9999
+ config: {
10000
+ content: string;
10001
+ };
10002
+ order?: number | undefined;
10003
+ visible?: boolean | undefined;
10004
+ } | {
10005
+ type: "LEGAL";
10006
+ id: string;
10007
+ config: {
10008
+ text: string;
10009
+ html?: boolean | undefined;
10010
+ };
10011
+ required?: boolean | undefined;
10012
+ order?: number | undefined;
10013
+ visible?: boolean | undefined;
10014
+ } | {
10015
+ type: "NEXT_BUTTON";
10016
+ id: string;
10017
+ config: {
10018
+ text?: string | undefined;
10019
+ };
10020
+ order?: number | undefined;
10021
+ visible?: boolean | undefined;
10022
+ })[];
9670
10023
  next_node: string;
9671
10024
  };
9672
10025
  coordinates: {
@@ -9872,20 +10225,194 @@ export declare const formSchema: z.ZodObject<{
9872
10225
  }>;
9873
10226
  alias: z.ZodOptional<z.ZodString>;
9874
10227
  config: z.ZodObject<{
9875
- components: z.ZodArray<z.ZodAny, "many">;
10228
+ components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [
10229
+ z.ZodObject<{
10230
+ id: z.ZodString;
10231
+ type: z.ZodLiteral<"RICH_TEXT">;
10232
+ config: z.ZodObject<{
10233
+ content: z.ZodString;
10234
+ }, "strip", z.ZodTypeAny, {
10235
+ content: string;
10236
+ }, {
10237
+ content: string;
10238
+ }>;
10239
+ order: z.ZodOptional<z.ZodNumber>;
10240
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10241
+ }, "strip", z.ZodTypeAny, {
10242
+ type: "RICH_TEXT";
10243
+ id: string;
10244
+ config: {
10245
+ content: string;
10246
+ };
10247
+ visible: boolean;
10248
+ order?: number | undefined;
10249
+ }, {
10250
+ type: "RICH_TEXT";
10251
+ id: string;
10252
+ config: {
10253
+ content: string;
10254
+ };
10255
+ order?: number | undefined;
10256
+ visible?: boolean | undefined;
10257
+ }>,
10258
+ z.ZodObject<{
10259
+ id: z.ZodString;
10260
+ type: z.ZodLiteral<"LEGAL">;
10261
+ config: z.ZodObject<{
10262
+ text: z.ZodString;
10263
+ html: z.ZodOptional<z.ZodBoolean>;
10264
+ }, "strip", z.ZodTypeAny, {
10265
+ text: string;
10266
+ html?: boolean | undefined;
10267
+ }, {
10268
+ text: string;
10269
+ html?: boolean | undefined;
10270
+ }>;
10271
+ required: z.ZodOptional<z.ZodBoolean>;
10272
+ order: z.ZodOptional<z.ZodNumber>;
10273
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10274
+ }, "strip", z.ZodTypeAny, {
10275
+ type: "LEGAL";
10276
+ id: string;
10277
+ config: {
10278
+ text: string;
10279
+ html?: boolean | undefined;
10280
+ };
10281
+ visible: boolean;
10282
+ required?: boolean | undefined;
10283
+ order?: number | undefined;
10284
+ }, {
10285
+ type: "LEGAL";
10286
+ id: string;
10287
+ config: {
10288
+ text: string;
10289
+ html?: boolean | undefined;
10290
+ };
10291
+ required?: boolean | undefined;
10292
+ order?: number | undefined;
10293
+ visible?: boolean | undefined;
10294
+ }>,
10295
+ z.ZodObject<{
10296
+ id: z.ZodString;
10297
+ type: z.ZodLiteral<"NEXT_BUTTON">;
10298
+ config: z.ZodObject<{
10299
+ text: z.ZodOptional<z.ZodString>;
10300
+ }, "strip", z.ZodTypeAny, {
10301
+ text?: string | undefined;
10302
+ }, {
10303
+ text?: string | undefined;
10304
+ }>;
10305
+ order: z.ZodOptional<z.ZodNumber>;
10306
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10307
+ }, "strip", z.ZodTypeAny, {
10308
+ type: "NEXT_BUTTON";
10309
+ id: string;
10310
+ config: {
10311
+ text?: string | undefined;
10312
+ };
10313
+ visible: boolean;
10314
+ order?: number | undefined;
10315
+ }, {
10316
+ type: "NEXT_BUTTON";
10317
+ id: string;
10318
+ config: {
10319
+ text?: string | undefined;
10320
+ };
10321
+ order?: number | undefined;
10322
+ visible?: boolean | undefined;
10323
+ }>
10324
+ ]>, "many">;
9876
10325
  next_node: z.ZodString;
9877
10326
  }, "strip", z.ZodTypeAny, {
9878
- components: any[];
10327
+ components: ({
10328
+ type: "RICH_TEXT";
10329
+ id: string;
10330
+ config: {
10331
+ content: string;
10332
+ };
10333
+ visible: boolean;
10334
+ order?: number | undefined;
10335
+ } | {
10336
+ type: "LEGAL";
10337
+ id: string;
10338
+ config: {
10339
+ text: string;
10340
+ html?: boolean | undefined;
10341
+ };
10342
+ visible: boolean;
10343
+ required?: boolean | undefined;
10344
+ order?: number | undefined;
10345
+ } | {
10346
+ type: "NEXT_BUTTON";
10347
+ id: string;
10348
+ config: {
10349
+ text?: string | undefined;
10350
+ };
10351
+ visible: boolean;
10352
+ order?: number | undefined;
10353
+ })[];
9879
10354
  next_node: string;
9880
10355
  }, {
9881
- components: any[];
10356
+ components: ({
10357
+ type: "RICH_TEXT";
10358
+ id: string;
10359
+ config: {
10360
+ content: string;
10361
+ };
10362
+ order?: number | undefined;
10363
+ visible?: boolean | undefined;
10364
+ } | {
10365
+ type: "LEGAL";
10366
+ id: string;
10367
+ config: {
10368
+ text: string;
10369
+ html?: boolean | undefined;
10370
+ };
10371
+ required?: boolean | undefined;
10372
+ order?: number | undefined;
10373
+ visible?: boolean | undefined;
10374
+ } | {
10375
+ type: "NEXT_BUTTON";
10376
+ id: string;
10377
+ config: {
10378
+ text?: string | undefined;
10379
+ };
10380
+ order?: number | undefined;
10381
+ visible?: boolean | undefined;
10382
+ })[];
9882
10383
  next_node: string;
9883
10384
  }>;
9884
10385
  }, "strip", z.ZodTypeAny, {
9885
10386
  type: "STEP";
9886
10387
  id: string;
9887
10388
  config: {
9888
- components: any[];
10389
+ components: ({
10390
+ type: "RICH_TEXT";
10391
+ id: string;
10392
+ config: {
10393
+ content: string;
10394
+ };
10395
+ visible: boolean;
10396
+ order?: number | undefined;
10397
+ } | {
10398
+ type: "LEGAL";
10399
+ id: string;
10400
+ config: {
10401
+ text: string;
10402
+ html?: boolean | undefined;
10403
+ };
10404
+ visible: boolean;
10405
+ required?: boolean | undefined;
10406
+ order?: number | undefined;
10407
+ } | {
10408
+ type: "NEXT_BUTTON";
10409
+ id: string;
10410
+ config: {
10411
+ text?: string | undefined;
10412
+ };
10413
+ visible: boolean;
10414
+ order?: number | undefined;
10415
+ })[];
9889
10416
  next_node: string;
9890
10417
  };
9891
10418
  coordinates: {
@@ -9897,7 +10424,33 @@ export declare const formSchema: z.ZodObject<{
9897
10424
  type: "STEP";
9898
10425
  id: string;
9899
10426
  config: {
9900
- components: any[];
10427
+ components: ({
10428
+ type: "RICH_TEXT";
10429
+ id: string;
10430
+ config: {
10431
+ content: string;
10432
+ };
10433
+ order?: number | undefined;
10434
+ visible?: boolean | undefined;
10435
+ } | {
10436
+ type: "LEGAL";
10437
+ id: string;
10438
+ config: {
10439
+ text: string;
10440
+ html?: boolean | undefined;
10441
+ };
10442
+ required?: boolean | undefined;
10443
+ order?: number | undefined;
10444
+ visible?: boolean | undefined;
10445
+ } | {
10446
+ type: "NEXT_BUTTON";
10447
+ id: string;
10448
+ config: {
10449
+ text?: string | undefined;
10450
+ };
10451
+ order?: number | undefined;
10452
+ visible?: boolean | undefined;
10453
+ })[];
9901
10454
  next_node: string;
9902
10455
  };
9903
10456
  coordinates: {
@@ -10071,7 +10624,33 @@ export declare const formSchema: z.ZodObject<{
10071
10624
  type: "STEP";
10072
10625
  id: string;
10073
10626
  config: {
10074
- components: any[];
10627
+ components: ({
10628
+ type: "RICH_TEXT";
10629
+ id: string;
10630
+ config: {
10631
+ content: string;
10632
+ };
10633
+ visible: boolean;
10634
+ order?: number | undefined;
10635
+ } | {
10636
+ type: "LEGAL";
10637
+ id: string;
10638
+ config: {
10639
+ text: string;
10640
+ html?: boolean | undefined;
10641
+ };
10642
+ visible: boolean;
10643
+ required?: boolean | undefined;
10644
+ order?: number | undefined;
10645
+ } | {
10646
+ type: "NEXT_BUTTON";
10647
+ id: string;
10648
+ config: {
10649
+ text?: string | undefined;
10650
+ };
10651
+ visible: boolean;
10652
+ order?: number | undefined;
10653
+ })[];
10075
10654
  next_node: string;
10076
10655
  };
10077
10656
  coordinates: {
@@ -10155,7 +10734,33 @@ export declare const formSchema: z.ZodObject<{
10155
10734
  type: "STEP";
10156
10735
  id: string;
10157
10736
  config: {
10158
- components: any[];
10737
+ components: ({
10738
+ type: "RICH_TEXT";
10739
+ id: string;
10740
+ config: {
10741
+ content: string;
10742
+ };
10743
+ order?: number | undefined;
10744
+ visible?: boolean | undefined;
10745
+ } | {
10746
+ type: "LEGAL";
10747
+ id: string;
10748
+ config: {
10749
+ text: string;
10750
+ html?: boolean | undefined;
10751
+ };
10752
+ required?: boolean | undefined;
10753
+ order?: number | undefined;
10754
+ visible?: boolean | undefined;
10755
+ } | {
10756
+ type: "NEXT_BUTTON";
10757
+ id: string;
10758
+ config: {
10759
+ text?: string | undefined;
10760
+ };
10761
+ order?: number | undefined;
10762
+ visible?: boolean | undefined;
10763
+ })[];
10159
10764
  next_node: string;
10160
10765
  };
10161
10766
  coordinates: {
@@ -10185,66 +10790,127 @@ export declare const formSchema: z.ZodObject<{
10185
10790
  translations?: Record<string, any> | undefined;
10186
10791
  }>;
10187
10792
  export type Form = z.infer<typeof formSchema>;
10188
- export declare const hookInsertSchema: z.ZodObject<{
10189
- trigger_id: z.ZodEnum<[
10190
- "pre-user-signup",
10191
- "post-user-registration",
10192
- "post-user-login"
10193
- ]>;
10194
- enabled: z.ZodDefault<z.ZodBoolean>;
10195
- url: z.ZodString;
10196
- hook_id: z.ZodOptional<z.ZodString>;
10197
- synchronous: z.ZodDefault<z.ZodBoolean>;
10198
- priority: z.ZodOptional<z.ZodNumber>;
10199
- }, "strip", z.ZodTypeAny, {
10200
- enabled: boolean;
10201
- url: string;
10202
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10203
- synchronous: boolean;
10204
- hook_id?: string | undefined;
10205
- priority?: number | undefined;
10206
- }, {
10207
- url: string;
10208
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10209
- enabled?: boolean | undefined;
10210
- hook_id?: string | undefined;
10211
- synchronous?: boolean | undefined;
10212
- priority?: number | undefined;
10213
- }>;
10793
+ export declare const hookInsertSchema: z.ZodUnion<[
10794
+ z.ZodObject<{
10795
+ trigger_id: z.ZodEnum<[
10796
+ "pre-user-signup",
10797
+ "post-user-registration",
10798
+ "post-user-login"
10799
+ ]>;
10800
+ url: z.ZodString;
10801
+ enabled: z.ZodDefault<z.ZodBoolean>;
10802
+ synchronous: z.ZodDefault<z.ZodBoolean>;
10803
+ priority: z.ZodOptional<z.ZodNumber>;
10804
+ hook_id: z.ZodOptional<z.ZodString>;
10805
+ }, "strip", z.ZodTypeAny, {
10806
+ enabled: boolean;
10807
+ url: string;
10808
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10809
+ synchronous: boolean;
10810
+ priority?: number | undefined;
10811
+ hook_id?: string | undefined;
10812
+ }, {
10813
+ url: string;
10814
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10815
+ enabled?: boolean | undefined;
10816
+ synchronous?: boolean | undefined;
10817
+ priority?: number | undefined;
10818
+ hook_id?: string | undefined;
10819
+ }>,
10820
+ z.ZodObject<{
10821
+ trigger_id: z.ZodEnum<[
10822
+ "pre-user-signup",
10823
+ "post-user-registration",
10824
+ "post-user-login"
10825
+ ]>;
10826
+ form_id: z.ZodString;
10827
+ enabled: z.ZodDefault<z.ZodBoolean>;
10828
+ synchronous: z.ZodDefault<z.ZodBoolean>;
10829
+ priority: z.ZodOptional<z.ZodNumber>;
10830
+ hook_id: z.ZodOptional<z.ZodString>;
10831
+ }, "strip", z.ZodTypeAny, {
10832
+ enabled: boolean;
10833
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10834
+ synchronous: boolean;
10835
+ form_id: string;
10836
+ priority?: number | undefined;
10837
+ hook_id?: string | undefined;
10838
+ }, {
10839
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10840
+ form_id: string;
10841
+ enabled?: boolean | undefined;
10842
+ synchronous?: boolean | undefined;
10843
+ priority?: number | undefined;
10844
+ hook_id?: string | undefined;
10845
+ }>
10846
+ ]>;
10214
10847
  export type HookInsert = z.infer<typeof hookInsertSchema>;
10215
- export declare const hookSchema: z.ZodObject<{
10216
- trigger_id: z.ZodEnum<[
10217
- "pre-user-signup",
10218
- "post-user-registration",
10219
- "post-user-login"
10220
- ]>;
10221
- enabled: z.ZodDefault<z.ZodBoolean>;
10222
- url: z.ZodString;
10223
- synchronous: z.ZodDefault<z.ZodBoolean>;
10224
- priority: z.ZodOptional<z.ZodNumber>;
10225
- } & {
10226
- hook_id: z.ZodString;
10227
- created_at: z.ZodString;
10228
- updated_at: z.ZodString;
10229
- }, "strip", z.ZodTypeAny, {
10230
- created_at: string;
10231
- updated_at: string;
10232
- enabled: boolean;
10233
- url: string;
10234
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10235
- hook_id: string;
10236
- synchronous: boolean;
10237
- priority?: number | undefined;
10238
- }, {
10239
- created_at: string;
10240
- updated_at: string;
10241
- url: string;
10242
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10243
- hook_id: string;
10244
- enabled?: boolean | undefined;
10245
- synchronous?: boolean | undefined;
10246
- priority?: number | undefined;
10247
- }>;
10848
+ export declare const hookSchema: z.ZodUnion<[
10849
+ z.ZodObject<{
10850
+ hook_id: z.ZodString;
10851
+ url: z.ZodString;
10852
+ created_at: z.ZodString;
10853
+ updated_at: z.ZodString;
10854
+ trigger_id: z.ZodEnum<[
10855
+ "pre-user-signup",
10856
+ "post-user-registration",
10857
+ "post-user-login"
10858
+ ]>;
10859
+ enabled: z.ZodDefault<z.ZodBoolean>;
10860
+ synchronous: z.ZodDefault<z.ZodBoolean>;
10861
+ priority: z.ZodOptional<z.ZodNumber>;
10862
+ }, "strip", z.ZodTypeAny, {
10863
+ created_at: string;
10864
+ updated_at: string;
10865
+ enabled: boolean;
10866
+ url: string;
10867
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10868
+ synchronous: boolean;
10869
+ hook_id: string;
10870
+ priority?: number | undefined;
10871
+ }, {
10872
+ created_at: string;
10873
+ updated_at: string;
10874
+ url: string;
10875
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10876
+ hook_id: string;
10877
+ enabled?: boolean | undefined;
10878
+ synchronous?: boolean | undefined;
10879
+ priority?: number | undefined;
10880
+ }>,
10881
+ z.ZodObject<{
10882
+ hook_id: z.ZodString;
10883
+ form_id: z.ZodString;
10884
+ created_at: z.ZodString;
10885
+ updated_at: z.ZodString;
10886
+ trigger_id: z.ZodEnum<[
10887
+ "pre-user-signup",
10888
+ "post-user-registration",
10889
+ "post-user-login"
10890
+ ]>;
10891
+ enabled: z.ZodDefault<z.ZodBoolean>;
10892
+ synchronous: z.ZodDefault<z.ZodBoolean>;
10893
+ priority: z.ZodOptional<z.ZodNumber>;
10894
+ }, "strip", z.ZodTypeAny, {
10895
+ created_at: string;
10896
+ updated_at: string;
10897
+ enabled: boolean;
10898
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10899
+ synchronous: boolean;
10900
+ hook_id: string;
10901
+ form_id: string;
10902
+ priority?: number | undefined;
10903
+ }, {
10904
+ created_at: string;
10905
+ updated_at: string;
10906
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10907
+ hook_id: string;
10908
+ form_id: string;
10909
+ enabled?: boolean | undefined;
10910
+ synchronous?: boolean | undefined;
10911
+ priority?: number | undefined;
10912
+ }>
10913
+ ]>;
10248
10914
  export type Hook = z.infer<typeof hookSchema>;
10249
10915
  export declare const profileDataSchema: z.ZodObject<{
10250
10916
  email: z.ZodOptional<z.ZodString>;