@voiceflow/dtos-interact 1.65.0 → 1.66.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.
Files changed (37) hide show
  1. package/build/cjs/socket/socket-action-trace.dto.d.ts +2273 -165
  2. package/build/cjs/socket/socket-action-trace.dto.d.ts.map +1 -1
  3. package/build/cjs/socket/socket-message.dto.d.ts +4618 -402
  4. package/build/cjs/socket/socket-message.dto.d.ts.map +1 -1
  5. package/build/cjs/trace/any.dto.d.ts +1432 -60
  6. package/build/cjs/trace/any.dto.d.ts.map +1 -1
  7. package/build/cjs/trace/card.dto.d.ts +548 -0
  8. package/build/cjs/trace/card.dto.d.ts.map +1 -1
  9. package/build/cjs/trace/card.dto.js +2 -0
  10. package/build/cjs/trace/card.dto.js.map +1 -1
  11. package/build/cjs/trace/carousel.dto.d.ts +960 -0
  12. package/build/cjs/trace/carousel.dto.d.ts.map +1 -1
  13. package/build/cjs/trace/carousel.dto.js +2 -0
  14. package/build/cjs/trace/carousel.dto.js.map +1 -1
  15. package/build/cjs/trace/choice.dto.d.ts +320 -0
  16. package/build/cjs/trace/choice.dto.d.ts.map +1 -1
  17. package/build/cjs/trace/choice.dto.js +2 -0
  18. package/build/cjs/trace/choice.dto.js.map +1 -1
  19. package/build/esm/socket/socket-action-trace.dto.d.ts +2273 -165
  20. package/build/esm/socket/socket-action-trace.dto.d.ts.map +1 -1
  21. package/build/esm/socket/socket-message.dto.d.ts +4618 -402
  22. package/build/esm/socket/socket-message.dto.d.ts.map +1 -1
  23. package/build/esm/trace/any.dto.d.ts +1432 -60
  24. package/build/esm/trace/any.dto.d.ts.map +1 -1
  25. package/build/esm/trace/card.dto.d.ts +548 -0
  26. package/build/esm/trace/card.dto.d.ts.map +1 -1
  27. package/build/esm/trace/card.dto.js +2 -0
  28. package/build/esm/trace/card.dto.js.map +1 -1
  29. package/build/esm/trace/carousel.dto.d.ts +960 -0
  30. package/build/esm/trace/carousel.dto.d.ts.map +1 -1
  31. package/build/esm/trace/carousel.dto.js +2 -0
  32. package/build/esm/trace/carousel.dto.js.map +1 -1
  33. package/build/esm/trace/choice.dto.d.ts +320 -0
  34. package/build/esm/trace/choice.dto.d.ts.map +1 -1
  35. package/build/esm/trace/choice.dto.js +2 -0
  36. package/build/esm/trace/choice.dto.js.map +1 -1
  37. package/package.json +2 -2
@@ -533,6 +533,142 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
533
533
  } & {
534
534
  type: z.ZodLiteral<"cardV2">;
535
535
  payload: z.ZodObject<{
536
+ ref: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
537
+ type: z.ZodLiteral<"node">;
538
+ nodeID: z.ZodString;
539
+ nodeType: z.ZodString;
540
+ diagramID: z.ZodString;
541
+ diagramName: z.ZodOptional<z.ZodString>;
542
+ }, "strip", z.ZodTypeAny, {
543
+ type: "node";
544
+ diagramID: string;
545
+ nodeID: string;
546
+ nodeType: string;
547
+ diagramName?: string | undefined;
548
+ }, {
549
+ type: "node";
550
+ diagramID: string;
551
+ nodeID: string;
552
+ nodeType: string;
553
+ diagramName?: string | undefined;
554
+ }>, z.ZodObject<{
555
+ type: z.ZodLiteral<"agent">;
556
+ nodeID: z.ZodString;
557
+ agentID: z.ZodString;
558
+ diagramID: z.ZodString;
559
+ agentName: z.ZodOptional<z.ZodString>;
560
+ diagramName: z.ZodOptional<z.ZodString>;
561
+ }, "strip", z.ZodTypeAny, {
562
+ type: "agent";
563
+ diagramID: string;
564
+ nodeID: string;
565
+ agentID: string;
566
+ diagramName?: string | undefined;
567
+ agentName?: string | undefined;
568
+ }, {
569
+ type: "agent";
570
+ diagramID: string;
571
+ nodeID: string;
572
+ agentID: string;
573
+ diagramName?: string | undefined;
574
+ agentName?: string | undefined;
575
+ }>, z.ZodObject<{
576
+ type: z.ZodLiteral<"prompt">;
577
+ nodeID: z.ZodString;
578
+ promptID: z.ZodString;
579
+ diagramID: z.ZodString;
580
+ diagramName: z.ZodOptional<z.ZodString>;
581
+ }, "strip", z.ZodTypeAny, {
582
+ type: "prompt";
583
+ diagramID: string;
584
+ nodeID: string;
585
+ promptID: string;
586
+ diagramName?: string | undefined;
587
+ }, {
588
+ type: "prompt";
589
+ diagramID: string;
590
+ nodeID: string;
591
+ promptID: string;
592
+ diagramName?: string | undefined;
593
+ }>, z.ZodObject<{
594
+ type: z.ZodLiteral<"api-tool">;
595
+ nodeID: z.ZodString;
596
+ diagramID: z.ZodString;
597
+ apiToolID: z.ZodString;
598
+ apiToolName: z.ZodOptional<z.ZodString>;
599
+ diagramName: z.ZodOptional<z.ZodString>;
600
+ }, "strip", z.ZodTypeAny, {
601
+ type: "api-tool";
602
+ diagramID: string;
603
+ nodeID: string;
604
+ apiToolID: string;
605
+ diagramName?: string | undefined;
606
+ apiToolName?: string | undefined;
607
+ }, {
608
+ type: "api-tool";
609
+ diagramID: string;
610
+ nodeID: string;
611
+ apiToolID: string;
612
+ diagramName?: string | undefined;
613
+ apiToolName?: string | undefined;
614
+ }>, z.ZodObject<{
615
+ type: z.ZodLiteral<"function">;
616
+ nodeID: z.ZodString;
617
+ diagramID: z.ZodString;
618
+ functionID: z.ZodString;
619
+ functionName: z.ZodOptional<z.ZodString>;
620
+ diagramName: z.ZodOptional<z.ZodString>;
621
+ }, "strip", z.ZodTypeAny, {
622
+ type: "function";
623
+ diagramID: string;
624
+ nodeID: string;
625
+ functionID: string;
626
+ diagramName?: string | undefined;
627
+ functionName?: string | undefined;
628
+ }, {
629
+ type: "function";
630
+ diagramID: string;
631
+ nodeID: string;
632
+ functionID: string;
633
+ diagramName?: string | undefined;
634
+ functionName?: string | undefined;
635
+ }>, z.ZodObject<{
636
+ type: z.ZodLiteral<"integration-tool">;
637
+ nodeID: z.ZodString;
638
+ diagramID: z.ZodString;
639
+ diagramName: z.ZodOptional<z.ZodString>;
640
+ integrationToolName: z.ZodString;
641
+ }, "strip", z.ZodTypeAny, {
642
+ type: "integration-tool";
643
+ diagramID: string;
644
+ nodeID: string;
645
+ integrationToolName: string;
646
+ diagramName?: string | undefined;
647
+ }, {
648
+ type: "integration-tool";
649
+ diagramID: string;
650
+ nodeID: string;
651
+ integrationToolName: string;
652
+ diagramName?: string | undefined;
653
+ }>, z.ZodObject<{
654
+ type: z.ZodLiteral<"mcp-integration-tool">;
655
+ nodeID: z.ZodString;
656
+ diagramID: z.ZodString;
657
+ mcpToolName: z.ZodString;
658
+ diagramName: z.ZodOptional<z.ZodString>;
659
+ }, "strip", z.ZodTypeAny, {
660
+ type: "mcp-integration-tool";
661
+ diagramID: string;
662
+ nodeID: string;
663
+ mcpToolName: string;
664
+ diagramName?: string | undefined;
665
+ }, {
666
+ type: "mcp-integration-tool";
667
+ diagramID: string;
668
+ nodeID: string;
669
+ mcpToolName: string;
670
+ diagramName?: string | undefined;
671
+ }>]>>;
536
672
  title: z.ZodString;
