@scout9/app 1.0.0-alpha.0.1.85 → 1.0.0-alpha.0.1.86

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.
package/types/index.d.ts CHANGED
@@ -539,6 +539,467 @@ declare module '@scout9/app/testing-tools' {
539
539
 
540
540
  declare module '@scout9/app/types' {
541
541
  import type { z } from 'zod';
542
+ export const customerValueSchema: z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>;
543
+ export const customerSchema: z.ZodObject<{
544
+ firstName: z.ZodOptional<z.ZodString>;
545
+ lastName: z.ZodOptional<z.ZodString>;
546
+ name: z.ZodString;
547
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
548
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
549
+ img: z.ZodOptional<z.ZodNullable<z.ZodString>>;
550
+ neighborhood: z.ZodOptional<z.ZodNullable<z.ZodString>>;
551
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
552
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
553
+ line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
554
+ line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
555
+ postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
556
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
557
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
558
+ joined: z.ZodOptional<z.ZodNullable<z.ZodString>>;
559
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodString>>;
560
+ stripeDev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
561
+ }, "strip", z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>, z.objectOutputType<{
562
+ firstName: z.ZodOptional<z.ZodString>;
563
+ lastName: z.ZodOptional<z.ZodString>;
564
+ name: z.ZodString;
565
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
566
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
567
+ img: z.ZodOptional<z.ZodNullable<z.ZodString>>;
568
+ neighborhood: z.ZodOptional<z.ZodNullable<z.ZodString>>;
569
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
570
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
571
+ line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
572
+ line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
573
+ postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
574
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
575
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
576
+ joined: z.ZodOptional<z.ZodNullable<z.ZodString>>;
577
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodString>>;
578
+ stripeDev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
579
+ }, z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>, "strip">, z.objectInputType<{
580
+ firstName: z.ZodOptional<z.ZodString>;
581
+ lastName: z.ZodOptional<z.ZodString>;
582
+ name: z.ZodString;
583
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
584
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
585
+ img: z.ZodOptional<z.ZodNullable<z.ZodString>>;
586
+ neighborhood: z.ZodOptional<z.ZodNullable<z.ZodString>>;
587
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
588
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
589
+ line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
590
+ line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
591
+ postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
592
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
593
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
594
+ joined: z.ZodOptional<z.ZodNullable<z.ZodString>>;
595
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodString>>;
596
+ stripeDev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
597
+ }, z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>, "strip">>;
598
+ export const agentBaseConfigurationSchema: z.ZodObject<{
599
+ deployed: z.ZodOptional<z.ZodObject<{
600
+ web: z.ZodOptional<z.ZodString>;
601
+ phone: z.ZodOptional<z.ZodString>;
602
+ email: z.ZodOptional<z.ZodString>;
603
+ }, "strip", z.ZodTypeAny, {
604
+ web?: string | undefined;
605
+ phone?: string | undefined;
606
+ email?: string | undefined;
607
+ }, {
608
+ web?: string | undefined;
609
+ phone?: string | undefined;
610
+ email?: string | undefined;
611
+ }>>;
612
+ firstName: z.ZodOptional<z.ZodString>;
613
+ lastName: z.ZodOptional<z.ZodString>;
614
+ inactive: z.ZodOptional<z.ZodBoolean>;
615
+ programmablePhoneNumber: z.ZodOptional<z.ZodString>;
616
+ programmablePhoneNumberSid: z.ZodOptional<z.ZodString>;
617
+ programmableEmail: z.ZodOptional<z.ZodString>;
618
+ forwardEmail: z.ZodOptional<z.ZodString>;
619
+ forwardPhone: z.ZodOptional<z.ZodString>;
620
+ title: z.ZodDefault<z.ZodOptional<z.ZodString>>;
621
+ context: z.ZodDefault<z.ZodOptional<z.ZodString>>;
622
+ includedLocations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
623
+ excludedLocations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
624
+ model: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Scout9", "bard", "openai"]>>>;
625
+ transcripts: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
626
+ content: z.ZodString;
627
+ role: z.ZodEnum<["agent", "customer", "system"]>;
628
+ time: z.ZodString;
629
+ name: z.ZodOptional<z.ZodString>;
630
+ }, "strip", z.ZodTypeAny, {
631
+ time: string;
632
+ content: string;
633
+ role: "agent" | "customer" | "system";
634
+ name?: string | undefined;
635
+ }, {
636
+ time: string;
637
+ content: string;
638
+ role: "agent" | "customer" | "system";
639
+ name?: string | undefined;
640
+ }>, "many">, "many">>;
641
+ audios: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
642
+ }, "strip", z.ZodTypeAny, {
643
+ title: string;
644
+ context: string;
645
+ model: "openai" | "bard" | "Scout9";
646
+ deployed?: {
647
+ web?: string | undefined;
648
+ phone?: string | undefined;
649
+ email?: string | undefined;
650
+ } | undefined;
651
+ firstName?: string | undefined;
652
+ lastName?: string | undefined;
653
+ inactive?: boolean | undefined;
654
+ programmablePhoneNumber?: string | undefined;
655
+ programmablePhoneNumberSid?: string | undefined;
656
+ programmableEmail?: string | undefined;
657
+ forwardEmail?: string | undefined;
658
+ forwardPhone?: string | undefined;
659
+ includedLocations?: string[] | undefined;
660
+ excludedLocations?: string[] | undefined;
661
+ transcripts?: {
662
+ time: string;
663
+ content: string;
664
+ role: "agent" | "customer" | "system";
665
+ name?: string | undefined;
666
+ }[][] | undefined;
667
+ audios?: any[] | undefined;
668
+ }, {
669
+ deployed?: {
670
+ web?: string | undefined;
671
+ phone?: string | undefined;
672
+ email?: string | undefined;
673
+ } | undefined;
674
+ firstName?: string | undefined;
675
+ lastName?: string | undefined;
676
+ inactive?: boolean | undefined;
677
+ programmablePhoneNumber?: string | undefined;
678
+ programmablePhoneNumberSid?: string | undefined;
679
+ programmableEmail?: string | undefined;
680
+ forwardEmail?: string | undefined;
681
+ forwardPhone?: string | undefined;
682
+ title?: string | undefined;
683
+ context?: string | undefined;
684
+ includedLocations?: string[] | undefined;
685
+ excludedLocations?: string[] | undefined;
686
+ model?: "openai" | "bard" | "Scout9" | undefined;
687
+ transcripts?: {
688
+ time: string;
689
+ content: string;
690
+ role: "agent" | "customer" | "system";
691
+ name?: string | undefined;
692
+ }[][] | undefined;
693
+ audios?: any[] | undefined;
694
+ }>;
695
+ export const agentConfigurationSchema: z.ZodObject<{
696
+ inactive: z.ZodOptional<z.ZodBoolean>;
697
+ title: z.ZodDefault<z.ZodOptional<z.ZodString>>;
698
+ context: z.ZodDefault<z.ZodOptional<z.ZodString>>;
699
+ firstName: z.ZodOptional<z.ZodString>;
700
+ lastName: z.ZodOptional<z.ZodString>;
701
+ transcripts: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
702
+ content: z.ZodString;
703
+ role: z.ZodEnum<["agent", "customer", "system"]>;
704
+ time: z.ZodString;
705
+ name: z.ZodOptional<z.ZodString>;
706
+ }, "strip", z.ZodTypeAny, {
707
+ time: string;
708
+ content: string;
709
+ role: "agent" | "customer" | "system";
710
+ name?: string | undefined;
711
+ }, {
712
+ time: string;
713
+ content: string;
714
+ role: "agent" | "customer" | "system";
715
+ name?: string | undefined;
716
+ }>, "many">, "many">>;
717
+ audios: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
718
+ includedLocations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
719
+ excludedLocations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
720
+ model: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Scout9", "bard", "openai"]>>>;
721
+ deployed: z.ZodOptional<z.ZodObject<{
722
+ web: z.ZodOptional<z.ZodString>;
723
+ phone: z.ZodOptional<z.ZodString>;
724
+ email: z.ZodOptional<z.ZodString>;
725
+ }, "strip", z.ZodTypeAny, {
726
+ web?: string | undefined;
727
+ phone?: string | undefined;
728
+ email?: string | undefined;
729
+ }, {
730
+ web?: string | undefined;
731
+ phone?: string | undefined;
732
+ email?: string | undefined;
733
+ }>>;
734
+ programmablePhoneNumber: z.ZodOptional<z.ZodString>;
735
+ programmablePhoneNumberSid: z.ZodOptional<z.ZodString>;
736
+ programmableEmail: z.ZodOptional<z.ZodString>;
737
+ forwardEmail: z.ZodOptional<z.ZodString>;
738
+ forwardPhone: z.ZodOptional<z.ZodString>;
739
+ id: z.ZodString;
740
+ }, "strip", z.ZodTypeAny, {
741
+ id: string;
742
+ title: string;
743
+ context: string;
744
+ model: "openai" | "bard" | "Scout9";
745
+ inactive?: boolean | undefined;
746
+ firstName?: string | undefined;
747
+ lastName?: string | undefined;
748
+ transcripts?: {
749
+ time: string;
750
+ content: string;
751
+ role: "agent" | "customer" | "system";
752
+ name?: string | undefined;
753
+ }[][] | undefined;
754
+ audios?: any[] | undefined;
755
+ includedLocations?: string[] | undefined;
756
+ excludedLocations?: string[] | undefined;
757
+ deployed?: {
758
+ web?: string | undefined;
759
+ phone?: string | undefined;
760
+ email?: string | undefined;
761
+ } | undefined;
762
+ programmablePhoneNumber?: string | undefined;
763
+ programmablePhoneNumberSid?: string | undefined;
764
+ programmableEmail?: string | undefined;
765
+ forwardEmail?: string | undefined;
766
+ forwardPhone?: string | undefined;
767
+ }, {
768
+ id: string;
769
+ inactive?: boolean | undefined;
770
+ title?: string | undefined;
771
+ context?: string | undefined;
772
+ firstName?: string | undefined;
773
+ lastName?: string | undefined;
774
+ transcripts?: {
775
+ time: string;
776
+ content: string;
777
+ role: "agent" | "customer" | "system";
778
+ name?: string | undefined;
779
+ }[][] | undefined;
780
+ audios?: any[] | undefined;
781
+ includedLocations?: string[] | undefined;
782
+ excludedLocations?: string[] | undefined;
783
+ model?: "openai" | "bard" | "Scout9" | undefined;
784
+ deployed?: {
785
+ web?: string | undefined;
786
+ phone?: string | undefined;
787
+ email?: string | undefined;
788
+ } | undefined;
789
+ programmablePhoneNumber?: string | undefined;
790
+ programmablePhoneNumberSid?: string | undefined;
791
+ programmableEmail?: string | undefined;
792
+ forwardEmail?: string | undefined;
793
+ forwardPhone?: string | undefined;
794
+ }>;
795
+ export const agentsConfigurationSchema: z.ZodArray<z.ZodObject<{
796
+ inactive: z.ZodOptional<z.ZodBoolean>;
797
+ title: z.ZodDefault<z.ZodOptional<z.ZodString>>;
798
+ context: z.ZodDefault<z.ZodOptional<z.ZodString>>;
799
+ firstName: z.ZodOptional<z.ZodString>;
800
+ lastName: z.ZodOptional<z.ZodString>;
801
+ transcripts: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
802
+ content: z.ZodString;
803
+ role: z.ZodEnum<["agent", "customer", "system"]>;
804
+ time: z.ZodString;
805
+ name: z.ZodOptional<z.ZodString>;
806
+ }, "strip", z.ZodTypeAny, {
807
+ time: string;
808
+ content: string;
809
+ role: "agent" | "customer" | "system";
810
+ name?: string | undefined;
811
+ }, {
812
+ time: string;
813
+ content: string;
814
+ role: "agent" | "customer" | "system";
815
+ name?: string | undefined;
816
+ }>, "many">, "many">>;
817
+ audios: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
818
+ includedLocations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
819
+ excludedLocations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
820
+ model: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Scout9", "bard", "openai"]>>>;
821
+ deployed: z.ZodOptional<z.ZodObject<{
822
+ web: z.ZodOptional<z.ZodString>;
823
+ phone: z.ZodOptional<z.ZodString>;
824
+ email: z.ZodOptional<z.ZodString>;
825
+ }, "strip", z.ZodTypeAny, {
826
+ web?: string | undefined;
827
+ phone?: string | undefined;
828
+ email?: string | undefined;
829
+ }, {
830
+ web?: string | undefined;
831
+ phone?: string | undefined;
832
+ email?: string | undefined;
833
+ }>>;
834
+ programmablePhoneNumber: z.ZodOptional<z.ZodString>;
835
+ programmablePhoneNumberSid: z.ZodOptional<z.ZodString>;
836
+ programmableEmail: z.ZodOptional<z.ZodString>;
837
+ forwardEmail: z.ZodOptional<z.ZodString>;
838
+ forwardPhone: z.ZodOptional<z.ZodString>;
839
+ id: z.ZodString;
840
+ }, "strip", z.ZodTypeAny, {
841
+ id: string;
842
+ title: string;
843
+ context: string;
844
+ model: "openai" | "bard" | "Scout9";
845
+ inactive?: boolean | undefined;
846
+ firstName?: string | undefined;
847
+ lastName?: string | undefined;
848
+ transcripts?: {
849
+ time: string;
850
+ content: string;
851
+ role: "agent" | "customer" | "system";
852
+ name?: string | undefined;
853
+ }[][] | undefined;
854
+ audios?: any[] | undefined;
855
+ includedLocations?: string[] | undefined;
856
+ excludedLocations?: string[] | undefined;
857
+ deployed?: {
858
+ web?: string | undefined;
859
+ phone?: string | undefined;
860
+ email?: string | undefined;
861
+ } | undefined;
862
+ programmablePhoneNumber?: string | undefined;
863
+ programmablePhoneNumberSid?: string | undefined;
864
+ programmableEmail?: string | undefined;
865
+ forwardEmail?: string | undefined;
866
+ forwardPhone?: string | undefined;
867
+ }, {
868
+ id: string;
869
+ inactive?: boolean | undefined;
870
+ title?: string | undefined;
871
+ context?: string | undefined;
872
+ firstName?: string | undefined;
873
+ lastName?: string | undefined;
874
+ transcripts?: {
875
+ time: string;
876
+ content: string;
877
+ role: "agent" | "customer" | "system";
878
+ name?: string | undefined;
879
+ }[][] | undefined;
880
+ audios?: any[] | undefined;
881
+ includedLocations?: string[] | undefined;
882
+ excludedLocations?: string[] | undefined;
883
+ model?: "openai" | "bard" | "Scout9" | undefined;
884
+ deployed?: {
885
+ web?: string | undefined;
886
+ phone?: string | undefined;
887
+ email?: string | undefined;
888
+ } | undefined;
889
+ programmablePhoneNumber?: string | undefined;
890
+ programmablePhoneNumberSid?: string | undefined;
891
+ programmableEmail?: string | undefined;
892
+ forwardEmail?: string | undefined;
893
+ forwardPhone?: string | undefined;
894
+ }>, "many">;
895
+ export const agentsBaseConfigurationSchema: z.ZodArray<z.ZodObject<{
896
+ deployed: z.ZodOptional<z.ZodObject<{
897
+ web: z.ZodOptional<z.ZodString>;
898
+ phone: z.ZodOptional<z.ZodString>;
899
+ email: z.ZodOptional<z.ZodString>;
900
+ }, "strip", z.ZodTypeAny, {
901
+ web?: string | undefined;
902
+ phone?: string | undefined;
903
+ email?: string | undefined;
904
+ }, {
905
+ web?: string | undefined;
906
+ phone?: string | undefined;
907
+ email?: string | undefined;
908
+ }>>;
909
+ firstName: z.ZodOptional<z.ZodString>;
910
+ lastName: z.ZodOptional<z.ZodString>;
911
+ inactive: z.ZodOptional<z.ZodBoolean>;
912
+ programmablePhoneNumber: z.ZodOptional<z.ZodString>;
913
+ programmablePhoneNumberSid: z.ZodOptional<z.ZodString>;
914
+ programmableEmail: z.ZodOptional<z.ZodString>;
915
+ forwardEmail: z.ZodOptional<z.ZodString>;
916
+ forwardPhone: z.ZodOptional<z.ZodString>;
917
+ title: z.ZodDefault<z.ZodOptional<z.ZodString>>;
918
+ context: z.ZodDefault<z.ZodOptional<z.ZodString>>;
919
+ includedLocations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
920
+ excludedLocations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
921
+ model: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Scout9", "bard", "openai"]>>>;
922
+ transcripts: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
923
+ content: z.ZodString;
924
+ role: z.ZodEnum<["agent", "customer", "system"]>;
925
+ time: z.ZodString;
926
+ name: z.ZodOptional<z.ZodString>;
927
+ }, "strip", z.ZodTypeAny, {
928
+ time: string;
929
+ content: string;
930
+ role: "agent" | "customer" | "system";
931
+ name?: string | undefined;
932
+ }, {
933
+ time: string;
934
+ content: string;
935
+ role: "agent" | "customer" | "system";
936
+ name?: string | undefined;
937
+ }>, "many">, "many">>;
938
+ audios: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
939
+ }, "strip", z.ZodTypeAny, {
940
+ title: string;
941
+ context: string;
942
+ model: "openai" | "bard" | "Scout9";
943
+ deployed?: {
944
+ web?: string | undefined;
945
+ phone?: string | undefined;
946
+ email?: string | undefined;
947
+ } | undefined;
948
+ firstName?: string | undefined;
949
+ lastName?: string | undefined;
950
+ inactive?: boolean | undefined;
951
+ programmablePhoneNumber?: string | undefined;
952
+ programmablePhoneNumberSid?: string | undefined;
953
+ programmableEmail?: string | undefined;
954
+ forwardEmail?: string | undefined;
955
+ forwardPhone?: string | undefined;
956
+ includedLocations?: string[] | undefined;
957
+ excludedLocations?: string[] | undefined;
958
+ transcripts?: {
959
+ time: string;
960
+ content: string;
961
+ role: "agent" | "customer" | "system";
962
+ name?: string | undefined;
963
+ }[][] | undefined;
964
+ audios?: any[] | undefined;
965
+ }, {
966
+ deployed?: {
967
+ web?: string | undefined;
968
+ phone?: string | undefined;
969
+ email?: string | undefined;
970
+ } | undefined;
971
+ firstName?: string | undefined;
972
+ lastName?: string | undefined;
973
+ inactive?: boolean | undefined;
974
+ programmablePhoneNumber?: string | undefined;
975
+ programmablePhoneNumberSid?: string | undefined;
976
+ programmableEmail?: string | undefined;
977
+ forwardEmail?: string | undefined;
978
+ forwardPhone?: string | undefined;
979
+ title?: string | undefined;
980
+ context?: string | undefined;
981
+ includedLocations?: string[] | undefined;
982
+ excludedLocations?: string[] | undefined;
983
+ model?: "openai" | "bard" | "Scout9" | undefined;
984
+ transcripts?: {
985
+ time: string;
986
+ content: string;
987
+ role: "agent" | "customer" | "system";
988
+ name?: string | undefined;
989
+ }[][] | undefined;
990
+ audios?: any[] | undefined;
991
+ }>, "many">;
992
+ /**
993
+ * Utility runtime class used to guide event output
994
+ */
995
+ export class EventResponse {
996
+ static json(body: any, options: any): EventResponse;
997
+ constructor(body: any, init: any);
998
+ body: any;
999
+ init: any;
1000
+ get response(): Response;
1001
+ get data(): any;
1002
+ }
542
1003
  export const Scout9ProjectBuildConfigSchema: z.ZodObject<{
543
1004
  tag: z.ZodOptional<z.ZodString>;
544
1005
  agents: z.ZodArray<z.ZodObject<{
@@ -639,59 +1100,57 @@ declare module '@scout9/app/types' {
639
1100
  audios?: any[] | undefined;
640
1101
  }>, "many">;
641
1102
  entities: z.ZodArray<z.ZodEffects<z.ZodObject<{
642
- id: any;
1103
+ id: z.ZodOptional<z.ZodString>;
643
1104
  training: z.ZodOptional<z.ZodArray<z.ZodObject<{
644
- intent: ZodString;
1105
+ intent: z.ZodString;
645
1106
  text: z.ZodString;
646
1107
  }, "strip", z.ZodTypeAny, {
647
1108
  text: string;
648
- intent?: any;
1109
+ intent: string;
649
1110
  }, {
650
1111
  text: string;
651
- intent?: any;
1112
+ intent: string;
652
1113
  }>, "many">>;
653
1114
  tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
654
1115
  text: z.ZodString;
655
1116
  expected: z.ZodObject<{
656
- intent: ZodString;
1117
+ intent: z.ZodString;
657
1118
  context: z.ZodAny;
658
1119
  }, "strip", z.ZodTypeAny, {
659
- intent?: any;
1120
+ intent: string;
660
1121
  context?: any;
661
1122
  }, {
662
- intent?: any;
1123
+ intent: string;
663
1124
  context?: any;
664
1125
  }>;
665
1126
  }, "strip", z.ZodTypeAny, {
666
1127
  text: string;
667
1128
  expected: {
668
- intent?: any;
1129
+ intent: string;
669
1130
  context?: any;
670
1131
  };
671
1132
  }, {
672
1133
  text: string;
673
1134
  expected: {
674
- intent?: any;
1135
+ intent: string;
675
1136
  context?: any;
676
1137
  };
677
1138
  }>, "many">>;
678
1139
  definitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
679
- utterance: any;
1140
+ utterance: z.ZodOptional<z.ZodString>;
680
1141
  value: z.ZodString;
681
1142
  text: z.ZodArray<z.ZodString, "many">;
682
1143
  }, "strip", z.ZodTypeAny, {
683
- [x: string]: any;
684
- utterance?: any;
685
- value?: string | undefined;
686
- text?: string[] | undefined;
1144
+ value: string;
1145
+ text: string[];
1146
+ utterance?: string | undefined;
687
1147
  }, {
688
- [x: string]: any;
689
- utterance?: any;
690
- value?: string | undefined;
691
- text?: string[] | undefined;
1148
+ value: string;
1149
+ text: string[];
1150
+ utterance?: string | undefined;
692
1151
  }>, "many">>;
693
- entities: z.ZodArray<ZodString, "many">;
694
- entity: ZodString;
1152
+ entities: z.ZodArray<z.ZodString, "many">;
1153
+ entity: z.ZodString;
695
1154
  api: z.ZodNullable<z.ZodObject<{
696
1155
  GET: z.ZodOptional<z.ZodBoolean>;
697
1156
  UPDATE: z.ZodOptional<z.ZodBoolean>;
@@ -715,135 +1174,127 @@ declare module '@scout9/app/types' {
715
1174
  DELETE?: boolean | undefined;
716
1175
  }>>;
717
1176
  }, "strict", z.ZodTypeAny, {
718
- [x: string]: any;
719
- id?: any;
1177
+ entity: string;
1178
+ entities: string[];
1179
+ api: {
1180
+ GET?: boolean | undefined;
1181
+ UPDATE?: boolean | undefined;
1182
+ QUERY?: boolean | undefined;
1183
+ PUT?: boolean | undefined;
1184
+ PATCH?: boolean | undefined;
1185
+ DELETE?: boolean | undefined;
1186
+ } | null;
1187
+ id?: string | undefined;
720
1188
  training?: {
721
1189
  text: string;
722
- intent?: any;
1190
+ intent: string;
723
1191
  }[] | undefined;
724
1192
  tests?: {
725
1193
  text: string;
726
1194
  expected: {
727
- intent?: any;
1195
+ intent: string;
728
1196
  context?: any;
729
1197
  };
730
1198
  }[] | undefined;
731
1199
  definitions?: {
732
- [x: string]: any;
733
- utterance?: any;
734
- value?: string | undefined;
735
- text?: string[] | undefined;
1200
+ value: string;
1201
+ text: string[];
1202
+ utterance?: string | undefined;
736
1203
  }[] | undefined;
737
- entities?: ZodString[] | undefined;
738
- entity?: any;
739
- api?: {
1204
+ }, {
1205
+ entity: string;
1206
+ entities: string[];
1207
+ api: {
740
1208
  GET?: boolean | undefined;
741
1209
  UPDATE?: boolean | undefined;
742
1210
  QUERY?: boolean | undefined;
743
1211
  PUT?: boolean | undefined;
744
1212
  PATCH?: boolean | undefined;
745
1213
  DELETE?: boolean | undefined;
746
- } | null | undefined;
747
- }, {
748
- [x: string]: any;
749
- id?: any;
1214
+ } | null;
1215
+ id?: string | undefined;
750
1216
  training?: {
751
1217
  text: string;
752
- intent?: any;
1218
+ intent: string;
753
1219
  }[] | undefined;
754
1220
  tests?: {
755
1221
  text: string;
756
1222
  expected: {
757
- intent?: any;
1223
+ intent: string;
758
1224
  context?: any;
759
1225
  };
760
1226
  }[] | undefined;
761
1227
  definitions?: {
762
- [x: string]: any;
763
- utterance?: any;
764
- value?: string | undefined;
765
- text?: string[] | undefined;
1228
+ value: string;
1229
+ text: string[];
1230
+ utterance?: string | undefined;
766
1231
  }[] | undefined;
767
- entities?: ZodString[] | undefined;
768
- entity?: any;
769
- api?: {
1232
+ }>, {
1233
+ entity: string;
1234
+ entities: string[];
1235
+ api: {
770
1236
  GET?: boolean | undefined;
771
1237
  UPDATE?: boolean | undefined;
772
1238
  QUERY?: boolean | undefined;
773
1239
  PUT?: boolean | undefined;
774
1240
  PATCH?: boolean | undefined;
775
1241
  DELETE?: boolean | undefined;
776
- } | null | undefined;
777
- }>, {
778
- [x: string]: any;
779
- id?: any;
1242
+ } | null;
1243
+ id?: string | undefined;
780
1244
  training?: {
781
1245
  text: string;
782
- intent?: any;
1246
+ intent: string;
783
1247
  }[] | undefined;
784
1248
  tests?: {
785
1249
  text: string;
786
1250
  expected: {
787
- intent?: any;
1251
+ intent: string;
788
1252
  context?: any;
789
1253
  };
790
1254
  }[] | undefined;
791
1255
  definitions?: {
792
- [x: string]: any;
793
- utterance?: any;
794
- value?: string | undefined;
795
- text?: string[] | undefined;
1256
+ value: string;
1257
+ text: string[];
1258
+ utterance?: string | undefined;
796
1259
  }[] | undefined;
797
- entities?: ZodString[] | undefined;
798
- entity?: any;
799
- api?: {
1260
+ }, {
1261
+ entity: string;
1262
+ entities: string[];
1263
+ api: {
800
1264
  GET?: boolean | undefined;
801
1265
  UPDATE?: boolean | undefined;
802
1266
  QUERY?: boolean | undefined;
803
1267
  PUT?: boolean | undefined;
804
1268
  PATCH?: boolean | undefined;
805
1269
  DELETE?: boolean | undefined;
806
- } | null | undefined;
807
- }, {
808
- [x: string]: any;
809
- id?: any;
1270
+ } | null;
1271
+ id?: string | undefined;
810
1272
  training?: {
811
1273
  text: string;
812
- intent?: any;
1274
+ intent: string;
813
1275
  }[] | undefined;
814
1276
  tests?: {
815
1277
  text: string;
816
1278
  expected: {
817
- intent?: any;
1279
+ intent: string;
818
1280
  context?: any;
819
1281
  };
820
1282
  }[] | undefined;
821
1283
  definitions?: {
822
- [x: string]: any;
823
- utterance?: any;
824
- value?: string | undefined;
825
- text?: string[] | undefined;
1284
+ value: string;
1285
+ text: string[];
1286
+ utterance?: string | undefined;
826
1287
  }[] | undefined;
827
- entities?: ZodString[] | undefined;
828
- entity?: any;
829
- api?: {
830
- GET?: boolean | undefined;
831
- UPDATE?: boolean | undefined;
832
- QUERY?: boolean | undefined;
833
- PUT?: boolean | undefined;
834
- PATCH?: boolean | undefined;
835
- DELETE?: boolean | undefined;
836
- } | null | undefined;
837
1288
  }>, "many">;
838
1289
  workflows: z.ZodArray<z.ZodObject<{
839
- entities: z.ZodArray<ZodString, "many">;
840
- entity: ZodString;
1290
+ entities: z.ZodArray<z.ZodString, "many">;
1291
+ entity: z.ZodString;
841
1292
  }, "strip", z.ZodTypeAny, {
842
- entities: ZodString[];
843
- entity?: any;
1293
+ entity: string;
1294
+ entities: string[];
844
1295
  }, {
845
- entities: ZodString[];
846
- entity?: any;
1296
+ entity: string;
1297
+ entities: string[];
847
1298
  }>, "many">;
848
1299
  llm: z.ZodUnion<[z.ZodObject<{
849
1300
  engine: z.ZodLiteral<"openai">;
@@ -945,40 +1396,38 @@ declare module '@scout9/app/types' {
945
1396
  audios?: any[] | undefined;
946
1397
  }[];
947
1398
  entities: {
948
- [x: string]: any;
949
- id?: any;
1399
+ entity: string;
1400
+ entities: string[];
1401
+ api: {
1402
+ GET?: boolean | undefined;
1403
+ UPDATE?: boolean | undefined;
1404
+ QUERY?: boolean | undefined;
1405
+ PUT?: boolean | undefined;
1406
+ PATCH?: boolean | undefined;
1407
+ DELETE?: boolean | undefined;
1408
+ } | null;
1409
+ id?: string | undefined;
950
1410
  training?: {
951
1411
  text: string;
952
- intent?: any;
1412
+ intent: string;
953
1413
  }[] | undefined;
954
1414
  tests?: {
955
1415
  text: string;
956
1416
  expected: {
957
- intent?: any;
1417
+ intent: string;
958
1418
  context?: any;
959
1419
  };
960
1420
  }[] | undefined;
961
1421
  definitions?: {
962
- [x: string]: any;
963
- utterance?: any;
964
- value?: string | undefined;
965
- text?: string[] | undefined;
1422
+ value: string;
1423
+ text: string[];
1424
+ utterance?: string | undefined;
966
1425
  }[] | undefined;
967
- entities?: ZodString[] | undefined;
968
- entity?: any;
969
- api?: {
970
- GET?: boolean | undefined;
971
- UPDATE?: boolean | undefined;
972
- QUERY?: boolean | undefined;
973
- PUT?: boolean | undefined;
974
- PATCH?: boolean | undefined;
975
- DELETE?: boolean | undefined;
976
- } | null | undefined;
977
1426
  }[];
978
1427
  initialContext: string[];
979
1428
  workflows: {
980
- entities: ZodString[];
981
- entity?: any;
1429
+ entity: string;
1430
+ entities: string[];
982
1431
  }[];
983
1432
  llm: {
984
1433
  model: string;
@@ -1036,40 +1485,38 @@ declare module '@scout9/app/types' {
1036
1485
  audios?: any[] | undefined;
1037
1486
  }[];
1038
1487
  entities: {
1039
- [x: string]: any;
1040
- id?: any;
1488
+ entity: string;
1489
+ entities: string[];
1490
+ api: {
1491
+ GET?: boolean | undefined;
1492
+ UPDATE?: boolean | undefined;
1493
+ QUERY?: boolean | undefined;
1494
+ PUT?: boolean | undefined;
1495
+ PATCH?: boolean | undefined;
1496
+ DELETE?: boolean | undefined;
1497
+ } | null;
1498
+ id?: string | undefined;
1041
1499
  training?: {
1042
1500
  text: string;
1043
- intent?: any;
1501
+ intent: string;
1044
1502
  }[] | undefined;
1045
1503
  tests?: {
1046
1504
  text: string;
1047
1505
  expected: {
1048
- intent?: any;
1506
+ intent: string;
1049
1507
  context?: any;
1050
1508
  };
1051
1509
  }[] | undefined;
1052
1510
  definitions?: {
1053
- [x: string]: any;
1054
- utterance?: any;
1055
- value?: string | undefined;
1056
- text?: string[] | undefined;
1511
+ value: string;
1512
+ text: string[];
1513
+ utterance?: string | undefined;
1057
1514
  }[] | undefined;
1058
- entities?: ZodString[] | undefined;
1059
- entity?: any;
1060
- api?: {
1061
- GET?: boolean | undefined;
1062
- UPDATE?: boolean | undefined;
1063
- QUERY?: boolean | undefined;
1064
- PUT?: boolean | undefined;
1065
- PATCH?: boolean | undefined;
1066
- DELETE?: boolean | undefined;
1067
- } | null | undefined;
1068
1515
  }[];
1069
1516
  initialContext: string[];
1070
1517
  workflows: {
1071
- entities: ZodString[];
1072
- entity?: any;
1518
+ entity: string;
1519
+ entities: string[];
1073
1520
  }[];
1074
1521
  llm: {
1075
1522
  model: string;
@@ -1099,6 +1546,1460 @@ declare module '@scout9/app/types' {
1099
1546
  phone?: string | undefined;
1100
1547
  } | undefined;
1101
1548
  }>;
1549
+ export const _entityApiConfigurationSchema: z.ZodObject<{
1550
+ GET: z.ZodOptional<z.ZodBoolean>;
1551
+ UPDATE: z.ZodOptional<z.ZodBoolean>;
1552
+ QUERY: z.ZodOptional<z.ZodBoolean>;
1553
+ PUT: z.ZodOptional<z.ZodBoolean>;
1554
+ PATCH: z.ZodOptional<z.ZodBoolean>;
1555
+ DELETE: z.ZodOptional<z.ZodBoolean>;
1556
+ }, "strip", z.ZodTypeAny, {
1557
+ GET?: boolean | undefined;
1558
+ UPDATE?: boolean | undefined;
1559
+ QUERY?: boolean | undefined;
1560
+ PUT?: boolean | undefined;
1561
+ PATCH?: boolean | undefined;
1562
+ DELETE?: boolean | undefined;
1563
+ }, {
1564
+ GET?: boolean | undefined;
1565
+ UPDATE?: boolean | undefined;
1566
+ QUERY?: boolean | undefined;
1567
+ PUT?: boolean | undefined;
1568
+ PATCH?: boolean | undefined;
1569
+ DELETE?: boolean | undefined;
1570
+ }>;
1571
+ export const entityApiConfigurationSchema: z.ZodNullable<z.ZodObject<{
1572
+ GET: z.ZodOptional<z.ZodBoolean>;
1573
+ UPDATE: z.ZodOptional<z.ZodBoolean>;
1574
+ QUERY: z.ZodOptional<z.ZodBoolean>;
1575
+ PUT: z.ZodOptional<z.ZodBoolean>;
1576
+ PATCH: z.ZodOptional<z.ZodBoolean>;
1577
+ DELETE: z.ZodOptional<z.ZodBoolean>;
1578
+ }, "strip", z.ZodTypeAny, {
1579
+ GET?: boolean | undefined;
1580
+ UPDATE?: boolean | undefined;
1581
+ QUERY?: boolean | undefined;
1582
+ PUT?: boolean | undefined;
1583
+ PATCH?: boolean | undefined;
1584
+ DELETE?: boolean | undefined;
1585
+ }, {
1586
+ GET?: boolean | undefined;
1587
+ UPDATE?: boolean | undefined;
1588
+ QUERY?: boolean | undefined;
1589
+ PUT?: boolean | undefined;
1590
+ PATCH?: boolean | undefined;
1591
+ DELETE?: boolean | undefined;
1592
+ }>>;
1593
+ export const entityConfigurationSchema: z.ZodEffects<z.ZodObject<{
1594
+ id: z.ZodOptional<z.ZodString>;
1595
+ definitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1596
+ utterance: z.ZodOptional<z.ZodString>;
1597
+ value: z.ZodString;
1598
+ text: z.ZodArray<z.ZodString, "many">;
1599
+ }, "strip", z.ZodTypeAny, {
1600
+ value: string;
1601
+ text: string[];
1602
+ utterance?: string | undefined;
1603
+ }, {
1604
+ value: string;
1605
+ text: string[];
1606
+ utterance?: string | undefined;
1607
+ }>, "many">>;
1608
+ training: z.ZodOptional<z.ZodArray<z.ZodObject<{
1609
+ intent: z.ZodString;
1610
+ text: z.ZodString;
1611
+ }, "strip", z.ZodTypeAny, {
1612
+ text: string;
1613
+ intent: string;
1614
+ }, {
1615
+ text: string;
1616
+ intent: string;
1617
+ }>, "many">>;
1618
+ tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
1619
+ text: z.ZodString;
1620
+ expected: z.ZodObject<{
1621
+ intent: z.ZodString;
1622
+ context: z.ZodAny;
1623
+ }, "strip", z.ZodTypeAny, {
1624
+ intent: string;
1625
+ context?: any;
1626
+ }, {
1627
+ intent: string;
1628
+ context?: any;
1629
+ }>;
1630
+ }, "strip", z.ZodTypeAny, {
1631
+ text: string;
1632
+ expected: {
1633
+ intent: string;
1634
+ context?: any;
1635
+ };
1636
+ }, {
1637
+ text: string;
1638
+ expected: {
1639
+ intent: string;
1640
+ context?: any;
1641
+ };
1642
+ }>, "many">>;
1643
+ }, "strict", z.ZodTypeAny, {
1644
+ id?: string | undefined;
1645
+ definitions?: {
1646
+ value: string;
1647
+ text: string[];
1648
+ utterance?: string | undefined;
1649
+ }[] | undefined;
1650
+ training?: {
1651
+ text: string;
1652
+ intent: string;
1653
+ }[] | undefined;
1654
+ tests?: {
1655
+ text: string;
1656
+ expected: {
1657
+ intent: string;
1658
+ context?: any;
1659
+ };
1660
+ }[] | undefined;
1661
+ }, {
1662
+ id?: string | undefined;
1663
+ definitions?: {
1664
+ value: string;
1665
+ text: string[];
1666
+ utterance?: string | undefined;
1667
+ }[] | undefined;
1668
+ training?: {
1669
+ text: string;
1670
+ intent: string;
1671
+ }[] | undefined;
1672
+ tests?: {
1673
+ text: string;
1674
+ expected: {
1675
+ intent: string;
1676
+ context?: any;
1677
+ };
1678
+ }[] | undefined;
1679
+ }>, {
1680
+ id?: string | undefined;
1681
+ definitions?: {
1682
+ value: string;
1683
+ text: string[];
1684
+ utterance?: string | undefined;
1685
+ }[] | undefined;
1686
+ training?: {
1687
+ text: string;
1688
+ intent: string;
1689
+ }[] | undefined;
1690
+ tests?: {
1691
+ text: string;
1692
+ expected: {
1693
+ intent: string;
1694
+ context?: any;
1695
+ };
1696
+ }[] | undefined;
1697
+ }, {
1698
+ id?: string | undefined;
1699
+ definitions?: {
1700
+ value: string;
1701
+ text: string[];
1702
+ utterance?: string | undefined;
1703
+ }[] | undefined;
1704
+ training?: {
1705
+ text: string;
1706
+ intent: string;
1707
+ }[] | undefined;
1708
+ tests?: {
1709
+ text: string;
1710
+ expected: {
1711
+ intent: string;
1712
+ context?: any;
1713
+ };
1714
+ }[] | undefined;
1715
+ }>;
1716
+ export const entitiesRootConfigurationSchema: z.ZodArray<z.ZodEffects<z.ZodObject<{
1717
+ id: z.ZodOptional<z.ZodString>;
1718
+ definitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1719
+ utterance: z.ZodOptional<z.ZodString>;
1720
+ value: z.ZodString;
1721
+ text: z.ZodArray<z.ZodString, "many">;
1722
+ }, "strip", z.ZodTypeAny, {
1723
+ value: string;
1724
+ text: string[];
1725
+ utterance?: string | undefined;
1726
+ }, {
1727
+ value: string;
1728
+ text: string[];
1729
+ utterance?: string | undefined;
1730
+ }>, "many">>;
1731
+ training: z.ZodOptional<z.ZodArray<z.ZodObject<{
1732
+ intent: z.ZodString;
1733
+ text: z.ZodString;
1734
+ }, "strip", z.ZodTypeAny, {
1735
+ text: string;
1736
+ intent: string;
1737
+ }, {
1738
+ text: string;
1739
+ intent: string;
1740
+ }>, "many">>;
1741
+ tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
1742
+ text: z.ZodString;
1743
+ expected: z.ZodObject<{
1744
+ intent: z.ZodString;
1745
+ context: z.ZodAny;
1746
+ }, "strip", z.ZodTypeAny, {
1747
+ intent: string;
1748
+ context?: any;
1749
+ }, {
1750
+ intent: string;
1751
+ context?: any;
1752
+ }>;
1753
+ }, "strip", z.ZodTypeAny, {
1754
+ text: string;
1755
+ expected: {
1756
+ intent: string;
1757
+ context?: any;
1758
+ };
1759
+ }, {
1760
+ text: string;
1761
+ expected: {
1762
+ intent: string;
1763
+ context?: any;
1764
+ };
1765
+ }>, "many">>;
1766
+ }, "strict", z.ZodTypeAny, {
1767
+ id?: string | undefined;
1768
+ definitions?: {
1769
+ value: string;
1770
+ text: string[];
1771
+ utterance?: string | undefined;
1772
+ }[] | undefined;
1773
+ training?: {
1774
+ text: string;
1775
+ intent: string;
1776
+ }[] | undefined;
1777
+ tests?: {
1778
+ text: string;
1779
+ expected: {
1780
+ intent: string;
1781
+ context?: any;
1782
+ };
1783
+ }[] | undefined;
1784
+ }, {
1785
+ id?: string | undefined;
1786
+ definitions?: {
1787
+ value: string;
1788
+ text: string[];
1789
+ utterance?: string | undefined;
1790
+ }[] | undefined;
1791
+ training?: {
1792
+ text: string;
1793
+ intent: string;
1794
+ }[] | undefined;
1795
+ tests?: {
1796
+ text: string;
1797
+ expected: {
1798
+ intent: string;
1799
+ context?: any;
1800
+ };
1801
+ }[] | undefined;
1802
+ }>, {
1803
+ id?: string | undefined;
1804
+ definitions?: {
1805
+ value: string;
1806
+ text: string[];
1807
+ utterance?: string | undefined;
1808
+ }[] | undefined;
1809
+ training?: {
1810
+ text: string;
1811
+ intent: string;
1812
+ }[] | undefined;
1813
+ tests?: {
1814
+ text: string;
1815
+ expected: {
1816
+ intent: string;
1817
+ context?: any;
1818
+ };
1819
+ }[] | undefined;
1820
+ }, {
1821
+ id?: string | undefined;
1822
+ definitions?: {
1823
+ value: string;
1824
+ text: string[];
1825
+ utterance?: string | undefined;
1826
+ }[] | undefined;
1827
+ training?: {
1828
+ text: string;
1829
+ intent: string;
1830
+ }[] | undefined;
1831
+ tests?: {
1832
+ text: string;
1833
+ expected: {
1834
+ intent: string;
1835
+ context?: any;
1836
+ };
1837
+ }[] | undefined;
1838
+ }>, "many">;
1839
+ export const entityRootProjectConfigurationSchema: z.ZodEffects<z.ZodObject<{
1840
+ id: z.ZodOptional<z.ZodString>;
1841
+ training: z.ZodOptional<z.ZodArray<z.ZodObject<{
1842
+ intent: z.ZodString;
1843
+ text: z.ZodString;
1844
+ }, "strip", z.ZodTypeAny, {
1845
+ text: string;
1846
+ intent: string;
1847
+ }, {
1848
+ text: string;
1849
+ intent: string;
1850
+ }>, "many">>;
1851
+ tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
1852
+ text: z.ZodString;
1853
+ expected: z.ZodObject<{
1854
+ intent: z.ZodString;
1855
+ context: z.ZodAny;
1856
+ }, "strip", z.ZodTypeAny, {
1857
+ intent: string;
1858
+ context?: any;
1859
+ }, {
1860
+ intent: string;
1861
+ context?: any;
1862
+ }>;
1863
+ }, "strip", z.ZodTypeAny, {
1864
+ text: string;
1865
+ expected: {
1866
+ intent: string;
1867
+ context?: any;
1868
+ };
1869
+ }, {
1870
+ text: string;
1871
+ expected: {
1872
+ intent: string;
1873
+ context?: any;
1874
+ };
1875
+ }>, "many">>;
1876
+ definitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1877
+ utterance: z.ZodOptional<z.ZodString>;
1878
+ value: z.ZodString;
1879
+ text: z.ZodArray<z.ZodString, "many">;
1880
+ }, "strip", z.ZodTypeAny, {
1881
+ value: string;
1882
+ text: string[];
1883
+ utterance?: string | undefined;
1884
+ }, {
1885
+ value: string;
1886
+ text: string[];
1887
+ utterance?: string | undefined;
1888
+ }>, "many">>;
1889
+ entities: z.ZodArray<z.ZodString, "many">;
1890
+ entity: z.ZodString;
1891
+ api: z.ZodNullable<z.ZodObject<{
1892
+ GET: z.ZodOptional<z.ZodBoolean>;
1893
+ UPDATE: z.ZodOptional<z.ZodBoolean>;
1894
+ QUERY: z.ZodOptional<z.ZodBoolean>;
1895
+ PUT: z.ZodOptional<z.ZodBoolean>;
1896
+ PATCH: z.ZodOptional<z.ZodBoolean>;
1897
+ DELETE: z.ZodOptional<z.ZodBoolean>;
1898
+ }, "strip", z.ZodTypeAny, {
1899
+ GET?: boolean | undefined;
1900
+ UPDATE?: boolean | undefined;
1901
+ QUERY?: boolean | undefined;
1902
+ PUT?: boolean | undefined;
1903
+ PATCH?: boolean | undefined;
1904
+ DELETE?: boolean | undefined;
1905
+ }, {
1906
+ GET?: boolean | undefined;
1907
+ UPDATE?: boolean | undefined;
1908
+ QUERY?: boolean | undefined;
1909
+ PUT?: boolean | undefined;
1910
+ PATCH?: boolean | undefined;
1911
+ DELETE?: boolean | undefined;
1912
+ }>>;
1913
+ }, "strict", z.ZodTypeAny, {
1914
+ entity: string;
1915
+ entities: string[];
1916
+ api: {
1917
+ GET?: boolean | undefined;
1918
+ UPDATE?: boolean | undefined;
1919
+ QUERY?: boolean | undefined;
1920
+ PUT?: boolean | undefined;
1921
+ PATCH?: boolean | undefined;
1922
+ DELETE?: boolean | undefined;
1923
+ } | null;
1924
+ id?: string | undefined;
1925
+ training?: {
1926
+ text: string;
1927
+ intent: string;
1928
+ }[] | undefined;
1929
+ tests?: {
1930
+ text: string;
1931
+ expected: {
1932
+ intent: string;
1933
+ context?: any;
1934
+ };
1935
+ }[] | undefined;
1936
+ definitions?: {
1937
+ value: string;
1938
+ text: string[];
1939
+ utterance?: string | undefined;
1940
+ }[] | undefined;
1941
+ }, {
1942
+ entity: string;
1943
+ entities: string[];
1944
+ api: {
1945
+ GET?: boolean | undefined;
1946
+ UPDATE?: boolean | undefined;
1947
+ QUERY?: boolean | undefined;
1948
+ PUT?: boolean | undefined;
1949
+ PATCH?: boolean | undefined;
1950
+ DELETE?: boolean | undefined;
1951
+ } | null;
1952
+ id?: string | undefined;
1953
+ training?: {
1954
+ text: string;
1955
+ intent: string;
1956
+ }[] | undefined;
1957
+ tests?: {
1958
+ text: string;
1959
+ expected: {
1960
+ intent: string;
1961
+ context?: any;
1962
+ };
1963
+ }[] | undefined;
1964
+ definitions?: {
1965
+ value: string;
1966
+ text: string[];
1967
+ utterance?: string | undefined;
1968
+ }[] | undefined;
1969
+ }>, {
1970
+ entity: string;
1971
+ entities: string[];
1972
+ api: {
1973
+ GET?: boolean | undefined;
1974
+ UPDATE?: boolean | undefined;
1975
+ QUERY?: boolean | undefined;
1976
+ PUT?: boolean | undefined;
1977
+ PATCH?: boolean | undefined;
1978
+ DELETE?: boolean | undefined;
1979
+ } | null;
1980
+ id?: string | undefined;
1981
+ training?: {
1982
+ text: string;
1983
+ intent: string;
1984
+ }[] | undefined;
1985
+ tests?: {
1986
+ text: string;
1987
+ expected: {
1988
+ intent: string;
1989
+ context?: any;
1990
+ };
1991
+ }[] | undefined;
1992
+ definitions?: {
1993
+ value: string;
1994
+ text: string[];
1995
+ utterance?: string | undefined;
1996
+ }[] | undefined;
1997
+ }, {
1998
+ entity: string;
1999
+ entities: string[];
2000
+ api: {
2001
+ GET?: boolean | undefined;
2002
+ UPDATE?: boolean | undefined;
2003
+ QUERY?: boolean | undefined;
2004
+ PUT?: boolean | undefined;
2005
+ PATCH?: boolean | undefined;
2006
+ DELETE?: boolean | undefined;
2007
+ } | null;
2008
+ id?: string | undefined;
2009
+ training?: {
2010
+ text: string;
2011
+ intent: string;
2012
+ }[] | undefined;
2013
+ tests?: {
2014
+ text: string;
2015
+ expected: {
2016
+ intent: string;
2017
+ context?: any;
2018
+ };
2019
+ }[] | undefined;
2020
+ definitions?: {
2021
+ value: string;
2022
+ text: string[];
2023
+ utterance?: string | undefined;
2024
+ }[] | undefined;
2025
+ }>;
2026
+ export const entitiesRootProjectConfigurationSchema: z.ZodArray<z.ZodEffects<z.ZodObject<{
2027
+ id: z.ZodOptional<z.ZodString>;
2028
+ training: z.ZodOptional<z.ZodArray<z.ZodObject<{
2029
+ intent: z.ZodString;
2030
+ text: z.ZodString;
2031
+ }, "strip", z.ZodTypeAny, {
2032
+ text: string;
2033
+ intent: string;
2034
+ }, {
2035
+ text: string;
2036
+ intent: string;
2037
+ }>, "many">>;
2038
+ tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
2039
+ text: z.ZodString;
2040
+ expected: z.ZodObject<{
2041
+ intent: z.ZodString;
2042
+ context: z.ZodAny;
2043
+ }, "strip", z.ZodTypeAny, {
2044
+ intent: string;
2045
+ context?: any;
2046
+ }, {
2047
+ intent: string;
2048
+ context?: any;
2049
+ }>;
2050
+ }, "strip", z.ZodTypeAny, {
2051
+ text: string;
2052
+ expected: {
2053
+ intent: string;
2054
+ context?: any;
2055
+ };
2056
+ }, {
2057
+ text: string;
2058
+ expected: {
2059
+ intent: string;
2060
+ context?: any;
2061
+ };
2062
+ }>, "many">>;
2063
+ definitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2064
+ utterance: z.ZodOptional<z.ZodString>;
2065
+ value: z.ZodString;
2066
+ text: z.ZodArray<z.ZodString, "many">;
2067
+ }, "strip", z.ZodTypeAny, {
2068
+ value: string;
2069
+ text: string[];
2070
+ utterance?: string | undefined;
2071
+ }, {
2072
+ value: string;
2073
+ text: string[];
2074
+ utterance?: string | undefined;
2075
+ }>, "many">>;
2076
+ entities: z.ZodArray<z.ZodString, "many">;
2077
+ entity: z.ZodString;
2078
+ api: z.ZodNullable<z.ZodObject<{
2079
+ GET: z.ZodOptional<z.ZodBoolean>;
2080
+ UPDATE: z.ZodOptional<z.ZodBoolean>;
2081
+ QUERY: z.ZodOptional<z.ZodBoolean>;
2082
+ PUT: z.ZodOptional<z.ZodBoolean>;
2083
+ PATCH: z.ZodOptional<z.ZodBoolean>;
2084
+ DELETE: z.ZodOptional<z.ZodBoolean>;
2085
+ }, "strip", z.ZodTypeAny, {
2086
+ GET?: boolean | undefined;
2087
+ UPDATE?: boolean | undefined;
2088
+ QUERY?: boolean | undefined;
2089
+ PUT?: boolean | undefined;
2090
+ PATCH?: boolean | undefined;
2091
+ DELETE?: boolean | undefined;
2092
+ }, {
2093
+ GET?: boolean | undefined;
2094
+ UPDATE?: boolean | undefined;
2095
+ QUERY?: boolean | undefined;
2096
+ PUT?: boolean | undefined;
2097
+ PATCH?: boolean | undefined;
2098
+ DELETE?: boolean | undefined;
2099
+ }>>;
2100
+ }, "strict", z.ZodTypeAny, {
2101
+ entity: string;
2102
+ entities: string[];
2103
+ api: {
2104
+ GET?: boolean | undefined;
2105
+ UPDATE?: boolean | undefined;
2106
+ QUERY?: boolean | undefined;
2107
+ PUT?: boolean | undefined;
2108
+ PATCH?: boolean | undefined;
2109
+ DELETE?: boolean | undefined;
2110
+ } | null;
2111
+ id?: string | undefined;
2112
+ training?: {
2113
+ text: string;
2114
+ intent: string;
2115
+ }[] | undefined;
2116
+ tests?: {
2117
+ text: string;
2118
+ expected: {
2119
+ intent: string;
2120
+ context?: any;
2121
+ };
2122
+ }[] | undefined;
2123
+ definitions?: {
2124
+ value: string;
2125
+ text: string[];
2126
+ utterance?: string | undefined;
2127
+ }[] | undefined;
2128
+ }, {
2129
+ entity: string;
2130
+ entities: string[];
2131
+ api: {
2132
+ GET?: boolean | undefined;
2133
+ UPDATE?: boolean | undefined;
2134
+ QUERY?: boolean | undefined;
2135
+ PUT?: boolean | undefined;
2136
+ PATCH?: boolean | undefined;
2137
+ DELETE?: boolean | undefined;
2138
+ } | null;
2139
+ id?: string | undefined;
2140
+ training?: {
2141
+ text: string;
2142
+ intent: string;
2143
+ }[] | undefined;
2144
+ tests?: {
2145
+ text: string;
2146
+ expected: {
2147
+ intent: string;
2148
+ context?: any;
2149
+ };
2150
+ }[] | undefined;
2151
+ definitions?: {
2152
+ value: string;
2153
+ text: string[];
2154
+ utterance?: string | undefined;
2155
+ }[] | undefined;
2156
+ }>, {
2157
+ entity: string;
2158
+ entities: string[];
2159
+ api: {
2160
+ GET?: boolean | undefined;
2161
+ UPDATE?: boolean | undefined;
2162
+ QUERY?: boolean | undefined;
2163
+ PUT?: boolean | undefined;
2164
+ PATCH?: boolean | undefined;
2165
+ DELETE?: boolean | undefined;
2166
+ } | null;
2167
+ id?: string | undefined;
2168
+ training?: {
2169
+ text: string;
2170
+ intent: string;
2171
+ }[] | undefined;
2172
+ tests?: {
2173
+ text: string;
2174
+ expected: {
2175
+ intent: string;
2176
+ context?: any;
2177
+ };
2178
+ }[] | undefined;
2179
+ definitions?: {
2180
+ value: string;
2181
+ text: string[];
2182
+ utterance?: string | undefined;
2183
+ }[] | undefined;
2184
+ }, {
2185
+ entity: string;
2186
+ entities: string[];
2187
+ api: {
2188
+ GET?: boolean | undefined;
2189
+ UPDATE?: boolean | undefined;
2190
+ QUERY?: boolean | undefined;
2191
+ PUT?: boolean | undefined;
2192
+ PATCH?: boolean | undefined;
2193
+ DELETE?: boolean | undefined;
2194
+ } | null;
2195
+ id?: string | undefined;
2196
+ training?: {
2197
+ text: string;
2198
+ intent: string;
2199
+ }[] | undefined;
2200
+ tests?: {
2201
+ text: string;
2202
+ expected: {
2203
+ intent: string;
2204
+ context?: any;
2205
+ };
2206
+ }[] | undefined;
2207
+ definitions?: {
2208
+ value: string;
2209
+ text: string[];
2210
+ utterance?: string | undefined;
2211
+ }[] | undefined;
2212
+ }>, "many">;
2213
+ export const MessageSchema: z.ZodObject<{
2214
+ content: z.ZodString;
2215
+ role: z.ZodEnum<["agent", "customer", "system"]>;
2216
+ time: z.ZodString;
2217
+ name: z.ZodOptional<z.ZodString>;
2218
+ }, "strip", z.ZodTypeAny, {
2219
+ time: string;
2220
+ content: string;
2221
+ role: "agent" | "customer" | "system";
2222
+ name?: string | undefined;
2223
+ }, {
2224
+ time: string;
2225
+ content: string;
2226
+ role: "agent" | "customer" | "system";
2227
+ name?: string | undefined;
2228
+ }>;
2229
+ export const WorkflowConfigurationSchema: z.ZodObject<{
2230
+ entities: z.ZodArray<z.ZodString, "many">;
2231
+ entity: z.ZodString;
2232
+ }, "strip", z.ZodTypeAny, {
2233
+ entity: string;
2234
+ entities: string[];
2235
+ }, {
2236
+ entity: string;
2237
+ entities: string[];
2238
+ }>;
2239
+ export const WorkflowsConfigurationSchema: z.ZodArray<z.ZodObject<{
2240
+ entities: z.ZodArray<z.ZodString, "many">;
2241
+ entity: z.ZodString;
2242
+ }, "strip", z.ZodTypeAny, {
2243
+ entity: string;
2244
+ entities: string[];
2245
+ }, {
2246
+ entity: string;
2247
+ entities: string[];
2248
+ }>, "many">;
2249
+ export const ConversationSchema: z.ZodObject<{
2250
+ $agent: z.ZodString;
2251
+ $customer: z.ZodString;
2252
+ initialContexts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2253
+ environment: z.ZodEnum<["phone", "email", "web"]>;
2254
+ environmentProps: z.ZodOptional<z.ZodObject<{
2255
+ subject: z.ZodOptional<z.ZodString>;
2256
+ platformEmailThreadId: z.ZodOptional<z.ZodString>;
2257
+ }, "strip", z.ZodTypeAny, {
2258
+ subject?: string | undefined;
2259
+ platformEmailThreadId?: string | undefined;
2260
+ }, {
2261
+ subject?: string | undefined;
2262
+ platformEmailThreadId?: string | undefined;
2263
+ }>>;
2264
+ }, "strip", z.ZodTypeAny, {
2265
+ environment: "email" | "phone" | "web";
2266
+ $agent: string;
2267
+ $customer: string;
2268
+ initialContexts?: string[] | undefined;
2269
+ environmentProps?: {
2270
+ subject?: string | undefined;
2271
+ platformEmailThreadId?: string | undefined;
2272
+ } | undefined;
2273
+ }, {
2274
+ environment: "email" | "phone" | "web";
2275
+ $agent: string;
2276
+ $customer: string;
2277
+ initialContexts?: string[] | undefined;
2278
+ environmentProps?: {
2279
+ subject?: string | undefined;
2280
+ platformEmailThreadId?: string | undefined;
2281
+ } | undefined;
2282
+ }>;
2283
+ export const IntentWorkflowEventSchema: z.ZodObject<{
2284
+ current: z.ZodNullable<z.ZodString>;
2285
+ flow: z.ZodArray<z.ZodString, "many">;
2286
+ initial: z.ZodNullable<z.ZodString>;
2287
+ }, "strip", z.ZodTypeAny, {
2288
+ current: string | null;
2289
+ flow: string[];
2290
+ initial: string | null;
2291
+ }, {
2292
+ current: string | null;
2293
+ flow: string[];
2294
+ initial: string | null;
2295
+ }>;
2296
+ export const WorkflowEventSchema: z.ZodObject<{
2297
+ messages: z.ZodArray<z.ZodObject<{
2298
+ content: z.ZodString;
2299
+ role: z.ZodEnum<["agent", "customer", "system"]>;
2300
+ time: z.ZodString;
2301
+ name: z.ZodOptional<z.ZodString>;
2302
+ }, "strip", z.ZodTypeAny, {
2303
+ time: string;
2304
+ content: string;
2305
+ role: "agent" | "customer" | "system";
2306
+ name?: string | undefined;
2307
+ }, {
2308
+ time: string;
2309
+ content: string;
2310
+ role: "agent" | "customer" | "system";
2311
+ name?: string | undefined;
2312
+ }>, "many">;
2313
+ conversation: z.ZodObject<{
2314
+ $agent: z.ZodString;
2315
+ $customer: z.ZodString;
2316
+ initialContexts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2317
+ environment: z.ZodEnum<["phone", "email", "web"]>;
2318
+ environmentProps: z.ZodOptional<z.ZodObject<{
2319
+ subject: z.ZodOptional<z.ZodString>;
2320
+ platformEmailThreadId: z.ZodOptional<z.ZodString>;
2321
+ }, "strip", z.ZodTypeAny, {
2322
+ subject?: string | undefined;
2323
+ platformEmailThreadId?: string | undefined;
2324
+ }, {
2325
+ subject?: string | undefined;
2326
+ platformEmailThreadId?: string | undefined;
2327
+ }>>;
2328
+ }, "strip", z.ZodTypeAny, {
2329
+ environment: "email" | "phone" | "web";
2330
+ $agent: string;
2331
+ $customer: string;
2332
+ initialContexts?: string[] | undefined;
2333
+ environmentProps?: {
2334
+ subject?: string | undefined;
2335
+ platformEmailThreadId?: string | undefined;
2336
+ } | undefined;
2337
+ }, {
2338
+ environment: "email" | "phone" | "web";
2339
+ $agent: string;
2340
+ $customer: string;
2341
+ initialContexts?: string[] | undefined;
2342
+ environmentProps?: {
2343
+ subject?: string | undefined;
2344
+ platformEmailThreadId?: string | undefined;
2345
+ } | undefined;
2346
+ }>;
2347
+ context: z.ZodAny;
2348
+ message: z.ZodObject<{
2349
+ content: z.ZodString;
2350
+ role: z.ZodEnum<["agent", "customer", "system"]>;
2351
+ time: z.ZodString;
2352
+ name: z.ZodOptional<z.ZodString>;
2353
+ }, "strip", z.ZodTypeAny, {
2354
+ time: string;
2355
+ content: string;
2356
+ role: "agent" | "customer" | "system";
2357
+ name?: string | undefined;
2358
+ }, {
2359
+ time: string;
2360
+ content: string;
2361
+ role: "agent" | "customer" | "system";
2362
+ name?: string | undefined;
2363
+ }>;
2364
+ agent: z.ZodObject<{
2365
+ inactive: z.ZodOptional<z.ZodBoolean>;
2366
+ title: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2367
+ context: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2368
+ firstName: z.ZodOptional<z.ZodString>;
2369
+ lastName: z.ZodOptional<z.ZodString>;
2370
+ transcripts: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
2371
+ content: z.ZodString;
2372
+ role: z.ZodEnum<["agent", "customer", "system"]>;
2373
+ time: z.ZodString;
2374
+ name: z.ZodOptional<z.ZodString>;
2375
+ }, "strip", z.ZodTypeAny, {
2376
+ time: string;
2377
+ content: string;
2378
+ role: "agent" | "customer" | "system";
2379
+ name?: string | undefined;
2380
+ }, {
2381
+ time: string;
2382
+ content: string;
2383
+ role: "agent" | "customer" | "system";
2384
+ name?: string | undefined;
2385
+ }>, "many">, "many">>;
2386
+ audios: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2387
+ includedLocations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2388
+ excludedLocations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2389
+ model: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Scout9", "bard", "openai"]>>>;
2390
+ deployed: z.ZodOptional<z.ZodObject<{
2391
+ web: z.ZodOptional<z.ZodString>;
2392
+ phone: z.ZodOptional<z.ZodString>;
2393
+ email: z.ZodOptional<z.ZodString>;
2394
+ }, "strip", z.ZodTypeAny, {
2395
+ web?: string | undefined;
2396
+ phone?: string | undefined;
2397
+ email?: string | undefined;
2398
+ }, {
2399
+ web?: string | undefined;
2400
+ phone?: string | undefined;
2401
+ email?: string | undefined;
2402
+ }>>;
2403
+ programmablePhoneNumber: z.ZodOptional<z.ZodString>;
2404
+ programmablePhoneNumberSid: z.ZodOptional<z.ZodString>;
2405
+ programmableEmail: z.ZodOptional<z.ZodString>;
2406
+ forwardEmail: z.ZodOptional<z.ZodString>;
2407
+ forwardPhone: z.ZodOptional<z.ZodString>;
2408
+ id: z.ZodString;
2409
+ }, "strip", z.ZodTypeAny, {
2410
+ id: string;
2411
+ title: string;
2412
+ context: string;
2413
+ model: "openai" | "bard" | "Scout9";
2414
+ inactive?: boolean | undefined;
2415
+ firstName?: string | undefined;
2416
+ lastName?: string | undefined;
2417
+ transcripts?: {
2418
+ time: string;
2419
+ content: string;
2420
+ role: "agent" | "customer" | "system";
2421
+ name?: string | undefined;
2422
+ }[][] | undefined;
2423
+ audios?: any[] | undefined;
2424
+ includedLocations?: string[] | undefined;
2425
+ excludedLocations?: string[] | undefined;
2426
+ deployed?: {
2427
+ web?: string | undefined;
2428
+ phone?: string | undefined;
2429
+ email?: string | undefined;
2430
+ } | undefined;
2431
+ programmablePhoneNumber?: string | undefined;
2432
+ programmablePhoneNumberSid?: string | undefined;
2433
+ programmableEmail?: string | undefined;
2434
+ forwardEmail?: string | undefined;
2435
+ forwardPhone?: string | undefined;
2436
+ }, {
2437
+ id: string;
2438
+ inactive?: boolean | undefined;
2439
+ title?: string | undefined;
2440
+ context?: string | undefined;
2441
+ firstName?: string | undefined;
2442
+ lastName?: string | undefined;
2443
+ transcripts?: {
2444
+ time: string;
2445
+ content: string;
2446
+ role: "agent" | "customer" | "system";
2447
+ name?: string | undefined;
2448
+ }[][] | undefined;
2449
+ audios?: any[] | undefined;
2450
+ includedLocations?: string[] | undefined;
2451
+ excludedLocations?: string[] | undefined;
2452
+ model?: "openai" | "bard" | "Scout9" | undefined;
2453
+ deployed?: {
2454
+ web?: string | undefined;
2455
+ phone?: string | undefined;
2456
+ email?: string | undefined;
2457
+ } | undefined;
2458
+ programmablePhoneNumber?: string | undefined;
2459
+ programmablePhoneNumberSid?: string | undefined;
2460
+ programmableEmail?: string | undefined;
2461
+ forwardEmail?: string | undefined;
2462
+ forwardPhone?: string | undefined;
2463
+ }>;
2464
+ customer: z.ZodObject<{
2465
+ firstName: z.ZodOptional<z.ZodString>;
2466
+ lastName: z.ZodOptional<z.ZodString>;
2467
+ name: z.ZodString;
2468
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2469
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2470
+ img: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2471
+ neighborhood: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2472
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2473
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2474
+ line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2475
+ line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2476
+ postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2477
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2478
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2479
+ joined: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2480
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2481
+ stripeDev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2482
+ }, "strip", z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>, z.objectOutputType<{
2483
+ firstName: z.ZodOptional<z.ZodString>;
2484
+ lastName: z.ZodOptional<z.ZodString>;
2485
+ name: z.ZodString;
2486
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2487
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2488
+ img: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2489
+ neighborhood: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2490
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2491
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2492
+ line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2493
+ line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2494
+ postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2495
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2496
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2497
+ joined: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2498
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2499
+ stripeDev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2500
+ }, z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>, "strip">, z.objectInputType<{
2501
+ firstName: z.ZodOptional<z.ZodString>;
2502
+ lastName: z.ZodOptional<z.ZodString>;
2503
+ name: z.ZodString;
2504
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2505
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2506
+ img: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2507
+ neighborhood: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2508
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2509
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2510
+ line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2511
+ line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2512
+ postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2513
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2514
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2515
+ joined: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2516
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2517
+ stripeDev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2518
+ }, z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>, "strip">>;
2519
+ intent: z.ZodObject<{
2520
+ current: z.ZodNullable<z.ZodString>;
2521
+ flow: z.ZodArray<z.ZodString, "many">;
2522
+ initial: z.ZodNullable<z.ZodString>;
2523
+ }, "strip", z.ZodTypeAny, {
2524
+ current: string | null;
2525
+ flow: string[];
2526
+ initial: string | null;
2527
+ }, {
2528
+ current: string | null;
2529
+ flow: string[];
2530
+ initial: string | null;
2531
+ }>;
2532
+ stagnationCount: z.ZodNumber;
2533
+ note: z.ZodOptional<z.ZodString>;
2534
+ }, "strip", z.ZodTypeAny, {
2535
+ message: {
2536
+ time: string;
2537
+ content: string;
2538
+ role: "agent" | "customer" | "system";
2539
+ name?: string | undefined;
2540
+ };
2541
+ agent: {
2542
+ id: string;
2543
+ title: string;
2544
+ context: string;
2545
+ model: "openai" | "bard" | "Scout9";
2546
+ inactive?: boolean | undefined;
2547
+ firstName?: string | undefined;
2548
+ lastName?: string | undefined;
2549
+ transcripts?: {
2550
+ time: string;
2551
+ content: string;
2552
+ role: "agent" | "customer" | "system";
2553
+ name?: string | undefined;
2554
+ }[][] | undefined;
2555
+ audios?: any[] | undefined;
2556
+ includedLocations?: string[] | undefined;
2557
+ excludedLocations?: string[] | undefined;
2558
+ deployed?: {
2559
+ web?: string | undefined;
2560
+ phone?: string | undefined;
2561
+ email?: string | undefined;
2562
+ } | undefined;
2563
+ programmablePhoneNumber?: string | undefined;
2564
+ programmablePhoneNumberSid?: string | undefined;
2565
+ programmableEmail?: string | undefined;
2566
+ forwardEmail?: string | undefined;
2567
+ forwardPhone?: string | undefined;
2568
+ };
2569
+ customer: {
2570
+ name: string;
2571
+ firstName?: string | undefined;
2572
+ lastName?: string | undefined;
2573
+ email?: string | null | undefined;
2574
+ phone?: string | null | undefined;
2575
+ img?: string | null | undefined;
2576
+ neighborhood?: string | null | undefined;
2577
+ city?: string | null | undefined;
2578
+ country?: string | null | undefined;
2579
+ line1?: string | null | undefined;
2580
+ line2?: string | null | undefined;
2581
+ postal_code?: string | null | undefined;
2582
+ state?: string | null | undefined;
2583
+ town?: string | null | undefined;
2584
+ joined?: string | null | undefined;
2585
+ stripe?: string | null | undefined;
2586
+ stripeDev?: string | null | undefined;
2587
+ } & {
2588
+ [k: string]: string | number | boolean;
2589
+ };
2590
+ intent: {
2591
+ current: string | null;
2592
+ flow: string[];
2593
+ initial: string | null;
2594
+ };
2595
+ conversation: {
2596
+ environment: "email" | "phone" | "web";
2597
+ $agent: string;
2598
+ $customer: string;
2599
+ initialContexts?: string[] | undefined;
2600
+ environmentProps?: {
2601
+ subject?: string | undefined;
2602
+ platformEmailThreadId?: string | undefined;
2603
+ } | undefined;
2604
+ };
2605
+ messages: {
2606
+ time: string;
2607
+ content: string;
2608
+ role: "agent" | "customer" | "system";
2609
+ name?: string | undefined;
2610
+ }[];
2611
+ stagnationCount: number;
2612
+ context?: any;
2613
+ note?: string | undefined;
2614
+ }, {
2615
+ message: {
2616
+ time: string;
2617
+ content: string;
2618
+ role: "agent" | "customer" | "system";
2619
+ name?: string | undefined;
2620
+ };
2621
+ agent: {
2622
+ id: string;
2623
+ inactive?: boolean | undefined;
2624
+ title?: string | undefined;
2625
+ context?: string | undefined;
2626
+ firstName?: string | undefined;
2627
+ lastName?: string | undefined;
2628
+ transcripts?: {
2629
+ time: string;
2630
+ content: string;
2631
+ role: "agent" | "customer" | "system";
2632
+ name?: string | undefined;
2633
+ }[][] | undefined;
2634
+ audios?: any[] | undefined;
2635
+ includedLocations?: string[] | undefined;
2636
+ excludedLocations?: string[] | undefined;
2637
+ model?: "openai" | "bard" | "Scout9" | undefined;
2638
+ deployed?: {
2639
+ web?: string | undefined;
2640
+ phone?: string | undefined;
2641
+ email?: string | undefined;
2642
+ } | undefined;
2643
+ programmablePhoneNumber?: string | undefined;
2644
+ programmablePhoneNumberSid?: string | undefined;
2645
+ programmableEmail?: string | undefined;
2646
+ forwardEmail?: string | undefined;
2647
+ forwardPhone?: string | undefined;
2648
+ };
2649
+ customer: {
2650
+ name: string;
2651
+ firstName?: string | undefined;
2652
+ lastName?: string | undefined;
2653
+ email?: string | null | undefined;
2654
+ phone?: string | null | undefined;
2655
+ img?: string | null | undefined;
2656
+ neighborhood?: string | null | undefined;
2657
+ city?: string | null | undefined;
2658
+ country?: string | null | undefined;
2659
+ line1?: string | null | undefined;
2660
+ line2?: string | null | undefined;
2661
+ postal_code?: string | null | undefined;
2662
+ state?: string | null | undefined;
2663
+ town?: string | null | undefined;
2664
+ joined?: string | null | undefined;
2665
+ stripe?: string | null | undefined;
2666
+ stripeDev?: string | null | undefined;
2667
+ } & {
2668
+ [k: string]: string | number | boolean;
2669
+ };
2670
+ intent: {
2671
+ current: string | null;
2672
+ flow: string[];
2673
+ initial: string | null;
2674
+ };
2675
+ conversation: {
2676
+ environment: "email" | "phone" | "web";
2677
+ $agent: string;
2678
+ $customer: string;
2679
+ initialContexts?: string[] | undefined;
2680
+ environmentProps?: {
2681
+ subject?: string | undefined;
2682
+ platformEmailThreadId?: string | undefined;
2683
+ } | undefined;
2684
+ };
2685
+ messages: {
2686
+ time: string;
2687
+ content: string;
2688
+ role: "agent" | "customer" | "system";
2689
+ name?: string | undefined;
2690
+ }[];
2691
+ stagnationCount: number;
2692
+ context?: any;
2693
+ note?: string | undefined;
2694
+ }>;
2695
+ export const ConversationContext: any;
2696
+ export const ForwardSchema: z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
2697
+ to: z.ZodOptional<z.ZodString>;
2698
+ mode: z.ZodOptional<z.ZodEnum<["after-reply", "immediately"]>>;
2699
+ }, "strip", z.ZodTypeAny, {
2700
+ to?: string | undefined;
2701
+ mode?: "after-reply" | "immediately" | undefined;
2702
+ }, {
2703
+ to?: string | undefined;
2704
+ mode?: "after-reply" | "immediately" | undefined;
2705
+ }>]>;
2706
+ export const InstructionSchema: z.ZodObject<{
2707
+ id: z.ZodString;
2708
+ content: z.ZodString;
2709
+ }, "strip", z.ZodTypeAny, {
2710
+ id: string;
2711
+ content: string;
2712
+ }, {
2713
+ id: string;
2714
+ content: string;
2715
+ }>;
2716
+ /**
2717
+ * If its a string, it will be sent as a static string.
2718
+ * If it's a object or WorkflowResponseMessageAPI - it will use
2719
+ */
2720
+ export const WorkflowResponseMessage: z.ZodUnion<readonly [z.ZodTypeAny, z.ZodTypeAny, ...z.ZodTypeAny[]]>;
2721
+ export const WorkflowResponseMessageApiRequest: z.ZodObject<{
2722
+ uri: z.ZodString;
2723
+ data: z.ZodOptional<z.ZodAny>;
2724
+ headers: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
2725
+ method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT"]>>;
2726
+ }, "strip", z.ZodTypeAny, {
2727
+ uri: string;
2728
+ data?: any;
2729
+ headers?: {} | undefined;
2730
+ method?: "GET" | "POST" | "PUT" | undefined;
2731
+ }, {
2732
+ uri: string;
2733
+ data?: any;
2734
+ headers?: {} | undefined;
2735
+ method?: "GET" | "POST" | "PUT" | undefined;
2736
+ }>;
2737
+ /**
2738
+ * The intended response provided by the WorkflowResponseMessageApiRequest
2739
+ */
2740
+ export const WorkflowResponseMessageApiResponse: z.ZodUnion<[z.ZodString, z.ZodObject<{
2741
+ message: z.ZodString;
2742
+ }, "strip", z.ZodTypeAny, {
2743
+ message: string;
2744
+ }, {
2745
+ message: string;
2746
+ }>, z.ZodObject<{
2747
+ text: z.ZodString;
2748
+ }, "strip", z.ZodTypeAny, {
2749
+ text: string;
2750
+ }, {
2751
+ text: string;
2752
+ }>, z.ZodObject<{
2753
+ data: z.ZodObject<{
2754
+ message: z.ZodString;
2755
+ }, "strip", z.ZodTypeAny, {
2756
+ message: string;
2757
+ }, {
2758
+ message: string;
2759
+ }>;
2760
+ }, "strip", z.ZodTypeAny, {
2761
+ data: {
2762
+ message: string;
2763
+ };
2764
+ }, {
2765
+ data: {
2766
+ message: string;
2767
+ };
2768
+ }>, z.ZodObject<{
2769
+ data: z.ZodObject<{
2770
+ text: z.ZodString;
2771
+ }, "strip", z.ZodTypeAny, {
2772
+ text: string;
2773
+ }, {
2774
+ text: string;
2775
+ }>;
2776
+ }, "strip", z.ZodTypeAny, {
2777
+ data: {
2778
+ text: string;
2779
+ };
2780
+ }, {
2781
+ data: {
2782
+ text: string;
2783
+ };
2784
+ }>]>;
2785
+ export const WorkflowResponseSlotSchema: z.ZodObject<{
2786
+ forward: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
2787
+ to: z.ZodOptional<z.ZodString>;
2788
+ mode: z.ZodOptional<z.ZodEnum<["after-reply", "immediately"]>>;
2789
+ }, "strip", z.ZodTypeAny, {
2790
+ to?: string | undefined;
2791
+ mode?: "after-reply" | "immediately" | undefined;
2792
+ }, {
2793
+ to?: string | undefined;
2794
+ mode?: "after-reply" | "immediately" | undefined;
2795
+ }>]>>;
2796
+ instructions: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2797
+ id: z.ZodString;
2798
+ content: z.ZodString;
2799
+ }, "strip", z.ZodTypeAny, {
2800
+ id: string;
2801
+ content: string;
2802
+ }, {
2803
+ id: string;
2804
+ content: string;
2805
+ }>, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodObject<{
2806
+ id: z.ZodString;
2807
+ content: z.ZodString;
2808
+ }, "strip", z.ZodTypeAny, {
2809
+ id: string;
2810
+ content: string;
2811
+ }, {
2812
+ id: string;
2813
+ content: string;
2814
+ }>, "many">]>>;
2815
+ removeInstructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2816
+ message: z.ZodOptional<z.ZodString>;
2817
+ secondsDelay: z.ZodOptional<z.ZodNumber>;
2818
+ scheduled: z.ZodOptional<z.ZodNumber>;
2819
+ contextUpsert: any;
2820
+ resetIntent: z.ZodOptional<z.ZodBoolean>;
2821
+ }, "strip", z.ZodTypeAny, {
2822
+ forward?: string | boolean | {
2823
+ to?: string | undefined;
2824
+ mode?: "after-reply" | "immediately" | undefined;
2825
+ } | undefined;
2826
+ instructions?: string | string[] | {
2827
+ id: string;
2828
+ content: string;
2829
+ } | {
2830
+ id: string;
2831
+ content: string;
2832
+ }[] | undefined;
2833
+ removeInstructions?: string[] | undefined;
2834
+ message?: string | undefined;
2835
+ secondsDelay?: number | undefined;
2836
+ scheduled?: number | undefined;
2837
+ contextUpsert?: any;
2838
+ resetIntent?: boolean | undefined;
2839
+ }, {
2840
+ forward?: string | boolean | {
2841
+ to?: string | undefined;
2842
+ mode?: "after-reply" | "immediately" | undefined;
2843
+ } | undefined;
2844
+ instructions?: string | string[] | {
2845
+ id: string;
2846
+ content: string;
2847
+ } | {
2848
+ id: string;
2849
+ content: string;
2850
+ }[] | undefined;
2851
+ removeInstructions?: string[] | undefined;
2852
+ message?: string | undefined;
2853
+ secondsDelay?: number | undefined;
2854
+ scheduled?: number | undefined;
2855
+ contextUpsert?: any;
2856
+ resetIntent?: boolean | undefined;
2857
+ }>;
2858
+ export const WorkflowResponseSchema: z.ZodUnion<[z.ZodObject<{
2859
+ forward: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
2860
+ to: z.ZodOptional<z.ZodString>;
2861
+ mode: z.ZodOptional<z.ZodEnum<["after-reply", "immediately"]>>;
2862
+ }, "strip", z.ZodTypeAny, {
2863
+ to?: string | undefined;
2864
+ mode?: "after-reply" | "immediately" | undefined;
2865
+ }, {
2866
+ to?: string | undefined;
2867
+ mode?: "after-reply" | "immediately" | undefined;
2868
+ }>]>>;
2869
+ instructions: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2870
+ id: z.ZodString;
2871
+ content: z.ZodString;
2872
+ }, "strip", z.ZodTypeAny, {
2873
+ id: string;
2874
+ content: string;
2875
+ }, {
2876
+ id: string;
2877
+ content: string;
2878
+ }>, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodObject<{
2879
+ id: z.ZodString;
2880
+ content: z.ZodString;
2881
+ }, "strip", z.ZodTypeAny, {
2882
+ id: string;
2883
+ content: string;
2884
+ }, {
2885
+ id: string;
2886
+ content: string;
2887
+ }>, "many">]>>;
2888
+ removeInstructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2889
+ message: z.ZodOptional<z.ZodString>;
2890
+ secondsDelay: z.ZodOptional<z.ZodNumber>;
2891
+ scheduled: z.ZodOptional<z.ZodNumber>;
2892
+ contextUpsert: any;
2893
+ resetIntent: z.ZodOptional<z.ZodBoolean>;
2894
+ }, "strip", z.ZodTypeAny, {
2895
+ forward?: string | boolean | {
2896
+ to?: string | undefined;
2897
+ mode?: "after-reply" | "immediately" | undefined;
2898
+ } | undefined;
2899
+ instructions?: string | string[] | {
2900
+ id: string;
2901
+ content: string;
2902
+ } | {
2903
+ id: string;
2904
+ content: string;
2905
+ }[] | undefined;
2906
+ removeInstructions?: string[] | undefined;
2907
+ message?: string | undefined;
2908
+ secondsDelay?: number | undefined;
2909
+ scheduled?: number | undefined;
2910
+ contextUpsert?: any;
2911
+ resetIntent?: boolean | undefined;
2912
+ }, {
2913
+ forward?: string | boolean | {
2914
+ to?: string | undefined;
2915
+ mode?: "after-reply" | "immediately" | undefined;
2916
+ } | undefined;
2917
+ instructions?: string | string[] | {
2918
+ id: string;
2919
+ content: string;
2920
+ } | {
2921
+ id: string;
2922
+ content: string;
2923
+ }[] | undefined;
2924
+ removeInstructions?: string[] | undefined;
2925
+ message?: string | undefined;
2926
+ secondsDelay?: number | undefined;
2927
+ scheduled?: number | undefined;
2928
+ contextUpsert?: any;
2929
+ resetIntent?: boolean | undefined;
2930
+ }>, z.ZodArray<z.ZodObject<{
2931
+ forward: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
2932
+ to: z.ZodOptional<z.ZodString>;
2933
+ mode: z.ZodOptional<z.ZodEnum<["after-reply", "immediately"]>>;
2934
+ }, "strip", z.ZodTypeAny, {
2935
+ to?: string | undefined;
2936
+ mode?: "after-reply" | "immediately" | undefined;
2937
+ }, {
2938
+ to?: string | undefined;
2939
+ mode?: "after-reply" | "immediately" | undefined;
2940
+ }>]>>;
2941
+ instructions: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2942
+ id: z.ZodString;
2943
+ content: z.ZodString;
2944
+ }, "strip", z.ZodTypeAny, {
2945
+ id: string;
2946
+ content: string;
2947
+ }, {
2948
+ id: string;
2949
+ content: string;
2950
+ }>, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodObject<{
2951
+ id: z.ZodString;
2952
+ content: z.ZodString;
2953
+ }, "strip", z.ZodTypeAny, {
2954
+ id: string;
2955
+ content: string;
2956
+ }, {
2957
+ id: string;
2958
+ content: string;
2959
+ }>, "many">]>>;
2960
+ removeInstructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2961
+ message: z.ZodOptional<z.ZodString>;
2962
+ secondsDelay: z.ZodOptional<z.ZodNumber>;
2963
+ scheduled: z.ZodOptional<z.ZodNumber>;
2964
+ contextUpsert: any;
2965
+ resetIntent: z.ZodOptional<z.ZodBoolean>;
2966
+ }, "strip", z.ZodTypeAny, {
2967
+ forward?: string | boolean | {
2968
+ to?: string | undefined;
2969
+ mode?: "after-reply" | "immediately" | undefined;
2970
+ } | undefined;
2971
+ instructions?: string | string[] | {
2972
+ id: string;
2973
+ content: string;
2974
+ } | {
2975
+ id: string;
2976
+ content: string;
2977
+ }[] | undefined;
2978
+ removeInstructions?: string[] | undefined;
2979
+ message?: string | undefined;
2980
+ secondsDelay?: number | undefined;
2981
+ scheduled?: number | undefined;
2982
+ contextUpsert?: any;
2983
+ resetIntent?: boolean | undefined;
2984
+ }, {
2985
+ forward?: string | boolean | {
2986
+ to?: string | undefined;
2987
+ mode?: "after-reply" | "immediately" | undefined;
2988
+ } | undefined;
2989
+ instructions?: string | string[] | {
2990
+ id: string;
2991
+ content: string;
2992
+ } | {
2993
+ id: string;
2994
+ content: string;
2995
+ }[] | undefined;
2996
+ removeInstructions?: string[] | undefined;
2997
+ message?: string | undefined;
2998
+ secondsDelay?: number | undefined;
2999
+ scheduled?: number | undefined;
3000
+ contextUpsert?: any;
3001
+ resetIntent?: boolean | undefined;
3002
+ }>, "many">]>;
1102
3003
  }
1103
3004
 
1104
3005
  declare module '@scout9/app/spirits' {