@lokalise/polyglot-sdk 20.0.0 → 20.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,12 +46,12 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
46
46
  translation: z.ZodString;
47
47
  description: z.ZodOptional<z.ZodString>;
48
48
  }, "strip", z.ZodTypeAny, {
49
- locale: string;
50
49
  translation: string;
50
+ locale: string;
51
51
  description?: string | undefined;
52
52
  }, {
53
- locale: string;
54
53
  translation: string;
54
+ locale: string;
55
55
  description?: string | undefined;
56
56
  }>, "many">>;
57
57
  }, "strip", z.ZodTypeAny, {
@@ -61,8 +61,8 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
61
61
  caseSensitive: boolean;
62
62
  description?: string | undefined;
63
63
  translations?: {
64
- locale: string;
65
64
  translation: string;
65
+ locale: string;
66
66
  description?: string | undefined;
67
67
  }[] | undefined;
68
68
  }, {
@@ -72,8 +72,8 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
72
72
  forbidden?: boolean | undefined;
73
73
  caseSensitive?: boolean | undefined;
74
74
  translations?: {
75
- locale: string;
76
75
  translation: string;
76
+ locale: string;
77
77
  description?: string | undefined;
78
78
  }[] | undefined;
79
79
  }>, {
@@ -83,8 +83,8 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
83
83
  caseSensitive: boolean;
84
84
  description?: string | undefined;
85
85
  translations?: {
86
- locale: string;
87
86
  translation: string;
87
+ locale: string;
88
88
  description?: string | undefined;
89
89
  }[] | undefined;
90
90
  }, {
@@ -94,8 +94,8 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
94
94
  forbidden?: boolean | undefined;
95
95
  caseSensitive?: boolean | undefined;
96
96
  translations?: {
97
- locale: string;
98
97
  translation: string;
98
+ locale: string;
99
99
  description?: string | undefined;
100
100
  }[] | undefined;
101
101
  }>, "many">>;
@@ -111,6 +111,10 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
111
111
  translatedValue: string;
112
112
  }>, "many">>;
113
113
  }, "targetPluralForms">, "strip", z.ZodTypeAny, {
114
+ translationExamples?: {
115
+ sourceValue: string;
116
+ translatedValue: string;
117
+ }[] | undefined;
114
118
  description?: string | undefined;
115
119
  styleGuide?: {
116
120
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -127,16 +131,16 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
127
131
  caseSensitive: boolean;
128
132
  description?: string | undefined;
129
133
  translations?: {
130
- locale: string;
131
134
  translation: string;
135
+ locale: string;
132
136
  description?: string | undefined;
133
137
  }[] | undefined;
134
138
  }[] | undefined;
139
+ }, {
135
140
  translationExamples?: {
136
141
  sourceValue: string;
137
142
  translatedValue: string;
138
143
  }[] | undefined;
139
- }, {
140
144
  description?: string | undefined;
141
145
  styleGuide?: {
142
146
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -153,15 +157,11 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
153
157
  forbidden?: boolean | undefined;
154
158
  caseSensitive?: boolean | undefined;
155
159
  translations?: {
156
- locale: string;
157
160
  translation: string;
161
+ locale: string;
158
162
  description?: string | undefined;
159
163
  }[] | undefined;
160
164
  }[] | undefined;
161
- translationExamples?: {
162
- sourceValue: string;
163
- translatedValue: string;
164
- }[] | undefined;
165
165
  }>>;
166
166
  assets: z.ZodOptional<z.ZodObject<Omit<{
167
167
  description: z.ZodOptional<z.ZodString>;
@@ -208,12 +208,12 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
208
208
  translation: z.ZodString;
209
209
  description: z.ZodOptional<z.ZodString>;
210
210
  }, "strip", z.ZodTypeAny, {
211
- locale: string;
212
211
  translation: string;
212
+ locale: string;
213
213
  description?: string | undefined;
214
214
  }, {
215
- locale: string;
216
215
  translation: string;
216
+ locale: string;
217
217
  description?: string | undefined;
218
218
  }>, "many">>;