537
673
  buttons: z.ZodArray<z.ZodObject<{
538
674
  name: z.ZodString;
@@ -602,6 +738,52 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
602
738
  text: string;
603
739
  slate?: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[] | undefined;
604
740
  };
741
+ ref?: {
742
+ type: "node";
743
+ diagramID: string;
744
+ nodeID: string;
745
+ nodeType: string;
746
+ diagramName?: string | undefined;
747
+ } | {
748
+ type: "agent";
749
+ diagramID: string;
750
+ nodeID: string;
751
+ agentID: string;
752
+ diagramName?: string | undefined;
753
+ agentName?: string | undefined;
754
+ } | {
755
+ type: "api-tool";
756
+ diagramID: string;
757
+ nodeID: string;
758
+ apiToolID: string;
759
+ diagramName?: string | undefined;
760
+ apiToolName?: string | undefined;
761
+ } | {
762
+ type: "integration-tool";
763
+ diagramID: string;
764
+ nodeID: string;
765
+ integrationToolName: string;
766
+ diagramName?: string | undefined;
767
+ } | {
768
+ type: "mcp-integration-tool";
769
+ diagramID: string;
770
+ nodeID: string;
771
+ mcpToolName: string;
772
+ diagramName?: string | undefined;
773
+ } | {
774
+ type: "function";
775
+ diagramID: string;
776
+ nodeID: string;
777
+ functionID: string;
778
+ diagramName?: string | undefined;
779
+ functionName?: string | undefined;
780
+ } | {
781
+ type: "prompt";
782
+ diagramID: string;
783
+ nodeID: string;
784
+ promptID: string;
785
+ diagramName?: string | undefined;
786
+ } | undefined;
605
787
  }, {
606
788
  title: string;
607
789
  buttons: {
@@ -619,6 +801,52 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
619
801
  text: string;
620
802
  slate?: any[] | undefined;
621
803
  };
804
+ ref?: {
805
+ type: "node";
806
+ diagramID: string;
807
+ nodeID: string;
808
+ nodeType: string;
809
+ diagramName?: string | undefined;
810
+ } | {
811
+ type: "agent";
812
+ diagramID: string;
813
+ nodeID: string;
814
+ agentID: string;
815
+ diagramName?: string | undefined;
816
+ agentName?: string | undefined;
817
+ } | {
818
+ type: "api-tool";
819
+ diagramID: string;
820
+ nodeID: string;
821
+ apiToolID: string;
822
+ diagramName?: string | undefined;
823
+ apiToolName?: string | undefined;
824
+ } | {
825
+ type: "integration-tool";
826
+ diagramID: string;
827
+ nodeID: string;
828
+ integrationToolName: string;
829
+ diagramName?: string | undefined;
830
+ } | {
831
+ type: "mcp-integration-tool";
832
+ diagramID: string;
833
+ nodeID: string;
834
+ mcpToolName: string;
835
+ diagramName?: string | undefined;
836
+ } | {
837
+ type: "function";
838
+ diagramID: string;
839
+ nodeID: string;
840
+ functionID: string;
841
+ diagramName?: string | undefined;
842
+ functionName?: string | undefined;
843
+ } | {
844
+ type: "prompt";
845
+ diagramID: string;
846
+ nodeID: string;
847
+ promptID: string;
848
+ diagramName?: string | undefined;
849
+ } | undefined;
622
850
  }>;
623
851
  }, "strip", z.ZodTypeAny, {
624
852
  type: "cardV2";
@@ -639,6 +867,52 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
639
867
  text: string;
640
868
  slate?: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[] | undefined;
641
869
  };
870
+ ref?: {
871
+ type: "node";
872
+ diagramID: string;
873
+ nodeID: string;
874
+ nodeType: string;
875
+ diagramName?: string | undefined;
876
+ } | {
877
+ type: "agent";
878
+ diagramID: string;
879
+ nodeID: string;
880
+ agentID: string;
881
+ diagramName?: string | undefined;
882
+ agentName?: string | undefined;
883
+ } | {
884
+ type: "api-tool";
885
+ diagramID: string;
886
+ nodeID: string;
887
+ apiToolID: string;
888
+ diagramName?: string | undefined;
889
+ apiToolName?: string | undefined;
890
+ } | {
891
+ type: "integration-tool";
892
+ diagramID: string;
893
+ nodeID: string;
894
+ integrationToolName: string;
895
+ diagramName?: string | undefined;
896
+ } | {
897
+ type: "mcp-integration-tool";
898
+ diagramID: string;
899
+ nodeID: string;
900
+ mcpToolName: string;
901
+ diagramName?: string | undefined;
902
+ } | {
903
+ type: "function";
904
+ diagramID: string;
905
+ nodeID: string;
906
+ functionID: string;
907
+ diagramName?: string | undefined;
908
+ functionName?: string | undefined;
909
+ } | {
910
+ type: "prompt";
911
+ diagramID: string;
912
+ nodeID: string;
913
+ promptID: string;
914
+ diagramName?: string | undefined;
915
+ } | undefined;
642
916
  };
643
917
  time?: number | undefined;
644
918
  paths?: {
@@ -650,29 +924,75 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
650
924
  time?: number | undefined;
651
925
  metadata?: Record<string, unknown> | undefined;
652
926
  } | undefined;
