@lokalise/polyglot-sdk 19.1.0 → 20.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/index.d.ts +22 -22
  2. package/dist/index.js +20 -20
  3. package/dist/index.js.map +1 -1
  4. package/dist/sdk/PolyglotClient.d.ts +7 -7
  5. package/dist/sdk/PolyglotClient.js +6 -6
  6. package/dist/sdk/helpers/htmlEscaping.d.ts +1 -1
  7. package/dist/sdk/helpers/htmlEscaping.js +2 -2
  8. package/dist/sdk/helpers/nonTranslatableContentHelper.d.ts +1 -1
  9. package/dist/sdk/helpers/nonTranslatableContentHelper.js +1 -1
  10. package/dist/sdk/helpers/nonTranslatableContentWrappers.d.ts +1 -1
  11. package/dist/sdk/helpers/nonTranslatableContentWrappers.js +2 -2
  12. package/dist/sdk/schemas/common/asyncRequestSchemas.d.ts +1 -1
  13. package/dist/sdk/schemas/common/commonSchemas.d.ts +38 -21
  14. package/dist/sdk/schemas/common/commonSchemas.js +24 -5
  15. package/dist/sdk/schemas/common/commonSchemas.js.map +1 -1
  16. package/dist/sdk/schemas/common/errorSchemas.d.ts +16 -21
  17. package/dist/sdk/schemas/common/errorSchemas.js +1 -1
  18. package/dist/sdk/schemas/common/translationContextSchemas.d.ts +0 -11
  19. package/dist/sdk/schemas/common/translationContextSchemas.js +2 -6
  20. package/dist/sdk/schemas/common/translationContextSchemas.js.map +1 -1
  21. package/dist/sdk/schemas/lqa/commonSchemas.d.ts +1 -1
  22. package/dist/sdk/schemas/lqa/lqaAsyncSchemas.d.ts +21 -20
  23. package/dist/sdk/schemas/lqa/lqaAsyncSchemas.js +8 -7
  24. package/dist/sdk/schemas/lqa/lqaAsyncSchemas.js.map +1 -1
  25. package/dist/sdk/schemas/lqa/lqaSyncSchemas.d.ts +12 -11
  26. package/dist/sdk/schemas/lqa/lqaSyncSchemas.js +7 -6
  27. package/dist/sdk/schemas/lqa/lqaSyncSchemas.js.map +1 -1
  28. package/dist/sdk/schemas/translation/generateVariants.d.ts +15 -14
  29. package/dist/sdk/schemas/translation/generateVariants.js +3 -3
  30. package/dist/sdk/schemas/translation/rewriteTextSchemas.d.ts +37 -35
  31. package/dist/sdk/schemas/translation/rewriteTextSchemas.js +4 -4
  32. package/dist/sdk/schemas/translation/sharedSchemas.d.ts +117 -4
  33. package/dist/sdk/schemas/translation/sharedSchemas.js +21 -5
  34. package/dist/sdk/schemas/translation/sharedSchemas.js.map +1 -1
  35. package/dist/sdk/schemas/translation/translateAsyncSchemas.d.ts +306 -41
  36. package/dist/sdk/schemas/translation/translateAsyncSchemas.js +5 -5
  37. package/dist/sdk/schemas/translation/translateSyncSchemas.d.ts +254 -21
  38. package/dist/sdk/schemas/translation/translateSyncSchemas.js +4 -4
  39. package/dist/sdk/schemas/translation/translateTextSegmentSchemas.d.ts +21 -31
  40. package/dist/sdk/schemas/translation/translateTextSegmentSchemas.js +4 -4
  41. package/dist/sdk/schemas/translation/translateTextSegmentSchemas.js.map +1 -1
  42. package/dist/sdk/validation/isSegmentUnderLengthLimit.d.ts +1 -1
  43. package/dist/sdk/validation/isSegmentUnderLengthLimit.js +3 -3
  44. package/dist/sdk/validation/requestSizeLimit.d.ts +2 -2
  45. package/dist/sdk/validation/requestSizeLimit.js +2 -2
  46. package/package.json +8 -8
@@ -1,21 +1,22 @@
1
1
  import z from 'zod';
2
- export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
2
+ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
3
3
  originCorrelationId: z.ZodString;
4
4
  ownerId: z.ZodString;
5
5
  callbackUrl: z.ZodString;