219
219
  }, "strip", z.ZodTypeAny, {
@@ -223,8 +223,8 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
223
223
  caseSensitive: boolean;
224
224
  description?: string | undefined;
225
225
  translations?: {
226
- locale: string;
227
226
  translation: string;
227
+ locale: string;
228
228
  description?: string | undefined;
229
229
  }[] | undefined;
230
230
  }, {
@@ -234,8 +234,8 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
234
234
  forbidden?: boolean | undefined;
235
235
  caseSensitive?: boolean | undefined;
236
236
  translations?: {
237
- locale: string;
238
237
  translation: string;
238
+ locale: string;
239
239
  description?: string | undefined;
240
240
  }[] | undefined;
241
241
  }>, {
@@ -245,8 +245,8 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
245
245
  caseSensitive: boolean;
246
246
  description?: string | undefined;
247
247
  translations?: {
248
- locale: string;
249
248
  translation: string;
249
+ locale: string;
250
250
  description?: string | undefined;
251
251
  }[] | undefined;
252
252
  }, {
@@ -256,8 +256,8 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
256
256
  forbidden?: boolean | undefined;
257
257
  caseSensitive?: boolean | undefined;
258
258
  translations?: {
259
- locale: string;
260
259
  translation: string;
260
+ locale: string;
261
261
  description?: string | undefined;
262
262
  }[] | undefined;
263
263
  }>, "many">>;
@@ -273,6 +273,10 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
273
273
  translatedValue: string;
274
274
  }>, "many">>;
275
275
  }, "targetPluralForms">, "strip", z.ZodTypeAny, {
276
+ translationExamples?: {
277
+ sourceValue: string;
278
+ translatedValue: string;
279
+ }[] | undefined;
276
280
  description?: string | undefined;
277
281
  styleGuide?: {
278
282
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -289,16 +293,16 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
289
293
  caseSensitive: boolean;
290
294
  description?: string | undefined;
291
295
  translations?: {
292
- locale: string;
293
296
  translation: string;
297
+ locale: string;
294
298
  description?: string | undefined;
295
299
  }[] | undefined;
296
300
  }[] | undefined;
301
+ }, {
297
302
  translationExamples?: {
298
303
  sourceValue: string;
299
304
  translatedValue: string;
300
305
  }[] | undefined;
301
- }, {
302
306
  description?: string | undefined;
303
307
  styleGuide?: {
304
308
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -315,15 +319,11 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
315
319
  forbidden?: boolean | undefined;
316
320
  caseSensitive?: boolean | undefined;
317
321
  translations?: {
318
- locale: string;
319
322
  translation: string;
323
+ locale: string;
320
324
  description?: string | undefined;
321
325
  }[] | undefined;
322
326
  }[] | undefined;
323
- translationExamples?: {
324
- sourceValue: string;
325
- translatedValue: string;
326
- }[] | undefined;
327
327
  }>>;
328
328
  locale: z.ZodEffects<z.ZodString, string, string>;
329
329
  value: z.ZodString;
@@ -354,9 +354,13 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
354
354
  }>>;
