@voicelayer/sdk 0.4.0 → 0.4.2
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/README.md +18 -9
- package/dist/brain/index.d.ts +2 -2
- package/dist/brain/index.js +77 -3
- package/dist/index.d.ts +255 -249
- package/dist/index.js +964 -817
- package/dist/runtime/text-session.d.ts +1 -1
- package/dist/runtime/text-session.js +119 -15
- package/dist/{text-session-BB0dLLH2.d.ts → text-session-CtXihRr6.d.ts} +98 -98
- package/package.json +2 -2
|
@@ -351,11 +351,11 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
351
351
|
id: z.ZodString;
|
|
352
352
|
text: z.ZodString;
|
|
353
353
|
}, "strip", z.ZodTypeAny, {
|
|
354
|
-
id: string;
|
|
355
354
|
text: string;
|
|
356
|
-
}, {
|
|
357
355
|
id: string;
|
|
356
|
+
}, {
|
|
358
357
|
text: string;
|
|
358
|
+
id: string;
|
|
359
359
|
}>, "many">>;
|
|
360
360
|
fields: z.ZodArray<z.ZodObject<{
|
|
361
361
|
name: z.ZodString;
|
|
@@ -441,11 +441,11 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
441
441
|
retentionDays: z.ZodOptional<z.ZodNumber>;
|
|
442
442
|
piiFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
443
443
|
}, "strip", z.ZodTypeAny, {
|
|
444
|
-
scope?: "
|
|
444
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
445
445
|
retentionDays?: number | undefined;
|
|
446
446
|
piiFields?: string[] | undefined;
|
|
447
447
|
}, {
|
|
448
|
-
scope?: "
|
|
448
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
449
449
|
retentionDays?: number | undefined;
|
|
450
450
|
piiFields?: string[] | undefined;
|
|
451
451
|
}>>;
|
|
@@ -460,18 +460,18 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
460
460
|
connectionRef: z.ZodOptional<z.ZodString>;
|
|
461
461
|
}, "strip", z.ZodTypeAny, {
|
|
462
462
|
name: string;
|
|
463
|
-
url: string;
|
|
464
463
|
description: string;
|
|
465
464
|
input: Record<string, "string" | "number" | "boolean">;
|
|
465
|
+
url: string;
|
|
466
466
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
467
467
|
auth: "none" | "connection";
|
|
468
468
|
headers?: Record<string, string> | undefined;
|
|
469
469
|
connectionRef?: string | undefined;
|
|
470
470
|
}, {
|
|
471
471
|
name: string;
|
|
472
|
-
url: string;
|
|
473
472
|
description: string;
|
|
474
473
|
input: Record<string, "string" | "number" | "boolean">;
|
|
474
|
+
url: string;
|
|
475
475
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
476
476
|
auth: "none" | "connection";
|
|
477
477
|
headers?: Record<string, string> | undefined;
|
|
@@ -537,34 +537,34 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
537
537
|
label: z.ZodOptional<z.ZodString>;
|
|
538
538
|
}, "strip", z.ZodTypeAny, {
|
|
539
539
|
to: string;
|
|
540
|
-
condition?: string | undefined;
|
|
541
540
|
sourceHandle?: string | undefined;
|
|
542
541
|
label?: string | undefined;
|
|
542
|
+
condition?: string | undefined;
|
|
543
543
|
}, {
|
|
544
544
|
to: string;
|
|
545
|
-
condition?: string | undefined;
|
|
546
545
|
sourceHandle?: string | undefined;
|
|
547
546
|
label?: string | undefined;
|
|
547
|
+
condition?: string | undefined;
|
|
548
548
|
}>, "many">;
|
|
549
549
|
}, "strip", z.ZodTypeAny, {
|
|
550
|
-
type: "
|
|
550
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
551
551
|
id: string;
|
|
552
552
|
config: Record<string, unknown>;
|
|
553
553
|
out: {
|
|
554
554
|
to: string;
|
|
555
|
-
condition?: string | undefined;
|
|
556
555
|
sourceHandle?: string | undefined;
|
|
557
556
|
label?: string | undefined;
|
|
557
|
+
condition?: string | undefined;
|
|
558
558
|
}[];
|
|
559
559
|
}, {
|
|
560
|
-
type: "
|
|
560
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
561
561
|
id: string;
|
|
562
562
|
config: Record<string, unknown>;
|
|
563
563
|
out: {
|
|
564
564
|
to: string;
|
|
565
|
-
condition?: string | undefined;
|
|
566
565
|
sourceHandle?: string | undefined;
|
|
567
566
|
label?: string | undefined;
|
|
567
|
+
condition?: string | undefined;
|
|
568
568
|
}[];
|
|
569
569
|
}>>;
|
|
570
570
|
completionGate: z.ZodObject<{
|
|
@@ -591,20 +591,20 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
591
591
|
labelOnlyEdges?: string[] | undefined;
|
|
592
592
|
}>>;
|
|
593
593
|
}, "strip", z.ZodTypeAny, {
|
|
594
|
-
v: 1;
|
|
595
594
|
id: string;
|
|
596
|
-
entry: string[];
|
|
597
595
|
nodes: Record<string, {
|
|
598
|
-
type: "
|
|
596
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
599
597
|
id: string;
|
|
600
598
|
config: Record<string, unknown>;
|
|
601
599
|
out: {
|
|
602
600
|
to: string;
|
|
603
|
-
condition?: string | undefined;
|
|
604
601
|
sourceHandle?: string | undefined;
|
|
605
602
|
label?: string | undefined;
|
|
603
|
+
condition?: string | undefined;
|
|
606
604
|
}[];
|
|
607
605
|
}>;
|
|
606
|
+
v: 1;
|
|
607
|
+
entry: string[];
|
|
608
608
|
completionGate: {
|
|
609
609
|
requiredFields: string[];
|
|
610
610
|
};
|
|
@@ -615,20 +615,20 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
615
615
|
labelOnlyEdges?: string[] | undefined;
|
|
616
616
|
} | undefined;
|
|
617
617
|
}, {
|
|
618
|
-
v: 1;
|
|
619
618
|
id: string;
|
|
620
|
-
entry: string[];
|
|
621
619
|
nodes: Record<string, {
|
|
622
|
-
type: "
|
|
620
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
623
621
|
id: string;
|
|
624
622
|
config: Record<string, unknown>;
|
|
625
623
|
out: {
|
|
626
624
|
to: string;
|
|
627
|
-
condition?: string | undefined;
|
|
628
625
|
sourceHandle?: string | undefined;
|
|
629
626
|
label?: string | undefined;
|
|
627
|
+
condition?: string | undefined;
|
|
630
628
|
}[];
|
|
631
629
|
}>;
|
|
630
|
+
v: 1;
|
|
631
|
+
entry: string[];
|
|
632
632
|
completionGate: {
|
|
633
633
|
requiredFields: string[];
|
|
634
634
|
};
|
|
@@ -663,7 +663,7 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
663
663
|
routes?: Record<string, string> | undefined;
|
|
664
664
|
} | undefined;
|
|
665
665
|
memory?: {
|
|
666
|
-
scope?: "
|
|
666
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
667
667
|
retentionDays?: number | undefined;
|
|
668
668
|
piiFields?: string[] | undefined;
|
|
669
669
|
} | undefined;
|
|
@@ -679,8 +679,8 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
679
679
|
} | undefined;
|
|
680
680
|
} | undefined;
|
|
681
681
|
prompts?: {
|
|
682
|
-
id: string;
|
|
683
682
|
text: string;
|
|
683
|
+
id: string;
|
|
684
684
|
}[] | undefined;
|
|
685
685
|
triggers?: {
|
|
686
686
|
then: string;
|
|
@@ -690,29 +690,29 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
690
690
|
}[] | undefined;
|
|
691
691
|
tools?: {
|
|
692
692
|
name: string;
|
|
693
|
-
url: string;
|
|
694
693
|
description: string;
|
|
695
694
|
input: Record<string, "string" | "number" | "boolean">;
|
|
695
|
+
url: string;
|
|
696
696
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
697
697
|
auth: "none" | "connection";
|
|
698
698
|
headers?: Record<string, string> | undefined;
|
|
699
699
|
connectionRef?: string | undefined;
|
|
700
700
|
}[] | undefined;
|
|
701
701
|
program?: {
|
|
702
|
-
v: 1;
|
|
703
702
|
id: string;
|
|
704
|
-
entry: string[];
|
|
705
703
|
nodes: Record<string, {
|
|
706
|
-
type: "
|
|
704
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
707
705
|
id: string;
|
|
708
706
|
config: Record<string, unknown>;
|
|
709
707
|
out: {
|
|
710
708
|
to: string;
|
|
711
|
-
condition?: string | undefined;
|
|
712
709
|
sourceHandle?: string | undefined;
|
|
713
710
|
label?: string | undefined;
|
|
711
|
+
condition?: string | undefined;
|
|
714
712
|
}[];
|
|
715
713
|
}>;
|
|
714
|
+
v: 1;
|
|
715
|
+
entry: string[];
|
|
716
716
|
completionGate: {
|
|
717
717
|
requiredFields: string[];
|
|
718
718
|
};
|
|
@@ -747,7 +747,7 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
747
747
|
routes?: Record<string, string> | undefined;
|
|
748
748
|
} | undefined;
|
|
749
749
|
memory?: {
|
|
750
|
-
scope?: "
|
|
750
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
751
751
|
retentionDays?: number | undefined;
|
|
752
752
|
piiFields?: string[] | undefined;
|
|
753
753
|
} | undefined;
|
|
@@ -763,8 +763,8 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
763
763
|
} | undefined;
|
|
764
764
|
} | undefined;
|
|
765
765
|
prompts?: {
|
|
766
|
-
id: string;
|
|
767
766
|
text: string;
|
|
767
|
+
id: string;
|
|
768
768
|
}[] | undefined;
|
|
769
769
|
triggers?: {
|
|
770
770
|
then: string;
|
|
@@ -774,29 +774,29 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
774
774
|
}[] | undefined;
|
|
775
775
|
tools?: {
|
|
776
776
|
name: string;
|
|
777
|
-
url: string;
|
|
778
777
|
description: string;
|
|
779
778
|
input: Record<string, "string" | "number" | "boolean">;
|
|
779
|
+
url: string;
|
|
780
780
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
781
781
|
auth: "none" | "connection";
|
|
782
782
|
headers?: Record<string, string> | undefined;
|
|
783
783
|
connectionRef?: string | undefined;
|
|
784
784
|
}[] | undefined;
|
|
785
785
|
program?: {
|
|
786
|
-
v: 1;
|
|
787
786
|
id: string;
|
|
788
|
-
entry: string[];
|
|
789
787
|
nodes: Record<string, {
|
|
790
|
-
type: "
|
|
788
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
791
789
|
id: string;
|
|
792
790
|
config: Record<string, unknown>;
|
|
793
791
|
out: {
|
|
794
792
|
to: string;
|
|
795
|
-
condition?: string | undefined;
|
|
796
793
|
sourceHandle?: string | undefined;
|
|
797
794
|
label?: string | undefined;
|
|
795
|
+
condition?: string | undefined;
|
|
798
796
|
}[];
|
|
799
797
|
}>;
|
|
798
|
+
v: 1;
|
|
799
|
+
entry: string[];
|
|
800
800
|
completionGate: {
|
|
801
801
|
requiredFields: string[];
|
|
802
802
|
};
|
|
@@ -839,11 +839,11 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
839
839
|
id: z.ZodString;
|
|
840
840
|
text: z.ZodString;
|
|
841
841
|
}, "strip", z.ZodTypeAny, {
|
|
842
|
-
id: string;
|
|
843
842
|
text: string;
|
|
844
|
-
}, {
|
|
845
843
|
id: string;
|
|
844
|
+
}, {
|
|
846
845
|
text: string;
|
|
846
|
+
id: string;
|
|
847
847
|
}>, "many">>;
|
|
848
848
|
fields: z.ZodArray<z.ZodObject<{
|
|
849
849
|
name: z.ZodString;
|
|
@@ -929,11 +929,11 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
929
929
|
retentionDays: z.ZodOptional<z.ZodNumber>;
|
|
930
930
|
piiFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
931
931
|
}, "strip", z.ZodTypeAny, {
|
|
932
|
-
scope?: "
|
|
932
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
933
933
|
retentionDays?: number | undefined;
|
|
934
934
|
piiFields?: string[] | undefined;
|
|
935
935
|
}, {
|
|
936
|
-
scope?: "
|
|
936
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
937
937
|
retentionDays?: number | undefined;
|
|
938
938
|
piiFields?: string[] | undefined;
|
|
939
939
|
}>>;
|
|
@@ -948,18 +948,18 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
948
948
|
connectionRef: z.ZodOptional<z.ZodString>;
|
|
949
949
|
}, "strip", z.ZodTypeAny, {
|
|
950
950
|
name: string;
|
|
951
|
-
url: string;
|
|
952
951
|
description: string;
|
|
953
952
|
input: Record<string, "string" | "number" | "boolean">;
|
|
953
|
+
url: string;
|
|
954
954
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
955
955
|
auth: "none" | "connection";
|
|
956
956
|
headers?: Record<string, string> | undefined;
|
|
957
957
|
connectionRef?: string | undefined;
|
|
958
958
|
}, {
|
|
959
959
|
name: string;
|
|
960
|
-
url: string;
|
|
961
960
|
description: string;
|
|
962
961
|
input: Record<string, "string" | "number" | "boolean">;
|
|
962
|
+
url: string;
|
|
963
963
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
964
964
|
auth: "none" | "connection";
|
|
965
965
|
headers?: Record<string, string> | undefined;
|
|
@@ -1025,34 +1025,34 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1025
1025
|
label: z.ZodOptional<z.ZodString>;
|
|
1026
1026
|
}, "strip", z.ZodTypeAny, {
|
|
1027
1027
|
to: string;
|
|
1028
|
-
condition?: string | undefined;
|
|
1029
1028
|
sourceHandle?: string | undefined;
|
|
1030
1029
|
label?: string | undefined;
|
|
1030
|
+
condition?: string | undefined;
|
|
1031
1031
|
}, {
|
|
1032
1032
|
to: string;
|
|
1033
|
-
condition?: string | undefined;
|
|
1034
1033
|
sourceHandle?: string | undefined;
|
|
1035
1034
|
label?: string | undefined;
|
|
1035
|
+
condition?: string | undefined;
|
|
1036
1036
|
}>, "many">;
|
|
1037
1037
|
}, "strip", z.ZodTypeAny, {
|
|
1038
|
-
type: "
|
|
1038
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1039
1039
|
id: string;
|
|
1040
1040
|
config: Record<string, unknown>;
|
|
1041
1041
|
out: {
|
|
1042
1042
|
to: string;
|
|
1043
|
-
condition?: string | undefined;
|
|
1044
1043
|
sourceHandle?: string | undefined;
|
|
1045
1044
|
label?: string | undefined;
|
|
1045
|
+
condition?: string | undefined;
|
|
1046
1046
|
}[];
|
|
1047
1047
|
}, {
|
|
1048
|
-
type: "
|
|
1048
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1049
1049
|
id: string;
|
|
1050
1050
|
config: Record<string, unknown>;
|
|
1051
1051
|
out: {
|
|
1052
1052
|
to: string;
|
|
1053
|
-
condition?: string | undefined;
|
|
1054
1053
|
sourceHandle?: string | undefined;
|
|
1055
1054
|
label?: string | undefined;
|
|
1055
|
+
condition?: string | undefined;
|
|
1056
1056
|
}[];
|
|
1057
1057
|
}>>;
|
|
1058
1058
|
completionGate: z.ZodObject<{
|
|
@@ -1079,20 +1079,20 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1079
1079
|
labelOnlyEdges?: string[] | undefined;
|
|
1080
1080
|
}>>;
|
|
1081
1081
|
}, "strip", z.ZodTypeAny, {
|
|
1082
|
-
v: 1;
|
|
1083
1082
|
id: string;
|
|
1084
|
-
entry: string[];
|
|
1085
1083
|
nodes: Record<string, {
|
|
1086
|
-
type: "
|
|
1084
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1087
1085
|
id: string;
|
|
1088
1086
|
config: Record<string, unknown>;
|
|
1089
1087
|
out: {
|
|
1090
1088
|
to: string;
|
|
1091
|
-
condition?: string | undefined;
|
|
1092
1089
|
sourceHandle?: string | undefined;
|
|
1093
1090
|
label?: string | undefined;
|
|
1091
|
+
condition?: string | undefined;
|
|
1094
1092
|
}[];
|
|
1095
1093
|
}>;
|
|
1094
|
+
v: 1;
|
|
1095
|
+
entry: string[];
|
|
1096
1096
|
completionGate: {
|
|
1097
1097
|
requiredFields: string[];
|
|
1098
1098
|
};
|
|
@@ -1103,20 +1103,20 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1103
1103
|
labelOnlyEdges?: string[] | undefined;
|
|
1104
1104
|
} | undefined;
|
|
1105
1105
|
}, {
|
|
1106
|
-
v: 1;
|
|
1107
1106
|
id: string;
|
|
1108
|
-
entry: string[];
|
|
1109
1107
|
nodes: Record<string, {
|
|
1110
|
-
type: "
|
|
1108
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1111
1109
|
id: string;
|
|
1112
1110
|
config: Record<string, unknown>;
|
|
1113
1111
|
out: {
|
|
1114
1112
|
to: string;
|
|
1115
|
-
condition?: string | undefined;
|
|
1116
1113
|
sourceHandle?: string | undefined;
|
|
1117
1114
|
label?: string | undefined;
|
|
1115
|
+
condition?: string | undefined;
|
|
1118
1116
|
}[];
|
|
1119
1117
|
}>;
|
|
1118
|
+
v: 1;
|
|
1119
|
+
entry: string[];
|
|
1120
1120
|
completionGate: {
|
|
1121
1121
|
requiredFields: string[];
|
|
1122
1122
|
};
|
|
@@ -1151,7 +1151,7 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1151
1151
|
routes?: Record<string, string> | undefined;
|
|
1152
1152
|
} | undefined;
|
|
1153
1153
|
memory?: {
|
|
1154
|
-
scope?: "
|
|
1154
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
1155
1155
|
retentionDays?: number | undefined;
|
|
1156
1156
|
piiFields?: string[] | undefined;
|
|
1157
1157
|
} | undefined;
|
|
@@ -1167,8 +1167,8 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1167
1167
|
} | undefined;
|
|
1168
1168
|
} | undefined;
|
|
1169
1169
|
prompts?: {
|
|
1170
|
-
id: string;
|
|
1171
1170
|
text: string;
|
|
1171
|
+
id: string;
|
|
1172
1172
|
}[] | undefined;
|
|
1173
1173
|
triggers?: {
|
|
1174
1174
|
then: string;
|
|
@@ -1178,29 +1178,29 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1178
1178
|
}[] | undefined;
|
|
1179
1179
|
tools?: {
|
|
1180
1180
|
name: string;
|
|
1181
|
-
url: string;
|
|
1182
1181
|
description: string;
|
|
1183
1182
|
input: Record<string, "string" | "number" | "boolean">;
|
|
1183
|
+
url: string;
|
|
1184
1184
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1185
1185
|
auth: "none" | "connection";
|
|
1186
1186
|
headers?: Record<string, string> | undefined;
|
|
1187
1187
|
connectionRef?: string | undefined;
|
|
1188
1188
|
}[] | undefined;
|
|
1189
1189
|
program?: {
|
|
1190
|
-
v: 1;
|
|
1191
1190
|
id: string;
|
|
1192
|
-
entry: string[];
|
|
1193
1191
|
nodes: Record<string, {
|
|
1194
|
-
type: "
|
|
1192
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1195
1193
|
id: string;
|
|
1196
1194
|
config: Record<string, unknown>;
|
|
1197
1195
|
out: {
|
|
1198
1196
|
to: string;
|
|
1199
|
-
condition?: string | undefined;
|
|
1200
1197
|
sourceHandle?: string | undefined;
|
|
1201
1198
|
label?: string | undefined;
|
|
1199
|
+
condition?: string | undefined;
|
|
1202
1200
|
}[];
|
|
1203
1201
|
}>;
|
|
1202
|
+
v: 1;
|
|
1203
|
+
entry: string[];
|
|
1204
1204
|
completionGate: {
|
|
1205
1205
|
requiredFields: string[];
|
|
1206
1206
|
};
|
|
@@ -1235,7 +1235,7 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1235
1235
|
routes?: Record<string, string> | undefined;
|
|
1236
1236
|
} | undefined;
|
|
1237
1237
|
memory?: {
|
|
1238
|
-
scope?: "
|
|
1238
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
1239
1239
|
retentionDays?: number | undefined;
|
|
1240
1240
|
piiFields?: string[] | undefined;
|
|
1241
1241
|
} | undefined;
|
|
@@ -1251,8 +1251,8 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1251
1251
|
} | undefined;
|
|
1252
1252
|
} | undefined;
|
|
1253
1253
|
prompts?: {
|
|
1254
|
-
id: string;
|
|
1255
1254
|
text: string;
|
|
1255
|
+
id: string;
|
|
1256
1256
|
}[] | undefined;
|
|
1257
1257
|
triggers?: {
|
|
1258
1258
|
then: string;
|
|
@@ -1262,29 +1262,29 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1262
1262
|
}[] | undefined;
|
|
1263
1263
|
tools?: {
|
|
1264
1264
|
name: string;
|
|
1265
|
-
url: string;
|
|
1266
1265
|
description: string;
|
|
1267
1266
|
input: Record<string, "string" | "number" | "boolean">;
|
|
1267
|
+
url: string;
|
|
1268
1268
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1269
1269
|
auth: "none" | "connection";
|
|
1270
1270
|
headers?: Record<string, string> | undefined;
|
|
1271
1271
|
connectionRef?: string | undefined;
|
|
1272
1272
|
}[] | undefined;
|
|
1273
1273
|
program?: {
|
|
1274
|
-
v: 1;
|
|
1275
1274
|
id: string;
|
|
1276
|
-
entry: string[];
|
|
1277
1275
|
nodes: Record<string, {
|
|
1278
|
-
type: "
|
|
1276
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1279
1277
|
id: string;
|
|
1280
1278
|
config: Record<string, unknown>;
|
|
1281
1279
|
out: {
|
|
1282
1280
|
to: string;
|
|
1283
|
-
condition?: string | undefined;
|
|
1284
1281
|
sourceHandle?: string | undefined;
|
|
1285
1282
|
label?: string | undefined;
|
|
1283
|
+
condition?: string | undefined;
|
|
1286
1284
|
}[];
|
|
1287
1285
|
}>;
|
|
1286
|
+
v: 1;
|
|
1287
|
+
entry: string[];
|
|
1288
1288
|
completionGate: {
|
|
1289
1289
|
requiredFields: string[];
|
|
1290
1290
|
};
|
|
@@ -1302,8 +1302,8 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1302
1302
|
}, "strip", z.ZodTypeAny, {
|
|
1303
1303
|
status: "online" | "offline" | "degraded";
|
|
1304
1304
|
id: string;
|
|
1305
|
-
name: string;
|
|
1306
1305
|
projectId: string;
|
|
1306
|
+
name: string;
|
|
1307
1307
|
createdAt: string;
|
|
1308
1308
|
updatedAt: string;
|
|
1309
1309
|
version: string;
|
|
@@ -1341,7 +1341,7 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1341
1341
|
routes?: Record<string, string> | undefined;
|
|
1342
1342
|
} | undefined;
|
|
1343
1343
|
memory?: {
|
|
1344
|
-
scope?: "
|
|
1344
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
1345
1345
|
retentionDays?: number | undefined;
|
|
1346
1346
|
piiFields?: string[] | undefined;
|
|
1347
1347
|
} | undefined;
|
|
@@ -1357,8 +1357,8 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1357
1357
|
} | undefined;
|
|
1358
1358
|
} | undefined;
|
|
1359
1359
|
prompts?: {
|
|
1360
|
-
id: string;
|
|
1361
1360
|
text: string;
|
|
1361
|
+
id: string;
|
|
1362
1362
|
}[] | undefined;
|
|
1363
1363
|
triggers?: {
|
|
1364
1364
|
then: string;
|
|
@@ -1368,29 +1368,29 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1368
1368
|
}[] | undefined;
|
|
1369
1369
|
tools?: {
|
|
1370
1370
|
name: string;
|
|
1371
|
-
url: string;
|
|
1372
1371
|
description: string;
|
|
1373
1372
|
input: Record<string, "string" | "number" | "boolean">;
|
|
1373
|
+
url: string;
|
|
1374
1374
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1375
1375
|
auth: "none" | "connection";
|
|
1376
1376
|
headers?: Record<string, string> | undefined;
|
|
1377
1377
|
connectionRef?: string | undefined;
|
|
1378
1378
|
}[] | undefined;
|
|
1379
1379
|
program?: {
|
|
1380
|
-
v: 1;
|
|
1381
1380
|
id: string;
|
|
1382
|
-
entry: string[];
|
|
1383
1381
|
nodes: Record<string, {
|
|
1384
|
-
type: "
|
|
1382
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1385
1383
|
id: string;
|
|
1386
1384
|
config: Record<string, unknown>;
|
|
1387
1385
|
out: {
|
|
1388
1386
|
to: string;
|
|
1389
|
-
condition?: string | undefined;
|
|
1390
1387
|
sourceHandle?: string | undefined;
|
|
1391
1388
|
label?: string | undefined;
|
|
1389
|
+
condition?: string | undefined;
|
|
1392
1390
|
}[];
|
|
1393
1391
|
}>;
|
|
1392
|
+
v: 1;
|
|
1393
|
+
entry: string[];
|
|
1394
1394
|
completionGate: {
|
|
1395
1395
|
requiredFields: string[];
|
|
1396
1396
|
};
|
|
@@ -1406,8 +1406,8 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1406
1406
|
}, {
|
|
1407
1407
|
status: "online" | "offline" | "degraded";
|
|
1408
1408
|
id: string;
|
|
1409
|
-
name: string;
|
|
1410
1409
|
projectId: string;
|
|
1410
|
+
name: string;
|
|
1411
1411
|
createdAt: string;
|
|
1412
1412
|
updatedAt: string;
|
|
1413
1413
|
version: string;
|
|
@@ -1445,7 +1445,7 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1445
1445
|
routes?: Record<string, string> | undefined;
|
|
1446
1446
|
} | undefined;
|
|
1447
1447
|
memory?: {
|
|
1448
|
-
scope?: "
|
|
1448
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
1449
1449
|
retentionDays?: number | undefined;
|
|
1450
1450
|
piiFields?: string[] | undefined;
|
|
1451
1451
|
} | undefined;
|
|
@@ -1461,8 +1461,8 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1461
1461
|
} | undefined;
|
|
1462
1462
|
} | undefined;
|
|
1463
1463
|
prompts?: {
|
|
1464
|
-
id: string;
|
|
1465
1464
|
text: string;
|
|
1465
|
+
id: string;
|
|
1466
1466
|
}[] | undefined;
|
|
1467
1467
|
triggers?: {
|
|
1468
1468
|
then: string;
|
|
@@ -1472,29 +1472,29 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1472
1472
|
}[] | undefined;
|
|
1473
1473
|
tools?: {
|
|
1474
1474
|
name: string;
|
|
1475
|
-
url: string;
|
|
1476
1475
|
description: string;
|
|
1477
1476
|
input: Record<string, "string" | "number" | "boolean">;
|
|
1477
|
+
url: string;
|
|
1478
1478
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1479
1479
|
auth: "none" | "connection";
|
|
1480
1480
|
headers?: Record<string, string> | undefined;
|
|
1481
1481
|
connectionRef?: string | undefined;
|
|
1482
1482
|
}[] | undefined;
|
|
1483
1483
|
program?: {
|
|
1484
|
-
v: 1;
|
|
1485
1484
|
id: string;
|
|
1486
|
-
entry: string[];
|
|
1487
1485
|
nodes: Record<string, {
|
|
1488
|
-
type: "
|
|
1486
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1489
1487
|
id: string;
|
|
1490
1488
|
config: Record<string, unknown>;
|
|
1491
1489
|
out: {
|
|
1492
1490
|
to: string;
|
|
1493
|
-
condition?: string | undefined;
|
|
1494
1491
|
sourceHandle?: string | undefined;
|
|
1495
1492
|
label?: string | undefined;
|
|
1493
|
+
condition?: string | undefined;
|
|
1496
1494
|
}[];
|
|
1497
1495
|
}>;
|
|
1496
|
+
v: 1;
|
|
1497
|
+
entry: string[];
|
|
1498
1498
|
completionGate: {
|
|
1499
1499
|
requiredFields: string[];
|
|
1500
1500
|
};
|
|
@@ -1525,34 +1525,34 @@ declare const FlowProgram: z.ZodObject<{
|
|
|
1525
1525
|
label: z.ZodOptional<z.ZodString>;
|
|
1526
1526
|
}, "strip", z.ZodTypeAny, {
|
|
1527
1527
|
to: string;
|
|
1528
|
-
condition?: string | undefined;
|
|
1529
1528
|
sourceHandle?: string | undefined;
|
|
1530
1529
|
label?: string | undefined;
|
|
1530
|
+
condition?: string | undefined;
|
|
1531
1531
|
}, {
|
|
1532
1532
|
to: string;
|
|
1533
|
-
condition?: string | undefined;
|
|
1534
1533
|
sourceHandle?: string | undefined;
|
|
1535
1534
|
label?: string | undefined;
|
|
1535
|
+
condition?: string | undefined;
|
|
1536
1536
|
}>, "many">;
|
|
1537
1537
|
}, "strip", z.ZodTypeAny, {
|
|
1538
|
-
type: "
|
|
1538
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1539
1539
|
id: string;
|
|
1540
1540
|
config: Record<string, unknown>;
|
|
1541
1541
|
out: {
|
|
1542
1542
|
to: string;
|
|
1543
|
-
condition?: string | undefined;
|
|
1544
1543
|
sourceHandle?: string | undefined;
|
|
1545
1544
|
label?: string | undefined;
|
|
1545
|
+
condition?: string | undefined;
|
|
1546
1546
|
}[];
|
|
1547
1547
|
}, {
|
|
1548
|
-
type: "
|
|
1548
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1549
1549
|
id: string;
|
|
1550
1550
|
config: Record<string, unknown>;
|
|
1551
1551
|
out: {
|
|
1552
1552
|
to: string;
|
|
1553
|
-
condition?: string | undefined;
|
|
1554
1553
|
sourceHandle?: string | undefined;
|
|
1555
1554
|
label?: string | undefined;
|
|
1555
|
+
condition?: string | undefined;
|
|
1556
1556
|
}[];
|
|
1557
1557
|
}>>;
|
|
1558
1558
|
completionGate: z.ZodObject<{
|
|
@@ -1579,20 +1579,20 @@ declare const FlowProgram: z.ZodObject<{
|
|
|
1579
1579
|
labelOnlyEdges?: string[] | undefined;
|
|
1580
1580
|
}>>;
|
|
1581
1581
|
}, "strip", z.ZodTypeAny, {
|
|
1582
|
-
v: 1;
|
|
1583
1582
|
id: string;
|
|
1584
|
-
entry: string[];
|
|
1585
1583
|
nodes: Record<string, {
|
|
1586
|
-
type: "
|
|
1584
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1587
1585
|
id: string;
|
|
1588
1586
|
config: Record<string, unknown>;
|
|
1589
1587
|
out: {
|
|
1590
1588
|
to: string;
|
|
1591
|
-
condition?: string | undefined;
|
|
1592
1589
|
sourceHandle?: string | undefined;
|
|
1593
1590
|
label?: string | undefined;
|
|
1591
|
+
condition?: string | undefined;
|
|
1594
1592
|
}[];
|
|
1595
1593
|
}>;
|
|
1594
|
+
v: 1;
|
|
1595
|
+
entry: string[];
|
|
1596
1596
|
completionGate: {
|
|
1597
1597
|
requiredFields: string[];
|
|
1598
1598
|
};
|
|
@@ -1603,20 +1603,20 @@ declare const FlowProgram: z.ZodObject<{
|
|
|
1603
1603
|
labelOnlyEdges?: string[] | undefined;
|
|
1604
1604
|
} | undefined;
|
|
1605
1605
|
}, {
|
|
1606
|
-
v: 1;
|
|
1607
1606
|
id: string;
|
|
1608
|
-
entry: string[];
|
|
1609
1607
|
nodes: Record<string, {
|
|
1610
|
-
type: "
|
|
1608
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1611
1609
|
id: string;
|
|
1612
1610
|
config: Record<string, unknown>;
|
|
1613
1611
|
out: {
|
|
1614
1612
|
to: string;
|
|
1615
|
-
condition?: string | undefined;
|
|
1616
1613
|
sourceHandle?: string | undefined;
|
|
1617
1614
|
label?: string | undefined;
|
|
1615
|
+
condition?: string | undefined;
|
|
1618
1616
|
}[];
|
|
1619
1617
|
}>;
|
|
1618
|
+
v: 1;
|
|
1619
|
+
entry: string[];
|
|
1620
1620
|
completionGate: {
|
|
1621
1621
|
requiredFields: string[];
|
|
1622
1622
|
};
|