@voiceflow/dtos-interact 1.17.0 → 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.
Files changed (35) hide show
  1. package/build/cjs/text/text.dto.d.ts +54 -1
  2. package/build/cjs/text/text.dto.d.ts.map +1 -1
  3. package/build/cjs/text/text.dto.js +29 -2
  4. package/build/cjs/text/text.dto.js.map +1 -1
  5. package/build/cjs/trace/any.dto.d.ts +209 -13
  6. package/build/cjs/trace/any.dto.d.ts.map +1 -1
  7. package/build/cjs/trace/card.dto.d.ts +7 -7
  8. package/build/cjs/trace/carousel.dto.d.ts +8 -8
  9. package/build/cjs/trace/completion.dto.d.ts +2 -1
  10. package/build/cjs/trace/completion.dto.d.ts.map +1 -1
  11. package/build/cjs/trace/completion.dto.js.map +1 -1
  12. package/build/cjs/trace/debug.dto.d.ts +395 -0
  13. package/build/cjs/trace/debug.dto.d.ts.map +1 -1
  14. package/build/cjs/trace/debug.dto.js +56 -1
  15. package/build/cjs/trace/debug.dto.js.map +1 -1
  16. package/build/cjs/trace/text.dto.d.ts +4 -4
  17. package/build/cjs/widget-settings/widget-settings.dto.d.ts +6 -6
  18. package/build/esm/text/text.dto.d.ts +54 -1
  19. package/build/esm/text/text.dto.d.ts.map +1 -1
  20. package/build/esm/text/text.dto.js +26 -1
  21. package/build/esm/text/text.dto.js.map +1 -1
  22. package/build/esm/trace/any.dto.d.ts +209 -13
  23. package/build/esm/trace/any.dto.d.ts.map +1 -1
  24. package/build/esm/trace/card.dto.d.ts +7 -7
  25. package/build/esm/trace/carousel.dto.d.ts +8 -8
  26. package/build/esm/trace/completion.dto.d.ts +2 -1
  27. package/build/esm/trace/completion.dto.d.ts.map +1 -1
  28. package/build/esm/trace/completion.dto.js.map +1 -1
  29. package/build/esm/trace/debug.dto.d.ts +395 -0
  30. package/build/esm/trace/debug.dto.d.ts.map +1 -1
  31. package/build/esm/trace/debug.dto.js +55 -0
  32. package/build/esm/trace/debug.dto.js.map +1 -1
  33. package/build/esm/trace/text.dto.d.ts +4 -4
  34. package/build/esm/widget-settings/widget-settings.dto.d.ts +6 -6
  35. package/package.json +2 -2
