@voicelayer/sdk 0.6.0 → 0.6.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/dist/brain/index.d.ts +2 -2
- package/dist/brain/index.js +155 -162
- package/dist/index.d.ts +707 -257
- package/dist/index.js +1251 -454
- package/dist/runtime/text-session.d.ts +1 -1
- package/dist/runtime/text-session.js +256 -176
- package/dist/{text-session-CoyEcdmg.d.ts → text-session-B-T33y5P.d.ts} +116 -110
- package/package.json +5 -5
|
@@ -354,11 +354,11 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
354
354
|
id: z.ZodString;
|
|
355
355
|
text: z.ZodString;
|
|
356
356
|
}, "strip", z.ZodTypeAny, {
|
|
357
|
-
text: string;
|
|
358
357
|
id: string;
|
|
359
|
-
}, {
|
|
360
358
|
text: string;
|
|
359
|
+
}, {
|
|
361
360
|
id: string;
|
|
361
|
+
text: string;
|
|
362
362
|
}>, "many">>;
|
|
363
363
|
fields: z.ZodArray<z.ZodObject<{
|
|
364
364
|
name: z.ZodString;
|
|
@@ -454,11 +454,11 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
454
454
|
retentionDays: z.ZodOptional<z.ZodNumber>;
|
|
455
455
|
piiFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
456
456
|
}, "strip", z.ZodTypeAny, {
|
|
457
|
-
scope?: "
|
|
457
|
+
scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
|
|
458
458
|
retentionDays?: number | undefined;
|
|
459
459
|
piiFields?: string[] | undefined;
|
|
460
460
|
}, {
|
|
461
|
-
scope?: "
|
|
461
|
+
scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
|
|
462
462
|
retentionDays?: number | undefined;
|
|
463
463
|
piiFields?: string[] | undefined;
|
|
464
464
|
}>>;
|
|
@@ -486,25 +486,25 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
486
486
|
sendRealValues: z.ZodOptional<z.ZodBoolean>;
|
|
487
487
|
}, "strip", z.ZodTypeAny, {
|
|
488
488
|
name: string;
|
|
489
|
+
url: string;
|
|
489
490
|
description: string;
|
|
490
491
|
input: Record<string, "string" | "number" | "boolean">;
|
|
491
|
-
url: string;
|
|
492
492
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
493
493
|
auth: "none" | "connection";
|
|
494
|
+
allowPrivateNetwork?: boolean | undefined;
|
|
494
495
|
headers?: Record<string, string> | undefined;
|
|
495
496
|
connectionRef?: string | undefined;
|
|
496
|
-
allowPrivateNetwork?: boolean | undefined;
|
|
497
497
|
sendRealValues?: boolean | undefined;
|
|
498
498
|
}, {
|
|
499
499
|
name: string;
|
|
500
|
+
url: string;
|
|
500
501
|
description: string;
|
|
501
502
|
input: Record<string, "string" | "number" | "boolean">;
|
|
502
|
-
url: string;
|
|
503
503
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
504
504
|
auth: "none" | "connection";
|
|
505
|
+
allowPrivateNetwork?: boolean | undefined;
|
|
505
506
|
headers?: Record<string, string> | undefined;
|
|
506
507
|
connectionRef?: string | undefined;
|
|
507
|
-
allowPrivateNetwork?: boolean | undefined;
|
|
508
508
|
sendRealValues?: boolean | undefined;
|
|
509
509
|
}>, "many">>;
|
|
510
510
|
displayName: z.ZodOptional<z.ZodString>;
|
|
@@ -568,34 +568,34 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
568
568
|
label: z.ZodOptional<z.ZodString>;
|
|
569
569
|
}, "strip", z.ZodTypeAny, {
|
|
570
570
|
to: string;
|
|
571
|
+
condition?: string | undefined;
|
|
571
572
|
sourceHandle?: string | undefined;
|
|
572
573
|
label?: string | undefined;
|
|
573
|
-
condition?: string | undefined;
|
|
574
574
|
}, {
|
|
575
575
|
to: string;
|
|
576
|
+
condition?: string | undefined;
|
|
576
577
|
sourceHandle?: string | undefined;
|
|
577
578
|
label?: string | undefined;
|
|
578
|
-
condition?: string | undefined;
|
|
579
579
|
}>, "many">;
|
|
580
580
|
}, "strip", z.ZodTypeAny, {
|
|
581
|
-
type: "
|
|
581
|
+
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
582
582
|
id: string;
|
|
583
583
|
config: Record<string, unknown>;
|
|
584
584
|
out: {
|
|
585
585
|
to: string;
|
|
586
|
+
condition?: string | undefined;
|
|
586
587
|
sourceHandle?: string | undefined;
|
|
587
588
|
label?: string | undefined;
|
|
588
|
-
condition?: string | undefined;
|
|
589
589
|
}[];
|
|
590
590
|
}, {
|
|
591
|
-
type: "
|
|
591
|
+
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
592
592
|
id: string;
|
|
593
593
|
config: Record<string, unknown>;
|
|
594
594
|
out: {
|
|
595
595
|
to: string;
|
|
596
|
+
condition?: string | undefined;
|
|
596
597
|
sourceHandle?: string | undefined;
|
|
597
598
|
label?: string | undefined;
|
|
598
|
-
condition?: string | undefined;
|
|
599
599
|
}[];
|
|
600
600
|
}>>;
|
|
601
601
|
completionGate: z.ZodObject<{
|
|
@@ -622,20 +622,20 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
622
622
|
labelOnlyEdges?: string[] | undefined;
|
|
623
623
|
}>>;
|
|
624
624
|
}, "strip", z.ZodTypeAny, {
|
|
625
|
+
v: 1;
|
|
625
626
|
id: string;
|
|
627
|
+
entry: string[];
|
|
626
628
|
nodes: Record<string, {
|
|
627
|
-
type: "
|
|
629
|
+
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
628
630
|
id: string;
|
|
629
631
|
config: Record<string, unknown>;
|
|
630
632
|
out: {
|
|
631
633
|
to: string;
|
|
634
|
+
condition?: string | undefined;
|
|
632
635
|
sourceHandle?: string | undefined;
|
|
633
636
|
label?: string | undefined;
|
|
634
|
-
condition?: string | undefined;
|
|
635
637
|
}[];
|
|
636
638
|
}>;
|
|
637
|
-
v: 1;
|
|
638
|
-
entry: string[];
|
|
639
639
|
completionGate: {
|
|
640
640
|
requiredFields: string[];
|
|
641
641
|
};
|
|
@@ -646,20 +646,20 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
646
646
|
labelOnlyEdges?: string[] | undefined;
|
|
647
647
|
} | undefined;
|
|
648
648
|
}, {
|
|
649
|
+
v: 1;
|
|
649
650
|
id: string;
|
|
651
|
+
entry: string[];
|
|
650
652
|
nodes: Record<string, {
|
|
651
|
-
type: "
|
|
653
|
+
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
652
654
|
id: string;
|
|
653
655
|
config: Record<string, unknown>;
|
|
654
656
|
out: {
|
|
655
657
|
to: string;
|
|
658
|
+
condition?: string | undefined;
|
|
656
659
|
sourceHandle?: string | undefined;
|
|
657
660
|
label?: string | undefined;
|
|
658
|
-
condition?: string | undefined;
|
|
659
661
|
}[];
|
|
660
662
|
}>;
|
|
661
|
-
v: 1;
|
|
662
|
-
entry: string[];
|
|
663
663
|
completionGate: {
|
|
664
664
|
requiredFields: string[];
|
|
665
665
|
};
|
|
@@ -696,7 +696,7 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
696
696
|
routes?: Record<string, string> | undefined;
|
|
697
697
|
} | undefined;
|
|
698
698
|
memory?: {
|
|
699
|
-
scope?: "
|
|
699
|
+
scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
|
|
700
700
|
retentionDays?: number | undefined;
|
|
701
701
|
piiFields?: string[] | undefined;
|
|
702
702
|
} | undefined;
|
|
@@ -712,8 +712,8 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
712
712
|
} | undefined;
|
|
713
713
|
} | undefined;
|
|
714
714
|
prompts?: {
|
|
715
|
-
text: string;
|
|
716
715
|
id: string;
|
|
716
|
+
text: string;
|
|
717
717
|
}[] | undefined;
|
|
718
718
|
triggers?: {
|
|
719
719
|
then: string;
|
|
@@ -723,32 +723,32 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
723
723
|
}[] | undefined;
|
|
724
724
|
tools?: {
|
|
725
725
|
name: string;
|
|
726
|
+
url: string;
|
|
726
727
|
description: string;
|
|
727
728
|
input: Record<string, "string" | "number" | "boolean">;
|
|
728
|
-
url: string;
|
|
729
729
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
730
730
|
auth: "none" | "connection";
|
|
731
|
+
allowPrivateNetwork?: boolean | undefined;
|
|
731
732
|
headers?: Record<string, string> | undefined;
|
|
732
733
|
connectionRef?: string | undefined;
|
|
733
|
-
allowPrivateNetwork?: boolean | undefined;
|
|
734
734
|
sendRealValues?: boolean | undefined;
|
|
735
735
|
}[] | undefined;
|
|
736
736
|
displayName?: string | undefined;
|
|
737
737
|
program?: {
|
|
738
|
+
v: 1;
|
|
738
739
|
id: string;
|
|
740
|
+
entry: string[];
|
|
739
741
|
nodes: Record<string, {
|
|
740
|
-
type: "
|
|
742
|
+
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
741
743
|
id: string;
|
|
742
744
|
config: Record<string, unknown>;
|
|
743
745
|
out: {
|
|
744
746
|
to: string;
|
|
747
|
+
condition?: string | undefined;
|
|
745
748
|
sourceHandle?: string | undefined;
|
|
746
749
|
label?: string | undefined;
|
|
747
|
-
condition?: string | undefined;
|
|
748
750
|
}[];
|
|
749
751
|
}>;
|
|
750
|
-
v: 1;
|
|
751
|
-
entry: string[];
|
|
752
752
|
completionGate: {
|
|
753
753
|
requiredFields: string[];
|
|
754
754
|
};
|
|
@@ -785,7 +785,7 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
785
785
|
routes?: Record<string, string> | undefined;
|
|
786
786
|
} | undefined;
|
|
787
787
|
memory?: {
|
|
788
|
-
scope?: "
|
|
788
|
+
scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
|
|
789
789
|
retentionDays?: number | undefined;
|
|
790
790
|
piiFields?: string[] | undefined;
|
|
791
791
|
} | undefined;
|
|
@@ -801,8 +801,8 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
801
801
|
} | undefined;
|
|
802
802
|
} | undefined;
|
|
803
803
|
prompts?: {
|
|
804
|
-
text: string;
|
|
805
804
|
id: string;
|
|
805
|
+
text: string;
|
|
806
806
|
}[] | undefined;
|
|
807
807
|
triggers?: {
|
|
808
808
|
then: string;
|
|
@@ -812,32 +812,32 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
812
812
|
}[] | undefined;
|
|
813
813
|
tools?: {
|
|
814
814
|
name: string;
|
|
815
|
+
url: string;
|
|
815
816
|
description: string;
|
|
816
817
|
input: Record<string, "string" | "number" | "boolean">;
|
|
817
|
-
url: string;
|
|
818
818
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
819
819
|
auth: "none" | "connection";
|
|
820
|
+
allowPrivateNetwork?: boolean | undefined;
|
|
820
821
|
headers?: Record<string, string> | undefined;
|
|
821
822
|
connectionRef?: string | undefined;
|
|
822
|
-
allowPrivateNetwork?: boolean | undefined;
|
|
823
823
|
sendRealValues?: boolean | undefined;
|
|
824
824
|
}[] | undefined;
|
|
825
825
|
displayName?: string | undefined;
|
|
826
826
|
program?: {
|
|
827
|
+
v: 1;
|
|
827
828
|
id: string;
|
|
829
|
+
entry: string[];
|
|
828
830
|
nodes: Record<string, {
|
|
829
|
-
type: "
|
|
831
|
+
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
830
832
|
id: string;
|
|
831
833
|
config: Record<string, unknown>;
|
|
832
834
|
out: {
|
|
833
835
|
to: string;
|
|
836
|
+
condition?: string | undefined;
|
|
834
837
|
sourceHandle?: string | undefined;
|
|
835
838
|
label?: string | undefined;
|
|
836
|
-
condition?: string | undefined;
|
|
837
839
|
}[];
|
|
838
840
|
}>;
|
|
839
|
-
v: 1;
|
|
840
|
-
entry: string[];
|
|
841
841
|
completionGate: {
|
|
842
842
|
requiredFields: string[];
|
|
843
843
|
};
|
|
@@ -880,11 +880,11 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
880
880
|
id: z.ZodString;
|
|
881
881
|
text: z.ZodString;
|
|
882
882
|
}, "strip", z.ZodTypeAny, {
|
|
883
|
-
text: string;
|
|
884
883
|
id: string;
|
|
885
|
-
}, {
|
|
886
884
|
text: string;
|
|
885
|
+
}, {
|
|
887
886
|
id: string;
|
|
887
|
+
text: string;
|
|
888
888
|
}>, "many">>;
|
|
889
889
|
fields: z.ZodArray<z.ZodObject<{
|
|
890
890
|
name: z.ZodString;
|
|
@@ -980,11 +980,11 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
980
980
|
retentionDays: z.ZodOptional<z.ZodNumber>;
|
|
981
981
|
piiFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
982
982
|
}, "strip", z.ZodTypeAny, {
|
|
983
|
-
scope?: "
|
|
983
|
+
scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
|
|
984
984
|
retentionDays?: number | undefined;
|
|
985
985
|
piiFields?: string[] | undefined;
|
|
986
986
|
}, {
|
|
987
|
-
scope?: "
|
|
987
|
+
scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
|
|
988
988
|
retentionDays?: number | undefined;
|
|
989
989
|
piiFields?: string[] | undefined;
|
|
990
990
|
}>>;
|
|
@@ -1012,25 +1012,25 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1012
1012
|
sendRealValues: z.ZodOptional<z.ZodBoolean>;
|
|
1013
1013
|
}, "strip", z.ZodTypeAny, {
|
|
1014
1014
|
name: string;
|
|
1015
|
+
url: string;
|
|
1015
1016
|
description: string;
|
|
1016
1017
|
input: Record<string, "string" | "number" | "boolean">;
|
|
1017
|
-
url: string;
|
|
1018
1018
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1019
1019
|
auth: "none" | "connection";
|
|
1020
|
+
allowPrivateNetwork?: boolean | undefined;
|
|
1020
1021
|
headers?: Record<string, string> | undefined;
|
|
1021
1022
|
connectionRef?: string | undefined;
|
|
1022
|
-
allowPrivateNetwork?: boolean | undefined;
|
|
1023
1023
|
sendRealValues?: boolean | undefined;
|
|
1024
1024
|
}, {
|
|
1025
1025
|
name: string;
|
|
1026
|
+
url: string;
|
|
1026
1027
|
description: string;
|
|
1027
1028
|
input: Record<string, "string" | "number" | "boolean">;
|
|
1028
|
-
url: string;
|
|
1029
1029
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1030
1030
|
auth: "none" | "connection";
|
|
1031
|
+
allowPrivateNetwork?: boolean | undefined;
|
|
1031
1032
|
headers?: Record<string, string> | undefined;
|
|
1032
1033
|
connectionRef?: string | undefined;
|
|
1033
|
-
allowPrivateNetwork?: boolean | undefined;
|
|
1034
1034
|
sendRealValues?: boolean | undefined;
|
|
1035
1035
|
}>, "many">>;
|
|
1036
1036
|
displayName: z.ZodOptional<z.ZodString>;
|
|
@@ -1094,34 +1094,34 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1094
1094
|
label: z.ZodOptional<z.ZodString>;
|
|
1095
1095
|
}, "strip", z.ZodTypeAny, {
|
|
1096
1096
|
to: string;
|
|
1097
|
+
condition?: string | undefined;
|
|
1097
1098
|
sourceHandle?: string | undefined;
|
|
1098
1099
|
label?: string | undefined;
|
|
1099
|
-
condition?: string | undefined;
|
|
1100
1100
|
}, {
|
|
1101
1101
|
to: string;
|
|
1102
|
+
condition?: string | undefined;
|
|
1102
1103
|
sourceHandle?: string | undefined;
|
|
1103
1104
|
label?: string | undefined;
|
|
1104
|
-
condition?: string | undefined;
|
|
1105
1105
|
}>, "many">;
|
|
1106
1106
|
}, "strip", z.ZodTypeAny, {
|
|
1107
|
-
type: "
|
|
1107
|
+
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1108
1108
|
id: string;
|
|
1109
1109
|
config: Record<string, unknown>;
|
|
1110
1110
|
out: {
|
|
1111
1111
|
to: string;
|
|
1112
|
+
condition?: string | undefined;
|
|
1112
1113
|
sourceHandle?: string | undefined;
|
|
1113
1114
|
label?: string | undefined;
|
|
1114
|
-
condition?: string | undefined;
|
|
1115
1115
|
}[];
|
|
1116
1116
|
}, {
|
|
1117
|
-
type: "
|
|
1117
|
+
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1118
1118
|
id: string;
|
|
1119
1119
|
config: Record<string, unknown>;
|
|
1120
1120
|
out: {
|
|
1121
1121
|
to: string;
|
|
1122
|
+
condition?: string | undefined;
|
|
1122
1123
|
sourceHandle?: string | undefined;
|
|
1123
1124
|
label?: string | undefined;
|
|
1124
|
-
condition?: string | undefined;
|
|
1125
1125
|
}[];
|
|
1126
1126
|
}>>;
|
|
1127
1127
|
completionGate: z.ZodObject<{
|
|
@@ -1148,20 +1148,20 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1148
1148
|
labelOnlyEdges?: string[] | undefined;
|
|
1149
1149
|
}>>;
|
|
1150
1150
|
}, "strip", z.ZodTypeAny, {
|
|
1151
|
+
v: 1;
|
|
1151
1152
|
id: string;
|
|
1153
|
+
entry: string[];
|
|
1152
1154
|
nodes: Record<string, {
|
|
1153
|
-
type: "
|
|
1155
|
+
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1154
1156
|
id: string;
|
|
1155
1157
|
config: Record<string, unknown>;
|
|
1156
1158
|
out: {
|
|
1157
1159
|
to: string;
|
|
1160
|
+
condition?: string | undefined;
|
|
1158
1161
|
sourceHandle?: string | undefined;
|
|
1159
1162
|
label?: string | undefined;
|
|
1160
|
-
condition?: string | undefined;
|
|
1161
1163
|
}[];
|
|
1162
1164
|
}>;
|
|
1163
|
-
v: 1;
|
|
1164
|
-
entry: string[];
|
|
1165
1165
|
completionGate: {
|
|
1166
1166
|
requiredFields: string[];
|
|
1167
1167
|
};
|
|
@@ -1172,20 +1172,20 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1172
1172
|
labelOnlyEdges?: string[] | undefined;
|
|
1173
1173
|
} | undefined;
|
|
1174
1174
|
}, {
|
|
1175
|
+
v: 1;
|
|
1175
1176
|
id: string;
|
|
1177
|
+
entry: string[];
|
|
1176
1178
|
nodes: Record<string, {
|
|
1177
|
-
type: "
|
|
1179
|
+
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1178
1180
|
id: string;
|
|
1179
1181
|
config: Record<string, unknown>;
|
|
1180
1182
|
out: {
|
|
1181
1183
|
to: string;
|
|
1184
|
+
condition?: string | undefined;
|
|
1182
1185
|
sourceHandle?: string | undefined;
|
|
1183
1186
|
label?: string | undefined;
|
|
1184
|
-
condition?: string | undefined;
|
|
1185
1187
|
}[];
|
|
1186
1188
|
}>;
|
|
1187
|
-
v: 1;
|
|
1188
|
-
entry: string[];
|
|
1189
1189
|
completionGate: {
|
|
1190
1190
|
requiredFields: string[];
|
|
1191
1191
|
};
|
|
@@ -1222,7 +1222,7 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1222
1222
|
routes?: Record<string, string> | undefined;
|
|
1223
1223
|
} | undefined;
|
|
1224
1224
|
memory?: {
|
|
1225
|
-
scope?: "
|
|
1225
|
+
scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
|
|
1226
1226
|
retentionDays?: number | undefined;
|
|
1227
1227
|
piiFields?: string[] | undefined;
|
|
1228
1228
|
} | undefined;
|
|
@@ -1238,8 +1238,8 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1238
1238
|
} | undefined;
|
|
1239
1239
|
} | undefined;
|
|
1240
1240
|
prompts?: {
|
|
1241
|
-
text: string;
|
|
1242
1241
|
id: string;
|
|
1242
|
+
text: string;
|
|
1243
1243
|
}[] | undefined;
|
|
1244
1244
|
triggers?: {
|
|
1245
1245
|
then: string;
|
|
@@ -1249,32 +1249,32 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1249
1249
|
}[] | undefined;
|
|
1250
1250
|
tools?: {
|
|
1251
1251
|
name: string;
|
|
1252
|
+
url: string;
|
|
1252
1253
|
description: string;
|
|
1253
1254
|
input: Record<string, "string" | "number" | "boolean">;
|
|
1254
|
-
url: string;
|
|
1255
1255
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1256
1256
|
auth: "none" | "connection";
|
|
1257
|
+
allowPrivateNetwork?: boolean | undefined;
|
|
1257
1258
|
headers?: Record<string, string> | undefined;
|
|
1258
1259
|
connectionRef?: string | undefined;
|
|
1259
|
-
allowPrivateNetwork?: boolean | undefined;
|
|
1260
1260
|
sendRealValues?: boolean | undefined;
|
|
1261
1261
|
}[] | undefined;
|
|
1262
1262
|
displayName?: string | undefined;
|
|
1263
1263
|
program?: {
|
|
1264
|
+
v: 1;
|
|
1264
1265
|
id: string;
|
|
1266
|
+
entry: string[];
|
|
1265
1267
|
nodes: Record<string, {
|
|
1266
|
-
type: "
|
|
1268
|
+
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1267
1269
|
id: string;
|
|
1268
1270
|
config: Record<string, unknown>;
|
|
1269
1271
|
out: {
|
|
1270
1272
|
to: string;
|
|
1273
|
+
condition?: string | undefined;
|
|
1271
1274
|
sourceHandle?: string | undefined;
|
|
1272
1275
|
label?: string | undefined;
|
|
1273
|
-
condition?: string | undefined;
|
|
1274
1276
|
}[];
|
|
1275
1277
|
}>;
|
|
1276
|
-
v: 1;
|
|
1277
|
-
entry: string[];
|
|
1278
1278
|
completionGate: {
|
|
1279
1279
|
requiredFields: string[];
|
|
1280
1280
|
};
|
|
@@ -1311,7 +1311,7 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1311
1311
|
routes?: Record<string, string> | undefined;
|
|
1312
1312
|
} | undefined;
|
|
1313
1313
|
memory?: {
|
|
1314
|
-
scope?: "
|
|
1314
|
+
scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
|
|
1315
1315
|
retentionDays?: number | undefined;
|
|
1316
1316
|
piiFields?: string[] | undefined;
|
|
1317
1317
|
} | undefined;
|
|
@@ -1327,8 +1327,8 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1327
1327
|
} | undefined;
|
|
1328
1328
|
} | undefined;
|
|
1329
1329
|
prompts?: {
|
|
1330
|
-
text: string;
|
|
1331
1330
|
id: string;
|
|
1331
|
+
text: string;
|
|
1332
1332
|
}[] | undefined;
|
|
1333
1333
|
triggers?: {
|
|
1334
1334
|
then: string;
|
|
@@ -1338,32 +1338,32 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1338
1338
|
}[] | undefined;
|
|
1339
1339
|
tools?: {
|
|
1340
1340
|
name: string;
|
|
1341
|
+
url: string;
|
|
1341
1342
|
description: string;
|
|
1342
1343
|
input: Record<string, "string" | "number" | "boolean">;
|
|
1343
|
-
url: string;
|
|
1344
1344
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1345
1345
|
auth: "none" | "connection";
|
|
1346
|
+
allowPrivateNetwork?: boolean | undefined;
|
|
1346
1347
|
headers?: Record<string, string> | undefined;
|
|
1347
1348
|
connectionRef?: string | undefined;
|
|
1348
|
-
allowPrivateNetwork?: boolean | undefined;
|
|
1349
1349
|
sendRealValues?: boolean | undefined;
|
|
1350
1350
|
}[] | undefined;
|
|
1351
1351
|
displayName?: string | undefined;
|
|
1352
1352
|
program?: {
|
|
1353
|
+
v: 1;
|
|
1353
1354
|
id: string;
|
|
1355
|
+
entry: string[];
|
|
1354
1356
|
nodes: Record<string, {
|
|
1355
|
-
type: "
|
|
1357
|
+
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1356
1358
|
id: string;
|
|
1357
1359
|
config: Record<string, unknown>;
|
|
1358
1360
|
out: {
|
|
1359
1361
|
to: string;
|
|
1362
|
+
condition?: string | undefined;
|
|
1360
1363
|
sourceHandle?: string | undefined;
|
|
1361
1364
|
label?: string | undefined;
|
|
1362
|
-
condition?: string | undefined;
|
|
1363
1365
|
}[];
|
|
1364
1366
|
}>;
|
|
1365
|
-
v: 1;
|
|
1366
|
-
entry: string[];
|
|
1367
1367
|
completionGate: {
|
|
1368
1368
|
requiredFields: string[];
|
|
1369
1369
|
};
|
|
@@ -1381,8 +1381,8 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1381
1381
|
}, "strip", z.ZodTypeAny, {
|
|
1382
1382
|
status: "online" | "offline" | "degraded";
|
|
1383
1383
|
id: string;
|
|
1384
|
-
projectId: string;
|
|
1385
1384
|
name: string;
|
|
1385
|
+
projectId: string;
|
|
1386
1386
|
createdAt: string;
|
|
1387
1387
|
updatedAt: string;
|
|
1388
1388
|
version: string;
|
|
@@ -1422,7 +1422,7 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1422
1422
|
routes?: Record<string, string> | undefined;
|
|
1423
1423
|
} | undefined;
|
|
1424
1424
|
memory?: {
|
|
1425
|
-
scope?: "
|
|
1425
|
+
scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
|
|
1426
1426
|
retentionDays?: number | undefined;
|
|
1427
1427
|
piiFields?: string[] | undefined;
|
|
1428
1428
|
} | undefined;
|
|
@@ -1438,8 +1438,8 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1438
1438
|
} | undefined;
|
|
1439
1439
|
} | undefined;
|
|
1440
1440
|
prompts?: {
|
|
1441
|
-
text: string;
|
|
1442
1441
|
id: string;
|
|
1442
|
+
text: string;
|
|
1443
1443
|
}[] | undefined;
|
|
1444
1444
|
triggers?: {
|
|
1445
1445
|
then: string;
|
|
@@ -1449,32 +1449,32 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1449
1449
|
}[] | undefined;
|
|
1450
1450
|
tools?: {
|
|
1451
1451
|
name: string;
|
|
1452
|
+
url: string;
|
|
1452
1453
|
description: string;
|
|
1453
1454
|
input: Record<string, "string" | "number" | "boolean">;
|
|
1454
|
-
url: string;
|
|
1455
1455
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1456
1456
|
auth: "none" | "connection";
|
|
1457
|
+
allowPrivateNetwork?: boolean | undefined;
|
|
1457
1458
|
headers?: Record<string, string> | undefined;
|
|
1458
1459
|
connectionRef?: string | undefined;
|
|
1459
|
-
allowPrivateNetwork?: boolean | undefined;
|
|
1460
1460
|
sendRealValues?: boolean | undefined;
|
|
1461
1461
|
}[] | undefined;
|
|
1462
1462
|
displayName?: string | undefined;
|
|
1463
1463
|
program?: {
|
|
1464
|
+
v: 1;
|
|
1464
1465
|
id: string;
|
|
1466
|
+
entry: string[];
|
|
1465
1467
|
nodes: Record<string, {
|
|
1466
|
-
type: "
|
|
1468
|
+
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1467
1469
|
id: string;
|
|
1468
1470
|
config: Record<string, unknown>;
|
|
1469
1471
|
out: {
|
|
1470
1472
|
to: string;
|
|
1473
|
+
condition?: string | undefined;
|
|
1471
1474
|
sourceHandle?: string | undefined;
|
|
1472
1475
|
label?: string | undefined;
|
|
1473
|
-
condition?: string | undefined;
|
|
1474
1476
|
}[];
|
|
1475
1477
|
}>;
|
|
1476
|
-
v: 1;
|
|
1477
|
-
entry: string[];
|
|
1478
1478
|
completionGate: {
|
|
1479
1479
|
requiredFields: string[];
|
|
1480
1480
|
};
|
|
@@ -1490,8 +1490,8 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1490
1490
|
}, {
|
|
1491
1491
|
status: "online" | "offline" | "degraded";
|
|
1492
1492
|
id: string;
|
|
1493
|
-
projectId: string;
|
|
1494
1493
|
name: string;
|
|
1494
|
+
projectId: string;
|
|
1495
1495
|
createdAt: string;
|
|
1496
1496
|
updatedAt: string;
|
|
1497
1497
|
version: string;
|
|
@@ -1531,7 +1531,7 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1531
1531
|
routes?: Record<string, string> | undefined;
|
|
1532
1532
|
} | undefined;
|
|
1533
1533
|
memory?: {
|
|
1534
|
-
scope?: "
|
|
1534
|
+
scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
|
|
1535
1535
|
retentionDays?: number | undefined;
|
|
1536
1536
|
piiFields?: string[] | undefined;
|
|
1537
1537
|
} | undefined;
|
|
@@ -1547,8 +1547,8 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1547
1547
|
} | undefined;
|
|
1548
1548
|
} | undefined;
|
|
1549
1549
|
prompts?: {
|
|
1550
|
-
text: string;
|
|
1551
1550
|
id: string;
|
|
1551
|
+
text: string;
|
|
1552
1552
|
}[] | undefined;
|
|
1553
1553
|
triggers?: {
|
|
1554
1554
|
then: string;
|
|
@@ -1558,32 +1558,32 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1558
1558
|
}[] | undefined;
|
|
1559
1559
|
tools?: {
|
|
1560
1560
|
name: string;
|
|
1561
|
+
url: string;
|
|
1561
1562
|
description: string;
|
|
1562
1563
|
input: Record<string, "string" | "number" | "boolean">;
|
|
1563
|
-
url: string;
|
|
1564
1564
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1565
1565
|
auth: "none" | "connection";
|
|
1566
|
+
allowPrivateNetwork?: boolean | undefined;
|
|
1566
1567
|
headers?: Record<string, string> | undefined;
|
|
1567
1568
|
connectionRef?: string | undefined;
|
|
1568
|
-
allowPrivateNetwork?: boolean | undefined;
|
|
1569
1569
|
sendRealValues?: boolean | undefined;
|
|
1570
1570
|
}[] | undefined;
|
|
1571
1571
|
displayName?: string | undefined;
|
|
1572
1572
|
program?: {
|
|
1573
|
+
v: 1;
|
|
1573
1574
|
id: string;
|
|
1575
|
+
entry: string[];
|
|
1574
1576
|
nodes: Record<string, {
|
|
1575
|
-
type: "
|
|
1577
|
+
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1576
1578
|
id: string;
|
|
1577
1579
|
config: Record<string, unknown>;
|
|
1578
1580
|
out: {
|
|
1579
1581
|
to: string;
|
|
1582
|
+
condition?: string | undefined;
|
|
1580
1583
|
sourceHandle?: string | undefined;
|
|
1581
1584
|
label?: string | undefined;
|
|
1582
|
-
condition?: string | undefined;
|
|
1583
1585
|
}[];
|
|
1584
1586
|
}>;
|
|
1585
|
-
v: 1;
|
|
1586
|
-
entry: string[];
|
|
1587
1587
|
completionGate: {
|
|
1588
1588
|
requiredFields: string[];
|
|
1589
1589
|
};
|
|
@@ -1665,34 +1665,34 @@ declare const FlowProgram: z.ZodObject<{
|
|
|
1665
1665
|
label: z.ZodOptional<z.ZodString>;
|
|
1666
1666
|
}, "strip", z.ZodTypeAny, {
|
|
1667
1667
|
to: string;
|
|
1668
|
+
condition?: string | undefined;
|
|
1668
1669
|
sourceHandle?: string | undefined;
|
|
1669
1670
|
label?: string | undefined;
|
|
1670
|
-
condition?: string | undefined;
|
|
1671
1671
|
}, {
|
|
1672
1672
|
to: string;
|
|
1673
|
+
condition?: string | undefined;
|
|
1673
1674
|
sourceHandle?: string | undefined;
|
|
1674
1675
|
label?: string | undefined;
|
|
1675
|
-
condition?: string | undefined;
|
|
1676
1676
|
}>, "many">;
|
|
1677
1677
|
}, "strip", z.ZodTypeAny, {
|
|
1678
|
-
type: "
|
|
1678
|
+
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1679
1679
|
id: string;
|
|
1680
1680
|
config: Record<string, unknown>;
|
|
1681
1681
|
out: {
|
|
1682
1682
|
to: string;
|
|
1683
|
+
condition?: string | undefined;
|
|
1683
1684
|
sourceHandle?: string | undefined;
|
|
1684
1685
|
label?: string | undefined;
|
|
1685
|
-
condition?: string | undefined;
|
|
1686
1686
|
}[];
|
|
1687
1687
|
}, {
|
|
1688
|
-
type: "
|
|
1688
|
+
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1689
1689
|
id: string;
|
|
1690
1690
|
config: Record<string, unknown>;
|
|
1691
1691
|
out: {
|
|
1692
1692
|
to: string;
|
|
1693
|
+
condition?: string | undefined;
|
|
1693
1694
|
sourceHandle?: string | undefined;
|
|
1694
1695
|
label?: string | undefined;
|
|
1695
|
-
condition?: string | undefined;
|
|
1696
1696
|
}[];
|
|
1697
1697
|
}>>;
|
|
1698
1698
|
completionGate: z.ZodObject<{
|
|
@@ -1719,20 +1719,20 @@ declare const FlowProgram: z.ZodObject<{
|
|
|
1719
1719
|
labelOnlyEdges?: string[] | undefined;
|
|
1720
1720
|
}>>;
|
|
1721
1721
|
}, "strip", z.ZodTypeAny, {
|
|
1722
|
+
v: 1;
|
|
1722
1723
|
id: string;
|
|
1724
|
+
entry: string[];
|
|
1723
1725
|
nodes: Record<string, {
|
|
1724
|
-
type: "
|
|
1726
|
+
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1725
1727
|
id: string;
|
|
1726
1728
|
config: Record<string, unknown>;
|
|
1727
1729
|
out: {
|
|
1728
1730
|
to: string;
|
|
1731
|
+
condition?: string | undefined;
|
|
1729
1732
|
sourceHandle?: string | undefined;
|
|
1730
1733
|
label?: string | undefined;
|
|
1731
|
-
condition?: string | undefined;
|
|
1732
1734
|
}[];
|
|
1733
1735
|
}>;
|
|
1734
|
-
v: 1;
|
|
1735
|
-
entry: string[];
|
|
1736
1736
|
completionGate: {
|
|
1737
1737
|
requiredFields: string[];
|
|
1738
1738
|
};
|
|
@@ -1743,20 +1743,20 @@ declare const FlowProgram: z.ZodObject<{
|
|
|
1743
1743
|
labelOnlyEdges?: string[] | undefined;
|
|
1744
1744
|
} | undefined;
|
|
1745
1745
|
}, {
|
|
1746
|
+
v: 1;
|
|
1746
1747
|
id: string;
|
|
1748
|
+
entry: string[];
|
|
1747
1749
|
nodes: Record<string, {
|
|
1748
|
-
type: "
|
|
1750
|
+
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1749
1751
|
id: string;
|
|
1750
1752
|
config: Record<string, unknown>;
|
|
1751
1753
|
out: {
|
|
1752
1754
|
to: string;
|
|
1755
|
+
condition?: string | undefined;
|
|
1753
1756
|
sourceHandle?: string | undefined;
|
|
1754
1757
|
label?: string | undefined;
|
|
1755
|
-
condition?: string | undefined;
|
|
1756
1758
|
}[];
|
|
1757
1759
|
}>;
|
|
1758
|
-
v: 1;
|
|
1759
|
-
entry: string[];
|
|
1760
1760
|
completionGate: {
|
|
1761
1761
|
requiredFields: string[];
|
|
1762
1762
|
};
|
|
@@ -2498,7 +2498,9 @@ type EndCallTrigger =
|
|
|
2498
2498
|
/** The realtime engine closed / disconnected under the session. */
|
|
2499
2499
|
| 'engine-closed'
|
|
2500
2500
|
/** `ctx.endCall()` called directly from user code. */
|
|
2501
|
-
| 'user'
|
|
2501
|
+
| 'user'
|
|
2502
|
+
/** The platform refused the call at admission (caller rate limit, inbound gate); its line was spoken first. */
|
|
2503
|
+
| 'admission';
|
|
2502
2504
|
/** Passed to `endCall.onEnd` describing the teardown about to happen. */
|
|
2503
2505
|
interface EndCallInfo {
|
|
2504
2506
|
/** Why the call is ending (e.g. the `end_call` tool's `reason`). */
|
|
@@ -2548,7 +2550,11 @@ interface EndCallPolicy {
|
|
|
2548
2550
|
* the session becomes ready, regardless of activity. Catches runaway calls
|
|
2549
2551
|
* that never end naturally (stuck loops, hijacked keys dialing premium
|
|
2550
2552
|
* numbers). Fires with trigger `'max_duration'`. Default 3600000 (60
|
|
2551
|
-
* minutes). `false` disables.
|
|
2553
|
+
* minutes). `false` disables this agent-side default.
|
|
2554
|
+
*
|
|
2555
|
+
* On the platform (burn-down G-43): the agent's own call limit set in the dashboard
|
|
2556
|
+
* (`callLimits.maxDurationMinutes`) wins over this value, and the workspace's plan ceiling caps every call — even
|
|
2557
|
+
* with `false`. A wrap-up line is spoken shortly before the limit and a goodbye at it (both configurable per agent).
|
|
2552
2558
|
*/
|
|
2553
2559
|
readonly maxCallDurationMs?: number | false;
|
|
2554
2560
|
/**
|