6
6
  callbackToken: z.ZodString;
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.ZodNativeEnum<{
11
- readonly FINETUNED_OPENAI: "FT-OpenAI";
12
- readonly CLAUDE: "Claude";
13
- readonly CHAT_GPT4: "ChatGPT-4";
14
- readonly GEMINI: "Gemini";
15
- readonly DEEPL: "DeepL";
16
- readonly GOOGLE_TRANSLATE: "GoogleTranslate";
17
- readonly MICROSOFT_TRANSLATOR: "MicrosoftTranslator";
18
- }>>;
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">>;
19
20
  forceIntegration: z.ZodOptional<z.ZodBoolean>;
20
21
  pickIntegrationByScore: z.ZodDefault<z.ZodBoolean>;
21
22
  includeScore: z.ZodDefault<z.ZodBoolean>;
@@ -242,7 +243,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
242
243
  description: string;
243
244
  }>>;
244
245
  characterLimit: z.ZodOptional<z.ZodNumber>;
245
- segments: z.ZodEffects<z.ZodArray<z.ZodObject<{
246
+ segments: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
246
247
  id: z.ZodString;
247
248
  tmMatch: z.ZodOptional<z.ZodObject<{
248
249
  sourceValue: z.ZodString;
@@ -254,10 +255,24 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
254
255
  sourceValue: string;
255
256
  translatedValue: string;
256
257
  }>>;
258
+ translationExamples: z.ZodOptional<z.ZodArray<z.ZodObject<{
259
+ sourceValue: z.ZodString;
260
+ translatedValue: z.ZodString;
261
+ }, "strip", z.ZodTypeAny, {
262
+ sourceValue: string;
263
+ translatedValue: string;
264
+ }, {
265
+ sourceValue: string;
266
+ translatedValue: string;
267
+ }>, "many">>;
257
268
  value: z.ZodString;
258
269
  }, "strip", z.ZodTypeAny, {
259
270
  value: string;
260
271
  id: string;
272
+ translationExamples?: {
273
+ sourceValue: string;
274
+ translatedValue: string;
275
+ }[] | undefined;
261
276
  tmMatch?: {
262
277
  sourceValue: string;
263
278
  translatedValue: string;
@@ -265,6 +280,32 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
265
280
  }, {
266
281
  value: string;
267
282
  id: string;
283
+ translationExamples?: {
284
+ sourceValue: string;
285
+ translatedValue: string;
286
+ }[] | undefined;
287
+ tmMatch?: {
288
+ sourceValue: string;
289
+ translatedValue: string;
290
+ } | undefined;
291
+ }>, {
292
+ value: string;
293
+ id: string;
294
+ translationExamples?: {
295
+ sourceValue: string;
296
+ translatedValue: string;
297
+ }[] | undefined;
298
+ tmMatch?: {
299
+ sourceValue: string;
300
+ translatedValue: string;
301
+ } | undefined;
302
+ }, {
303
+ value: string;
304
+ id: string;
305
+ translationExamples?: {
306
+ sourceValue: string;
307
+ translatedValue: string;
308
+ }[] | undefined;
268
309
  tmMatch?: {
269
310
  sourceValue: string;
270
311
  translatedValue: string;
@@ -272,6 +313,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
272
313
  }>, "atleastone">, [{
273
314
  value: string;
274
315
  id: string;
316
+ translationExamples?: {
317
+ sourceValue: string;
318
+ translatedValue: string;
319
+ }[] | undefined;
275
320
  tmMatch?: {
276
321
  sourceValue: string;
277
322
  translatedValue: string;
@@ -279,6 +324,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
279
324
  }, ...{
280
325
  value: string;
281
326
  id: string;
327
+ translationExamples?: {
328
+ sourceValue: string;
329
+ translatedValue: string;
330
+ }[] | undefined;
282
331
  tmMatch?: {
283
332
  sourceValue: string;
284
333
  translatedValue: string;
@@ -286,6 +335,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
286
335
  }[]], [{
287
336
  value: string;
288
337
  id: string;
338
+ translationExamples?: {
339
+ sourceValue: string;
340
+ translatedValue: string;
341
+ }[] | undefined;
289
342
  tmMatch?: {
290
343
  sourceValue: string;
291
344
  translatedValue: string;
@@ -293,6 +346,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
293
346
  }, ...{
294
347
  value: string;
295
348
  id: string;
349
+ translationExamples?: {
350
+ sourceValue: string;
351
+ translatedValue: string;
352
+ }[] | undefined;
296
353
  tmMatch?: {
297
354
  sourceValue: string;
298
355
  translatedValue: string;
@@ -303,6 +360,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
303
360
  segments: [{
304
361
  value: string;
305
362
  id: string;
363
+ translationExamples?: {
364
+ sourceValue: string;
365
+ translatedValue: string;
366
+ }[] | undefined;
306
367
  tmMatch?: {
307
368
  sourceValue: string;
308
369
  translatedValue: string;
@@ -310,6 +371,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
310
371
  }, ...{
311
372
  value: string;
312
373
  id: string;
374
+ translationExamples?: {
375
+ sourceValue: string;
376
+ translatedValue: string;
377
+ }[] | undefined;
313
378
  tmMatch?: {
314
379
  sourceValue: string;
315
380
  translatedValue: string;
@@ -324,6 +389,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
324
389
  segments: [{
325
390
  value: string;
326
391
  id: string;
392
+ translationExamples?: {
393
+ sourceValue: string;
394
+ translatedValue: string;
395
+ }[] | undefined;
327
396
  tmMatch?: {
328
397
  sourceValue: string;
329
398
  translatedValue: string;
@@ -331,6 +400,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
331
400
  }, ...{
332
401
  value: string;
333
402
  id: string;
403
+ translationExamples?: {
404
+ sourceValue: string;
405
+ translatedValue: string;
406
+ }[] | undefined;
334
407
  tmMatch?: {
335
408
  sourceValue: string;
336
409
  translatedValue: string;
@@ -345,6 +418,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
345
418
  segments: [{
346
419
  value: string;
347
420
  id: string;
421
+ translationExamples?: {
422
+ sourceValue: string;
423
+ translatedValue: string;
424
+ }[] | undefined;
348
425
  tmMatch?: {
349
426
  sourceValue: string;
350
427
  translatedValue: string;
@@ -352,6 +429,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
352
429
  }, ...{
353
430
  value: string;
354
431
  id: string;
432
+ translationExamples?: {
433
+ sourceValue: string;
434
+ translatedValue: string;
435
+ }[] | undefined;
355
436
  tmMatch?: {
356
437
  sourceValue: string;
357
438
  translatedValue: string;
@@ -366,6 +447,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
366
447
  segments: [{
367
448
  value: string;
368
449
  id: string;
450
+ translationExamples?: {
451
+ sourceValue: string;
452
+ translatedValue: string;
453
+ }[] | undefined;
369
454
  tmMatch?: {
370
455
  sourceValue: string;
371
456
  translatedValue: string;
@@ -373,6 +458,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
373
458
  }, ...{
374
459
  value: string;
375
460
  id: string;
461
+ translationExamples?: {
462
+ sourceValue: string;
463
+ translatedValue: string;
464
+ }[] | undefined;
376
465
  tmMatch?: {
377
466
  sourceValue: string;
378
467
  translatedValue: string;
@@ -387,6 +476,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
387
476
  segments: [{
388
477
  value: string;
389
478
  id: string;
479
+ translationExamples?: {
480
+ sourceValue: string;
481
+ translatedValue: string;
482
+ }[] | undefined;
390
483
  tmMatch?: {
391
484
  sourceValue: string;
392
485
  translatedValue: string;
@@ -394,6 +487,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
394
487
  }, ...{
395
488
  value: string;
396
489
  id: string;
490
+ translationExamples?: {
491
+ sourceValue: string;
492
+ translatedValue: string;
493
+ }[] | undefined;
397
494
  tmMatch?: {
398
495
  sourceValue: string;
399
496
  translatedValue: string;
@@ -408,6 +505,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
408
505
  segments: [{
409
506
  value: string;
410
507
  id: string;
508
+ translationExamples?: {
509
+ sourceValue: string;
510
+ translatedValue: string;
511
+ }[] | undefined;
411
512
  tmMatch?: {
412
513
  sourceValue: string;
413
514
  translatedValue: string;
@@ -415,6 +516,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
415
516
  }, ...{
416
517
  value: string;
417
518
  id: string;
519
+ translationExamples?: {
520
+ sourceValue: string;
521
+ translatedValue: string;
522
+ }[] | undefined;
418
523
  tmMatch?: {
419
524
  sourceValue: string;
420
525
  translatedValue: string;
@@ -425,7 +530,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
425
530
  } | undefined;
426
531
  characterLimit?: number | undefined;
427
532
  }[]]>;
428
- }>, "strip", z.ZodTypeAny, {
533
+ }, "strip", z.ZodTypeAny, {
429
534
  originCorrelationId: string;
430
535
  ownerId: string;
431
536
  callbackUrl: string;
@@ -436,6 +541,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
436
541
  segments: [{
437
542
  value: string;
438
543
  id: string;
544
+ translationExamples?: {
545
+ sourceValue: string;
546
+ translatedValue: string;
547
+ }[] | undefined;
439
548
  tmMatch?: {
440
549
  sourceValue: string;
441
550
  translatedValue: string;
@@ -443,6 +552,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
443
552
  }, ...{
444
553
  value: string;
445
554
  id: string;
555
+ translationExamples?: {
556
+ sourceValue: string;
557
+ translatedValue: string;
558
+ }[] | undefined;
446
559
  tmMatch?: {
447
560
  sourceValue: string;
448
561
  translatedValue: string;
@@ -457,6 +570,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
457
570
  segments: [{
458
571
  value: string;
459
572
  id: string;
573
+ translationExamples?: {
574
+ sourceValue: string;
575
+ translatedValue: string;
576
+ }[] | undefined;
460
577
  tmMatch?: {
461
578
  sourceValue: string;
462
579
  translatedValue: string;
@@ -464,6 +581,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
464
581
  }, ...{
465
582
  value: string;
466
583
  id: string;
584
+ translationExamples?: {
585
+ sourceValue: string;
586
+ translatedValue: string;
587
+ }[] | undefined;
467
588
  tmMatch?: {
468
589
  sourceValue: string;
469
590
  translatedValue: string;
@@ -505,7 +626,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
505
626
  translatedValue: string;
506
627
  }[] | undefined;
507
628
  } | undefined;
508
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
629
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
509
630
  forceIntegration?: boolean | undefined;
510
631
  metadata?: Record<string, 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 | {
511
632
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -543,6 +664,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
543
664
  segments: [{
544
665
  value: string;
545
666
  id: string;
667
+ translationExamples?: {
668
+ sourceValue: string;
669
+ translatedValue: string;
670
+ }[] | undefined;
546
671
  tmMatch?: {
547
672
  sourceValue: string;
548
673
  translatedValue: string;
@@ -550,6 +675,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
550
675
  }, ...{
551
676
  value: string;
552
677
  id: string;
678
+ translationExamples?: {
679
+ sourceValue: string;
680
+ translatedValue: string;
681
+ }[] | undefined;
553
682
  tmMatch?: {
554
683
  sourceValue: string;
555
684
  translatedValue: string;
@@ -564,6 +693,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
564
693
  segments: [{
565
694
  value: string;
566
695
  id: string;
696
+ translationExamples?: {
697
+ sourceValue: string;
698
+ translatedValue: string;
699
+ }[] | undefined;
567
700
  tmMatch?: {
568
701
  sourceValue: string;
569
702
  translatedValue: string;
@@ -571,6 +704,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
571
704
  }, ...{
572
705
  value: string;
573
706
  id: string;
707
+ translationExamples?: {
708
+ sourceValue: string;
709
+ translatedValue: string;
710
+ }[] | undefined;
574
711
  tmMatch?: {
575
712
  sourceValue: string;
576
713
  translatedValue: string;
@@ -610,7 +747,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
610
747
  translatedValue: string;
611
748
  }[] | undefined;
612
749
  } | undefined;
613
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
750
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
614
751
  forceIntegration?: boolean | undefined;
615
752
  pickIntegrationByScore?: boolean | undefined;
616
753
  includeScore?: boolean | undefined;
@@ -650,6 +787,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
650
787
  segments: [{
651
788
  value: string;
652
789
  id: string;
790
+ translationExamples?: {
791
+ sourceValue: string;
792
+ translatedValue: string;
793
+ }[] | undefined;
653
794
  tmMatch?: {
654
795
  sourceValue: string;
655
796
  translatedValue: string;
@@ -657,6 +798,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
657
798
  }, ...{
658
799
  value: string;
659
800
  id: string;
801
+ translationExamples?: {
802
+ sourceValue: string;
803
+ translatedValue: string;
804
+ }[] | undefined;
660
805
  tmMatch?: {
661
806
  sourceValue: string;
662
807
  translatedValue: string;
@@ -671,6 +816,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
671
816
  segments: [{
672
817
  value: string;
673
818
  id: string;
819
+ translationExamples?: {
820
+ sourceValue: string;
821
+ translatedValue: string;
822
+ }[] | undefined;
674
823
  tmMatch?: {
675
824
  sourceValue: string;
676
825
  translatedValue: string;
@@ -678,6 +827,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
678
827
  }, ...{
679
828
  value: string;
680
829
  id: string;
830
+ translationExamples?: {
831
+ sourceValue: string;
832
+ translatedValue: string;
833
+ }[] | undefined;
681
834
  tmMatch?: {
682
835
  sourceValue: string;
683
836
  translatedValue: string;
@@ -719,7 +872,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
719
872
  translatedValue: string;
720
873
  }[] | undefined;
721
874
  } | undefined;
722
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
875
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
723
876
  forceIntegration?: boolean | undefined;
724
877
  metadata?: Record<string, 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 | {
725
878
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -757,6 +910,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
757
910
  segments: [{
758
911
  value: string;
759
912
  id: string;
913
+ translationExamples?: {
914
+ sourceValue: string;
915
+ translatedValue: string;
916
+ }[] | undefined;
760
917
  tmMatch?: {
761
918
  sourceValue: string;
762
919
  translatedValue: string;
@@ -764,6 +921,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
764
921
  }, ...{
765
922
  value: string;
766
923
  id: string;
924
+ translationExamples?: {
925
+ sourceValue: string;
926
+ translatedValue: string;
927
+ }[] | undefined;
767
928
  tmMatch?: {
768
929
  sourceValue: string;
769
930
  translatedValue: string;
@@ -778,6 +939,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
778
939
  segments: [{
779
940
  value: string;
780
941
  id: string;
942
+ translationExamples?: {
943
+ sourceValue: string;
944
+ translatedValue: string;
945
+ }[] | undefined;
781
946
  tmMatch?: {
782
947
  sourceValue: string;
783
948
  translatedValue: string;
@@ -785,6 +950,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
785
950
  }, ...{
786
951
  value: string;
787
952
  id: string;
953
+ translationExamples?: {
954
+ sourceValue: string;
955
+ translatedValue: string;
956
+ }[] | undefined;
788
957
  tmMatch?: {
789
958
  sourceValue: string;
790
959
  translatedValue: string;
@@ -824,7 +993,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
824
993
  translatedValue: string;
825
994
  }[] | undefined;
826
995
  } | undefined;
827
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
996
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
828
997
  forceIntegration?: boolean | undefined;
829
998
  pickIntegrationByScore?: boolean | undefined;
830
999
  includeScore?: boolean | undefined;
@@ -864,6 +1033,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
864
1033
  segments: [{
865
1034
  value: string;
866
1035
  id: string;
1036
+ translationExamples?: {
1037
+ sourceValue: string;
1038
+ translatedValue: string;
1039
+ }[] | undefined;
867
1040
  tmMatch?: {
868
1041
  sourceValue: string;
869
1042
  translatedValue: string;
@@ -871,6 +1044,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
871
1044
  }, ...{
872
1045
  value: string;
873
1046
  id: string;
1047
+ translationExamples?: {
1048
+ sourceValue: string;
1049
+ translatedValue: string;
1050
+ }[] | undefined;
874
1051
  tmMatch?: {
875
1052
  sourceValue: string;
876
1053
  translatedValue: string;
@@ -885,6 +1062,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
885
1062
  segments: [{
886
1063
  value: string;
887
1064
  id: string;
1065
+ translationExamples?: {
1066
+ sourceValue: string;
1067
+ translatedValue: string;
1068
+ }[] | undefined;
888
1069
  tmMatch?: {
889
1070
  sourceValue: string;
890
1071
  translatedValue: string;
@@ -892,6 +1073,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
892
1073
  }, ...{
893
1074
  value: string;
894
1075
  id: string;
1076
+ translationExamples?: {
1077
+ sourceValue: string;
1078
+ translatedValue: string;
1079
+ }[] | undefined;
895
1080
  tmMatch?: {
896
1081
  sourceValue: string;
897
1082
  translatedValue: string;
@@ -933,7 +1118,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
933
1118
  translatedValue: string;
934
1119
  }[] | undefined;
935
1120
  } | undefined;
936
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1121
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
937
1122
  forceIntegration?: boolean | undefined;
938
1123
  metadata?: Record<string, 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 | {
939
1124
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -971,6 +1156,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
971
1156
  segments: [{
972
1157
  value: string;
973
1158
  id: string;
1159
+ translationExamples?: {
1160
+ sourceValue: string;
1161
+ translatedValue: string;
1162
+ }[] | undefined;
974
1163
  tmMatch?: {
975
1164
  sourceValue: string;
976
1165
  translatedValue: string;
@@ -978,6 +1167,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
978
1167
  }, ...{
979
1168
  value: string;
980
1169
  id: string;
1170
+ translationExamples?: {
1171
+ sourceValue: string;
1172
+ translatedValue: string;
1173
+ }[] | undefined;
981
1174
  tmMatch?: {
982
1175
  sourceValue: string;
983
1176
  translatedValue: string;
@@ -992,6 +1185,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
992
1185
  segments: [{
993
1186
  value: string;
994
1187
  id: string;
1188
+ translationExamples?: {
1189
+ sourceValue: string;
1190
+ translatedValue: string;
1191
+ }[] | undefined;
995
1192
  tmMatch?: {
996
1193
  sourceValue: string;
997
1194
  translatedValue: string;
@@ -999,6 +1196,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
999
1196
  }, ...{
1000
1197
  value: string;
1001
1198
  id: string;
1199
+ translationExamples?: {
1200
+ sourceValue: string;
1201
+ translatedValue: string;
1202
+ }[] | undefined;
1002
1203
  tmMatch?: {
1003
1204
  sourceValue: string;
1004
1205
  translatedValue: string;
@@ -1038,7 +1239,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1038
1239
  translatedValue: string;
1039
1240
  }[] | undefined;
1040
1241
  } | undefined;
1041
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1242
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1042
1243
  forceIntegration?: boolean | undefined;
1043
1244
  pickIntegrationByScore?: boolean | undefined;
1044
1245
  includeScore?: boolean | undefined;
@@ -1078,6 +1279,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1078
1279
  segments: [{
1079
1280
  value: string;
1080
1281
  id: string;
1282
+ translationExamples?: {
1283
+ sourceValue: string;
1284
+ translatedValue: string;
1285
+ }[] | undefined;
1081
1286
  tmMatch?: {
1082
1287
  sourceValue: string;
1083
1288
  translatedValue: string;
@@ -1085,6 +1290,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1085
1290
  }, ...{
1086
1291
  value: string;
1087
1292
  id: string;
1293
+ translationExamples?: {
1294
+ sourceValue: string;
1295
+ translatedValue: string;
1296
+ }[] | undefined;
1088
1297
  tmMatch?: {
1089
1298
  sourceValue: string;
1090
1299
  translatedValue: string;
@@ -1099,6 +1308,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1099
1308
  segments: [{
1100
1309
  value: string;
1101
1310
  id: string;
1311
+ translationExamples?: {
1312
+ sourceValue: string;
1313
+ translatedValue: string;
1314
+ }[] | undefined;
1102
1315
  tmMatch?: {
1103
1316
  sourceValue: string;
1104
1317
  translatedValue: string;
@@ -1106,6 +1319,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1106
1319
  }, ...{
1107
1320
  value: string;
1108
1321
  id: string;
1322
+ translationExamples?: {
1323
+ sourceValue: string;
1324
+ translatedValue: string;
1325
+ }[] | undefined;
1109
1326
  tmMatch?: {
1110
1327
  sourceValue: string;
1111
1328
  translatedValue: string;
@@ -1147,7 +1364,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1147
1364
  translatedValue: string;
1148
1365
  }[] | undefined;
1149
1366
  } | undefined;
1150
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1367
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1151
1368
  forceIntegration?: boolean | undefined;
1152
1369
  metadata?: Record<string, 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 | {
1153
1370
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -1185,6 +1402,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1185
1402
  segments: [{
1186
1403
  value: string;
1187
1404
  id: string;
1405
+ translationExamples?: {
1406
+ sourceValue: string;
1407
+ translatedValue: string;
1408
+ }[] | undefined;
1188
1409
  tmMatch?: {
1189
1410
  sourceValue: string;
1190
1411
  translatedValue: string;
@@ -1192,6 +1413,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1192
1413
  }, ...{
1193
1414
  value: string;
1194
1415
  id: string;
1416
+ translationExamples?: {
1417
+ sourceValue: string;
1418
+ translatedValue: string;
1419
+ }[] | undefined;
1195
1420
  tmMatch?: {
1196
1421
  sourceValue: string;
1197
1422
  translatedValue: string;
@@ -1206,6 +1431,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1206
1431
  segments: [{
1207
1432
  value: string;
1208
1433
  id: string;
1434
+ translationExamples?: {
1435
+ sourceValue: string;
1436
+ translatedValue: string;
1437
+ }[] | undefined;
1209
1438
  tmMatch?: {
1210
1439
  sourceValue: string;
1211
1440
  translatedValue: string;
@@ -1213,6 +1442,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1213
1442
  }, ...{
1214
1443
  value: string;
1215
1444
  id: string;
1445
+ translationExamples?: {
1446
+ sourceValue: string;
1447
+ translatedValue: string;
1448
+ }[] | undefined;
1216
1449
  tmMatch?: {
1217
1450
  sourceValue: string;
1218
1451
  translatedValue: string;
@@ -1252,7 +1485,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1252
1485
  translatedValue: string;
1253
1486
  }[] | undefined;
1254
1487
  } | undefined;
1255
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1488
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1256
1489
  forceIntegration?: boolean | undefined;
1257
1490
  pickIntegrationByScore?: boolean | undefined;
1258
1491
  includeScore?: boolean | undefined;
@@ -1292,6 +1525,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1292
1525
  segments: [{
1293
1526
  value: string;
1294
1527
  id: string;
1528
+ translationExamples?: {
1529
+ sourceValue: string;
1530
+ translatedValue: string;
1531
+ }[] | undefined;
1295
1532
  tmMatch?: {
1296
1533
  sourceValue: string;
1297
1534
  translatedValue: string;
@@ -1299,6 +1536,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1299
1536
  }, ...{
1300
1537
  value: string;
1301
1538
  id: string;
1539
+ translationExamples?: {
1540
+ sourceValue: string;
1541
+ translatedValue: string;
1542
+ }[] | undefined;
1302
1543
  tmMatch?: {
1303
1544
  sourceValue: string;
1304
1545
  translatedValue: string;
@@ -1313,6 +1554,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1313
1554
  segments: [{
1314
1555
  value: string;
1315
1556
  id: string;
1557
+ translationExamples?: {
1558
+ sourceValue: string;
1559
+ translatedValue: string;
1560
+ }[] | undefined;
1316
1561
  tmMatch?: {
1317
1562
  sourceValue: string;
1318
1563
  translatedValue: string;
@@ -1320,6 +1565,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1320
1565
  }, ...{
1321
1566
  value: string;
1322
1567
  id: string;
1568
+ translationExamples?: {
1569
+ sourceValue: string;
1570
+ translatedValue: string;
1571
+ }[] | undefined;
1323
1572
  tmMatch?: {
1324
1573
  sourceValue: string;
1325
1574
  translatedValue: string;
@@ -1361,7 +1610,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1361
1610
  translatedValue: string;
1362
1611
  }[] | undefined;
1363
1612
  } | undefined;
1364
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1613
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1365
1614
  forceIntegration?: boolean | undefined;
1366
1615
  metadata?: Record<string, 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 | {
1367
1616
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -1399,6 +1648,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1399
1648
  segments: [{
1400
1649
  value: string;
1401
1650
  id: string;
1651
+ translationExamples?: {
1652
+ sourceValue: string;
1653
+ translatedValue: string;
1654
+ }[] | undefined;
1402
1655
  tmMatch?: {
1403
1656
  sourceValue: string;
1404
1657
  translatedValue: string;
@@ -1406,6 +1659,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1406
1659
  }, ...{
1407
1660
  value: string;
1408
1661
  id: string;
1662
+ translationExamples?: {
1663
+ sourceValue: string;
1664
+ translatedValue: string;
1665
+ }[] | undefined;
1409
1666
  tmMatch?: {
1410
1667
  sourceValue: string;
1411
1668
  translatedValue: string;
@@ -1420,6 +1677,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1420
1677
  segments: [{
1421
1678
  value: string;
1422
1679
  id: string;
1680
+ translationExamples?: {
1681
+ sourceValue: string;
1682
+ translatedValue: string;
1683
+ }[] | undefined;
1423
1684
  tmMatch?: {
1424
1685
  sourceValue: string;
1425
1686
  translatedValue: string;
@@ -1427,6 +1688,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1427
1688
  }, ...{
1428
1689
  value: string;
1429
1690
  id: string;
1691
+ translationExamples?: {
1692
+ sourceValue: string;
1693
+ translatedValue: string;
1694
+ }[] | undefined;
1430
1695
  tmMatch?: {
1431
1696
  sourceValue: string;
1432
1697
  translatedValue: string;
@@ -1466,7 +1731,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1466
1731
  translatedValue: string;
1467
1732
  }[] | undefined;
1468
1733
  } | undefined;
1469
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1734
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1470
1735
  forceIntegration?: boolean | undefined;
1471
1736
  pickIntegrationByScore?: boolean | undefined;
1472
1737
  includeScore?: boolean | undefined;
@@ -1578,16 +1843,16 @@ export declare const TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA: z.ZodObject<{
1578
1843
  comment?: string | null | undefined;
1579
1844
  }[] | null | undefined;
1580
1845
  }>, "many">;
1581
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1846
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1582
1847
  message: z.ZodString;
1583
1848
  errorCode: z.ZodString;
1584
1849
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1585
- }, {
1850
+ } & {
1586
1851
  contentUnitId: z.ZodString;
1587
1852
  segmentId: z.ZodString;
1588
1853
  polyglotRefId: z.ZodString;
1589
1854
  integration: z.ZodString;
1590
- }>, "strip", z.ZodTypeAny, {
1855
+ }, "strip", z.ZodTypeAny, {
1591
1856
  message: string;
1592
1857
  errorCode: string;
1593
1858
  integration: string;
@@ -1659,7 +1924,7 @@ export declare const TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA: z.ZodObject<{
1659
1924
  details?: Record<string, unknown> | undefined;
1660
1925
  }[] | undefined;
1661
1926
  }>;
1662
- export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.extendShape<{
1927
+ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
1663
1928
  originCorrelationId: z.ZodString;
1664
1929
  data: z.ZodArray<z.ZodObject<{
1665
1930
  contentUnitId: z.ZodString;
@@ -1724,16 +1989,16 @@ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.ex
1724
1989
  comment?: string | null | undefined;
1725
1990
  }[] | null | undefined;
1726
1991
  }>, "many">;
1727
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1992
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1728
1993
  message: z.ZodString;
1729
1994
  errorCode: z.ZodString;
1730
1995
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1731
- }, {
1996
+ } & {
1732
1997
  contentUnitId: z.ZodString;
1733
1998
  segmentId: z.ZodString;
1734
1999
  polyglotRefId: z.ZodString;
1735
2000
  integration: z.ZodString;
1736
- }>, "strip", z.ZodTypeAny, {
2001
+ }, "strip", z.ZodTypeAny, {
1737
2002
  message: string;
1738
2003
  errorCode: string;
1739
2004
  integration: string;
@@ -1750,9 +2015,9 @@ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.ex
1750
2015
  polyglotRefId: string;
1751
2016
  details?: Record<string, unknown> | undefined;
1752
2017
  }>, "many">>;
1753
- }, {
2018
+ } & {
1754
2019
  status: z.ZodLiteral<"success">;
1755
- }>, "strip", z.ZodTypeAny, {
2020
+ }, "strip", z.ZodTypeAny, {
1756
2021
  originCorrelationId: string;
1757
2022
  status: "success";
1758
2023
  data: {
@@ -1809,7 +2074,7 @@ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.ex
1809
2074
  details?: Record<string, unknown> | undefined;
1810
2075
  }[] | undefined;
1811
2076
  }>;
1812
- export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<{
2077
+ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
1813
2078
  originCorrelationId: z.ZodString;
1814
2079
  data: z.ZodArray<z.ZodObject<{
1815
2080
  contentUnitId: z.ZodString;
@@ -1874,16 +2139,16 @@ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"s
1874
2139
  comment?: string | null | undefined;
1875
2140
  }[] | null | undefined;
1876
2141
  }>, "many">;
1877
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
2142
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1878
2143
  message: z.ZodString;
1879
2144
  errorCode: z.ZodString;
1880
2145
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1881
- }, {
2146
+ } & {
1882
2147
  contentUnitId: z.ZodString;
1883
2148
  segmentId: z.ZodString;
1884
2149
  polyglotRefId: z.ZodString;
1885
2150
  integration: z.ZodString;
1886
- }>, "strip", z.ZodTypeAny, {
2151
+ }, "strip", z.ZodTypeAny, {
1887
2152
  message: string;
1888
2153
  errorCode: string;
1889
2154
  integration: string;
@@ -1900,9 +2165,9 @@ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"s
1900
2165
  polyglotRefId: string;
1901
2166
  details?: Record<string, unknown> | undefined;
1902
2167
  }>, "many">>;
1903
- }, {
2168
+ } & {
1904
2169
  status: z.ZodLiteral<"success">;
1905
- }>, "strip", z.ZodTypeAny, {
2170
+ }, "strip", z.ZodTypeAny, {
1906
2171
  originCorrelationId: string;
1907
2172
  status: "success";
1908
2173
  data: {
@@ -1958,14 +2223,14 @@ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"s
1958
2223
  polyglotRefId: string;
1959
2224
  details?: Record<string, unknown> | undefined;
1960
2225
  }[] | undefined;
1961
- }>, z.ZodObject<z.objectUtil.extendShape<{
2226
+ }>, z.ZodObject<{
1962
2227
  message: z.ZodString;
1963
2228
  errorCode: z.ZodString;
1964
2229
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1965
- }, {
2230
+ } & {
1966
2231
  status: z.ZodLiteral<"error">;
1967
2232
  originCorrelationId: z.ZodString;
1968
- }>, "strip", z.ZodTypeAny, {
2233
+ }, "strip", z.ZodTypeAny, {
1969
2234
  originCorrelationId: string;
1970
2235
  message: string;
1971
2236
  status: "error";