@narrative.io/data-collaboration-sdk-ts 2.0.4 → 2.1.0

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.
@@ -14,23 +14,23 @@ declare const ChatCompletionRequestUserMessageSchema: z.ZodObject<{
14
14
  }, "strip", z.ZodTypeAny, {
15
15
  role: "user";
16
16
  content: string;
17
+ id?: string | undefined;
17
18
  name?: string | undefined;
18
19
  timestamp?: number | undefined;
19
- id?: string | undefined;
20
20
  }, {
21
21
  role: "user";
22
22
  content: string;
23
+ id?: string | undefined;
23
24
  name?: string | undefined;
24
25
  timestamp?: number | undefined;
25
- id?: string | undefined;
26
26
  }>;
27
27
  type ConversationUserMessage = z.infer<typeof ChatCompletionRequestUserMessageSchema>;
28
28
  declare const isConversationUserMessage: (input: unknown) => input is {
29
29
  role: "user";
30
30
  content: string;
31
+ id?: string | undefined;
31
32
  name?: string | undefined;
32
33
  timestamp?: number | undefined;
33
- id?: string | undefined;
34
34
  };
35
35
  declare const ChatCompletionRequestMessageFunctionCall: z.ZodObject<{
36
36
  name: z.ZodString;
@@ -69,8 +69,8 @@ declare const ChatCompletionRequestAssistantMessageWithFunctionCall: z.ZodObject
69
69
  name: string;
70
70
  arguments: string;
71
71
  };
72
- timestamp?: number | undefined;
73
72
  id?: string | undefined;
73
+ timestamp?: number | undefined;
74
74
  }, {
75
75
  role: "assistant";
76
76
  content: string | null;
@@ -78,8 +78,8 @@ declare const ChatCompletionRequestAssistantMessageWithFunctionCall: z.ZodObject
78
78
  name: string;
79
79
  arguments: string;
80
80
  };
81
- timestamp?: number | undefined;
82
81
  id?: string | undefined;
82
+ timestamp?: number | undefined;
83
83
  }>;
84
84
  type ConversationAssistantMessageWithFunctionCall = z.infer<typeof ChatCompletionRequestAssistantMessageWithFunctionCall>;
85
85
  declare const isConversationAssistantMessageWithFunctionCall: (input: unknown) => input is {
@@ -89,8 +89,8 @@ declare const isConversationAssistantMessageWithFunctionCall: (input: unknown) =
89
89
  name: string;
90
90
  arguments: string;
91
91
  };
92
- timestamp?: number | undefined;
93
92
  id?: string | undefined;
93
+ timestamp?: number | undefined;
94
94
  };
95
95
  declare const ChatCompletionRequestAssistantMessageWihtoutFunctionCall: z.ZodObject<{
96
96
  role: z.ZodEnum<["assistant"]>;
@@ -100,20 +100,20 @@ declare const ChatCompletionRequestAssistantMessageWihtoutFunctionCall: z.ZodObj
100
100
  }, "strict", z.ZodTypeAny, {
101
101
  role: "assistant";
102
102
  content: string;
103
- timestamp?: number | undefined;
104
103
  id?: string | undefined;
104
+ timestamp?: number | undefined;
105
105
  }, {
106
106
  role: "assistant";
107
107
  content: string;
108
- timestamp?: number | undefined;
109
108
  id?: string | undefined;
109
+ timestamp?: number | undefined;
110
110
  }>;
111
111
  type ConversationAssistantMessageWithoutFunctionCall = z.infer<typeof ChatCompletionRequestAssistantMessageWihtoutFunctionCall>;
112
112
  declare const isConversationAssistantMessageWithoutFunctionCall: (input: unknown) => input is {
113
113
  role: "assistant";
114
114
  content: string;
115
- timestamp?: number | undefined;
116
115
  id?: string | undefined;
116
+ timestamp?: number | undefined;
117
117
  };
