@lokalise/polyglot-sdk 20.0.0 → 20.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/sdk/schemas/common/commonSchemas.d.ts +20 -21
  5. package/dist/sdk/schemas/common/commonSchemas.js +16 -18
  6. package/dist/sdk/schemas/common/commonSchemas.js.map +1 -1
  7. package/dist/sdk/schemas/common/translationContextSchemas.d.ts +32 -32
  8. package/dist/sdk/schemas/common/translationContextSchemas.js +2 -0
  9. package/dist/sdk/schemas/common/translationContextSchemas.js.map +1 -1
  10. package/dist/sdk/schemas/lqa/lqaAsyncSchemas.d.ts +108 -89
  11. package/dist/sdk/schemas/lqa/lqaAsyncSchemas.js +3 -2
  12. package/dist/sdk/schemas/lqa/lqaAsyncSchemas.js.map +1 -1
  13. package/dist/sdk/schemas/lqa/lqaSyncSchemas.d.ts +100 -91
  14. package/dist/sdk/schemas/lqa/lqaSyncSchemas.js +3 -2
  15. package/dist/sdk/schemas/lqa/lqaSyncSchemas.js.map +1 -1
  16. package/dist/sdk/schemas/translation/generateVariants.d.ts +63 -64
  17. package/dist/sdk/schemas/translation/rewriteTextSchemas.d.ts +155 -157
  18. package/dist/sdk/schemas/translation/rewriteTextSchemas.js +2 -2
  19. package/dist/sdk/schemas/translation/rewriteTextSchemas.js.map +1 -1
  20. package/dist/sdk/schemas/translation/sharedSchemas.d.ts +257 -58
  21. package/dist/sdk/schemas/translation/sharedSchemas.js +25 -15
  22. package/dist/sdk/schemas/translation/sharedSchemas.js.map +1 -1
  23. package/dist/sdk/schemas/translation/translateAsyncSchemas.d.ts +334 -335
  24. package/dist/sdk/schemas/translation/translateAsyncSchemas.js +2 -2
  25. package/dist/sdk/schemas/translation/translateAsyncSchemas.js.map +1 -1
  26. package/dist/sdk/schemas/translation/translateSyncSchemas.d.ts +491 -254
  27. package/dist/sdk/schemas/translation/translateSyncSchemas.js +11 -3
  28. package/dist/sdk/schemas/translation/translateSyncSchemas.js.map +1 -1
  29. package/dist/sdk/schemas/translation/translateTextSegmentSchemas.d.ts +425 -68
  30. package/dist/sdk/schemas/translation/translateTextSegmentSchemas.js +25 -7
  31. package/dist/sdk/schemas/translation/translateTextSegmentSchemas.js.map +1 -1
  32. package/package.json +9 -9
@@ -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,25 +319,20 @@ 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;
330
- integration: z.ZodOptional<z.ZodEffects<z.ZodNativeEnum<{
331
- CHAT_GPT4: "ChatGPT-4";
332
- FINETUNED_OPENAI: "FT-OpenAI";
333
- CLAUDE: "Claude";
334
- GPT: "GPT";
335
- GEMINI: "Gemini";
336
- }>, "FT-OpenAI" | "Claude" | "GPT" | "Gemini", "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4">>;
330
+ integration: z.ZodOptional<z.ZodNativeEnum<{
331
+ readonly FINETUNED_OPENAI: "FT-OpenAI";
332
+ readonly CLAUDE: "Claude";
333
+ readonly GPT: "GPT";
334
+ readonly GEMINI: "Gemini";
335
+ }>>;
337
336
  forceIntegration: z.ZodOptional<z.ZodBoolean>;
338
337
  history: z.ZodOptional<z.ZodArray<z.ZodObject<{
339
338
  values: z.ZodArray<z.ZodString, "atleastone">;
@@ -354,9 +353,13 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
354
353
  }>>;
