@voiceflow/dtos-interact 1.17.1 → 1.17.2-2c0101ccec.712
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/build/cjs/trace/any.dto.d.ts +196 -0
- package/build/cjs/trace/any.dto.d.ts.map +1 -1
- package/build/cjs/trace/completion.dto.d.ts +2 -1
- package/build/cjs/trace/completion.dto.d.ts.map +1 -1
- package/build/cjs/trace/completion.dto.js.map +1 -1
- package/build/cjs/trace/debug.dto.d.ts +395 -0
- package/build/cjs/trace/debug.dto.d.ts.map +1 -1
- package/build/cjs/trace/debug.dto.js +56 -1
- package/build/cjs/trace/debug.dto.js.map +1 -1
- package/build/esm/trace/any.dto.d.ts +196 -0
- package/build/esm/trace/any.dto.d.ts.map +1 -1
- package/build/esm/trace/completion.dto.d.ts +2 -1
- package/build/esm/trace/completion.dto.d.ts.map +1 -1
- package/build/esm/trace/completion.dto.js.map +1 -1
- package/build/esm/trace/debug.dto.d.ts +395 -0
- package/build/esm/trace/debug.dto.d.ts.map +1 -1
- package/build/esm/trace/debug.dto.js +55 -0
- package/build/esm/trace/debug.dto.js.map +1 -1
- package/package.json +2 -2
|
@@ -1108,20 +1108,188 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1108
1108
|
time: z.ZodOptional<z.ZodNumber>;
|
|
1109
1109
|
type: z.ZodLiteral<"debug">;
|
|
1110
1110
|
payload: z.ZodObject<{
|
|
1111
|
+
ref: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1112
|
+
versionID: z.ZodString;
|
|
1113
|
+
type: z.ZodLiteral<"node">;
|
|
1114
|
+
nodeID: z.ZodString;
|
|
1115
|
+
diagramID: z.ZodString;
|
|
1116
|
+
}, "strip", z.ZodTypeAny, {
|
|
1117
|
+
type: "node";
|
|
1118
|
+
diagramID: string;
|
|
1119
|
+
versionID: string;
|
|
1120
|
+
nodeID: string;
|
|
1121
|
+
}, {
|
|
1122
|
+
type: "node";
|
|
1123
|
+
diagramID: string;
|
|
1124
|
+
versionID: string;
|
|
1125
|
+
nodeID: string;
|
|
1126
|
+
}>, z.ZodObject<{
|
|
1127
|
+
versionID: z.ZodString;
|
|
1128
|
+
type: z.ZodLiteral<"agent">;
|
|
1129
|
+
agentID: z.ZodString;
|
|
1130
|
+
}, "strip", z.ZodTypeAny, {
|
|
1131
|
+
type: "agent";
|
|
1132
|
+
versionID: string;
|
|
1133
|
+
agentID: string;
|
|
1134
|
+
}, {
|
|
1135
|
+
type: "agent";
|
|
1136
|
+
versionID: string;
|
|
1137
|
+
agentID: string;
|
|
1138
|
+
}>, z.ZodObject<{
|
|
1139
|
+
versionID: z.ZodString;
|
|
1140
|
+
type: z.ZodLiteral<"prompt">;
|
|
1141
|
+
promptID: z.ZodString;
|
|
1142
|
+
}, "strip", z.ZodTypeAny, {
|
|
1143
|
+
type: "prompt";
|
|
1144
|
+
versionID: string;
|
|
1145
|
+
promptID: string;
|
|
1146
|
+
}, {
|
|
1147
|
+
type: "prompt";
|
|
1148
|
+
versionID: string;
|
|
1149
|
+
promptID: string;
|
|
1150
|
+
}>, z.ZodObject<{
|
|
1151
|
+
versionID: z.ZodString;
|
|
1152
|
+
type: z.ZodLiteral<"api-tool">;
|
|
1153
|
+
apiToolID: z.ZodString;
|
|
1154
|
+
}, "strip", z.ZodTypeAny, {
|
|
1155
|
+
type: "api-tool";
|
|
1156
|
+
versionID: string;
|
|
1157
|
+
apiToolID: string;
|
|
1158
|
+
}, {
|
|
1159
|
+
type: "api-tool";
|
|
1160
|
+
versionID: string;
|
|
1161
|
+
apiToolID: string;
|
|
1162
|
+
}>, z.ZodObject<{
|
|
1163
|
+
versionID: z.ZodString;
|
|
1164
|
+
type: z.ZodLiteral<"function">;
|
|
1165
|
+
functionID: z.ZodString;
|
|
1166
|
+
}, "strip", z.ZodTypeAny, {
|
|
1167
|
+
type: "function";
|
|
1168
|
+
versionID: string;
|
|
1169
|
+
functionID: string;
|
|
1170
|
+
}, {
|
|
1171
|
+
type: "function";
|
|
1172
|
+
versionID: string;
|
|
1173
|
+
functionID: string;
|
|
1174
|
+
}>, z.ZodObject<{
|
|
1175
|
+
versionID: z.ZodString;
|
|
1176
|
+
type: z.ZodLiteral<"integration-tool">;
|
|
1177
|
+
integrationToolID: z.ZodString;
|
|
1178
|
+
}, "strip", z.ZodTypeAny, {
|
|
1179
|
+
type: "integration-tool";
|
|
1180
|
+
versionID: string;
|
|
1181
|
+
integrationToolID: string;
|
|
1182
|
+
}, {
|
|
1183
|
+
type: "integration-tool";
|
|
1184
|
+
versionID: string;
|
|
1185
|
+
integrationToolID: string;
|
|
1186
|
+
}>]>>;
|
|
1111
1187
|
type: z.ZodOptional<z.ZodString>;
|
|
1188
|
+
level: z.ZodOptional<z.ZodNativeEnum<{
|
|
1189
|
+
readonly FATAL: "fatal";
|
|
1190
|
+
readonly ERROR: "error";
|
|
1191
|
+
readonly WARN: "warn";
|
|
1192
|
+
readonly INFO: "info";
|
|
1193
|
+
readonly DEBUG: "debug";
|
|
1194
|
+
}>>;
|
|
1112
1195
|
message: z.ZodString;
|
|
1196
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1113
1197
|
}, "strip", z.ZodTypeAny, {
|
|
1114
1198
|
message: string;
|
|
1199
|
+
ref?: {
|
|
1200
|
+
type: "node";
|
|
1201
|
+
diagramID: string;
|
|
1202
|
+
versionID: string;
|
|
1203
|
+
nodeID: string;
|
|
1204
|
+
} | {
|
|
1205
|
+
type: "agent";
|
|
1206
|
+
versionID: string;
|
|
1207
|
+
agentID: string;
|
|
1208
|
+
} | {
|
|
1209
|
+
type: "api-tool";
|
|
1210
|
+
versionID: string;
|
|
1211
|
+
apiToolID: string;
|
|
1212
|
+
} | {
|
|
1213
|
+
type: "integration-tool";
|
|
1214
|
+
versionID: string;
|
|
1215
|
+
integrationToolID: string;
|
|
1216
|
+
} | {
|
|
1217
|
+
type: "function";
|
|
1218
|
+
versionID: string;
|
|
1219
|
+
functionID: string;
|
|
1220
|
+
} | {
|
|
1221
|
+
type: "prompt";
|
|
1222
|
+
versionID: string;
|
|
1223
|
+
promptID: string;
|
|
1224
|
+
} | undefined;
|
|
1115
1225
|
type?: string | undefined;
|
|
1226
|
+
level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
|
|
1227
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1116
1228
|
}, {
|
|
1117
1229
|
message: string;
|
|
1230
|
+
ref?: {
|
|
1231
|
+
type: "node";
|
|
1232
|
+
diagramID: string;
|
|
1233
|
+
versionID: string;
|
|
1234
|
+
nodeID: string;
|
|
1235
|
+
} | {
|
|
1236
|
+
type: "agent";
|
|
1237
|
+
versionID: string;
|
|
1238
|
+
agentID: string;
|
|
1239
|
+
} | {
|
|
1240
|
+
type: "api-tool";
|
|
1241
|
+
versionID: string;
|
|
1242
|
+
apiToolID: string;
|
|
1243
|
+
} | {
|
|
1244
|
+
type: "integration-tool";
|
|
1245
|
+
versionID: string;
|
|
1246
|
+
integrationToolID: string;
|
|
1247
|
+
} | {
|
|
1248
|
+
type: "function";
|
|
1249
|
+
versionID: string;
|
|
1250
|
+
functionID: string;
|
|
1251
|
+
} | {
|
|
1252
|
+
type: "prompt";
|
|
1253
|
+
versionID: string;
|
|
1254
|
+
promptID: string;
|
|
1255
|
+
} | undefined;
|
|
1118
1256
|
type?: string | undefined;
|
|
1257
|
+
level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
|
|
1258
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1119
1259
|
}>;
|
|
1120
1260
|
}, "strip", z.ZodTypeAny, {
|
|
1121
1261
|
type: "debug";
|
|
1122
1262
|
payload: {
|
|
1123
1263
|
message: string;
|
|
1264
|
+
ref?: {
|
|
1265
|
+
type: "node";
|
|
1266
|
+
diagramID: string;
|
|
1267
|
+
versionID: string;
|
|
1268
|
+
nodeID: string;
|
|
1269
|
+
} | {
|
|
1270
|
+
type: "agent";
|
|
1271
|
+
versionID: string;
|
|
1272
|
+
agentID: string;
|
|
1273
|
+
} | {
|
|
1274
|
+
type: "api-tool";
|
|
1275
|
+
versionID: string;
|
|
1276
|
+
apiToolID: string;
|
|
1277
|
+
} | {
|
|
1278
|
+
type: "integration-tool";
|
|
1279
|
+
versionID: string;
|
|
1280
|
+
integrationToolID: string;
|
|
1281
|
+
} | {
|
|
1282
|
+
type: "function";
|
|
1283
|
+
versionID: string;
|
|
1284
|
+
functionID: string;
|
|
1285
|
+
} | {
|
|
1286
|
+
type: "prompt";
|
|
1287
|
+
versionID: string;
|
|
1288
|
+
promptID: string;
|
|
1289
|
+
} | undefined;
|
|
1124
1290
|
type?: string | undefined;
|
|
1291
|
+
level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
|
|
1292
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1125
1293
|
};
|
|
1126
1294
|
paths?: {
|
|
1127
1295
|
label?: string | undefined;
|
|
@@ -1137,7 +1305,35 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1137
1305
|
type: "debug";
|
|
1138
1306
|
payload: {
|
|
1139
1307
|
message: string;
|
|
1308
|
+
ref?: {
|
|
1309
|
+
type: "node";
|
|
1310
|
+
diagramID: string;
|
|
1311
|
+
versionID: string;
|
|
1312
|
+
nodeID: string;
|
|
1313
|
+
} | {
|
|
1314
|
+
type: "agent";
|
|
1315
|
+
versionID: string;
|
|
1316
|
+
agentID: string;
|
|
1317
|
+
} | {
|
|
1318
|
+
type: "api-tool";
|
|
1319
|
+
versionID: string;
|
|
1320
|
+
apiToolID: string;
|
|
1321
|
+
} | {
|
|
1322
|
+
type: "integration-tool";
|
|
1323
|
+
versionID: string;
|
|
1324
|
+
integrationToolID: string;
|
|
1325
|
+
} | {
|
|
1326
|
+
type: "function";
|
|
1327
|
+
versionID: string;
|
|
1328
|
+
functionID: string;
|
|
1329
|
+
} | {
|
|
1330
|
+
type: "prompt";
|
|
1331
|
+
versionID: string;
|
|
1332
|
+
promptID: string;
|
|
1333
|
+
} | undefined;
|
|
1140
1334
|
type?: string | undefined;
|
|
1335
|
+
level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
|
|
1336
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1141
1337
|
};
|
|
1142
1338
|
paths?: {
|
|
1143
1339
|
label?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"any.dto.d.ts","sourceRoot":"","sources":["../../../src/trace/any.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"any.dto.d.ts","sourceRoot":"","sources":["../../../src/trace/any.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { Enum } from '../utils/enum.util';
|
|
2
3
|
export declare const CompletionState: {
|
|
3
4
|
readonly START: "start";
|
|
4
5
|
readonly CONTENT: "content";
|
|
5
6
|
readonly END: "end";
|
|
6
7
|
};
|
|
7
|
-
export type CompletionState =
|
|
8
|
+
export type CompletionState = Enum<typeof CompletionState>;
|
|
8
9
|
export declare const CompletionTraceDTO: z.ZodObject<{
|
|
9
10
|
paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
11
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completion.dto.d.ts","sourceRoot":"","sources":["../../../src/trace/completion.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"completion.dto.d.ts","sourceRoot":"","sources":["../../../src/trace/completion.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAK9C,eAAO,MAAM,eAAe;;;;CAIlB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC;AAgB3D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completion.dto.js","sourceRoot":"","sources":["../../../src/trace/completion.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"completion.dto.js","sourceRoot":"","sources":["../../../src/trace/completion.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAIxB,uDAA8C;AAC9C,2CAA2C;AAE9B,QAAA,eAAe,GAAG;IAC7B,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,GAAG,EAAE,KAAK;CACF,CAAC;AAIX,MAAM,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,KAAK,EAAE,OAAC,CAAC,OAAO,CAAC,uBAAe,CAAC,KAAK,CAAC;IACvC,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAC;AAEH,MAAM,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,KAAK,EAAE,OAAC,CAAC,OAAO,CAAC,uBAAe,CAAC,OAAO,CAAC;IACzC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,KAAK,EAAE,OAAC,CAAC,OAAO,CAAC,uBAAe,CAAC,GAAG,CAAC;CACtC,CAAC,CAAC;AAEU,QAAA,kBAAkB,GAAG,wBAAY,CAAC,MAAM,CAAC;IACpD,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,2BAAS,CAAC,UAAU,CAAC;IACrC,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,uBAAuB,EAAE,yBAAyB,EAAE,qBAAqB,CAAC,CAAC;CAC9F,CAAC,CAAC"}
|
|
@@ -1,4 +1,203 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { Enum } from '../utils/enum.util';
|
|
3
|
+
export declare const DebugTraceRefType: {
|
|
4
|
+
readonly NODE: "node";
|
|
5
|
+
readonly AGENT: "agent";
|
|
6
|
+
readonly PROMPT: "prompt";
|
|
7
|
+
readonly FUNCTION: "function";
|
|
8
|
+
readonly API_TOOL: "api-tool";
|
|
9
|
+
readonly INTEGRATION_TOOL: "integration-tool";
|
|
10
|
+
};
|
|
11
|
+
export type DebugTraceRefType = Enum<typeof DebugTraceRefType>;
|
|
12
|
+
export declare const DebugTraceLevelType: {
|
|
13
|
+
readonly FATAL: "fatal";
|
|
14
|
+
readonly ERROR: "error";
|
|
15
|
+
readonly WARN: "warn";
|
|
16
|
+
readonly INFO: "info";
|
|
17
|
+
readonly DEBUG: "debug";
|
|
18
|
+
};
|
|
19
|
+
export type DebugTraceLevelType = Enum<typeof DebugTraceLevelType>;
|
|
20
|
+
export declare const DebugTraceBaseRefDTO: z.ZodObject<{
|
|
21
|
+
type: z.ZodNativeEnum<{
|
|
22
|
+
readonly NODE: "node";
|
|
23
|
+
readonly AGENT: "agent";
|
|
24
|
+
readonly PROMPT: "prompt";
|
|
25
|
+
readonly FUNCTION: "function";
|
|
26
|
+
readonly API_TOOL: "api-tool";
|
|
27
|
+
readonly INTEGRATION_TOOL: "integration-tool";
|
|
28
|
+
}>;
|
|
29
|
+
versionID: z.ZodString;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
type: "function" | "node" | "agent" | "prompt" | "api-tool" | "integration-tool";
|
|
32
|
+
versionID: string;
|
|
33
|
+
}, {
|
|
34
|
+
type: "function" | "node" | "agent" | "prompt" | "api-tool" | "integration-tool";
|
|
35
|
+
versionID: string;
|
|
36
|
+
}>;
|
|
37
|
+
export declare const DebugTraceNodeRefDTO: z.ZodObject<{
|
|
38
|
+
versionID: z.ZodString;
|
|
39
|
+
type: z.ZodLiteral<"node">;
|
|
40
|
+
nodeID: z.ZodString;
|
|
41
|
+
diagramID: z.ZodString;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
type: "node";
|
|
44
|
+
diagramID: string;
|
|
45
|
+
versionID: string;
|
|
46
|
+
nodeID: string;
|
|
47
|
+
}, {
|
|
48
|
+
type: "node";
|
|
49
|
+
diagramID: string;
|
|
50
|
+
versionID: string;
|
|
51
|
+
nodeID: string;
|
|
52
|
+
}>;
|
|
53
|
+
export type DebugTraceNodeRef = z.infer<typeof DebugTraceNodeRefDTO>;
|
|
54
|
+
export declare const DebugTraceAgentRefDTO: z.ZodObject<{
|
|
55
|
+
versionID: z.ZodString;
|
|
56
|
+
type: z.ZodLiteral<"agent">;
|
|
57
|
+
agentID: z.ZodString;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
type: "agent";
|
|
60
|
+
versionID: string;
|
|
61
|
+
agentID: string;
|
|
62
|
+
}, {
|
|
63
|
+
type: "agent";
|
|
64
|
+
versionID: string;
|
|
65
|
+
agentID: string;
|
|
66
|
+
}>;
|
|
67
|
+
export type DebugTraceAgentRef = z.infer<typeof DebugTraceAgentRefDTO>;
|
|
68
|
+
export declare const DebugTraceAPIToolRefDTO: z.ZodObject<{
|
|
69
|
+
versionID: z.ZodString;
|
|
70
|
+
type: z.ZodLiteral<"api-tool">;
|
|
71
|
+
apiToolID: z.ZodString;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
type: "api-tool";
|
|
74
|
+
versionID: string;
|
|
75
|
+
apiToolID: string;
|
|
76
|
+
}, {
|
|
77
|
+
type: "api-tool";
|
|
78
|
+
versionID: string;
|
|
79
|
+
apiToolID: string;
|
|
80
|
+
}>;
|
|
81
|
+
export type DebugTraceAPIToolRef = z.infer<typeof DebugTraceAPIToolRefDTO>;
|
|
82
|
+
export declare const DebugTraceIntegrationToolRefDTO: z.ZodObject<{
|
|
83
|
+
versionID: z.ZodString;
|
|
84
|
+
type: z.ZodLiteral<"integration-tool">;
|
|
85
|
+
integrationToolID: z.ZodString;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
type: "integration-tool";
|
|
88
|
+
versionID: string;
|
|
89
|
+
integrationToolID: string;
|
|
90
|
+
}, {
|
|
91
|
+
type: "integration-tool";
|
|
92
|
+
versionID: string;
|
|
93
|
+
integrationToolID: string;
|
|
94
|
+
}>;
|
|
95
|
+
export type DebugTraceIntegrationToolRef = z.infer<typeof DebugTraceIntegrationToolRefDTO>;
|
|
96
|
+
export declare const DebugTraceFunctionRefDTO: z.ZodObject<{
|
|
97
|
+
versionID: z.ZodString;
|
|
98
|
+
type: z.ZodLiteral<"function">;
|
|
99
|
+
functionID: z.ZodString;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
type: "function";
|
|
102
|
+
versionID: string;
|
|
103
|
+
functionID: string;
|
|
104
|
+
}, {
|
|
105
|
+
type: "function";
|
|
106
|
+
versionID: string;
|
|
107
|
+
functionID: string;
|
|
108
|
+
}>;
|
|
109
|
+
export type DebugTraceFunctionRef = z.infer<typeof DebugTraceFunctionRefDTO>;
|
|
110
|
+
export declare const DebugTracePromptRefDTO: z.ZodObject<{
|
|
111
|
+
versionID: z.ZodString;
|
|
112
|
+
type: z.ZodLiteral<"prompt">;
|
|
113
|
+
promptID: z.ZodString;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
type: "prompt";
|
|
116
|
+
versionID: string;
|
|
117
|
+
promptID: string;
|
|
118
|
+
}, {
|
|
119
|
+
type: "prompt";
|
|
120
|
+
versionID: string;
|
|
121
|
+
promptID: string;
|
|
122
|
+
}>;
|
|
123
|
+
export type DebugTracePromptRef = z.infer<typeof DebugTracePromptRefDTO>;
|
|
124
|
+
export declare const DebugTraceRefDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
125
|
+
versionID: z.ZodString;
|
|
126
|
+
type: z.ZodLiteral<"node">;
|
|
127
|
+
nodeID: z.ZodString;
|
|
128
|
+
diagramID: z.ZodString;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
type: "node";
|
|
131
|
+
diagramID: string;
|
|
132
|
+
versionID: string;
|
|
133
|
+
nodeID: string;
|
|
134
|
+
}, {
|
|
135
|
+
type: "node";
|
|
136
|
+
diagramID: string;
|
|
137
|
+
versionID: string;
|
|
138
|
+
nodeID: string;
|
|
139
|
+
}>, z.ZodObject<{
|
|
140
|
+
versionID: z.ZodString;
|
|
141
|
+
type: z.ZodLiteral<"agent">;
|
|
142
|
+
agentID: z.ZodString;
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
type: "agent";
|
|
145
|
+
versionID: string;
|
|
146
|
+
agentID: string;
|
|
147
|
+
}, {
|
|
148
|
+
type: "agent";
|
|
149
|
+
versionID: string;
|
|
150
|
+
agentID: string;
|
|
151
|
+
}>, z.ZodObject<{
|
|
152
|
+
versionID: z.ZodString;
|
|
153
|
+
type: z.ZodLiteral<"prompt">;
|
|
154
|
+
promptID: z.ZodString;
|
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
type: "prompt";
|
|
157
|
+
versionID: string;
|
|
158
|
+
promptID: string;
|
|
159
|
+
}, {
|
|
160
|
+
type: "prompt";
|
|
161
|
+
versionID: string;
|
|
162
|
+
promptID: string;
|
|
163
|
+
}>, z.ZodObject<{
|
|
164
|
+
versionID: z.ZodString;
|
|
165
|
+
type: z.ZodLiteral<"api-tool">;
|
|
166
|
+
apiToolID: z.ZodString;
|
|
167
|
+
}, "strip", z.ZodTypeAny, {
|
|
168
|
+
type: "api-tool";
|
|
169
|
+
versionID: string;
|
|
170
|
+
apiToolID: string;
|
|
171
|
+
}, {
|
|
172
|
+
type: "api-tool";
|
|
173
|
+
versionID: string;
|
|
174
|
+
apiToolID: string;
|
|
175
|
+
}>, z.ZodObject<{
|
|
176
|
+
versionID: z.ZodString;
|
|
177
|
+
type: z.ZodLiteral<"function">;
|
|
178
|
+
functionID: z.ZodString;
|
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
type: "function";
|
|
181
|
+
versionID: string;
|
|
182
|
+
functionID: string;
|
|
183
|
+
}, {
|
|
184
|
+
type: "function";
|
|
185
|
+
versionID: string;
|
|
186
|
+
functionID: string;
|
|
187
|
+
}>, z.ZodObject<{
|
|
188
|
+
versionID: z.ZodString;
|
|
189
|
+
type: z.ZodLiteral<"integration-tool">;
|
|
190
|
+
integrationToolID: z.ZodString;
|
|
191
|
+
}, "strip", z.ZodTypeAny, {
|
|
192
|
+
type: "integration-tool";
|
|
193
|
+
versionID: string;
|
|
194
|
+
integrationToolID: string;
|
|
195
|
+
}, {
|
|
196
|
+
type: "integration-tool";
|
|
197
|
+
versionID: string;
|
|
198
|
+
integrationToolID: string;
|
|
199
|
+
}>]>;
|
|
200
|
+
export type DebugTraceRef = z.infer<typeof DebugTraceRefDTO>;
|
|
2
201
|
export declare const DebugTraceDTO: z.ZodObject<{
|
|
3
202
|
paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4
203
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -34,20 +233,188 @@ export declare const DebugTraceDTO: z.ZodObject<{
|
|
|
34
233
|
time: z.ZodOptional<z.ZodNumber>;
|
|
35
234
|
type: z.ZodLiteral<"debug">;
|
|
36
235
|
payload: z.ZodObject<{
|
|
236
|
+
ref: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
237
|
+
versionID: z.ZodString;
|
|
238
|
+
type: z.ZodLiteral<"node">;
|
|
239
|
+
nodeID: z.ZodString;
|
|
240
|
+
diagramID: z.ZodString;
|
|
241
|
+
}, "strip", z.ZodTypeAny, {
|
|
242
|
+
type: "node";
|
|
243
|
+
diagramID: string;
|
|
244
|
+
versionID: string;
|
|
245
|
+
nodeID: string;
|
|
246
|
+
}, {
|
|
247
|
+
type: "node";
|
|
248
|
+
diagramID: string;
|
|
249
|
+
versionID: string;
|
|
250
|
+
nodeID: string;
|
|
251
|
+
}>, z.ZodObject<{
|
|
252
|
+
versionID: z.ZodString;
|
|
253
|
+
type: z.ZodLiteral<"agent">;
|
|
254
|
+
agentID: z.ZodString;
|
|
255
|
+
}, "strip", z.ZodTypeAny, {
|
|
256
|
+
type: "agent";
|
|
257
|
+
versionID: string;
|
|
258
|
+
agentID: string;
|
|
259
|
+
}, {
|
|
260
|
+
type: "agent";
|
|
261
|
+
versionID: string;
|
|
262
|
+
agentID: string;
|
|
263
|
+
}>, z.ZodObject<{
|
|
264
|
+
versionID: z.ZodString;
|
|
265
|
+
type: z.ZodLiteral<"prompt">;
|
|
266
|
+
promptID: z.ZodString;
|
|
267
|
+
}, "strip", z.ZodTypeAny, {
|
|
268
|
+
type: "prompt";
|
|
269
|
+
versionID: string;
|
|
270
|
+
promptID: string;
|
|
271
|
+
}, {
|
|
272
|
+
type: "prompt";
|
|
273
|
+
versionID: string;
|
|
274
|
+
promptID: string;
|
|
275
|
+
}>, z.ZodObject<{
|
|
276
|
+
versionID: z.ZodString;
|
|
277
|
+
type: z.ZodLiteral<"api-tool">;
|
|
278
|
+
apiToolID: z.ZodString;
|
|
279
|
+
}, "strip", z.ZodTypeAny, {
|
|
280
|
+
type: "api-tool";
|
|
281
|
+
versionID: string;
|
|
282
|
+
apiToolID: string;
|
|
283
|
+
}, {
|
|
284
|
+
type: "api-tool";
|
|
285
|
+
versionID: string;
|
|
286
|
+
apiToolID: string;
|
|
287
|
+
}>, z.ZodObject<{
|
|
288
|
+
versionID: z.ZodString;
|
|
289
|
+
type: z.ZodLiteral<"function">;
|
|
290
|
+
functionID: z.ZodString;
|
|
291
|
+
}, "strip", z.ZodTypeAny, {
|
|
292
|
+
type: "function";
|
|
293
|
+
versionID: string;
|
|
294
|
+
functionID: string;
|
|
295
|
+
}, {
|
|
296
|
+
type: "function";
|
|
297
|
+
versionID: string;
|
|
298
|
+
functionID: string;
|
|
299
|
+
}>, z.ZodObject<{
|
|
300
|
+
versionID: z.ZodString;
|
|
301
|
+
type: z.ZodLiteral<"integration-tool">;
|
|
302
|
+
integrationToolID: z.ZodString;
|
|
303
|
+
}, "strip", z.ZodTypeAny, {
|
|
304
|
+
type: "integration-tool";
|
|
305
|
+
versionID: string;
|
|
306
|
+
integrationToolID: string;
|
|
307
|
+
}, {
|
|
308
|
+
type: "integration-tool";
|
|
309
|
+
versionID: string;
|
|
310
|
+
integrationToolID: string;
|
|
311
|
+
}>]>>;
|
|
37
312
|
type: z.ZodOptional<z.ZodString>;
|
|
313
|
+
level: z.ZodOptional<z.ZodNativeEnum<{
|
|
314
|
+
readonly FATAL: "fatal";
|
|
315
|
+
readonly ERROR: "error";
|
|
316
|
+
readonly WARN: "warn";
|
|
317
|
+
readonly INFO: "info";
|
|
318
|
+
readonly DEBUG: "debug";
|
|
319
|
+
}>>;
|
|
38
320
|
message: z.ZodString;
|
|
321
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
39
322
|
}, "strip", z.ZodTypeAny, {
|
|
40
323
|
message: string;
|
|
324
|
+
ref?: {
|
|
325
|
+
type: "node";
|
|
326
|
+
diagramID: string;
|
|
327
|
+
versionID: string;
|
|
328
|
+
nodeID: string;
|
|
329
|
+
} | {
|
|
330
|
+
type: "agent";
|
|
331
|
+
versionID: string;
|
|
332
|
+
agentID: string;
|
|
333
|
+
} | {
|
|
334
|
+
type: "api-tool";
|
|
335
|
+
versionID: string;
|
|
336
|
+
apiToolID: string;
|
|
337
|
+
} | {
|
|
338
|
+
type: "integration-tool";
|
|
339
|
+
versionID: string;
|
|
340
|
+
integrationToolID: string;
|
|
341
|
+
} | {
|
|
342
|
+
type: "function";
|
|
343
|
+
versionID: string;
|
|
344
|
+
functionID: string;
|
|
345
|
+
} | {
|
|
346
|
+
type: "prompt";
|
|
347
|
+
versionID: string;
|
|
348
|
+
promptID: string;
|
|
349
|
+
} | undefined;
|
|
41
350
|
type?: string | undefined;
|
|
351
|
+
level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
|
|
352
|
+
metadata?: Record<string, unknown> | undefined;
|
|
42
353
|
}, {
|
|
43
354
|
message: string;
|
|
355
|
+
ref?: {
|
|
356
|
+
type: "node";
|
|
357
|
+
diagramID: string;
|
|
358
|
+
versionID: string;
|
|
359
|
+
nodeID: string;
|
|
360
|
+
} | {
|
|
361
|
+
type: "agent";
|
|
362
|
+
versionID: string;
|
|
363
|
+
agentID: string;
|
|
364
|
+
} | {
|
|
365
|
+
type: "api-tool";
|
|
366
|
+
versionID: string;
|
|
367
|
+
apiToolID: string;
|
|
368
|
+
} | {
|
|
369
|
+
type: "integration-tool";
|
|
370
|
+
versionID: string;
|
|
371
|
+
integrationToolID: string;
|
|
372
|
+
} | {
|
|
373
|
+
type: "function";
|
|
374
|
+
versionID: string;
|
|
375
|
+
functionID: string;
|
|
376
|
+
} | {
|
|
377
|
+
type: "prompt";
|
|
378
|
+
versionID: string;
|
|
379
|
+
promptID: string;
|
|
380
|
+
} | undefined;
|
|
44
381
|
type?: string | undefined;
|
|
382
|
+
level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
|
|
383
|
+
metadata?: Record<string, unknown> | undefined;
|
|
45
384
|
}>;
|
|
46
385
|
}, "strip", z.ZodTypeAny, {
|
|
47
386
|
type: "debug";
|
|
48
387
|
payload: {
|
|
49
388
|
message: string;
|
|
389
|
+
ref?: {
|
|
390
|
+
type: "node";
|
|
391
|
+
diagramID: string;
|
|
392
|
+
versionID: string;
|
|
393
|
+
nodeID: string;
|
|
394
|
+
} | {
|
|
395
|
+
type: "agent";
|
|
396
|
+
versionID: string;
|
|
397
|
+
agentID: string;
|
|
398
|
+
} | {
|
|
399
|
+
type: "api-tool";
|
|
400
|
+
versionID: string;
|
|
401
|
+
apiToolID: string;
|
|
402
|
+
} | {
|
|
403
|
+
type: "integration-tool";
|
|
404
|
+
versionID: string;
|
|
405
|
+
integrationToolID: string;
|
|
406
|
+
} | {
|
|
407
|
+
type: "function";
|
|
408
|
+
versionID: string;
|
|
409
|
+
functionID: string;
|
|
410
|
+
} | {
|
|
411
|
+
type: "prompt";
|
|
412
|
+
versionID: string;
|
|
413
|
+
promptID: string;
|
|
414
|
+
} | undefined;
|
|
50
415
|
type?: string | undefined;
|
|
416
|
+
level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
|
|
417
|
+
metadata?: Record<string, unknown> | undefined;
|
|
51
418
|
};
|
|
52
419
|
paths?: {
|
|
53
420
|
label?: string | undefined;
|
|
@@ -63,7 +430,35 @@ export declare const DebugTraceDTO: z.ZodObject<{
|
|
|
63
430
|
type: "debug";
|
|
64
431
|
payload: {
|
|
65
432
|
message: string;
|
|
433
|
+
ref?: {
|
|
434
|
+
type: "node";
|
|
435
|
+
diagramID: string;
|
|
436
|
+
versionID: string;
|
|
437
|
+
nodeID: string;
|
|
438
|
+
} | {
|
|
439
|
+
type: "agent";
|
|
440
|
+
versionID: string;
|
|
441
|
+
agentID: string;
|
|
442
|
+
} | {
|
|
443
|
+
type: "api-tool";
|
|
444
|
+
versionID: string;
|
|
445
|
+
apiToolID: string;
|
|
446
|
+
} | {
|
|
447
|
+
type: "integration-tool";
|
|
448
|
+
versionID: string;
|
|
449
|
+
integrationToolID: string;
|
|
450
|
+
} | {
|
|
451
|
+
type: "function";
|
|
452
|
+
versionID: string;
|
|
453
|
+
functionID: string;
|
|
454
|
+
} | {
|
|
455
|
+
type: "prompt";
|
|
456
|
+
versionID: string;
|
|
457
|
+
promptID: string;
|
|
458
|
+
} | undefined;
|
|
66
459
|
type?: string | undefined;
|
|
460
|
+
level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
|
|
461
|
+
metadata?: Record<string, unknown> | undefined;
|
|
67
462
|
};
|
|
68
463
|
paths?: {
|
|
69
464
|
label?: string | undefined;
|