@lokalise/polyglot-sdk 20.0.0 → 20.0.2

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