355
355
  }, "strip", z.ZodTypeAny, {
356
356
  value: string;
357
- locale: string;
358
357
  mode: "rephrase" | "shorten";
358
+ locale: string;
359
359
  context?: {
360
+ translationExamples?: {
361
+ sourceValue: string;
362
+ translatedValue: string;
363
+ }[] | undefined;
360
364
  description?: string | undefined;
361
365
  styleGuide?: {
362
366
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -373,18 +377,18 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
373
377
  caseSensitive: boolean;
374
378
  description?: string | undefined;
375
379
  translations?: {
376
- locale: string;
377
380
  translation: string;
381
+ locale: string;
378
382
  description?: string | undefined;
379
383
  }[] | undefined;
380
384
  }[] | undefined;
385
+ } | undefined;
386
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
387
+ assets?: {
381
388
  translationExamples?: {
382
389
  sourceValue: string;
383
390
  translatedValue: string;
384
391
  }[] | undefined;
385
- } | undefined;
386
- integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
387
- assets?: {
388
392
  description?: string | undefined;
389
393
  styleGuide?: {
390
394
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -401,15 +405,11 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
401
405
  caseSensitive: boolean;
402
406
  description?: string | undefined;
403
407
  translations?: {
404
- locale: string;
405
408
  translation: string;
409
+ locale: string;
406
410
  description?: string | undefined;
407
411
  }[] | undefined;
408
412
  }[] | undefined;
409
- translationExamples?: {
410
- sourceValue: string;
411
- translatedValue: string;
412
- }[] | undefined;
413
413
  } | undefined;
414
414
  forceIntegration?: boolean | undefined;
415
415
  history?: {
@@ -418,9 +418,13 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
418
418
  }[] | undefined;
419
419
  }, {
420
420
  value: string;
421
- locale: string;
422
421
  mode: string;
422
+ locale: string;
423
423
  context?: {
424
+ translationExamples?: {
425
+ sourceValue: string;
426
+ translatedValue: string;
427
+ }[] | undefined;
424
428
  description?: string | undefined;
425
429
  styleGuide?: {
426
430
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -437,18 +441,18 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
437
441
  forbidden?: boolean | undefined;
438
442
  caseSensitive?: boolean | undefined;
439
443
  translations?: {
440
- locale: string;
441
444
  translation: string;
445
+ locale: string;
442
446
  description?: string | undefined;
443
447
  }[] | undefined;
444
448
  }[] | undefined;
449
+ } | undefined;
450
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
451
+ assets?: {
445
452
  translationExamples?: {
446
453
  sourceValue: string;
447
454
  translatedValue: string;
448
455
  }[] | undefined;
449
- } | undefined;
450
- integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
451
- assets?: {
452
456
  description?: string | undefined;
453
457
  styleGuide?: {
454
458
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -465,15 +469,11 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
465
469
  forbidden?: boolean | undefined;
466
470
  caseSensitive?: boolean | undefined;
467
471
  translations?: {
468
- locale: string;
469
472
  translation: string;
473
+ locale: string;
470
474
  description?: string | undefined;
471
475
  }[] | undefined;
472
476
  }[] | undefined;
473
- translationExamples?: {
474
- sourceValue: string;
475
- translatedValue: string;
476
- }[] | undefined;
477
477
  } | undefined;
478
478
  forceIntegration?: boolean | undefined;
479
479
  history?: {
@@ -482,9 +482,13 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
482
482
  }[] | undefined;
483
483
  }>, {
484
484
  value: string;
485
- locale: string;
486
485
  mode: "rephrase" | "shorten";
486
+ locale: string;
487
487
  context?: {
488
+ translationExamples?: {
489
+ sourceValue: string;
490
+ translatedValue: string;
491
+ }[] | undefined;
488
492
  description?: string | undefined;
489
493
  styleGuide?: {
490
494
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -501,18 +505,18 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
501
505
  caseSensitive: boolean;
502
506
  description?: string | undefined;
503
507
  translations?: {
504
- locale: string;
505
508
  translation: string;
509
+ locale: string;
506
510
  description?: string | undefined;
507
511
  }[] | undefined;
508
512
  }[] | undefined;
513
+ } | undefined;
514
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
515
+ assets?: {
509
516
  translationExamples?: {
510
517
  sourceValue: string;
511
518
  translatedValue: string;
512
519
  }[] | undefined;
513
- } | undefined;
514
- integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
515
- assets?: {
516
520
  description?: string | undefined;
517
521
  styleGuide?: {
518
522
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -529,15 +533,11 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
529
533
  caseSensitive: boolean;
530
534
  description?: string | undefined;
531
535
  translations?: {
532
- locale: string;
533
536
  translation: string;
537
+ locale: string;
534
538
  description?: string | undefined;
535
539
  }[] | undefined;
536
540
  }[] | undefined;
537
- translationExamples?: {
538
- sourceValue: string;
539
- translatedValue: string;
540
- }[] | undefined;
541
541
  } | undefined;
542
542
  forceIntegration?: boolean | undefined;
543
543
  history?: {
@@ -546,9 +546,13 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
546
546
  }[] | undefined;
547
547
  }, {
548
548
  value: string;
549
- locale: string;
550
549
  mode: string;
550
+ locale: string;
551
551
  context?: {
552
+ translationExamples?: {
553
+ sourceValue: string;
554
+ translatedValue: string;
555
+ }[] | undefined;
552
556
  description?: string | undefined;
553
557
  styleGuide?: {
554
558
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -565,18 +569,18 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
565
569
  forbidden?: boolean | undefined;
566
570
  caseSensitive?: boolean | undefined;
567
571
  translations?: {
568
- locale: string;
569
572
  translation: string;
573
+ locale: string;
570
574
  description?: string | undefined;
571
575
  }[] | undefined;
572
576
  }[] | undefined;
577
+ } | undefined;
578
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
579
+ assets?: {
573
580
  translationExamples?: {
574
581
  sourceValue: string;
575
582
  translatedValue: string;
576
583
  }[] | undefined;
577
- } | undefined;
578
- integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
579
- assets?: {
580
584
  description?: string | undefined;
581
585
  styleGuide?: {
582
586
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -593,15 +597,11 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
593
597
  forbidden?: boolean | undefined;
594
598
  caseSensitive?: boolean | undefined;
595
599
  translations?: {
596
- locale: string;
597
600
  translation: string;
601
+ locale: string;
598
602
  description?: string | undefined;
599
603
  }[] | undefined;
600
604
  }[] | undefined;
601
- translationExamples?: {
602
- sourceValue: string;
603
- translatedValue: string;
604
- }[] | undefined;
605
605
  } | undefined;
606
606
  forceIntegration?: boolean | undefined;
607
607
  history?: {
@@ -610,9 +610,13 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
610
610
  }[] | undefined;
611
611
  }>, {
612
612
  value: string;
613
- locale: string;
614
613
  mode: "rephrase" | "shorten";
614
+ locale: string;
615
615
  context?: {
616
+ translationExamples?: {
617
+ sourceValue: string;
618
+ translatedValue: string;
619
+ }[] | undefined;
616
620
  description?: string | undefined;
617
621
  styleGuide?: {
618
622
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -629,18 +633,18 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
629
633
  caseSensitive: boolean;
630
634
  description?: string | undefined;
631
635
  translations?: {
632
- locale: string;
633
636
  translation: string;
637
+ locale: string;
634
638
  description?: string | undefined;
635
639
  }[] | undefined;
636
640
  }[] | undefined;
641
+ } | undefined;
642
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
643
+ assets?: {
637
644
  translationExamples?: {
638
645
  sourceValue: string;
639
646
  translatedValue: string;
640
647
  }[] | undefined;
641
- } | undefined;
642
- integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
643
- assets?: {
644
648
  description?: string | undefined;
645
649
  styleGuide?: {
646
650
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -657,15 +661,11 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
657
661
  caseSensitive: boolean;
658
662
  description?: string | undefined;
659
663
  translations?: {
660
- locale: string;
661
664
  translation: string;
665
+ locale: string;
662
666
  description?: string | undefined;
663
667
  }[] | undefined;
664
668
  }[] | undefined;
665
- translationExamples?: {
666
- sourceValue: string;
667
- translatedValue: string;
668
- }[] | undefined;
669
669
  } | undefined;
670
670
  forceIntegration?: boolean | undefined;
671
671
  history?: {
@@ -674,9 +674,13 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
674
674
  }[] | undefined;
675
675
  }, {
676
676
  value: string;
677
- locale: string;
678
677
  mode: string;
678
+ locale: string;
679
679
  context?: {
680
+ translationExamples?: {
681
+ sourceValue: string;
682
+ translatedValue: string;
683
+ }[] | undefined;
680
684
  description?: string | undefined;
681
685
  styleGuide?: {
682
686
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -693,18 +697,18 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
693
697
  forbidden?: boolean | undefined;
694
698
  caseSensitive?: boolean | undefined;
695
699
  translations?: {
696
- locale: string;
697
700
  translation: string;
701
+ locale: string;
698
702
  description?: string | undefined;
699
703
  }[] | undefined;
700
704
  }[] | undefined;
705
+ } | undefined;
706
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
707
+ assets?: {
701
708
  translationExamples?: {
702
709
  sourceValue: string;
703
710
  translatedValue: string;
704
711
  }[] | undefined;
705
- } | undefined;
706
- integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
707
- assets?: {
708
712
  description?: string | undefined;
709
713
  styleGuide?: {
710
714
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -721,15 +725,11 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
721
725
  forbidden?: boolean | undefined;
722
726
  caseSensitive?: boolean | undefined;
723
727
  translations?: {
724
- locale: string;
725
728
  translation: string;
729
+ locale: string;
726
730
  description?: string | undefined;
727
731
  }[] | undefined;
728
732
  }[] | undefined;
729
- translationExamples?: {
730
- sourceValue: string;
731
- translatedValue: string;
732
- }[] | undefined;
733
733
  } | undefined;
734
734
  forceIntegration?: boolean | undefined;
735
735
  history?: {
@@ -825,12 +825,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
825
825
  translation: z.ZodString;
826
826
  description: z.ZodOptional<z.ZodString>;
827
827
  }, "strip", z.ZodTypeAny, {
828
- locale: string;
829
828
  translation: string;
829
+ locale: string;
830
830
  description?: string | undefined;
831
831
  }, {
832
- locale: string;
833
832
  translation: string;
833
+ locale: string;
834
834
  description?: string | undefined;
835
835
  }>, "many">>;
836
836
  }, "strip", z.ZodTypeAny, {
@@ -840,8 +840,8 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
840
840
  caseSensitive: boolean;
841
841
  description?: string | undefined;
842
842
  translations?: {
843
- locale: string;
844
843
  translation: string;
844
+ locale: string;
845
845
  description?: string | undefined;
846
846
  }[] | undefined;
847
847
  }, {
@@ -851,8 +851,8 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
851
851
  forbidden?: boolean | undefined;
852
852
  caseSensitive?: boolean | undefined;
853
853
  translations?: {
854
- locale: string;
855
854
  translation: string;
855
+ locale: string;
856
856
  description?: string | undefined;
857
857
  }[] | undefined;
858
858
  }>, {
@@ -862,8 +862,8 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
862
862
  caseSensitive: boolean;
863
863
  description?: string | undefined;
864
864
  translations?: {
865
- locale: string;
866
865
  translation: string;
866
+ locale: string;
867
867
  description?: string | undefined;
868
868
  }[] | undefined;
869
869
  }, {
@@ -873,8 +873,8 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
873
873
  forbidden?: boolean | undefined;
874
874
  caseSensitive?: boolean | undefined;
875
875
  translations?: {
876
- locale: string;
877
876
  translation: string;
877
+ locale: string;
878
878
  description?: string | undefined;
879
879
  }[] | undefined;
880
880
  }>, "many">>;
