@lokalise/polyglot-sdk 19.0.0 → 19.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 (45) 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 +3 -3
  8. package/dist/sdk/helpers/htmlEscaping.js.map +1 -1
  9. package/dist/sdk/helpers/nonTranslatableContentHelper.d.ts +1 -1
  10. package/dist/sdk/helpers/nonTranslatableContentHelper.js +3 -3
  11. package/dist/sdk/helpers/nonTranslatableContentHelper.js.map +1 -1
  12. package/dist/sdk/helpers/nonTranslatableContentWrappers.d.ts +2 -12
  13. package/dist/sdk/helpers/nonTranslatableContentWrappers.js +26 -38
  14. package/dist/sdk/helpers/nonTranslatableContentWrappers.js.map +1 -1
  15. package/dist/sdk/schemas/common/asyncRequestSchemas.d.ts +1 -1
  16. package/dist/sdk/schemas/common/commonSchemas.d.ts +12 -1
  17. package/dist/sdk/schemas/common/commonSchemas.js +5 -1
  18. package/dist/sdk/schemas/common/commonSchemas.js.map +1 -1
  19. package/dist/sdk/schemas/common/errorSchemas.d.ts +1 -1
  20. package/dist/sdk/schemas/common/errorSchemas.js +1 -1
  21. package/dist/sdk/schemas/common/translationContextSchemas.d.ts +0 -11
  22. package/dist/sdk/schemas/common/translationContextSchemas.js +2 -6
  23. package/dist/sdk/schemas/common/translationContextSchemas.js.map +1 -1
  24. package/dist/sdk/schemas/lqa/commonSchemas.d.ts +1 -1
  25. package/dist/sdk/schemas/lqa/lqaAsyncSchemas.js +8 -7
  26. package/dist/sdk/schemas/lqa/lqaAsyncSchemas.js.map +1 -1
  27. package/dist/sdk/schemas/lqa/lqaSyncSchemas.js +7 -6
  28. package/dist/sdk/schemas/lqa/lqaSyncSchemas.js.map +1 -1
  29. package/dist/sdk/schemas/translation/generateVariants.js +3 -3
  30. package/dist/sdk/schemas/translation/rewriteTextSchemas.d.ts +1 -1
  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 +265 -1
  36. package/dist/sdk/schemas/translation/translateAsyncSchemas.js +5 -5
  37. package/dist/sdk/schemas/translation/translateSyncSchemas.d.ts +233 -1
  38. package/dist/sdk/schemas/translation/translateSyncSchemas.js +4 -4
  39. package/dist/sdk/schemas/translation/translateTextSegmentSchemas.js +4 -4
  40. package/dist/sdk/schemas/translation/translateTextSegmentSchemas.js.map +1 -1
  41. package/dist/sdk/validation/isSegmentUnderLengthLimit.d.ts +1 -1
  42. package/dist/sdk/validation/isSegmentUnderLengthLimit.js +3 -3
  43. package/dist/sdk/validation/requestSizeLimit.d.ts +2 -2
  44. package/dist/sdk/validation/requestSizeLimit.js +2 -2
  45. package/package.json +17 -15
@@ -242,7 +242,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
242
242
  description: string;
243
243
  }>>;
244
244
  characterLimit: z.ZodOptional<z.ZodNumber>;
