@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.dto.d.ts","sourceRoot":"","sources":["../../../src/trace/debug.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"debug.dto.d.ts","sourceRoot":"","sources":["../../../src/trace/debug.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAK9C,eAAO,MAAM,iBAAiB;;;;;;;CAOpB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE/D,eAAO,MAAM,mBAAmB;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASxB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -1,14 +1,69 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DebugTraceDTO = void 0;
|
|
3
|
+
exports.DebugTraceDTO = exports.DebugTraceRefDTO = exports.DebugTracePromptRefDTO = exports.DebugTraceFunctionRefDTO = exports.DebugTraceIntegrationToolRefDTO = exports.DebugTraceAPIToolRefDTO = exports.DebugTraceAgentRefDTO = exports.DebugTraceNodeRefDTO = exports.DebugTraceBaseRefDTO = exports.DebugTraceLevelType = exports.DebugTraceRefType = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const trace_type_enum_1 = require("./trace-type.enum");
|
|
6
6
|
const utils_dto_1 = require("./utils.dto");
|
|
7
|
+
exports.DebugTraceRefType = {
|
|
8
|
+
NODE: 'node',
|
|
9
|
+
AGENT: 'agent',
|
|
10
|
+
PROMPT: 'prompt',
|
|
11
|
+
FUNCTION: 'function',
|
|
12
|
+
API_TOOL: 'api-tool',
|
|
13
|
+
INTEGRATION_TOOL: 'integration-tool',
|
|
14
|
+
};
|
|
15
|
+
exports.DebugTraceLevelType = {
|
|
16
|
+
FATAL: 'fatal',
|
|
17
|
+
ERROR: 'error',
|
|
18
|
+
WARN: 'warn',
|
|
19
|
+
INFO: 'info',
|
|
20
|
+
DEBUG: 'debug',
|
|
21
|
+
};
|
|
22
|
+
exports.DebugTraceBaseRefDTO = zod_1.z.object({
|
|
23
|
+
type: zod_1.z.nativeEnum(exports.DebugTraceRefType),
|
|
24
|
+
versionID: zod_1.z.string(),
|
|
25
|
+
});
|
|
26
|
+
exports.DebugTraceNodeRefDTO = exports.DebugTraceBaseRefDTO.extend({
|
|
27
|
+
type: zod_1.z.literal(exports.DebugTraceRefType.NODE),
|
|
28
|
+
nodeID: zod_1.z.string(),
|
|
29
|
+
diagramID: zod_1.z.string(),
|
|
30
|
+
});
|
|
31
|
+
exports.DebugTraceAgentRefDTO = exports.DebugTraceBaseRefDTO.extend({
|
|
32
|
+
type: zod_1.z.literal(exports.DebugTraceRefType.AGENT),
|
|
33
|
+
agentID: zod_1.z.string(),
|
|
34
|
+
});
|
|
35
|
+
exports.DebugTraceAPIToolRefDTO = exports.DebugTraceBaseRefDTO.extend({
|
|
36
|
+
type: zod_1.z.literal(exports.DebugTraceRefType.API_TOOL),
|
|
37
|
+
apiToolID: zod_1.z.string(),
|
|
38
|
+
});
|
|
39
|
+
exports.DebugTraceIntegrationToolRefDTO = exports.DebugTraceBaseRefDTO.extend({
|
|
40
|
+
type: zod_1.z.literal(exports.DebugTraceRefType.INTEGRATION_TOOL),
|
|
41
|
+
integrationToolID: zod_1.z.string(),
|
|
42
|
+
});
|
|
43
|
+
exports.DebugTraceFunctionRefDTO = exports.DebugTraceBaseRefDTO.extend({
|
|
44
|
+
type: zod_1.z.literal(exports.DebugTraceRefType.FUNCTION),
|
|
45
|
+
functionID: zod_1.z.string(),
|
|
46
|
+
});
|
|
47
|
+
exports.DebugTracePromptRefDTO = exports.DebugTraceBaseRefDTO.extend({
|
|
48
|
+
type: zod_1.z.literal(exports.DebugTraceRefType.PROMPT),
|
|
49
|
+
promptID: zod_1.z.string(),
|
|
50
|
+
});
|
|
51
|
+
exports.DebugTraceRefDTO = zod_1.z.discriminatedUnion('type', [
|
|
52
|
+
exports.DebugTraceNodeRefDTO,
|
|
53
|
+
exports.DebugTraceAgentRefDTO,
|
|
54
|
+
exports.DebugTracePromptRefDTO,
|
|
55
|
+
exports.DebugTraceAPIToolRefDTO,
|
|
56
|
+
exports.DebugTraceFunctionRefDTO,
|
|
57
|
+
exports.DebugTraceIntegrationToolRefDTO,
|
|
58
|
+
]);
|
|
7
59
|
exports.DebugTraceDTO = utils_dto_1.BaseTraceDTO.extend({
|
|
8
60
|
type: zod_1.z.literal(trace_type_enum_1.TraceType.DEBUG),
|
|
9
61
|
payload: zod_1.z.object({
|
|
62
|
+
ref: exports.DebugTraceRefDTO.optional(),
|
|
10
63
|
type: zod_1.z.string().optional(),
|
|
64
|
+
level: zod_1.z.nativeEnum(exports.DebugTraceLevelType).optional(),
|
|
11
65
|
message: zod_1.z.string(),
|
|
66
|
+
metadata: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
12
67
|
}),
|
|
13
68
|
});
|
|
14
69
|
//# sourceMappingURL=debug.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.dto.js","sourceRoot":"","sources":["../../../src/trace/debug.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"debug.dto.js","sourceRoot":"","sources":["../../../src/trace/debug.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAIxB,uDAA8C;AAC9C,2CAA2C;AAE9B,QAAA,iBAAiB,GAAG;IAC/B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,gBAAgB,EAAE,kBAAkB;CAC5B,CAAC;AAIE,QAAA,mBAAmB,GAAG;IACjC,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAIE,QAAA,oBAAoB,GAAG,OAA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AQ,EAAE,OAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC;AAIU,QAAA,gBAAgB,GAAG,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC3D,4BAAoB;IACpB,6BAAqB;IACrB,8BAAsB;IACtB,+BAAuB;IACvB,gCAAwB;IACxB,uCAA+B;CAChC,CAAC,CAAC;AAIU,QAAA,aAAa,GAAG,wBAAY,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,2BAAS,CAAC,KAAK,CAAC;IAChC,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QAChB,GAAG,EAAE,wBAAgB,CAAC,QAAQ,EAAE;QAChC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,KAAK,EAAE,OAAC,CAAC,UAAU,CAAC,2BAAmB,CAAC,CAAC,QAAQ,EAAE;QACnD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;QACnB,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;KAC3C,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -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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B,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.js';
|
|
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,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"completion.dto.js","sourceRoot":"","sources":["../../../src/trace/completion.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,GAAG,EAAE,KAAK;CACF,CAAC;AAIX,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC;IACvC,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAC;AAEH,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC;IACzC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,CAAC;CACtC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAC,MAAM,CAAC;IACpD,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC;IACrC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAuB,EAAE,yBAAyB,EAAE,qBAAqB,CAAC,CAAC;CAC9F,CAAC,CAAC"}
|