@cossistant/types 0.0.31 → 0.0.33
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/api/ai-agent.d.ts +127 -1
- package/api/ai-agent.d.ts.map +1 -1
- package/api/ai-agent.js +125 -1
- package/api/ai-agent.js.map +1 -1
- package/api/common.d.ts.map +1 -1
- package/api/conversation.d.ts +381 -0
- package/api/conversation.d.ts.map +1 -1
- package/api/conversation.js +1 -0
- package/api/conversation.js.map +1 -1
- package/api/feedback.d.ts +98 -0
- package/api/feedback.d.ts.map +1 -0
- package/api/feedback.js +68 -0
- package/api/feedback.js.map +1 -0
- package/api/index.d.ts +4 -3
- package/api/index.js +3 -2
- package/api/timeline-item.d.ts +481 -1
- package/api/timeline-item.d.ts.map +1 -1
- package/api/timeline-item.js +17 -3
- package/api/timeline-item.js.map +1 -1
- package/enums.d.ts +1 -0
- package/enums.d.ts.map +1 -1
- package/enums.js +2 -1
- package/enums.js.map +1 -1
- package/index.d.ts +5 -3
- package/index.d.ts.map +1 -1
- package/index.js +4 -2
- package/package.json +1 -1
- package/realtime-events.d.ts +246 -0
- package/realtime-events.d.ts.map +1 -1
- package/realtime-events.js +22 -4
- package/realtime-events.js.map +1 -1
- package/schemas.d.ts +76 -0
- package/schemas.d.ts.map +1 -1
- package/tool-timeline-policy.d.ts +13 -0
- package/tool-timeline-policy.d.ts.map +1 -0
- package/tool-timeline-policy.js +24 -0
- package/tool-timeline-policy.js.map +1 -0
- package/trpc/conversation.d.ts +304 -0
- package/trpc/conversation.d.ts.map +1 -1
package/api/conversation.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
16
16
|
message: "message";
|
|
17
17
|
event: "event";
|
|
18
18
|
identification: "identification";
|
|
19
|
+
tool: "tool";
|
|
19
20
|
}>;
|
|
20
21
|
text: z.ZodNullable<z.ZodString>;
|
|
21
22
|
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -41,6 +42,19 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
41
42
|
}>>;
|
|
42
43
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
43
44
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
45
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
logType: z.ZodEnum<{
|
|
47
|
+
customer_facing: "customer_facing";
|
|
48
|
+
log: "log";
|
|
49
|
+
decision: "decision";
|
|
50
|
+
}>;
|
|
51
|
+
triggerMessageId: z.ZodString;
|
|
52
|
+
workflowRunId: z.ZodString;
|
|
53
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
public: "public";
|
|
55
|
+
private: "private";
|
|
56
|
+
}>>;
|
|
57
|
+
}, z.core.$strip>>;
|
|
44
58
|
}, z.core.$strip>>;
|
|
45
59
|
}, z.core.$loose>>;
|
|
46
60
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -55,6 +69,29 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
55
69
|
result: "result";
|
|
56
70
|
}>;
|
|
57
71
|
errorText: z.ZodOptional<z.ZodString>;
|
|
72
|
+
callProviderMetadata: z.ZodOptional<z.ZodObject<{
|
|
73
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
74
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
public: "public";
|
|
76
|
+
private: "private";
|
|
77
|
+
}>>;
|
|
78
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
79
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
80
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
81
|
+
logType: z.ZodEnum<{
|
|
82
|
+
customer_facing: "customer_facing";
|
|
83
|
+
log: "log";
|
|
84
|
+
decision: "decision";
|
|
85
|
+
}>;
|
|
86
|
+
triggerMessageId: z.ZodString;
|
|
87
|
+
workflowRunId: z.ZodString;
|
|
88
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
89
|
+
public: "public";
|
|
90
|
+
private: "private";
|
|
91
|
+
}>>;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
}, z.core.$loose>>;
|
|
58
95
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
59
96
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
60
97
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
@@ -63,6 +100,19 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
63
100
|
}>>;
|
|
64
101
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
65
102
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
103
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
104
|
+
logType: z.ZodEnum<{
|
|
105
|
+
customer_facing: "customer_facing";
|
|
106
|
+
log: "log";
|
|
107
|
+
decision: "decision";
|
|
108
|
+
}>;
|
|
109
|
+
triggerMessageId: z.ZodString;
|
|
110
|
+
workflowRunId: z.ZodString;
|
|
111
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
112
|
+
public: "public";
|
|
113
|
+
private: "private";
|
|
114
|
+
}>>;
|
|
115
|
+
}, z.core.$strip>>;
|
|
66
116
|
}, z.core.$strip>>;
|
|
67
117
|
}, z.core.$loose>>;
|
|
68
118
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -78,6 +128,19 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
78
128
|
}>>;
|
|
79
129
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
80
130
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
131
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
132
|
+
logType: z.ZodEnum<{
|
|
133
|
+
customer_facing: "customer_facing";
|
|
134
|
+
log: "log";
|
|
135
|
+
decision: "decision";
|
|
136
|
+
}>;
|
|
137
|
+
triggerMessageId: z.ZodString;
|
|
138
|
+
workflowRunId: z.ZodString;
|
|
139
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
140
|
+
public: "public";
|
|
141
|
+
private: "private";
|
|
142
|
+
}>>;
|
|
143
|
+
}, z.core.$strip>>;
|
|
81
144
|
}, z.core.$strip>>;
|
|
82
145
|
}, z.core.$loose>>;
|
|
83
146
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -94,6 +157,19 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
94
157
|
}>>;
|
|
95
158
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
96
159
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
160
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
161
|
+
logType: z.ZodEnum<{
|
|
162
|
+
customer_facing: "customer_facing";
|
|
163
|
+
log: "log";
|
|
164
|
+
decision: "decision";
|
|
165
|
+
}>;
|
|
166
|
+
triggerMessageId: z.ZodString;
|
|
167
|
+
workflowRunId: z.ZodString;
|
|
168
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
169
|
+
public: "public";
|
|
170
|
+
private: "private";
|
|
171
|
+
}>>;
|
|
172
|
+
}, z.core.$strip>>;
|
|
97
173
|
}, z.core.$strip>>;
|
|
98
174
|
}, z.core.$loose>>;
|
|
99
175
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -165,6 +241,7 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
165
241
|
message: "message";
|
|
166
242
|
event: "event";
|
|
167
243
|
identification: "identification";
|
|
244
|
+
tool: "tool";
|
|
168
245
|
}>;
|
|
169
246
|
text: z.ZodNullable<z.ZodString>;
|
|
170
247
|
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -190,6 +267,19 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
190
267
|
}>>;
|
|
191
268
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
192
269
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
270
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
271
|
+
logType: z.ZodEnum<{
|
|
272
|
+
customer_facing: "customer_facing";
|
|
273
|
+
log: "log";
|
|
274
|
+
decision: "decision";
|
|
275
|
+
}>;
|
|
276
|
+
triggerMessageId: z.ZodString;
|
|
277
|
+
workflowRunId: z.ZodString;
|
|
278
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
279
|
+
public: "public";
|
|
280
|
+
private: "private";
|
|
281
|
+
}>>;
|
|
282
|
+
}, z.core.$strip>>;
|
|
193
283
|
}, z.core.$strip>>;
|
|
194
284
|
}, z.core.$loose>>;
|
|
195
285
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -204,6 +294,29 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
204
294
|
result: "result";
|
|
205
295
|
}>;
|
|
206
296
|
errorText: z.ZodOptional<z.ZodString>;
|
|
297
|
+
callProviderMetadata: z.ZodOptional<z.ZodObject<{
|
|
298
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
299
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
300
|
+
public: "public";
|
|
301
|
+
private: "private";
|
|
302
|
+
}>>;
|
|
303
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
304
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
305
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
306
|
+
logType: z.ZodEnum<{
|
|
307
|
+
customer_facing: "customer_facing";
|
|
308
|
+
log: "log";
|
|
309
|
+
decision: "decision";
|
|
310
|
+
}>;
|
|
311
|
+
triggerMessageId: z.ZodString;
|
|
312
|
+
workflowRunId: z.ZodString;
|
|
313
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
314
|
+
public: "public";
|
|
315
|
+
private: "private";
|
|
316
|
+
}>>;
|
|
317
|
+
}, z.core.$strip>>;
|
|
318
|
+
}, z.core.$strip>>;
|
|
319
|
+
}, z.core.$loose>>;
|
|
207
320
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
208
321
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
209
322
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
@@ -212,6 +325,19 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
212
325
|
}>>;
|
|
213
326
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
214
327
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
328
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
329
|
+
logType: z.ZodEnum<{
|
|
330
|
+
customer_facing: "customer_facing";
|
|
331
|
+
log: "log";
|
|
332
|
+
decision: "decision";
|
|
333
|
+
}>;
|
|
334
|
+
triggerMessageId: z.ZodString;
|
|
335
|
+
workflowRunId: z.ZodString;
|
|
336
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
337
|
+
public: "public";
|
|
338
|
+
private: "private";
|
|
339
|
+
}>>;
|
|
340
|
+
}, z.core.$strip>>;
|
|
215
341
|
}, z.core.$strip>>;
|
|
216
342
|
}, z.core.$loose>>;
|
|
217
343
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -227,6 +353,19 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
227
353
|
}>>;
|
|
228
354
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
229
355
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
356
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
357
|
+
logType: z.ZodEnum<{
|
|
358
|
+
customer_facing: "customer_facing";
|
|
359
|
+
log: "log";
|
|
360
|
+
decision: "decision";
|
|
361
|
+
}>;
|
|
362
|
+
triggerMessageId: z.ZodString;
|
|
363
|
+
workflowRunId: z.ZodString;
|
|
364
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
365
|
+
public: "public";
|
|
366
|
+
private: "private";
|
|
367
|
+
}>>;
|
|
368
|
+
}, z.core.$strip>>;
|
|
230
369
|
}, z.core.$strip>>;
|
|
231
370
|
}, z.core.$loose>>;
|
|
232
371
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -243,6 +382,19 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
243
382
|
}>>;
|
|
244
383
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
245
384
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
385
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
386
|
+
logType: z.ZodEnum<{
|
|
387
|
+
customer_facing: "customer_facing";
|
|
388
|
+
log: "log";
|
|
389
|
+
decision: "decision";
|
|
390
|
+
}>;
|
|
391
|
+
triggerMessageId: z.ZodString;
|
|
392
|
+
workflowRunId: z.ZodString;
|
|
393
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
394
|
+
public: "public";
|
|
395
|
+
private: "private";
|
|
396
|
+
}>>;
|
|
397
|
+
}, z.core.$strip>>;
|
|
246
398
|
}, z.core.$strip>>;
|
|
247
399
|
}, z.core.$loose>>;
|
|
248
400
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -326,6 +478,7 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
326
478
|
message: "message";
|
|
327
479
|
event: "event";
|
|
328
480
|
identification: "identification";
|
|
481
|
+
tool: "tool";
|
|
329
482
|
}>;
|
|
330
483
|
text: z.ZodNullable<z.ZodString>;
|
|
331
484
|
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -351,6 +504,19 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
351
504
|
}>>;
|
|
352
505
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
353
506
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
507
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
508
|
+
logType: z.ZodEnum<{
|
|
509
|
+
customer_facing: "customer_facing";
|
|
510
|
+
log: "log";
|
|
511
|
+
decision: "decision";
|
|
512
|
+
}>;
|
|
513
|
+
triggerMessageId: z.ZodString;
|
|
514
|
+
workflowRunId: z.ZodString;
|
|
515
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
516
|
+
public: "public";
|
|
517
|
+
private: "private";
|
|
518
|
+
}>>;
|
|
519
|
+
}, z.core.$strip>>;
|
|
354
520
|
}, z.core.$strip>>;
|
|
355
521
|
}, z.core.$loose>>;
|
|
356
522
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -365,6 +531,29 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
365
531
|
result: "result";
|
|
366
532
|
}>;
|
|
367
533
|
errorText: z.ZodOptional<z.ZodString>;
|
|
534
|
+
callProviderMetadata: z.ZodOptional<z.ZodObject<{
|
|
535
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
536
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
537
|
+
public: "public";
|
|
538
|
+
private: "private";
|
|
539
|
+
}>>;
|
|
540
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
541
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
542
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
543
|
+
logType: z.ZodEnum<{
|
|
544
|
+
customer_facing: "customer_facing";
|
|
545
|
+
log: "log";
|
|
546
|
+
decision: "decision";
|
|
547
|
+
}>;
|
|
548
|
+
triggerMessageId: z.ZodString;
|
|
549
|
+
workflowRunId: z.ZodString;
|
|
550
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
551
|
+
public: "public";
|
|
552
|
+
private: "private";
|
|
553
|
+
}>>;
|
|
554
|
+
}, z.core.$strip>>;
|
|
555
|
+
}, z.core.$strip>>;
|
|
556
|
+
}, z.core.$loose>>;
|
|
368
557
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
369
558
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
370
559
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
@@ -373,6 +562,19 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
373
562
|
}>>;
|
|
374
563
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
375
564
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
565
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
566
|
+
logType: z.ZodEnum<{
|
|
567
|
+
customer_facing: "customer_facing";
|
|
568
|
+
log: "log";
|
|
569
|
+
decision: "decision";
|
|
570
|
+
}>;
|
|
571
|
+
triggerMessageId: z.ZodString;
|
|
572
|
+
workflowRunId: z.ZodString;
|
|
573
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
574
|
+
public: "public";
|
|
575
|
+
private: "private";
|
|
576
|
+
}>>;
|
|
577
|
+
}, z.core.$strip>>;
|
|
376
578
|
}, z.core.$strip>>;
|
|
377
579
|
}, z.core.$loose>>;
|
|
378
580
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -388,6 +590,19 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
388
590
|
}>>;
|
|
389
591
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
390
592
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
593
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
594
|
+
logType: z.ZodEnum<{
|
|
595
|
+
customer_facing: "customer_facing";
|
|
596
|
+
log: "log";
|
|
597
|
+
decision: "decision";
|
|
598
|
+
}>;
|
|
599
|
+
triggerMessageId: z.ZodString;
|
|
600
|
+
workflowRunId: z.ZodString;
|
|
601
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
602
|
+
public: "public";
|
|
603
|
+
private: "private";
|
|
604
|
+
}>>;
|
|
605
|
+
}, z.core.$strip>>;
|
|
391
606
|
}, z.core.$strip>>;
|
|
392
607
|
}, z.core.$loose>>;
|
|
393
608
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -404,6 +619,19 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
404
619
|
}>>;
|
|
405
620
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
406
621
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
622
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
623
|
+
logType: z.ZodEnum<{
|
|
624
|
+
customer_facing: "customer_facing";
|
|
625
|
+
log: "log";
|
|
626
|
+
decision: "decision";
|
|
627
|
+
}>;
|
|
628
|
+
triggerMessageId: z.ZodString;
|
|
629
|
+
workflowRunId: z.ZodString;
|
|
630
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
631
|
+
public: "public";
|
|
632
|
+
private: "private";
|
|
633
|
+
}>>;
|
|
634
|
+
}, z.core.$strip>>;
|
|
407
635
|
}, z.core.$strip>>;
|
|
408
636
|
}, z.core.$loose>>;
|
|
409
637
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -509,6 +737,7 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
509
737
|
message: "message";
|
|
510
738
|
event: "event";
|
|
511
739
|
identification: "identification";
|
|
740
|
+
tool: "tool";
|
|
512
741
|
}>;
|
|
513
742
|
text: z.ZodNullable<z.ZodString>;
|
|
514
743
|
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -534,6 +763,19 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
534
763
|
}>>;
|
|
535
764
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
536
765
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
766
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
767
|
+
logType: z.ZodEnum<{
|
|
768
|
+
customer_facing: "customer_facing";
|
|
769
|
+
log: "log";
|
|
770
|
+
decision: "decision";
|
|
771
|
+
}>;
|
|
772
|
+
triggerMessageId: z.ZodString;
|
|
773
|
+
workflowRunId: z.ZodString;
|
|
774
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
775
|
+
public: "public";
|
|
776
|
+
private: "private";
|
|
777
|
+
}>>;
|
|
778
|
+
}, z.core.$strip>>;
|
|
537
779
|
}, z.core.$strip>>;
|
|
538
780
|
}, z.core.$loose>>;
|
|
539
781
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -548,6 +790,29 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
548
790
|
result: "result";
|
|
549
791
|
}>;
|
|
550
792
|
errorText: z.ZodOptional<z.ZodString>;
|
|
793
|
+
callProviderMetadata: z.ZodOptional<z.ZodObject<{
|
|
794
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
795
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
796
|
+
public: "public";
|
|
797
|
+
private: "private";
|
|
798
|
+
}>>;
|
|
799
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
800
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
801
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
802
|
+
logType: z.ZodEnum<{
|
|
803
|
+
customer_facing: "customer_facing";
|
|
804
|
+
log: "log";
|
|
805
|
+
decision: "decision";
|
|
806
|
+
}>;
|
|
807
|
+
triggerMessageId: z.ZodString;
|
|
808
|
+
workflowRunId: z.ZodString;
|
|
809
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
810
|
+
public: "public";
|
|
811
|
+
private: "private";
|
|
812
|
+
}>>;
|
|
813
|
+
}, z.core.$strip>>;
|
|
814
|
+
}, z.core.$strip>>;
|
|
815
|
+
}, z.core.$loose>>;
|
|
551
816
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
552
817
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
553
818
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
@@ -556,6 +821,19 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
556
821
|
}>>;
|
|
557
822
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
558
823
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
824
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
825
|
+
logType: z.ZodEnum<{
|
|
826
|
+
customer_facing: "customer_facing";
|
|
827
|
+
log: "log";
|
|
828
|
+
decision: "decision";
|
|
829
|
+
}>;
|
|
830
|
+
triggerMessageId: z.ZodString;
|
|
831
|
+
workflowRunId: z.ZodString;
|
|
832
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
833
|
+
public: "public";
|
|
834
|
+
private: "private";
|
|
835
|
+
}>>;
|
|
836
|
+
}, z.core.$strip>>;
|
|
559
837
|
}, z.core.$strip>>;
|
|
560
838
|
}, z.core.$loose>>;
|
|
561
839
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -571,6 +849,19 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
571
849
|
}>>;
|
|
572
850
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
573
851
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
852
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
853
|
+
logType: z.ZodEnum<{
|
|
854
|
+
customer_facing: "customer_facing";
|
|
855
|
+
log: "log";
|
|
856
|
+
decision: "decision";
|
|
857
|
+
}>;
|
|
858
|
+
triggerMessageId: z.ZodString;
|
|
859
|
+
workflowRunId: z.ZodString;
|
|
860
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
861
|
+
public: "public";
|
|
862
|
+
private: "private";
|
|
863
|
+
}>>;
|
|
864
|
+
}, z.core.$strip>>;
|
|
574
865
|
}, z.core.$strip>>;
|
|
575
866
|
}, z.core.$loose>>;
|
|
576
867
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -587,6 +878,19 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
587
878
|
}>>;
|
|
588
879
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
589
880
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
881
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
882
|
+
logType: z.ZodEnum<{
|
|
883
|
+
customer_facing: "customer_facing";
|
|
884
|
+
log: "log";
|
|
885
|
+
decision: "decision";
|
|
886
|
+
}>;
|
|
887
|
+
triggerMessageId: z.ZodString;
|
|
888
|
+
workflowRunId: z.ZodString;
|
|
889
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
890
|
+
public: "public";
|
|
891
|
+
private: "private";
|
|
892
|
+
}>>;
|
|
893
|
+
}, z.core.$strip>>;
|
|
590
894
|
}, z.core.$strip>>;
|
|
591
895
|
}, z.core.$loose>>;
|
|
592
896
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -685,6 +989,7 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
685
989
|
message: "message";
|
|
686
990
|
event: "event";
|
|
687
991
|
identification: "identification";
|
|
992
|
+
tool: "tool";
|
|
688
993
|
}>;
|
|
689
994
|
text: z.ZodNullable<z.ZodString>;
|
|
690
995
|
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -710,6 +1015,19 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
710
1015
|
}>>;
|
|
711
1016
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
712
1017
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
1018
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
1019
|
+
logType: z.ZodEnum<{
|
|
1020
|
+
customer_facing: "customer_facing";
|
|
1021
|
+
log: "log";
|
|
1022
|
+
decision: "decision";
|
|
1023
|
+
}>;
|
|
1024
|
+
triggerMessageId: z.ZodString;
|
|
1025
|
+
workflowRunId: z.ZodString;
|
|
1026
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
1027
|
+
public: "public";
|
|
1028
|
+
private: "private";
|
|
1029
|
+
}>>;
|
|
1030
|
+
}, z.core.$strip>>;
|
|
713
1031
|
}, z.core.$strip>>;
|
|
714
1032
|
}, z.core.$loose>>;
|
|
715
1033
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -724,6 +1042,29 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
724
1042
|
result: "result";
|
|
725
1043
|
}>;
|
|
726
1044
|
errorText: z.ZodOptional<z.ZodString>;
|
|
1045
|
+
callProviderMetadata: z.ZodOptional<z.ZodObject<{
|
|
1046
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
1047
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1048
|
+
public: "public";
|
|
1049
|
+
private: "private";
|
|
1050
|
+
}>>;
|
|
1051
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
1052
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
1053
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
1054
|
+
logType: z.ZodEnum<{
|
|
1055
|
+
customer_facing: "customer_facing";
|
|
1056
|
+
log: "log";
|
|
1057
|
+
decision: "decision";
|
|
1058
|
+
}>;
|
|
1059
|
+
triggerMessageId: z.ZodString;
|
|
1060
|
+
workflowRunId: z.ZodString;
|
|
1061
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
1062
|
+
public: "public";
|
|
1063
|
+
private: "private";
|
|
1064
|
+
}>>;
|
|
1065
|
+
}, z.core.$strip>>;
|
|
1066
|
+
}, z.core.$strip>>;
|
|
1067
|
+
}, z.core.$loose>>;
|
|
727
1068
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
728
1069
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
729
1070
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
@@ -732,6 +1073,19 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
732
1073
|
}>>;
|
|
733
1074
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
734
1075
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
1076
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
1077
|
+
logType: z.ZodEnum<{
|
|
1078
|
+
customer_facing: "customer_facing";
|
|
1079
|
+
log: "log";
|
|
1080
|
+
decision: "decision";
|
|
1081
|
+
}>;
|
|
1082
|
+
triggerMessageId: z.ZodString;
|
|
1083
|
+
workflowRunId: z.ZodString;
|
|
1084
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
1085
|
+
public: "public";
|
|
1086
|
+
private: "private";
|
|
1087
|
+
}>>;
|
|
1088
|
+
}, z.core.$strip>>;
|
|
735
1089
|
}, z.core.$strip>>;
|
|
736
1090
|
}, z.core.$loose>>;
|
|
737
1091
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -747,6 +1101,19 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
747
1101
|
}>>;
|
|
748
1102
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
749
1103
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
1104
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
1105
|
+
logType: z.ZodEnum<{
|
|
1106
|
+
customer_facing: "customer_facing";
|
|
1107
|
+
log: "log";
|
|
1108
|
+
decision: "decision";
|
|
1109
|
+
}>;
|
|
1110
|
+
triggerMessageId: z.ZodString;
|
|
1111
|
+
workflowRunId: z.ZodString;
|
|
1112
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
1113
|
+
public: "public";
|
|
1114
|
+
private: "private";
|
|
1115
|
+
}>>;
|
|
1116
|
+
}, z.core.$strip>>;
|
|
750
1117
|
}, z.core.$strip>>;
|
|
751
1118
|
}, z.core.$loose>>;
|
|
752
1119
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -763,6 +1130,19 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
763
1130
|
}>>;
|
|
764
1131
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
765
1132
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
1133
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
1134
|
+
logType: z.ZodEnum<{
|
|
1135
|
+
customer_facing: "customer_facing";
|
|
1136
|
+
log: "log";
|
|
1137
|
+
decision: "decision";
|
|
1138
|
+
}>;
|
|
1139
|
+
triggerMessageId: z.ZodString;
|
|
1140
|
+
workflowRunId: z.ZodString;
|
|
1141
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
1142
|
+
public: "public";
|
|
1143
|
+
private: "private";
|
|
1144
|
+
}>>;
|
|
1145
|
+
}, z.core.$strip>>;
|
|
766
1146
|
}, z.core.$strip>>;
|
|
767
1147
|
}, z.core.$loose>>;
|
|
768
1148
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -845,6 +1225,7 @@ declare const setConversationTypingResponseSchema: z.ZodObject<{
|
|
|
845
1225
|
type SetConversationTypingResponseBody = z.infer<typeof setConversationTypingResponseSchema>;
|
|
846
1226
|
declare const submitConversationRatingRequestSchema: z.ZodObject<{
|
|
847
1227
|
rating: z.ZodNumber;
|
|
1228
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
848
1229
|
visitorId: z.ZodOptional<z.ZodString>;
|
|
849
1230
|
}, z.core.$strip>;
|
|
850
1231
|
type SubmitConversationRatingRequestBody = z.infer<typeof submitConversationRatingRequestSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","names":[],"sources":["../../src/api/conversation.ts"],"sourcesContent":[],"mappings":";;;cAIa,iCAA+B,CAAA,CAAA;;EAA/B,cAAA,eAAA,YAoBV,CAAA
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","names":[],"sources":["../../src/api/conversation.ts"],"sourcesContent":[],"mappings":";;;cAIa,iCAA+B,CAAA,CAAA;;EAA/B,cAAA,eAAA,YAoBV,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
|
|
|
69
69
|
description: "Visitor rating for the conversation (1-5)",
|
|
70
70
|
example: 5
|
|
71
71
|
}),
|
|
72
|
+
comment: z.string().optional().openapi({ description: "Optional written feedback about the conversation" }),
|
|
72
73
|
visitorId: z.string().optional().openapi({ description: "Visitor ID associated with the conversation. Optional if provided via the X-Visitor-Id header." })
|
|
73
74
|
}).openapi({ description: "Body for submitting a visitor rating on a conversation." });
|
|
74
75
|
const submitConversationRatingResponseSchema = z.object({
|