@lokalise/polyglot-sdk 20.0.0 → 20.0.1

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.
@@ -65,12 +65,12 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
65
65
  translation: z.ZodString;
66
66
  description: z.ZodOptional<z.ZodString>;
67
67
  }, "strip", z.ZodTypeAny, {
68
- locale: string;
69
68
  translation: string;
69
+ locale: string;
70
70
  description?: string | undefined;
71
71
  }, {
72
- locale: string;
73
72
  translation: string;
73
+ locale: string;
74
74
  description?: string | undefined;
75
75
  }>, "many">>;
76
76
  }, "strip", z.ZodTypeAny, {
@@ -80,8 +80,8 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
80
80
  caseSensitive: boolean;
81
81
  description?: string | undefined;
82
82
  translations?: {
83
- locale: string;
84
83
  translation: string;
84
+ locale: string;
85
85
  description?: string | undefined;
86
86
  }[] | undefined;
87
87
  }, {
@@ -91,8 +91,8 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
91
91
  forbidden?: boolean | undefined;
92
92
  caseSensitive?: boolean | undefined;
93
93
  translations?: {
94
- locale: string;
95
94
  translation: string;
95
+ locale: string;
96
96
  description?: string | undefined;
97
97
  }[] | undefined;
98
98
  }>, {
@@ -102,8 +102,8 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
102
102
  caseSensitive: boolean;
103
103
  description?: string | undefined;
104
104
  translations?: {
105
- locale: string;
106
105
  translation: string;
106
+ locale: string;
107
107
  description?: string | undefined;
108
108
  }[] | undefined;
109
109
  }, {
@@ -113,8 +113,8 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
113
113
  forbidden?: boolean | undefined;
114
114
  caseSensitive?: boolean | undefined;
115
115
  translations?: {
116
- locale: string;
117
116
  translation: string;
117
+ locale: string;
118
118
  description?: string | undefined;
119
119
  }[] | undefined;
120
120
  }>, "many">>;
@@ -130,6 +130,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
130
130
  translatedValue: string;
131
131
  }>, "many">>;
132
132
  }, "strip", z.ZodTypeAny, {
133
+ translationExamples?: {
134
+ sourceValue: string;
135
+ translatedValue: string;
136
+ }[] | undefined;
133
137
  description?: string | undefined;
134
138
  styleGuide?: {
135
139
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -146,17 +150,17 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
146
150
  caseSensitive: boolean;
147
151
  description?: string | undefined;
148
152
  translations?: {
149
- locale: string;
150
153
  translation: string;
154
+ locale: string;
151
155
  description?: string | undefined;
152
156
  }[] | undefined;
153
157
  }[] | undefined;
154
158
  targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
159
+ }, {
155
160
  translationExamples?: {
156
161
  sourceValue: string;
157
162
  translatedValue: string;
158
163
  }[] | undefined;
159
- }, {
160
164
  description?: string | undefined;
161
165
  styleGuide?: {
162
166
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -173,16 +177,12 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
173
177
  forbidden?: boolean | undefined;
174
178
  caseSensitive?: boolean | undefined;
175
179
  translations?: {
176
- locale: string;
177
180
  translation: string;
181
+ locale: string;
178
182
  description?: string | undefined;
179
183
  }[] | undefined;
180
184
  }[] | undefined;
181
185
  targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
182
- translationExamples?: {
183
- sourceValue: string;
184
- translatedValue: string;
185
- }[] | undefined;
186
186
  }>>;
