@lokalise/polyglot-sdk 6.0.1 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/index.js +5 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/sdk/PolyglotClient.d.ts +4 -8
  5. package/dist/sdk/PolyglotClient.js +3 -21
  6. package/dist/sdk/PolyglotClient.js.map +1 -1
  7. package/dist/sdk/schemas/common/asyncRequestSchemas.d.ts +25 -0
  8. package/dist/sdk/schemas/common/asyncRequestSchemas.js +37 -0
  9. package/dist/sdk/schemas/common/asyncRequestSchemas.js.map +1 -0
  10. package/dist/sdk/schemas/common/commonSchemas.d.ts +68 -0
  11. package/dist/sdk/schemas/common/commonSchemas.js +61 -0
  12. package/dist/sdk/schemas/common/commonSchemas.js.map +1 -0
  13. package/dist/sdk/schemas/common/requestContextSchemas.d.ts +278 -0
  14. package/dist/sdk/schemas/common/requestContextSchemas.js +85 -0
  15. package/dist/sdk/schemas/common/requestContextSchemas.js.map +1 -0
  16. package/dist/sdk/schemas/translation/sharedSchemas.d.ts +4 -0
  17. package/dist/sdk/schemas/translation/sharedSchemas.js +10 -0
  18. package/dist/sdk/schemas/translation/sharedSchemas.js.map +1 -0
  19. package/dist/sdk/schemas/translation/syncTranslationV2Schemas.d.ts +707 -0
  20. package/dist/sdk/schemas/translation/syncTranslationV2Schemas.js +65 -0
  21. package/dist/sdk/schemas/translation/syncTranslationV2Schemas.js.map +1 -0
  22. package/dist/sdk/types/requests.d.ts +2 -0
  23. package/package.json +11 -10
  24. package/dist/sdk/polyglotChunkHandler.d.ts +0 -7
  25. package/dist/sdk/polyglotChunkHandler.js +0 -48
  26. package/dist/sdk/polyglotChunkHandler.js.map +0 -1
  27. package/dist/sdk/segmentUtils.d.ts +0 -2
  28. package/dist/sdk/segmentUtils.js +0 -13
  29. package/dist/sdk/segmentUtils.js.map +0 -1
