@voicelayer/sdk 0.3.0 → 0.3.1
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 +6 -1
- package/dist/index.d.ts +249 -249
- package/dist/index.js +7 -1
- package/dist/runtime/text-session.d.ts +1 -1
- package/dist/runtime/text-session.js +6 -1
- package/dist/{text-session-B7oyrhwQ.d.ts → text-session-oMqJh6SF.d.ts} +98 -98
- package/package.json +3 -3
|
@@ -343,11 +343,11 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
343
343
|
id: z.ZodString;
|
|
344
344
|
text: z.ZodString;
|
|
345
345
|
}, "strip", z.ZodTypeAny, {
|
|
346
|
-
id: string;
|
|
347
346
|
text: string;
|
|
348
|
-
}, {
|
|
349
347
|
id: string;
|
|
348
|
+
}, {
|
|
350
349
|
text: string;
|
|
350
|
+
id: string;
|
|
351
351
|
}>, "many">>;
|
|
352
352
|
fields: z.ZodArray<z.ZodObject<{
|
|
353
353
|
name: z.ZodString;
|
|
@@ -433,11 +433,11 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
433
433
|
retentionDays: z.ZodOptional<z.ZodNumber>;
|
|
434
434
|
piiFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
435
435
|
}, "strip", z.ZodTypeAny, {
|
|
436
|
-
scope?: "
|
|
436
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
437
437
|
retentionDays?: number | undefined;
|
|
438
438
|
piiFields?: string[] | undefined;
|
|
439
439
|
}, {
|
|
440
|
-
scope?: "
|
|
440
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
441
441
|
retentionDays?: number | undefined;
|
|
442
442
|
piiFields?: string[] | undefined;
|
|
443
443
|
}>>;
|
|
@@ -452,18 +452,18 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
452
452
|
connectionRef: z.ZodOptional<z.ZodString>;
|
|
453
453
|
}, "strip", z.ZodTypeAny, {
|
|
454
454
|
name: string;
|
|
455
|
-
url: string;
|
|
456
455
|
description: string;
|
|
457
456
|
input: Record<string, "string" | "number" | "boolean">;
|
|
457
|
+
url: string;
|
|
458
458
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
459
459
|
auth: "none" | "connection";
|
|
460
460
|
headers?: Record<string, string> | undefined;
|
|
461
461
|
connectionRef?: string | undefined;
|
|
462
462
|
}, {
|
|
463
463
|
name: string;
|
|
464
|
-
url: string;
|
|
465
464
|
description: string;
|
|
466
465
|
input: Record<string, "string" | "number" | "boolean">;
|
|
466
|
+
url: string;
|
|
467
467
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
468
468
|
auth: "none" | "connection";
|
|
469
469
|
headers?: Record<string, string> | undefined;
|
|
@@ -529,34 +529,34 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
529
529
|
label: z.ZodOptional<z.ZodString>;
|
|
530
530
|
}, "strip", z.ZodTypeAny, {
|
|
531
531
|
to: string;
|
|
532
|
-
condition?: string | undefined;
|
|
533
532
|
sourceHandle?: string | undefined;
|
|
534
533
|
label?: string | undefined;
|
|
534
|
+
condition?: string | undefined;
|
|
535
535
|
}, {
|
|
536
536
|
to: string;
|
|
537
|
-
condition?: string | undefined;
|
|
538
537
|
sourceHandle?: string | undefined;
|
|
539
538
|
label?: string | undefined;
|
|
539
|
+
condition?: string | undefined;
|
|
540
540
|
}>, "many">;
|
|
541
541
|
}, "strip", z.ZodTypeAny, {
|
|
542
|
-
type: "
|
|
542
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
543
543
|
id: string;
|
|
544
544
|
config: Record<string, unknown>;
|
|
545
545
|
out: {
|
|
546
546
|
to: string;
|
|
547
|
-
condition?: string | undefined;
|
|
548
547
|
sourceHandle?: string | undefined;
|
|
549
548
|
label?: string | undefined;
|
|
549
|
+
condition?: string | undefined;
|
|
550
550
|
}[];
|
|
551
551
|
}, {
|
|
552
|
-
type: "
|
|
552
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
553
553
|
id: string;
|
|
554
554
|
config: Record<string, unknown>;
|
|
555
555
|
out: {
|
|
556
556
|
to: string;
|
|
557
|
-
condition?: string | undefined;
|
|
558
557
|
sourceHandle?: string | undefined;
|
|
559
558
|
label?: string | undefined;
|
|
559
|
+
condition?: string | undefined;
|
|
560
560
|
}[];
|
|
561
561
|
}>>;
|
|
562
562
|
completionGate: z.ZodObject<{
|
|
@@ -583,20 +583,20 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
583
583
|
labelOnlyEdges?: string[] | undefined;
|
|
584
584
|
}>>;
|
|
585
585
|
}, "strip", z.ZodTypeAny, {
|
|
586
|
-
v: 1;
|
|
587
586
|
id: string;
|
|
588
|
-
entry: string[];
|
|
589
587
|
nodes: Record<string, {
|
|
590
|
-
type: "
|
|
588
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
591
589
|
id: string;
|
|
592
590
|
config: Record<string, unknown>;
|
|
593
591
|
out: {
|
|
594
592
|
to: string;
|
|
595
|
-
condition?: string | undefined;
|
|
596
593
|
sourceHandle?: string | undefined;
|
|
597
594
|
label?: string | undefined;
|
|
595
|
+
condition?: string | undefined;
|
|
598
596
|
}[];
|
|
599
597
|
}>;
|
|
598
|
+
v: 1;
|
|
599
|
+
entry: string[];
|
|
600
600
|
completionGate: {
|
|
601
601
|
requiredFields: string[];
|
|
602
602
|
};
|
|
@@ -607,20 +607,20 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
607
607
|
labelOnlyEdges?: string[] | undefined;
|
|
608
608
|
} | undefined;
|
|
609
609
|
}, {
|
|
610
|
-
v: 1;
|
|
611
610
|
id: string;
|
|
612
|
-
entry: string[];
|
|
613
611
|
nodes: Record<string, {
|
|
614
|
-
type: "
|
|
612
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
615
613
|
id: string;
|
|
616
614
|
config: Record<string, unknown>;
|
|
617
615
|
out: {
|
|
618
616
|
to: string;
|
|
619
|
-
condition?: string | undefined;
|
|
620
617
|
sourceHandle?: string | undefined;
|
|
621
618
|
label?: string | undefined;
|
|
619
|
+
condition?: string | undefined;
|
|
622
620
|
}[];
|
|
623
621
|
}>;
|
|
622
|
+
v: 1;
|
|
623
|
+
entry: string[];
|
|
624
624
|
completionGate: {
|
|
625
625
|
requiredFields: string[];
|
|
626
626
|
};
|
|
@@ -655,7 +655,7 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
655
655
|
routes?: Record<string, string> | undefined;
|
|
656
656
|
} | undefined;
|
|
657
657
|
memory?: {
|
|
658
|
-
scope?: "
|
|
658
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
659
659
|
retentionDays?: number | undefined;
|
|
660
660
|
piiFields?: string[] | undefined;
|
|
661
661
|
} | undefined;
|
|
@@ -671,8 +671,8 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
671
671
|
} | undefined;
|
|
672
672
|
} | undefined;
|
|
673
673
|
prompts?: {
|
|
674
|
-
id: string;
|
|
675
674
|
text: string;
|
|
675
|
+
id: string;
|
|
676
676
|
}[] | undefined;
|
|
677
677
|
triggers?: {
|
|
678
678
|
then: string;
|
|
@@ -682,29 +682,29 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
682
682
|
}[] | undefined;
|
|
683
683
|
tools?: {
|
|
684
684
|
name: string;
|
|
685
|
-
url: string;
|
|
686
685
|
description: string;
|
|
687
686
|
input: Record<string, "string" | "number" | "boolean">;
|
|
687
|
+
url: string;
|
|
688
688
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
689
689
|
auth: "none" | "connection";
|
|
690
690
|
headers?: Record<string, string> | undefined;
|
|
691
691
|
connectionRef?: string | undefined;
|
|
692
692
|
}[] | undefined;
|
|
693
693
|
program?: {
|
|
694
|
-
v: 1;
|
|
695
694
|
id: string;
|
|
696
|
-
entry: string[];
|
|
697
695
|
nodes: Record<string, {
|
|
698
|
-
type: "
|
|
696
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
699
697
|
id: string;
|
|
700
698
|
config: Record<string, unknown>;
|
|
701
699
|
out: {
|
|
702
700
|
to: string;
|
|
703
|
-
condition?: string | undefined;
|
|
704
701
|
sourceHandle?: string | undefined;
|
|
705
702
|
label?: string | undefined;
|
|
703
|
+
condition?: string | undefined;
|
|
706
704
|
}[];
|
|
707
705
|
}>;
|
|
706
|
+
v: 1;
|
|
707
|
+
entry: string[];
|
|
708
708
|
completionGate: {
|
|
709
709
|
requiredFields: string[];
|
|
710
710
|
};
|
|
@@ -739,7 +739,7 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
739
739
|
routes?: Record<string, string> | undefined;
|
|
740
740
|
} | undefined;
|
|
741
741
|
memory?: {
|
|
742
|
-
scope?: "
|
|
742
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
743
743
|
retentionDays?: number | undefined;
|
|
744
744
|
piiFields?: string[] | undefined;
|
|
745
745
|
} | undefined;
|
|
@@ -755,8 +755,8 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
755
755
|
} | undefined;
|
|
756
756
|
} | undefined;
|
|
757
757
|
prompts?: {
|
|
758
|
-
id: string;
|
|
759
758
|
text: string;
|
|
759
|
+
id: string;
|
|
760
760
|
}[] | undefined;
|
|
761
761
|
triggers?: {
|
|
762
762
|
then: string;
|
|
@@ -766,29 +766,29 @@ declare const ProcessSchemaDTO: z.ZodObject<{
|
|
|
766
766
|
}[] | undefined;
|
|
767
767
|
tools?: {
|
|
768
768
|
name: string;
|
|
769
|
-
url: string;
|
|
770
769
|
description: string;
|
|
771
770
|
input: Record<string, "string" | "number" | "boolean">;
|
|
771
|
+
url: string;
|
|
772
772
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
773
773
|
auth: "none" | "connection";
|
|
774
774
|
headers?: Record<string, string> | undefined;
|
|
775
775
|
connectionRef?: string | undefined;
|
|
776
776
|
}[] | undefined;
|
|
777
777
|
program?: {
|
|
778
|
-
v: 1;
|
|
779
778
|
id: string;
|
|
780
|
-
entry: string[];
|
|
781
779
|
nodes: Record<string, {
|
|
782
|
-
type: "
|
|
780
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
783
781
|
id: string;
|
|
784
782
|
config: Record<string, unknown>;
|
|
785
783
|
out: {
|
|
786
784
|
to: string;
|
|
787
|
-
condition?: string | undefined;
|
|
788
785
|
sourceHandle?: string | undefined;
|
|
789
786
|
label?: string | undefined;
|
|
787
|
+
condition?: string | undefined;
|
|
790
788
|
}[];
|
|
791
789
|
}>;
|
|
790
|
+
v: 1;
|
|
791
|
+
entry: string[];
|
|
792
792
|
completionGate: {
|
|
793
793
|
requiredFields: string[];
|
|
794
794
|
};
|
|
@@ -831,11 +831,11 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
831
831
|
id: z.ZodString;
|
|
832
832
|
text: z.ZodString;
|
|
833
833
|
}, "strip", z.ZodTypeAny, {
|
|
834
|
-
id: string;
|
|
835
834
|
text: string;
|
|
836
|
-
}, {
|
|
837
835
|
id: string;
|
|
836
|
+
}, {
|
|
838
837
|
text: string;
|
|
838
|
+
id: string;
|
|
839
839
|
}>, "many">>;
|
|
840
840
|
fields: z.ZodArray<z.ZodObject<{
|
|
841
841
|
name: z.ZodString;
|
|
@@ -921,11 +921,11 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
921
921
|
retentionDays: z.ZodOptional<z.ZodNumber>;
|
|
922
922
|
piiFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
923
923
|
}, "strip", z.ZodTypeAny, {
|
|
924
|
-
scope?: "
|
|
924
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
925
925
|
retentionDays?: number | undefined;
|
|
926
926
|
piiFields?: string[] | undefined;
|
|
927
927
|
}, {
|
|
928
|
-
scope?: "
|
|
928
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
929
929
|
retentionDays?: number | undefined;
|
|
930
930
|
piiFields?: string[] | undefined;
|
|
931
931
|
}>>;
|
|
@@ -940,18 +940,18 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
940
940
|
connectionRef: z.ZodOptional<z.ZodString>;
|
|
941
941
|
}, "strip", z.ZodTypeAny, {
|
|
942
942
|
name: string;
|
|
943
|
-
url: string;
|
|
944
943
|
description: string;
|
|
945
944
|
input: Record<string, "string" | "number" | "boolean">;
|
|
945
|
+
url: string;
|
|
946
946
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
947
947
|
auth: "none" | "connection";
|
|
948
948
|
headers?: Record<string, string> | undefined;
|
|
949
949
|
connectionRef?: string | undefined;
|
|
950
950
|
}, {
|
|
951
951
|
name: string;
|
|
952
|
-
url: string;
|
|
953
952
|
description: string;
|
|
954
953
|
input: Record<string, "string" | "number" | "boolean">;
|
|
954
|
+
url: string;
|
|
955
955
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
956
956
|
auth: "none" | "connection";
|
|
957
957
|
headers?: Record<string, string> | undefined;
|
|
@@ -1017,34 +1017,34 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1017
1017
|
label: z.ZodOptional<z.ZodString>;
|
|
1018
1018
|
}, "strip", z.ZodTypeAny, {
|
|
1019
1019
|
to: string;
|
|
1020
|
-
condition?: string | undefined;
|
|
1021
1020
|
sourceHandle?: string | undefined;
|
|
1022
1021
|
label?: string | undefined;
|
|
1022
|
+
condition?: string | undefined;
|
|
1023
1023
|
}, {
|
|
1024
1024
|
to: string;
|
|
1025
|
-
condition?: string | undefined;
|
|
1026
1025
|
sourceHandle?: string | undefined;
|
|
1027
1026
|
label?: string | undefined;
|
|
1027
|
+
condition?: string | undefined;
|
|
1028
1028
|
}>, "many">;
|
|
1029
1029
|
}, "strip", z.ZodTypeAny, {
|
|
1030
|
-
type: "
|
|
1030
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1031
1031
|
id: string;
|
|
1032
1032
|
config: Record<string, unknown>;
|
|
1033
1033
|
out: {
|
|
1034
1034
|
to: string;
|
|
1035
|
-
condition?: string | undefined;
|
|
1036
1035
|
sourceHandle?: string | undefined;
|
|
1037
1036
|
label?: string | undefined;
|
|
1037
|
+
condition?: string | undefined;
|
|
1038
1038
|
}[];
|
|
1039
1039
|
}, {
|
|
1040
|
-
type: "
|
|
1040
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1041
1041
|
id: string;
|
|
1042
1042
|
config: Record<string, unknown>;
|
|
1043
1043
|
out: {
|
|
1044
1044
|
to: string;
|
|
1045
|
-
condition?: string | undefined;
|
|
1046
1045
|
sourceHandle?: string | undefined;
|
|
1047
1046
|
label?: string | undefined;
|
|
1047
|
+
condition?: string | undefined;
|
|
1048
1048
|
}[];
|
|
1049
1049
|
}>>;
|
|
1050
1050
|
completionGate: z.ZodObject<{
|
|
@@ -1071,20 +1071,20 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1071
1071
|
labelOnlyEdges?: string[] | undefined;
|
|
1072
1072
|
}>>;
|
|
1073
1073
|
}, "strip", z.ZodTypeAny, {
|
|
1074
|
-
v: 1;
|
|
1075
1074
|
id: string;
|
|
1076
|
-
entry: string[];
|
|
1077
1075
|
nodes: Record<string, {
|
|
1078
|
-
type: "
|
|
1076
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1079
1077
|
id: string;
|
|
1080
1078
|
config: Record<string, unknown>;
|
|
1081
1079
|
out: {
|
|
1082
1080
|
to: string;
|
|
1083
|
-
condition?: string | undefined;
|
|
1084
1081
|
sourceHandle?: string | undefined;
|
|
1085
1082
|
label?: string | undefined;
|
|
1083
|
+
condition?: string | undefined;
|
|
1086
1084
|
}[];
|
|
1087
1085
|
}>;
|
|
1086
|
+
v: 1;
|
|
1087
|
+
entry: string[];
|
|
1088
1088
|
completionGate: {
|
|
1089
1089
|
requiredFields: string[];
|
|
1090
1090
|
};
|
|
@@ -1095,20 +1095,20 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1095
1095
|
labelOnlyEdges?: string[] | undefined;
|
|
1096
1096
|
} | undefined;
|
|
1097
1097
|
}, {
|
|
1098
|
-
v: 1;
|
|
1099
1098
|
id: string;
|
|
1100
|
-
entry: string[];
|
|
1101
1099
|
nodes: Record<string, {
|
|
1102
|
-
type: "
|
|
1100
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1103
1101
|
id: string;
|
|
1104
1102
|
config: Record<string, unknown>;
|
|
1105
1103
|
out: {
|
|
1106
1104
|
to: string;
|
|
1107
|
-
condition?: string | undefined;
|
|
1108
1105
|
sourceHandle?: string | undefined;
|
|
1109
1106
|
label?: string | undefined;
|
|
1107
|
+
condition?: string | undefined;
|
|
1110
1108
|
}[];
|
|
1111
1109
|
}>;
|
|
1110
|
+
v: 1;
|
|
1111
|
+
entry: string[];
|
|
1112
1112
|
completionGate: {
|
|
1113
1113
|
requiredFields: string[];
|
|
1114
1114
|
};
|
|
@@ -1143,7 +1143,7 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1143
1143
|
routes?: Record<string, string> | undefined;
|
|
1144
1144
|
} | undefined;
|
|
1145
1145
|
memory?: {
|
|
1146
|
-
scope?: "
|
|
1146
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
1147
1147
|
retentionDays?: number | undefined;
|
|
1148
1148
|
piiFields?: string[] | undefined;
|
|
1149
1149
|
} | undefined;
|
|
@@ -1159,8 +1159,8 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1159
1159
|
} | undefined;
|
|
1160
1160
|
} | undefined;
|
|
1161
1161
|
prompts?: {
|
|
1162
|
-
id: string;
|
|
1163
1162
|
text: string;
|
|
1163
|
+
id: string;
|
|
1164
1164
|
}[] | undefined;
|
|
1165
1165
|
triggers?: {
|
|
1166
1166
|
then: string;
|
|
@@ -1170,29 +1170,29 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1170
1170
|
}[] | undefined;
|
|
1171
1171
|
tools?: {
|
|
1172
1172
|
name: string;
|
|
1173
|
-
url: string;
|
|
1174
1173
|
description: string;
|
|
1175
1174
|
input: Record<string, "string" | "number" | "boolean">;
|
|
1175
|
+
url: string;
|
|
1176
1176
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1177
1177
|
auth: "none" | "connection";
|
|
1178
1178
|
headers?: Record<string, string> | undefined;
|
|
1179
1179
|
connectionRef?: string | undefined;
|
|
1180
1180
|
}[] | undefined;
|
|
1181
1181
|
program?: {
|
|
1182
|
-
v: 1;
|
|
1183
1182
|
id: string;
|
|
1184
|
-
entry: string[];
|
|
1185
1183
|
nodes: Record<string, {
|
|
1186
|
-
type: "
|
|
1184
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1187
1185
|
id: string;
|
|
1188
1186
|
config: Record<string, unknown>;
|
|
1189
1187
|
out: {
|
|
1190
1188
|
to: string;
|
|
1191
|
-
condition?: string | undefined;
|
|
1192
1189
|
sourceHandle?: string | undefined;
|
|
1193
1190
|
label?: string | undefined;
|
|
1191
|
+
condition?: string | undefined;
|
|
1194
1192
|
}[];
|
|
1195
1193
|
}>;
|
|
1194
|
+
v: 1;
|
|
1195
|
+
entry: string[];
|
|
1196
1196
|
completionGate: {
|
|
1197
1197
|
requiredFields: string[];
|
|
1198
1198
|
};
|
|
@@ -1227,7 +1227,7 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1227
1227
|
routes?: Record<string, string> | undefined;
|
|
1228
1228
|
} | undefined;
|
|
1229
1229
|
memory?: {
|
|
1230
|
-
scope?: "
|
|
1230
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
1231
1231
|
retentionDays?: number | undefined;
|
|
1232
1232
|
piiFields?: string[] | undefined;
|
|
1233
1233
|
} | undefined;
|
|
@@ -1243,8 +1243,8 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1243
1243
|
} | undefined;
|
|
1244
1244
|
} | undefined;
|
|
1245
1245
|
prompts?: {
|
|
1246
|
-
id: string;
|
|
1247
1246
|
text: string;
|
|
1247
|
+
id: string;
|
|
1248
1248
|
}[] | undefined;
|
|
1249
1249
|
triggers?: {
|
|
1250
1250
|
then: string;
|
|
@@ -1254,29 +1254,29 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1254
1254
|
}[] | undefined;
|
|
1255
1255
|
tools?: {
|
|
1256
1256
|
name: string;
|
|
1257
|
-
url: string;
|
|
1258
1257
|
description: string;
|
|
1259
1258
|
input: Record<string, "string" | "number" | "boolean">;
|
|
1259
|
+
url: string;
|
|
1260
1260
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1261
1261
|
auth: "none" | "connection";
|
|
1262
1262
|
headers?: Record<string, string> | undefined;
|
|
1263
1263
|
connectionRef?: string | undefined;
|
|
1264
1264
|
}[] | undefined;
|
|
1265
1265
|
program?: {
|
|
1266
|
-
v: 1;
|
|
1267
1266
|
id: string;
|
|
1268
|
-
entry: string[];
|
|
1269
1267
|
nodes: Record<string, {
|
|
1270
|
-
type: "
|
|
1268
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1271
1269
|
id: string;
|
|
1272
1270
|
config: Record<string, unknown>;
|
|
1273
1271
|
out: {
|
|
1274
1272
|
to: string;
|
|
1275
|
-
condition?: string | undefined;
|
|
1276
1273
|
sourceHandle?: string | undefined;
|
|
1277
1274
|
label?: string | undefined;
|
|
1275
|
+
condition?: string | undefined;
|
|
1278
1276
|
}[];
|
|
1279
1277
|
}>;
|
|
1278
|
+
v: 1;
|
|
1279
|
+
entry: string[];
|
|
1280
1280
|
completionGate: {
|
|
1281
1281
|
requiredFields: string[];
|
|
1282
1282
|
};
|
|
@@ -1294,8 +1294,8 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1294
1294
|
}, "strip", z.ZodTypeAny, {
|
|
1295
1295
|
status: "online" | "offline" | "degraded";
|
|
1296
1296
|
id: string;
|
|
1297
|
-
name: string;
|
|
1298
1297
|
projectId: string;
|
|
1298
|
+
name: string;
|
|
1299
1299
|
createdAt: string;
|
|
1300
1300
|
updatedAt: string;
|
|
1301
1301
|
version: string;
|
|
@@ -1333,7 +1333,7 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1333
1333
|
routes?: Record<string, string> | undefined;
|
|
1334
1334
|
} | undefined;
|
|
1335
1335
|
memory?: {
|
|
1336
|
-
scope?: "
|
|
1336
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
1337
1337
|
retentionDays?: number | undefined;
|
|
1338
1338
|
piiFields?: string[] | undefined;
|
|
1339
1339
|
} | undefined;
|
|
@@ -1349,8 +1349,8 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1349
1349
|
} | undefined;
|
|
1350
1350
|
} | undefined;
|
|
1351
1351
|
prompts?: {
|
|
1352
|
-
id: string;
|
|
1353
1352
|
text: string;
|
|
1353
|
+
id: string;
|
|
1354
1354
|
}[] | undefined;
|
|
1355
1355
|
triggers?: {
|
|
1356
1356
|
then: string;
|
|
@@ -1360,29 +1360,29 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1360
1360
|
}[] | undefined;
|
|
1361
1361
|
tools?: {
|
|
1362
1362
|
name: string;
|
|
1363
|
-
url: string;
|
|
1364
1363
|
description: string;
|
|
1365
1364
|
input: Record<string, "string" | "number" | "boolean">;
|
|
1365
|
+
url: string;
|
|
1366
1366
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1367
1367
|
auth: "none" | "connection";
|
|
1368
1368
|
headers?: Record<string, string> | undefined;
|
|
1369
1369
|
connectionRef?: string | undefined;
|
|
1370
1370
|
}[] | undefined;
|
|
1371
1371
|
program?: {
|
|
1372
|
-
v: 1;
|
|
1373
1372
|
id: string;
|
|
1374
|
-
entry: string[];
|
|
1375
1373
|
nodes: Record<string, {
|
|
1376
|
-
type: "
|
|
1374
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1377
1375
|
id: string;
|
|
1378
1376
|
config: Record<string, unknown>;
|
|
1379
1377
|
out: {
|
|
1380
1378
|
to: string;
|
|
1381
|
-
condition?: string | undefined;
|
|
1382
1379
|
sourceHandle?: string | undefined;
|
|
1383
1380
|
label?: string | undefined;
|
|
1381
|
+
condition?: string | undefined;
|
|
1384
1382
|
}[];
|
|
1385
1383
|
}>;
|
|
1384
|
+
v: 1;
|
|
1385
|
+
entry: string[];
|
|
1386
1386
|
completionGate: {
|
|
1387
1387
|
requiredFields: string[];
|
|
1388
1388
|
};
|
|
@@ -1398,8 +1398,8 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1398
1398
|
}, {
|
|
1399
1399
|
status: "online" | "offline" | "degraded";
|
|
1400
1400
|
id: string;
|
|
1401
|
-
name: string;
|
|
1402
1401
|
projectId: string;
|
|
1402
|
+
name: string;
|
|
1403
1403
|
createdAt: string;
|
|
1404
1404
|
updatedAt: string;
|
|
1405
1405
|
version: string;
|
|
@@ -1437,7 +1437,7 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1437
1437
|
routes?: Record<string, string> | undefined;
|
|
1438
1438
|
} | undefined;
|
|
1439
1439
|
memory?: {
|
|
1440
|
-
scope?: "
|
|
1440
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
1441
1441
|
retentionDays?: number | undefined;
|
|
1442
1442
|
piiFields?: string[] | undefined;
|
|
1443
1443
|
} | undefined;
|
|
@@ -1453,8 +1453,8 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1453
1453
|
} | undefined;
|
|
1454
1454
|
} | undefined;
|
|
1455
1455
|
prompts?: {
|
|
1456
|
-
id: string;
|
|
1457
1456
|
text: string;
|
|
1457
|
+
id: string;
|
|
1458
1458
|
}[] | undefined;
|
|
1459
1459
|
triggers?: {
|
|
1460
1460
|
then: string;
|
|
@@ -1464,29 +1464,29 @@ declare const AgentDTO: z.ZodObject<{
|
|
|
1464
1464
|
}[] | undefined;
|
|
1465
1465
|
tools?: {
|
|
1466
1466
|
name: string;
|
|
1467
|
-
url: string;
|
|
1468
1467
|
description: string;
|
|
1469
1468
|
input: Record<string, "string" | "number" | "boolean">;
|
|
1469
|
+
url: string;
|
|
1470
1470
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1471
1471
|
auth: "none" | "connection";
|
|
1472
1472
|
headers?: Record<string, string> | undefined;
|
|
1473
1473
|
connectionRef?: string | undefined;
|
|
1474
1474
|
}[] | undefined;
|
|
1475
1475
|
program?: {
|
|
1476
|
-
v: 1;
|
|
1477
1476
|
id: string;
|
|
1478
|
-
entry: string[];
|
|
1479
1477
|
nodes: Record<string, {
|
|
1480
|
-
type: "
|
|
1478
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1481
1479
|
id: string;
|
|
1482
1480
|
config: Record<string, unknown>;
|
|
1483
1481
|
out: {
|
|
1484
1482
|
to: string;
|
|
1485
|
-
condition?: string | undefined;
|
|
1486
1483
|
sourceHandle?: string | undefined;
|
|
1487
1484
|
label?: string | undefined;
|
|
1485
|
+
condition?: string | undefined;
|
|
1488
1486
|
}[];
|
|
1489
1487
|
}>;
|
|
1488
|
+
v: 1;
|
|
1489
|
+
entry: string[];
|
|
1490
1490
|
completionGate: {
|
|
1491
1491
|
requiredFields: string[];
|
|
1492
1492
|
};
|
|
@@ -1517,34 +1517,34 @@ declare const FlowProgram: z.ZodObject<{
|
|
|
1517
1517
|
label: z.ZodOptional<z.ZodString>;
|
|
1518
1518
|
}, "strip", z.ZodTypeAny, {
|
|
1519
1519
|
to: string;
|
|
1520
|
-
condition?: string | undefined;
|
|
1521
1520
|
sourceHandle?: string | undefined;
|
|
1522
1521
|
label?: string | undefined;
|
|
1522
|
+
condition?: string | undefined;
|
|
1523
1523
|
}, {
|
|
1524
1524
|
to: string;
|
|
1525
|
-
condition?: string | undefined;
|
|
1526
1525
|
sourceHandle?: string | undefined;
|
|
1527
1526
|
label?: string | undefined;
|
|
1527
|
+
condition?: string | undefined;
|
|
1528
1528
|
}>, "many">;
|
|
1529
1529
|
}, "strip", z.ZodTypeAny, {
|
|
1530
|
-
type: "
|
|
1530
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1531
1531
|
id: string;
|
|
1532
1532
|
config: Record<string, unknown>;
|
|
1533
1533
|
out: {
|
|
1534
1534
|
to: string;
|
|
1535
|
-
condition?: string | undefined;
|
|
1536
1535
|
sourceHandle?: string | undefined;
|
|
1537
1536
|
label?: string | undefined;
|
|
1537
|
+
condition?: string | undefined;
|
|
1538
1538
|
}[];
|
|
1539
1539
|
}, {
|
|
1540
|
-
type: "
|
|
1540
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1541
1541
|
id: string;
|
|
1542
1542
|
config: Record<string, unknown>;
|
|
1543
1543
|
out: {
|
|
1544
1544
|
to: string;
|
|
1545
|
-
condition?: string | undefined;
|
|
1546
1545
|
sourceHandle?: string | undefined;
|
|
1547
1546
|
label?: string | undefined;
|
|
1547
|
+
condition?: string | undefined;
|
|
1548
1548
|
}[];
|
|
1549
1549
|
}>>;
|
|
1550
1550
|
completionGate: z.ZodObject<{
|
|
@@ -1571,20 +1571,20 @@ declare const FlowProgram: z.ZodObject<{
|
|
|
1571
1571
|
labelOnlyEdges?: string[] | undefined;
|
|
1572
1572
|
}>>;
|
|
1573
1573
|
}, "strip", z.ZodTypeAny, {
|
|
1574
|
-
v: 1;
|
|
1575
1574
|
id: string;
|
|
1576
|
-
entry: string[];
|
|
1577
1575
|
nodes: Record<string, {
|
|
1578
|
-
type: "
|
|
1576
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1579
1577
|
id: string;
|
|
1580
1578
|
config: Record<string, unknown>;
|
|
1581
1579
|
out: {
|
|
1582
1580
|
to: string;
|
|
1583
|
-
condition?: string | undefined;
|
|
1584
1581
|
sourceHandle?: string | undefined;
|
|
1585
1582
|
label?: string | undefined;
|
|
1583
|
+
condition?: string | undefined;
|
|
1586
1584
|
}[];
|
|
1587
1585
|
}>;
|
|
1586
|
+
v: 1;
|
|
1587
|
+
entry: string[];
|
|
1588
1588
|
completionGate: {
|
|
1589
1589
|
requiredFields: string[];
|
|
1590
1590
|
};
|
|
@@ -1595,20 +1595,20 @@ declare const FlowProgram: z.ZodObject<{
|
|
|
1595
1595
|
labelOnlyEdges?: string[] | undefined;
|
|
1596
1596
|
} | undefined;
|
|
1597
1597
|
}, {
|
|
1598
|
-
v: 1;
|
|
1599
1598
|
id: string;
|
|
1600
|
-
entry: string[];
|
|
1601
1599
|
nodes: Record<string, {
|
|
1602
|
-
type: "
|
|
1600
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1603
1601
|
id: string;
|
|
1604
1602
|
config: Record<string, unknown>;
|
|
1605
1603
|
out: {
|
|
1606
1604
|
to: string;
|
|
1607
|
-
condition?: string | undefined;
|
|
1608
1605
|
sourceHandle?: string | undefined;
|
|
1609
1606
|
label?: string | undefined;
|
|
1607
|
+
condition?: string | undefined;
|
|
1610
1608
|
}[];
|
|
1611
1609
|
}>;
|
|
1610
|
+
v: 1;
|
|
1611
|
+
entry: string[];
|
|
1612
1612
|
completionGate: {
|
|
1613
1613
|
requiredFields: string[];
|
|
1614
1614
|
};
|