355
354
  }, "strip", z.ZodTypeAny, {
356
355
  value: string;
357
- locale: string;
358
356
  mode: "rephrase" | "shorten";
357
+ locale: string;
359
358
  context?: {
359
+ translationExamples?: {
360
+ sourceValue: string;
361
+ translatedValue: string;
362
+ }[] | undefined;
360
363
  description?: string | undefined;
361
364
  styleGuide?: {
362
365
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -373,18 +376,18 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
373
376
  caseSensitive: boolean;
374
377
  description?: string | undefined;
375
378
  translations?: {
376
- locale: string;
377
379
  translation: string;
380
+ locale: string;
378
381
  description?: string | undefined;
379
382
  }[] | undefined;
380
383
  }[] | undefined;
384
+ } | undefined;
385
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
386
+ assets?: {
381
387
  translationExamples?: {
382
388
  sourceValue: string;
383
389
  translatedValue: string;
384
390
  }[] | undefined;
385
- } | undefined;
386
- integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
387
- assets?: {
388
391
  description?: string | undefined;
389
392
  styleGuide?: {
390
393
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -401,15 +404,11 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
401
404
  caseSensitive: boolean;
402
405
  description?: string | undefined;
403
406
  translations?: {
404
- locale: string;
405
407
  translation: string;
408
+ locale: string;
406
409
  description?: string | undefined;
407
410
  }[] | undefined;
408
411
  }[] | undefined;
409
- translationExamples?: {
410
- sourceValue: string;
411
- translatedValue: string;
412
- }[] | undefined;
413
412
  } | undefined;
414
413
  forceIntegration?: boolean | undefined;
415
414
  history?: {
@@ -418,9 +417,13 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
418
417
  }[] | undefined;
419
418
  }, {
420
419
  value: string;
421
- locale: string;
422
420
  mode: string;
421
+ locale: string;
423
422
  context?: {
423
+ translationExamples?: {
424
+ sourceValue: string;
425
+ translatedValue: string;
426
+ }[] | undefined;
424
427
  description?: string | undefined;
425
428
  styleGuide?: {
426
429
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -437,18 +440,18 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
437
440
  forbidden?: boolean | undefined;
438
441
  caseSensitive?: boolean | undefined;
439
442
  translations?: {
440
- locale: string;
441
443
  translation: string;
444
+ locale: string;
442
445
  description?: string | undefined;
443
446
  }[] | undefined;
444
447
  }[] | undefined;
448
+ } | undefined;
449
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
450
+ assets?: {
445
451
  translationExamples?: {
446
452
  sourceValue: string;
447
453
  translatedValue: string;
448
454
  }[] | undefined;
449
- } | undefined;
450
- integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
451
- assets?: {
452
455
  description?: string | undefined;
453
456
  styleGuide?: {
454
457
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -465,15 +468,11 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
465
468
  forbidden?: boolean | undefined;
466
469
  caseSensitive?: boolean | undefined;
467
470
  translations?: {
468
- locale: string;
469
471
  translation: string;
472
+ locale: string;
470
473
  description?: string | undefined;
471
474
  }[] | undefined;
472
475
  }[] | undefined;
473
- translationExamples?: {
474
- sourceValue: string;
475
- translatedValue: string;
476
- }[] | undefined;
477
476
  } | undefined;
478
477
  forceIntegration?: boolean | undefined;
479
478
  history?: {
@@ -482,9 +481,13 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
482
481
  }[] | undefined;
483
482
  }>, {
484
483
  value: string;
485
- locale: string;
486
484
  mode: "rephrase" | "shorten";
485
+ locale: string;
487
486
  context?: {
487
+ translationExamples?: {
488
+ sourceValue: string;
489
+ translatedValue: string;
490
+ }[] | undefined;
488
491
  description?: string | undefined;
489
492
  styleGuide?: {
490
493
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -501,18 +504,18 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
501
504
  caseSensitive: boolean;
502
505
  description?: string | undefined;
503
506
  translations?: {
504
- locale: string;
505
507
  translation: string;
508
+ locale: string;
506
509
  description?: string | undefined;
507
510
  }[] | undefined;
508
511
  }[] | undefined;
512
+ } | undefined;
513
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
514
+ assets?: {
509
515
  translationExamples?: {
510
516
  sourceValue: string;
511
517
  translatedValue: string;
512
518
  }[] | undefined;
513
- } | undefined;
514
- integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
515
- assets?: {
516
519
  description?: string | undefined;
517
520
  styleGuide?: {
518
521
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -529,15 +532,11 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
529
532
  caseSensitive: boolean;
530
533
  description?: string | undefined;
531
534
  translations?: {
532
- locale: string;
533
535
  translation: string;
536
+ locale: string;
534
537
  description?: string | undefined;
535
538
  }[] | undefined;
536
539
  }[] | undefined;
537
- translationExamples?: {
538
- sourceValue: string;
539
- translatedValue: string;
540
- }[] | undefined;
541
540
  } | undefined;
542
541
  forceIntegration?: boolean | undefined;
543
542
  history?: {
@@ -546,9 +545,13 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
546
545
  }[] | undefined;
547
546
  }, {
548
547
  value: string;
549
- locale: string;
550
548
  mode: string;
549
+ locale: string;
551
550
  context?: {
551
+ translationExamples?: {
552
+ sourceValue: string;
553
+ translatedValue: string;
554
+ }[] | undefined;
552
555
  description?: string | undefined;
553
556
  styleGuide?: {
554
557
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -565,18 +568,18 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
565
568
  forbidden?: boolean | undefined;
566
569
  caseSensitive?: boolean | undefined;
567
570
  translations?: {
568
- locale: string;
569
571
  translation: string;
572
+ locale: string;
570
573
  description?: string | undefined;
571
574
  }[] | undefined;
572
575
  }[] | undefined;
576
+ } | undefined;
577
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
578
+ assets?: {
573
579
  translationExamples?: {
574
580
  sourceValue: string;
575
581
  translatedValue: string;
576
582
  }[] | undefined;
577
- } | undefined;
578
- integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
579
- assets?: {
580
583
  description?: string | undefined;
581
584
  styleGuide?: {
582
585
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -593,15 +596,11 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
593
596
  forbidden?: boolean | undefined;
594
597
  caseSensitive?: boolean | undefined;
595
598
  translations?: {
596
- locale: string;
597
599
  translation: string;
600
+ locale: string;
598
601
  description?: string | undefined;
599
602
  }[] | undefined;
600
603
  }[] | undefined;
601
- translationExamples?: {
602
- sourceValue: string;
603
- translatedValue: string;
604
- }[] | undefined;
605
604
  } | undefined;
606
605
  forceIntegration?: boolean | undefined;
607
606
  history?: {
@@ -610,9 +609,13 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
610
609
  }[] | undefined;
611
610
  }>, {
612
611
  value: string;
613
- locale: string;
614
612
  mode: "rephrase" | "shorten";
613
+ locale: string;
615
614
  context?: {
615
+ translationExamples?: {
616
+ sourceValue: string;
617
+ translatedValue: string;
618
+ }[] | undefined;
616
619
  description?: string | undefined;
617
620
  styleGuide?: {
618
621
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -629,18 +632,18 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
629
632
  caseSensitive: boolean;
630
633
  description?: string | undefined;
631
634
  translations?: {
632
- locale: string;
633
635
  translation: string;
636
+ locale: string;
634
637
  description?: string | undefined;
635
638
  }[] | undefined;
636
639
  }[] | undefined;
640
+ } | undefined;
641
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
642
+ assets?: {
637
643
  translationExamples?: {
638
644
  sourceValue: string;
639
645
  translatedValue: string;
640
646
  }[] | undefined;
641
- } | undefined;
642
- integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
643
- assets?: {
644
647
  description?: string | undefined;
645
648
  styleGuide?: {
646
649
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -657,15 +660,11 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
657
660
  caseSensitive: boolean;
658
661
  description?: string | undefined;
659
662
  translations?: {
660
- locale: string;
661
663
  translation: string;
664
+ locale: string;
662
665
  description?: string | undefined;
663
666
  }[] | undefined;
664
667
  }[] | undefined;
665
- translationExamples?: {
666
- sourceValue: string;
667
- translatedValue: string;
668
- }[] | undefined;
669
668
  } | undefined;
670
669
  forceIntegration?: boolean | undefined;
671
670
  history?: {
@@ -674,9 +673,13 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
674
673
  }[] | undefined;
675
674
  }, {
676
675
  value: string;
677
- locale: string;
678
676
  mode: string;
677
+ locale: string;
679
678
  context?: {
679
+ translationExamples?: {
680
+ sourceValue: string;
681
+ translatedValue: string;
682
+ }[] | undefined;
680
683
  description?: string | undefined;
681
684
  styleGuide?: {
682
685
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -693,18 +696,18 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
693
696
  forbidden?: boolean | undefined;
694
697
  caseSensitive?: boolean | undefined;
695
698
  translations?: {
696
- locale: string;
697
699
  translation: string;
700
+ locale: string;
698
701
  description?: string | undefined;
699
702
  }[] | undefined;
700
703
  }[] | undefined;
704
+ } | undefined;
705
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
706
+ assets?: {
701
707
  translationExamples?: {
702
708
  sourceValue: string;
703
709
  translatedValue: string;
704
710
  }[] | undefined;
705
- } | undefined;
706
- integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
707
- assets?: {
708
711
  description?: string | undefined;
709
712
  styleGuide?: {
710
713
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -721,15 +724,11 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
721
724
  forbidden?: boolean | undefined;
722
725
  caseSensitive?: boolean | undefined;
723
726
  translations?: {
724
- locale: string;
725
727
  translation: string;
728
+ locale: string;
726
729
  description?: string | undefined;
727
730
  }[] | undefined;
728
731
  }[] | undefined;
729
- translationExamples?: {
730
- sourceValue: string;
731
- translatedValue: string;
732
- }[] | undefined;
733
732
  } | undefined;
734
733
  forceIntegration?: boolean | undefined;
735
734
  history?: {
@@ -773,13 +772,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
773
772
  callbackToken: z.ZodString;
774
773
  } & {
775
774
  locale: z.ZodEffects<z.ZodString, string, string>;
776
- integration: z.ZodOptional<z.ZodEffects<z.ZodNativeEnum<{
777
- CHAT_GPT4: "ChatGPT-4";
778
- FINETUNED_OPENAI: "FT-OpenAI";
779
- CLAUDE: "Claude";
780
- GPT: "GPT";
781
- GEMINI: "Gemini";
782
- }>, "FT-OpenAI" | "Claude" | "GPT" | "Gemini", "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4">>;
775
+ integration: z.ZodOptional<z.ZodNativeEnum<{
776
+ readonly FINETUNED_OPENAI: "FT-OpenAI";
777
+ readonly CLAUDE: "Claude";
778
+ readonly GPT: "GPT";
779
+ readonly GEMINI: "Gemini";
780
+ }>>;
783
781
  context: z.ZodOptional<z.ZodObject<Omit<{
784
782
  description: z.ZodOptional<z.ZodString>;
785
783
  styleGuide: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -825,12 +823,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
825
823
  translation: z.ZodString;
826
824
  description: z.ZodOptional<z.ZodString>;
827
825
  }, "strip", z.ZodTypeAny, {
828
- locale: string;
829
826
  translation: string;
827
+ locale: string;
830
828
  description?: string | undefined;
831
829
  }, {
832
- locale: string;
833
830
  translation: string;
831
+ locale: string;
834
832
  description?: string | undefined;
835
833
  }>, "many">>;
836
834
  }, "strip", z.ZodTypeAny, {
@@ -840,8 +838,8 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
840
838
  caseSensitive: boolean;
841
839
  description?: string | undefined;
842
840
  translations?: {
843
- locale: string;
844
841
  translation: string;
842
+ locale: string;
845
843
  description?: string | undefined;
846
844
  }[] | undefined;
847
845
  }, {
@@ -851,8 +849,8 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
851
849
  forbidden?: boolean | undefined;
852
850
  caseSensitive?: boolean | undefined;
853
851
  translations?: {
854
- locale: string;
855
852
  translation: string;
853
+ locale: string;
856
854
  description?: string | undefined;
857
855
  }[] | undefined;
858
856
  }>, {
@@ -862,8 +860,8 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
862
860
  caseSensitive: boolean;
863
861
  description?: string | undefined;
864
862
  translations?: {
865
- locale: string;
866
863
  translation: string;
864
+ locale: string;
867
865
  description?: string | undefined;
868
866
  }[] | undefined;
869
867
  }, {
@@ -873,8 +871,8 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
873
871
  forbidden?: boolean | undefined;
874
872
  caseSensitive?: boolean | undefined;
875
873
  translations?: {
876
- locale: string;
877
874
  translation: string;
875
+ locale: string;
878
876
  description?: string | undefined;
879
877
  }[] | undefined;
880
878
  }>, "many">>;
@@ -890,6 +888,10 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
890
888
  translatedValue: string;
891
889
  }>, "many">>;