@@ -0,0 +1,707 @@
1
+ import z from 'zod';
2
+ export declare const SYNC_TRANSLATION_V2_SEGMENT_SCHEMA: z.ZodObject<{
3
+ id: z.ZodString;
4
+ tmMatch: z.ZodOptional<z.ZodObject<{
5
+ sourceValue: z.ZodString;
6
+ translatedValue: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ sourceValue: string;
9
+ translatedValue: string;
10
+ }, {
11
+ sourceValue: string;
12
+ translatedValue: string;
13
+ }>>;
14
+ value: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ value: string;
17
+ id: string;
18
+ tmMatch?: {
19
+ sourceValue: string;
20
+ translatedValue: string;
21
+ } | undefined;
22
+ }, {
23
+ value: string;
24
+ id: string;
25
+ tmMatch?: {
26
+ sourceValue: string;
27
+ translatedValue: string;
28
+ } | undefined;
29
+ }>;
30
+ export declare const SYNC_TRANSLATION_V2_CONTENT_UNIT_SCHEMA: z.ZodObject<{
31
+ id: z.ZodString;
32
+ context: z.ZodOptional<z.ZodObject<{
33
+ description: z.ZodString;
34
+ }, "strip", z.ZodTypeAny, {
35
+ description: string;
36
+ }, {
37
+ description: string;
38
+ }>>;
39
+ characterLimit: z.ZodOptional<z.ZodNumber>;
40
+ segments: z.ZodArray<z.ZodObject<{
41
+ id: z.ZodString;
42
+ tmMatch: z.ZodOptional<z.ZodObject<{
43
+ sourceValue: z.ZodString;
44
+ translatedValue: z.ZodString;
45
+ }, "strip", z.ZodTypeAny, {
46
+ sourceValue: string;
47
+ translatedValue: string;
48
+ }, {
49
+ sourceValue: string;
50
+ translatedValue: string;
51
+ }>>;
52
+ value: z.ZodString;
53
+ }, "strip", z.ZodTypeAny, {
54
+ value: string;
55
+ id: string;
56
+ tmMatch?: {
57
+ sourceValue: string;
58
+ translatedValue: string;
59
+ } | undefined;
60
+ }, {
61
+ value: string;
62
+ id: string;
63
+ tmMatch?: {
64
+ sourceValue: string;
65
+ translatedValue: string;
66
+ } | undefined;
67
+ }>, "atleastone">;
68
+ }, "strip", z.ZodTypeAny, {
69
+ id: string;
70
+ segments: [{
71
+ value: string;
72
+ id: string;
73
+ tmMatch?: {
74
+ sourceValue: string;
75
+ translatedValue: string;
76
+ } | undefined;
77
+ }, ...{
78
+ value: string;
79
+ id: string;
80
+ tmMatch?: {
81
+ sourceValue: string;
82
+ translatedValue: string;
83
+ } | undefined;
84
+ }[]];
85
+ context?: {
86
+ description: string;
87
+ } | undefined;
88
+ characterLimit?: number | undefined;
89
+ }, {
90
+ id: string;
91
+ segments: [{
92
+ value: string;
93
+ id: string;
94
+ tmMatch?: {
95
+ sourceValue: string;
96
+ translatedValue: string;
97
+ } | undefined;
98
+ }, ...{
99
+ value: string;
100
+ id: string;
101
+ tmMatch?: {
102
+ sourceValue: string;
103
+ translatedValue: string;
104
+ } | undefined;
105
+ }[]];
106
+ context?: {
107
+ description: string;
108
+ } | undefined;
109
+ characterLimit?: number | undefined;
110
+ }>;
111
+ export declare const SYNC_TRANSLATION_V2_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
112
+ sourceLocale: z.ZodEffects<z.ZodString, string, string>;
113
+ targetLocale: z.ZodEffects<z.ZodString, string, string>;
114
+ integration: z.ZodOptional<z.ZodNativeEnum<{
115
+ readonly CLAUDE: "Claude";
116
+ readonly CHAT_GPT4: "ChatGPT-4";
117
+ readonly GEMINI: "Gemini";
118
+ readonly DEEPL: "DeepL";
119
+ readonly GOOGLE_TRANSLATE: "GoogleTranslate";
120
+ readonly MICROSOFT_TRANSLATOR: "MicrosoftTranslator";
121
+ }>>;
122
+ context: z.ZodOptional<z.ZodObject<{
123
+ description: z.ZodOptional<z.ZodString>;
124
+ styleGuide: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
125
+ text: z.ZodString;
126
+ }, "strip", z.ZodTypeAny, {
127
+ text: string;
128
+ }, {
129
+ text: string;
130
+ }>, z.ZodEffects<z.ZodObject<{
131
+ targetAudience: z.ZodOptional<z.ZodEnum<["general", "technical", "non-technical"]>>;
132
+ toneOfVoice: z.ZodOptional<z.ZodEnum<["friendly", "empowering", "informative", "supportive", "elegant"]>>;
133
+ levelOfFormality: z.ZodOptional<z.ZodEnum<["informal", "formal", "neutral"]>>;
134
+ generalRule: z.ZodOptional<z.ZodEnum<["active-voice", "passive-voice"]>>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
137
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
138
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
139
+ generalRule?: "active-voice" | "passive-voice" | undefined;
140
+ }, {
141
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
142
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
143
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
144
+ generalRule?: "active-voice" | "passive-voice" | undefined;
145
+ }>, {
146
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
147
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
148
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
149
+ generalRule?: "active-voice" | "passive-voice" | undefined;
150
+ }, {
151
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
152
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
153
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
154
+ generalRule?: "active-voice" | "passive-voice" | undefined;
155
+ }>]>>;
156
+ glossary: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
157
+ term: z.ZodString;
158
+ description: z.ZodOptional<z.ZodString>;
159
+ translatable: z.ZodDefault<z.ZodBoolean>;
160
+ forbidden: z.ZodDefault<z.ZodBoolean>;
161
+ caseSensitive: z.ZodDefault<z.ZodBoolean>;
162
+ translations: z.ZodOptional<z.ZodArray<z.ZodObject<{
163
+ locale: z.ZodEffects<z.ZodString, string, string>;
164
+ translation: z.ZodString;
165
+ description: z.ZodOptional<z.ZodString>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ locale: string;
168
+ translation: string;
169
+ description?: string | undefined;
170
+ }, {
171
+ locale: string;
172
+ translation: string;
173
+ description?: string | undefined;
174
+ }>, "many">>;
175
+ }, "strip", z.ZodTypeAny, {
176
+ term: string;
177
+ translatable: boolean;
178
+ forbidden: boolean;
179
+ caseSensitive: boolean;
180
+ description?: string | undefined;
181
+ translations?: {
182
+ locale: string;
183
+ translation: string;
184
+ description?: string | undefined;
185
+ }[] | undefined;
186
+ }, {
187
+ term: string;
188
+ description?: string | undefined;
189
+ translatable?: boolean | undefined;
190
+ forbidden?: boolean | undefined;
191
+ caseSensitive?: boolean | undefined;
192
+ translations?: {
193
+ locale: string;
194
+ translation: string;
195
+ description?: string | undefined;
196
+ }[] | undefined;
197
+ }>, {
198
+ term: string;
199
+ translatable: boolean;
200
+ forbidden: boolean;
201
+ caseSensitive: boolean;
202
+ description?: string | undefined;
203
+ translations?: {
204
+ locale: string;
205
+ translation: string;
206
+ description?: string | undefined;
207
+ }[] | undefined;
208
+ }, {
209
+ term: string;
210
+ description?: string | undefined;
211
+ translatable?: boolean | undefined;
212
+ forbidden?: boolean | undefined;
213
+ caseSensitive?: boolean | undefined;
214
+ translations?: {
215
+ locale: string;
216
+ translation: string;
217
+ description?: string | undefined;
218
+ }[] | undefined;
219
+ }>, "many">>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ description?: string | undefined;
222
+ styleGuide?: {
223
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
224
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
225
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
226
+ generalRule?: "active-voice" | "passive-voice" | undefined;
227
+ } | {
228
+ text: string;
229
+ } | undefined;
230
+ glossary?: {
231
+ term: string;
232
+ translatable: boolean;
233
+ forbidden: boolean;
234
+ caseSensitive: boolean;
235
+ description?: string | undefined;
236
+ translations?: {
237
+ locale: string;
238
+ translation: string;
239
+ description?: string | undefined;
240
+ }[] | undefined;
241
+ }[] | undefined;
242
+ }, {
243
+ description?: string | undefined;
244
+ styleGuide?: {
245
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
246
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
247
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
248
+ generalRule?: "active-voice" | "passive-voice" | undefined;
249
+ } | {
250
+ text: string;
251
+ } | undefined;
252
+ glossary?: {
253
+ term: string;
254
+ description?: string | undefined;
255
+ translatable?: boolean | undefined;
256
+ forbidden?: boolean | undefined;
257
+ caseSensitive?: boolean | undefined;
258
+ translations?: {
259
+ locale: string;
260
+ translation: string;
261
+ description?: string | undefined;
262
+ }[] | undefined;
263
+ }[] | undefined;
264
+ }>>;
265
+ contentUnits: z.ZodArray<z.ZodObject<{
266
+ id: z.ZodString;
267
+ context: z.ZodOptional<z.ZodObject<{
268
+ description: z.ZodString;
269
+ }, "strip", z.ZodTypeAny, {
270
+ description: string;
271
+ }, {
272
+ description: string;
273
+ }>>;
274
+ characterLimit: z.ZodOptional<z.ZodNumber>;
275
+ segments: z.ZodArray<z.ZodObject<{
276
+ id: z.ZodString;
277
+ tmMatch: z.ZodOptional<z.ZodObject<{
278
+ sourceValue: z.ZodString;
279
+ translatedValue: z.ZodString;
280
+ }, "strip", z.ZodTypeAny, {
281
+ sourceValue: string;
282
+ translatedValue: string;
283
+ }, {
284
+ sourceValue: string;
285
+ translatedValue: string;
286
+ }>>;
287
+ value: z.ZodString;
288
+ }, "strip", z.ZodTypeAny, {
289
+ value: string;
290
+ id: string;
291
+ tmMatch?: {
292
+ sourceValue: string;
293
+ translatedValue: string;
294
+ } | undefined;
295
+ }, {
296
+ value: string;
297
+ id: string;
298
+ tmMatch?: {
299
+ sourceValue: string;
300
+ translatedValue: string;
301
+ } | undefined;
302
+ }>, "atleastone">;
303
+ }, "strip", z.ZodTypeAny, {
304
+ id: string;
305
+ segments: [{
306
+ value: string;
307
+ id: string;
308
+ tmMatch?: {
309
+ sourceValue: string;
310
+ translatedValue: string;
311
+ } | undefined;
312
+ }, ...{
313
+ value: string;
314
+ id: string;
315
+ tmMatch?: {
316
+ sourceValue: string;
317
+ translatedValue: string;
318
+ } | undefined;
319
+ }[]];
320
+ context?: {
321
+ description: string;
322
+ } | undefined;
323
+ characterLimit?: number | undefined;
324
+ }, {
325
+ id: string;
326
+ segments: [{
327
+ value: string;
328
+ id: string;
329
+ tmMatch?: {
330
+ sourceValue: string;
331
+ translatedValue: string;
332
+ } | undefined;
333
+ }, ...{
334
+ value: string;
335
+ id: string;
336
+ tmMatch?: {
337
+ sourceValue: string;
338
+ translatedValue: string;
339
+ } | undefined;
340
+ }[]];
341
+ context?: {
342
+ description: string;
343
+ } | undefined;
344
+ characterLimit?: number | undefined;
345
+ }>, "atleastone">;
346
+ }, "strip", z.ZodTypeAny, {
347
+ sourceLocale: string;
348
+ targetLocale: string;
349
+ contentUnits: [{
350
+ id: string;
351
+ segments: [{
352
+ value: string;
353
+ id: string;
354
+ tmMatch?: {
355
+ sourceValue: string;
356
+ translatedValue: string;
357
+ } | undefined;
358
+ }, ...{
359
+ value: string;
360
+ id: string;
361
+ tmMatch?: {
362
+ sourceValue: string;
363
+ translatedValue: string;
364
+ } | undefined;
365
+ }[]];
366
+ context?: {
367
+ description: string;
368
+ } | undefined;
369
+ characterLimit?: number | undefined;
370
+ }, ...{
371
+ id: string;
372
+ segments: [{
373
+ value: string;
374
+ id: string;
375
+ tmMatch?: {
376
+ sourceValue: string;
377
+ translatedValue: string;
378
+ } | undefined;
379
+ }, ...{
380
+ value: string;
381
+ id: string;
382
+ tmMatch?: {
383
+ sourceValue: string;
384
+ translatedValue: string;
385
+ } | undefined;
386
+ }[]];
387
+ context?: {
388
+ description: string;
389
+ } | undefined;
390
+ characterLimit?: number | undefined;
391
+ }[]];
392
+ context?: {
393
+ description?: string | undefined;
394
+ styleGuide?: {
395
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
396
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
397
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
398
+ generalRule?: "active-voice" | "passive-voice" | undefined;
399
+ } | {
400
+ text: string;
401
+ } | undefined;
402
+ glossary?: {
403
+ term: string;
404
+ translatable: boolean;
405
+ forbidden: boolean;
406
+ caseSensitive: boolean;
407
+ description?: string | undefined;
408
+ translations?: {
409
+ locale: string;
410
+ translation: string;
411
+ description?: string | undefined;
412
+ }[] | undefined;
413
+ }[] | undefined;
414
+ } | undefined;
415
+ integration?: "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
416
+ }, {
417
+ sourceLocale: string;
418
+ targetLocale: string;
419
+ contentUnits: [{
420
+ id: string;
421
+ segments: [{
422
+ value: string;
423
+ id: string;
424
+ tmMatch?: {
425
+ sourceValue: string;
426
+ translatedValue: string;
427
+ } | undefined;
428
+ }, ...{
429
+ value: string;
430
+ id: string;
431
+ tmMatch?: {
432
+ sourceValue: string;
433
+ translatedValue: string;
434
+ } | undefined;
435
+ }[]];
436
+ context?: {
437
+ description: string;
438
+ } | undefined;
439
+ characterLimit?: number | undefined;
440
+ }, ...{
441
+ id: string;
442
+ segments: [{
443
+ value: string;
444
+ id: string;
445
+ tmMatch?: {
446
+ sourceValue: string;
447
+ translatedValue: string;
448
+ } | undefined;
449
+ }, ...{
450
+ value: string;
451
+ id: string;
452
+ tmMatch?: {
453
+ sourceValue: string;
454
+ translatedValue: string;
455
+ } | undefined;
456
+ }[]];
457
+ context?: {
458
+ description: string;
459
+ } | undefined;
460
+ characterLimit?: number | undefined;
461
+ }[]];
462
+ context?: {
463
+ description?: string | undefined;
464
+ styleGuide?: {
465
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
466
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
467
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
468
+ generalRule?: "active-voice" | "passive-voice" | undefined;
469
+ } | {
470
+ text: string;
471
+ } | undefined;
472
+ glossary?: {
473
+ term: string;
474
+ description?: string | undefined;
475
+ translatable?: boolean | undefined;
476
+ forbidden?: boolean | undefined;
477
+ caseSensitive?: boolean | undefined;
478
+ translations?: {
479
+ locale: string;
480
+ translation: string;
481
+ description?: string | undefined;
482
+ }[] | undefined;
483
+ }[] | undefined;
484
+ } | undefined;
485
+ integration?: "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
486
+ }>, {
487
+ sourceLocale: string;
488
+ targetLocale: string;
489
+ contentUnits: [{
490
+ id: string;
491
+ segments: [{
492
+ value: string;
493
+ id: string;
494
+ tmMatch?: {
495
+ sourceValue: string;
496
+ translatedValue: string;
497
+ } | undefined;
498
+ }, ...{
499
+ value: string;
500
+ id: string;
501
+ tmMatch?: {
502
+ sourceValue: string;
503
+ translatedValue: string;
504
+ } | undefined;
505
+ }[]];
506
+ context?: {
507
+ description: string;
508
+ } | undefined;
509
+ characterLimit?: number | undefined;
510
+ }, ...{
511
+ id: string;
512
+ segments: [{
513
+ value: string;
514
+ id: string;
515
+ tmMatch?: {
516
+ sourceValue: string;
517
+ translatedValue: string;
518
+ } | undefined;
519
+ }, ...{
520
+ value: string;
521
+ id: string;
522
+ tmMatch?: {
523
+ sourceValue: string;
524
+ translatedValue: string;
525
+ } | undefined;
526
+ }[]];
527
+ context?: {
528
+ description: string;
529
+ } | undefined;
530
+ characterLimit?: number | undefined;
531
+ }[]];
532
+ context?: {
533
+ description?: string | undefined;
534
+ styleGuide?: {
535
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
536
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
537
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
538
+ generalRule?: "active-voice" | "passive-voice" | undefined;
539
+ } | {
540
+ text: string;
541
+ } | undefined;
542
+ glossary?: {
543
+ term: string;
544
+ translatable: boolean;
545
+ forbidden: boolean;
546
+ caseSensitive: boolean;
547
+ description?: string | undefined;
548
+ translations?: {
549
+ locale: string;
550
+ translation: string;
551
+ description?: string | undefined;
552
+ }[] | undefined;
553
+ }[] | undefined;
554
+ } | undefined;
555
+ integration?: "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
556
+ }, {
557
+ sourceLocale: string;
558
+ targetLocale: string;
559
+ contentUnits: [{
560
+ id: string;
561
+ segments: [{
562
+ value: string;
563
+ id: string;
564
+ tmMatch?: {
565
+ sourceValue: string;
566
+ translatedValue: string;
567
+ } | undefined;
568
+ }, ...{
569
+ value: string;
570
+ id: string;
571
+ tmMatch?: {
572
+ sourceValue: string;
573
+ translatedValue: string;
574
+ } | undefined;
575
+ }[]];
576
+ context?: {
577
+ description: string;
578
+ } | undefined;
579
+ characterLimit?: number | undefined;
580
+ }, ...{
581
+ id: string;
582
+ segments: [{
583
+ value: string;
584
+ id: string;
585
+ tmMatch?: {
586
+ sourceValue: string;
587
+ translatedValue: string;
588
+ } | undefined;
589
+ }, ...{
590
+ value: string;
591
+ id: string;
592
+ tmMatch?: {
593
+ sourceValue: string;
594
+ translatedValue: string;
595
+ } | undefined;
596
+ }[]];
597
+ context?: {
598
+ description: string;
599
+ } | undefined;
600
+ characterLimit?: number | undefined;
601
+ }[]];
602
+ context?: {
603
+ description?: string | undefined;
604
+ styleGuide?: {
605
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
606
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
607
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
608
+ generalRule?: "active-voice" | "passive-voice" | undefined;
609
+ } | {
610
+ text: string;
611
+ } | undefined;
612
+ glossary?: {
613
+ term: string;
614
+ description?: string | undefined;
615
+ translatable?: boolean | undefined;
616
+ forbidden?: boolean | undefined;
617
+ caseSensitive?: boolean | undefined;
618
+ translations?: {
619
+ locale: string;
620
+ translation: string;
621
+ description?: string | undefined;
622
+ }[] | undefined;
623
+ }[] | undefined;
624
+ } | undefined;
625
+ integration?: "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
626
+ }>;
627
+ export declare const SYNC_TRANSLATION_V2_HEADERS_SCHEMA: z.ZodObject<{
628
+ 'x-fake-processing': z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ 'x-fake-processing'?: boolean | undefined;
631
+ }, {
632
+ 'x-fake-processing'?: unknown;
633
+ }>;
634
+ export declare const SYNC_TRANSLATION_V2_RESPONSE_SCHEMA: z.ZodObject<{
635
+ data: z.ZodArray<z.ZodObject<{
636
+ contentUnitId: z.ZodString;
637
+ segmentId: z.ZodString;
638
+ integration: z.ZodString;
639
+ translation: z.ZodString;
640
+ }, "strip", z.ZodTypeAny, {
641
+ translation: string;
642
+ integration: string;
643
+ contentUnitId: string;
644
+ segmentId: string;
645
+ }, {
646
+ translation: string;
647
+ integration: string;
648
+ contentUnitId: string;
649
+ segmentId: string;
650
+ }>, "many">;
651
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
652
+ message: z.ZodString;
653
+ errorCode: z.ZodString;
654
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
655
+ }, {
656
+ contentUnitId: z.ZodString;
657
+ segmentId: z.ZodString;
658
+ integration: z.ZodString;
659
+ }>, "strip", z.ZodTypeAny, {
660
+ message: string;
661
+ errorCode: string;
662
+ integration: string;
663
+ contentUnitId: string;
664
+ segmentId: string;
665
+ details?: Record<string, unknown> | undefined;
666
+ }, {
667
+ message: string;
668
+ errorCode: string;
669
+ integration: string;
670
+ contentUnitId: string;
671
+ segmentId: string;
672
+ details?: Record<string, unknown> | undefined;
673
+ }>, "many">>;
674
+ }, "strip", z.ZodTypeAny, {
675
+ data: {
676
+ translation: string;
677
+ integration: string;
678
+ contentUnitId: string;
679
+ segmentId: string;
680
+ }[];
681
+ errors?: {
682
+ message: string;
683
+ errorCode: string;
684
+ integration: string;
685
+ contentUnitId: string;
686
+ segmentId: string;
687
+ details?: Record<string, unknown> | undefined;
688
+ }[] | undefined;
689
+ }, {
690
+ data: {
691
+ translation: string;
692
+ integration: string;
693
+ contentUnitId: string;
694
+ segmentId: string;
695
+ }[];
696
+ errors?: {
697
+ message: string;
698
+ errorCode: string;
699
+ integration: string;
700
+ contentUnitId: string;
701
+ segmentId: string;
702
+ details?: Record<string, unknown> | undefined;
703
+ }[] | undefined;
704
+ }>;
705
+ export type SyncTranslationV2Body = z.infer<typeof SYNC_TRANSLATION_V2_BODY_SCHEMA>;
706
+ export type SyncTranslationV2Headers = z.infer<typeof SYNC_TRANSLATION_V2_HEADERS_SCHEMA>;
707
+ export type SyncTranslationV2Response = z.infer<typeof SYNC_TRANSLATION_V2_RESPONSE_SCHEMA>;