@@ -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;
@@ -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;AAKxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMxB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,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,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CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE7D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;AAExB,uDAA8C;AAC9C,2CAA2C;AAE9B,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,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;KACpB,CAAC;CACH,CAAC,CAAC"}
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,OAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,yBAAiB,CAAC;IACrC,SAAS,EAAE,OAAC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AAC,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"}
@@ -38,9 +38,9 @@ export declare const TextTraceDTO: z.ZodObject<{
38
38
  ai: z.ZodOptional<z.ZodBoolean>;
39
39
  slate: z.ZodObject<{
40
40
  id: z.ZodString;
41
- content: z.ZodArray<z.ZodAny, "many">;
41
+ content: z.ZodArray<z.ZodEffects<z.ZodAny, import("../text/text.dto").SlateText | import("../text/text.dto").SlateTextElement | import("../text/text.dto").SlateTextLinkElement | import("../text/text.dto").SlateTextVariableElement, any>, "many">;
42
42
  }, "strip", z.ZodTypeAny, {
43
- content: any[];
43
+ content: (import("../text/text.dto").SlateText | import("../text/text.dto").SlateTextElement | import("../text/text.dto").SlateTextLinkElement | import("../text/text.dto").SlateTextVariableElement)[];
44
44
  id: string;
45
45
  }, {
46
46
  content: any[];
@@ -58,7 +58,7 @@ export declare const TextTraceDTO: z.ZodObject<{
58
58
  }, "strip", z.ZodTypeAny, {
59
59
  message: string;
60
60
  slate: {
61
- content: any[];
61
+ content: (import("../text/text.dto").SlateText | import("../text/text.dto").SlateTextElement | import("../text/text.dto").SlateTextLinkElement | import("../text/text.dto").SlateTextVariableElement)[];
62
62
  id: string;
63
63
  };
64
64
  ai?: boolean | undefined;
@@ -85,7 +85,7 @@ export declare const TextTraceDTO: z.ZodObject<{
85
85
  payload: {
86
86
  message: string;
87
87
  slate: {
88
- content: any[];
88
+ content: (import("../text/text.dto").SlateText | import("../text/text.dto").SlateTextElement | import("../text/text.dto").SlateTextLinkElement | import("../text/text.dto").SlateTextVariableElement)[];
89
89
  id: string;
90
90
  };
91
91
  ai?: boolean | undefined;
@@ -535,10 +535,10 @@ export declare const WidgetSettingsCommonSettingsDTO: z.ZodObject<{
535
535
  SESSION_STORAGE: string;
536
536
  }>;
537
537
  }, "strip", z.ZodTypeAny, {
538
+ fontFamily: string;
538
539
  sideSpacing: string;
539
540
  bottomSpacing: string;
540
541
  position: "right" | "left";
541
- fontFamily: string;
542
542
  primaryColor: {
543
543
  color: string;
544
544
  palette: {
@@ -567,10 +567,10 @@ export declare const WidgetSettingsCommonSettingsDTO: z.ZodObject<{
567
567
  };
568
568
  persistence: string;
569
569
  }, {
570
+ fontFamily: string;
570
571
  sideSpacing: string;
571
572
  bottomSpacing: string;
572
573
  position: "right" | "left";
573
- fontFamily: string;
574
574
  primaryColor: {
575
575
  color: string;
576
576
  palette: {
@@ -947,10 +947,10 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
947
947
  SESSION_STORAGE: string;
948
948
  }>;
949
949
  }, "strip", z.ZodTypeAny, {
950
+ fontFamily: string;
950
951
  sideSpacing: string;
951
952
  bottomSpacing: string;
952
953
  position: "right" | "left";
953
- fontFamily: string;
954
954
  primaryColor: {
955
955
  color: string;
956
956
  palette: {
@@ -979,10 +979,10 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
979
979
  };
980
980
  persistence: string;
981
981
  }, {
982
+ fontFamily: string;
982
983
  sideSpacing: string;
983
984
  bottomSpacing: string;
984
985
  position: "right" | "left";
985
- fontFamily: string;
986
986
  primaryColor: {
987
987
  color: string;
988
988
  palette: {
@@ -1084,10 +1084,10 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
1084
1084
  streamingDisabled?: boolean | undefined;
1085
1085
  };
1086
1086
  common: {
1087
+ fontFamily: string;
1087
1088
  sideSpacing: string;
1088
1089
  bottomSpacing: string;
1089
1090
  position: "right" | "left";
1090
- fontFamily: string;
1091
1091
  primaryColor: {
1092
1092
  color: string;
1093
1093
  palette: {
@@ -1171,10 +1171,10 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
1171
1171
  streamingDisabled?: boolean | undefined;
1172
1172
  };
1173
1173
  common: {
1174
+ fontFamily: string;
1174
1175
  sideSpacing: string;
1175
1176
  bottomSpacing: string;
1176
1177
  position: "right" | "left";
1177
- fontFamily: string;
1178
1178
  primaryColor: {
1179
1179
  color: string;
1180
1180
  palette: {
@@ -1,4 +1,57 @@
1
1
  import z from 'zod';
2
- export declare const SlateTextValueDTO: z.ZodArray<z.ZodAny, "many">;
2
+ export interface SlateTextColor {
3
+ r: number;
4
+ g: number;
5
+ b: number;
6
+ a: number;
7
+ }
8
+ export declare enum SlateTextProperty {
9
+ BACKGROUND_COLOR = "backgroundColor",
10
+ COLOR = "color",
11
+ ITALIC = "italic",
12
+ UNDERLINE = "underline",
13
+ FONT_WEIGHT = "fontWeight",
14
+ FONT_FAMILY = "fontFamily",
15
+ STRIKE_THROUGH = "strikeThrough"
16
+ }
17
+ export declare enum SlateTextElementType {
18
+ LINK = "link",
19
+ VARIABLE = "variable"
20
+ }
21
+ export declare enum SlateTextElementProperty {
22
+ TEXT_ALIGN = "textAlign"
23
+ }
24
+ export interface SlateText {
25
+ text: string;
26
+ [SlateTextProperty.BACKGROUND_COLOR]?: SlateTextColor;
27
+ [SlateTextProperty.COLOR]?: SlateTextColor;
28
+ [SlateTextProperty.ITALIC]?: boolean;
29
+ [SlateTextProperty.UNDERLINE]?: boolean;
30
+ [SlateTextProperty.FONT_WEIGHT]?: string;
31
+ [SlateTextProperty.FONT_FAMILY]?: string;
32
+ [SlateTextProperty.STRIKE_THROUGH]?: boolean;
33
+ }
34
+ export interface SlateTextElement {
35
+ type?: string;
36
+ children: Descendant[];
37
+ [SlateTextElementProperty.TEXT_ALIGN]?: string;
38
+ }
39
+ export interface SlateTextLinkElement extends SlateTextElement {
40
+ type: SlateTextElementType.LINK;
41
+ url?: string;
42
+ }
43
+ export interface SlateTextVariableElement extends SlateTextElement {
44
+ type: SlateTextElementType.VARIABLE;
45
+ id: string;
46
+ path?: string;
47
+ name: string;
48
+ isSlot?: boolean;
49
+ isSecret?: boolean;
50
+ }
51
+ export type AnySlateTextElement = SlateTextElement | SlateTextLinkElement | SlateTextVariableElement;
52
+ export type Descendant = AnySlateTextElement | SlateText;
53
+ export declare const isSlateTextVariableElement: (element: SlateTextElement) => element is SlateTextVariableElement;
54
+ export declare const isSlateTextLinkElement: (element: SlateTextElement) => element is SlateTextLinkElement;
55
+ export declare const SlateTextValueDTO: z.ZodArray<z.ZodEffects<z.ZodAny, SlateText | SlateTextElement | SlateTextLinkElement | SlateTextVariableElement, any>, "many">;
3
56
  export type SlateTextValue = z.infer<typeof SlateTextValueDTO>;
4
57
  //# sourceMappingURL=text.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text.dto.d.ts","sourceRoot":"","sources":["../../../src/text/text.dto.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,iBAAiB,8BAAmB,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
1
+ {"version":3,"file":"text.dto.d.ts","sourceRoot":"","sources":["../../../src/text/text.dto.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,WAAW,cAAc;IAC7B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAA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