@@ -890,6 +890,10 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
890
890
  translatedValue: string;
891
891
  }>, "many">>;
892
892
  }, "targetPluralForms">, "strip", z.ZodTypeAny, {
893
+ translationExamples?: {
894
+ sourceValue: string;
895
+ translatedValue: string;
896
+ }[] | undefined;
893
897
  description?: string | undefined;
894
898
  styleGuide?: {
895
899
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -906,16 +910,16 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
906
910
  caseSensitive: boolean;
907
911
  description?: string | undefined;
908
912
  translations?: {
909
- locale: string;
910
913
  translation: string;
914
+ locale: string;
911
915
  description?: string | undefined;
912
916
  }[] | undefined;
913
917
  }[] | undefined;
918
+ }, {
914
919
  translationExamples?: {
915
920
  sourceValue: string;
916
921
  translatedValue: string;
917
922
  }[] | undefined;
918
- }, {
919
923
  description?: string | undefined;
920
924
  styleGuide?: {
921
925
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -932,15 +936,11 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
932
936
  forbidden?: boolean | undefined;
933
937
  caseSensitive?: boolean | undefined;
934
938
  translations?: {
935
- locale: string;
936
939
  translation: string;
940
+ locale: string;
937
941
  description?: string | undefined;
938
942
  }[] | undefined;
939
943
  }[] | undefined;
940
- translationExamples?: {
941
- sourceValue: string;
942
- translatedValue: string;
943
- }[] | undefined;
944
944
  }>>;