653
- }[] | undefined;
654
- defaultPath?: number | undefined;
655
- turnID?: string | undefined;
656
- handleID?: string | undefined;
657
- }, {
658
- type: "cardV2";
659
- payload: {
660
- title: string;
661
- buttons: {
662
- name: string;
663
- request?: {
664
- type: string;
665
- payload?: any;
666
- diagramID?: string | undefined;
667
- time?: number | undefined;
668
- metadata?: Record<string, unknown> | undefined;
669
- } | undefined;
670
- }[];
671
- imageUrl: string | null;
672
- description: {
673
- text: string;
674
- slate?: any[] | undefined;
675
- };
927
+ }[] | undefined;
928
+ defaultPath?: number | undefined;
929
+ turnID?: string | undefined;
930
+ handleID?: string | undefined;
931
+ }, {
932
+ type: "cardV2";
933
+ payload: {
934
+ title: string;
935
+ buttons: {
936
+ name: string;
937
+ request?: {
938
+ type: string;
939
+ payload?: any;
940
+ diagramID?: string | undefined;
941
+ time?: number | undefined;
942
+ metadata?: Record<string, unknown> | undefined;
943
+ } | undefined;
944
+ }[];
945
+ imageUrl: string | null;
946
+ description: {
947
+ text: string;
948
+ slate?: any[] | undefined;
949
+ };
950
+ ref?: {
951
+ type: "node";
952
+ diagramID: string;
953
+ nodeID: string;
954
+ nodeType: string;
955
+ diagramName?: string | undefined;
956
+ } | {
957
+ type: "agent";
958
+ diagramID: string;
959
+ nodeID: string;
960
+ agentID: string;
961
+ diagramName?: string | undefined;
962
+ agentName?: string | undefined;
963
+ } | {
964
+ type: "api-tool";
965
+ diagramID: string;
966
+ nodeID: string;
967
+ apiToolID: string;
968
+ diagramName?: string | undefined;
969
+ apiToolName?: string | undefined;
970
+ } | {
971
+ type: "integration-tool";
972
+ diagramID: string;
973
+ nodeID: string;
974
+ integrationToolName: string;
975
+ diagramName?: string | undefined;
976
+ } | {
977
+ type: "mcp-integration-tool";
978
+ diagramID: string;
979
+ nodeID: string;
980
+ mcpToolName: string;
981
+ diagramName?: string | undefined;
982
+ } | {
983
+ type: "function";
984
+ diagramID: string;
985
+ nodeID: string;
986
+ functionID: string;
987
+ diagramName?: string | undefined;
988
+ functionName?: string | undefined;
989
+ } | {
990
+ type: "prompt";
991
+ diagramID: string;
992
+ nodeID: string;
993
+ promptID: string;
994
+ diagramName?: string | undefined;
995
+ } | undefined;
676
996
  };
677
997
  time?: number | undefined;
678
998
  paths?: {
@@ -736,7 +1056,279 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
736
1056
  } & {
737
1057
  type: z.ZodLiteral<"carousel">;
738
1058
  payload: z.ZodObject<{
1059
+ ref: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1060
+ type: z.ZodLiteral<"node">;
1061
+ nodeID: z.ZodString;
1062
+ nodeType: z.ZodString;
1063
+ diagramID: z.ZodString;
1064
+ diagramName: z.ZodOptional<z.ZodString>;
1065
+ }, "strip", z.ZodTypeAny, {
1066
+ type: "node";
1067
+ diagramID: string;
1068
+ nodeID: string;
1069
+ nodeType: string;
1070
+ diagramName?: string | undefined;
1071
+ }, {
1072
+ type: "node";
1073
+ diagramID: string;
1074
+ nodeID: string;
1075
+ nodeType: string;
1076
+ diagramName?: string | undefined;
1077
+ }>, z.ZodObject<{
1078
+ type: z.ZodLiteral<"agent">;
1079
+ nodeID: z.ZodString;
1080
+ agentID: z.ZodString;
1081
+ diagramID: z.ZodString;
1082
+ agentName: z.ZodOptional<z.ZodString>;
1083
+ diagramName: z.ZodOptional<z.ZodString>;
1084
+ }, "strip", z.ZodTypeAny, {
1085
+ type: "agent";
1086
+ diagramID: string;
1087
+ nodeID: string;
1088
+ agentID: string;
1089
+ diagramName?: string | undefined;
1090
+ agentName?: string | undefined;
1091
+ }, {
1092
+ type: "agent";
1093
+ diagramID: string;
1094
+ nodeID: string;
1095
+ agentID: string;
1096
+ diagramName?: string | undefined;
1097
+ agentName?: string | undefined;
1098
+ }>, z.ZodObject<{
1099
+ type: z.ZodLiteral<"prompt">;
1100
+ nodeID: z.ZodString;
1101
+ promptID: z.ZodString;
1102
+ diagramID: z.ZodString;
1103
+ diagramName: z.ZodOptional<z.ZodString>;
1104
+ }, "strip", z.ZodTypeAny, {
1105
+ type: "prompt";
1106
+ diagramID: string;
1107
+ nodeID: string;
1108
+ promptID: string;
1109
+ diagramName?: string | undefined;
1110
+ }, {
1111
+ type: "prompt";
1112
+ diagramID: string;
1113
+ nodeID: string;
1114
+ promptID: string;
1115
+ diagramName?: string | undefined;
1116
+ }>, z.ZodObject<{
1117
+ type: z.ZodLiteral<"api-tool">;
1118
+ nodeID: z.ZodString;
1119
+ diagramID: z.ZodString;
1120
+ apiToolID: z.ZodString;
1121
+ apiToolName: z.ZodOptional<z.ZodString>;
1122
+ diagramName: z.ZodOptional<z.ZodString>;
1123
+ }, "strip", z.ZodTypeAny, {
1124
+ type: "api-tool";
1125
+ diagramID: string;
1126
+ nodeID: string;
1127
+ apiToolID: string;
1128
+ diagramName?: string | undefined;
1129
+ apiToolName?: string | undefined;
1130
+ }, {
1131
+ type: "api-tool";
1132
+ diagramID: string;
1133
+ nodeID: string;
1134
+ apiToolID: string;
1135
+ diagramName?: string | undefined;
1136
+ apiToolName?: string | undefined;
1137
+ }>, z.ZodObject<{
1138
+ type: z.ZodLiteral<"function">;
1139
+ nodeID: z.ZodString;
1140
+ diagramID: z.ZodString;
1141
+ functionID: z.ZodString;
1142
+ functionName: z.ZodOptional<z.ZodString>;
1143
+ diagramName: z.ZodOptional<z.ZodString>;
1144
+ }, "strip", z.ZodTypeAny, {
1145
+ type: "function";
1146
+ diagramID: string;
1147
+ nodeID: string;
1148
+ functionID: string;
1149
+ diagramName?: string | undefined;
1150
+ functionName?: string | undefined;
1151
+ }, {
1152
+ type: "function";
1153
+ diagramID: string;
1154
+ nodeID: string;
1155
+ functionID: string;
1156
+ diagramName?: string | undefined;
1157
+ functionName?: string | undefined;
1158
+ }>, z.ZodObject<{
1159
+ type: z.ZodLiteral<"integration-tool">;
1160
+ nodeID: z.ZodString;
1161
+ diagramID: z.ZodString;
1162
+ diagramName: z.ZodOptional<z.ZodString>;
1163
+ integrationToolName: z.ZodString;
1164
+ }, "strip", z.ZodTypeAny, {
1165
+ type: "integration-tool";
1166
+ diagramID: string;
1167
+ nodeID: string;
1168
+ integrationToolName: string;
1169
+ diagramName?: string | undefined;
1170
+ }, {
1171
+ type: "integration-tool";
1172
+ diagramID: string;
1173
+ nodeID: string;
1174
+ integrationToolName: string;
1175
+ diagramName?: string | undefined;
1176
+ }>, z.ZodObject<{
1177
+ type: z.ZodLiteral<"mcp-integration-tool">;
1178
+ nodeID: z.ZodString;
1179
+ diagramID: z.ZodString;
1180
+ mcpToolName: z.ZodString;
1181
+ diagramName: z.ZodOptional<z.ZodString>;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ type: "mcp-integration-tool";
1184
+ diagramID: string;
1185
+ nodeID: string;
1186
+ mcpToolName: string;
1187
+ diagramName?: string | undefined;
1188
+ }, {
1189
+ type: "mcp-integration-tool";
1190
+ diagramID: string;
1191
+ nodeID: string;
1192
+ mcpToolName: string;
1193
+ diagramName?: string | undefined;
1194
+ }>]>>;
739
1195
  cards: z.ZodArray<z.ZodObject<{
1196
+ ref: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1197
+ type: z.ZodLiteral<"node">;
1198
+ nodeID: z.ZodString;
1199
+ nodeType: z.ZodString;
1200
+ diagramID: z.ZodString;
1201
+ diagramName: z.ZodOptional<z.ZodString>;
1202
+ }, "strip", z.ZodTypeAny, {
1203
+ type: "node";
1204
+ diagramID: string;
1205
+ nodeID: string;
1206
+ nodeType: string;
1207
+ diagramName?: string | undefined;
1208
+ }, {
1209
+ type: "node";
1210
+ diagramID: string;
1211
+ nodeID: string;
1212
+ nodeType: string;
1213
+ diagramName?: string | undefined;
1214
+ }>, z.ZodObject<{
1215
+ type: z.ZodLiteral<"agent">;
1216
+ nodeID: z.ZodString;
1217
+ agentID: z.ZodString;
1218
+ diagramID: z.ZodString;
1219
+ agentName: z.ZodOptional<z.ZodString>;
1220
+ diagramName: z.ZodOptional<z.ZodString>;
1221
+ }, "strip", z.ZodTypeAny, {
1222
+ type: "agent";
1223
+ diagramID: string;
1224
+ nodeID: string;
1225
+ agentID: string;
1226
+ diagramName?: string | undefined;
1227
+ agentName?: string | undefined;
1228
+ }, {
1229
+ type: "agent";
1230
+ diagramID: string;
1231
+ nodeID: string;
1232
+ agentID: string;
1233
+ diagramName?: string | undefined;
1234
+ agentName?: string | undefined;
1235
+ }>, z.ZodObject<{
1236
+ type: z.ZodLiteral<"prompt">;
1237
+ nodeID: z.ZodString;
1238
+ promptID: z.ZodString;
1239
+ diagramID: z.ZodString;
1240
+ diagramName: z.ZodOptional<z.ZodString>;
1241
+ }, "strip", z.ZodTypeAny, {
1242
+ type: "prompt";
1243
+ diagramID: string;
1244
+ nodeID: string;
1245
+ promptID: string;
1246
+ diagramName?: string | undefined;
1247
+ }, {
1248
+ type: "prompt";
1249
+ diagramID: string;
1250
+ nodeID: string;
1251
+ promptID: string;
1252
+ diagramName?: string | undefined;
1253
+ }>, z.ZodObject<{
1254
+ type: z.ZodLiteral<"api-tool">;
1255
+ nodeID: z.ZodString;
1256
+ diagramID: z.ZodString;
1257
+ apiToolID: z.ZodString;
1258
+ apiToolName: z.ZodOptional<z.ZodString>;
1259
+ diagramName: z.ZodOptional<z.ZodString>;
1260
+ }, "strip", z.ZodTypeAny, {
1261
+ type: "api-tool";
1262
+ diagramID: string;
1263
+ nodeID: string;
1264
+ apiToolID: string;
1265
+ diagramName?: string | undefined;
1266
+ apiToolName?: string | undefined;
1267
+ }, {
1268
+ type: "api-tool";
1269
+ diagramID: string;
1270
+ nodeID: string;
1271
+ apiToolID: string;
1272
+ diagramName?: string | undefined;
1273
+ apiToolName?: string | undefined;
1274
+ }>, z.ZodObject<{
1275
+ type: z.ZodLiteral<"function">;
1276
+ nodeID: z.ZodString;
1277
+ diagramID: z.ZodString;
1278
+ functionID: z.ZodString;
1279
+ functionName: z.ZodOptional<z.ZodString>;
1280
+ diagramName: z.ZodOptional<z.ZodString>;
1281
+ }, "strip", z.ZodTypeAny, {
1282
+ type: "function";
1283
+ diagramID: string;
1284
+ nodeID: string;
1285
+ functionID: string;
1286
+ diagramName?: string | undefined;
1287
+ functionName?: string | undefined;
1288
+ }, {
1289
+ type: "function";
1290
+ diagramID: string;
1291
+ nodeID: string;
1292
+ functionID: string;
1293
+ diagramName?: string | undefined;
1294
+ functionName?: string | undefined;
1295
+ }>, z.ZodObject<{
1296
+ type: z.ZodLiteral<"integration-tool">;
1297
+ nodeID: z.ZodString;
1298
+ diagramID: z.ZodString;
1299
+ diagramName: z.ZodOptional<z.ZodString>;
1300
+ integrationToolName: z.ZodString;
1301
+ }, "strip", z.ZodTypeAny, {
1302
+ type: "integration-tool";
1303
+ diagramID: string;
1304
+ nodeID: string;
1305
+ integrationToolName: string;
1306
+ diagramName?: string | undefined;
1307
+ }, {
1308
+ type: "integration-tool";
1309
+ diagramID: string;
1310
+ nodeID: string;
1311
+ integrationToolName: string;
1312
+ diagramName?: string | undefined;
1313
+ }>, z.ZodObject<{
1314
+ type: z.ZodLiteral<"mcp-integration-tool">;
1315
+ nodeID: z.ZodString;
1316
+ diagramID: z.ZodString;
1317
+ mcpToolName: z.ZodString;
1318
+ diagramName: z.ZodOptional<z.ZodString>;
1319
+ }, "strip", z.ZodTypeAny, {
1320
+ type: "mcp-integration-tool";
1321
+ diagramID: string;
1322
+ nodeID: string;
1323
+ mcpToolName: string;
1324
+ diagramName?: string | undefined;
1325
+ }, {
1326
+ type: "mcp-integration-tool";
1327
+ diagramID: string;
1328
+ nodeID: string;
1329
+ mcpToolName: string;
1330
+ diagramName?: string | undefined;
1331
+ }>]>>;
740
1332
  title: z.ZodString;