118
118
  declare const ChatCompletionAssistantMessage: z.ZodUnion<[z.ZodObject<{
119
119
  role: z.ZodEnum<["assistant"]>;
@@ -123,13 +123,13 @@ declare const ChatCompletionAssistantMessage: z.ZodUnion<[z.ZodObject<{
123
123
  }, "strict", z.ZodTypeAny, {
124
124
  role: "assistant";
125
125
  content: string;
126
- timestamp?: number | undefined;
127
126
  id?: string | undefined;
127
+ timestamp?: number | undefined;
128
128
  }, {
129
129
  role: "assistant";
130
130
  content: string;
131
- timestamp?: number | undefined;
132
131
  id?: string | undefined;
132
+ timestamp?: number | undefined;
133
133
  }>, z.ZodObject<{
134
134
  role: z.ZodEnum<["assistant"]>;
135
135
  content: z.ZodUnion<[z.ZodNull, z.ZodString]>;
@@ -152,8 +152,8 @@ declare const ChatCompletionAssistantMessage: z.ZodUnion<[z.ZodObject<{
152
152
  name: string;
153
153
  arguments: string;
154
154
  };
155
- timestamp?: number | undefined;
156
155
  id?: string | undefined;
156
+ timestamp?: number | undefined;
157
157
  }, {
158
158
  role: "assistant";
159
159
  content: string | null;
@@ -161,8 +161,8 @@ declare const ChatCompletionAssistantMessage: z.ZodUnion<[z.ZodObject<{
161
161
  name: string;
162
162
  arguments: string;
163
163
  };
164
- timestamp?: number | undefined;
165
164
  id?: string | undefined;
165
+ timestamp?: number | undefined;
166
166
  }>]>;
167
167
  type ConversationAssistantMessage = z.infer<typeof ChatCompletionAssistantMessage>;
168
168
  declare const isConversationAssistantMessage: (input: unknown) => input is {
@@ -172,13 +172,13 @@ declare const isConversationAssistantMessage: (input: unknown) => input is {
172
172
  name: string;
173
173
  arguments: string;
174
174
  };
175
- timestamp?: number | undefined;
176
175
  id?: string | undefined;
176
+ timestamp?: number | undefined;
177
177
  } | {
178
178
  role: "assistant";
179
179
  content: string;
180
- timestamp?: number | undefined;
181
180
  id?: string | undefined;
181
+ timestamp?: number | undefined;
182
182
  };
183
183
  declare const ChatCompletionSystemMessageSchema: z.ZodObject<{
184
184
  role: z.ZodEnum<["system"]>;
@@ -205,22 +205,22 @@ declare const ChatCompletionFunctionMessageSchema: z.ZodObject<{
205
205
  name: string;
206
206
  role: "function";
207
207
  content: string;
208
- timestamp?: number | undefined;
209
208
  id?: string | undefined;
209
+ timestamp?: number | undefined;
210
210
  }, {
211
211
  name: string;
212
212
  role: "function";
213
213
  content: string;
214
- timestamp?: number | undefined;
215
214
  id?: string | undefined;
215
+ timestamp?: number | undefined;
216
216
  }>;
217
217
  type ConversationFunctionMessage = z.infer<typeof ChatCompletionFunctionMessageSchema>;
218
218
  declare const isConversationFunctionMessage: (input: unknown) => input is {
219
219
  name: string;
220
220
  role: "function";
221
221
  content: string;
222
- timestamp?: number | undefined;
223
222
  id?: string | undefined;
223
+ timestamp?: number | undefined;
224
224
  };
225
225
  declare const ChatCompletionRequestMessageSchema: z.ZodUnion<[z.ZodObject<{
226
226
  role: z.ZodEnum<["user"]>;
@@ -231,15 +231,15 @@ declare const ChatCompletionRequestMessageSchema: z.ZodUnion<[z.ZodObject<{
231
231
  }, "strip", z.ZodTypeAny, {
232
232
  role: "user";
233
233
  content: string;
234
+ id?: string | undefined;
234
235
  name?: string | undefined;
235
236
  timestamp?: number | undefined;
236
- id?: string | undefined;
237
237
  }, {
238
238
  role: "user";
239
239
  content: string;
240
+ id?: string | undefined;
240
241
  name?: string | undefined;
241
242
  timestamp?: number | undefined;
242
- id?: string | undefined;
243
243
  }>, z.ZodUnion<[z.ZodObject<{
244
244
  role: z.ZodEnum<["assistant"]>;
245
245
  content: z.ZodString;
@@ -248,13 +248,13 @@ declare const ChatCompletionRequestMessageSchema: z.ZodUnion<[z.ZodObject<{
248
248
  }, "strict", z.ZodTypeAny, {
249
249
  role: "assistant";
250
250
  content: string;
251
- timestamp?: number | undefined;
252
251
  id?: string | undefined;
252
+ timestamp?: number | undefined;
253
253
  }, {
254
254
  role: "assistant";
255
255
  content: string;
256
- timestamp?: number | undefined;
257
256
  id?: string | undefined;
257
+ timestamp?: number | undefined;
258
258
  }>, z.ZodObject<{
259
259
  role: z.ZodEnum<["assistant"]>;
260
260
  content: z.ZodUnion<[z.ZodNull, z.ZodString]>;
@@ -277,8 +277,8 @@ declare const ChatCompletionRequestMessageSchema: z.ZodUnion<[z.ZodObject<{
277
277
  name: string;
278
278
  arguments: string;
279
279
  };
280
- timestamp?: number | undefined;
281
280
  id?: string | undefined;
281
+ timestamp?: number | undefined;
282
282
  }, {
283
283
  role: "assistant";
284
284
  content: string | null;
@@ -286,8 +286,8 @@ declare const ChatCompletionRequestMessageSchema: z.ZodUnion<[z.ZodObject<{
286
286
  name: string;
287
287
  arguments: string;
288
288
  };
289
- timestamp?: number | undefined;
290
289
  id?: string | undefined;
290
+ timestamp?: number | undefined;
291
291
  }>]>, z.ZodObject<{
292
292
  role: z.ZodEnum<["system"]>;
293
293
  content: z.ZodString;
@@ -307,22 +307,22 @@ declare const ChatCompletionRequestMessageSchema: z.ZodUnion<[z.ZodObject<{
307
307
  name: string;
308
308
  role: "function";
309
309
  content: string;
310
- timestamp?: number | undefined;
311
310
  id?: string | undefined;
311
+ timestamp?: number | undefined;
312
312
  }, {
313
313
  name: string;
314
314
  role: "function";
315
315
  content: string;
316
- timestamp?: number | undefined;
317
316
  id?: string | undefined;
317
+ timestamp?: number | undefined;
318
318
  }>]>;
319
319
  type ConversationMessage = z.infer<typeof ChatCompletionRequestMessageSchema>;
320
320
  declare const isConversationMessage: (input: unknown) => input is {
321
321
  role: "user";
322
322
  content: string;
323
+ id?: string | undefined;
323
324
  name?: string | undefined;
324
325
  timestamp?: number | undefined;
325
- id?: string | undefined;
326
326
  } | {
327
327
  role: "assistant";
328
328
  content: string | null;
@@ -330,13 +330,13 @@ declare const isConversationMessage: (input: unknown) => input is {
330
330
  name: string;
331
331
  arguments: string;
332
332
  };
333
- timestamp?: number | undefined;
334
333
  id?: string | undefined;
334
+ timestamp?: number | undefined;
335
335
  } | {
336
336
  role: "assistant";
337
337
  content: string;
338
- timestamp?: number | undefined;
339
338
  id?: string | undefined;
339
+ timestamp?: number | undefined;
340
340
  } | {
341
341
  role: "system";
342
342
  content: string;
@@ -344,8 +344,8 @@ declare const isConversationMessage: (input: unknown) => input is {
344
344
  name: string;
345
345
  role: "function";
346
346
  content: string;
347
- timestamp?: number | undefined;
348
347
  id?: string | undefined;
348
+ timestamp?: number | undefined;
349
349
  };
350
350
  declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodObject<{
351
351
  role: z.ZodEnum<["user"]>;
@@ -356,15 +356,15 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
356
356
  }, "strip", z.ZodTypeAny, {
357
357
  role: "user";
358
358
  content: string;
359
+ id?: string | undefined;
359
360
  name?: string | undefined;
360
361
  timestamp?: number | undefined;
361
- id?: string | undefined;
362
362
  }, {
363
363
  role: "user";
364
364
  content: string;
365
+ id?: string | undefined;
365
366
  name?: string | undefined;
366
367
  timestamp?: number | undefined;
367
- id?: string | undefined;
368
368
  }>, z.ZodUnion<[z.ZodObject<{
369
369
  role: z.ZodEnum<["assistant"]>;
370
370
  content: z.ZodString;
@@ -373,13 +373,13 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
373
373
  }, "strict", z.ZodTypeAny, {
374
374
  role: "assistant";
375
375
  content: string;
376
- timestamp?: number | undefined;
377
376
  id?: string | undefined;
377
+ timestamp?: number | undefined;
378
378
  }, {
379
379
  role: "assistant";
380
380
  content: string;
381
- timestamp?: number | undefined;
382
381
  id?: string | undefined;
382
+ timestamp?: number | undefined;
383
383
  }>, z.ZodObject<{
384
384
  role: z.ZodEnum<["assistant"]>;
385
385
  content: z.ZodUnion<[z.ZodNull, z.ZodString]>;
@@ -402,8 +402,8 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
402
402
  name: string;
403
403
  arguments: string;
404
404
  };
405
- timestamp?: number | undefined;
406
405
  id?: string | undefined;
406
+ timestamp?: number | undefined;
407
407
  }, {
408
408
  role: "assistant";
409
409
  content: string | null;
@@ -411,8 +411,8 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
411
411
  name: string;
412
412
  arguments: string;
413
413
  };
414
- timestamp?: number | undefined;
415
414
  id?: string | undefined;
415
+ timestamp?: number | undefined;
416
416
  }>]>, z.ZodObject<{
417
417
  role: z.ZodEnum<["system"]>;
418
418
  content: z.ZodString;
@@ -432,20 +432,20 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
432
432
  name: string;
433
433
  role: "function";
434
434
  content: string;
435
- timestamp?: number | undefined;
436
435
  id?: string | undefined;
436
+ timestamp?: number | undefined;
437
437
  }, {
438
438
  name: string;
439
439
  role: "function";
440
440
  content: string;
441
- timestamp?: number | undefined;
442
441
  id?: string | undefined;
442
+ timestamp?: number | undefined;
443
443
  }>]>, "many">, ({
444
444
  role: "user";
445
445
  content: string;
446
+ id?: string | undefined;
446
447
  name?: string | undefined;
447
448
  timestamp?: number | undefined;
448
- id?: string | undefined;
449
449
  } | {
450
450
  role: "assistant";
451
451
  content: string | null;
@@ -453,13 +453,13 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
453
453
  name: string;
454
454
  arguments: string;
455
455
  };
456
- timestamp?: number | undefined;
457
456
  id?: string | undefined;
457
+ timestamp?: number | undefined;
458
458
  } | {
459
459
  role: "assistant";
460
460
  content: string;
461
- timestamp?: number | undefined;
462
461
  id?: string | undefined;
462
+ timestamp?: number | undefined;
463
463
  } | {
464
464
  role: "system";
465
465
  content: string;
@@ -467,14 +467,14 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
467
467
  name: string;
468
468
  role: "function";
469
469
  content: string;
470
- timestamp?: number | undefined;
471
470
  id?: string | undefined;
471
+ timestamp?: number | undefined;
472
472
  })[], ({
473
473
  role: "user";
474
474
  content: string;
475
+ id?: string | undefined;
475
476
  name?: string | undefined;
476
477
  timestamp?: number | undefined;
477
- id?: string | undefined;
478
478
  } | {
479
479
  role: "assistant";
480
480
  content: string | null;
@@ -482,13 +482,13 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
482
482
  name: string;
483
483
  arguments: string;
484
484
  };
485
- timestamp?: number | undefined;
486
485
  id?: string | undefined;
486
+ timestamp?: number | undefined;
487
487
  } | {
488
488
  role: "assistant";
489
489
  content: string;
490
- timestamp?: number | undefined;
491
490
  id?: string | undefined;
491
+ timestamp?: number | undefined;
492
492
  } | {
493
493
  role: "system";
494
494
  content: string;
@@ -496,14 +496,14 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
496
496
  name: string;
497
497
  role: "function";
498
498
  content: string;
499
- timestamp?: number | undefined;
500
499
  id?: string | undefined;
500
+ timestamp?: number | undefined;
501
501
  })[]>, ({
502
502
  role: "user";
503
503
  content: string;
504
+ id?: string | undefined;
504
505
  name?: string | undefined;
505
506
  timestamp?: number | undefined;
506
- id?: string | undefined;
507
507
  } | {
508
508
  role: "assistant";
509
509
  content: string | null;
@@ -511,13 +511,13 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
511
511
  name: string;
512
512
  arguments: string;
513
513
  };
514
- timestamp?: number | undefined;
515
514
  id?: string | undefined;
515
+ timestamp?: number | undefined;
516
516
  } | {
517
517
  role: "assistant";
518
518
  content: string;
519
- timestamp?: number | undefined;
520
519
  id?: string | undefined;
520
+ timestamp?: number | undefined;
521
521
  } | {
522
522
  role: "system";
523
523
  content: string;
@@ -525,14 +525,14 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
525
525
  name: string;
526
526
  role: "function";
527
527
  content: string;
528
- timestamp?: number | undefined;
529
528
  id?: string | undefined;
529
+ timestamp?: number | undefined;
530
530
  })[], ({
531
531
  role: "user";
532
532
  content: string;
533
+ id?: string | undefined;
533
534
  name?: string | undefined;
534
535
  timestamp?: number | undefined;
535
- id?: string | undefined;
536
536
  } | {
537
537
  role: "assistant";
538
538
  content: string | null;
@@ -540,13 +540,13 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
540
540
  name: string;
541
541
  arguments: string;
542
542
  };
543
- timestamp?: number | undefined;
544
543
  id?: string | undefined;
544
+ timestamp?: number | undefined;
545
545
  } | {
546
546
  role: "assistant";
547
547
  content: string;
548
- timestamp?: number | undefined;
549
548
  id?: string | undefined;
549
+ timestamp?: number | undefined;
550
550
  } | {
551
551
  role: "system";
552
552
  content: string;
@@ -554,14 +554,14 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
554
554
  name: string;
555
555
  role: "function";
556
556
  content: string;
557
- timestamp?: number | undefined;
558
557
  id?: string | undefined;
558
+ timestamp?: number | undefined;
559
559
  })[]>, ({
560
560
  role: "user";
561
561
  content: string;
562
+ id?: string | undefined;
562
563
  name?: string | undefined;
563
564
  timestamp?: number | undefined;
564
- id?: string | undefined;
565
565
  } | {
566
566
  role: "assistant";
567
567
  content: string | null;
@@ -569,13 +569,13 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
569
569
  name: string;
570
570
  arguments: string;
571
571
  };
572
- timestamp?: number | undefined;
573
572
  id?: string | undefined;
573
+ timestamp?: number | undefined;
574
574
  } | {
575
575
  role: "assistant";
576
576
  content: string;
577
- timestamp?: number | undefined;
578
577
  id?: string | undefined;
578
+ timestamp?: number | undefined;
579
579
  } | {
580
580
  role: "system";
581
581
  content: string;
@@ -583,14 +583,14 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
583
583
  name: string;
584
584
  role: "function";
585
585
  content: string;
586
- timestamp?: number | undefined;
587
586
  id?: string | undefined;
587
+ timestamp?: number | undefined;
588
588
  })[], ({
589
589
  role: "user";
590
590
  content: string;
591
+ id?: string | undefined;
591
592
  name?: string | undefined;
592
593
  timestamp?: number | undefined;
593
- id?: string | undefined;
594
594
  } | {
595
595
  role: "assistant";
596
596
  content: string | null;
@@ -598,13 +598,13 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
598
598
  name: string;
599
599
  arguments: string;
600
600
  };
601
- timestamp?: number | undefined;
602
601
  id?: string | undefined;
602
+ timestamp?: number | undefined;
603
603
  } | {
604
604
  role: "assistant";
605
605
  content: string;
606
- timestamp?: number | undefined;
607
606
  id?: string | undefined;
607
+ timestamp?: number | undefined;
608
608
  } | {
609
609
  role: "system";
610
610
  content: string;
@@ -612,14 +612,14 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
612
612
  name: string;
613
613
  role: "function";
614
614
  content: string;
615
- timestamp?: number | undefined;
616
615
  id?: string | undefined;
616
+ timestamp?: number | undefined;
617
617
  })[]>, ({
618
618
  role: "user";
619
619
  content: string;
620
+ id?: string | undefined;
620
621
  name?: string | undefined;
621
622
  timestamp?: number | undefined;
622
- id?: string | undefined;
623
623
  } | {
624
624
  role: "assistant";
625
625
  content: string | null;
@@ -627,13 +627,13 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
627
627
  name: string;
628
628
  arguments: string;
629
629
  };
630
- timestamp?: number | undefined;
631
630
  id?: string | undefined;
631
+ timestamp?: number | undefined;
632
632
  } | {
633
633
  role: "assistant";
634
634
  content: string;
635
- timestamp?: number | undefined;
636
635
  id?: string | undefined;
636
+ timestamp?: number | undefined;
637
637
  } | {
638
638
  role: "system";
639
639
  content: string;
@@ -641,14 +641,14 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
641
641
  name: string;
642
642
  role: "function";
643
643
  content: string;
644
- timestamp?: number | undefined;
645
644
  id?: string | undefined;
645
+ timestamp?: number | undefined;
646
646
  })[], ({
647
647
  role: "user";
648
648
  content: string;
649
+ id?: string | undefined;
649
650
  name?: string | undefined;
650
651
  timestamp?: number | undefined;
651
- id?: string | undefined;
652
652
  } | {
653
653
  role: "assistant";
654
654
  content: string | null;
@@ -656,13 +656,13 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
656
656
  name: string;
657
657
  arguments: string;
658
658
  };
659
- timestamp?: number | undefined;
660
659
  id?: string | undefined;
660
+ timestamp?: number | undefined;
661
661
  } | {
662
662
  role: "assistant";
663
663
  content: string;
664
- timestamp?: number | undefined;
665
664
  id?: string | undefined;
665
+ timestamp?: number | undefined;
666
666
  } | {
667
667
  role: "system";
668
668
  content: string;
@@ -670,16 +670,16 @@ declare const ChatCompletionRequestMessagesSchema: z.ZodEffects<z.ZodEffects<z.Z
670
670
  name: string;
671
671
  role: "function";
672
672
  content: string;
673
- timestamp?: number | undefined;
674
673
  id?: string | undefined;
674
+ timestamp?: number | undefined;
675
675
  })[]>;
676
676
  type ConversationMessages = z.infer<typeof ChatCompletionRequestMessagesSchema>;
677
677
  declare const isConversationMessages: (input: unknown) => input is ({
678
678
  role: "user";
679
679
  content: string;
680
+ id?: string | undefined;
680
681
  name?: string | undefined;
681
682
  timestamp?: number | undefined;
682
- id?: string | undefined;
683
683
  } | {
684
684
  role: "assistant";
685
685
  content: string | null;
@@ -687,13 +687,13 @@ declare const isConversationMessages: (input: unknown) => input is ({
687
687
  name: string;
688
688
  arguments: string;
689
689
  };
690
- timestamp?: number | undefined;
691
690
  id?: string | undefined;
691
+ timestamp?: number | undefined;
692
692
  } | {
693
693
  role: "assistant";
694
694
  content: string;
695
- timestamp?: number | undefined;
696
695
  id?: string | undefined;
696
+ timestamp?: number | undefined;
697
697
  } | {
698
698
  role: "system";
699
699
  content: string;
@@ -701,8 +701,8 @@ declare const isConversationMessages: (input: unknown) => input is ({
701
701
  name: string;
702
702
  role: "function";
703
703
  content: string;
704
- timestamp?: number | undefined;
705
704
  id?: string | undefined;
705
+ timestamp?: number | undefined;
706
706
  })[];
707
707
  declare const ChatCompletionRequestInputMessageSchema: z.ZodUnion<[z.ZodObject<{
708
708
  role: z.ZodEnum<["user"]>;
@@ -713,15 +713,15 @@ declare const ChatCompletionRequestInputMessageSchema: z.ZodUnion<[z.ZodObject<{
713
713
  }, "strip", z.ZodTypeAny, {
714
714
  role: "user";
715
715
  content: string;
716
+ id?: string | undefined;
716
717
  name?: string | undefined;
717
718
  timestamp?: number | undefined;
718
- id?: string | undefined;
719
719
  }, {
720
720
  role: "user";
721
721
  content: string;
722
+ id?: string | undefined;
722
723
  name?: string | undefined;
723
724
  timestamp?: number | undefined;
724
- id?: string | undefined;
725
725
  }>, z.ZodUnion<[z.ZodObject<{
726
726
  role: z.ZodEnum<["assistant"]>;
727
727
  content: z.ZodString;
@@ -730,13 +730,13 @@ declare const ChatCompletionRequestInputMessageSchema: z.ZodUnion<[z.ZodObject<{
730
730
  }, "strict", z.ZodTypeAny, {
731
731
  role: "assistant";
732
732
  content: string;
733
- timestamp?: number | undefined;
734
733
  id?: string | undefined;
734
+ timestamp?: number | undefined;
735
735
  }, {
736
736
  role: "assistant";
737
737
  content: string;
738
- timestamp?: number | undefined;
739
738
  id?: string | undefined;
739
+ timestamp?: number | undefined;
740
740
  }>, z.ZodObject<{
741
741
  role: z.ZodEnum<["assistant"]>;
742
742
  content: z.ZodUnion<[z.ZodNull, z.ZodString]>;
@@ -759,8 +759,8 @@ declare const ChatCompletionRequestInputMessageSchema: z.ZodUnion<[z.ZodObject<{
759
759
  name: string;
760
760
  arguments: string;
761
761
  };
762
- timestamp?: number | undefined;
763
762
  id?: string | undefined;
763
+ timestamp?: number | undefined;
764
764
  }, {
765
765
  role: "assistant";
766
766
  content: string | null;
@@ -768,8 +768,8 @@ declare const ChatCompletionRequestInputMessageSchema: z.ZodUnion<[z.ZodObject<{
768
768
  name: string;
769
769
  arguments: string;
770
770
  };
771
- timestamp?: number | undefined;
772
771
  id?: string | undefined;
772
+ timestamp?: number | undefined;
773
773
  }>]>, z.ZodObject<{
774
774
  role: z.ZodEnum<["function"]>;
775
775
  content: z.ZodString;
@@ -780,22 +780,22 @@ declare const ChatCompletionRequestInputMessageSchema: z.ZodUnion<[z.ZodObject<{
780
780
  name: string;
781
781
  role: "function";
782
782
  content: string;
783
- timestamp?: number | undefined;
784
783
  id?: string | undefined;
784
+ timestamp?: number | undefined;
785
785
  }, {
786
786
  name: string;
787
787
  role: "function";
788
788
  content: string;
789
- timestamp?: number | undefined;
790
789
  id?: string | undefined;
790
+ timestamp?: number | undefined;
791
791
  }>]>;
792
792
  type ConversationIOMessage = z.infer<typeof ChatCompletionRequestInputMessageSchema>;
793
793
  declare const isConversationInputMessage: (input: unknown) => input is {
794
794
  role: "user";
795
795
  content: string;
796
+ id?: string | undefined;
796
797
  name?: string | undefined;
797
798
  timestamp?: number | undefined;
798
- id?: string | undefined;
799
799
  } | {
800
800
  role: "assistant";
801
801
  content: string | null;
@@ -803,19 +803,19 @@ declare const isConversationInputMessage: (input: unknown) => input is {
803
803
  name: string;
804
804
  arguments: string;
805
805
  };
806
- timestamp?: number | undefined;
807
806
  id?: string | undefined;
807
+ timestamp?: number | undefined;
808
808
  } | {
809
809
  role: "assistant";
810
810
  content: string;
811
- timestamp?: number | undefined;
812
811
  id?: string | undefined;
812
+ timestamp?: number | undefined;
813
813
  } | {
814
814
  name: string;
815
815
  role: "function";
816
816
  content: string;
817
- timestamp?: number | undefined;
818
817
  id?: string | undefined;
818
+ timestamp?: number | undefined;
819
819
  };
820
820
  declare const RosettaRequestMessageSchema: z.ZodUnion<[z.ZodObject<{
821
821
  type: z.ZodLiteral<"request">;