945
945
  contentUnits: z.ZodEffects<z.ZodArray<z.ZodObject<{
946
946
  id: z.ZodString;
@@ -975,7 +975,6 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
975
975
  id: string;
976
976
  }[]]>;
977
977
  }, "strip", z.ZodTypeAny, {
978
- id: string;
979
978
  segments: [{
980
979
  value: string;
981
980
  id: string;
@@ -983,12 +982,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
983
982
  value: string;
984
983
  id: string;
985
984
  }[]];
985
+ id: string;
986
986
  context?: {
987
987
  description: string;
988
988
  } | undefined;
989
989
  characterLimit?: number | undefined;
990
990
  }, {
991
- id: string;
992
991
  segments: [{
993
992
  value: string;
994
993
  id: string;
@@ -996,12 +995,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
996
995
  value: string;
997
996
  id: string;
998
997
  }[]];
998
+ id: string;
999
999
  context?: {
1000
1000
  description: string;
1001
1001
  } | undefined;
1002
1002
  characterLimit?: number | undefined;
1003
1003
  }>, "atleastone">, [{
1004
- id: string;
1005
1004
  segments: [{
1006
1005
  value: string;
1007
1006
  id: string;
@@ -1009,12 +1008,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1009
1008
  value: string;
1010
1009
  id: string;
1011
1010
  }[]];
1011
+ id: string;
1012
1012
  context?: {
1013
1013
  description: string;
1014
1014
  } | undefined;
1015
1015
  characterLimit?: number | undefined;
1016
1016
  }, ...{
1017
- id: string;
1018
1017
  segments: [{
1019
1018
  value: string;
1020
1019
  id: string;
@@ -1022,12 +1021,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1022
1021
  value: string;
1023
1022
  id: string;
1024
1023
  }[]];
1024
+ id: string;
1025
1025
  context?: {
1026
1026
  description: string;
1027
1027
  } | undefined;
1028
1028
  characterLimit?: number | undefined;
1029
1029
  }[]], [{
1030
- id: string;
1031
1030
  segments: [{
1032
1031
  value: string;
1033
1032
  id: string;
@@ -1035,12 +1034,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1035
1034
  value: string;
1036
1035
  id: string;
1037
1036
  }[]];
1037
+ id: string;
1038
1038
  context?: {
1039
1039
  description: string;
1040
1040
  } | undefined;
1041
1041
  characterLimit?: number | undefined;
1042
1042
  }, ...{
1043
- id: string;
1044
1043
  segments: [{
1045
1044
  value: string;
1046
1045
  id: string;
@@ -1048,6 +1047,7 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1048
1047
  value: string;
1049
1048
  id: string;
1050
1049
  }[]];
1050
+ id: string;
1051
1051
  context?: {
1052
1052
  description: string;
1053
1053
  } | undefined;
@@ -1060,7 +1060,6 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1060
1060
  callbackToken: string;
1061
1061
  locale: string;
1062
1062
  contentUnits: [{
1063
- id: string;
1064
1063
  segments: [{
1065
1064
  value: string;
1066
1065
  id: string;
@@ -1068,12 +1067,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1068
1067
  value: string;
1069
1068
  id: string;
1070
1069
  }[]];
1070
+ id: string;
1071
1071
  context?: {
1072
1072
  description: string;
1073
1073
  } | undefined;
1074
1074
  characterLimit?: number | undefined;
1075
1075
  }, ...{
1076
- id: string;
1077
1076
  segments: [{
1078
1077
  value: string;
1079
1078
  id: string;
@@ -1081,12 +1080,17 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1081
1080
  value: string;
1082
1081
  id: string;
1083
1082
  }[]];
1083
+ id: string;
1084
1084
  context?: {
1085
1085
  description: string;
1086
1086
  } | undefined;
1087
1087
  characterLimit?: number | undefined;
1088
1088
  }[]];
1089
1089
  context?: {
1090
+ translationExamples?: {
1091
+ sourceValue: string;
1092
+ translatedValue: string;
1093
+ }[] | undefined;
1090
1094
  description?: string | undefined;
1091
1095
  styleGuide?: {
1092
1096
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -1103,15 +1107,11 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1103
1107
  caseSensitive: boolean;
1104
1108
  description?: string | undefined;
1105
1109
  translations?: {
1106
- locale: string;
1107
1110
  translation: string;
1111
+ locale: string;
1108
1112
  description?: string | undefined;
1109
1113
  }[] | undefined;
1110
1114
  }[] | undefined;
1111
- translationExamples?: {
1112
- sourceValue: string;
1113
- translatedValue: string;
1114
- }[] | undefined;
1115
1115
  } | undefined;
1116
1116
  integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
1117
1117
  }, {
@@ -1121,7 +1121,6 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1121
1121
  callbackToken: string;
1122
1122
  locale: string;
1123
1123
  contentUnits: [{
1124
- id: string;
1125
1124
  segments: [{
1126
1125
  value: string;
1127
1126
  id: string;
@@ -1129,12 +1128,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1129
1128
  value: string;
1130
1129
  id: string;
1131
1130
  }[]];
1131
+ id: string;
1132
1132
  context?: {
1133
1133
  description: string;
1134
1134
  } | undefined;
1135
1135
  characterLimit?: number | undefined;
1136
1136
  }, ...{
1137
- id: string;
1138
1137
  segments: [{
1139
1138
  value: string;
1140
1139
  id: string;
@@ -1142,12 +1141,17 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1142
1141
  value: string;
1143
1142
  id: string;
1144
1143
  }[]];
1144
+ id: string;
1145
1145
  context?: {
1146
1146
  description: string;
1147
1147
  } | undefined;
1148
1148
  characterLimit?: number | undefined;
1149
1149
  }[]];
1150
1150
  context?: {
1151
+ translationExamples?: {
1152
+ sourceValue: string;
1153
+ translatedValue: string;
1154
+ }[] | undefined;
1151
1155
  description?: string | undefined;
1152
1156
  styleGuide?: {
1153
1157
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -1164,15 +1168,11 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1164
1168
  forbidden?: boolean | undefined;
1165
1169
  caseSensitive?: boolean | undefined;
1166
1170
  translations?: {
1167
- locale: string;
1168
1171
  translation: string;
1172
+ locale: string;
1169
1173
  description?: string | undefined;
1170
1174
  }[] | undefined;
1171
1175
  }[] | undefined;
1172
- translationExamples?: {
1173
- sourceValue: string;
1174
- translatedValue: string;
1175
- }[] | undefined;
1176
1176
  } | undefined;
1177
1177
  integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
1178
1178
  }>, {
@@ -1182,7 +1182,6 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1182
1182
  callbackToken: string;
1183
1183
  locale: string;
1184
1184
  contentUnits: [{
1185
- id: string;
1186
1185
  segments: [{
1187
1186
  value: string;
1188
1187
  id: string;
@@ -1190,12 +1189,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1190
1189
  value: string;
1191
1190
  id: string;
1192
1191
  }[]];
1192
+ id: string;
1193
1193
  context?: {
1194
1194
  description: string;
1195
1195
  } | undefined;
1196
1196
  characterLimit?: number | undefined;
1197
1197
  }, ...{
1198
- id: string;
1199
1198
  segments: [{
1200
1199
  value: string;
1201
1200
  id: string;
@@ -1203,12 +1202,17 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1203
1202
  value: string;
1204
1203
  id: string;
1205
1204
  }[]];
1205
+ id: string;
1206
1206
  context?: {
1207
1207
  description: string;
1208
1208
  } | undefined;
1209
1209
  characterLimit?: number | undefined;
1210
1210
  }[]];
1211
1211
  context?: {
1212
+ translationExamples?: {
1213
+ sourceValue: string;
1214
+ translatedValue: string;
1215
+ }[] | undefined;
1212
1216
  description?: string | undefined;
1213
1217
  styleGuide?: {
1214
1218
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -1225,15 +1229,11 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1225
1229
  caseSensitive: boolean;
1226
1230
  description?: string | undefined;
1227
1231
  translations?: {
1228
- locale: string;
1229
1232
  translation: string;
1233
+ locale: string;
1230
1234
  description?: string | undefined;
1231
1235
  }[] | undefined;
1232
1236
  }[] | undefined;
1233
- translationExamples?: {
1234
- sourceValue: string;
1235
- translatedValue: string;
1236
- }[] | undefined;
1237
1237
  } | undefined;
1238
1238
  integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
1239
1239
  }, {
@@ -1243,7 +1243,6 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1243
1243
  callbackToken: string;
1244
1244
  locale: string;
1245
1245
  contentUnits: [{
1246
- id: string;
1247
1246
  segments: [{
1248
1247
  value: string;
1249
1248
  id: string;
@@ -1251,12 +1250,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1251
1250
  value: string;
1252
1251
  id: string;
1253
1252
  }[]];
1253
+ id: string;
1254
1254
  context?: {
1255
1255
  description: string;
1256
1256
  } | undefined;
1257
1257
  characterLimit?: number | undefined;
1258
1258
  }, ...{
1259
- id: string;
1260
1259
  segments: [{
1261
1260
  value: string;
1262
1261
  id: string;
@@ -1264,12 +1263,17 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1264
1263
  value: string;
1265
1264
  id: string;
1266
1265
  }[]];
1266
+ id: string;
1267
1267
  context?: {
1268
1268
  description: string;
1269
1269
  } | undefined;
1270
1270
  characterLimit?: number | undefined;
1271
1271
  }[]];
1272
1272
  context?: {
1273
+ translationExamples?: {
1274
+ sourceValue: string;
1275
+ translatedValue: string;
1276
+ }[] | undefined;
1273
1277
  description?: string | undefined;
1274
1278
  styleGuide?: {
1275
1279
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -1286,15 +1290,11 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1286
1290
  forbidden?: boolean | undefined;
1287
1291
  caseSensitive?: boolean | undefined;
1288
1292
  translations?: {
1289
- locale: string;
1290
1293
  translation: string;
1294
+ locale: string;
1291
1295
  description?: string | undefined;
1292
1296
  }[] | undefined;
1293
1297
  }[] | undefined;
1294
- translationExamples?: {
1295
- sourceValue: string;
1296
- translatedValue: string;
1297
- }[] | undefined;
1298
1298
  } | undefined;
1299
1299
  integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
1300
1300
  }>;
@@ -1360,17 +1360,17 @@ export declare const REWRITE_TEXT_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
1360
1360
  message: string;
1361
1361
  errorCode: string;
1362
1362
  integration: string;
1363
+ polyglotRefId: string;
1363
1364
  contentUnitId: string;
1364
1365
  segmentId: string;
1365
- polyglotRefId: string;
1366
1366
  details?: Record<string, unknown> | undefined;
1367
1367
  }, {
1368
1368
  message: string;
1369
1369
  errorCode: string;
1370
1370
  integration: string;
1371
+ polyglotRefId: string;
1371
1372
  contentUnitId: string;
1372
1373
  segmentId: string;
1373
- polyglotRefId: string;
1374
1374
  details?: Record<string, unknown> | undefined;
1375
1375
  }>, "many">>;