245
- segments: z.ZodEffects<z.ZodArray<z.ZodObject<{
245
+ segments: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
246
246
  id: z.ZodString;
247
247
  tmMatch: z.ZodOptional<z.ZodObject<{
248
248
  sourceValue: z.ZodString;
@@ -254,10 +254,24 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
254
254
  sourceValue: string;
255
255
  translatedValue: string;
256
256
  }>>;
257
+ translationExamples: z.ZodOptional<z.ZodArray<z.ZodObject<{
258
+ sourceValue: z.ZodString;
259
+ translatedValue: z.ZodString;
260
+ }, "strip", z.ZodTypeAny, {
261
+ sourceValue: string;
262
+ translatedValue: string;
263
+ }, {
264
+ sourceValue: string;
265
+ translatedValue: string;
266
+ }>, "many">>;
257
267
  value: z.ZodString;
258
268
  }, "strip", z.ZodTypeAny, {
259
269
  value: string;
260
270
  id: string;
271
+ translationExamples?: {
272
+ sourceValue: string;
273
+ translatedValue: string;
274
+ }[] | undefined;
261
275
  tmMatch?: {
262
276
  sourceValue: string;
263
277
  translatedValue: string;
@@ -265,6 +279,32 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
265
279
  }, {
266
280
  value: string;
267
281
  id: string;
282
+ translationExamples?: {
283
+ sourceValue: string;
284
+ translatedValue: string;
285
+ }[] | undefined;
286
+ tmMatch?: {
287
+ sourceValue: string;
288
+ translatedValue: string;
289
+ } | undefined;
290
+ }>, {
291
+ value: string;
292
+ id: string;
293
+ translationExamples?: {
294
+ sourceValue: string;
295
+ translatedValue: string;
296
+ }[] | undefined;
297
+ tmMatch?: {
298
+ sourceValue: string;
299
+ translatedValue: string;
300
+ } | undefined;
301
+ }, {
302
+ value: string;
303
+ id: string;
304
+ translationExamples?: {
305
+ sourceValue: string;
306
+ translatedValue: string;
307
+ }[] | undefined;
268
308
  tmMatch?: {
269
309
  sourceValue: string;
270
310
  translatedValue: string;
@@ -272,6 +312,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
272
312
  }>, "atleastone">, [{
273
313
  value: string;
274
314
  id: string;
315
+ translationExamples?: {
316
+ sourceValue: string;
317
+ translatedValue: string;
318
+ }[] | undefined;
275
319
  tmMatch?: {
276
320
  sourceValue: string;
277
321
  translatedValue: string;
@@ -279,6 +323,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
279
323
  }, ...{
280
324
  value: string;
281
325
  id: string;
326
+ translationExamples?: {
327
+ sourceValue: string;
328
+ translatedValue: string;
329
+ }[] | undefined;
282
330
  tmMatch?: {
283
331
  sourceValue: string;
284
332
  translatedValue: string;
@@ -286,6 +334,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
286
334
  }[]], [{
287
335
  value: string;
288
336
  id: string;
337
+ translationExamples?: {
338
+ sourceValue: string;
339
+ translatedValue: string;
340
+ }[] | undefined;
289
341
  tmMatch?: {
290
342
  sourceValue: string;
291
343
  translatedValue: string;
@@ -293,6 +345,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
293
345
  }, ...{
294
346
  value: string;
295
347
  id: string;
348
+ translationExamples?: {
349
+ sourceValue: string;
350
+ translatedValue: string;
351
+ }[] | undefined;
296
352
  tmMatch?: {
297
353
  sourceValue: string;
298
354
  translatedValue: string;
@@ -303,6 +359,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
303
359
  segments: [{
304
360
  value: string;
305
361
  id: string;
362
+ translationExamples?: {
363
+ sourceValue: string;
364
+ translatedValue: string;
365
+ }[] | undefined;
306
366
  tmMatch?: {
307
367
  sourceValue: string;
308
368
  translatedValue: string;
@@ -310,6 +370,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
310
370
  }, ...{
311
371
  value: string;
312
372
  id: string;
373
+ translationExamples?: {
374
+ sourceValue: string;
375
+ translatedValue: string;
376
+ }[] | undefined;
313
377
  tmMatch?: {
314
378
  sourceValue: string;
315
379
  translatedValue: string;
@@ -324,6 +388,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
324
388
  segments: [{
325
389
  value: string;
326
390
  id: string;
391
+ translationExamples?: {
392
+ sourceValue: string;
393
+ translatedValue: string;
394
+ }[] | undefined;
327
395
  tmMatch?: {
328
396
  sourceValue: string;
329
397
  translatedValue: string;
@@ -331,6 +399,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
331
399
  }, ...{
332
400
  value: string;
333
401
  id: string;
402
+ translationExamples?: {
403
+ sourceValue: string;
404
+ translatedValue: string;
405
+ }[] | undefined;
334
406
  tmMatch?: {
335
407
  sourceValue: string;
336
408
  translatedValue: string;
@@ -345,6 +417,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
345
417
  segments: [{
346
418
  value: string;
347
419
  id: string;
420
+ translationExamples?: {
421
+ sourceValue: string;
422
+ translatedValue: string;
423
+ }[] | undefined;
348
424
  tmMatch?: {
349
425
  sourceValue: string;
350
426
  translatedValue: string;
@@ -352,6 +428,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
352
428
  }, ...{
353
429
  value: string;
354
430
  id: string;
431
+ translationExamples?: {
432
+ sourceValue: string;
433
+ translatedValue: string;
434
+ }[] | undefined;
355
435
  tmMatch?: {
356
436
  sourceValue: string;
357
437
  translatedValue: string;
@@ -366,6 +446,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
366
446
  segments: [{
367
447
  value: string;
368
448
  id: string;
449
+ translationExamples?: {
450
+ sourceValue: string;
451
+ translatedValue: string;
452
+ }[] | undefined;
369
453
  tmMatch?: {
370
454
  sourceValue: string;
371
455
  translatedValue: string;
@@ -373,6 +457,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
373
457
  }, ...{
374
458
  value: string;
375
459
  id: string;
460
+ translationExamples?: {
461
+ sourceValue: string;
462
+ translatedValue: string;
463
+ }[] | undefined;
376
464
  tmMatch?: {
377
465
  sourceValue: string;
378
466
  translatedValue: string;
@@ -387,6 +475,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
387
475
  segments: [{
388
476
  value: string;
389
477
  id: string;
478
+ translationExamples?: {
479
+ sourceValue: string;
480
+ translatedValue: string;
481
+ }[] | undefined;
390
482
  tmMatch?: {
391
483
  sourceValue: string;
392
484
  translatedValue: string;
@@ -394,6 +486,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
394
486
  }, ...{
395
487
  value: string;
396
488
  id: string;
489
+ translationExamples?: {
490
+ sourceValue: string;
491
+ translatedValue: string;
492
+ }[] | undefined;
397
493
  tmMatch?: {
398
494
  sourceValue: string;
399
495
  translatedValue: string;
@@ -408,6 +504,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
408
504
  segments: [{
409
505
  value: string;
410
506
  id: string;
507
+ translationExamples?: {
508
+ sourceValue: string;
509
+ translatedValue: string;
510
+ }[] | undefined;
411
511
  tmMatch?: {
412
512
  sourceValue: string;
413
513
  translatedValue: string;
@@ -415,6 +515,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
415
515
  }, ...{
416
516
  value: string;
417
517
  id: string;
518
+ translationExamples?: {
519
+ sourceValue: string;
520
+ translatedValue: string;
521
+ }[] | undefined;
418
522
  tmMatch?: {
419
523
  sourceValue: string;
420
524
  translatedValue: string;
@@ -436,6 +540,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
436
540
  segments: [{
437
541
  value: string;
438
542
  id: string;
543
+ translationExamples?: {
544
+ sourceValue: string;
545
+ translatedValue: string;
546
+ }[] | undefined;
439
547
  tmMatch?: {
440
548
  sourceValue: string;
441
549
  translatedValue: string;
@@ -443,6 +551,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
443
551
  }, ...{
444
552
  value: string;
445
553
  id: string;
554
+ translationExamples?: {
555
+ sourceValue: string;
556
+ translatedValue: string;
557
+ }[] | undefined;
446
558
  tmMatch?: {
447
559
  sourceValue: string;
448
560
  translatedValue: string;
@@ -457,6 +569,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
457
569
  segments: [{
458
570
  value: string;
459
571
  id: string;
572
+ translationExamples?: {
573
+ sourceValue: string;
574
+ translatedValue: string;
575
+ }[] | undefined;
460
576
  tmMatch?: {
461
577
  sourceValue: string;
462
578
  translatedValue: string;
@@ -464,6 +580,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
464
580
  }, ...{
465
581
  value: string;
466
582
  id: string;
583
+ translationExamples?: {
584
+ sourceValue: string;
585
+ translatedValue: string;
586
+ }[] | undefined;
467
587
  tmMatch?: {
468
588
  sourceValue: string;
469
589
  translatedValue: string;
@@ -543,6 +663,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
543
663
  segments: [{
544
664
  value: string;
545
665
  id: string;
666
+ translationExamples?: {
667
+ sourceValue: string;
668
+ translatedValue: string;
669
+ }[] | undefined;
546
670
  tmMatch?: {
547
671
  sourceValue: string;
548
672
  translatedValue: string;
@@ -550,6 +674,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
550
674
  }, ...{
551
675
  value: string;
552
676
  id: string;
677
+ translationExamples?: {
678
+ sourceValue: string;
679
+ translatedValue: string;
680
+ }[] | undefined;
553
681
  tmMatch?: {
554
682
  sourceValue: string;
555
683
  translatedValue: string;
@@ -564,6 +692,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
564
692
  segments: [{
565
693
  value: string;
566
694
  id: string;
695
+ translationExamples?: {
696
+ sourceValue: string;
697
+ translatedValue: string;
698
+ }[] | undefined;
567
699
  tmMatch?: {
568
700
  sourceValue: string;
569
701
  translatedValue: string;
@@ -571,6 +703,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
571
703
  }, ...{
572
704
  value: string;
573
705
  id: string;
706
+ translationExamples?: {
707
+ sourceValue: string;
708
+ translatedValue: string;
709
+ }[] | undefined;
574
710
  tmMatch?: {
575
711
  sourceValue: string;
576
712
  translatedValue: string;
@@ -650,6 +786,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
650
786
  segments: [{
651
787
  value: string;
652
788
  id: string;
789
+ translationExamples?: {
790
+ sourceValue: string;
791
+ translatedValue: string;
792
+ }[] | undefined;
653
793
  tmMatch?: {
654
794
  sourceValue: string;
655
795
  translatedValue: string;
@@ -657,6 +797,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
657
797
  }, ...{
658
798
  value: string;
659
799
  id: string;
800
+ translationExamples?: {
801
+ sourceValue: string;
802
+ translatedValue: string;
803
+ }[] | undefined;
660
804
  tmMatch?: {
661
805
  sourceValue: string;
662
806
  translatedValue: string;
@@ -671,6 +815,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
671
815
  segments: [{
672
816
  value: string;
673
817
  id: string;
818
+ translationExamples?: {
819
+ sourceValue: string;
820
+ translatedValue: string;
821
+ }[] | undefined;
674
822
  tmMatch?: {
675
823
  sourceValue: string;
676
824
  translatedValue: string;
@@ -678,6 +826,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
678
826
  }, ...{
679
827
  value: string;
680
828
  id: string;
829
+ translationExamples?: {
830
+ sourceValue: string;
831
+ translatedValue: string;
832
+ }[] | undefined;
681
833
  tmMatch?: {
682
834
  sourceValue: string;
683
835
  translatedValue: string;
@@ -757,6 +909,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
757
909
  segments: [{
758
910
  value: string;
759
911
  id: string;
912
+ translationExamples?: {
913
+ sourceValue: string;
914
+ translatedValue: string;
915
+ }[] | undefined;
760
916
  tmMatch?: {
761
917
  sourceValue: string;
762
918
  translatedValue: string;
@@ -764,6 +920,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
764
920
  }, ...{
765
921
  value: string;
766
922
  id: string;
923
+ translationExamples?: {
924
+ sourceValue: string;
925
+ translatedValue: string;
926
+ }[] | undefined;
767
927
  tmMatch?: {
768
928
  sourceValue: string;
769
929
  translatedValue: string;
@@ -778,6 +938,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
778
938
  segments: [{
779
939
  value: string;
780
940
  id: string;
941
+ translationExamples?: {
942
+ sourceValue: string;
943
+ translatedValue: string;
944
+ }[] | undefined;
781
945
  tmMatch?: {
782
946
  sourceValue: string;
783
947
  translatedValue: string;
@@ -785,6 +949,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
785
949
  }, ...{
786
950
  value: string;
787
951
  id: string;
952
+ translationExamples?: {
953
+ sourceValue: string;
954
+ translatedValue: string;
955
+ }[] | undefined;
788
956
  tmMatch?: {
789
957
  sourceValue: string;
790
958
  translatedValue: string;
@@ -864,6 +1032,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
864
1032
  segments: [{
865
1033
  value: string;
866
1034
  id: string;
1035
+ translationExamples?: {
1036
+ sourceValue: string;
1037
+ translatedValue: string;
1038
+ }[] | undefined;
867
1039
  tmMatch?: {
868
1040
  sourceValue: string;
869
1041
  translatedValue: string;
@@ -871,6 +1043,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
871
1043
  }, ...{
872
1044
  value: string;
873
1045
  id: string;
1046
+ translationExamples?: {
1047
+ sourceValue: string;
1048
+ translatedValue: string;
1049
+ }[] | undefined;
874
1050
  tmMatch?: {
875
1051
  sourceValue: string;
876
1052
  translatedValue: string;
@@ -885,6 +1061,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
885
1061
  segments: [{
886
1062
  value: string;
887
1063
  id: string;
1064
+ translationExamples?: {
1065
+ sourceValue: string;
1066
+ translatedValue: string;
1067
+ }[] | undefined;
888
1068
  tmMatch?: {
889
1069
  sourceValue: string;
890
1070
  translatedValue: string;
@@ -892,6 +1072,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
892
1072
  }, ...{
893
1073
  value: string;
894
1074
  id: string;
1075
+ translationExamples?: {
1076
+ sourceValue: string;
1077
+ translatedValue: string;
1078
+ }[] | undefined;
895
1079
  tmMatch?: {
896
1080
  sourceValue: string;
897
1081
  translatedValue: string;
@@ -971,6 +1155,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
971
1155
  segments: [{
972
1156
  value: string;
973
1157
  id: string;
1158
+ translationExamples?: {
1159
+ sourceValue: string;
1160
+ translatedValue: string;
1161
+ }[] | undefined;
974
1162
  tmMatch?: {
975
1163
  sourceValue: string;
976
1164
  translatedValue: string;
@@ -978,6 +1166,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
978
1166
  }, ...{
979
1167
  value: string;
980
1168
  id: string;
1169
+ translationExamples?: {
1170
+ sourceValue: string;
1171
+ translatedValue: string;
1172
+ }[] | undefined;
981
1173
  tmMatch?: {
982
1174
  sourceValue: string;
983
1175
  translatedValue: string;
@@ -992,6 +1184,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
992
1184
  segments: [{
993
1185
  value: string;
994
1186
  id: string;
1187
+ translationExamples?: {
1188
+ sourceValue: string;
1189
+ translatedValue: string;
1190
+ }[] | undefined;
995
1191
  tmMatch?: {
996
1192
  sourceValue: string;
997
1193
  translatedValue: string;
@@ -999,6 +1195,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
999
1195
  }, ...{
1000
1196
  value: string;
1001
1197
  id: string;
1198
+ translationExamples?: {
1199
+ sourceValue: string;
1200
+ translatedValue: string;
1201
+ }[] | undefined;
1002
1202
  tmMatch?: {
1003
1203
  sourceValue: string;
1004
1204
  translatedValue: string;
@@ -1078,6 +1278,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1078
1278
  segments: [{
1079
1279
  value: string;
1080
1280
  id: string;
1281
+ translationExamples?: {
1282
+ sourceValue: string;
1283
+ translatedValue: string;
1284
+ }[] | undefined;
1081
1285
  tmMatch?: {
1082
1286
  sourceValue: string;
1083
1287
  translatedValue: string;
@@ -1085,6 +1289,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1085
1289
  }, ...{
1086
1290
  value: string;
1087
1291
  id: string;
1292
+ translationExamples?: {
1293
+ sourceValue: string;
1294
+ translatedValue: string;
1295
+ }[] | undefined;
1088
1296
  tmMatch?: {
1089
1297
  sourceValue: string;
1090
1298
  translatedValue: string;
@@ -1099,6 +1307,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1099
1307
  segments: [{
1100
1308
  value: string;
1101
1309
  id: string;
1310
+ translationExamples?: {
1311
+ sourceValue: string;
1312
+ translatedValue: string;
1313
+ }[] | undefined;
1102
1314
  tmMatch?: {
1103
1315
  sourceValue: string;
1104
1316
  translatedValue: string;
@@ -1106,6 +1318,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1106
1318
  }, ...{
1107
1319
  value: string;
1108
1320
  id: string;
1321
+ translationExamples?: {
1322
+ sourceValue: string;
1323
+ translatedValue: string;
1324
+ }[] | undefined;
1109
1325
  tmMatch?: {
1110
1326
  sourceValue: string;
1111
1327
  translatedValue: string;
@@ -1185,6 +1401,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1185
1401
  segments: [{
1186
1402
  value: string;
1187
1403
  id: string;
1404
+ translationExamples?: {
1405
+ sourceValue: string;
1406
+ translatedValue: string;
1407
+ }[] | undefined;
1188
1408
  tmMatch?: {
1189
1409
  sourceValue: string;
1190
1410
  translatedValue: string;
@@ -1192,6 +1412,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1192
1412
  }, ...{
1193
1413
  value: string;
1194
1414
  id: string;
1415
+ translationExamples?: {
1416
+ sourceValue: string;
1417
+ translatedValue: string;
1418
+ }[] | undefined;
1195
1419
  tmMatch?: {
1196
1420
  sourceValue: string;
1197
1421
  translatedValue: string;
@@ -1206,6 +1430,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1206
1430
  segments: [{
1207
1431
  value: string;
1208
1432
  id: string;
1433
+ translationExamples?: {
1434
+ sourceValue: string;
1435
+ translatedValue: string;
1436
+ }[] | undefined;
1209
1437
  tmMatch?: {
1210
1438
  sourceValue: string;
1211
1439
  translatedValue: string;
@@ -1213,6 +1441,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1213
1441
  }, ...{
1214
1442
  value: string;
1215
1443
  id: string;
1444
+ translationExamples?: {
1445
+ sourceValue: string;
1446
+ translatedValue: string;
1447
+ }[] | undefined;
1216
1448
  tmMatch?: {
1217
1449
  sourceValue: string;
1218
1450
  translatedValue: string;
@@ -1292,6 +1524,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1292
1524
  segments: [{
1293
1525
  value: string;
1294
1526
  id: string;
1527
+ translationExamples?: {
1528
+ sourceValue: string;
1529
+ translatedValue: string;
1530
+ }[] | undefined;
1295
1531
  tmMatch?: {
1296
1532
  sourceValue: string;
1297
1533
  translatedValue: string;
@@ -1299,6 +1535,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1299
1535
  }, ...{
1300
1536
  value: string;
1301
1537
  id: string;
1538
+ translationExamples?: {
1539
+ sourceValue: string;
1540
+ translatedValue: string;
1541
+ }[] | undefined;
1302
1542
  tmMatch?: {
1303
1543
  sourceValue: string;
1304
1544
  translatedValue: string;
@@ -1313,6 +1553,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1313
1553
  segments: [{
1314
1554
  value: string;
1315
1555
  id: string;
1556
+ translationExamples?: {
1557
+ sourceValue: string;
1558
+ translatedValue: string;
1559
+ }[] | undefined;
1316
1560
  tmMatch?: {
1317
1561
  sourceValue: string;
1318
1562
  translatedValue: string;
@@ -1320,6 +1564,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1320
1564
  }, ...{
1321
1565
  value: string;
1322
1566
  id: string;
1567
+ translationExamples?: {
1568
+ sourceValue: string;
1569
+ translatedValue: string;
1570
+ }[] | undefined;
1323
1571
  tmMatch?: {
1324
1572
  sourceValue: string;
1325
1573
  translatedValue: string;
@@ -1399,6 +1647,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1399
1647
  segments: [{
1400
1648
  value: string;
1401
1649
  id: string;
1650
+ translationExamples?: {
1651
+ sourceValue: string;
1652
+ translatedValue: string;
1653
+ }[] | undefined;
1402
1654
  tmMatch?: {
1403
1655
  sourceValue: string;
1404
1656
  translatedValue: string;
@@ -1406,6 +1658,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1406
1658
  }, ...{
1407
1659
  value: string;
1408
1660
  id: string;
1661
+ translationExamples?: {
1662
+ sourceValue: string;
1663
+ translatedValue: string;
1664
+ }[] | undefined;
1409
1665
  tmMatch?: {
1410
1666
  sourceValue: string;
1411
1667
  translatedValue: string;
@@ -1420,6 +1676,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1420
1676
  segments: [{
1421
1677
  value: string;
1422
1678
  id: string;
1679
+ translationExamples?: {
1680
+ sourceValue: string;
1681
+ translatedValue: string;
1682
+ }[] | undefined;
1423
1683
  tmMatch?: {
1424
1684
  sourceValue: string;
1425
1685
  translatedValue: string;
@@ -1427,6 +1687,10 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1427
1687
  }, ...{
1428
1688
  value: string;
1429
1689
  id: string;
1690
+ translationExamples?: {
1691
+ sourceValue: string;
1692
+ translatedValue: string;
1693
+ }[] | undefined;
1430
1694
  tmMatch?: {
1431
1695
  sourceValue: string;
1432
1696
  translatedValue: string;
@@ -1,9 +1,9 @@
1
1
  import z from 'zod';
2
- import { ASYNC_REQUEST_SCHEMA, AsyncRequestCallbackStatusEnum, } from '../common/asyncRequestSchemas.js';
3
- import { COMMON_ERROR_RESPONSE_SCHEMA, COMMON_FAILED_OPERATION_CALLBACK_SCHEMA, COMMON_REQUEST_HEADERS_SCHEMA, FORCE_INTEGRATION_SCHEMA, LOCALE_SCHEMA, METADATA_SCHEMA, REAL_INTEGRATION_ENGINE_SCHEMA, refineIntegrationIsPresent, } from '../common/commonSchemas.js';
4
- import { TRANSLATION_CONTEXT_SCHEMA } from '../common/translationContextSchemas.js';
5
- import { LqaIssueSeverityEnum } from '../lqa/commonSchemas.js';
6
- import { CONTENT_ID_PROP_SCHEMA, SEGMENT_WARNINGS_SCHEMA, TRANSLATE_CONTENT_UNIT_SCHEMA, refineDifferentSourceAndTargetLang, refineRequestSizeLimit, refineUniqueIds, } from './sharedSchemas.js';
2
+ import { ASYNC_REQUEST_SCHEMA, AsyncRequestCallbackStatusEnum, } from "../common/asyncRequestSchemas.js";
3
+ import { COMMON_ERROR_RESPONSE_SCHEMA, COMMON_FAILED_OPERATION_CALLBACK_SCHEMA, COMMON_REQUEST_HEADERS_SCHEMA, FORCE_INTEGRATION_SCHEMA, LOCALE_SCHEMA, METADATA_SCHEMA, REAL_INTEGRATION_ENGINE_SCHEMA, refineIntegrationIsPresent, } from "../common/commonSchemas.js";
4
+ import { TRANSLATION_CONTEXT_SCHEMA } from "../common/translationContextSchemas.js";
5
+ import { LqaIssueSeverityEnum } from "../lqa/commonSchemas.js";
6
+ import { CONTENT_ID_PROP_SCHEMA, SEGMENT_WARNINGS_SCHEMA, TRANSLATE_CONTENT_UNIT_SCHEMA, refineDifferentSourceAndTargetLang, refineRequestSizeLimit, refineUniqueIds, } from "./sharedSchemas.js";
7
7
  const CONTENT_UNITS_MAX_LENGTH = 50;
8
8
  export const TRANSLATE_ASYNC_BODY_SCHEMA = ASYNC_REQUEST_SCHEMA.extend({
9
9
  sourceLocale: LOCALE_SCHEMA,