@voicelayer/sdk 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -191,6 +191,12 @@ interface SessionFactoryInput {
191
191
  /** Connector-brain agent: disable preemptive generation (a multi-second remote
192
192
  * turn otherwise regenerates on the final transcript and drops the reply). */
193
193
  readonly connectorAgentMode?: boolean;
194
+ /**
195
+ * The SecurityPrimitive wraps this session (SecureAgent): preemptive generation is off. It would send the raw,
196
+ * unsealed transcript (PII included) to the model before the input guard runs — and its reply is always discarded,
197
+ * since the guard rewrites the message it was generated from.
198
+ */
199
+ readonly secured?: boolean;
194
200
  readonly captureDtmf: boolean;
195
201
  readonly pipeline?: {
196
202
  readonly stt?: unknown;
@@ -337,11 +343,11 @@ declare const ProcessSchemaDTO: z.ZodObject<{
337
343
  id: z.ZodString;
338
344
  text: z.ZodString;
339
345
  }, "strip", z.ZodTypeAny, {
340
- text: string;
341
346
  id: string;
342
- }, {
343
347
  text: string;
348
+ }, {
344
349
  id: string;
350
+ text: string;
345
351
  }>, "many">>;
346
352
  fields: z.ZodArray<z.ZodObject<{
347
353
  name: z.ZodString;
@@ -427,11 +433,11 @@ declare const ProcessSchemaDTO: z.ZodObject<{
427
433
  retentionDays: z.ZodOptional<z.ZodNumber>;
428
434
  piiFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
429
435
  }, "strip", z.ZodTypeAny, {
430
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
436
+ scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
431
437
  retentionDays?: number | undefined;
432
438
  piiFields?: string[] | undefined;
433
439
  }, {
434
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
440
+ scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
435
441
  retentionDays?: number | undefined;
436
442
  piiFields?: string[] | undefined;
437
443
  }>>;
@@ -446,18 +452,18 @@ declare const ProcessSchemaDTO: z.ZodObject<{
446
452
  connectionRef: z.ZodOptional<z.ZodString>;
447
453
  }, "strip", z.ZodTypeAny, {
448
454
  name: string;
455
+ url: string;
449
456
  description: string;
450
457
  input: Record<string, "string" | "number" | "boolean">;
451
- url: string;
452
458
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
453
459
  auth: "none" | "connection";
454
460
  headers?: Record<string, string> | undefined;
455
461
  connectionRef?: string | undefined;
456
462
  }, {
457
463
  name: string;
464
+ url: string;
458
465
  description: string;
459
466
  input: Record<string, "string" | "number" | "boolean">;
460
- url: string;
461
467
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
462
468
  auth: "none" | "connection";
463
469
  headers?: Record<string, string> | undefined;
@@ -523,34 +529,34 @@ declare const ProcessSchemaDTO: z.ZodObject<{
523
529
  label: z.ZodOptional<z.ZodString>;
524
530
  }, "strip", z.ZodTypeAny, {
525
531
  to: string;
532
+ condition?: string | undefined;
526
533
  sourceHandle?: string | undefined;
527
534
  label?: string | undefined;
528
- condition?: string | undefined;
529
535
  }, {
530
536
  to: string;
537
+ condition?: string | undefined;
531
538
  sourceHandle?: string | undefined;
532
539
  label?: string | undefined;
533
- condition?: string | undefined;
534
540
  }>, "many">;
535
541
  }, "strip", z.ZodTypeAny, {
536
- type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
542
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
537
543
  id: string;
538
544
  config: Record<string, unknown>;
539
545
  out: {
540
546
  to: string;
547
+ condition?: string | undefined;
541
548
  sourceHandle?: string | undefined;
542
549
  label?: string | undefined;
543
- condition?: string | undefined;
544
550
  }[];
545
551
  }, {
546
- type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
552
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
547
553
  id: string;
548
554
  config: Record<string, unknown>;
549
555
  out: {
550
556
  to: string;
557
+ condition?: string | undefined;
551
558
  sourceHandle?: string | undefined;
552
559
  label?: string | undefined;
553
- condition?: string | undefined;
554
560
  }[];
555
561
  }>>;
556
562
  completionGate: z.ZodObject<{
@@ -577,20 +583,20 @@ declare const ProcessSchemaDTO: z.ZodObject<{
577
583
  labelOnlyEdges?: string[] | undefined;
578
584
  }>>;
579
585
  }, "strip", z.ZodTypeAny, {
586
+ v: 1;
580
587
  id: string;
588
+ entry: string[];
581
589
  nodes: Record<string, {
582
- type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
590
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
583
591
  id: string;
584
592
  config: Record<string, unknown>;
585
593
  out: {
586
594
  to: string;
595
+ condition?: string | undefined;
587
596
  sourceHandle?: string | undefined;
588
597
  label?: string | undefined;
589
- condition?: string | undefined;
590
598
  }[];
591
599
  }>;
592
- v: 1;
593
- entry: string[];
594
600
  completionGate: {
595
601
  requiredFields: string[];
596
602
  };
@@ -601,20 +607,20 @@ declare const ProcessSchemaDTO: z.ZodObject<{
601
607
  labelOnlyEdges?: string[] | undefined;
602
608
  } | undefined;
603
609
  }, {
610
+ v: 1;
604
611
  id: string;
612
+ entry: string[];
605
613
  nodes: Record<string, {
606
- type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
614
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
607
615
  id: string;
608
616
  config: Record<string, unknown>;
609
617
  out: {
610
618
  to: string;
619
+ condition?: string | undefined;
611
620
  sourceHandle?: string | undefined;
612
621
  label?: string | undefined;
613
- condition?: string | undefined;
614
622
  }[];
615
623
  }>;
616
- v: 1;
617
- entry: string[];
618
624
  completionGate: {
619
625
  requiredFields: string[];
620
626
  };
@@ -649,7 +655,7 @@ declare const ProcessSchemaDTO: z.ZodObject<{
649
655
  routes?: Record<string, string> | undefined;
650
656
  } | undefined;
651
657
  memory?: {
652
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
658
+ scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
653
659
  retentionDays?: number | undefined;
654
660
  piiFields?: string[] | undefined;
655
661
  } | undefined;
@@ -665,8 +671,8 @@ declare const ProcessSchemaDTO: z.ZodObject<{
665
671
  } | undefined;
666
672
  } | undefined;
667
673
  prompts?: {
668
- text: string;
669
674
  id: string;
675
+ text: string;
670
676
  }[] | undefined;
671
677
  triggers?: {
672
678
  then: string;
@@ -676,29 +682,29 @@ declare const ProcessSchemaDTO: z.ZodObject<{
676
682
  }[] | undefined;
677
683
  tools?: {
678
684
  name: string;
685
+ url: string;
679
686
  description: string;
680
687
  input: Record<string, "string" | "number" | "boolean">;
681
- url: string;
682
688
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
683
689
  auth: "none" | "connection";
684
690
  headers?: Record<string, string> | undefined;
685
691
  connectionRef?: string | undefined;
686
692
  }[] | undefined;
687
693
  program?: {
694
+ v: 1;
688
695
  id: string;
696
+ entry: string[];
689
697
  nodes: Record<string, {
690
- type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
698
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
691
699
  id: string;
692
700
  config: Record<string, unknown>;
693
701
  out: {
694
702
  to: string;
703
+ condition?: string | undefined;
695
704
  sourceHandle?: string | undefined;
696
705
  label?: string | undefined;
697
- condition?: string | undefined;
698
706
  }[];
699
707
  }>;
700
- v: 1;
701
- entry: string[];
702
708
  completionGate: {
703
709
  requiredFields: string[];
704
710
  };
@@ -733,7 +739,7 @@ declare const ProcessSchemaDTO: z.ZodObject<{
733
739
  routes?: Record<string, string> | undefined;
734
740
  } | undefined;
735
741
  memory?: {
736
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
742
+ scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
737
743
  retentionDays?: number | undefined;
738
744
  piiFields?: string[] | undefined;
739
745
  } | undefined;
@@ -749,8 +755,8 @@ declare const ProcessSchemaDTO: z.ZodObject<{
749
755
  } | undefined;
750
756
  } | undefined;
751
757
  prompts?: {
752
- text: string;
753
758
  id: string;
759
+ text: string;
754
760
  }[] | undefined;
755
761
  triggers?: {
756
762
  then: string;
@@ -760,29 +766,29 @@ declare const ProcessSchemaDTO: z.ZodObject<{
760
766
  }[] | undefined;
761
767
  tools?: {
762
768
  name: string;
769
+ url: string;
763
770
  description: string;
764
771
  input: Record<string, "string" | "number" | "boolean">;
765
- url: string;
766
772
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
767
773
  auth: "none" | "connection";
768
774
  headers?: Record<string, string> | undefined;
769
775
  connectionRef?: string | undefined;
770
776
  }[] | undefined;
771
777
  program?: {
778
+ v: 1;
772
779
  id: string;
780
+ entry: string[];
773
781
  nodes: Record<string, {
774
- type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
782
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
775
783
  id: string;
776
784
  config: Record<string, unknown>;
777
785
  out: {
778
786
  to: string;
787
+ condition?: string | undefined;
779
788
  sourceHandle?: string | undefined;
780
789
  label?: string | undefined;
781
- condition?: string | undefined;
782
790
  }[];
783
791
  }>;
784
- v: 1;
785
- entry: string[];
786
792
  completionGate: {
787
793
  requiredFields: string[];
788
794
  };
@@ -825,11 +831,11 @@ declare const AgentDTO: z.ZodObject<{
825
831
  id: z.ZodString;
826
832
  text: z.ZodString;
827
833
  }, "strip", z.ZodTypeAny, {
828
- text: string;
829
834
  id: string;
830
- }, {
831
835
  text: string;
836
+ }, {
832
837
  id: string;
838
+ text: string;
833
839
  }>, "many">>;
834
840
  fields: z.ZodArray<z.ZodObject<{
835
841
  name: z.ZodString;
@@ -915,11 +921,11 @@ declare const AgentDTO: z.ZodObject<{
915
921
  retentionDays: z.ZodOptional<z.ZodNumber>;
916
922
  piiFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
917
923
  }, "strip", z.ZodTypeAny, {
918
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
924
+ scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
919
925
  retentionDays?: number | undefined;
920
926
  piiFields?: string[] | undefined;
921
927
  }, {
922
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
928
+ scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
923
929
  retentionDays?: number | undefined;
924
930
  piiFields?: string[] | undefined;
925
931
  }>>;
@@ -934,18 +940,18 @@ declare const AgentDTO: z.ZodObject<{
934
940
  connectionRef: z.ZodOptional<z.ZodString>;
935
941
  }, "strip", z.ZodTypeAny, {
936
942
  name: string;
943
+ url: string;
937
944
  description: string;
938
945
  input: Record<string, "string" | "number" | "boolean">;
939
- url: string;
940
946
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
941
947
  auth: "none" | "connection";
942
948
  headers?: Record<string, string> | undefined;
943
949
  connectionRef?: string | undefined;
944
950
  }, {
945
951
  name: string;
952
+ url: string;
946
953
  description: string;
947
954
  input: Record<string, "string" | "number" | "boolean">;
948
- url: string;
949
955
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
950
956
  auth: "none" | "connection";
951
957
  headers?: Record<string, string> | undefined;
@@ -1011,34 +1017,34 @@ declare const AgentDTO: z.ZodObject<{
1011
1017
  label: z.ZodOptional<z.ZodString>;
1012
1018
  }, "strip", z.ZodTypeAny, {
1013
1019
  to: string;
1020
+ condition?: string | undefined;
1014
1021
  sourceHandle?: string | undefined;
1015
1022
  label?: string | undefined;
1016
- condition?: string | undefined;
1017
1023
  }, {
1018
1024
  to: string;
1025
+ condition?: string | undefined;
1019
1026
  sourceHandle?: string | undefined;
1020
1027
  label?: string | undefined;
1021
- condition?: string | undefined;
1022
1028
  }>, "many">;
1023
1029
  }, "strip", z.ZodTypeAny, {
1024
- type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1030
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1025
1031
  id: string;
1026
1032
  config: Record<string, unknown>;
1027
1033
  out: {
1028
1034
  to: string;
1035
+ condition?: string | undefined;
1029
1036
  sourceHandle?: string | undefined;
1030
1037
  label?: string | undefined;
1031
- condition?: string | undefined;
1032
1038
  }[];
1033
1039
  }, {
1034
- type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1040
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1035
1041
  id: string;
1036
1042
  config: Record<string, unknown>;
1037
1043
  out: {
1038
1044
  to: string;
1045
+ condition?: string | undefined;
1039
1046
  sourceHandle?: string | undefined;
1040
1047
  label?: string | undefined;
1041
- condition?: string | undefined;
1042
1048
  }[];
1043
1049
  }>>;
1044
1050
  completionGate: z.ZodObject<{
@@ -1065,20 +1071,20 @@ declare const AgentDTO: z.ZodObject<{
1065
1071
  labelOnlyEdges?: string[] | undefined;
1066
1072
  }>>;
1067
1073
  }, "strip", z.ZodTypeAny, {
1074
+ v: 1;
1068
1075
  id: string;
1076
+ entry: string[];
1069
1077
  nodes: Record<string, {
1070
- type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1078
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1071
1079
  id: string;
1072
1080
  config: Record<string, unknown>;
1073
1081
  out: {
1074
1082
  to: string;
1083
+ condition?: string | undefined;
1075
1084
  sourceHandle?: string | undefined;
1076
1085
  label?: string | undefined;
1077
- condition?: string | undefined;
1078
1086
  }[];
1079
1087
  }>;
1080
- v: 1;
1081
- entry: string[];
1082
1088
  completionGate: {
1083
1089
  requiredFields: string[];
1084
1090
  };
@@ -1089,20 +1095,20 @@ declare const AgentDTO: z.ZodObject<{
1089
1095
  labelOnlyEdges?: string[] | undefined;
1090
1096
  } | undefined;
1091
1097
  }, {
1098
+ v: 1;
1092
1099
  id: string;
1100
+ entry: string[];
1093
1101
  nodes: Record<string, {
1094
- type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1102
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1095
1103
  id: string;
1096
1104
  config: Record<string, unknown>;
1097
1105
  out: {
1098
1106
  to: string;
1107
+ condition?: string | undefined;
1099
1108
  sourceHandle?: string | undefined;
1100
1109
  label?: string | undefined;
1101
- condition?: string | undefined;
1102
1110
  }[];
1103
1111
  }>;
1104
- v: 1;
1105
- entry: string[];
1106
1112
  completionGate: {
1107
1113
  requiredFields: string[];
1108
1114
  };
@@ -1137,7 +1143,7 @@ declare const AgentDTO: z.ZodObject<{
1137
1143
  routes?: Record<string, string> | undefined;
1138
1144
  } | undefined;
1139
1145
  memory?: {
1140
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
1146
+ scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
1141
1147
  retentionDays?: number | undefined;
1142
1148
  piiFields?: string[] | undefined;
1143
1149
  } | undefined;
@@ -1153,8 +1159,8 @@ declare const AgentDTO: z.ZodObject<{
1153
1159
  } | undefined;
1154
1160
  } | undefined;
1155
1161
  prompts?: {
1156
- text: string;
1157
1162
  id: string;
1163
+ text: string;
1158
1164
  }[] | undefined;
1159
1165
  triggers?: {
1160
1166
  then: string;
@@ -1164,29 +1170,29 @@ declare const AgentDTO: z.ZodObject<{
1164
1170
  }[] | undefined;
1165
1171
  tools?: {
1166
1172
  name: string;
1173
+ url: string;
1167
1174
  description: string;
1168
1175
  input: Record<string, "string" | "number" | "boolean">;
1169
- url: string;
1170
1176
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1171
1177
  auth: "none" | "connection";
1172
1178
  headers?: Record<string, string> | undefined;
1173
1179
  connectionRef?: string | undefined;
1174
1180
  }[] | undefined;
1175
1181
  program?: {
1182
+ v: 1;
1176
1183
  id: string;
1184
+ entry: string[];
1177
1185
  nodes: Record<string, {
1178
- type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1186
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1179
1187
  id: string;
1180
1188
  config: Record<string, unknown>;
1181
1189
  out: {
1182
1190
  to: string;
1191
+ condition?: string | undefined;
1183
1192
  sourceHandle?: string | undefined;
1184
1193
  label?: string | undefined;
1185
- condition?: string | undefined;
1186
1194
  }[];
1187
1195
  }>;
1188
- v: 1;
1189
- entry: string[];
1190
1196
  completionGate: {
1191
1197
  requiredFields: string[];
1192
1198
  };
@@ -1221,7 +1227,7 @@ declare const AgentDTO: z.ZodObject<{
1221
1227
  routes?: Record<string, string> | undefined;
1222
1228
  } | undefined;
1223
1229
  memory?: {
1224
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
1230
+ scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
1225
1231
  retentionDays?: number | undefined;
1226
1232
  piiFields?: string[] | undefined;
1227
1233
  } | undefined;
@@ -1237,8 +1243,8 @@ declare const AgentDTO: z.ZodObject<{
1237
1243
  } | undefined;
1238
1244
  } | undefined;
1239
1245
  prompts?: {
1240
- text: string;
1241
1246
  id: string;
1247
+ text: string;
1242
1248
  }[] | undefined;
1243
1249
  triggers?: {
1244
1250
  then: string;
@@ -1248,29 +1254,29 @@ declare const AgentDTO: z.ZodObject<{
1248
1254
  }[] | undefined;
1249
1255
  tools?: {
1250
1256
  name: string;
1257
+ url: string;
1251
1258
  description: string;
1252
1259
  input: Record<string, "string" | "number" | "boolean">;
1253
- url: string;
1254
1260
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1255
1261
  auth: "none" | "connection";
1256
1262
  headers?: Record<string, string> | undefined;
1257
1263
  connectionRef?: string | undefined;
1258
1264
  }[] | undefined;
1259
1265
  program?: {
1266
+ v: 1;
1260
1267
  id: string;
1268
+ entry: string[];
1261
1269
  nodes: Record<string, {
1262
- type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1270
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1263
1271
  id: string;
1264
1272
  config: Record<string, unknown>;
1265
1273
  out: {
1266
1274
  to: string;
1275
+ condition?: string | undefined;
1267
1276
  sourceHandle?: string | undefined;
1268
1277
  label?: string | undefined;
1269
- condition?: string | undefined;
1270
1278
  }[];
1271
1279
  }>;
1272
- v: 1;
1273
- entry: string[];
1274
1280
  completionGate: {
1275
1281
  requiredFields: string[];
1276
1282
  };
@@ -1288,8 +1294,8 @@ declare const AgentDTO: z.ZodObject<{
1288
1294
  }, "strip", z.ZodTypeAny, {
1289
1295
  status: "online" | "offline" | "degraded";
1290
1296
  id: string;
1291
- projectId: string;
1292
1297
  name: string;
1298
+ projectId: string;
1293
1299
  createdAt: string;
1294
1300
  updatedAt: string;
1295
1301
  version: string;
@@ -1327,7 +1333,7 @@ declare const AgentDTO: z.ZodObject<{
1327
1333
  routes?: Record<string, string> | undefined;
1328
1334
  } | undefined;
1329
1335
  memory?: {
1330
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
1336
+ scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
1331
1337
  retentionDays?: number | undefined;
1332
1338
  piiFields?: string[] | undefined;
1333
1339
  } | undefined;
@@ -1343,8 +1349,8 @@ declare const AgentDTO: z.ZodObject<{
1343
1349
  } | undefined;
1344
1350
  } | undefined;
1345
1351
  prompts?: {
1346
- text: string;
1347
1352
  id: string;
1353
+ text: string;
1348
1354
  }[] | undefined;
1349
1355
  triggers?: {
1350
1356
  then: string;
@@ -1354,29 +1360,29 @@ declare const AgentDTO: z.ZodObject<{
1354
1360
  }[] | undefined;
1355
1361
  tools?: {
1356
1362
  name: string;
1363
+ url: string;
1357
1364
  description: string;
1358
1365
  input: Record<string, "string" | "number" | "boolean">;
1359
- url: string;
1360
1366
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1361
1367
  auth: "none" | "connection";
1362
1368
  headers?: Record<string, string> | undefined;
1363
1369
  connectionRef?: string | undefined;
1364
1370
  }[] | undefined;
1365
1371
  program?: {
1372
+ v: 1;
1366
1373
  id: string;
1374
+ entry: string[];
1367
1375
  nodes: Record<string, {
1368
- type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1376
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1369
1377
  id: string;
1370
1378
  config: Record<string, unknown>;
1371
1379
  out: {
1372
1380
  to: string;
1381
+ condition?: string | undefined;
1373
1382
  sourceHandle?: string | undefined;
1374
1383
  label?: string | undefined;
1375
- condition?: string | undefined;
1376
1384
  }[];
1377
1385
  }>;
1378
- v: 1;
1379
- entry: string[];
1380
1386
  completionGate: {
1381
1387
  requiredFields: string[];
1382
1388
  };
@@ -1392,8 +1398,8 @@ declare const AgentDTO: z.ZodObject<{
1392
1398
  }, {
1393
1399
  status: "online" | "offline" | "degraded";
1394
1400
  id: string;
1395
- projectId: string;
1396
1401
  name: string;
1402
+ projectId: string;
1397
1403
  createdAt: string;
1398
1404
  updatedAt: string;
1399
1405
  version: string;
@@ -1431,7 +1437,7 @@ declare const AgentDTO: z.ZodObject<{
1431
1437
  routes?: Record<string, string> | undefined;
1432
1438
  } | undefined;
1433
1439
  memory?: {
1434
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
1440
+ scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
1435
1441
  retentionDays?: number | undefined;
1436
1442
  piiFields?: string[] | undefined;
1437
1443
  } | undefined;
@@ -1447,8 +1453,8 @@ declare const AgentDTO: z.ZodObject<{
1447
1453
  } | undefined;
1448
1454
  } | undefined;
1449
1455
  prompts?: {
1450
- text: string;
1451
1456
  id: string;
1457
+ text: string;
1452
1458
  }[] | undefined;
1453
1459
  triggers?: {
1454
1460
  then: string;
@@ -1458,29 +1464,29 @@ declare const AgentDTO: z.ZodObject<{
1458
1464
  }[] | undefined;
1459
1465
  tools?: {
1460
1466
  name: string;
1467
+ url: string;
1461
1468
  description: string;
1462
1469
  input: Record<string, "string" | "number" | "boolean">;
1463
- url: string;
1464
1470
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1465
1471
  auth: "none" | "connection";
1466
1472
  headers?: Record<string, string> | undefined;
1467
1473
  connectionRef?: string | undefined;
1468
1474
  }[] | undefined;
1469
1475
  program?: {
1476
+ v: 1;
1470
1477
  id: string;
1478
+ entry: string[];
1471
1479
  nodes: Record<string, {
1472
- type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1480
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1473
1481
  id: string;
1474
1482
  config: Record<string, unknown>;
1475
1483
  out: {
1476
1484
  to: string;
1485
+ condition?: string | undefined;
1477
1486
  sourceHandle?: string | undefined;
1478
1487
  label?: string | undefined;
1479
- condition?: string | undefined;
1480
1488
  }[];
1481
1489
  }>;
1482
- v: 1;
1483
- entry: string[];
1484
1490
  completionGate: {
1485
1491
  requiredFields: string[];
1486
1492
  };
@@ -1511,34 +1517,34 @@ declare const FlowProgram: z.ZodObject<{
1511
1517
  label: z.ZodOptional<z.ZodString>;
1512
1518
  }, "strip", z.ZodTypeAny, {
1513
1519
  to: string;
1520
+ condition?: string | undefined;
1514
1521
  sourceHandle?: string | undefined;
1515
1522
  label?: string | undefined;
1516
- condition?: string | undefined;
1517
1523
  }, {
1518
1524
  to: string;
1525
+ condition?: string | undefined;
1519
1526
  sourceHandle?: string | undefined;
1520
1527
  label?: string | undefined;
1521
- condition?: string | undefined;
1522
1528
  }>, "many">;
1523
1529
  }, "strip", z.ZodTypeAny, {
1524
- type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1530
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1525
1531
  id: string;
1526
1532
  config: Record<string, unknown>;
1527
1533
  out: {
1528
1534
  to: string;
1535
+ condition?: string | undefined;
1529
1536
  sourceHandle?: string | undefined;
1530
1537
  label?: string | undefined;
1531
- condition?: string | undefined;
1532
1538
  }[];
1533
1539
  }, {
1534
- type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1540
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1535
1541
  id: string;
1536
1542
  config: Record<string, unknown>;
1537
1543
  out: {
1538
1544
  to: string;
1545
+ condition?: string | undefined;
1539
1546
  sourceHandle?: string | undefined;
1540
1547
  label?: string | undefined;
1541
- condition?: string | undefined;
1542
1548
  }[];
1543
1549
  }>>;
1544
1550
  completionGate: z.ZodObject<{
@@ -1565,20 +1571,20 @@ declare const FlowProgram: z.ZodObject<{
1565
1571
  labelOnlyEdges?: string[] | undefined;
1566
1572
  }>>;
1567
1573
  }, "strip", z.ZodTypeAny, {
1574
+ v: 1;
1568
1575
  id: string;
1576
+ entry: string[];
1569
1577
  nodes: Record<string, {
1570
- type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1578
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1571
1579
  id: string;
1572
1580
  config: Record<string, unknown>;
1573
1581
  out: {
1574
1582
  to: string;
1583
+ condition?: string | undefined;
1575
1584
  sourceHandle?: string | undefined;
1576
1585
  label?: string | undefined;
1577
- condition?: string | undefined;
1578
1586
  }[];
1579
1587
  }>;
1580
- v: 1;
1581
- entry: string[];
1582
1588
  completionGate: {
1583
1589
  requiredFields: string[];
1584
1590
  };
@@ -1589,20 +1595,20 @@ declare const FlowProgram: z.ZodObject<{
1589
1595
  labelOnlyEdges?: string[] | undefined;
1590
1596
  } | undefined;
1591
1597
  }, {
1598
+ v: 1;
1592
1599
  id: string;
1600
+ entry: string[];
1593
1601
  nodes: Record<string, {
1594
- type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1602
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
1595
1603
  id: string;
1596
1604
  config: Record<string, unknown>;
1597
1605
  out: {
1598
1606
  to: string;
1607
+ condition?: string | undefined;
1599
1608
  sourceHandle?: string | undefined;
1600
1609
  label?: string | undefined;
1601
- condition?: string | undefined;
1602
1610
  }[];
1603
1611
  }>;
1604
- v: 1;
1605
- entry: string[];
1606
1612
  completionGate: {
1607
1613
  requiredFields: string[];
1608
1614
  };