1376
1376
  }, "strip", z.ZodTypeAny, {
@@ -1389,9 +1389,9 @@ export declare const REWRITE_TEXT_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
1389
1389
  message: string;
1390
1390
  errorCode: string;
1391
1391
  integration: string;
1392
+ polyglotRefId: string;
1392
1393
  contentUnitId: string;
1393
1394
  segmentId: string;
1394
- polyglotRefId: string;
1395
1395
  details?: Record<string, unknown> | undefined;
1396
1396
  }[] | undefined;
1397
1397
  }, {
@@ -1410,9 +1410,9 @@ export declare const REWRITE_TEXT_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
1410
1410
  message: string;
1411
1411
  errorCode: string;
1412
1412
  integration: string;
1413
+ polyglotRefId: string;
1413
1414
  contentUnitId: string;
1414
1415
  segmentId: string;
1415
- polyglotRefId: string;
1416
1416
  details?: Record<string, unknown> | undefined;
1417
1417
  }[] | undefined;
1418
1418
  }>;
@@ -1461,17 +1461,17 @@ export declare const REWRITE_TEXT_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion
1461
1461
  message: string;
1462
1462
  errorCode: string;
1463
1463
  integration: string;
1464
+ polyglotRefId: string;
1464
1465
  contentUnitId: string;