741
1333
  buttons: z.ZodArray<z.ZodObject<{
742
1334
  name: z.ZodString;
@@ -809,6 +1401,52 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
809
1401
  slate?: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[] | undefined;
810
1402
  };
811
1403
  id?: string | undefined;
1404
+ ref?: {
1405
+ type: "node";
1406
+ diagramID: string;
1407
+ nodeID: string;
1408
+ nodeType: string;
1409
+ diagramName?: string | undefined;
1410
+ } | {
1411
+ type: "agent";
1412
+ diagramID: string;
1413
+ nodeID: string;
1414
+ agentID: string;
1415
+ diagramName?: string | undefined;
1416
+ agentName?: string | undefined;
1417
+ } | {
1418
+ type: "api-tool";
1419
+ diagramID: string;
1420
+ nodeID: string;
1421
+ apiToolID: string;
1422
+ diagramName?: string | undefined;
1423
+ apiToolName?: string | undefined;
1424
+ } | {
1425
+ type: "integration-tool";
1426
+ diagramID: string;
1427
+ nodeID: string;
1428
+ integrationToolName: string;
1429
+ diagramName?: string | undefined;
1430
+ } | {
1431
+ type: "mcp-integration-tool";
1432
+ diagramID: string;
1433
+ nodeID: string;
1434
+ mcpToolName: string;
1435
+ diagramName?: string | undefined;
1436
+ } | {
1437
+ type: "function";
1438
+ diagramID: string;
1439
+ nodeID: string;
1440
+ functionID: string;
1441
+ diagramName?: string | undefined;
1442
+ functionName?: string | undefined;
1443
+ } | {
1444
+ type: "prompt";
1445
+ diagramID: string;
1446
+ nodeID: string;
1447
+ promptID: string;
1448
+ diagramName?: string | undefined;
1449
+ } | undefined;
812
1450
  }, {
813
1451
  title: string;
814
1452
  buttons: {
@@ -827,6 +1465,52 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
827
1465
  slate?: any[] | undefined;
828
1466
  };
829
1467
  id?: string | undefined;
1468
+ ref?: {
1469
+ type: "node";
1470
+ diagramID: string;
1471
+ nodeID: string;
1472
+ nodeType: string;
1473
+ diagramName?: string | undefined;
1474
+ } | {
1475
+ type: "agent";
1476
+ diagramID: string;
1477
+ nodeID: string;
1478
+ agentID: string;
1479
+ diagramName?: string | undefined;
1480
+ agentName?: string | undefined;
1481
+ } | {
1482
+ type: "api-tool";
1483
+ diagramID: string;
1484
+ nodeID: string;
1485
+ apiToolID: string;
1486
+ diagramName?: string | undefined;
1487
+ apiToolName?: string | undefined;
1488
+ } | {
1489
+ type: "integration-tool";
1490
+ diagramID: string;
1491
+ nodeID: string;
1492
+ integrationToolName: string;
1493
+ diagramName?: string | undefined;
1494
+ } | {
1495
+ type: "mcp-integration-tool";
1496
+ diagramID: string;
1497
+ nodeID: string;
1498
+ mcpToolName: string;
1499
+ diagramName?: string | undefined;
1500
+ } | {
1501
+ type: "function";
1502
+ diagramID: string;
1503
+ nodeID: string;
1504
+ functionID: string;
1505
+ diagramName?: string | undefined;
1506
+ functionName?: string | undefined;
1507
+ } | {
1508
+ type: "prompt";
1509
+ diagramID: string;
1510
+ nodeID: string;
1511
+ promptID: string;
1512
+ diagramName?: string | undefined;
1513
+ } | undefined;
830
1514
  }>, "many">;
