@inploi/plugin-chatbot 4.3.1 → 5.0.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.
@@ -1,5 +1,5 @@
1
1
  import { FlowNode } from '@inploi/core/flows';
2
- import { AnySchema, Output } from 'valibot';
2
+ import { GenericSchema, InferOutput } from 'valibot';
3
3
  export type FlowPayload = {
4
4
  flow: {
5
5
  id: string;
@@ -8,10 +8,10 @@ export type FlowPayload = {
8
8
  };
9
9
  };
10
10
  export declare const FlowSchema: import("valibot").ObjectSchema<{
11
- id: import("valibot").StringSchema<string>;
12
- version: import("valibot").NumberSchema<number>;
13
- build: import("valibot").NumberSchema<number>;
14
- nodes: import("valibot").ArraySchema<AnySchema<{
11
+ readonly id: import("valibot").SchemaWithPipe<readonly [import("valibot").UnionSchema<[import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>], undefined>, import("valibot").TransformAction<any, string>]>;
12
+ readonly version: import("valibot").NumberSchema<undefined>;
13
+ readonly build: import("valibot").NumberSchema<undefined>;
14
+ readonly nodes: import("valibot").ArraySchema<GenericSchema<{
15
15
  data: {
16
16
  text: string;
17
17
  };
@@ -235,1926 +235,19 @@ export declare const FlowSchema: import("valibot").ObjectSchema<{
235
235
  id: string;
236
236
  isHead?: boolean | undefined;
237
237
  nextId?: string | undefined;
238
- }>, ({
239
- data: {
240
- text: string;
241
- };
242
- type: "text";
243
- id: string;
244
- isHead?: boolean | undefined;
245
- nextId?: string | undefined;
246
- } | {
247
- data: {
248
- systemMessage: string;
249
- };
250
- type: "end-flow";
251
- id: string;
252
- isHead?: boolean | undefined;
253
- nextId?: string | undefined;
254
- } | {
255
- data: {
256
- integrationId: string;
257
- skipConfirmation: boolean;
258
- submitLabel: string;
259
- submitKeys: (string[] | "all") & (string[] | "all" | undefined);
260
- key?: string | undefined;
261
- };
262
- type: "integration-application-submit";
263
- id: string;
264
- isHead?: boolean | undefined;
265
- nextId?: string | undefined;
266
- } | {
267
- data: {
268
- integrationId: string;
269
- };
270
- type: "integration-workflow-get";
271
- id: string;
272
- isHead?: boolean | undefined;
273
- nextId?: string | undefined;
274
- } | {
275
- data: {
276
- href: string;
277
- cta: string;
278
- };
279
- type: "link";
280
- id: string;
281
- isHead?: boolean | undefined;
282
- nextId?: string | undefined;
283
- } | {
284
- data: {
285
- url: string;
286
- width: number;
287
- height: number;
288
- };
289
- type: "image";
290
- id: string;
291
- isHead?: boolean | undefined;
292
- nextId?: string | undefined;
293
- } | {
294
- data: {
295
- key: string;
296
- question: string;
297
- trueLabel: string;
298
- falseLabel: string;
299
- optional: boolean;
300
- };
301
- type: "question-boolean";
302
- id: string;
303
- isHead?: boolean | undefined;
304
- nextId?: string | undefined;
305
- } | {
306
- data: {
307
- key: string;
308
- question: string;
309
- optional: boolean;
310
- format: "text" | "phone" | "url" | "email";
311
- placeholder?: string | undefined;
312
- maxChars?: number | undefined;
313
- minChars?: number | undefined;
314
- };
315
- type: "question-text";
316
- id: string;
317
- isHead?: boolean | undefined;
318
- nextId?: string | undefined;
319
- } | {
320
- data: {
321
- key: string;
322
- question: string;
323
- optional: boolean;
324
- placeholder?: string | undefined;
325
- decimalCases?: number | undefined;
326
- min?: number | undefined;
327
- max?: number | undefined;
328
- };
329
- type: "question-number";
330
- id: string;
331
- isHead?: boolean | undefined;
332
- nextId?: string | undefined;
333
- } | {
334
- data: {
335
- key: string;
336
- question: string;
337
- optional: boolean;
338
- placeholder: string;
339
- minChars: number;
340
- defaultCountryCode: string;
341
- };
342
- type: "question-phone";
343
- id: string;
344
- isHead?: boolean | undefined;
345
- nextId?: string | undefined;
346
- } | {
347
- data: {
348
- options: {
349
- value: string;
350
- label: string;
351
- }[];
352
- key: string;
353
- question: string;
354
- maxSelected: number;
355
- minSelected: number;
356
- };
357
- type: "question-enum";
358
- id: string;
359
- isHead?: boolean | undefined;
360
- nextId?: string | undefined;
361
- } | {
362
- data: {
363
- key: string;
364
- question: string;
365
- optional: boolean;
366
- extensions: string[];
367
- multiple?: boolean | undefined;
368
- maxSizeKb?: number | undefined;
369
- };
370
- type: "question-file";
371
- id: string;
372
- isHead?: boolean | undefined;
373
- nextId?: string | undefined;
374
- } | {
375
- data: {
376
- keys: {
377
- line1: string | null;
378
- line2: string | null;
379
- line3: string | null;
380
- city: string | null;
381
- state: string | null;
382
- postcode: string | null;
383
- country: string | null;
384
- };
385
- key: string;
386
- question: string;
387
- optional: boolean;
388
- placeholder?: string | undefined;
389
- };
390
- type: "question-address";
391
- id: string;
392
- isHead?: boolean | undefined;
393
- nextId?: string | undefined;
394
- } | {
395
- data: ({
396
- compareKey: string;
397
- compareValue: string;
398
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
399
- } | {
400
- combinator: "and" | "or";
401
- conditions: {
402
- compareKey: string;
403
- compareValue: string;
404
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
405
- }[];
406
- }) & ({
407
- compareKey: string;
408
- compareValue: string;
409
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
410
- } | {
411
- combinator: "and" | "or";
412
- conditions: {
413
- compareKey: string;
414
- compareValue: string;
415
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
416
- }[];
417
- } | undefined);
418
- type: "if-block";
419
- id: string;
420
- isHead?: boolean | undefined;
421
- nextId?: string | undefined;
422
- branchId?: string | undefined;
423
- } | {
424
- data: {
425
- targetId: string;
426
- };
427
- type: "jump";
428
- id: string;
429
- isHead?: boolean | undefined;
430
- nextId?: string | undefined;
431
- } | {
432
- data: {
433
- value: string;
434
- key: string;
435
- };
436
- type: "add-submission";
437
- id: string;
438
- isHead?: boolean | undefined;
439
- nextId?: string | undefined;
440
- } | {
441
- data: {
442
- key: string;
443
- firstName?: string | undefined;
444
- lastName?: string | undefined;
445
- phoneNumber?: string | undefined;
446
- email?: string | undefined;
447
- customTraits?: {
448
- value: string;
449
- key: string;
450
- }[] | undefined;
451
- };
452
- type: "identify";
453
- id: string;
454
- isHead?: boolean | undefined;
455
- nextId?: string | undefined;
456
- } | {
457
- data: {};
458
- type: "feedback";
459
- id: string;
460
- isHead?: boolean | undefined;
461
- nextId?: string | undefined;
462
- })[]>;
463
- context_schema: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").RecordSchema<import("valibot").StringSchema<string>, import("valibot").ObjectSchema<{
464
- required: import("valibot").BooleanSchema<boolean>;
465
- type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"string", "string">, import("valibot").LiteralSchema<"number", "number">], "string" | "number">;
466
- }, undefined, {
467
- required: boolean;
468
- type: "string" | "number";
469
- }>, {
470
- [x: string]: {
471
- required: boolean;
472
- type: "string" | "number";
473
- };
474
- }>, undefined, {
475
- [x: string]: {
476
- required: boolean;
477
- type: "string" | "number";
478
- };
479
- } | null>, undefined, {
480
- [x: string]: {
481
- required: boolean;
482
- type: "string" | "number";
483
- };
484
- } | null | undefined>;
485
- }, undefined, {
486
- id: string;
487
- version: number;
488
- build: number;
489
- nodes: ({
490
- data: {
491
- text: string;
492
- };
493
- type: "text";
494
- id: string;
495
- isHead?: boolean | undefined;
496
- nextId?: string | undefined;
497
- } | {
498
- data: {
499
- systemMessage: string;
500
- };
501
- type: "end-flow";
502
- id: string;
503
- isHead?: boolean | undefined;
504
- nextId?: string | undefined;
505
- } | {
506
- data: {
507
- integrationId: string;
508
- skipConfirmation: boolean;
509
- submitLabel: string;
510
- submitKeys: (string[] | "all") & (string[] | "all" | undefined);
511
- key?: string | undefined;
512
- };
513
- type: "integration-application-submit";
514
- id: string;
515
- isHead?: boolean | undefined;
516
- nextId?: string | undefined;
517
- } | {
518
- data: {
519
- integrationId: string;
520
- };
521
- type: "integration-workflow-get";
522
- id: string;
523
- isHead?: boolean | undefined;
524
- nextId?: string | undefined;
525
- } | {
526
- data: {
527
- href: string;
528
- cta: string;
529
- };
530
- type: "link";
531
- id: string;
532
- isHead?: boolean | undefined;
533
- nextId?: string | undefined;
534
- } | {
535
- data: {
536
- url: string;
537
- width: number;
538
- height: number;
539
- };
540
- type: "image";
541
- id: string;
542
- isHead?: boolean | undefined;
543
- nextId?: string | undefined;
544
- } | {
545
- data: {
546
- key: string;
547
- question: string;
548
- trueLabel: string;
549
- falseLabel: string;
550
- optional: boolean;
551
- };
552
- type: "question-boolean";
553
- id: string;
554
- isHead?: boolean | undefined;
555
- nextId?: string | undefined;
556
- } | {
557
- data: {
558
- key: string;
559
- question: string;
560
- optional: boolean;
561
- format: "text" | "phone" | "url" | "email";
562
- placeholder?: string | undefined;
563
- maxChars?: number | undefined;
564
- minChars?: number | undefined;
565
- };
566
- type: "question-text";
567
- id: string;
568
- isHead?: boolean | undefined;
569
- nextId?: string | undefined;
570
- } | {
571
- data: {
572
- key: string;
573
- question: string;
574
- optional: boolean;
575
- placeholder?: string | undefined;
576
- decimalCases?: number | undefined;
577
- min?: number | undefined;
578
- max?: number | undefined;
579
- };
580
- type: "question-number";
581
- id: string;
582
- isHead?: boolean | undefined;
583
- nextId?: string | undefined;
584
- } | {
585
- data: {
586
- key: string;
587
- question: string;
588
- optional: boolean;
589
- placeholder: string;
590
- minChars: number;
591
- defaultCountryCode: string;
592
- };
593
- type: "question-phone";
594
- id: string;
595
- isHead?: boolean | undefined;
596
- nextId?: string | undefined;
597
- } | {
598
- data: {
599
- options: {
600
- value: string;
601
- label: string;
602
- }[];
603
- key: string;
604
- question: string;
605
- maxSelected: number;
606
- minSelected: number;
607
- };
608
- type: "question-enum";
609
- id: string;
610
- isHead?: boolean | undefined;
611
- nextId?: string | undefined;
612
- } | {
613
- data: {
614
- key: string;
615
- question: string;
616
- optional: boolean;
617
- extensions: string[];
618
- multiple?: boolean | undefined;
619
- maxSizeKb?: number | undefined;
620
- };
621
- type: "question-file";
622
- id: string;
623
- isHead?: boolean | undefined;
624
- nextId?: string | undefined;
625
- } | {
626
- data: {
627
- keys: {
628
- line1: string | null;
629
- line2: string | null;
630
- line3: string | null;
631
- city: string | null;
632
- state: string | null;
633
- postcode: string | null;
634
- country: string | null;
635
- };
636
- key: string;
637
- question: string;
638
- optional: boolean;
639
- placeholder?: string | undefined;
640
- };
641
- type: "question-address";
642
- id: string;
643
- isHead?: boolean | undefined;
644
- nextId?: string | undefined;
645
- } | {
646
- data: ({
647
- compareKey: string;
648
- compareValue: string;
649
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
650
- } | {
651
- combinator: "and" | "or";
652
- conditions: {
653
- compareKey: string;
654
- compareValue: string;
655
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
656
- }[];
657
- }) & ({
658
- compareKey: string;
659
- compareValue: string;
660
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
661
- } | {
662
- combinator: "and" | "or";
663
- conditions: {
664
- compareKey: string;
665
- compareValue: string;
666
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
667
- }[];
668
- } | undefined);
669
- type: "if-block";
670
- id: string;
671
- isHead?: boolean | undefined;
672
- nextId?: string | undefined;
673
- branchId?: string | undefined;
674
- } | {
675
- data: {
676
- targetId: string;
677
- };
678
- type: "jump";
679
- id: string;
680
- isHead?: boolean | undefined;
681
- nextId?: string | undefined;
682
- } | {
683
- data: {
684
- value: string;
685
- key: string;
686
- };
687
- type: "add-submission";
688
- id: string;
689
- isHead?: boolean | undefined;
690
- nextId?: string | undefined;
691
- } | {
692
- data: {
693
- key: string;
694
- firstName?: string | undefined;
695
- lastName?: string | undefined;
696
- phoneNumber?: string | undefined;
697
- email?: string | undefined;
698
- customTraits?: {
699
- value: string;
700
- key: string;
701
- }[] | undefined;
702
- };
703
- type: "identify";
704
- id: string;
705
- isHead?: boolean | undefined;
706
- nextId?: string | undefined;
707
- } | {
708
- data: {};
709
- type: "feedback";
710
- id: string;
711
- isHead?: boolean | undefined;
712
- nextId?: string | undefined;
713
- })[];
714
- context_schema?: {
715
- [x: string]: {
716
- required: boolean;
717
- type: "string" | "number";
718
- };
719
- } | null | undefined;
720
- }>;
721
- export type Flow = Output<typeof FlowSchema>;
722
- export declare const FlowByIdPayloadSchema: import("valibot").ObjectSchema<{
723
- flow: import("valibot").ObjectSchema<{
724
- id: import("valibot").StringSchema<string>;
725
- version: import("valibot").NumberSchema<number>;
726
- build: import("valibot").NumberSchema<number>;
727
- nodes: import("valibot").ArraySchema<AnySchema<{
728
- data: {
729
- text: string;
730
- };
731
- type: "text";
732
- id: string;
733
- isHead?: boolean | undefined;
734
- nextId?: string | undefined;
735
- } | {
736
- data: {
737
- systemMessage: string;
738
- };
739
- type: "end-flow";
740
- id: string;
741
- isHead?: boolean | undefined;
742
- nextId?: string | undefined;
743
- } | {
744
- data: {
745
- integrationId: string;
746
- skipConfirmation: boolean;
747
- submitLabel: string;
748
- submitKeys: (string[] | "all") & (string[] | "all" | undefined);
749
- key?: string | undefined;
750
- };
751
- type: "integration-application-submit";
752
- id: string;
753
- isHead?: boolean | undefined;
754
- nextId?: string | undefined;
755
- } | {
756
- data: {
757
- integrationId: string;
758
- };
759
- type: "integration-workflow-get";
760
- id: string;
761
- isHead?: boolean | undefined;
762
- nextId?: string | undefined;
763
- } | {
764
- data: {
765
- href: string;
766
- cta: string;
767
- };
768
- type: "link";
769
- id: string;
770
- isHead?: boolean | undefined;
771
- nextId?: string | undefined;
772
- } | {
773
- data: {
774
- url: string;
775
- width: number;
776
- height: number;
777
- };
778
- type: "image";
779
- id: string;
780
- isHead?: boolean | undefined;
781
- nextId?: string | undefined;
782
- } | {
783
- data: {
784
- key: string;
785
- question: string;
786
- trueLabel: string;
787
- falseLabel: string;
788
- optional: boolean;
789
- };
790
- type: "question-boolean";
791
- id: string;
792
- isHead?: boolean | undefined;
793
- nextId?: string | undefined;
794
- } | {
795
- data: {
796
- key: string;
797
- question: string;
798
- optional: boolean;
799
- format: "text" | "phone" | "url" | "email";
800
- placeholder?: string | undefined;
801
- maxChars?: number | undefined;
802
- minChars?: number | undefined;
803
- };
804
- type: "question-text";
805
- id: string;
806
- isHead?: boolean | undefined;
807
- nextId?: string | undefined;
808
- } | {
809
- data: {
810
- key: string;
811
- question: string;
812
- optional: boolean;
813
- placeholder?: string | undefined;
814
- decimalCases?: number | undefined;
815
- min?: number | undefined;
816
- max?: number | undefined;
817
- };
818
- type: "question-number";
819
- id: string;
820
- isHead?: boolean | undefined;
821
- nextId?: string | undefined;
822
- } | {
823
- data: {
824
- key: string;
825
- question: string;
826
- optional: boolean;
827
- placeholder: string;
828
- minChars: number;
829
- defaultCountryCode: string;
830
- };
831
- type: "question-phone";
832
- id: string;
833
- isHead?: boolean | undefined;
834
- nextId?: string | undefined;
835
- } | {
836
- data: {
837
- options: {
838
- value: string;
839
- label: string;
840
- }[];
841
- key: string;
842
- question: string;
843
- maxSelected: number;
844
- minSelected: number;
845
- };
846
- type: "question-enum";
847
- id: string;
848
- isHead?: boolean | undefined;
849
- nextId?: string | undefined;
850
- } | {
851
- data: {
852
- key: string;
853
- question: string;
854
- optional: boolean;
855
- extensions: string[];
856
- multiple?: boolean | undefined;
857
- maxSizeKb?: number | undefined;
858
- };
859
- type: "question-file";
860
- id: string;
861
- isHead?: boolean | undefined;
862
- nextId?: string | undefined;
863
- } | {
864
- data: {
865
- keys: {
866
- line1: string | null;
867
- line2: string | null;
868
- line3: string | null;
869
- city: string | null;
870
- state: string | null;
871
- postcode: string | null;
872
- country: string | null;
873
- };
874
- key: string;
875
- question: string;
876
- optional: boolean;
877
- placeholder?: string | undefined;
878
- };
879
- type: "question-address";
880
- id: string;
881
- isHead?: boolean | undefined;
882
- nextId?: string | undefined;
883
- } | {
884
- data: ({
885
- compareKey: string;
886
- compareValue: string;
887
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
888
- } | {
889
- combinator: "and" | "or";
890
- conditions: {
891
- compareKey: string;
892
- compareValue: string;
893
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
894
- }[];
895
- }) & ({
896
- compareKey: string;
897
- compareValue: string;
898
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
899
- } | {
900
- combinator: "and" | "or";
901
- conditions: {
902
- compareKey: string;
903
- compareValue: string;
904
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
905
- }[];
906
- } | undefined);
907
- type: "if-block";
908
- id: string;
909
- isHead?: boolean | undefined;
910
- nextId?: string | undefined;
911
- branchId?: string | undefined;
912
- } | {
913
- data: {
914
- targetId: string;
915
- };
916
- type: "jump";
917
- id: string;
918
- isHead?: boolean | undefined;
919
- nextId?: string | undefined;
920
- } | {
921
- data: {
922
- value: string;
923
- key: string;
924
- };
925
- type: "add-submission";
926
- id: string;
927
- isHead?: boolean | undefined;
928
- nextId?: string | undefined;
929
- } | {
930
- data: {
931
- key: string;
932
- firstName?: string | undefined;
933
- lastName?: string | undefined;
934
- phoneNumber?: string | undefined;
935
- email?: string | undefined;
936
- customTraits?: {
937
- value: string;
938
- key: string;
939
- }[] | undefined;
940
- };
941
- type: "identify";
942
- id: string;
943
- isHead?: boolean | undefined;
944
- nextId?: string | undefined;
945
- } | {
946
- data: {};
947
- type: "feedback";
948
- id: string;
949
- isHead?: boolean | undefined;
950
- nextId?: string | undefined;
951
- }>, ({
952
- data: {
953
- text: string;
954
- };
955
- type: "text";
956
- id: string;
957
- isHead?: boolean | undefined;
958
- nextId?: string | undefined;
959
- } | {
960
- data: {
961
- systemMessage: string;
962
- };
963
- type: "end-flow";
964
- id: string;
965
- isHead?: boolean | undefined;
966
- nextId?: string | undefined;
967
- } | {
968
- data: {
969
- integrationId: string;
970
- skipConfirmation: boolean;
971
- submitLabel: string;
972
- submitKeys: (string[] | "all") & (string[] | "all" | undefined);
973
- key?: string | undefined;
974
- };
975
- type: "integration-application-submit";
976
- id: string;
977
- isHead?: boolean | undefined;
978
- nextId?: string | undefined;
979
- } | {
980
- data: {
981
- integrationId: string;
982
- };
983
- type: "integration-workflow-get";
984
- id: string;
985
- isHead?: boolean | undefined;
986
- nextId?: string | undefined;
987
- } | {
988
- data: {
989
- href: string;
990
- cta: string;
991
- };
992
- type: "link";
993
- id: string;
994
- isHead?: boolean | undefined;
995
- nextId?: string | undefined;
996
- } | {
997
- data: {
998
- url: string;
999
- width: number;
1000
- height: number;
1001
- };
1002
- type: "image";
1003
- id: string;
1004
- isHead?: boolean | undefined;
1005
- nextId?: string | undefined;
1006
- } | {
1007
- data: {
1008
- key: string;
1009
- question: string;
1010
- trueLabel: string;
1011
- falseLabel: string;
1012
- optional: boolean;
1013
- };
1014
- type: "question-boolean";
1015
- id: string;
1016
- isHead?: boolean | undefined;
1017
- nextId?: string | undefined;
1018
- } | {
1019
- data: {
1020
- key: string;
1021
- question: string;
1022
- optional: boolean;
1023
- format: "text" | "phone" | "url" | "email";
1024
- placeholder?: string | undefined;
1025
- maxChars?: number | undefined;
1026
- minChars?: number | undefined;
1027
- };
1028
- type: "question-text";
1029
- id: string;
1030
- isHead?: boolean | undefined;
1031
- nextId?: string | undefined;
1032
- } | {
1033
- data: {
1034
- key: string;
1035
- question: string;
1036
- optional: boolean;
1037
- placeholder?: string | undefined;
1038
- decimalCases?: number | undefined;
1039
- min?: number | undefined;
1040
- max?: number | undefined;
1041
- };
1042
- type: "question-number";
1043
- id: string;
1044
- isHead?: boolean | undefined;
1045
- nextId?: string | undefined;
1046
- } | {
1047
- data: {
1048
- key: string;
1049
- question: string;
1050
- optional: boolean;
1051
- placeholder: string;
1052
- minChars: number;
1053
- defaultCountryCode: string;
1054
- };
1055
- type: "question-phone";
1056
- id: string;
1057
- isHead?: boolean | undefined;
1058
- nextId?: string | undefined;
1059
- } | {
1060
- data: {
1061
- options: {
1062
- value: string;
1063
- label: string;
1064
- }[];
1065
- key: string;
1066
- question: string;
1067
- maxSelected: number;
1068
- minSelected: number;
1069
- };
1070
- type: "question-enum";
1071
- id: string;
1072
- isHead?: boolean | undefined;
1073
- nextId?: string | undefined;
1074
- } | {
1075
- data: {
1076
- key: string;
1077
- question: string;
1078
- optional: boolean;
1079
- extensions: string[];
1080
- multiple?: boolean | undefined;
1081
- maxSizeKb?: number | undefined;
1082
- };
1083
- type: "question-file";
1084
- id: string;
1085
- isHead?: boolean | undefined;
1086
- nextId?: string | undefined;
1087
- } | {
1088
- data: {
1089
- keys: {
1090
- line1: string | null;
1091
- line2: string | null;
1092
- line3: string | null;
1093
- city: string | null;
1094
- state: string | null;
1095
- postcode: string | null;
1096
- country: string | null;
1097
- };
1098
- key: string;
1099
- question: string;
1100
- optional: boolean;
1101
- placeholder?: string | undefined;
1102
- };
1103
- type: "question-address";
1104
- id: string;
1105
- isHead?: boolean | undefined;
1106
- nextId?: string | undefined;
1107
- } | {
1108
- data: ({
1109
- compareKey: string;
1110
- compareValue: string;
1111
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
1112
- } | {
1113
- combinator: "and" | "or";
1114
- conditions: {
1115
- compareKey: string;
1116
- compareValue: string;
1117
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
1118
- }[];
1119
- }) & ({
1120
- compareKey: string;
1121
- compareValue: string;
1122
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
1123
- } | {
1124
- combinator: "and" | "or";
1125
- conditions: {
1126
- compareKey: string;
1127
- compareValue: string;
1128
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
1129
- }[];
1130
- } | undefined);
1131
- type: "if-block";
1132
- id: string;
1133
- isHead?: boolean | undefined;
1134
- nextId?: string | undefined;
1135
- branchId?: string | undefined;
1136
- } | {
1137
- data: {
1138
- targetId: string;
1139
- };
1140
- type: "jump";
1141
- id: string;
1142
- isHead?: boolean | undefined;
1143
- nextId?: string | undefined;
1144
- } | {
1145
- data: {
1146
- value: string;
1147
- key: string;
1148
- };
1149
- type: "add-submission";
1150
- id: string;
1151
- isHead?: boolean | undefined;
1152
- nextId?: string | undefined;
1153
- } | {
1154
- data: {
1155
- key: string;
1156
- firstName?: string | undefined;
1157
- lastName?: string | undefined;
1158
- phoneNumber?: string | undefined;
1159
- email?: string | undefined;
1160
- customTraits?: {
1161
- value: string;
1162
- key: string;
1163
- }[] | undefined;
1164
- };
1165
- type: "identify";
1166
- id: string;
1167
- isHead?: boolean | undefined;
1168
- nextId?: string | undefined;
1169
- } | {
1170
- data: {};
1171
- type: "feedback";
1172
- id: string;
1173
- isHead?: boolean | undefined;
1174
- nextId?: string | undefined;
1175
- })[]>;
1176
- context_schema: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").RecordSchema<import("valibot").StringSchema<string>, import("valibot").ObjectSchema<{
1177
- required: import("valibot").BooleanSchema<boolean>;
1178
- type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"string", "string">, import("valibot").LiteralSchema<"number", "number">], "string" | "number">;
1179
- }, undefined, {
1180
- required: boolean;
1181
- type: "string" | "number";
1182
- }>, {
1183
- [x: string]: {
1184
- required: boolean;
1185
- type: "string" | "number";
1186
- };
1187
- }>, undefined, {
1188
- [x: string]: {
1189
- required: boolean;
1190
- type: "string" | "number";
1191
- };
1192
- } | null>, undefined, {
1193
- [x: string]: {
1194
- required: boolean;
1195
- type: "string" | "number";
1196
- };
1197
- } | null | undefined>;
1198
- }, undefined, {
1199
- id: string;
1200
- version: number;
1201
- build: number;
1202
- nodes: ({
1203
- data: {
1204
- text: string;
1205
- };
1206
- type: "text";
1207
- id: string;
1208
- isHead?: boolean | undefined;
1209
- nextId?: string | undefined;
1210
- } | {
1211
- data: {
1212
- systemMessage: string;
1213
- };
1214
- type: "end-flow";
1215
- id: string;
1216
- isHead?: boolean | undefined;
1217
- nextId?: string | undefined;
1218
- } | {
1219
- data: {
1220
- integrationId: string;
1221
- skipConfirmation: boolean;
1222
- submitLabel: string;
1223
- submitKeys: (string[] | "all") & (string[] | "all" | undefined);
1224
- key?: string | undefined;
1225
- };
1226
- type: "integration-application-submit";
1227
- id: string;
1228
- isHead?: boolean | undefined;
1229
- nextId?: string | undefined;
1230
- } | {
1231
- data: {
1232
- integrationId: string;
1233
- };
1234
- type: "integration-workflow-get";
1235
- id: string;
1236
- isHead?: boolean | undefined;
1237
- nextId?: string | undefined;
1238
- } | {
1239
- data: {
1240
- href: string;
1241
- cta: string;
1242
- };
1243
- type: "link";
1244
- id: string;
1245
- isHead?: boolean | undefined;
1246
- nextId?: string | undefined;
1247
- } | {
1248
- data: {
1249
- url: string;
1250
- width: number;
1251
- height: number;
1252
- };
1253
- type: "image";
1254
- id: string;
1255
- isHead?: boolean | undefined;
1256
- nextId?: string | undefined;
1257
- } | {
1258
- data: {
1259
- key: string;
1260
- question: string;
1261
- trueLabel: string;
1262
- falseLabel: string;
1263
- optional: boolean;
1264
- };
1265
- type: "question-boolean";
1266
- id: string;
1267
- isHead?: boolean | undefined;
1268
- nextId?: string | undefined;
1269
- } | {
1270
- data: {
1271
- key: string;
1272
- question: string;
1273
- optional: boolean;
1274
- format: "text" | "phone" | "url" | "email";
1275
- placeholder?: string | undefined;
1276
- maxChars?: number | undefined;
1277
- minChars?: number | undefined;
1278
- };
1279
- type: "question-text";
1280
- id: string;
1281
- isHead?: boolean | undefined;
1282
- nextId?: string | undefined;
1283
- } | {
1284
- data: {
1285
- key: string;
1286
- question: string;
1287
- optional: boolean;
1288
- placeholder?: string | undefined;
1289
- decimalCases?: number | undefined;
1290
- min?: number | undefined;
1291
- max?: number | undefined;
1292
- };
1293
- type: "question-number";
1294
- id: string;
1295
- isHead?: boolean | undefined;
1296
- nextId?: string | undefined;
1297
- } | {
1298
- data: {
1299
- key: string;
1300
- question: string;
1301
- optional: boolean;
1302
- placeholder: string;
1303
- minChars: number;
1304
- defaultCountryCode: string;
1305
- };
1306
- type: "question-phone";
1307
- id: string;
1308
- isHead?: boolean | undefined;
1309
- nextId?: string | undefined;
1310
- } | {
1311
- data: {
1312
- options: {
1313
- value: string;
1314
- label: string;
1315
- }[];
1316
- key: string;
1317
- question: string;
1318
- maxSelected: number;
1319
- minSelected: number;
1320
- };
1321
- type: "question-enum";
1322
- id: string;
1323
- isHead?: boolean | undefined;
1324
- nextId?: string | undefined;
1325
- } | {
1326
- data: {
1327
- key: string;
1328
- question: string;
1329
- optional: boolean;
1330
- extensions: string[];
1331
- multiple?: boolean | undefined;
1332
- maxSizeKb?: number | undefined;
1333
- };
1334
- type: "question-file";
1335
- id: string;
1336
- isHead?: boolean | undefined;
1337
- nextId?: string | undefined;
1338
- } | {
1339
- data: {
1340
- keys: {
1341
- line1: string | null;
1342
- line2: string | null;
1343
- line3: string | null;
1344
- city: string | null;
1345
- state: string | null;
1346
- postcode: string | null;
1347
- country: string | null;
1348
- };
1349
- key: string;
1350
- question: string;
1351
- optional: boolean;
1352
- placeholder?: string | undefined;
1353
- };
1354
- type: "question-address";
1355
- id: string;
1356
- isHead?: boolean | undefined;
1357
- nextId?: string | undefined;
1358
- } | {
1359
- data: ({
1360
- compareKey: string;
1361
- compareValue: string;
1362
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
1363
- } | {
1364
- combinator: "and" | "or";
1365
- conditions: {
1366
- compareKey: string;
1367
- compareValue: string;
1368
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
1369
- }[];
1370
- }) & ({
1371
- compareKey: string;
1372
- compareValue: string;
1373
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
1374
- } | {
1375
- combinator: "and" | "or";
1376
- conditions: {
1377
- compareKey: string;
1378
- compareValue: string;
1379
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
1380
- }[];
1381
- } | undefined);
1382
- type: "if-block";
1383
- id: string;
1384
- isHead?: boolean | undefined;
1385
- nextId?: string | undefined;
1386
- branchId?: string | undefined;
1387
- } | {
1388
- data: {
1389
- targetId: string;
1390
- };
1391
- type: "jump";
1392
- id: string;
1393
- isHead?: boolean | undefined;
1394
- nextId?: string | undefined;
1395
- } | {
1396
- data: {
1397
- value: string;
1398
- key: string;
1399
- };
1400
- type: "add-submission";
1401
- id: string;
1402
- isHead?: boolean | undefined;
1403
- nextId?: string | undefined;
1404
- } | {
1405
- data: {
1406
- key: string;
1407
- firstName?: string | undefined;
1408
- lastName?: string | undefined;
1409
- phoneNumber?: string | undefined;
1410
- email?: string | undefined;
1411
- customTraits?: {
1412
- value: string;
1413
- key: string;
1414
- }[] | undefined;
1415
- };
1416
- type: "identify";
1417
- id: string;
1418
- isHead?: boolean | undefined;
1419
- nextId?: string | undefined;
1420
- } | {
1421
- data: {};
1422
- type: "feedback";
1423
- id: string;
1424
- isHead?: boolean | undefined;
1425
- nextId?: string | undefined;
1426
- })[];
1427
- context_schema?: {
1428
- [x: string]: {
1429
- required: boolean;
1430
- type: "string" | "number";
1431
- };
1432
- } | null | undefined;
1433
- }>;
1434
- }, undefined, {
1435
- flow: {
1436
- id: string;
1437
- version: number;
1438
- build: number;
1439
- nodes: ({
1440
- data: {
1441
- text: string;
1442
- };
1443
- type: "text";
1444
- id: string;
1445
- isHead?: boolean | undefined;
1446
- nextId?: string | undefined;
1447
- } | {
1448
- data: {
1449
- systemMessage: string;
1450
- };
1451
- type: "end-flow";
1452
- id: string;
1453
- isHead?: boolean | undefined;
1454
- nextId?: string | undefined;
1455
- } | {
1456
- data: {
1457
- integrationId: string;
1458
- skipConfirmation: boolean;
1459
- submitLabel: string;
1460
- submitKeys: (string[] | "all") & (string[] | "all" | undefined);
1461
- key?: string | undefined;
1462
- };
1463
- type: "integration-application-submit";
1464
- id: string;
1465
- isHead?: boolean | undefined;
1466
- nextId?: string | undefined;
1467
- } | {
1468
- data: {
1469
- integrationId: string;
1470
- };
1471
- type: "integration-workflow-get";
1472
- id: string;
1473
- isHead?: boolean | undefined;
1474
- nextId?: string | undefined;
1475
- } | {
1476
- data: {
1477
- href: string;
1478
- cta: string;
1479
- };
1480
- type: "link";
1481
- id: string;
1482
- isHead?: boolean | undefined;
1483
- nextId?: string | undefined;
1484
- } | {
1485
- data: {
1486
- url: string;
1487
- width: number;
1488
- height: number;
1489
- };
1490
- type: "image";
1491
- id: string;
1492
- isHead?: boolean | undefined;
1493
- nextId?: string | undefined;
1494
- } | {
1495
- data: {
1496
- key: string;
1497
- question: string;
1498
- trueLabel: string;
1499
- falseLabel: string;
1500
- optional: boolean;
1501
- };
1502
- type: "question-boolean";
1503
- id: string;
1504
- isHead?: boolean | undefined;
1505
- nextId?: string | undefined;
1506
- } | {
1507
- data: {
1508
- key: string;
1509
- question: string;
1510
- optional: boolean;
1511
- format: "text" | "phone" | "url" | "email";
1512
- placeholder?: string | undefined;
1513
- maxChars?: number | undefined;
1514
- minChars?: number | undefined;
1515
- };
1516
- type: "question-text";
1517
- id: string;
1518
- isHead?: boolean | undefined;
1519
- nextId?: string | undefined;
1520
- } | {
1521
- data: {
1522
- key: string;
1523
- question: string;
1524
- optional: boolean;
1525
- placeholder?: string | undefined;
1526
- decimalCases?: number | undefined;
1527
- min?: number | undefined;
1528
- max?: number | undefined;
1529
- };
1530
- type: "question-number";
1531
- id: string;
1532
- isHead?: boolean | undefined;
1533
- nextId?: string | undefined;
1534
- } | {
1535
- data: {
1536
- key: string;
1537
- question: string;
1538
- optional: boolean;
1539
- placeholder: string;
1540
- minChars: number;
1541
- defaultCountryCode: string;
1542
- };
1543
- type: "question-phone";
1544
- id: string;
1545
- isHead?: boolean | undefined;
1546
- nextId?: string | undefined;
1547
- } | {
1548
- data: {
1549
- options: {
1550
- value: string;
1551
- label: string;
1552
- }[];
1553
- key: string;
1554
- question: string;
1555
- maxSelected: number;
1556
- minSelected: number;
1557
- };
1558
- type: "question-enum";
1559
- id: string;
1560
- isHead?: boolean | undefined;
1561
- nextId?: string | undefined;
1562
- } | {
1563
- data: {
1564
- key: string;
1565
- question: string;
1566
- optional: boolean;
1567
- extensions: string[];
1568
- multiple?: boolean | undefined;
1569
- maxSizeKb?: number | undefined;
1570
- };
1571
- type: "question-file";
1572
- id: string;
1573
- isHead?: boolean | undefined;
1574
- nextId?: string | undefined;
1575
- } | {
1576
- data: {
1577
- keys: {
1578
- line1: string | null;
1579
- line2: string | null;
1580
- line3: string | null;
1581
- city: string | null;
1582
- state: string | null;
1583
- postcode: string | null;
1584
- country: string | null;
1585
- };
1586
- key: string;
1587
- question: string;
1588
- optional: boolean;
1589
- placeholder?: string | undefined;
1590
- };
1591
- type: "question-address";
1592
- id: string;
1593
- isHead?: boolean | undefined;
1594
- nextId?: string | undefined;
1595
- } | {
1596
- data: ({
1597
- compareKey: string;
1598
- compareValue: string;
1599
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
1600
- } | {
1601
- combinator: "and" | "or";
1602
- conditions: {
1603
- compareKey: string;
1604
- compareValue: string;
1605
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
1606
- }[];
1607
- }) & ({
1608
- compareKey: string;
1609
- compareValue: string;
1610
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
1611
- } | {
1612
- combinator: "and" | "or";
1613
- conditions: {
1614
- compareKey: string;
1615
- compareValue: string;
1616
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
1617
- }[];
1618
- } | undefined);
1619
- type: "if-block";
1620
- id: string;
1621
- isHead?: boolean | undefined;
1622
- nextId?: string | undefined;
1623
- branchId?: string | undefined;
1624
- } | {
1625
- data: {
1626
- targetId: string;
1627
- };
1628
- type: "jump";
1629
- id: string;
1630
- isHead?: boolean | undefined;
1631
- nextId?: string | undefined;
1632
- } | {
1633
- data: {
1634
- value: string;
1635
- key: string;
1636
- };
1637
- type: "add-submission";
1638
- id: string;
1639
- isHead?: boolean | undefined;
1640
- nextId?: string | undefined;
1641
- } | {
1642
- data: {
1643
- key: string;
1644
- firstName?: string | undefined;
1645
- lastName?: string | undefined;
1646
- phoneNumber?: string | undefined;
1647
- email?: string | undefined;
1648
- customTraits?: {
1649
- value: string;
1650
- key: string;
1651
- }[] | undefined;
1652
- };
1653
- type: "identify";
1654
- id: string;
1655
- isHead?: boolean | undefined;
1656
- nextId?: string | undefined;
1657
- } | {
1658
- data: {};
1659
- type: "feedback";
1660
- id: string;
1661
- isHead?: boolean | undefined;
1662
- nextId?: string | undefined;
1663
- })[];
1664
- context_schema?: {
1665
- [x: string]: {
1666
- required: boolean;
1667
- type: "string" | "number";
1668
- };
1669
- } | null | undefined;
1670
- };
1671
- }>;
1672
- export declare const FlowByJobPayloadSchema: import("valibot").ObjectSchema<{
1673
- company: import("valibot").ObjectSchema<{
1674
- name: import("valibot").StringSchema<string>;
1675
- }, undefined, {
1676
- name: string;
1677
- }>;
1678
- flow: import("valibot").ObjectSchema<{
1679
- id: import("valibot").StringSchema<string>;
1680
- version: import("valibot").NumberSchema<number>;
1681
- build: import("valibot").NumberSchema<number>;
1682
- nodes: import("valibot").ArraySchema<AnySchema<{
1683
- data: {
1684
- text: string;
1685
- };
1686
- type: "text";
1687
- id: string;
1688
- isHead?: boolean | undefined;
1689
- nextId?: string | undefined;
1690
- } | {
1691
- data: {
1692
- systemMessage: string;
1693
- };
1694
- type: "end-flow";
1695
- id: string;
1696
- isHead?: boolean | undefined;
1697
- nextId?: string | undefined;
1698
- } | {
1699
- data: {
1700
- integrationId: string;
1701
- skipConfirmation: boolean;
1702
- submitLabel: string;
1703
- submitKeys: (string[] | "all") & (string[] | "all" | undefined);
1704
- key?: string | undefined;
1705
- };
1706
- type: "integration-application-submit";
1707
- id: string;
1708
- isHead?: boolean | undefined;
1709
- nextId?: string | undefined;
1710
- } | {
1711
- data: {
1712
- integrationId: string;
1713
- };
1714
- type: "integration-workflow-get";
1715
- id: string;
1716
- isHead?: boolean | undefined;
1717
- nextId?: string | undefined;
1718
- } | {
1719
- data: {
1720
- href: string;
1721
- cta: string;
1722
- };
1723
- type: "link";
1724
- id: string;
1725
- isHead?: boolean | undefined;
1726
- nextId?: string | undefined;
1727
- } | {
1728
- data: {
1729
- url: string;
1730
- width: number;
1731
- height: number;
1732
- };
1733
- type: "image";
1734
- id: string;
1735
- isHead?: boolean | undefined;
1736
- nextId?: string | undefined;
1737
- } | {
1738
- data: {
1739
- key: string;
1740
- question: string;
1741
- trueLabel: string;
1742
- falseLabel: string;
1743
- optional: boolean;
1744
- };
1745
- type: "question-boolean";
1746
- id: string;
1747
- isHead?: boolean | undefined;
1748
- nextId?: string | undefined;
1749
- } | {
1750
- data: {
1751
- key: string;
1752
- question: string;
1753
- optional: boolean;
1754
- format: "text" | "phone" | "url" | "email";
1755
- placeholder?: string | undefined;
1756
- maxChars?: number | undefined;
1757
- minChars?: number | undefined;
1758
- };
1759
- type: "question-text";
1760
- id: string;
1761
- isHead?: boolean | undefined;
1762
- nextId?: string | undefined;
1763
- } | {
1764
- data: {
1765
- key: string;
1766
- question: string;
1767
- optional: boolean;
1768
- placeholder?: string | undefined;
1769
- decimalCases?: number | undefined;
1770
- min?: number | undefined;
1771
- max?: number | undefined;
1772
- };
1773
- type: "question-number";
1774
- id: string;
1775
- isHead?: boolean | undefined;
1776
- nextId?: string | undefined;
1777
- } | {
1778
- data: {
1779
- key: string;
1780
- question: string;
1781
- optional: boolean;
1782
- placeholder: string;
1783
- minChars: number;
1784
- defaultCountryCode: string;
1785
- };
1786
- type: "question-phone";
1787
- id: string;
1788
- isHead?: boolean | undefined;
1789
- nextId?: string | undefined;
1790
- } | {
1791
- data: {
1792
- options: {
1793
- value: string;
1794
- label: string;
1795
- }[];
1796
- key: string;
1797
- question: string;
1798
- maxSelected: number;
1799
- minSelected: number;
1800
- };
1801
- type: "question-enum";
1802
- id: string;
1803
- isHead?: boolean | undefined;
1804
- nextId?: string | undefined;
1805
- } | {
1806
- data: {
1807
- key: string;
1808
- question: string;
1809
- optional: boolean;
1810
- extensions: string[];
1811
- multiple?: boolean | undefined;
1812
- maxSizeKb?: number | undefined;
1813
- };
1814
- type: "question-file";
1815
- id: string;
1816
- isHead?: boolean | undefined;
1817
- nextId?: string | undefined;
1818
- } | {
1819
- data: {
1820
- keys: {
1821
- line1: string | null;
1822
- line2: string | null;
1823
- line3: string | null;
1824
- city: string | null;
1825
- state: string | null;
1826
- postcode: string | null;
1827
- country: string | null;
1828
- };
1829
- key: string;
1830
- question: string;
1831
- optional: boolean;
1832
- placeholder?: string | undefined;
1833
- };
1834
- type: "question-address";
1835
- id: string;
1836
- isHead?: boolean | undefined;
1837
- nextId?: string | undefined;
1838
- } | {
1839
- data: ({
1840
- compareKey: string;
1841
- compareValue: string;
1842
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
1843
- } | {
1844
- combinator: "and" | "or";
1845
- conditions: {
1846
- compareKey: string;
1847
- compareValue: string;
1848
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
1849
- }[];
1850
- }) & ({
1851
- compareKey: string;
1852
- compareValue: string;
1853
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
1854
- } | {
1855
- combinator: "and" | "or";
1856
- conditions: {
1857
- compareKey: string;
1858
- compareValue: string;
1859
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
1860
- }[];
1861
- } | undefined);
1862
- type: "if-block";
1863
- id: string;
1864
- isHead?: boolean | undefined;
1865
- nextId?: string | undefined;
1866
- branchId?: string | undefined;
1867
- } | {
1868
- data: {
1869
- targetId: string;
1870
- };
1871
- type: "jump";
1872
- id: string;
1873
- isHead?: boolean | undefined;
1874
- nextId?: string | undefined;
1875
- } | {
1876
- data: {
1877
- value: string;
1878
- key: string;
1879
- };
1880
- type: "add-submission";
1881
- id: string;
1882
- isHead?: boolean | undefined;
1883
- nextId?: string | undefined;
1884
- } | {
1885
- data: {
1886
- key: string;
1887
- firstName?: string | undefined;
1888
- lastName?: string | undefined;
1889
- phoneNumber?: string | undefined;
1890
- email?: string | undefined;
1891
- customTraits?: {
1892
- value: string;
1893
- key: string;
1894
- }[] | undefined;
1895
- };
1896
- type: "identify";
1897
- id: string;
1898
- isHead?: boolean | undefined;
1899
- nextId?: string | undefined;
1900
- } | {
1901
- data: {};
1902
- type: "feedback";
1903
- id: string;
1904
- isHead?: boolean | undefined;
1905
- nextId?: string | undefined;
1906
- }>, ({
1907
- data: {
1908
- text: string;
1909
- };
1910
- type: "text";
1911
- id: string;
1912
- isHead?: boolean | undefined;
1913
- nextId?: string | undefined;
1914
- } | {
1915
- data: {
1916
- systemMessage: string;
1917
- };
1918
- type: "end-flow";
1919
- id: string;
1920
- isHead?: boolean | undefined;
1921
- nextId?: string | undefined;
1922
- } | {
1923
- data: {
1924
- integrationId: string;
1925
- skipConfirmation: boolean;
1926
- submitLabel: string;
1927
- submitKeys: (string[] | "all") & (string[] | "all" | undefined);
1928
- key?: string | undefined;
1929
- };
1930
- type: "integration-application-submit";
1931
- id: string;
1932
- isHead?: boolean | undefined;
1933
- nextId?: string | undefined;
1934
- } | {
1935
- data: {
1936
- integrationId: string;
1937
- };
1938
- type: "integration-workflow-get";
1939
- id: string;
1940
- isHead?: boolean | undefined;
1941
- nextId?: string | undefined;
1942
- } | {
1943
- data: {
1944
- href: string;
1945
- cta: string;
1946
- };
1947
- type: "link";
1948
- id: string;
1949
- isHead?: boolean | undefined;
1950
- nextId?: string | undefined;
1951
- } | {
1952
- data: {
1953
- url: string;
1954
- width: number;
1955
- height: number;
1956
- };
1957
- type: "image";
1958
- id: string;
1959
- isHead?: boolean | undefined;
1960
- nextId?: string | undefined;
1961
- } | {
1962
- data: {
1963
- key: string;
1964
- question: string;
1965
- trueLabel: string;
1966
- falseLabel: string;
1967
- optional: boolean;
1968
- };
1969
- type: "question-boolean";
1970
- id: string;
1971
- isHead?: boolean | undefined;
1972
- nextId?: string | undefined;
1973
- } | {
1974
- data: {
1975
- key: string;
1976
- question: string;
1977
- optional: boolean;
1978
- format: "text" | "phone" | "url" | "email";
1979
- placeholder?: string | undefined;
1980
- maxChars?: number | undefined;
1981
- minChars?: number | undefined;
1982
- };
1983
- type: "question-text";
1984
- id: string;
1985
- isHead?: boolean | undefined;
1986
- nextId?: string | undefined;
1987
- } | {
1988
- data: {
1989
- key: string;
1990
- question: string;
1991
- optional: boolean;
1992
- placeholder?: string | undefined;
1993
- decimalCases?: number | undefined;
1994
- min?: number | undefined;
1995
- max?: number | undefined;
1996
- };
1997
- type: "question-number";
1998
- id: string;
1999
- isHead?: boolean | undefined;
2000
- nextId?: string | undefined;
2001
- } | {
2002
- data: {
2003
- key: string;
2004
- question: string;
2005
- optional: boolean;
2006
- placeholder: string;
2007
- minChars: number;
2008
- defaultCountryCode: string;
2009
- };
2010
- type: "question-phone";
2011
- id: string;
2012
- isHead?: boolean | undefined;
2013
- nextId?: string | undefined;
2014
- } | {
2015
- data: {
2016
- options: {
2017
- value: string;
2018
- label: string;
2019
- }[];
2020
- key: string;
2021
- question: string;
2022
- maxSelected: number;
2023
- minSelected: number;
2024
- };
2025
- type: "question-enum";
2026
- id: string;
2027
- isHead?: boolean | undefined;
2028
- nextId?: string | undefined;
2029
- } | {
2030
- data: {
2031
- key: string;
2032
- question: string;
2033
- optional: boolean;
2034
- extensions: string[];
2035
- multiple?: boolean | undefined;
2036
- maxSizeKb?: number | undefined;
2037
- };
2038
- type: "question-file";
2039
- id: string;
2040
- isHead?: boolean | undefined;
2041
- nextId?: string | undefined;
2042
- } | {
2043
- data: {
2044
- keys: {
2045
- line1: string | null;
2046
- line2: string | null;
2047
- line3: string | null;
2048
- city: string | null;
2049
- state: string | null;
2050
- postcode: string | null;
2051
- country: string | null;
2052
- };
2053
- key: string;
2054
- question: string;
2055
- optional: boolean;
2056
- placeholder?: string | undefined;
2057
- };
2058
- type: "question-address";
2059
- id: string;
2060
- isHead?: boolean | undefined;
2061
- nextId?: string | undefined;
2062
- } | {
2063
- data: ({
2064
- compareKey: string;
2065
- compareValue: string;
2066
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
2067
- } | {
2068
- combinator: "and" | "or";
2069
- conditions: {
2070
- compareKey: string;
2071
- compareValue: string;
2072
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
2073
- }[];
2074
- }) & ({
2075
- compareKey: string;
2076
- compareValue: string;
2077
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
2078
- } | {
2079
- combinator: "and" | "or";
2080
- conditions: {
2081
- compareKey: string;
2082
- compareValue: string;
2083
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
2084
- }[];
2085
- } | undefined);
2086
- type: "if-block";
2087
- id: string;
2088
- isHead?: boolean | undefined;
2089
- nextId?: string | undefined;
2090
- branchId?: string | undefined;
2091
- } | {
2092
- data: {
2093
- targetId: string;
2094
- };
2095
- type: "jump";
2096
- id: string;
2097
- isHead?: boolean | undefined;
2098
- nextId?: string | undefined;
2099
- } | {
2100
- data: {
2101
- value: string;
2102
- key: string;
2103
- };
2104
- type: "add-submission";
2105
- id: string;
2106
- isHead?: boolean | undefined;
2107
- nextId?: string | undefined;
2108
- } | {
2109
- data: {
2110
- key: string;
2111
- firstName?: string | undefined;
2112
- lastName?: string | undefined;
2113
- phoneNumber?: string | undefined;
2114
- email?: string | undefined;
2115
- customTraits?: {
2116
- value: string;
2117
- key: string;
2118
- }[] | undefined;
2119
- };
2120
- type: "identify";
2121
- id: string;
2122
- isHead?: boolean | undefined;
2123
- nextId?: string | undefined;
2124
- } | {
2125
- data: {};
2126
- type: "feedback";
2127
- id: string;
2128
- isHead?: boolean | undefined;
2129
- nextId?: string | undefined;
2130
- })[]>;
2131
- context_schema: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").RecordSchema<import("valibot").StringSchema<string>, import("valibot").ObjectSchema<{
2132
- required: import("valibot").BooleanSchema<boolean>;
2133
- type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"string", "string">, import("valibot").LiteralSchema<"number", "number">], "string" | "number">;
2134
- }, undefined, {
2135
- required: boolean;
2136
- type: "string" | "number";
2137
- }>, {
2138
- [x: string]: {
2139
- required: boolean;
2140
- type: "string" | "number";
2141
- };
2142
- }>, undefined, {
2143
- [x: string]: {
2144
- required: boolean;
2145
- type: "string" | "number";
2146
- };
2147
- } | null>, undefined, {
2148
- [x: string]: {
2149
- required: boolean;
2150
- type: "string" | "number";
2151
- };
2152
- } | null | undefined>;
2153
- }, undefined, {
2154
- id: string;
2155
- version: number;
2156
- build: number;
2157
- nodes: ({
238
+ }>, undefined>;
239
+ readonly context_schema: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ObjectSchema<{
240
+ readonly required: import("valibot").BooleanSchema<undefined>;
241
+ readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"string", undefined>, import("valibot").LiteralSchema<"number", undefined>], undefined>;
242
+ }, undefined>, undefined>, undefined>, undefined>;
243
+ }, undefined>;
244
+ export type Flow = InferOutput<typeof FlowSchema>;
245
+ export declare const FlowByIdPayloadSchema: import("valibot").ObjectSchema<{
246
+ readonly flow: import("valibot").ObjectSchema<{
247
+ readonly id: import("valibot").SchemaWithPipe<readonly [import("valibot").UnionSchema<[import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>], undefined>, import("valibot").TransformAction<any, string>]>;
248
+ readonly version: import("valibot").NumberSchema<undefined>;
249
+ readonly build: import("valibot").NumberSchema<undefined>;
250
+ readonly nodes: import("valibot").ArraySchema<GenericSchema<{
2158
251
  data: {
2159
252
  text: string;
2160
253
  };
@@ -2378,43 +471,22 @@ export declare const FlowByJobPayloadSchema: import("valibot").ObjectSchema<{
2378
471
  id: string;
2379
472
  isHead?: boolean | undefined;
2380
473
  nextId?: string | undefined;
2381
- })[];
2382
- context_schema?: {
2383
- [x: string]: {
2384
- required: boolean;
2385
- type: "string" | "number";
2386
- };
2387
- } | null | undefined;
2388
- }>;
2389
- job: import("valibot").ObjectSchema<{
2390
- id: import("valibot").StringSchema<string>;
2391
- title: import("valibot").StringSchema<string>;
2392
- }, undefined, {
2393
- id: string;
2394
- title: string;
2395
- }>;
2396
- user: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
2397
- city: import("valibot").OptionalSchema<import("valibot").StringSchema<string>, undefined, string | undefined>;
2398
- country: import("valibot").OptionalSchema<import("valibot").StringSchema<string>, undefined, string | undefined>;
2399
- isEU: import("valibot").OptionalSchema<import("valibot").BooleanSchema<boolean>, undefined, boolean | undefined>;
2400
- continent: import("valibot").OptionalSchema<import("valibot").StringSchema<string>, undefined, string | undefined>;
2401
- }, undefined, {
2402
- city?: string | undefined;
2403
- country?: string | undefined;
2404
- isEU?: boolean | undefined;
2405
- continent?: string | undefined;
2406
- }>, undefined, {
2407
- city?: string | undefined;
2408
- country?: string | undefined;
2409
- isEU?: boolean | undefined;
2410
- continent?: string | undefined;
2411
- } | undefined>;
2412
- }, undefined, {
2413
- flow: {
2414
- id: string;
2415
- version: number;
2416
- build: number;
2417
- nodes: ({
474
+ }>, undefined>;
475
+ readonly context_schema: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ObjectSchema<{
476
+ readonly required: import("valibot").BooleanSchema<undefined>;
477
+ readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"string", undefined>, import("valibot").LiteralSchema<"number", undefined>], undefined>;
478
+ }, undefined>, undefined>, undefined>, undefined>;
479
+ }, undefined>;
480
+ }, undefined>;
481
+ export declare const FlowByJobPayloadSchema: import("valibot").ObjectSchema<{
482
+ readonly company: import("valibot").ObjectSchema<{
483
+ readonly name: import("valibot").StringSchema<undefined>;
484
+ }, undefined>;
485
+ readonly flow: import("valibot").ObjectSchema<{
486
+ readonly id: import("valibot").SchemaWithPipe<readonly [import("valibot").UnionSchema<[import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>], undefined>, import("valibot").TransformAction<any, string>]>;
487
+ readonly version: import("valibot").NumberSchema<undefined>;
488
+ readonly build: import("valibot").NumberSchema<undefined>;
489
+ readonly nodes: import("valibot").ArraySchema<GenericSchema<{
2418
490
  data: {
2419
491
  text: string;
2420
492
  };
@@ -2638,28 +710,23 @@ export declare const FlowByJobPayloadSchema: import("valibot").ObjectSchema<{
2638
710
  id: string;
2639
711
  isHead?: boolean | undefined;
2640
712
  nextId?: string | undefined;
2641
- })[];
2642
- context_schema?: {
2643
- [x: string]: {
2644
- required: boolean;
2645
- type: "string" | "number";
2646
- };
2647
- } | null | undefined;
2648
- };
2649
- company: {
2650
- name: string;
2651
- };
2652
- job: {
2653
- id: string;
2654
- title: string;
2655
- };
2656
- user?: {
2657
- city?: string | undefined;
2658
- country?: string | undefined;
2659
- isEU?: boolean | undefined;
2660
- continent?: string | undefined;
2661
- } | undefined;
2662
- }>;
713
+ }>, undefined>;
714
+ readonly context_schema: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ObjectSchema<{
715
+ readonly required: import("valibot").BooleanSchema<undefined>;
716
+ readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"string", undefined>, import("valibot").LiteralSchema<"number", undefined>], undefined>;
717
+ }, undefined>, undefined>, undefined>, undefined>;
718
+ }, undefined>;
719
+ readonly job: import("valibot").ObjectSchema<{
720
+ readonly id: import("valibot").SchemaWithPipe<readonly [import("valibot").UnionSchema<[import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>], undefined>, import("valibot").TransformAction<any, string>]>;
721
+ readonly title: import("valibot").StringSchema<undefined>;
722
+ }, undefined>;
723
+ readonly user: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
724
+ readonly city: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
725
+ readonly country: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
726
+ readonly isEU: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
727
+ readonly continent: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
728
+ }, undefined>, undefined>;
729
+ }, undefined>;
2663
730
  export type JobApplication = {
2664
731
  job: {
2665
732
  id: string;