1465
1466
  segmentId: string;
1466
- polyglotRefId: string;
1467
1467
  details?: Record<string, unknown> | undefined;
1468
1468
  }, {
1469
1469
  message: string;
1470
1470
  errorCode: string;
1471
1471
  integration: string;
1472
+ polyglotRefId: string;
1472
1473
  contentUnitId: string;
1473
1474
  segmentId: string;
1474
- polyglotRefId: string;
1475
1475
  details?: Record<string, unknown> | undefined;
1476
1476
  }>, "many">>;
1477
1477
  }, "strip", z.ZodTypeAny, {
@@ -1490,9 +1490,9 @@ export declare const REWRITE_TEXT_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion
1490
1490
  message: string;
1491
1491
  errorCode: string;
1492
1492
  integration: string;
1493
+ polyglotRefId: string;
1493
1494
  contentUnitId: string;
1494
1495
  segmentId: string;
1495
- polyglotRefId: string;
1496
1496
  details?: Record<string, unknown> | undefined;
1497
1497
  }[] | undefined;
1498
1498
  }, {
@@ -1511,9 +1511,9 @@ export declare const REWRITE_TEXT_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion
1511
1511
  message: string;
1512
1512
  errorCode: string;
1513
1513
  integration: string;
1514
+ polyglotRefId: string;
1514
1515
  contentUnitId: string;
1515
1516
  segmentId: string;
1516
- polyglotRefId: string;
1517
1517
  details?: Record<string, unknown> | undefined;
1518
1518
  }[] | undefined;
1519
1519
  }>, z.ZodObject<{