892
890
  }, "targetPluralForms">, "strip", z.ZodTypeAny, {
891
+ translationExamples?: {
892
+ sourceValue: string;
893
+ translatedValue: string;
894
+ }[] | undefined;
893
895
  description?: string | undefined;
894
896
  styleGuide?: {
895
897
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -906,16 +908,16 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
906
908
  caseSensitive: boolean;
907
909
  description?: string | undefined;
908
910
  translations?: {
909
- locale: string;
910
911
  translation: string;
912
+ locale: string;
911
913
  description?: string | undefined;
912
914
  }[] | undefined;
913
915
  }[] | undefined;
916
+ }, {
914
917
  translationExamples?: {
915
918
  sourceValue: string;
916
919
  translatedValue: string;
917
920
  }[] | undefined;
918
- }, {
919
921
  description?: string | undefined;
920
922
  styleGuide?: {
921
923
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -932,15 +934,11 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
932
934
  forbidden?: boolean | undefined;
933
935
  caseSensitive?: boolean | undefined;
934
936
  translations?: {
935
- locale: string;
936
937
  translation: string;
938
+ locale: string;
937
939
  description?: string | undefined;
938
940
  }[] | undefined;
939
941
  }[] | undefined;
940
- translationExamples?: {
941
- sourceValue: string;
942
- translatedValue: string;
943
- }[] | undefined;
944
942
  }>>;
