@cossistant/types 0.1.0 → 0.1.2
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/analytics.d.ts +31 -0
- package/analytics.d.ts.map +1 -0
- package/analytics.js +41 -0
- package/analytics.js.map +1 -0
- package/api/ai-agent-capabilities.d.ts +16 -19
- package/api/ai-agent-capabilities.d.ts.map +1 -1
- package/api/ai-agent-capabilities.js +215 -286
- package/api/ai-agent-capabilities.js.map +1 -1
- package/api/ai-agent-defaults.d.ts +6 -0
- package/api/ai-agent-defaults.d.ts.map +1 -0
- package/api/ai-agent-defaults.js +33 -0
- package/api/ai-agent-defaults.js.map +1 -0
- package/api/ai-agent.d.ts +314 -207
- package/api/ai-agent.d.ts.map +1 -1
- package/api/ai-agent.js +175 -111
- package/api/ai-agent.js.map +1 -1
- package/api/conversation.d.ts +79 -56
- package/api/conversation.d.ts.map +1 -1
- package/api/conversation.js +7 -2
- package/api/conversation.js.map +1 -1
- package/api/feedback.d.ts +5 -0
- package/api/feedback.d.ts.map +1 -1
- package/api/feedback.js +2 -0
- package/api/feedback.js.map +1 -1
- package/api/index.d.ts +7 -6
- package/api/index.js +7 -6
- package/api/link-source.d.ts +4 -4
- package/api/link-source.d.ts.map +1 -1
- package/api/link-source.js +1 -1
- package/api/link-source.js.map +1 -1
- package/api/timeline-item.d.ts +79 -67
- package/api/timeline-item.d.ts.map +1 -1
- package/api/timeline-item.js +3 -1
- package/api/timeline-item.js.map +1 -1
- package/api/user.d.ts +1 -1
- package/api/user.d.ts.map +1 -1
- package/api/user.js +2 -2
- package/api/user.js.map +1 -1
- package/api/visitor.d.ts +225 -1
- package/api/visitor.d.ts.map +1 -1
- package/api/visitor.js +142 -1
- package/api/visitor.js.map +1 -1
- package/api/website.d.ts +16 -7
- package/api/website.d.ts.map +1 -1
- package/api/website.js +16 -2
- package/api/website.js.map +1 -1
- package/enums.d.ts +2 -0
- package/enums.d.ts.map +1 -1
- package/enums.js +3 -1
- package/enums.js.map +1 -1
- package/index.d.ts +10 -8
- package/index.d.ts.map +1 -1
- package/index.js +10 -8
- package/package.json +1 -1
- package/realtime-events.d.ts +106 -36
- package/realtime-events.d.ts.map +1 -1
- package/realtime-events.js +6 -2
- package/realtime-events.js.map +1 -1
- package/schemas.d.ts +13 -11
- package/schemas.d.ts.map +1 -1
- package/tool-timeline-policy.d.ts +19 -2
- package/tool-timeline-policy.d.ts.map +1 -1
- package/tool-timeline-policy.js +29 -6
- package/tool-timeline-policy.js.map +1 -1
- package/trpc/conversation-hard-limit.d.ts +30 -0
- package/trpc/conversation-hard-limit.d.ts.map +1 -0
- package/trpc/conversation-hard-limit.js +43 -0
- package/trpc/conversation-hard-limit.js.map +1 -0
- package/trpc/conversation.d.ts +84 -44
- package/trpc/conversation.d.ts.map +1 -1
- package/trpc/conversation.js +6 -0
- package/trpc/conversation.js.map +1 -1
- package/trpc/visitor.d.ts +73 -15
- package/trpc/visitor.d.ts.map +1 -1
- package/trpc/visitor.js +15 -8
- package/trpc/visitor.js.map +1 -1
package/api/conversation.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
9
9
|
conversationId: z.ZodString;
|
|
10
10
|
organizationId: z.ZodString;
|
|
11
11
|
visibility: z.ZodEnum<{
|
|
12
|
-
private: "private";
|
|
13
12
|
public: "public";
|
|
13
|
+
private: "private";
|
|
14
14
|
}>;
|
|
15
15
|
type: z.ZodEnum<{
|
|
16
16
|
message: "message";
|
|
@@ -37,8 +37,8 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
37
37
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
38
38
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
39
39
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
40
|
-
private: "private";
|
|
41
40
|
public: "public";
|
|
41
|
+
private: "private";
|
|
42
42
|
}>>;
|
|
43
43
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
44
44
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -51,8 +51,8 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
51
51
|
triggerMessageId: z.ZodString;
|
|
52
52
|
workflowRunId: z.ZodString;
|
|
53
53
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
54
|
-
private: "private";
|
|
55
54
|
public: "public";
|
|
55
|
+
private: "private";
|
|
56
56
|
}>>;
|
|
57
57
|
}, z.core.$strip>>;
|
|
58
58
|
}, z.core.$strip>>;
|
|
@@ -72,8 +72,8 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
72
72
|
callProviderMetadata: z.ZodOptional<z.ZodObject<{
|
|
73
73
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
74
74
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
75
|
-
private: "private";
|
|
76
75
|
public: "public";
|
|
76
|
+
private: "private";
|
|
77
77
|
}>>;
|
|
78
78
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
79
79
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -86,8 +86,8 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
86
86
|
triggerMessageId: z.ZodString;
|
|
87
87
|
workflowRunId: z.ZodString;
|
|
88
88
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
89
|
-
private: "private";
|
|
90
89
|
public: "public";
|
|
90
|
+
private: "private";
|
|
91
91
|
}>>;
|
|
92
92
|
}, z.core.$strip>>;
|
|
93
93
|
}, z.core.$strip>>;
|
|
@@ -95,8 +95,8 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
95
95
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
96
96
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
97
97
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
98
|
-
private: "private";
|
|
99
98
|
public: "public";
|
|
99
|
+
private: "private";
|
|
100
100
|
}>>;
|
|
101
101
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
102
102
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -109,8 +109,8 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
109
109
|
triggerMessageId: z.ZodString;
|
|
110
110
|
workflowRunId: z.ZodString;
|
|
111
111
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
112
|
-
private: "private";
|
|
113
112
|
public: "public";
|
|
113
|
+
private: "private";
|
|
114
114
|
}>>;
|
|
115
115
|
}, z.core.$strip>>;
|
|
116
116
|
}, z.core.$strip>>;
|
|
@@ -123,8 +123,8 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
123
123
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
124
124
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
125
125
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
126
|
-
private: "private";
|
|
127
126
|
public: "public";
|
|
127
|
+
private: "private";
|
|
128
128
|
}>>;
|
|
129
129
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
130
130
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -137,8 +137,8 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
137
137
|
triggerMessageId: z.ZodString;
|
|
138
138
|
workflowRunId: z.ZodString;
|
|
139
139
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
140
|
-
private: "private";
|
|
141
140
|
public: "public";
|
|
141
|
+
private: "private";
|
|
142
142
|
}>>;
|
|
143
143
|
}, z.core.$strip>>;
|
|
144
144
|
}, z.core.$strip>>;
|
|
@@ -152,8 +152,8 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
152
152
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
153
153
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
154
154
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
155
|
-
private: "private";
|
|
156
155
|
public: "public";
|
|
156
|
+
private: "private";
|
|
157
157
|
}>>;
|
|
158
158
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
159
159
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -166,8 +166,8 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
166
166
|
triggerMessageId: z.ZodString;
|
|
167
167
|
workflowRunId: z.ZodString;
|
|
168
168
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
169
|
-
private: "private";
|
|
170
169
|
public: "public";
|
|
170
|
+
private: "private";
|
|
171
171
|
}>>;
|
|
172
172
|
}, z.core.$strip>>;
|
|
173
173
|
}, z.core.$strip>>;
|
|
@@ -205,6 +205,8 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
205
205
|
visitor_blocked: "visitor_blocked";
|
|
206
206
|
visitor_unblocked: "visitor_unblocked";
|
|
207
207
|
visitor_identified: "visitor_identified";
|
|
208
|
+
ai_paused: "ai_paused";
|
|
209
|
+
ai_resumed: "ai_resumed";
|
|
208
210
|
}>;
|
|
209
211
|
actorUserId: z.ZodNullable<z.ZodString>;
|
|
210
212
|
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
@@ -234,8 +236,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
234
236
|
conversationId: z.ZodString;
|
|
235
237
|
organizationId: z.ZodString;
|
|
236
238
|
visibility: z.ZodEnum<{
|
|
237
|
-
private: "private";
|
|
238
239
|
public: "public";
|
|
240
|
+
private: "private";
|
|
239
241
|
}>;
|
|
240
242
|
type: z.ZodEnum<{
|
|
241
243
|
message: "message";
|
|
@@ -262,8 +264,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
262
264
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
263
265
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
264
266
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
265
|
-
private: "private";
|
|
266
267
|
public: "public";
|
|
268
|
+
private: "private";
|
|
267
269
|
}>>;
|
|
268
270
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
269
271
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -276,8 +278,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
276
278
|
triggerMessageId: z.ZodString;
|
|
277
279
|
workflowRunId: z.ZodString;
|
|
278
280
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
279
|
-
private: "private";
|
|
280
281
|
public: "public";
|
|
282
|
+
private: "private";
|
|
281
283
|
}>>;
|
|
282
284
|
}, z.core.$strip>>;
|
|
283
285
|
}, z.core.$strip>>;
|
|
@@ -297,8 +299,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
297
299
|
callProviderMetadata: z.ZodOptional<z.ZodObject<{
|
|
298
300
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
299
301
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
300
|
-
private: "private";
|
|
301
302
|
public: "public";
|
|
303
|
+
private: "private";
|
|
302
304
|
}>>;
|
|
303
305
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
304
306
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -311,8 +313,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
311
313
|
triggerMessageId: z.ZodString;
|
|
312
314
|
workflowRunId: z.ZodString;
|
|
313
315
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
314
|
-
private: "private";
|
|
315
316
|
public: "public";
|
|
317
|
+
private: "private";
|
|
316
318
|
}>>;
|
|
317
319
|
}, z.core.$strip>>;
|
|
318
320
|
}, z.core.$strip>>;
|
|
@@ -320,8 +322,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
320
322
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
321
323
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
322
324
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
323
|
-
private: "private";
|
|
324
325
|
public: "public";
|
|
326
|
+
private: "private";
|
|
325
327
|
}>>;
|
|
326
328
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
327
329
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -334,8 +336,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
334
336
|
triggerMessageId: z.ZodString;
|
|
335
337
|
workflowRunId: z.ZodString;
|
|
336
338
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
337
|
-
private: "private";
|
|
338
339
|
public: "public";
|
|
340
|
+
private: "private";
|
|
339
341
|
}>>;
|
|
340
342
|
}, z.core.$strip>>;
|
|
341
343
|
}, z.core.$strip>>;
|
|
@@ -348,8 +350,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
348
350
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
349
351
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
350
352
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
351
|
-
private: "private";
|
|
352
353
|
public: "public";
|
|
354
|
+
private: "private";
|
|
353
355
|
}>>;
|
|
354
356
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
355
357
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -362,8 +364,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
362
364
|
triggerMessageId: z.ZodString;
|
|
363
365
|
workflowRunId: z.ZodString;
|
|
364
366
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
365
|
-
private: "private";
|
|
366
367
|
public: "public";
|
|
368
|
+
private: "private";
|
|
367
369
|
}>>;
|
|
368
370
|
}, z.core.$strip>>;
|
|
369
371
|
}, z.core.$strip>>;
|
|
@@ -377,8 +379,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
377
379
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
378
380
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
379
381
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
380
|
-
private: "private";
|
|
381
382
|
public: "public";
|
|
383
|
+
private: "private";
|
|
382
384
|
}>>;
|
|
383
385
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
384
386
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -391,8 +393,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
391
393
|
triggerMessageId: z.ZodString;
|
|
392
394
|
workflowRunId: z.ZodString;
|
|
393
395
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
394
|
-
private: "private";
|
|
395
396
|
public: "public";
|
|
397
|
+
private: "private";
|
|
396
398
|
}>>;
|
|
397
399
|
}, z.core.$strip>>;
|
|
398
400
|
}, z.core.$strip>>;
|
|
@@ -430,6 +432,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
430
432
|
visitor_blocked: "visitor_blocked";
|
|
431
433
|
visitor_unblocked: "visitor_unblocked";
|
|
432
434
|
visitor_identified: "visitor_identified";
|
|
435
|
+
ai_paused: "ai_paused";
|
|
436
|
+
ai_resumed: "ai_resumed";
|
|
433
437
|
}>;
|
|
434
438
|
actorUserId: z.ZodNullable<z.ZodString>;
|
|
435
439
|
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
@@ -471,8 +475,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
471
475
|
conversationId: z.ZodString;
|
|
472
476
|
organizationId: z.ZodString;
|
|
473
477
|
visibility: z.ZodEnum<{
|
|
474
|
-
private: "private";
|
|
475
478
|
public: "public";
|
|
479
|
+
private: "private";
|
|
476
480
|
}>;
|
|
477
481
|
type: z.ZodEnum<{
|
|
478
482
|
message: "message";
|
|
@@ -499,8 +503,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
499
503
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
500
504
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
501
505
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
502
|
-
private: "private";
|
|
503
506
|
public: "public";
|
|
507
|
+
private: "private";
|
|
504
508
|
}>>;
|
|
505
509
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
506
510
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -513,8 +517,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
513
517
|
triggerMessageId: z.ZodString;
|
|
514
518
|
workflowRunId: z.ZodString;
|
|
515
519
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
516
|
-
private: "private";
|
|
517
520
|
public: "public";
|
|
521
|
+
private: "private";
|
|
518
522
|
}>>;
|
|
519
523
|
}, z.core.$strip>>;
|
|
520
524
|
}, z.core.$strip>>;
|
|
@@ -534,8 +538,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
534
538
|
callProviderMetadata: z.ZodOptional<z.ZodObject<{
|
|
535
539
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
536
540
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
537
|
-
private: "private";
|
|
538
541
|
public: "public";
|
|
542
|
+
private: "private";
|
|
539
543
|
}>>;
|
|
540
544
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
541
545
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -548,8 +552,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
548
552
|
triggerMessageId: z.ZodString;
|
|
549
553
|
workflowRunId: z.ZodString;
|
|
550
554
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
551
|
-
private: "private";
|
|
552
555
|
public: "public";
|
|
556
|
+
private: "private";
|
|
553
557
|
}>>;
|
|
554
558
|
}, z.core.$strip>>;
|
|
555
559
|
}, z.core.$strip>>;
|
|
@@ -557,8 +561,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
557
561
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
558
562
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
559
563
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
560
|
-
private: "private";
|
|
561
564
|
public: "public";
|
|
565
|
+
private: "private";
|
|
562
566
|
}>>;
|
|
563
567
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
564
568
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -571,8 +575,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
571
575
|
triggerMessageId: z.ZodString;
|
|
572
576
|
workflowRunId: z.ZodString;
|
|
573
577
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
574
|
-
private: "private";
|
|
575
578
|
public: "public";
|
|
579
|
+
private: "private";
|
|
576
580
|
}>>;
|
|
577
581
|
}, z.core.$strip>>;
|
|
578
582
|
}, z.core.$strip>>;
|
|
@@ -585,8 +589,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
585
589
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
586
590
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
587
591
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
588
|
-
private: "private";
|
|
589
592
|
public: "public";
|
|
593
|
+
private: "private";
|
|
590
594
|
}>>;
|
|
591
595
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
592
596
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -599,8 +603,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
599
603
|
triggerMessageId: z.ZodString;
|
|
600
604
|
workflowRunId: z.ZodString;
|
|
601
605
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
602
|
-
private: "private";
|
|
603
606
|
public: "public";
|
|
607
|
+
private: "private";
|
|
604
608
|
}>>;
|
|
605
609
|
}, z.core.$strip>>;
|
|
606
610
|
}, z.core.$strip>>;
|
|
@@ -614,8 +618,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
614
618
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
615
619
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
616
620
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
617
|
-
private: "private";
|
|
618
621
|
public: "public";
|
|
622
|
+
private: "private";
|
|
619
623
|
}>>;
|
|
620
624
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
621
625
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -628,8 +632,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
628
632
|
triggerMessageId: z.ZodString;
|
|
629
633
|
workflowRunId: z.ZodString;
|
|
630
634
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
631
|
-
private: "private";
|
|
632
635
|
public: "public";
|
|
636
|
+
private: "private";
|
|
633
637
|
}>>;
|
|
634
638
|
}, z.core.$strip>>;
|
|
635
639
|
}, z.core.$strip>>;
|
|
@@ -667,6 +671,8 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
667
671
|
visitor_blocked: "visitor_blocked";
|
|
668
672
|
visitor_unblocked: "visitor_unblocked";
|
|
669
673
|
visitor_identified: "visitor_identified";
|
|
674
|
+
ai_paused: "ai_paused";
|
|
675
|
+
ai_resumed: "ai_resumed";
|
|
670
676
|
}>;
|
|
671
677
|
actorUserId: z.ZodNullable<z.ZodString>;
|
|
672
678
|
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
@@ -690,6 +696,19 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
690
696
|
}, z.core.$strip>;
|
|
691
697
|
}, z.core.$strip>;
|
|
692
698
|
type CreateConversationResponseBody = z.infer<typeof createConversationResponseSchema>;
|
|
699
|
+
declare const createConversationConflictCodeSchema: z.ZodEnum<{
|
|
700
|
+
CONVERSATION_ID_CONFLICT: "CONVERSATION_ID_CONFLICT";
|
|
701
|
+
TIMELINE_ITEM_ID_CONFLICT: "TIMELINE_ITEM_ID_CONFLICT";
|
|
702
|
+
}>;
|
|
703
|
+
type CreateConversationConflictCode = z.infer<typeof createConversationConflictCodeSchema>;
|
|
704
|
+
declare const createConversationConflictResponseSchema: z.ZodObject<{
|
|
705
|
+
code: z.ZodEnum<{
|
|
706
|
+
CONVERSATION_ID_CONFLICT: "CONVERSATION_ID_CONFLICT";
|
|
707
|
+
TIMELINE_ITEM_ID_CONFLICT: "TIMELINE_ITEM_ID_CONFLICT";
|
|
708
|
+
}>;
|
|
709
|
+
error: z.ZodString;
|
|
710
|
+
}, z.core.$strip>;
|
|
711
|
+
type CreateConversationConflictResponseBody = z.infer<typeof createConversationConflictResponseSchema>;
|
|
693
712
|
declare const listConversationsRequestSchema: z.ZodObject<{
|
|
694
713
|
visitorId: z.ZodOptional<z.ZodString>;
|
|
695
714
|
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -730,8 +749,8 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
730
749
|
conversationId: z.ZodString;
|
|
731
750
|
organizationId: z.ZodString;
|
|
732
751
|
visibility: z.ZodEnum<{
|
|
733
|
-
private: "private";
|
|
734
752
|
public: "public";
|
|
753
|
+
private: "private";
|
|
735
754
|
}>;
|
|
736
755
|
type: z.ZodEnum<{
|
|
737
756
|
message: "message";
|
|
@@ -758,8 +777,8 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
758
777
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
759
778
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
760
779
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
761
|
-
private: "private";
|
|
762
780
|
public: "public";
|
|
781
|
+
private: "private";
|
|
763
782
|
}>>;
|
|
764
783
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
765
784
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -772,8 +791,8 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
772
791
|
triggerMessageId: z.ZodString;
|
|
773
792
|
workflowRunId: z.ZodString;
|
|
774
793
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
775
|
-
private: "private";
|
|
776
794
|
public: "public";
|
|
795
|
+
private: "private";
|
|
777
796
|
}>>;
|
|
778
797
|
}, z.core.$strip>>;
|
|
779
798
|
}, z.core.$strip>>;
|
|
@@ -793,8 +812,8 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
793
812
|
callProviderMetadata: z.ZodOptional<z.ZodObject<{
|
|
794
813
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
795
814
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
796
|
-
private: "private";
|
|
797
815
|
public: "public";
|
|
816
|
+
private: "private";
|
|
798
817
|
}>>;
|
|
799
818
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
800
819
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -807,8 +826,8 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
807
826
|
triggerMessageId: z.ZodString;
|
|
808
827
|
workflowRunId: z.ZodString;
|
|
809
828
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
810
|
-
private: "private";
|
|
811
829
|
public: "public";
|
|
830
|
+
private: "private";
|
|
812
831
|
}>>;
|
|
813
832
|
}, z.core.$strip>>;
|
|
814
833
|
}, z.core.$strip>>;
|
|
@@ -816,8 +835,8 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
816
835
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
817
836
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
818
837
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
819
|
-
private: "private";
|
|
820
838
|
public: "public";
|
|
839
|
+
private: "private";
|
|
821
840
|
}>>;
|
|
822
841
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
823
842
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -830,8 +849,8 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
830
849
|
triggerMessageId: z.ZodString;
|
|
831
850
|
workflowRunId: z.ZodString;
|
|
832
851
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
833
|
-
private: "private";
|
|
834
852
|
public: "public";
|
|
853
|
+
private: "private";
|
|
835
854
|
}>>;
|
|
836
855
|
}, z.core.$strip>>;
|
|
837
856
|
}, z.core.$strip>>;
|
|
@@ -844,8 +863,8 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
844
863
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
845
864
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
846
865
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
847
|
-
private: "private";
|
|
848
866
|
public: "public";
|
|
867
|
+
private: "private";
|
|
849
868
|
}>>;
|
|
850
869
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
851
870
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -858,8 +877,8 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
858
877
|
triggerMessageId: z.ZodString;
|
|
859
878
|
workflowRunId: z.ZodString;
|
|
860
879
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
861
|
-
private: "private";
|
|
862
880
|
public: "public";
|
|
881
|
+
private: "private";
|
|
863
882
|
}>>;
|
|
864
883
|
}, z.core.$strip>>;
|
|
865
884
|
}, z.core.$strip>>;
|
|
@@ -873,8 +892,8 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
873
892
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
874
893
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
875
894
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
876
|
-
private: "private";
|
|
877
895
|
public: "public";
|
|
896
|
+
private: "private";
|
|
878
897
|
}>>;
|
|
879
898
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
880
899
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -887,8 +906,8 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
887
906
|
triggerMessageId: z.ZodString;
|
|
888
907
|
workflowRunId: z.ZodString;
|
|
889
908
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
890
|
-
private: "private";
|
|
891
909
|
public: "public";
|
|
910
|
+
private: "private";
|
|
892
911
|
}>>;
|
|
893
912
|
}, z.core.$strip>>;
|
|
894
913
|
}, z.core.$strip>>;
|
|
@@ -926,6 +945,8 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
926
945
|
visitor_blocked: "visitor_blocked";
|
|
927
946
|
visitor_unblocked: "visitor_unblocked";
|
|
928
947
|
visitor_identified: "visitor_identified";
|
|
948
|
+
ai_paused: "ai_paused";
|
|
949
|
+
ai_resumed: "ai_resumed";
|
|
929
950
|
}>;
|
|
930
951
|
actorUserId: z.ZodNullable<z.ZodString>;
|
|
931
952
|
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
@@ -982,8 +1003,8 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
982
1003
|
conversationId: z.ZodString;
|
|
983
1004
|
organizationId: z.ZodString;
|
|
984
1005
|
visibility: z.ZodEnum<{
|
|
985
|
-
private: "private";
|
|
986
1006
|
public: "public";
|
|
1007
|
+
private: "private";
|
|
987
1008
|
}>;
|
|
988
1009
|
type: z.ZodEnum<{
|
|
989
1010
|
message: "message";
|
|
@@ -1010,8 +1031,8 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
1010
1031
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
1011
1032
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
1012
1033
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1013
|
-
private: "private";
|
|
1014
1034
|
public: "public";
|
|
1035
|
+
private: "private";
|
|
1015
1036
|
}>>;
|
|
1016
1037
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
1017
1038
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -1024,8 +1045,8 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
1024
1045
|
triggerMessageId: z.ZodString;
|
|
1025
1046
|
workflowRunId: z.ZodString;
|
|
1026
1047
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
1027
|
-
private: "private";
|
|
1028
1048
|
public: "public";
|
|
1049
|
+
private: "private";
|
|
1029
1050
|
}>>;
|
|
1030
1051
|
}, z.core.$strip>>;
|
|
1031
1052
|
}, z.core.$strip>>;
|
|
@@ -1045,8 +1066,8 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
1045
1066
|
callProviderMetadata: z.ZodOptional<z.ZodObject<{
|
|
1046
1067
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
1047
1068
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1048
|
-
private: "private";
|
|
1049
1069
|
public: "public";
|
|
1070
|
+
private: "private";
|
|
1050
1071
|
}>>;
|
|
1051
1072
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
1052
1073
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -1059,8 +1080,8 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
1059
1080
|
triggerMessageId: z.ZodString;
|
|
1060
1081
|
workflowRunId: z.ZodString;
|
|
1061
1082
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
1062
|
-
private: "private";
|
|
1063
1083
|
public: "public";
|
|
1084
|
+
private: "private";
|
|
1064
1085
|
}>>;
|
|
1065
1086
|
}, z.core.$strip>>;
|
|
1066
1087
|
}, z.core.$strip>>;
|
|
@@ -1068,8 +1089,8 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
1068
1089
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
1069
1090
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
1070
1091
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1071
|
-
private: "private";
|
|
1072
1092
|
public: "public";
|
|
1093
|
+
private: "private";
|
|
1073
1094
|
}>>;
|
|
1074
1095
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
1075
1096
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -1082,8 +1103,8 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
1082
1103
|
triggerMessageId: z.ZodString;
|
|
1083
1104
|
workflowRunId: z.ZodString;
|
|
1084
1105
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
1085
|
-
private: "private";
|
|
1086
1106
|
public: "public";
|
|
1107
|
+
private: "private";
|
|
1087
1108
|
}>>;
|
|
1088
1109
|
}, z.core.$strip>>;
|
|
1089
1110
|
}, z.core.$strip>>;
|
|
@@ -1096,8 +1117,8 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
1096
1117
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
1097
1118
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
1098
1119
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1099
|
-
private: "private";
|
|
1100
1120
|
public: "public";
|
|
1121
|
+
private: "private";
|
|
1101
1122
|
}>>;
|
|
1102
1123
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
1103
1124
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -1110,8 +1131,8 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
1110
1131
|
triggerMessageId: z.ZodString;
|
|
1111
1132
|
workflowRunId: z.ZodString;
|
|
1112
1133
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
1113
|
-
private: "private";
|
|
1114
1134
|
public: "public";
|
|
1135
|
+
private: "private";
|
|
1115
1136
|
}>>;
|
|
1116
1137
|
}, z.core.$strip>>;
|
|
1117
1138
|
}, z.core.$strip>>;
|
|
@@ -1125,8 +1146,8 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
1125
1146
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
1126
1147
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
1127
1148
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1128
|
-
private: "private";
|
|
1129
1149
|
public: "public";
|
|
1150
|
+
private: "private";
|
|
1130
1151
|
}>>;
|
|
1131
1152
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
1132
1153
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
@@ -1139,8 +1160,8 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
1139
1160
|
triggerMessageId: z.ZodString;
|
|
1140
1161
|
workflowRunId: z.ZodString;
|
|
1141
1162
|
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
1142
|
-
private: "private";
|
|
1143
1163
|
public: "public";
|
|
1164
|
+
private: "private";
|
|
1144
1165
|
}>>;
|
|
1145
1166
|
}, z.core.$strip>>;
|
|
1146
1167
|
}, z.core.$strip>>;
|
|
@@ -1178,6 +1199,8 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
1178
1199
|
visitor_blocked: "visitor_blocked";
|
|
1179
1200
|
visitor_unblocked: "visitor_unblocked";
|
|
1180
1201
|
visitor_identified: "visitor_identified";
|
|
1202
|
+
ai_paused: "ai_paused";
|
|
1203
|
+
ai_resumed: "ai_resumed";
|
|
1181
1204
|
}>;
|
|
1182
1205
|
actorUserId: z.ZodNullable<z.ZodString>;
|
|
1183
1206
|
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
@@ -1250,5 +1273,5 @@ declare const getConversationSeenDataResponseSchema: z.ZodObject<{
|
|
|
1250
1273
|
}, z.core.$strip>;
|
|
1251
1274
|
type GetConversationSeenDataResponse = z.infer<typeof getConversationSeenDataResponseSchema>;
|
|
1252
1275
|
//#endregion
|
|
1253
|
-
export { CreateConversationRequestBody, CreateConversationResponseBody, GetConversationRequest, GetConversationResponse, GetConversationSeenDataResponse, ListConversationsRequest, ListConversationsResponse, MarkConversationSeenRequestBody, MarkConversationSeenResponseBody, SetConversationTypingRequestBody, SetConversationTypingResponseBody, SubmitConversationRatingRequestBody, SubmitConversationRatingResponseBody, createConversationRequestSchema, createConversationResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, listConversationsRequestSchema, listConversationsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema, submitConversationRatingRequestSchema, submitConversationRatingResponseSchema };
|
|
1276
|
+
export { CreateConversationConflictCode, CreateConversationConflictResponseBody, CreateConversationRequestBody, CreateConversationResponseBody, GetConversationRequest, GetConversationResponse, GetConversationSeenDataResponse, ListConversationsRequest, ListConversationsResponse, MarkConversationSeenRequestBody, MarkConversationSeenResponseBody, SetConversationTypingRequestBody, SetConversationTypingResponseBody, SubmitConversationRatingRequestBody, SubmitConversationRatingResponseBody, createConversationConflictCodeSchema, createConversationConflictResponseSchema, createConversationRequestSchema, createConversationResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, listConversationsRequestSchema, listConversationsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema, submitConversationRatingRequestSchema, submitConversationRatingResponseSchema };
|
|
1254
1277
|
//# sourceMappingURL=conversation.d.ts.map
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IApByC,
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","names":[],"sources":["../../src/api/conversation.ts"],"sourcesContent":[],"mapp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CD,iCAAA,GAAoC,CAAA,CAAE,aAC1C;cAGK,uCAAqC,CAAA,CAAA;;;;;KAkBtC,mCAAA,GAAsC,CAAA,CAAE,aAC5C;cAGK,wCAAsC,CAAA,CAAA;;;;;KAgBvC,oCAAA,GAAuC,CAAA,CAAE,aAC7C;AAG0C,cAArC,qCAAqC,EAAA,CAAA,CAAA,SAAA,CAAA;EAAA,QAAA,YAAA,YAAA,CAAA;IAuCtC,EAAA,aAAA;;;;;;;;;;;KAAA,+BAAA,GAAkC,CAAA,CAAE,aACxC"}
|
package/api/conversation.js
CHANGED
|
@@ -5,7 +5,7 @@ import { z } from "@hono/zod-openapi";
|
|
|
5
5
|
//#region src/api/conversation.ts
|
|
6
6
|
const createConversationRequestSchema = z.object({
|
|
7
7
|
visitorId: z.string().optional().openapi({ description: "Visitor ID, if not provided you must provide a visitorId in the headers." }),
|
|
8
|
-
conversationId: z.string().optional().openapi({ description: "
|
|
8
|
+
conversationId: z.string().optional().openapi({ description: "Optional idempotency key for conversation creation. If provided, it is scoped to one organization+website+visitor owner tuple; retries with the same tuple reuse the existing conversation." }),
|
|
9
9
|
defaultTimelineItems: z.array(timelineItemSchema).openapi({ description: "Default timeline items to initiate the conversation with" }),
|
|
10
10
|
channel: z.string().default("widget").openapi({
|
|
11
11
|
description: "Which channel the conversation is from",
|
|
@@ -16,6 +16,11 @@ const createConversationResponseSchema = z.object({
|
|
|
16
16
|
initialTimelineItems: z.array(timelineItemSchema),
|
|
17
17
|
conversation: conversationSchema
|
|
18
18
|
}).openapi({ description: "Body including created conversation and default messages" });
|
|
19
|
+
const createConversationConflictCodeSchema = z.enum(["CONVERSATION_ID_CONFLICT", "TIMELINE_ITEM_ID_CONFLICT"]);
|
|
20
|
+
const createConversationConflictResponseSchema = z.object({
|
|
21
|
+
code: createConversationConflictCodeSchema,
|
|
22
|
+
error: z.string()
|
|
23
|
+
}).openapi({ description: "Conflict response when conversationId is already claimed by a different visitor or tenant." });
|
|
19
24
|
const listConversationsRequestSchema = z.object({
|
|
20
25
|
visitorId: z.string().optional().openapi({ description: "Visitor ID to fetch conversations for." }),
|
|
21
26
|
page: z.coerce.number().min(1).default(1).openapi({
|
|
@@ -90,5 +95,5 @@ const getConversationSeenDataResponseSchema = z.object({ seenData: z.array(z.obj
|
|
|
90
95
|
})) }).openapi({ description: "Response containing seen data for a conversation" });
|
|
91
96
|
|
|
92
97
|
//#endregion
|
|
93
|
-
export { createConversationRequestSchema, createConversationResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, listConversationsRequestSchema, listConversationsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema, submitConversationRatingRequestSchema, submitConversationRatingResponseSchema };
|
|
98
|
+
export { createConversationConflictCodeSchema, createConversationConflictResponseSchema, createConversationRequestSchema, createConversationResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, listConversationsRequestSchema, listConversationsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema, submitConversationRatingRequestSchema, submitConversationRatingResponseSchema };
|
|
94
99
|
//# sourceMappingURL=conversation.js.map
|