831
1515
  layout: z.ZodNativeEnum<{
832
1516
  readonly LIST: "List";
@@ -851,8 +1535,100 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
851
1535
  slate?: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[] | undefined;
852
1536
  };
853
1537
  id?: string | undefined;
1538
+ ref?: {
1539
+ type: "node";
1540
+ diagramID: string;
1541
+ nodeID: string;
1542
+ nodeType: string;
1543
+ diagramName?: string | undefined;
1544
+ } | {
1545
+ type: "agent";
1546
+ diagramID: string;
1547
+ nodeID: string;
1548
+ agentID: string;
1549
+ diagramName?: string | undefined;
1550
+ agentName?: string | undefined;
1551
+ } | {
1552
+ type: "api-tool";
1553
+ diagramID: string;
1554
+ nodeID: string;
1555
+ apiToolID: string;
1556
+ diagramName?: string | undefined;
1557
+ apiToolName?: string | undefined;
1558
+ } | {
1559
+ type: "integration-tool";
1560
+ diagramID: string;
1561
+ nodeID: string;
1562
+ integrationToolName: string;
1563
+ diagramName?: string | undefined;
1564
+ } | {
1565
+ type: "mcp-integration-tool";
1566
+ diagramID: string;
1567
+ nodeID: string;
1568
+ mcpToolName: string;
1569
+ diagramName?: string | undefined;
1570
+ } | {
1571
+ type: "function";
1572
+ diagramID: string;
1573
+ nodeID: string;
1574
+ functionID: string;
1575
+ diagramName?: string | undefined;
1576
+ functionName?: string | undefined;
1577
+ } | {
1578
+ type: "prompt";
1579
+ diagramID: string;
1580
+ nodeID: string;
1581
+ promptID: string;
1582
+ diagramName?: string | undefined;
1583
+ } | undefined;
854
1584
  }[];
855
1585
  layout: "List" | "Carousel";
1586
+ ref?: {
1587
+ type: "node";
1588
+ diagramID: string;
1589
+ nodeID: string;
1590
+ nodeType: string;
1591
+ diagramName?: string | undefined;
1592
+ } | {
1593
+ type: "agent";
1594
+ diagramID: string;
1595
+ nodeID: string;
1596
+ agentID: string;
1597
+ diagramName?: string | undefined;
1598
+ agentName?: string | undefined;
1599
+ } | {
1600
+ type: "api-tool";
1601
+ diagramID: string;
1602
+ nodeID: string;
1603
+ apiToolID: string;
1604
+ diagramName?: string | undefined;
1605
+ apiToolName?: string | undefined;
1606
+ } | {
1607
+ type: "integration-tool";
1608
+ diagramID: string;
1609
+ nodeID: string;
1610
+ integrationToolName: string;
1611
+ diagramName?: string | undefined;
1612
+ } | {
1613
+ type: "mcp-integration-tool";
1614
+ diagramID: string;
1615
+ nodeID: string;
1616
+ mcpToolName: string;
1617
+ diagramName?: string | undefined;
1618
+ } | {
1619
+ type: "function";
1620
+ diagramID: string;
1621
+ nodeID: string;
1622
+ functionID: string;
1623
+ diagramName?: string | undefined;
1624
+ functionName?: string | undefined;
1625
+ } | {
1626
+ type: "prompt";
1627
+ diagramID: string;
1628
+ nodeID: string;
1629
+ promptID: string;
1630
+ diagramName?: string | undefined;
1631
+ } | undefined;
856
1632
  }, {
857
1633
  cards: {
858
1634
  title: string;
@@ -872,8 +1648,100 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
872
1648
  slate?: any[] | undefined;
873
1649
  };
874
1650
  id?: string | undefined;
1651
+ ref?: {
1652
+ type: "node";
1653
+ diagramID: string;
1654
+ nodeID: string;
1655
+ nodeType: string;
1656
+ diagramName?: string | undefined;
1657
+ } | {
1658
+ type: "agent";
1659
+ diagramID: string;
1660
+ nodeID: string;
1661
+ agentID: string;
1662
+ diagramName?: string | undefined;
1663
+ agentName?: string | undefined;
1664
+ } | {
1665
+ type: "api-tool";
1666
+ diagramID: string;
1667
+ nodeID: string;
1668
+ apiToolID: string;
1669
+ diagramName?: string | undefined;
1670
+ apiToolName?: string | undefined;
1671
+ } | {
1672
+ type: "integration-tool";
1673
+ diagramID: string;
1674
+ nodeID: string;
1675
+ integrationToolName: string;
1676
+ diagramName?: string | undefined;
1677
+ } | {
1678
+ type: "mcp-integration-tool";
1679
+ diagramID: string;
1680
+ nodeID: string;
1681
+ mcpToolName: string;
1682
+ diagramName?: string | undefined;
1683
+ } | {
1684
+ type: "function";
1685
+ diagramID: string;
1686
+ nodeID: string;
1687
+ functionID: string;
1688
+ diagramName?: string | undefined;
1689
+ functionName?: string | undefined;
1690
+ } | {
1691
+ type: "prompt";
1692
+ diagramID: string;
1693
+ nodeID: string;
1694
+ promptID: string;
1695
+ diagramName?: string | undefined;
1696
+ } | undefined;
875
1697
  }[];
876
1698
  layout: "List" | "Carousel";
1699
+ ref?: {
1700
+ type: "node";
1701
+ diagramID: string;
1702
+ nodeID: string;
1703
+ nodeType: string;
1704
+ diagramName?: string | undefined;
1705
+ } | {
1706
+ type: "agent";
1707
+ diagramID: string;
1708
+ nodeID: string;
1709
+ agentID: string;
1710
+ diagramName?: string | undefined;
1711
+ agentName?: string | undefined;
1712
+ } | {
1713
+ type: "api-tool";
1714
+ diagramID: string;
1715
+ nodeID: string;
1716
+ apiToolID: string;
1717
+ diagramName?: string | undefined;
1718
+ apiToolName?: string | undefined;
1719
+ } | {
1720
+ type: "integration-tool";
1721
+ diagramID: string;
1722
+ nodeID: string;
1723
+ integrationToolName: string;
1724
+ diagramName?: string | undefined;
1725
+ } | {
1726
+ type: "mcp-integration-tool";
1727
+ diagramID: string;
1728
+ nodeID: string;
1729
+ mcpToolName: string;
1730
+ diagramName?: string | undefined;
1731
+ } | {
1732
+ type: "function";
1733
+ diagramID: string;
1734
+ nodeID: string;
1735
+ functionID: string;
1736
+ diagramName?: string | undefined;
1737
+ functionName?: string | undefined;
1738
+ } | {
1739
+ type: "prompt";
1740
+ diagramID: string;
1741
+ nodeID: string;
1742
+ promptID: string;
1743
+ diagramName?: string | undefined;
1744
+ } | undefined;
877
1745
  }>;