945
943
  contentUnits: z.ZodEffects<z.ZodArray<z.ZodObject<{
946
944
  id: z.ZodString;
@@ -975,7 +973,6 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
975
973
  id: string;
976
974
  }[]]>;
977
975
  }, "strip", z.ZodTypeAny, {
978
- id: string;
979
976
  segments: [{
980
977
  value: string;
981
978
  id: string;
@@ -983,12 +980,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
983
980
  value: string;
984
981
  id: string;
985
982
  }[]];
983
+ id: string;
986
984
  context?: {
987
985
  description: string;
988
986
  } | undefined;
989
987
  characterLimit?: number | undefined;
990
988
  }, {
991
- id: string;
992
989
  segments: [{
993
990
  value: string;
994
991
  id: string;
@@ -996,12 +993,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
996
993
  value: string;
997
994
  id: string;
998
995
  }[]];
996
+ id: string;
999
997
  context?: {
1000
998
  description: string;
1001
999
  } | undefined;
1002
1000
  characterLimit?: number | undefined;
1003
1001
  }>, "atleastone">, [{
1004
- id: string;
1005
1002
  segments: [{
1006
1003
  value: string;
1007
1004
  id: string;
@@ -1009,12 +1006,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1009
1006
  value: string;
1010
1007
  id: string;
1011
1008
  }[]];
1009
+ id: string;
1012
1010
  context?: {
1013
1011
  description: string;
1014
1012
  } | undefined;
1015
1013
  characterLimit?: number | undefined;
1016
1014
  }, ...{
1017
- id: string;
1018
1015
  segments: [{
1019
1016
  value: string;
1020
1017
  id: string;
@@ -1022,12 +1019,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1022
1019
  value: string;
1023
1020
  id: string;
1024
1021
  }[]];
1022
+ id: string;
1025
1023
  context?: {
1026
1024
  description: string;
1027
1025
  } | undefined;
1028
1026
  characterLimit?: number | undefined;
1029
1027
  }[]], [{
1030
- id: string;
1031
1028
  segments: [{
1032
1029
  value: string;
1033
1030
  id: string;
@@ -1035,12 +1032,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1035
1032
  value: string;
1036
1033
  id: string;
1037
1034
  }[]];
1035
+ id: string;
1038
1036
  context?: {
1039
1037
  description: string;
1040
1038
  } | undefined;
1041
1039
  characterLimit?: number | undefined;
1042
1040
  }, ...{
1043
- id: string;
1044
1041
  segments: [{
1045
1042
  value: string;
1046
1043
  id: string;
@@ -1048,6 +1045,7 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1048
1045
  value: string;
1049
1046
  id: string;
1050
1047
  }[]];
1048
+ id: string;
1051
1049
  context?: {
1052
1050
  description: string;
1053
1051
  } | undefined;
@@ -1060,7 +1058,6 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1060
1058
  callbackToken: string;
1061
1059
  locale: string;
1062
1060
  contentUnits: [{
1063
- id: string;
1064
1061
  segments: [{
1065
1062
  value: string;
1066
1063
  id: string;
@@ -1068,12 +1065,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1068
1065
  value: string;
1069
1066
  id: string;
1070
1067
  }[]];
1068
+ id: string;
1071
1069
  context?: {
1072
1070
  description: string;
1073
1071
  } | undefined;
1074
1072
  characterLimit?: number | undefined;
1075
1073
  }, ...{
1076
- id: string;
1077
1074
  segments: [{
1078
1075
  value: string;
1079
1076
  id: string;
@@ -1081,12 +1078,17 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1081
1078
  value: string;
1082
1079
  id: string;
1083
1080
  }[]];
1081
+ id: string;
1084
1082
  context?: {
1085
1083
  description: string;
1086
1084
  } | undefined;
1087
1085
  characterLimit?: number | undefined;
1088
1086
  }[]];
1089
1087
  context?: {
1088
+ translationExamples?: {
1089
+ sourceValue: string;
1090
+ translatedValue: string;
1091
+ }[] | undefined;
1090
1092
  description?: string | undefined;
1091
1093
  styleGuide?: {
1092
1094
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -1103,15 +1105,11 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1103
1105
  caseSensitive: boolean;
1104
1106
  description?: string | undefined;
1105
1107
  translations?: {
1106
- locale: string;
1107
1108
  translation: string;
1109
+ locale: string;
1108
1110
  description?: string | undefined;
1109
1111
  }[] | undefined;
1110
1112
  }[] | undefined;
1111
- translationExamples?: {
1112
- sourceValue: string;
1113
- translatedValue: string;
1114
- }[] | undefined;
1115
1113
  } | undefined;
1116
1114
  integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
1117
1115
  }, {
@@ -1121,7 +1119,6 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1121
1119
  callbackToken: string;
1122
1120
  locale: string;
1123
1121
  contentUnits: [{
1124
- id: string;
1125
1122
  segments: [{
1126
1123
  value: string;
1127
1124
  id: string;
@@ -1129,12 +1126,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1129
1126
  value: string;
1130
1127
  id: string;
1131
1128
  }[]];
1129
+ id: string;
1132
1130
  context?: {
1133
1131
  description: string;
1134
1132
  } | undefined;
1135
1133
  characterLimit?: number | undefined;
1136
1134
  }, ...{
1137
- id: string;
1138
1135
  segments: [{
1139
1136
  value: string;
1140
1137
  id: string;
@@ -1142,12 +1139,17 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1142
1139
  value: string;
1143
1140
  id: string;
1144
1141
  }[]];
1142
+ id: string;
1145
1143
  context?: {
1146
1144
  description: string;
1147
1145
  } | undefined;
1148
1146
  characterLimit?: number | undefined;
1149
1147
  }[]];
1150
1148
  context?: {
1149
+ translationExamples?: {
1150
+ sourceValue: string;
1151
+ translatedValue: string;
1152
+ }[] | undefined;
1151
1153
  description?: string | undefined;
1152
1154
  styleGuide?: {
1153
1155
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -1164,17 +1166,13 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1164
1166
  forbidden?: boolean | undefined;
1165
1167
  caseSensitive?: boolean | undefined;
1166
1168
  translations?: {
1167
- locale: string;
1168
1169
  translation: string;
1170
+ locale: string;
1169
1171
  description?: string | undefined;
1170
1172
  }[] | undefined;
1171
1173
  }[] | undefined;
1172
- translationExamples?: {
1173
- sourceValue: string;
1174
- translatedValue: string;
1175
- }[] | undefined;
1176
1174
  } | undefined;
1177
- integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
1175
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
1178
1176
  }>, {
1179
1177
  originCorrelationId: string;
1180
1178
  ownerId: string;
@@ -1182,7 +1180,6 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1182
1180
  callbackToken: string;
1183
1181
  locale: string;
1184
1182
  contentUnits: [{
1185
- id: string;
1186
1183
  segments: [{
1187
1184
  value: string;
1188
1185
  id: string;
@@ -1190,12 +1187,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1190
1187
  value: string;
1191
1188
  id: string;
1192
1189
  }[]];
1190
+ id: string;
1193
1191
  context?: {
1194
1192
  description: string;
1195
1193
  } | undefined;
1196
1194
  characterLimit?: number | undefined;
1197
1195
  }, ...{
1198
- id: string;
1199
1196
  segments: [{
1200
1197
  value: string;
1201
1198
  id: string;
@@ -1203,12 +1200,17 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1203
1200
  value: string;
1204
1201
  id: string;
1205
1202
  }[]];
1203
+ id: string;
1206
1204
  context?: {
1207
1205
  description: string;
1208
1206
  } | undefined;
1209
1207
  characterLimit?: number | undefined;
1210
1208
  }[]];
1211
1209
  context?: {
1210
+ translationExamples?: {
1211
+ sourceValue: string;
1212
+ translatedValue: string;
1213
+ }[] | undefined;
1212
1214
  description?: string | undefined;
1213
1215
  styleGuide?: {
1214
1216
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -1225,15 +1227,11 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1225
1227
  caseSensitive: boolean;
1226
1228
  description?: string | undefined;
1227
1229
  translations?: {
1228
- locale: string;
1229
1230
  translation: string;
1231
+ locale: string;
1230
1232
  description?: string | undefined;
1231
1233
  }[] | undefined;
1232
1234
  }[] | undefined;
1233
- translationExamples?: {
1234
- sourceValue: string;
1235
- translatedValue: string;
1236
- }[] | undefined;
1237
1235
  } | undefined;
1238
1236
  integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
1239
1237
  }, {
@@ -1243,7 +1241,6 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1243
1241
  callbackToken: string;
1244
1242
  locale: string;
1245
1243
  contentUnits: [{
1246
- id: string;
1247
1244
  segments: [{
1248
1245
  value: string;
1249
1246
  id: string;
@@ -1251,12 +1248,12 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1251
1248
  value: string;
1252
1249
  id: string;
1253
1250
  }[]];
1251
+ id: string;
1254
1252
  context?: {
1255
1253
  description: string;
1256
1254
  } | undefined;
1257
1255
  characterLimit?: number | undefined;
1258
1256
  }, ...{
1259
- id: string;
1260
1257
  segments: [{
1261
1258
  value: string;
1262
1259
  id: string;
@@ -1264,12 +1261,17 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1264
1261
  value: string;
1265
1262
  id: string;
1266
1263
  }[]];
1264
+ id: string;
1267
1265
  context?: {
1268
1266
  description: string;
1269
1267
  } | undefined;
1270
1268
  characterLimit?: number | undefined;
1271
1269
  }[]];
1272
1270
  context?: {
1271
+ translationExamples?: {
1272
+ sourceValue: string;
1273
+ translatedValue: string;
1274
+ }[] | undefined;
1273
1275
  description?: string | undefined;
1274
1276
  styleGuide?: {
1275
1277
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -1286,17 +1288,13 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
1286
1288
  forbidden?: boolean | undefined;
1287
1289
  caseSensitive?: boolean | undefined;
1288
1290
  translations?: {
1289
- locale: string;
1290
1291
  translation: string;
1292
+ locale: string;
1291
1293
  description?: string | undefined;
1292
1294
  }[] | undefined;
1293
1295
  }[] | undefined;
1294
- translationExamples?: {
1295
- sourceValue: string;
1296
- translatedValue: string;
1297
- }[] | undefined;
1298
1296
  } | undefined;
1299
- integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
1297
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
1300
1298
  }>;
1301
1299
  export declare const REWRITE_TEXT_ASYNC_HEADERS_SCHEMA: z.ZodObject<{
1302
1300
  'x-fake-processing': z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
@@ -1360,17 +1358,17 @@ export declare const REWRITE_TEXT_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
1360
1358
  message: string;
1361
1359
  errorCode: string;
1362
1360
  integration: string;
1361
+ polyglotRefId: string;
1363
1362
  contentUnitId: string;
1364
1363
  segmentId: string;
1365
- polyglotRefId: string;
1366
1364
  details?: Record<string, unknown> | undefined;
1367
1365
  }, {
1368
1366
  message: string;
1369
1367
  errorCode: string;
1370
1368
  integration: string;
1369
+ polyglotRefId: string;
1371
1370
  contentUnitId: string;
1372
1371
  segmentId: string;
1373
- polyglotRefId: string;
1374
1372
  details?: Record<string, unknown> | undefined;
1375
1373
  }>, "many">>;
1376
1374
  }, "strip", z.ZodTypeAny, {
@@ -1389,9 +1387,9 @@ export declare const REWRITE_TEXT_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
1389
1387
  message: string;
1390
1388
  errorCode: string;
1391
1389
  integration: string;
1390
+ polyglotRefId: string;
1392
1391
  contentUnitId: string;
1393
1392
  segmentId: string;
1394
- polyglotRefId: string;
1395
1393
  details?: Record<string, unknown> | undefined;
1396
1394
  }[] | undefined;