187
187
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
188
188
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -269,262 +269,262 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
269
269
  }, "strip", z.ZodTypeAny, {
270
270
  value: string;
271
271
  id: string;
272
- translationExamples?: {
273
- sourceValue: string;
274
- translatedValue: string;
275
- }[] | undefined;
276
272
  tmMatch?: {
277
273
  sourceValue: string;
278
274
  translatedValue: string;
279
275
  } | undefined;
280
- }, {
281
- value: string;
282
- id: string;
283
276
  translationExamples?: {
284
277
  sourceValue: string;
285
278
  translatedValue: string;
286
279
  }[] | undefined;
280
+ }, {
281
+ value: string;
282
+ id: string;
287
283
  tmMatch?: {
288
284
  sourceValue: string;
289
285
  translatedValue: string;
290
286
  } | undefined;
291
- }>, {
292
- value: string;
293
- id: string;
294
287
  translationExamples?: {
295
288
  sourceValue: string;
296
289
  translatedValue: string;
297
290
  }[] | undefined;
291
+ }>, {
292
+ value: string;
293
+ id: string;
298
294
  tmMatch?: {
299
295
  sourceValue: string;
300
296
  translatedValue: string;
301
297
  } | undefined;
302
- }, {
303
- value: string;
304
- id: string;
305
298
  translationExamples?: {
306
299
  sourceValue: string;
307
300
  translatedValue: string;
308
301
  }[] | undefined;
302
+ }, {
303
+ value: string;
304
+ id: string;
309
305
  tmMatch?: {
310
306
  sourceValue: string;
311
307
  translatedValue: string;
312
308
  } | undefined;
313
- }>, "atleastone">, [{
314
- value: string;
315
- id: string;
316
309
  translationExamples?: {
317
310
  sourceValue: string;
318
311
  translatedValue: string;
319
312
  }[] | undefined;
313
+ }>, "atleastone">, [{
314
+ value: string;
315
+ id: string;
320
316
  tmMatch?: {
321
317
  sourceValue: string;
322
318
  translatedValue: string;
323
319
  } | undefined;
324
- }, ...{
325
- value: string;
326
- id: string;
327
320
  translationExamples?: {
328
321
  sourceValue: string;
329
322
  translatedValue: string;
330
323
  }[] | undefined;
324
+ }, ...{
325
+ value: string;
326
+ id: string;
331
327
  tmMatch?: {
332
328
  sourceValue: string;
333
329
  translatedValue: string;
334
330
  } | undefined;
335
- }[]], [{
336
- value: string;
337
- id: string;
338
331
  translationExamples?: {
339
332
  sourceValue: string;
340
333
  translatedValue: string;
341
334
  }[] | undefined;
335
+ }[]], [{
336
+ value: string;
337
+ id: string;
342
338
  tmMatch?: {
343
339
  sourceValue: string;
344
340
  translatedValue: string;
345
341
  } | undefined;
346
- }, ...{
347
- value: string;
348
- id: string;
349
342
  translationExamples?: {
350
343
  sourceValue: string;
351
344
  translatedValue: string;
352
345
  }[] | undefined;
346
+ }, ...{
347
+ value: string;
348
+ id: string;
353
349
  tmMatch?: {
354
350
  sourceValue: string;
355
351
  translatedValue: string;
356
352
  } | undefined;
353
+ translationExamples?: {
354
+ sourceValue: string;
355
+ translatedValue: string;
356
+ }[] | undefined;
357
357
  }[]]>;
358
358
  }, "strip", z.ZodTypeAny, {
359
- id: string;
360
359
  segments: [{
361
360
  value: string;
362
361
  id: string;
363
- translationExamples?: {
364
- sourceValue: string;
365
- translatedValue: string;
366
- }[] | undefined;
367
362
  tmMatch?: {
368
363
  sourceValue: string;
369
364
  translatedValue: string;
370
365
  } | undefined;
371
- }, ...{
372
- value: string;
373
- id: string;
374
366
  translationExamples?: {
375
367
  sourceValue: string;
376
368
  translatedValue: string;
377
369
  }[] | undefined;
370
+ }, ...{
371
+ value: string;
372
+ id: string;
378
373
  tmMatch?: {
379
374
  sourceValue: string;
380
375
  translatedValue: string;
381
376
  } | undefined;
377
+ translationExamples?: {
378
+ sourceValue: string;
379
+ translatedValue: string;
380
+ }[] | undefined;
382
381
  }[]];
382
+ id: string;
383
383
  context?: {
384
384
  description: string;
385
385
  } | undefined;
386
386
  characterLimit?: number | undefined;
387
387
  }, {
388
- id: string;
389
388
  segments: [{
390
389
  value: string;
391
390
  id: string;
392
- translationExamples?: {
393
- sourceValue: string;
394
- translatedValue: string;
395
- }[] | undefined;
396
391
  tmMatch?: {
397
392
  sourceValue: string;
398
393
  translatedValue: string;
399
394
  } | undefined;
400
- }, ...{
401
- value: string;
402
- id: string;
403
395
  translationExamples?: {
404
396
  sourceValue: string;
405
397
  translatedValue: string;
406
398
  }[] | undefined;
399
+ }, ...{
400
+ value: string;
401
+ id: string;
407
402
  tmMatch?: {
408
403
  sourceValue: string;
409
404
  translatedValue: string;
410
405
  } | undefined;
406
+ translationExamples?: {
407
+ sourceValue: string;
408
+ translatedValue: string;
409
+ }[] | undefined;
411
410
  }[]];
411
+ id: string;
412
412
  context?: {
413
413
  description: string;
414
414
  } | undefined;
415
415
  characterLimit?: number | undefined;
416
416
  }>, "atleastone">, [{
417
- id: string;
418
417
  segments: [{
419
418
  value: string;
420
419
  id: string;
421
- translationExamples?: {
422
- sourceValue: string;
423
- translatedValue: string;
424
- }[] | undefined;
425
420
  tmMatch?: {
426
421
  sourceValue: string;
427
422
  translatedValue: string;
428
423
  } | undefined;
429
- }, ...{
430
- value: string;
431
- id: string;
432
424
  translationExamples?: {
433
425
  sourceValue: string;
434
426
  translatedValue: string;
435
427
  }[] | undefined;
428
+ }, ...{
429
+ value: string;
430
+ id: string;
436
431
  tmMatch?: {
437
432
  sourceValue: string;
438
433
  translatedValue: string;
439
434
  } | undefined;
435
+ translationExamples?: {
436
+ sourceValue: string;
437
+ translatedValue: string;
438
+ }[] | undefined;
440
439
  }[]];
440
+ id: string;
441
441
  context?: {
442
442
  description: string;
443
443
  } | undefined;
444
444
  characterLimit?: number | undefined;
445
445
  }, ...{
446
- id: string;
447
446
  segments: [{
448
447
  value: string;
449
448
  id: string;
450
- translationExamples?: {
451
- sourceValue: string;
452
- translatedValue: string;
453
- }[] | undefined;
454
449
  tmMatch?: {
455
450
  sourceValue: string;
456
451
  translatedValue: string;
457
452
  } | undefined;
458
- }, ...{
459
- value: string;
460
- id: string;
461
453
  translationExamples?: {
462
454
  sourceValue: string;
463
455
  translatedValue: string;
464
456
  }[] | undefined;
457
+ }, ...{
458
+ value: string;
459
+ id: string;
465
460
  tmMatch?: {
466
461
  sourceValue: string;
467
462
  translatedValue: string;
468
463
  } | undefined;
464
+ translationExamples?: {
465
+ sourceValue: string;
466
+ translatedValue: string;
467
+ }[] | undefined;
469
468
  }[]];
469
+ id: string;
470
470
  context?: {
471
471
  description: string;
472
472
  } | undefined;
473
473
  characterLimit?: number | undefined;
474
474
  }[]], [{
475
- id: string;
476
475
  segments: [{
477
476
  value: string;
478
477
  id: string;
479
- translationExamples?: {
480
- sourceValue: string;
481
- translatedValue: string;
482
- }[] | undefined;
483
478
  tmMatch?: {
484
479
  sourceValue: string;
485
480
  translatedValue: string;
486
481
  } | undefined;
487
- }, ...{
488
- value: string;
489
- id: string;
490
482
  translationExamples?: {
491
483
  sourceValue: string;
492
484
  translatedValue: string;
493
485
  }[] | undefined;
486
+ }, ...{
487
+ value: string;
488
+ id: string;
494
489
  tmMatch?: {
495
490
  sourceValue: string;
496
491
  translatedValue: string;
497
492
  } | undefined;
493
+ translationExamples?: {
494
+ sourceValue: string;
495
+ translatedValue: string;
496
+ }[] | undefined;
498
497
  }[]];
498
+ id: string;
499
499
  context?: {
500
500
  description: string;
501
501
  } | undefined;
502
502
  characterLimit?: number | undefined;
503
503
  }, ...{
504
- id: string;
505
504
  segments: [{
506
505
  value: string;
507
506
  id: string;
508
- translationExamples?: {
509
- sourceValue: string;
510
- translatedValue: string;
511
- }[] | undefined;
512
507
  tmMatch?: {
513
508
  sourceValue: string;
514
509
  translatedValue: string;
515
510
  } | undefined;
516
- }, ...{
517
- value: string;
518
- id: string;
519
511
  translationExamples?: {
520
512
  sourceValue: string;
521
513
  translatedValue: string;
522
514
  }[] | undefined;
515
+ }, ...{
516
+ value: string;
517
+ id: string;
523
518
  tmMatch?: {
524
519
  sourceValue: string;
525
520
  translatedValue: string;
526
521
  } | undefined;
522
+ translationExamples?: {
523
+ sourceValue: string;
524
+ translatedValue: string;
525
+ }[] | undefined;
527
526
  }[]];
527
+ id: string;
528
528
  context?: {
529
529
  description: string;
530
530
  } | undefined;
@@ -537,59 +537,59 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
537
537
  callbackToken: string;
538
538
  sourceLocale: string;
539
539
  contentUnits: [{
540
- id: string;
541
540
  segments: [{
542
541
  value: string;
543
542
  id: string;
544
- translationExamples?: {
545
- sourceValue: string;
546
- translatedValue: string;
547
- }[] | undefined;
548
543
  tmMatch?: {
549
544
  sourceValue: string;
550
545
  translatedValue: string;
551
546
  } | undefined;
552
- }, ...{
553
- value: string;
554
- id: string;
555
547
  translationExamples?: {
556
548
  sourceValue: string;
557
549
  translatedValue: string;
558
550
  }[] | undefined;
551
+ }, ...{
552
+ value: string;
553
+ id: string;
559
554
  tmMatch?: {
560
555
  sourceValue: string;
561
556
  translatedValue: string;
562
557
  } | undefined;
558
+ translationExamples?: {
559
+ sourceValue: string;
560
+ translatedValue: string;
561
+ }[] | undefined;
563
562
  }[]];
563
+ id: string;
564
564
  context?: {
565
565
  description: string;
566
566
  } | undefined;
567
567
  characterLimit?: number | undefined;
568
568
  }, ...{
569
- id: string;
570
569
  segments: [{
571
570
  value: string;
572
571
  id: string;
573
- translationExamples?: {
574
- sourceValue: string;
575
- translatedValue: string;
576
- }[] | undefined;
577
572
  tmMatch?: {
578
573
  sourceValue: string;
579
574
  translatedValue: string;
580
575
  } | undefined;
581
- }, ...{
582
- value: string;
583
- id: string;
584
576
  translationExamples?: {
585
577
  sourceValue: string;
586
578
  translatedValue: string;
587
579
  }[] | undefined;
580
+ }, ...{
581
+ value: string;
582
+ id: string;
588
583
  tmMatch?: {
589
584
  sourceValue: string;
590
585
  translatedValue: string;
591
586
  } | undefined;
587
+ translationExamples?: {
588
+ sourceValue: string;
589
+ translatedValue: string;
590
+ }[] | undefined;
592
591
  }[]];
592
+ id: string;
593
593
  context?: {
594
594
  description: string;
595
595
  } | undefined;
@@ -599,6 +599,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
599
599
  pickIntegrationByScore: boolean;
600
600
  includeScore: boolean;
601
601
  context?: {
602
+ translationExamples?: {
603
+ sourceValue: string;
604
+ translatedValue: string;
605
+ }[] | undefined;
602
606
  description?: string | undefined;
603
607
  styleGuide?: {
604
608
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -615,16 +619,12 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
615
619
  caseSensitive: boolean;
616
620
  description?: string | undefined;
617
621
  translations?: {
618
- locale: string;
619
622
  translation: string;
623
+ locale: string;
620
624
  description?: string | undefined;
621
625
  }[] | undefined;
622
626
  }[] | undefined;
623
627
  targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
624
- translationExamples?: {
625
- sourceValue: string;
626
- translatedValue: string;
627
- }[] | undefined;
628
628
  } | undefined;
629
629
  integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
630
630
  forceIntegration?: boolean | undefined;
@@ -660,59 +660,59 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
660
660
  callbackToken: string;
661
661
  sourceLocale: string;
662
662
  contentUnits: [{
663
- id: string;
664
663
  segments: [{
665
664
  value: string;
666
665
  id: string;
667
- translationExamples?: {
668
- sourceValue: string;
669
- translatedValue: string;
670
- }[] | undefined;
671
666
  tmMatch?: {
672
667
  sourceValue: string;
673
668
  translatedValue: string;
674
669
  } | undefined;
675
- }, ...{
676
- value: string;
677
- id: string;
678
670
  translationExamples?: {
679
671
  sourceValue: string;
680
672
  translatedValue: string;
681
673
  }[] | undefined;
674
+ }, ...{
675
+ value: string;
676
+ id: string;
682
677
  tmMatch?: {
683
678
  sourceValue: string;
684
679
  translatedValue: string;
685
680
  } | undefined;
681
+ translationExamples?: {
682
+ sourceValue: string;
683
+ translatedValue: string;
684
+ }[] | undefined;
686
685
  }[]];
686
+ id: string;
687
687
  context?: {
688
688
  description: string;
689
689
  } | undefined;
690
690
  characterLimit?: number | undefined;
691
691
  }, ...{
692
- id: string;
693
692
  segments: [{
694
693
  value: string;
695
694
  id: string;
696
- translationExamples?: {
697
- sourceValue: string;
698
- translatedValue: string;
699
- }[] | undefined;
700
695
  tmMatch?: {
701
696
  sourceValue: string;
702
697
  translatedValue: string;
703
698
  } | undefined;
704
- }, ...{
705
- value: string;
706
- id: string;
707
699
  translationExamples?: {
708
700
  sourceValue: string;
709
701
  translatedValue: string;
710
702
  }[] | undefined;
703
+ }, ...{
704
+ value: string;
705
+ id: string;
711
706
  tmMatch?: {
712
707
  sourceValue: string;
713
708
  translatedValue: string;
714
709
  } | undefined;
710
+ translationExamples?: {
711
+ sourceValue: string;
712
+ translatedValue: string;
713
+ }[] | undefined;
715
714
  }[]];
715
+ id: string;
716
716
  context?: {
717
717
  description: string;
718
718
  } | undefined;
@@ -720,6 +720,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
720
720
  }[]];
721
721
  targetLocale: string;
722
722
  context?: {
723
+ translationExamples?: {
724
+ sourceValue: string;
725
+ translatedValue: string;
726
+ }[] | undefined;
723
727
  description?: string | undefined;
724
728
  styleGuide?: {
725
729
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -736,16 +740,12 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
736
740
  forbidden?: boolean | undefined;
737
741
  caseSensitive?: boolean | undefined;
738
742
  translations?: {
739
- locale: string;
740
743
  translation: string;
744
+ locale: string;
741
745
  description?: string | undefined;
742
746
  }[] | undefined;
743
747
  }[] | undefined;
744
748
  targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
745
- translationExamples?: {
746
- sourceValue: string;
747
- translatedValue: string;
748
- }[] | undefined;
749
749
  } | undefined;
750
750
  integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
751
751
  forceIntegration?: boolean | undefined;
@@ -783,59 +783,59 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
783
783
  callbackToken: string;
784
784
  sourceLocale: string;
785
785
  contentUnits: [{
786
- id: string;
787
786
  segments: [{
788
787
  value: string;
789
788
  id: string;
790
- translationExamples?: {
791
- sourceValue: string;
792
- translatedValue: string;
793
- }[] | undefined;
794
789
  tmMatch?: {
795
790
  sourceValue: string;
796
791
  translatedValue: string;
797
792
  } | undefined;
798
- }, ...{
799
- value: string;
800
- id: string;
801
793
  translationExamples?: {
802
794
  sourceValue: string;
803
795
  translatedValue: string;
804
796
  }[] | undefined;
797
+ }, ...{
798
+ value: string;
799
+ id: string;
805
800
  tmMatch?: {
806
801
  sourceValue: string;
807
802
  translatedValue: string;
808
803
  } | undefined;
804
+ translationExamples?: {
805
+ sourceValue: string;
806
+ translatedValue: string;
807
+ }[] | undefined;
809
808
  }[]];
809
+ id: string;
810
810
  context?: {
811
811
  description: string;
812
812
  } | undefined;
813
813
  characterLimit?: number | undefined;
814
814
  }, ...{
815
- id: string;
816
815
  segments: [{
817
816
  value: string;
818
817
  id: string;
819
- translationExamples?: {
820
- sourceValue: string;
821
- translatedValue: string;
822
- }[] | undefined;
823
818
  tmMatch?: {
824
819
  sourceValue: string;
825
820
  translatedValue: string;
826
821
  } | undefined;
827
- }, ...{
828
- value: string;
829
- id: string;
830
822
  translationExamples?: {
831
823
  sourceValue: string;
832
824
  translatedValue: string;
833
825
  }[] | undefined;
826
+ }, ...{
827
+ value: string;
828
+ id: string;
834
829
  tmMatch?: {
835
830
  sourceValue: string;
836
831
  translatedValue: string;
837
832
  } | undefined;
833
+ translationExamples?: {
834
+ sourceValue: string;
835
+ translatedValue: string;
836
+ }[] | undefined;
838
837
  }[]];
838
+ id: string;
839
839
  context?: {
840
840
  description: string;
841
841
  } | undefined;
@@ -845,6 +845,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
845
845
  pickIntegrationByScore: boolean;
846
846
  includeScore: boolean;
847
847
  context?: {
848
+ translationExamples?: {
849
+ sourceValue: string;
850
+ translatedValue: string;
851
+ }[] | undefined;
848
852
  description?: string | undefined;
849
853
  styleGuide?: {
850
854
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -861,16 +865,12 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
861
865
  caseSensitive: boolean;
862
866
  description?: string | undefined;
863
867
  translations?: {
864
- locale: string;
865
868
  translation: string;
869
+ locale: string;
866
870
  description?: string | undefined;
867
871
  }[] | undefined;
868
872
  }[] | undefined;
869
873
  targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
870
- translationExamples?: {
871
- sourceValue: string;
872
- translatedValue: string;
873
- }[] | undefined;
874
874
  } | undefined;
875
875
  integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
876
876
  forceIntegration?: boolean | undefined;
@@ -906,59 +906,59 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
906
906
  callbackToken: string;
907
907
  sourceLocale: string;
908
908
  contentUnits: [{
909
- id: string;
910
909
  segments: [{
911
910
  value: string;
912
911
  id: string;
913
- translationExamples?: {
914
- sourceValue: string;
915
- translatedValue: string;
916
- }[] | undefined;
917
912
  tmMatch?: {
918
913
  sourceValue: string;
919
914
  translatedValue: string;
920
915
  } | undefined;
921
- }, ...{
922
- value: string;
923
- id: string;
924
916
  translationExamples?: {
925
917
  sourceValue: string;
926
918
  translatedValue: string;
927
919
  }[] | undefined;
920
+ }, ...{
921
+ value: string;
922
+ id: string;
928
923
  tmMatch?: {
929
924
  sourceValue: string;
930
925
  translatedValue: string;
931
926
  } | undefined;
927
+ translationExamples?: {
928
+ sourceValue: string;
929
+ translatedValue: string;
930
+ }[] | undefined;
932
931
  }[]];
932
+ id: string;
933
933
  context?: {
934
934
  description: string;
935
935
  } | undefined;
936
936
  characterLimit?: number | undefined;
937
937
  }, ...{
938
- id: string;
939
938
  segments: [{
940
939
  value: string;
941
940
  id: string;
942
- translationExamples?: {
943
- sourceValue: string;
944
- translatedValue: string;
945
- }[] | undefined;
946
941
  tmMatch?: {
947
942
  sourceValue: string;
948
943
  translatedValue: string;
949
944
  } | undefined;
950
- }, ...{
951
- value: string;
952
- id: string;
953
945
  translationExamples?: {
954
946
  sourceValue: string;
955
947
  translatedValue: string;
956
948
  }[] | undefined;
949
+ }, ...{
950
+ value: string;
951
+ id: string;
957
952
  tmMatch?: {
958
953
  sourceValue: string;
959
954
  translatedValue: string;
960
955
  } | undefined;
956
+ translationExamples?: {
957
+ sourceValue: string;
958
+ translatedValue: string;
959
+ }[] | undefined;
961
960
  }[]];
961
+ id: string;
962
962
  context?: {
963
963
  description: string;
964
964
  } | undefined;
@@ -966,6 +966,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
966
966
  }[]];
967
967
  targetLocale: string;
968
968
  context?: {
969
+ translationExamples?: {
970
+ sourceValue: string;
971
+ translatedValue: string;
972
+ }[] | undefined;
969
973
  description?: string | undefined;
970
974
  styleGuide?: {
971
975
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -982,16 +986,12 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
982
986
  forbidden?: boolean | undefined;
983
987
  caseSensitive?: boolean | undefined;
984
988
  translations?: {
985
- locale: string;
986
989
  translation: string;
990
+ locale: string;
987
991
  description?: string | undefined;
988
992
  }[] | undefined;
989
993
  }[] | undefined;
990
994
  targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
991
- translationExamples?: {
992
- sourceValue: string;
993
- translatedValue: string;
994
- }[] | undefined;
995
995
  } | undefined;
996
996
  integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
997
997
  forceIntegration?: boolean | undefined;
@@ -1029,59 +1029,59 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1029
1029
  callbackToken: string;
1030
1030
  sourceLocale: string;
1031
1031
  contentUnits: [{
1032
- id: string;
1033
1032
  segments: [{
1034
1033
  value: string;
1035
1034
  id: string;
1036
- translationExamples?: {
1037
- sourceValue: string;
1038
- translatedValue: string;
1039
- }[] | undefined;
1040
1035
  tmMatch?: {
1041
1036
  sourceValue: string;
1042
1037
  translatedValue: string;
1043
1038
  } | undefined;
1044
- }, ...{
1045
- value: string;
1046
- id: string;
1047
1039
  translationExamples?: {
1048
1040
  sourceValue: string;
1049
1041
  translatedValue: string;
1050
1042
  }[] | undefined;
1043
+ }, ...{
1044
+ value: string;
1045
+ id: string;
1051
1046
  tmMatch?: {
1052
1047
  sourceValue: string;
1053
1048
  translatedValue: string;
1054
1049
  } | undefined;
1050
+ translationExamples?: {
1051
+ sourceValue: string;
1052
+ translatedValue: string;
1053
+ }[] | undefined;
1055
1054
  }[]];
1055
+ id: string;
1056
1056
  context?: {
1057
1057
  description: string;
1058
1058
  } | undefined;
1059
1059
  characterLimit?: number | undefined;
1060
1060
  }, ...{
1061
- id: string;
1062
1061
  segments: [{
1063
1062
  value: string;
1064
1063
  id: string;
1065
- translationExamples?: {
1066
- sourceValue: string;
1067
- translatedValue: string;
1068
- }[] | undefined;
1069
1064
  tmMatch?: {
1070
1065
  sourceValue: string;
1071
1066
  translatedValue: string;
1072
1067
  } | undefined;
1073
- }, ...{
1074
- value: string;
1075
- id: string;
1076
1068
  translationExamples?: {
1077
1069
  sourceValue: string;
1078
1070
  translatedValue: string;
1079
1071
  }[] | undefined;
1072
+ }, ...{
1073
+ value: string;
1074
+ id: string;
1080
1075
  tmMatch?: {
1081
1076
  sourceValue: string;
1082
1077
  translatedValue: string;
1083
1078
  } | undefined;
1079
+ translationExamples?: {
1080
+ sourceValue: string;
1081
+ translatedValue: string;
1082
+ }[] | undefined;
1084
1083
  }[]];
1084
+ id: string;
1085
1085
  context?: {
1086
1086
  description: string;
1087
1087
  } | undefined;
@@ -1091,6 +1091,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1091
1091
  pickIntegrationByScore: boolean;
1092
1092
  includeScore: boolean;
1093
1093
  context?: {
1094
+ translationExamples?: {
1095
+ sourceValue: string;
1096
+ translatedValue: string;
1097
+ }[] | undefined;
1094
1098
  description?: string | undefined;
1095
1099
  styleGuide?: {
1096
1100
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -1107,16 +1111,12 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1107
1111
  caseSensitive: boolean;
1108
1112
  description?: string | undefined;
1109
1113
  translations?: {
1110
- locale: string;
1111
1114
  translation: string;
1115
+ locale: string;
1112
1116
  description?: string | undefined;
1113
1117
  }[] | undefined;
1114
1118
  }[] | undefined;
1115
1119
  targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
1116
- translationExamples?: {
1117
- sourceValue: string;
1118
- translatedValue: string;
1119
- }[] | undefined;
1120
1120
  } | undefined;
1121
1121
  integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1122
1122
  forceIntegration?: boolean | undefined;
@@ -1152,59 +1152,59 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1152
1152
  callbackToken: string;
1153
1153
  sourceLocale: string;
1154
1154
  contentUnits: [{
1155
- id: string;
1156
- segments: [{
1157
- value: string;
1158
- id: string;
1159
- translationExamples?: {
1160
- sourceValue: string;
1161
- translatedValue: string;
1162
- }[] | undefined;
1155
+ segments: [{
1156
+ value: string;
1157
+ id: string;
1163
1158
  tmMatch?: {
1164
1159
  sourceValue: string;
1165
1160
  translatedValue: string;
1166
1161
  } | undefined;
1167
- }, ...{
1168
- value: string;
1169
- id: string;
1170
1162
  translationExamples?: {
1171
1163
  sourceValue: string;
1172
1164
  translatedValue: string;
1173
1165
  }[] | undefined;
1166
+ }, ...{
1167
+ value: string;
1168
+ id: string;
1174
1169
  tmMatch?: {
1175
1170
  sourceValue: string;
1176
1171
  translatedValue: string;
1177
1172
  } | undefined;
1173
+ translationExamples?: {
1174
+ sourceValue: string;
1175
+ translatedValue: string;
1176
+ }[] | undefined;
1178
1177
  }[]];
1178
+ id: string;
1179
1179
  context?: {
1180
1180
  description: string;
1181
1181
  } | undefined;
1182
1182
  characterLimit?: number | undefined;
1183
1183
  }, ...{
1184
- id: string;
1185
1184
  segments: [{
1186
1185
  value: string;
1187
1186
  id: string;
1188
- translationExamples?: {
1189
- sourceValue: string;
1190
- translatedValue: string;
1191
- }[] | undefined;
1192
1187
  tmMatch?: {
1193
1188
  sourceValue: string;
1194
1189
  translatedValue: string;
1195
1190
  } | undefined;
1196
- }, ...{
1197
- value: string;
1198
- id: string;
1199
1191
  translationExamples?: {
1200
1192
  sourceValue: string;
1201
1193
  translatedValue: string;
1202
1194
  }[] | undefined;
1195
+ }, ...{
1196
+ value: string;
1197
+ id: string;
1203
1198
  tmMatch?: {
1204
1199
  sourceValue: string;
1205
1200
  translatedValue: string;
1206
1201
  } | undefined;
1202
+ translationExamples?: {
1203
+ sourceValue: string;
1204
+ translatedValue: string;
1205
+ }[] | undefined;
1207
1206
  }[]];
1207
+ id: string;
1208
1208
  context?: {
1209
1209
  description: string;
1210
1210
  } | undefined;
@@ -1212,6 +1212,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1212
1212
  }[]];
1213
1213
  targetLocale: string;
1214
1214
  context?: {
1215
+ translationExamples?: {
1216
+ sourceValue: string;
1217
+ translatedValue: string;
1218
+ }[] | undefined;
1215
1219
  description?: string | undefined;
1216
1220
  styleGuide?: {
1217
1221
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -1228,16 +1232,12 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1228
1232
  forbidden?: boolean | undefined;
1229
1233
  caseSensitive?: boolean | undefined;
1230
1234
  translations?: {
1231
- locale: string;
1232
1235
  translation: string;
1236
+ locale: string;
1233
1237
  description?: string | undefined;
1234
1238
  }[] | undefined;
1235
1239
  }[] | undefined;
1236
1240
  targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
1237
- translationExamples?: {
1238
- sourceValue: string;
1239
- translatedValue: string;
1240
- }[] | undefined;
1241
1241
  } | undefined;
1242
1242
  integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1243
1243
  forceIntegration?: boolean | undefined;
@@ -1275,59 +1275,59 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1275
1275
  callbackToken: string;
1276
1276
  sourceLocale: string;
1277
1277
  contentUnits: [{
1278
- id: string;
1279
1278
  segments: [{
1280
1279
  value: string;
1281
1280
  id: string;
1282
- translationExamples?: {
1283
- sourceValue: string;
1284
- translatedValue: string;
1285
- }[] | undefined;
1286
1281
  tmMatch?: {
1287
1282
  sourceValue: string;
1288
1283
  translatedValue: string;
1289
1284
  } | undefined;
1290
- }, ...{
1291
- value: string;
1292
- id: string;
1293
1285
  translationExamples?: {
1294
1286
  sourceValue: string;
1295
1287
  translatedValue: string;
1296
1288
  }[] | undefined;
1289
+ }, ...{
1290
+ value: string;
1291
+ id: string;
1297
1292
  tmMatch?: {
1298
1293
  sourceValue: string;
1299
1294
  translatedValue: string;
1300
1295
  } | undefined;
1296
+ translationExamples?: {
1297
+ sourceValue: string;
1298
+ translatedValue: string;
1299
+ }[] | undefined;
1301
1300
  }[]];
1301
+ id: string;
1302
1302
  context?: {
1303
1303
  description: string;
1304
1304
  } | undefined;
1305
1305
  characterLimit?: number | undefined;
1306
1306
  }, ...{
1307
- id: string;
1308
1307
  segments: [{
1309
1308
  value: string;
1310
1309
  id: string;
1311
- translationExamples?: {
1312
- sourceValue: string;
1313
- translatedValue: string;
1314
- }[] | undefined;
1315
1310
  tmMatch?: {
1316
1311
  sourceValue: string;
1317
1312
  translatedValue: string;
1318
1313
  } | undefined;
1319
- }, ...{
1320
- value: string;
1321
- id: string;
1322
1314
  translationExamples?: {
1323
1315
  sourceValue: string;
1324
1316
  translatedValue: string;
1325
1317
  }[] | undefined;
1318
+ }, ...{
1319
+ value: string;
1320
+ id: string;
1326
1321
  tmMatch?: {
1327
1322
  sourceValue: string;
1328
1323
  translatedValue: string;
1329
1324
  } | undefined;
1325
+ translationExamples?: {
1326
+ sourceValue: string;
1327
+ translatedValue: string;
1328
+ }[] | undefined;
1330
1329
  }[]];
1330
+ id: string;
1331
1331
  context?: {
1332
1332
  description: string;
1333
1333
  } | undefined;
@@ -1337,6 +1337,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1337
1337
  pickIntegrationByScore: boolean;
1338
1338
  includeScore: boolean;
1339
1339
  context?: {
1340
+ translationExamples?: {
1341
+ sourceValue: string;
1342
+ translatedValue: string;
1343
+ }[] | undefined;
1340
1344
  description?: string | undefined;
1341
1345
  styleGuide?: {
1342
1346
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -1353,16 +1357,12 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1353
1357
  caseSensitive: boolean;
1354
1358
  description?: string | undefined;
1355
1359
  translations?: {
1356
- locale: string;
1357
1360
  translation: string;
1361
+ locale: string;
1358
1362
  description?: string | undefined;
1359
1363
  }[] | undefined;
1360
1364
  }[] | undefined;
1361
1365
  targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
1362
- translationExamples?: {
1363
- sourceValue: string;
1364
- translatedValue: string;
1365
- }[] | undefined;
1366
1366
  } | undefined;
1367
1367
  integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1368
1368
  forceIntegration?: boolean | undefined;
@@ -1398,59 +1398,59 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1398
1398
  callbackToken: string;
1399
1399
  sourceLocale: string;
1400
1400
  contentUnits: [{
1401
- id: string;
1402
1401
  segments: [{
1403
1402
  value: string;
1404
1403
  id: string;
1405
- translationExamples?: {
1406
- sourceValue: string;
1407
- translatedValue: string;
1408
- }[] | undefined;
1409
1404
  tmMatch?: {
1410
1405
  sourceValue: string;
1411
1406
  translatedValue: string;
1412
1407
  } | undefined;
1413
- }, ...{
1414
- value: string;
1415
- id: string;
1416
1408
  translationExamples?: {
1417
1409
  sourceValue: string;
1418
1410
  translatedValue: string;
1419
1411
  }[] | undefined;
1412
+ }, ...{
1413
+ value: string;
1414
+ id: string;
1420
1415
  tmMatch?: {
1421
1416
  sourceValue: string;
1422
1417
  translatedValue: string;
1423
1418
  } | undefined;
1419
+ translationExamples?: {
1420
+ sourceValue: string;
1421
+ translatedValue: string;
1422
+ }[] | undefined;
1424
1423
  }[]];
1424
+ id: string;
1425
1425
  context?: {
1426
1426
  description: string;
1427
1427
  } | undefined;
1428
1428
  characterLimit?: number | undefined;
1429
1429
  }, ...{
1430
- id: string;
1431
1430
  segments: [{
1432
1431
  value: string;
1433
1432
  id: string;
1434
- translationExamples?: {
1435
- sourceValue: string;
1436
- translatedValue: string;
1437
- }[] | undefined;
1438
1433
  tmMatch?: {
1439
1434
  sourceValue: string;
1440
1435
  translatedValue: string;
1441
1436
  } | undefined;
1442
- }, ...{
1443
- value: string;
1444
- id: string;
1445
1437
  translationExamples?: {
1446
1438
  sourceValue: string;
1447
1439
  translatedValue: string;
1448
1440
  }[] | undefined;
1441
+ }, ...{
1442
+ value: string;
1443
+ id: string;
1449
1444
  tmMatch?: {
1450
1445
  sourceValue: string;
1451
1446
  translatedValue: string;
1452
1447
  } | undefined;
1448
+ translationExamples?: {
1449
+ sourceValue: string;
1450
+ translatedValue: string;
1451
+ }[] | undefined;
1453
1452
  }[]];
1453
+ id: string;
1454
1454
  context?: {
1455
1455
  description: string;
1456
1456
  } | undefined;
@@ -1458,6 +1458,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1458
1458
  }[]];
1459
1459
  targetLocale: string;
1460
1460
  context?: {
1461
+ translationExamples?: {
1462
+ sourceValue: string;
1463
+ translatedValue: string;
1464
+ }[] | undefined;
1461
1465
  description?: string | undefined;
1462
1466
  styleGuide?: {
1463
1467
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -1474,16 +1478,12 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1474
1478
  forbidden?: boolean | undefined;
1475
1479
  caseSensitive?: boolean | undefined;
1476
1480
  translations?: {
1477
- locale: string;
1478
1481
  translation: string;
1482
+ locale: string;
1479
1483
  description?: string | undefined;
1480
1484
  }[] | undefined;
1481
1485
  }[] | undefined;
1482
1486
  targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
1483
- translationExamples?: {
1484
- sourceValue: string;
1485
- translatedValue: string;
1486
- }[] | undefined;
1487
1487
  } | undefined;
1488
1488
  integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1489
1489
  forceIntegration?: boolean | undefined;
@@ -1521,59 +1521,59 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1521
1521
  callbackToken: string;
1522
1522
  sourceLocale: string;
1523
1523
  contentUnits: [{
1524
- id: string;
1525
1524
  segments: [{
1526
1525
  value: string;
1527
1526
  id: string;
1528
- translationExamples?: {
1529
- sourceValue: string;
1530
- translatedValue: string;
1531
- }[] | undefined;
1532
1527
  tmMatch?: {
1533
1528
  sourceValue: string;
1534
1529
  translatedValue: string;
1535
1530
  } | undefined;
1536
- }, ...{
1537
- value: string;
1538
- id: string;
1539
1531
  translationExamples?: {
1540
1532
  sourceValue: string;
1541
1533
  translatedValue: string;
1542
1534
  }[] | undefined;
1535
+ }, ...{
1536
+ value: string;
1537
+ id: string;
1543
1538
  tmMatch?: {
1544
1539
  sourceValue: string;
1545
1540
  translatedValue: string;
1546
1541
  } | undefined;
1542
+ translationExamples?: {
1543
+ sourceValue: string;
1544
+ translatedValue: string;
1545
+ }[] | undefined;
1547
1546
  }[]];
1547
+ id: string;
1548
1548
  context?: {
1549
1549
  description: string;
1550
1550
  } | undefined;
1551
1551
  characterLimit?: number | undefined;
1552
1552
  }, ...{
1553
- id: string;
1554
1553
  segments: [{
1555
1554
  value: string;
1556
1555
  id: string;
1557
- translationExamples?: {
1558
- sourceValue: string;
1559
- translatedValue: string;
1560
- }[] | undefined;
1561
1556
  tmMatch?: {
1562
1557
  sourceValue: string;
1563
1558
  translatedValue: string;
1564
1559
  } | undefined;
1565
- }, ...{
1566
- value: string;
1567
- id: string;
1568
1560
  translationExamples?: {
1569
1561
  sourceValue: string;
1570
1562
  translatedValue: string;
1571
1563
  }[] | undefined;
1564
+ }, ...{
1565
+ value: string;
1566
+ id: string;
1572
1567
  tmMatch?: {
1573
1568
  sourceValue: string;
1574
1569
  translatedValue: string;
1575
1570
  } | undefined;
1571
+ translationExamples?: {
1572
+ sourceValue: string;
1573
+ translatedValue: string;
1574
+ }[] | undefined;
1576
1575
  }[]];
1576
+ id: string;
1577
1577
  context?: {
1578
1578
  description: string;
1579
1579
  } | undefined;
@@ -1583,6 +1583,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1583
1583
  pickIntegrationByScore: boolean;
1584
1584
  includeScore: boolean;
1585
1585
  context?: {
1586
+ translationExamples?: {
1587
+ sourceValue: string;
1588
+ translatedValue: string;
1589
+ }[] | undefined;
1586
1590
  description?: string | undefined;
1587
1591
  styleGuide?: {
1588
1592
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -1599,16 +1603,12 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1599
1603
  caseSensitive: boolean;
1600
1604
  description?: string | undefined;
1601
1605
  translations?: {
1602
- locale: string;
1603
1606
  translation: string;
1607
+ locale: string;
1604
1608
  description?: string | undefined;
1605
1609
  }[] | undefined;
1606
1610
  }[] | undefined;
1607
1611
  targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
1608
- translationExamples?: {
1609
- sourceValue: string;
1610
- translatedValue: string;
1611
- }[] | undefined;
1612
1612
  } | undefined;
1613
1613
  integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1614
1614
  forceIntegration?: boolean | undefined;
@@ -1644,59 +1644,59 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1644
1644
  callbackToken: string;
1645
1645
  sourceLocale: string;
1646
1646
  contentUnits: [{
1647
- id: string;
1648
1647
  segments: [{
1649
1648
  value: string;
1650
1649
  id: string;
1651
- translationExamples?: {
1652
- sourceValue: string;
1653
- translatedValue: string;
1654
- }[] | undefined;
1655
1650
  tmMatch?: {
1656
1651
  sourceValue: string;
1657
1652
  translatedValue: string;
1658
1653
  } | undefined;
1659
- }, ...{
1660
- value: string;
1661
- id: string;
1662
1654
  translationExamples?: {
1663
1655
  sourceValue: string;
1664
1656
  translatedValue: string;
1665
1657
  }[] | undefined;
1658
+ }, ...{
1659
+ value: string;
1660
+ id: string;
1666
1661
  tmMatch?: {
1667
1662
  sourceValue: string;
1668
1663
  translatedValue: string;
1669
1664
  } | undefined;
1665
+ translationExamples?: {
1666
+ sourceValue: string;
1667
+ translatedValue: string;
1668
+ }[] | undefined;
1670
1669
  }[]];
1670
+ id: string;
1671
1671
  context?: {
1672
1672
  description: string;
1673
1673
  } | undefined;
1674
1674
  characterLimit?: number | undefined;
1675
1675
  }, ...{
1676
- id: string;
1677
1676
  segments: [{
1678
1677
  value: string;
1679
1678
  id: string;
1680
- translationExamples?: {
1681
- sourceValue: string;
1682
- translatedValue: string;
1683
- }[] | undefined;
1684
1679
  tmMatch?: {
1685
1680
  sourceValue: string;
1686
1681
  translatedValue: string;
1687
1682
  } | undefined;
1688
- }, ...{
1689
- value: string;
1690
- id: string;
1691
1683
  translationExamples?: {
1692
1684
  sourceValue: string;
1693
1685
  translatedValue: string;
1694
1686
  }[] | undefined;
1687
+ }, ...{
1688
+ value: string;
1689
+ id: string;
1695
1690
  tmMatch?: {
1696
1691
  sourceValue: string;
1697
1692
  translatedValue: string;
1698
1693
  } | undefined;
1694
+ translationExamples?: {
1695
+ sourceValue: string;
1696
+ translatedValue: string;
1697
+ }[] | undefined;
1699
1698
  }[]];
1699
+ id: string;
1700
1700
  context?: {
1701
1701
  description: string;
1702
1702
  } | undefined;
@@ -1704,6 +1704,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1704
1704
  }[]];
1705
1705
  targetLocale: string;
1706
1706
  context?: {
1707
+ translationExamples?: {
1708
+ sourceValue: string;
1709
+ translatedValue: string;
1710
+ }[] | undefined;
1707
1711
  description?: string | undefined;
1708
1712
  styleGuide?: {
1709
1713
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -1720,16 +1724,12 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1720
1724
  forbidden?: boolean | undefined;
1721
1725
  caseSensitive?: boolean | undefined;
1722
1726
  translations?: {
1723
- locale: string;
1724
1727
  translation: string;
1728
+ locale: string;
1725
1729
  description?: string | undefined;
1726
1730
  }[] | undefined;
1727
1731
  }[] | undefined;
1728
1732
  targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
1729
- translationExamples?: {
1730
- sourceValue: string;
1731
- translatedValue: string;
1732
- }[] | undefined;
1733
1733
  } | undefined;
1734
1734
  integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1735
1735
  forceIntegration?: boolean | undefined;
@@ -1815,10 +1815,10 @@ export declare const TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA: z.ZodObject<{
1815
1815
  }, "strip", z.ZodTypeAny, {
1816
1816
  translation: string;
1817
1817
  integration: string;
1818
+ polyglotRefId: string;
1818
1819
  contentUnitId: string;
1819
1820
  score: number | null;
1820
1821
  segmentId: string;
1821
- polyglotRefId: string;
1822
1822
  warnings?: {
1823
1823
  kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
1824
1824
  }[] | undefined;
@@ -1830,10 +1830,10 @@ export declare const TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA: z.ZodObject<{
1830
1830
  }, {
1831
1831
  translation: string;
1832
1832
  integration: string;
1833
+ polyglotRefId: string;
1833
1834
  contentUnitId: string;
1834
1835
  score: number | null;
1835
1836
  segmentId: string;
1836
- polyglotRefId: string;
1837
1837
  warnings?: {
1838
1838
  kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
1839
1839
  }[] | undefined;
@@ -1856,17 +1856,17 @@ export declare const TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA: z.ZodObject<{
1856
1856
  message: string;
1857
1857
  errorCode: string;
1858
1858
  integration: string;
1859
+ polyglotRefId: string;
1859
1860
  contentUnitId: string;
1860
1861
  segmentId: string;
1861
- polyglotRefId: string;
1862
1862
  details?: Record<string, unknown> | undefined;
1863
1863
  }, {
1864
1864
  message: string;
1865
1865
  errorCode: string;
1866
1866
  integration: string;
1867
+ polyglotRefId: string;
1867
1868
  contentUnitId: string;
1868
1869
  segmentId: string;
1869
- polyglotRefId: string;
1870
1870
  details?: Record<string, unknown> | undefined;
1871
1871
  }>, "many">>;
1872
1872
  }, "strip", z.ZodTypeAny, {
@@ -1874,10 +1874,10 @@ export declare const TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA: z.ZodObject<{
1874
1874
  data: {
1875
1875
  translation: string;
1876
1876
  integration: string;
1877
+ polyglotRefId: string;
1877
1878
  contentUnitId: string;
1878
1879
  score: number | null;
1879
1880
  segmentId: string;
1880
- polyglotRefId: string;
1881
1881
  warnings?: {
1882
1882
  kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
1883
1883
  }[] | undefined;
@@ -1891,9 +1891,9 @@ export declare const TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA: z.ZodObject<{
1891
1891
  message: string;
1892
1892
  errorCode: string;
1893
1893
  integration: string;
1894
+ polyglotRefId: string;
1894
1895
  contentUnitId: string;
1895
1896
  segmentId: string;
1896
- polyglotRefId: string;
1897
1897
  details?: Record<string, unknown> | undefined;
1898
1898
  }[] | undefined;
1899
1899
  }, {
@@ -1901,10 +1901,10 @@ export declare const TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA: z.ZodObject<{
1901
1901
  data: {
1902
1902
  translation: string;
1903
1903
  integration: string;
1904
+ polyglotRefId: string;
1904
1905
  contentUnitId: string;
1905
1906
  score: number | null;
1906
1907
  segmentId: string;
1907
- polyglotRefId: string;
1908
1908
  warnings?: {
1909
1909
  kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
1910
1910
  }[] | undefined;
@@ -1918,9 +1918,9 @@ export declare const TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA: z.ZodObject<{
1918
1918
  message: string;
1919
1919
  errorCode: string;
1920
1920
  integration: string;
1921
+ polyglotRefId: string;
1921
1922
  contentUnitId: string;
1922
1923
  segmentId: string;
1923
- polyglotRefId: string;
1924
1924
  details?: Record<string, unknown> | undefined;
1925
1925
  }[] | undefined;
1926
1926
  }>;
@@ -1961,10 +1961,10 @@ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
1961
1961
  }, "strip", z.ZodTypeAny, {
1962
1962
  translation: string;
1963
1963
  integration: string;
1964
+ polyglotRefId: string;
1964
1965
  contentUnitId: string;
1965
1966
  score: number | null;
1966
1967
  segmentId: string;
1967
- polyglotRefId: string;
1968
1968
  warnings?: {
1969
1969
  kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
1970
1970
  }[] | undefined;
@@ -1976,10 +1976,10 @@ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
1976
1976
  }, {
1977
1977
  translation: string;
1978
1978
  integration: string;
1979
+ polyglotRefId: string;
1979
1980
  contentUnitId: string;
1980
1981
  score: number | null;
1981
1982
  segmentId: string;
1982
- polyglotRefId: string;
1983
1983
  warnings?: {
1984
1984
  kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
1985
1985
  }[] | undefined;
@@ -2002,17 +2002,17 @@ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
2002
2002
  message: string;
2003
2003
  errorCode: string;
2004
2004
  integration: string;
2005
+ polyglotRefId: string;
2005
2006
  contentUnitId: string;
2006
2007
  segmentId: string;
2007
- polyglotRefId: string;
2008
2008
  details?: Record<string, unknown> | undefined;
2009
2009
  }, {
2010
2010
  message: string;
2011
2011
  errorCode: string;
2012
2012
  integration: string;
2013
+ polyglotRefId: string;
2013
2014
  contentUnitId: string;
2014
2015
  segmentId: string;
2015
- polyglotRefId: string;
2016
2016
  details?: Record<string, unknown> | undefined;
2017
2017
  }>, "many">>;
2018
2018
  } & {
@@ -2023,10 +2023,10 @@ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
2023
2023
  data: {
2024
2024
  translation: string;
2025
2025
  integration: string;
2026
+ polyglotRefId: string;
2026
2027
  contentUnitId: string;
2027
2028
  score: number | null;
2028
2029
  segmentId: string;
2029
- polyglotRefId: string;
2030
2030
  warnings?: {
2031
2031
  kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
2032
2032
  }[] | undefined;
@@ -2040,9 +2040,9 @@ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
2040
2040
  message: string;
2041
2041
  errorCode: string;
2042
2042
  integration: string;
2043
+ polyglotRefId: string;
2043
2044
  contentUnitId: string;
2044
2045
  segmentId: string;
2045
- polyglotRefId: string;
2046
2046
  details?: Record<string, unknown> | undefined;
2047
2047
  }[] | undefined;
2048
2048
  }, {
@@ -2051,10 +2051,10 @@ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
2051
2051
  data: {
2052
2052
  translation: string;
2053
2053
  integration: string;
2054
+ polyglotRefId: string;
2054
2055
  contentUnitId: string;
2055
2056
  score: number | null;
2056
2057
  segmentId: string;
2057
- polyglotRefId: string;
2058
2058
  warnings?: {
2059
2059
  kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
2060
2060
  }[] | undefined;
@@ -2068,9 +2068,9 @@ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
2068
2068
  message: string;
2069
2069
  errorCode: string;
2070
2070
  integration: string;
2071
+ polyglotRefId: string;
2071
2072
  contentUnitId: string;
2072
2073
  segmentId: string;
2073
- polyglotRefId: string;
2074
2074
  details?: Record<string, unknown> | undefined;
2075
2075
  }[] | undefined;
2076
2076
  }>;
@@ -2111,10 +2111,10 @@ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"s
2111
2111
  }, "strip", z.ZodTypeAny, {
2112
2112
  translation: string;
2113
2113
  integration: string;
2114
+ polyglotRefId: string;
2114
2115
  contentUnitId: string;
2115
2116
  score: number | null;
2116
2117
  segmentId: string;
2117
- polyglotRefId: string;
2118
2118
  warnings?: {
2119
2119
  kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
2120
2120
  }[] | undefined;
@@ -2126,10 +2126,10 @@ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"s
2126
2126
  }, {
2127
2127
  translation: string;
2128
2128
  integration: string;
2129
+ polyglotRefId: string;
2129
2130
  contentUnitId: string;
2130
2131
  score: number | null;
2131
2132
  segmentId: string;
2132
- polyglotRefId: string;
2133
2133
  warnings?: {
2134
2134
  kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
2135
2135
  }[] | undefined;
@@ -2152,17 +2152,17 @@ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"s
2152
2152
  message: string;
2153
2153
  errorCode: string;
2154
2154
  integration: string;
2155
+ polyglotRefId: string;
2155
2156
  contentUnitId: string;
2156
2157
  segmentId: string;
2157
- polyglotRefId: string;
2158
2158
  details?: Record<string, unknown> | undefined;
2159
2159
  }, {
2160
2160
  message: string;
2161
2161
  errorCode: string;
2162
2162
  integration: string;
2163
+ polyglotRefId: string;
2163
2164
  contentUnitId: string;
2164
2165
  segmentId: string;
2165
- polyglotRefId: string;
2166
2166
  details?: Record<string, unknown> | undefined;
2167
2167
  }>, "many">>;
2168
2168
  } & {
@@ -2173,10 +2173,10 @@ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"s
2173
2173
  data: {
2174
2174
  translation: string;
2175
2175
  integration: string;
2176
+ polyglotRefId: string;
2176
2177
  contentUnitId: string;
2177
2178
  score: number | null;
2178
2179
  segmentId: string;
2179
- polyglotRefId: string;
2180
2180
  warnings?: {
2181
2181
  kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
2182
2182
  }[] | undefined;
@@ -2190,9 +2190,9 @@ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"s
2190
2190
  message: string;
2191
2191
  errorCode: string;
2192
2192
  integration: string;
2193
+ polyglotRefId: string;
2193
2194
  contentUnitId: string;
2194
2195
  segmentId: string;
2195
- polyglotRefId: string;
2196
2196
  details?: Record<string, unknown> | undefined;
2197
2197
  }[] | undefined;
2198
2198
  }, {
@@ -2201,10 +2201,10 @@ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"s
2201
2201
  data: {
2202
2202
  translation: string;
2203
2203
  integration: string;
2204
+ polyglotRefId: string;
2204
2205
  contentUnitId: string;
2205
2206
  score: number | null;
2206
2207
  segmentId: string;
2207
- polyglotRefId: string;
2208
2208
  warnings?: {
2209
2209
  kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
2210
2210
  }[] | undefined;
@@ -2218,9 +2218,9 @@ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"s
2218
2218
  message: string;
2219
2219
  errorCode: string;
2220
2220
  integration: string;
2221
+ polyglotRefId: string;
2221
2222
  contentUnitId: string;
2222
2223
  segmentId: string;
2223
- polyglotRefId: string;
2224
2224
  details?: Record<string, unknown> | undefined;
2225
2225
  }[] | undefined;
2226
2226
  }>, z.ZodObject<{