878
1746
  }, "strip", z.ZodTypeAny, {
879
1747
  type: "carousel";
@@ -896,8 +1764,100 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
896
1764
  slate?: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[] | undefined;
897
1765
  };
898
1766
  id?: string | undefined;
1767
+ ref?: {
1768
+ type: "node";
1769
+ diagramID: string;
1770
+ nodeID: string;
1771
+ nodeType: string;
1772
+ diagramName?: string | undefined;
1773
+ } | {
1774
+ type: "agent";
1775
+ diagramID: string;
1776
+ nodeID: string;
1777
+ agentID: string;
1778
+ diagramName?: string | undefined;
1779
+ agentName?: string | undefined;
1780
+ } | {
1781
+ type: "api-tool";
1782
+ diagramID: string;
1783
+ nodeID: string;
1784
+ apiToolID: string;
1785
+ diagramName?: string | undefined;
1786
+ apiToolName?: string | undefined;
1787
+ } | {
1788
+ type: "integration-tool";
1789
+ diagramID: string;
1790
+ nodeID: string;
1791
+ integrationToolName: string;
1792
+ diagramName?: string | undefined;
1793
+ } | {
1794
+ type: "mcp-integration-tool";
1795
+ diagramID: string;
1796
+ nodeID: string;
1797
+ mcpToolName: string;
1798
+ diagramName?: string | undefined;
1799
+ } | {
1800
+ type: "function";
1801
+ diagramID: string;
1802
+ nodeID: string;
1803
+ functionID: string;
1804
+ diagramName?: string | undefined;
1805
+ functionName?: string | undefined;
1806
+ } | {
1807
+ type: "prompt";
1808
+ diagramID: string;
1809
+ nodeID: string;
1810
+ promptID: string;
1811
+ diagramName?: string | undefined;
1812
+ } | undefined;
899
1813
  }[];
900
1814
  layout: "List" | "Carousel";
1815
+ ref?: {
1816
+ type: "node";
1817
+ diagramID: string;
1818
+ nodeID: string;
1819
+ nodeType: string;
1820
+ diagramName?: string | undefined;
1821
+ } | {
1822
+ type: "agent";
1823
+ diagramID: string;
1824
+ nodeID: string;
1825
+ agentID: string;
1826
+ diagramName?: string | undefined;
1827
+ agentName?: string | undefined;
1828
+ } | {
1829
+ type: "api-tool";
1830
+ diagramID: string;
1831
+ nodeID: string;
1832
+ apiToolID: string;
1833
+ diagramName?: string | undefined;
1834
+ apiToolName?: string | undefined;
1835
+ } | {
1836
+ type: "integration-tool";
1837
+ diagramID: string;
1838
+ nodeID: string;
1839
+ integrationToolName: string;
1840
+ diagramName?: string | undefined;
1841
+ } | {
1842
+ type: "mcp-integration-tool";
1843
+ diagramID: string;
1844
+ nodeID: string;
1845
+ mcpToolName: string;
1846
+ diagramName?: string | undefined;
1847
+ } | {
1848
+ type: "function";
1849
+ diagramID: string;
1850
+ nodeID: string;
1851
+ functionID: string;
1852
+ diagramName?: string | undefined;
1853
+ functionName?: string | undefined;
1854
+ } | {
1855
+ type: "prompt";
1856
+ diagramID: string;
1857
+ nodeID: string;
1858
+ promptID: string;
1859
+ diagramName?: string | undefined;
1860
+ } | undefined;
901
1861
  };
902
1862
  time?: number | undefined;
903
1863
  paths?: {
@@ -934,8 +1894,100 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
934
1894
  slate?: any[] | undefined;
935
1895
  };
936
1896
  id?: string | undefined;
1897
+ ref?: {
1898
+ type: "node";
1899
+ diagramID: string;
1900
+ nodeID: string;
1901
+ nodeType: string;
1902
+ diagramName?: string | undefined;
1903
+ } | {
1904
+ type: "agent";
1905
+ diagramID: string;
1906
+ nodeID: string;
1907
+ agentID: string;
1908
+ diagramName?: string | undefined;
1909
+ agentName?: string | undefined;
1910
+ } | {
1911
+ type: "api-tool";
1912
+ diagramID: string;
1913
+ nodeID: string;
1914
+ apiToolID: string;
1915
+ diagramName?: string | undefined;
1916
+ apiToolName?: string | undefined;
1917
+ } | {
1918
+ type: "integration-tool";
1919
+ diagramID: string;
1920
+ nodeID: string;
1921
+ integrationToolName: string;
1922
+ diagramName?: string | undefined;
1923
+ } | {
1924
+ type: "mcp-integration-tool";
1925
+ diagramID: string;
1926
+ nodeID: string;
1927
+ mcpToolName: string;
1928
+ diagramName?: string | undefined;
1929
+ } | {
1930
+ type: "function";
1931
+ diagramID: string;
1932
+ nodeID: string;
1933
+ functionID: string;
1934
+ diagramName?: string | undefined;
1935
+ functionName?: string | undefined;
1936
+ } | {
1937
+ type: "prompt";
1938
+ diagramID: string;
1939
+ nodeID: string;
1940
+ promptID: string;
1941
+ diagramName?: string | undefined;
1942
+ } | undefined;
937
1943
  }[];
938
1944
  layout: "List" | "Carousel";
1945
+ ref?: {
1946
+ type: "node";
1947
+ diagramID: string;
1948
+ nodeID: string;
1949
+ nodeType: string;
1950
+ diagramName?: string | undefined;
1951
+ } | {
1952
+ type: "agent";
1953
+ diagramID: string;
1954
+ nodeID: string;
1955
+ agentID: string;
1956
+ diagramName?: string | undefined;
1957
+ agentName?: string | undefined;
1958
+ } | {
1959
+ type: "api-tool";
1960
+ diagramID: string;
1961
+ nodeID: string;
1962
+ apiToolID: string;
1963
+ diagramName?: string | undefined;
1964
+ apiToolName?: string | undefined;
1965
+ } | {
1966
+ type: "integration-tool";
1967
+ diagramID: string;
1968
+ nodeID: string;
1969
+ integrationToolName: string;
1970
+ diagramName?: string | undefined;
1971
+ } | {
1972
+ type: "mcp-integration-tool";
1973
+ diagramID: string;
1974
+ nodeID: string;
1975
+ mcpToolName: string;
1976
+ diagramName?: string | undefined;
1977
+ } | {
1978
+ type: "function";
1979
+ diagramID: string;
1980
+ nodeID: string;
1981
+ functionID: string;
1982
+ diagramName?: string | undefined;
1983
+ functionName?: string | undefined;
1984
+ } | {
1985
+ type: "prompt";
1986
+ diagramID: string;
1987
+ nodeID: string;
1988
+ promptID: string;
1989
+ diagramName?: string | undefined;
1990
+ } | undefined;
939
1991
  };
940
1992
  time?: number | undefined;