1397
1395
  }, {
@@ -1410,9 +1408,9 @@ export declare const REWRITE_TEXT_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
1410
1408
  message: string;
1411
1409
  errorCode: string;
1412
1410
  integration: string;
1411
+ polyglotRefId: string;
1413
1412
  contentUnitId: string;
1414
1413
  segmentId: string;
1415
- polyglotRefId: string;
1416
1414
  details?: Record<string, unknown> | undefined;
1417
1415
  }[] | undefined;
1418
1416
  }>;
@@ -1461,17 +1459,17 @@ export declare const REWRITE_TEXT_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion
1461
1459
  message: string;
1462
1460
  errorCode: string;
1463
1461
  integration: string;
1462
+ polyglotRefId: string;
1464
1463
  contentUnitId: string;
1465
1464
  segmentId: string;
1466
- polyglotRefId: string;
1467
1465
  details?: Record<string, unknown> | undefined;
1468
1466
  }, {
1469
1467
  message: string;
1470
1468
  errorCode: string;
1471
1469
  integration: string;
1470
+ polyglotRefId: string;
1472
1471
  contentUnitId: string;
1473
1472
  segmentId: string;
1474
- polyglotRefId: string;
1475
1473
  details?: Record<string, unknown> | undefined;
1476
1474
  }>, "many">>;
1477
1475
  }, "strip", z.ZodTypeAny, {
@@ -1490,9 +1488,9 @@ export declare const REWRITE_TEXT_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion
1490
1488
  message: string;
1491
1489
  errorCode: string;
1492
1490
  integration: string;
1491
+ polyglotRefId: string;
1493
1492
  contentUnitId: string;
1494
1493
  segmentId: string;
1495
- polyglotRefId: string;
1496
1494
  details?: Record<string, unknown> | undefined;
1497
1495
  }[] | undefined;
1498
1496
  }, {
@@ -1511,9 +1509,9 @@ export declare const REWRITE_TEXT_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion
1511
1509
  message: string;
1512
1510
  errorCode: string;
1513
1511
  integration: string;
1512
+ polyglotRefId: string;
1514
1513
  contentUnitId: string;
1515
1514
  segmentId: string;
1516
- polyglotRefId: string;
1517
1515
  details?: Record<string, unknown> | undefined;
1518
1516
  }[] | undefined;
1519
1517
  }>, z.ZodObject<{