@anchrd/colab-sdk 0.1.51 → 0.1.52

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.
@@ -0,0 +1,566 @@
1
+ import { z } from "zod";
2
+ export declare const ConversationId: z.ZodTemplateLiteral<`conversation_${string}`>;
3
+ export type ConversationId = z.infer<typeof ConversationId>;
4
+ export declare const ConversationMessageId: z.ZodTemplateLiteral<`message_${string}`>;
5
+ export type ConversationMessageId = z.infer<typeof ConversationMessageId>;
6
+ export declare const ConversationStepId: z.ZodTemplateLiteral<`step_${string}`>;
7
+ export type ConversationStepId = z.infer<typeof ConversationStepId>;
8
+ export declare const conversationTitleMax = 120;
9
+ export declare const conversationTextMax = 20000;
10
+ export declare const ConversationStatus: z.ZodEnum<{
11
+ archived: "archived";
12
+ open: "open";
13
+ }>;
14
+ export type ConversationStatus = z.infer<typeof ConversationStatus>;
15
+ export declare const ConversationStep: z.ZodObject<{
16
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
17
+ tool: z.ZodString;
18
+ name: z.ZodNullable<z.ZodString>;
19
+ status: z.ZodEnum<{
20
+ done: "done";
21
+ running: "running";
22
+ failed: "failed";
23
+ }>;
24
+ startedAt: z.ZodISODateTime;
25
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
26
+ }, z.core.$strip>;
27
+ export type ConversationStep = z.infer<typeof ConversationStep>;
28
+ export declare const ConversationMessageStatus: z.ZodEnum<{
29
+ done: "done";
30
+ failed: "failed";
31
+ answering: "answering";
32
+ aborted: "aborted";
33
+ }>;
34
+ export type ConversationMessageStatus = z.infer<typeof ConversationMessageStatus>;
35
+ export declare const ConversationMessage: z.ZodObject<{
36
+ messageId: z.ZodTemplateLiteral<`message_${string}`>;
37
+ role: z.ZodEnum<{
38
+ operator: "operator";
39
+ person: "person";
40
+ }>;
41
+ text: z.ZodString;
42
+ steps: z.ZodArray<z.ZodObject<{
43
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
44
+ tool: z.ZodString;
45
+ name: z.ZodNullable<z.ZodString>;
46
+ status: z.ZodEnum<{
47
+ done: "done";
48
+ running: "running";
49
+ failed: "failed";
50
+ }>;
51
+ startedAt: z.ZodISODateTime;
52
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
53
+ }, z.core.$strip>>;
54
+ status: z.ZodEnum<{
55
+ done: "done";
56
+ failed: "failed";
57
+ answering: "answering";
58
+ aborted: "aborted";
59
+ }>;
60
+ detail: z.ZodNullable<z.ZodString>;
61
+ clientId: z.ZodNullable<z.ZodString>;
62
+ createdAt: z.ZodISODateTime;
63
+ costUsd: z.ZodNullable<z.ZodNumber>;
64
+ tokens: z.ZodNullable<z.ZodObject<{
65
+ input: z.ZodInt;
66
+ output: z.ZodInt;
67
+ cacheRead: z.ZodInt;
68
+ cacheWrite: z.ZodInt;
69
+ }, z.core.$strip>>;
70
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
71
+ attachmentId: z.ZodTemplateLiteral<`attachment_${string}`>;
72
+ name: z.ZodString;
73
+ mediaType: z.ZodString;
74
+ size: z.ZodNumber;
75
+ image: z.ZodBoolean;
76
+ contentUrl: z.ZodString;
77
+ previewUrl: z.ZodNullable<z.ZodString>;
78
+ }, z.core.$strip>>>;
79
+ }, z.core.$strip>;
80
+ export type ConversationMessage = z.infer<typeof ConversationMessage>;
81
+ export declare const Conversation: z.ZodObject<{
82
+ conversationId: z.ZodTemplateLiteral<`conversation_${string}`>;
83
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
84
+ machineId: z.ZodTemplateLiteral<`user_${string}`>;
85
+ operator: z.ZodNullable<z.ZodObject<{
86
+ name: z.ZodString;
87
+ model: z.ZodString;
88
+ }, z.core.$strip>>;
89
+ title: z.ZodString;
90
+ status: z.ZodEnum<{
91
+ archived: "archived";
92
+ open: "open";
93
+ }>;
94
+ messageCount: z.ZodInt;
95
+ costUsd: z.ZodNullable<z.ZodNumber>;
96
+ tokens: z.ZodObject<{
97
+ input: z.ZodInt;
98
+ output: z.ZodInt;
99
+ cacheRead: z.ZodInt;
100
+ cacheWrite: z.ZodInt;
101
+ }, z.core.$strip>;
102
+ createdAt: z.ZodISODateTime;
103
+ updatedAt: z.ZodISODateTime;
104
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
105
+ rev: z.ZodInt;
106
+ }, z.core.$strip>;
107
+ export type Conversation = z.infer<typeof Conversation>;
108
+ export declare const ConversationHit: z.ZodObject<{
109
+ conversationId: z.ZodTemplateLiteral<`conversation_${string}`>;
110
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
111
+ machineId: z.ZodTemplateLiteral<`user_${string}`>;
112
+ operator: z.ZodNullable<z.ZodObject<{
113
+ name: z.ZodString;
114
+ model: z.ZodString;
115
+ }, z.core.$strip>>;
116
+ title: z.ZodString;
117
+ status: z.ZodEnum<{
118
+ archived: "archived";
119
+ open: "open";
120
+ }>;
121
+ messageCount: z.ZodInt;
122
+ costUsd: z.ZodNullable<z.ZodNumber>;
123
+ tokens: z.ZodObject<{
124
+ input: z.ZodInt;
125
+ output: z.ZodInt;
126
+ cacheRead: z.ZodInt;
127
+ cacheWrite: z.ZodInt;
128
+ }, z.core.$strip>;
129
+ createdAt: z.ZodISODateTime;
130
+ updatedAt: z.ZodISODateTime;
131
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
132
+ rev: z.ZodInt;
133
+ excerpt: z.ZodNullable<z.ZodString>;
134
+ }, z.core.$strip>;
135
+ export type ConversationHit = z.infer<typeof ConversationHit>;
136
+ export declare const ConversationClientMessage: z.ZodDiscriminatedUnion<[z.ZodObject<{
137
+ type: z.ZodLiteral<"send">;
138
+ clientId: z.ZodString;
139
+ text: z.ZodString;
140
+ attachments: z.ZodOptional<z.ZodArray<z.ZodTemplateLiteral<`attachment_${string}`>>>;
141
+ }, z.core.$strict>, z.ZodObject<{
142
+ type: z.ZodLiteral<"abort">;
143
+ }, z.core.$strict>], "type">;
144
+ export type ConversationClientMessage = z.infer<typeof ConversationClientMessage>;
145
+ export declare const ConversationServerMessage: z.ZodDiscriminatedUnion<[z.ZodObject<{
146
+ type: z.ZodLiteral<"state">;
147
+ conversation: z.ZodObject<{
148
+ conversationId: z.ZodTemplateLiteral<`conversation_${string}`>;
149
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
150
+ machineId: z.ZodTemplateLiteral<`user_${string}`>;
151
+ operator: z.ZodNullable<z.ZodObject<{
152
+ name: z.ZodString;
153
+ model: z.ZodString;
154
+ }, z.core.$strip>>;
155
+ title: z.ZodString;
156
+ status: z.ZodEnum<{
157
+ archived: "archived";
158
+ open: "open";
159
+ }>;
160
+ messageCount: z.ZodInt;
161
+ costUsd: z.ZodNullable<z.ZodNumber>;
162
+ tokens: z.ZodObject<{
163
+ input: z.ZodInt;
164
+ output: z.ZodInt;
165
+ cacheRead: z.ZodInt;
166
+ cacheWrite: z.ZodInt;
167
+ }, z.core.$strip>;
168
+ createdAt: z.ZodISODateTime;
169
+ updatedAt: z.ZodISODateTime;
170
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
171
+ rev: z.ZodInt;
172
+ }, z.core.$strip>;
173
+ messages: z.ZodArray<z.ZodObject<{
174
+ messageId: z.ZodTemplateLiteral<`message_${string}`>;
175
+ role: z.ZodEnum<{
176
+ operator: "operator";
177
+ person: "person";
178
+ }>;
179
+ text: z.ZodString;
180
+ steps: z.ZodArray<z.ZodObject<{
181
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
182
+ tool: z.ZodString;
183
+ name: z.ZodNullable<z.ZodString>;
184
+ status: z.ZodEnum<{
185
+ done: "done";
186
+ running: "running";
187
+ failed: "failed";
188
+ }>;
189
+ startedAt: z.ZodISODateTime;
190
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
191
+ }, z.core.$strip>>;
192
+ status: z.ZodEnum<{
193
+ done: "done";
194
+ failed: "failed";
195
+ answering: "answering";
196
+ aborted: "aborted";
197
+ }>;
198
+ detail: z.ZodNullable<z.ZodString>;
199
+ clientId: z.ZodNullable<z.ZodString>;
200
+ createdAt: z.ZodISODateTime;
201
+ costUsd: z.ZodNullable<z.ZodNumber>;
202
+ tokens: z.ZodNullable<z.ZodObject<{
203
+ input: z.ZodInt;
204
+ output: z.ZodInt;
205
+ cacheRead: z.ZodInt;
206
+ cacheWrite: z.ZodInt;
207
+ }, z.core.$strip>>;
208
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
209
+ attachmentId: z.ZodTemplateLiteral<`attachment_${string}`>;
210
+ name: z.ZodString;
211
+ mediaType: z.ZodString;
212
+ size: z.ZodNumber;
213
+ image: z.ZodBoolean;
214
+ contentUrl: z.ZodString;
215
+ previewUrl: z.ZodNullable<z.ZodString>;
216
+ }, z.core.$strip>>>;
217
+ }, z.core.$strip>>;
218
+ }, z.core.$strip>, z.ZodObject<{
219
+ type: z.ZodLiteral<"message">;
220
+ message: z.ZodObject<{
221
+ messageId: z.ZodTemplateLiteral<`message_${string}`>;
222
+ role: z.ZodEnum<{
223
+ operator: "operator";
224
+ person: "person";
225
+ }>;
226
+ text: z.ZodString;
227
+ steps: z.ZodArray<z.ZodObject<{
228
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
229
+ tool: z.ZodString;
230
+ name: z.ZodNullable<z.ZodString>;
231
+ status: z.ZodEnum<{
232
+ done: "done";
233
+ running: "running";
234
+ failed: "failed";
235
+ }>;
236
+ startedAt: z.ZodISODateTime;
237
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
238
+ }, z.core.$strip>>;
239
+ status: z.ZodEnum<{
240
+ done: "done";
241
+ failed: "failed";
242
+ answering: "answering";
243
+ aborted: "aborted";
244
+ }>;
245
+ detail: z.ZodNullable<z.ZodString>;
246
+ clientId: z.ZodNullable<z.ZodString>;
247
+ createdAt: z.ZodISODateTime;
248
+ costUsd: z.ZodNullable<z.ZodNumber>;
249
+ tokens: z.ZodNullable<z.ZodObject<{
250
+ input: z.ZodInt;
251
+ output: z.ZodInt;
252
+ cacheRead: z.ZodInt;
253
+ cacheWrite: z.ZodInt;
254
+ }, z.core.$strip>>;
255
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
256
+ attachmentId: z.ZodTemplateLiteral<`attachment_${string}`>;
257
+ name: z.ZodString;
258
+ mediaType: z.ZodString;
259
+ size: z.ZodNumber;
260
+ image: z.ZodBoolean;
261
+ contentUrl: z.ZodString;
262
+ previewUrl: z.ZodNullable<z.ZodString>;
263
+ }, z.core.$strip>>>;
264
+ }, z.core.$strip>;
265
+ }, z.core.$strip>, z.ZodObject<{
266
+ type: z.ZodLiteral<"answer.start">;
267
+ message: z.ZodObject<{
268
+ messageId: z.ZodTemplateLiteral<`message_${string}`>;
269
+ role: z.ZodEnum<{
270
+ operator: "operator";
271
+ person: "person";
272
+ }>;
273
+ text: z.ZodString;
274
+ steps: z.ZodArray<z.ZodObject<{
275
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
276
+ tool: z.ZodString;
277
+ name: z.ZodNullable<z.ZodString>;
278
+ status: z.ZodEnum<{
279
+ done: "done";
280
+ running: "running";
281
+ failed: "failed";
282
+ }>;
283
+ startedAt: z.ZodISODateTime;
284
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
285
+ }, z.core.$strip>>;
286
+ status: z.ZodEnum<{
287
+ done: "done";
288
+ failed: "failed";
289
+ answering: "answering";
290
+ aborted: "aborted";
291
+ }>;
292
+ detail: z.ZodNullable<z.ZodString>;
293
+ clientId: z.ZodNullable<z.ZodString>;
294
+ createdAt: z.ZodISODateTime;
295
+ costUsd: z.ZodNullable<z.ZodNumber>;
296
+ tokens: z.ZodNullable<z.ZodObject<{
297
+ input: z.ZodInt;
298
+ output: z.ZodInt;
299
+ cacheRead: z.ZodInt;
300
+ cacheWrite: z.ZodInt;
301
+ }, z.core.$strip>>;
302
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
303
+ attachmentId: z.ZodTemplateLiteral<`attachment_${string}`>;
304
+ name: z.ZodString;
305
+ mediaType: z.ZodString;
306
+ size: z.ZodNumber;
307
+ image: z.ZodBoolean;
308
+ contentUrl: z.ZodString;
309
+ previewUrl: z.ZodNullable<z.ZodString>;
310
+ }, z.core.$strip>>>;
311
+ }, z.core.$strip>;
312
+ }, z.core.$strip>, z.ZodObject<{
313
+ type: z.ZodLiteral<"answer.text">;
314
+ messageId: z.ZodTemplateLiteral<`message_${string}`>;
315
+ delta: z.ZodString;
316
+ }, z.core.$strip>, z.ZodObject<{
317
+ type: z.ZodLiteral<"answer.step">;
318
+ messageId: z.ZodTemplateLiteral<`message_${string}`>;
319
+ step: z.ZodObject<{
320
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
321
+ tool: z.ZodString;
322
+ name: z.ZodNullable<z.ZodString>;
323
+ status: z.ZodEnum<{
324
+ done: "done";
325
+ running: "running";
326
+ failed: "failed";
327
+ }>;
328
+ startedAt: z.ZodISODateTime;
329
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
330
+ }, z.core.$strip>;
331
+ }, z.core.$strip>, z.ZodObject<{
332
+ type: z.ZodLiteral<"answer.end">;
333
+ message: z.ZodObject<{
334
+ messageId: z.ZodTemplateLiteral<`message_${string}`>;
335
+ role: z.ZodEnum<{
336
+ operator: "operator";
337
+ person: "person";
338
+ }>;
339
+ text: z.ZodString;
340
+ steps: z.ZodArray<z.ZodObject<{
341
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
342
+ tool: z.ZodString;
343
+ name: z.ZodNullable<z.ZodString>;
344
+ status: z.ZodEnum<{
345
+ done: "done";
346
+ running: "running";
347
+ failed: "failed";
348
+ }>;
349
+ startedAt: z.ZodISODateTime;
350
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
351
+ }, z.core.$strip>>;
352
+ status: z.ZodEnum<{
353
+ done: "done";
354
+ failed: "failed";
355
+ answering: "answering";
356
+ aborted: "aborted";
357
+ }>;
358
+ detail: z.ZodNullable<z.ZodString>;
359
+ clientId: z.ZodNullable<z.ZodString>;
360
+ createdAt: z.ZodISODateTime;
361
+ costUsd: z.ZodNullable<z.ZodNumber>;
362
+ tokens: z.ZodNullable<z.ZodObject<{
363
+ input: z.ZodInt;
364
+ output: z.ZodInt;
365
+ cacheRead: z.ZodInt;
366
+ cacheWrite: z.ZodInt;
367
+ }, z.core.$strip>>;
368
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
369
+ attachmentId: z.ZodTemplateLiteral<`attachment_${string}`>;
370
+ name: z.ZodString;
371
+ mediaType: z.ZodString;
372
+ size: z.ZodNumber;
373
+ image: z.ZodBoolean;
374
+ contentUrl: z.ZodString;
375
+ previewUrl: z.ZodNullable<z.ZodString>;
376
+ }, z.core.$strip>>>;
377
+ }, z.core.$strip>;
378
+ }, z.core.$strip>, z.ZodObject<{
379
+ type: z.ZodLiteral<"conversation">;
380
+ conversation: z.ZodObject<{
381
+ conversationId: z.ZodTemplateLiteral<`conversation_${string}`>;
382
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
383
+ machineId: z.ZodTemplateLiteral<`user_${string}`>;
384
+ operator: z.ZodNullable<z.ZodObject<{
385
+ name: z.ZodString;
386
+ model: z.ZodString;
387
+ }, z.core.$strip>>;
388
+ title: z.ZodString;
389
+ status: z.ZodEnum<{
390
+ archived: "archived";
391
+ open: "open";
392
+ }>;
393
+ messageCount: z.ZodInt;
394
+ costUsd: z.ZodNullable<z.ZodNumber>;
395
+ tokens: z.ZodObject<{
396
+ input: z.ZodInt;
397
+ output: z.ZodInt;
398
+ cacheRead: z.ZodInt;
399
+ cacheWrite: z.ZodInt;
400
+ }, z.core.$strip>;
401
+ createdAt: z.ZodISODateTime;
402
+ updatedAt: z.ZodISODateTime;
403
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
404
+ rev: z.ZodInt;
405
+ }, z.core.$strip>;
406
+ }, z.core.$strip>, z.ZodObject<{
407
+ type: z.ZodLiteral<"error">;
408
+ code: z.ZodEnum<{
409
+ unavailable: "unavailable";
410
+ invalid: "invalid";
411
+ conflict: "conflict";
412
+ }>;
413
+ message: z.ZodString;
414
+ }, z.core.$strip>], "type">;
415
+ export type ConversationServerMessage = z.infer<typeof ConversationServerMessage>;
416
+ export declare const conversationClose: {
417
+ readonly archived: {
418
+ readonly code: 4409;
419
+ readonly reason: "archived";
420
+ };
421
+ readonly gone: {
422
+ readonly code: 4404;
423
+ readonly reason: "gone";
424
+ };
425
+ };
426
+ export declare const ConversationListInput: z.ZodObject<{
427
+ query: z.ZodOptional<z.ZodString>;
428
+ archived: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
429
+ cursor: z.ZodOptional<z.ZodString>;
430
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
431
+ }, z.core.$strict>;
432
+ export type ConversationListInput = z.infer<typeof ConversationListInput>;
433
+ export declare const ConversationGetInput: z.ZodObject<{
434
+ conversationId: z.ZodTemplateLiteral<`conversation_${string}`>;
435
+ }, z.core.$strict>;
436
+ export type ConversationGetInput = z.infer<typeof ConversationGetInput>;
437
+ export declare const ConversationGetAnswer: z.ZodObject<{
438
+ conversationId: z.ZodTemplateLiteral<`conversation_${string}`>;
439
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
440
+ machineId: z.ZodTemplateLiteral<`user_${string}`>;
441
+ operator: z.ZodNullable<z.ZodObject<{
442
+ name: z.ZodString;
443
+ model: z.ZodString;
444
+ }, z.core.$strip>>;
445
+ title: z.ZodString;
446
+ status: z.ZodEnum<{
447
+ archived: "archived";
448
+ open: "open";
449
+ }>;
450
+ messageCount: z.ZodInt;
451
+ costUsd: z.ZodNullable<z.ZodNumber>;
452
+ tokens: z.ZodObject<{
453
+ input: z.ZodInt;
454
+ output: z.ZodInt;
455
+ cacheRead: z.ZodInt;
456
+ cacheWrite: z.ZodInt;
457
+ }, z.core.$strip>;
458
+ createdAt: z.ZodISODateTime;
459
+ updatedAt: z.ZodISODateTime;
460
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
461
+ rev: z.ZodInt;
462
+ messages: z.ZodArray<z.ZodObject<{
463
+ messageId: z.ZodTemplateLiteral<`message_${string}`>;
464
+ role: z.ZodEnum<{
465
+ operator: "operator";
466
+ person: "person";
467
+ }>;
468
+ text: z.ZodString;
469
+ steps: z.ZodArray<z.ZodObject<{
470
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
471
+ tool: z.ZodString;
472
+ name: z.ZodNullable<z.ZodString>;
473
+ status: z.ZodEnum<{
474
+ done: "done";
475
+ running: "running";
476
+ failed: "failed";
477
+ }>;
478
+ startedAt: z.ZodISODateTime;
479
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
480
+ }, z.core.$strip>>;
481
+ status: z.ZodEnum<{
482
+ done: "done";
483
+ failed: "failed";
484
+ answering: "answering";
485
+ aborted: "aborted";
486
+ }>;
487
+ detail: z.ZodNullable<z.ZodString>;
488
+ clientId: z.ZodNullable<z.ZodString>;
489
+ createdAt: z.ZodISODateTime;
490
+ costUsd: z.ZodNullable<z.ZodNumber>;
491
+ tokens: z.ZodNullable<z.ZodObject<{
492
+ input: z.ZodInt;
493
+ output: z.ZodInt;
494
+ cacheRead: z.ZodInt;
495
+ cacheWrite: z.ZodInt;
496
+ }, z.core.$strip>>;
497
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
498
+ attachmentId: z.ZodTemplateLiteral<`attachment_${string}`>;
499
+ name: z.ZodString;
500
+ mediaType: z.ZodString;
501
+ size: z.ZodNumber;
502
+ image: z.ZodBoolean;
503
+ contentUrl: z.ZodString;
504
+ previewUrl: z.ZodNullable<z.ZodString>;
505
+ }, z.core.$strip>>>;
506
+ }, z.core.$strip>>;
507
+ }, z.core.$strip>;
508
+ export type ConversationGetAnswer = z.infer<typeof ConversationGetAnswer>;
509
+ export declare const ConversationCreateInput: z.ZodObject<{
510
+ machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
511
+ }, z.core.$strict>;
512
+ export type ConversationCreateInput = z.infer<typeof ConversationCreateInput>;
513
+ export declare const ConversationUpdateInput: z.ZodObject<{
514
+ conversationId: z.ZodTemplateLiteral<`conversation_${string}`>;
515
+ rev: z.ZodInt;
516
+ title: z.ZodOptional<z.ZodString>;
517
+ machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
518
+ }, z.core.$strict>;
519
+ export type ConversationUpdateInput = z.infer<typeof ConversationUpdateInput>;
520
+ export declare const ConversationArchiveInput: z.ZodObject<{
521
+ conversationId: z.ZodTemplateLiteral<`conversation_${string}`>;
522
+ }, z.core.$strict>;
523
+ export type ConversationArchiveInput = z.infer<typeof ConversationArchiveInput>;
524
+ export declare const ConversationAttachmentCreateInput: z.ZodObject<{
525
+ conversationId: z.ZodTemplateLiteral<`conversation_${string}`>;
526
+ name: z.ZodString;
527
+ mediaType: z.ZodString;
528
+ content: z.ZodBase64;
529
+ idempotencyKey: z.ZodString;
530
+ }, z.core.$strict>;
531
+ export type ConversationAttachmentCreateInput = z.infer<typeof ConversationAttachmentCreateInput>;
532
+ export declare const ConversationPurgeInput: z.ZodObject<{
533
+ conversationId: z.ZodTemplateLiteral<`conversation_${string}`>;
534
+ }, z.core.$strict>;
535
+ export type ConversationPurgeInput = z.infer<typeof ConversationPurgeInput>;
536
+ export declare const ConversationListAnswer: z.ZodObject<{
537
+ items: z.ZodArray<z.ZodObject<{
538
+ conversationId: z.ZodTemplateLiteral<`conversation_${string}`>;
539
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
540
+ machineId: z.ZodTemplateLiteral<`user_${string}`>;
541
+ operator: z.ZodNullable<z.ZodObject<{
542
+ name: z.ZodString;
543
+ model: z.ZodString;
544
+ }, z.core.$strip>>;
545
+ title: z.ZodString;
546
+ status: z.ZodEnum<{
547
+ archived: "archived";
548
+ open: "open";
549
+ }>;
550
+ messageCount: z.ZodInt;
551
+ costUsd: z.ZodNullable<z.ZodNumber>;
552
+ tokens: z.ZodObject<{
553
+ input: z.ZodInt;
554
+ output: z.ZodInt;
555
+ cacheRead: z.ZodInt;
556
+ cacheWrite: z.ZodInt;
557
+ }, z.core.$strip>;
558
+ createdAt: z.ZodISODateTime;
559
+ updatedAt: z.ZodISODateTime;
560
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
561
+ rev: z.ZodInt;
562
+ excerpt: z.ZodNullable<z.ZodString>;
563
+ }, z.core.$strip>>;
564
+ nextCursor: z.ZodNullable<z.ZodString>;
565
+ }, z.core.$strip>;
566
+ export type ConversationListAnswer = z.infer<typeof ConversationListAnswer>;