941
1993
  paths?: {
@@ -1058,44 +2110,180 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1058
2110
  time: z.ZodOptional<z.ZodNumber>;
1059
2111
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1060
2112
  }, "strip", z.ZodTypeAny, {
1061
- type: string;
1062
- payload?: any;
1063
- diagramID?: string | undefined;
1064
- time?: number | undefined;
1065
- metadata?: Record<string, unknown> | undefined;
2113
+ type: string;
2114
+ payload?: any;
2115
+ diagramID?: string | undefined;
2116
+ time?: number | undefined;
2117
+ metadata?: Record<string, unknown> | undefined;
2118
+ }, {
2119
+ type: string;
2120
+ payload?: any;
2121
+ diagramID?: string | undefined;
2122
+ time?: number | undefined;
2123
+ metadata?: Record<string, unknown> | undefined;
2124
+ }>>;
2125
+ }, "strip", z.ZodTypeAny, {
2126
+ label?: string | undefined;
2127
+ event?: {
2128
+ type: string;
2129
+ payload?: any;
2130
+ diagramID?: string | undefined;
2131
+ time?: number | undefined;
2132
+ metadata?: Record<string, unknown> | undefined;
2133
+ } | undefined;
2134
+ }, {
2135
+ label?: string | undefined;
2136
+ event?: {
2137
+ type: string;
2138
+ payload?: any;
2139
+ diagramID?: string | undefined;
2140
+ time?: number | undefined;
2141
+ metadata?: Record<string, unknown> | undefined;
2142
+ } | undefined;
2143
+ }>, "many">>;
2144
+ defaultPath: z.ZodOptional<z.ZodNumber>;
2145
+ time: z.ZodOptional<z.ZodNumber>;
2146
+ turnID: z.ZodOptional<z.ZodString>;
2147
+ handleID: z.ZodOptional<z.ZodString>;
2148
+ } & {
2149
+ type: z.ZodLiteral<"choice">;
2150
+ payload: z.ZodObject<{
2151
+ ref: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2152
+ type: z.ZodLiteral<"node">;
2153
+ nodeID: z.ZodString;
2154
+ nodeType: z.ZodString;
2155
+ diagramID: z.ZodString;
2156
+ diagramName: z.ZodOptional<z.ZodString>;
2157
+ }, "strip", z.ZodTypeAny, {
2158
+ type: "node";
2159
+ diagramID: string;
2160
+ nodeID: string;
2161
+ nodeType: string;
2162
+ diagramName?: string | undefined;
2163
+ }, {
2164
+ type: "node";
2165
+ diagramID: string;
2166
+ nodeID: string;
2167
+ nodeType: string;
2168
+ diagramName?: string | undefined;
2169
+ }>, z.ZodObject<{
2170
+ type: z.ZodLiteral<"agent">;
2171
+ nodeID: z.ZodString;
2172
+ agentID: z.ZodString;
2173
+ diagramID: z.ZodString;
2174
+ agentName: z.ZodOptional<z.ZodString>;
2175
+ diagramName: z.ZodOptional<z.ZodString>;
2176
+ }, "strip", z.ZodTypeAny, {
2177
+ type: "agent";
2178
+ diagramID: string;
2179
+ nodeID: string;
2180
+ agentID: string;
2181
+ diagramName?: string | undefined;
2182
+ agentName?: string | undefined;
2183
+ }, {
2184
+ type: "agent";
2185
+ diagramID: string;
2186
+ nodeID: string;
2187
+ agentID: string;
2188
+ diagramName?: string | undefined;
2189
+ agentName?: string | undefined;
2190
+ }>, z.ZodObject<{
2191
+ type: z.ZodLiteral<"prompt">;
2192
+ nodeID: z.ZodString;
2193
+ promptID: z.ZodString;
2194
+ diagramID: z.ZodString;
2195
+ diagramName: z.ZodOptional<z.ZodString>;
2196
+ }, "strip", z.ZodTypeAny, {
2197
+ type: "prompt";
2198
+ diagramID: string;
2199
+ nodeID: string;
2200
+ promptID: string;
2201
+ diagramName?: string | undefined;
2202
+ }, {
2203
+ type: "prompt";
2204
+ diagramID: string;
2205
+ nodeID: string;
2206
+ promptID: string;
2207
+ diagramName?: string | undefined;
2208
+ }>, z.ZodObject<{
2209
+ type: z.ZodLiteral<"api-tool">;
2210
+ nodeID: z.ZodString;
2211
+ diagramID: z.ZodString;
2212
+ apiToolID: z.ZodString;
2213
+ apiToolName: z.ZodOptional<z.ZodString>;
2214
+ diagramName: z.ZodOptional<z.ZodString>;
2215
+ }, "strip", z.ZodTypeAny, {
2216
+ type: "api-tool";
2217
+ diagramID: string;
2218
+ nodeID: string;
2219
+ apiToolID: string;
2220
+ diagramName?: string | undefined;
2221
+ apiToolName?: string | undefined;
2222
+ }, {
2223
+ type: "api-tool";
2224
+ diagramID: string;
2225
+ nodeID: string;
2226
+ apiToolID: string;
2227
+ diagramName?: string | undefined;
2228
+ apiToolName?: string | undefined;
2229
+ }>, z.ZodObject<{
2230
+ type: z.ZodLiteral<"function">;
2231
+ nodeID: z.ZodString;
2232
+ diagramID: z.ZodString;
2233
+ functionID: z.ZodString;
2234
+ functionName: z.ZodOptional<z.ZodString>;
2235
+ diagramName: z.ZodOptional<z.ZodString>;
2236
+ }, "strip", z.ZodTypeAny, {
2237
+ type: "function";
2238
+ diagramID: string;
2239
+ nodeID: string;
2240
+ functionID: string;
2241
+ diagramName?: string | undefined;
2242
+ functionName?: string | undefined;
2243
+ }, {
2244
+ type: "function";
2245
+ diagramID: string;
2246
+ nodeID: string;
2247
+ functionID: string;
2248
+ diagramName?: string | undefined;
2249
+ functionName?: string | undefined;
2250
+ }>, z.ZodObject<{
2251
+ type: z.ZodLiteral<"integration-tool">;
2252
+ nodeID: z.ZodString;
2253
+ diagramID: z.ZodString;
2254
+ diagramName: z.ZodOptional<z.ZodString>;
2255
+ integrationToolName: z.ZodString;
2256
+ }, "strip", z.ZodTypeAny, {
2257
+ type: "integration-tool";
2258
+ diagramID: string;
2259
+ nodeID: string;
2260
+ integrationToolName: string;
2261
+ diagramName?: string | undefined;
1066
2262
  }, {
1067
- type: string;
1068
- payload?: any;
1069
- diagramID?: string | undefined;
1070
- time?: number | undefined;
1071
- metadata?: Record<string, unknown> | undefined;
1072
- }>>;
1073
- }, "strip", z.ZodTypeAny, {
1074
- label?: string | undefined;
1075
- event?: {
1076
- type: string;
1077
- payload?: any;
1078
- diagramID?: string | undefined;
1079
- time?: number | undefined;
1080
- metadata?: Record<string, unknown> | undefined;
1081
- } | undefined;
1082
- }, {
1083
- label?: string | undefined;
1084
- event?: {
1085
- type: string;
1086
- payload?: any;
1087
- diagramID?: string | undefined;
1088
- time?: number | undefined;
1089
- metadata?: Record<string, unknown> | undefined;
1090
- } | undefined;
1091
- }>, "many">>;
1092
- defaultPath: z.ZodOptional<z.ZodNumber>;
1093
- time: z.ZodOptional<z.ZodNumber>;
1094
- turnID: z.ZodOptional<z.ZodString>;
1095
- handleID: z.ZodOptional<z.ZodString>;
1096
- } & {
1097
- type: z.ZodLiteral<"choice">;
1098
- payload: z.ZodObject<{
2263
+ type: "integration-tool";
2264
+ diagramID: string;
2265
+ nodeID: string;
2266
+ integrationToolName: string;
2267
+ diagramName?: string | undefined;
2268
+ }>, z.ZodObject<{
2269
+ type: z.ZodLiteral<"mcp-integration-tool">;
2270
+ nodeID: z.ZodString;
2271
+ diagramID: z.ZodString;
2272
+ mcpToolName: z.ZodString;
2273
+ diagramName: z.ZodOptional<z.ZodString>;
2274
+ }, "strip", z.ZodTypeAny, {
2275
+ type: "mcp-integration-tool";
2276
+ diagramID: string;
2277
+ nodeID: string;
2278
+ mcpToolName: string;
2279
+ diagramName?: string | undefined;
2280
+ }, {
2281
+ type: "mcp-integration-tool";
2282
+ diagramID: string;
2283
+ nodeID: string;
2284
+ mcpToolName: string;
2285
+ diagramName?: string | undefined;
2286
+ }>]>>;
1099
2287
  buttons: z.ZodArray<z.ZodObject<{
1100
2288
  name: z.ZodString;
1101
2289
  request: z.ZodOptional<z.ZodObject<{
@@ -1147,6 +2335,52 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1147
2335
  metadata?: Record<string, unknown> | undefined;
1148
2336
  } | undefined;
1149
2337
  }[];
2338
+ ref?: {
2339
+ type: "node";
2340
+ diagramID: string;
2341
+ nodeID: string;
2342
+ nodeType: string;
2343
+ diagramName?: string | undefined;
2344
+ } | {
2345
+ type: "agent";
2346
+ diagramID: string;
2347
+ nodeID: string;
2348
+ agentID: string;
2349
+ diagramName?: string | undefined;
2350
+ agentName?: string | undefined;
2351
+ } | {
2352
+ type: "api-tool";
2353
+ diagramID: string;
2354
+ nodeID: string;
2355
+ apiToolID: string;
2356
+ diagramName?: string | undefined;
2357
+ apiToolName?: string | undefined;
2358
+ } | {
2359
+ type: "integration-tool";
2360
+ diagramID: string;
2361
+ nodeID: string;
2362
+ integrationToolName: string;
2363
+ diagramName?: string | undefined;
2364
+ } | {
2365
+ type: "mcp-integration-tool";
2366
+ diagramID: string;
2367
+ nodeID: string;
2368
+ mcpToolName: string;
2369
+ diagramName?: string | undefined;
2370
+ } | {
2371
+ type: "function";
2372
+ diagramID: string;
2373
+ nodeID: string;
2374
+ functionID: string;
2375
+ diagramName?: string | undefined;
2376
+ functionName?: string | undefined;
2377
+ } | {
2378
+ type: "prompt";
2379
+ diagramID: string;
2380
+ nodeID: string;
2381
+ promptID: string;
2382
+ diagramName?: string | undefined;
2383
+ } | undefined;
1150
2384
  }, {
1151
2385
  buttons: {
1152
2386
  name: string;
@@ -1158,6 +2392,52 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1158
2392
  metadata?: Record<string, unknown> | undefined;
1159
2393
  } | undefined;
1160
2394
  }[];
2395
+ ref?: {
2396
+ type: "node";
2397
+ diagramID: string;
2398
+ nodeID: string;
2399
+ nodeType: string;
2400
+ diagramName?: string | undefined;
2401
+ } | {
2402
+ type: "agent";
2403
+ diagramID: string;
2404
+ nodeID: string;
2405
+ agentID: string;
2406
+ diagramName?: string | undefined;
2407
+ agentName?: string | undefined;
2408
+ } | {
2409
+ type: "api-tool";
2410
+ diagramID: string;
2411
+ nodeID: string;
2412
+ apiToolID: string;
2413
+ diagramName?: string | undefined;
2414
+ apiToolName?: string | undefined;
2415
+ } | {
2416
+ type: "integration-tool";
2417
+ diagramID: string;
2418
+ nodeID: string;
2419
+ integrationToolName: string;
2420
+ diagramName?: string | undefined;
2421
+ } | {
2422
+ type: "mcp-integration-tool";
2423
+ diagramID: string;
2424
+ nodeID: string;
2425
+ mcpToolName: string;
2426
+ diagramName?: string | undefined;
2427
+ } | {
2428
+ type: "function";
2429
+ diagramID: string;
2430
+ nodeID: string;
2431
+ functionID: string;
2432
+ diagramName?: string | undefined;
2433
+ functionName?: string | undefined;
2434
+ } | {
2435
+ type: "prompt";
2436
+ diagramID: string;
2437
+ nodeID: string;
2438
+ promptID: string;
2439
+ diagramName?: string | undefined;
2440
+ } | undefined;
1161
2441
  }>;
1162
2442
  }, "strip", z.ZodTypeAny, {
1163
2443
  type: "choice";
@@ -1172,6 +2452,52 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1172
2452
  metadata?: Record<string, unknown> | undefined;
1173
2453
  } | undefined;
1174
2454
  }[];
2455
+ ref?: {
2456
+ type: "node";
2457
+ diagramID: string;
2458
+ nodeID: string;
2459
+ nodeType: string;
2460
+ diagramName?: string | undefined;
2461
+ } | {
2462
+ type: "agent";
2463
+ diagramID: string;
2464
+ nodeID: string;
2465
+ agentID: string;
2466
+ diagramName?: string | undefined;
2467
+ agentName?: string | undefined;
2468
+ } | {
2469
+ type: "api-tool";
2470
+ diagramID: string;
2471
+ nodeID: string;
2472
+ apiToolID: string;
2473
+ diagramName?: string | undefined;
2474
+ apiToolName?: string | undefined;
2475
+ } | {
2476
+ type: "integration-tool";
2477
+ diagramID: string;
2478
+ nodeID: string;
2479
+ integrationToolName: string;
2480
+ diagramName?: string | undefined;
2481
+ } | {
2482
+ type: "mcp-integration-tool";
2483
+ diagramID: string;
2484
+ nodeID: string;
2485
+ mcpToolName: string;
2486
+ diagramName?: string | undefined;
2487
+ } | {
2488
+ type: "function";
2489
+ diagramID: string;
2490
+ nodeID: string;
2491
+ functionID: string;
2492
+ diagramName?: string | undefined;
2493
+ functionName?: string | undefined;
2494
+ } | {
2495
+ type: "prompt";
2496
+ diagramID: string;
2497
+ nodeID: string;
2498
+ promptID: string;
2499
+ diagramName?: string | undefined;
2500
+ } | undefined;
1175
2501
  };
1176
2502
  time?: number | undefined;
1177
2503
  paths?: {
@@ -1200,6 +2526,52 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1200
2526
  metadata?: Record<string, unknown> | undefined;
1201
2527
  } | undefined;
1202
2528
  }[];
2529
+ ref?: {
2530
+ type: "node";
2531
+ diagramID: string;
2532
+ nodeID: string;
2533
+ nodeType: string;
2534
+ diagramName?: string | undefined;
2535
+ } | {
2536
+ type: "agent";
2537
+ diagramID: string;
2538
+ nodeID: string;
2539
+ agentID: string;
2540
+ diagramName?: string | undefined;
2541
+ agentName?: string | undefined;
2542
+ } | {
2543
+ type: "api-tool";
2544
+ diagramID: string;
2545
+ nodeID: string;
2546
+ apiToolID: string;
2547
+ diagramName?: string | undefined;
2548
+ apiToolName?: string | undefined;
2549
+ } | {
2550
+ type: "integration-tool";
2551
+ diagramID: string;
2552
+ nodeID: string;
2553
+ integrationToolName: string;
2554
+ diagramName?: string | undefined;
2555
+ } | {
2556
+ type: "mcp-integration-tool";
2557
+ diagramID: string;
2558
+ nodeID: string;
2559
+ mcpToolName: string;
2560
+ diagramName?: string | undefined;
2561
+ } | {
2562
+ type: "function";
2563
+ diagramID: string;
2564
+ nodeID: string;
2565
+ functionID: string;
2566
+ diagramName?: string | undefined;
2567
+ functionName?: string | undefined;
2568
+ } | {
2569
+ type: "prompt";
2570
+ diagramID: string;
2571
+ nodeID: string;
2572
+ promptID: string;
2573
+ diagramName?: string | undefined;
2574
+ } | undefined;
1203
2575
  };
1204
2576
  time?: number | undefined;
1205
2577
  paths?: {