@lokalise/polyglot-sdk 8.0.0 → 9.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 (40) hide show
  1. package/README.md +19 -29
  2. package/dist/index.d.ts +9 -7
  3. package/dist/index.js +17 -13
  4. package/dist/index.js.map +1 -1
  5. package/dist/sdk/PolyglotClient.d.ts +11 -9
  6. package/dist/sdk/PolyglotClient.js.map +1 -1
  7. package/dist/sdk/schemas/lqa/commonSchemas.d.ts +22 -0
  8. package/dist/sdk/{types/responses.js → schemas/lqa/commonSchemas.js} +9 -13
  9. package/dist/sdk/schemas/lqa/commonSchemas.js.map +1 -0
  10. package/dist/sdk/schemas/lqa/lqaAsyncV1Schemas.d.ts +646 -0
  11. package/dist/sdk/schemas/lqa/lqaAsyncV1Schemas.js +97 -0
  12. package/dist/sdk/schemas/lqa/lqaAsyncV1Schemas.js.map +1 -0
  13. package/dist/sdk/schemas/lqa/lqaSyncV2Schemas.d.ts +619 -0
  14. package/dist/sdk/schemas/lqa/lqaSyncV2Schemas.js +90 -0
  15. package/dist/sdk/schemas/lqa/lqaSyncV2Schemas.js.map +1 -0
  16. package/dist/sdk/schemas/scoring/scoreV1Schemas.d.ts +178 -0
  17. package/dist/sdk/schemas/scoring/scoreV1Schemas.js +46 -0
  18. package/dist/sdk/schemas/scoring/scoreV1Schemas.js.map +1 -0
  19. package/dist/sdk/schemas/translation/generateVariantsV1.d.ts +352 -0
  20. package/dist/sdk/schemas/translation/generateVariantsV1.js +53 -0
  21. package/dist/sdk/schemas/translation/generateVariantsV1.js.map +1 -0
  22. package/dist/sdk/schemas/translation/{asyncTranslationV2Schemas.js → translateAsyncV2Schemas.js} +1 -1
  23. package/dist/sdk/schemas/translation/translateAsyncV2Schemas.js.map +1 -0
  24. package/dist/sdk/schemas/translation/{syncTranslationV2Schemas.js → translateSyncV2Schemas.js} +1 -1
  25. package/dist/sdk/schemas/translation/translateSyncV2Schemas.js.map +1 -0
  26. package/dist/sdk/types/common.d.ts +1 -0
  27. package/dist/sdk/types/{requests.js → common.js} +1 -1
  28. package/dist/sdk/types/common.js.map +1 -0
  29. package/package.json +1 -1
  30. package/dist/sdk/schemas/translation/asyncTranslationV2Schemas.js.map +0 -1
  31. package/dist/sdk/schemas/translation/syncTranslationV2Schemas.js.map +0 -1
  32. package/dist/sdk/types/callbacks.d.ts +0 -28
  33. package/dist/sdk/types/callbacks.js +0 -3
  34. package/dist/sdk/types/callbacks.js.map +0 -1
  35. package/dist/sdk/types/requests.d.ts +0 -106
  36. package/dist/sdk/types/requests.js.map +0 -1
  37. package/dist/sdk/types/responses.d.ts +0 -116
  38. package/dist/sdk/types/responses.js.map +0 -1
  39. package/dist/sdk/schemas/translation/{asyncTranslationV2Schemas.d.ts → translateAsyncV2Schemas.d.ts} +13 -13
  40. package/dist/sdk/schemas/translation/{syncTranslationV2Schemas.d.ts → translateSyncV2Schemas.d.ts} +4 -4
@@ -0,0 +1,619 @@
1
+ import z from 'zod';
2
+ export declare const LQA_SYNC_V2_BODY_SCHEMA: z.ZodObject<{
3
+ sourceLocale: z.ZodEffects<z.ZodString, string, string>;
4
+ context: z.ZodOptional<z.ZodObject<{
5
+ description: z.ZodOptional<z.ZodString>;
6
+ styleGuide: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
7
+ text: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ text: string;
10
+ }, {
11
+ text: string;
12
+ }>, z.ZodEffects<z.ZodObject<{
13
+ targetAudience: z.ZodOptional<z.ZodEnum<["general", "technical", "non-technical"]>>;
14
+ toneOfVoice: z.ZodOptional<z.ZodEnum<["friendly", "empowering", "informative", "supportive", "elegant"]>>;
15
+ levelOfFormality: z.ZodOptional<z.ZodEnum<["informal", "formal", "neutral"]>>;
16
+ generalRule: z.ZodOptional<z.ZodEnum<["active-voice", "passive-voice"]>>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
19
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
20
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
21
+ generalRule?: "active-voice" | "passive-voice" | undefined;
22
+ }, {
23
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
24
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
25
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
26
+ generalRule?: "active-voice" | "passive-voice" | undefined;
27
+ }>, {
28
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
29
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
30
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
31
+ generalRule?: "active-voice" | "passive-voice" | undefined;
32
+ }, {
33
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
34
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
35
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
36
+ generalRule?: "active-voice" | "passive-voice" | undefined;
37
+ }>]>>;
38
+ glossary: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
39
+ term: z.ZodString;
40
+ description: z.ZodOptional<z.ZodString>;
41
+ translatable: z.ZodDefault<z.ZodBoolean>;
42
+ forbidden: z.ZodDefault<z.ZodBoolean>;
43
+ caseSensitive: z.ZodDefault<z.ZodBoolean>;
44
+ translations: z.ZodOptional<z.ZodArray<z.ZodObject<{
45
+ locale: z.ZodEffects<z.ZodString, string, string>;
46
+ translation: z.ZodString;
47
+ description: z.ZodOptional<z.ZodString>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ locale: string;
50
+ translation: string;
51
+ description?: string | undefined;
52
+ }, {
53
+ locale: string;
54
+ translation: string;
55
+ description?: string | undefined;
56
+ }>, "many">>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ term: string;
59
+ translatable: boolean;
60
+ forbidden: boolean;
61
+ caseSensitive: boolean;
62
+ description?: string | undefined;
63
+ translations?: {
64
+ locale: string;
65
+ translation: string;
66
+ description?: string | undefined;
67
+ }[] | undefined;
68
+ }, {
69
+ term: string;
70
+ description?: string | undefined;
71
+ translatable?: boolean | undefined;
72
+ forbidden?: boolean | undefined;
73
+ caseSensitive?: boolean | undefined;
74
+ translations?: {
75
+ locale: string;
76
+ translation: string;
77
+ description?: string | undefined;
78
+ }[] | undefined;
79
+ }>, {
80
+ term: string;
81
+ translatable: boolean;
82
+ forbidden: boolean;
83
+ caseSensitive: boolean;
84
+ description?: string | undefined;
85
+ translations?: {
86
+ locale: string;
87
+ translation: string;
88
+ description?: string | undefined;
89
+ }[] | undefined;
90
+ }, {
91
+ term: string;
92
+ description?: string | undefined;
93
+ translatable?: boolean | undefined;
94
+ forbidden?: boolean | undefined;
95
+ caseSensitive?: boolean | undefined;
96
+ translations?: {
97
+ locale: string;
98
+ translation: string;
99
+ description?: string | undefined;
100
+ }[] | undefined;
101
+ }>, "many">>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ description?: string | undefined;
104
+ styleGuide?: {
105
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
106
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
107
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
108
+ generalRule?: "active-voice" | "passive-voice" | undefined;
109
+ } | {
110
+ text: string;
111
+ } | undefined;
112
+ glossary?: {
113
+ term: string;
114
+ translatable: boolean;
115
+ forbidden: boolean;
116
+ caseSensitive: boolean;
117
+ description?: string | undefined;
118
+ translations?: {
119
+ locale: string;
120
+ translation: string;
121
+ description?: string | undefined;
122
+ }[] | undefined;
123
+ }[] | undefined;
124
+ }, {
125
+ description?: string | undefined;
126
+ styleGuide?: {
127
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
128
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
129
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
130
+ generalRule?: "active-voice" | "passive-voice" | undefined;
131
+ } | {
132
+ text: string;
133
+ } | undefined;
134
+ glossary?: {
135
+ term: string;
136
+ description?: string | undefined;
137
+ translatable?: boolean | undefined;
138
+ forbidden?: boolean | undefined;
139
+ caseSensitive?: boolean | undefined;
140
+ translations?: {
141
+ locale: string;
142
+ translation: string;
143
+ description?: string | undefined;
144
+ }[] | undefined;
145
+ }[] | undefined;
146
+ }>>;
147
+ integration: z.ZodOptional<z.ZodNativeEnum<{
148
+ readonly CLAUDE: "Claude";
149
+ readonly CHAT_GPT4: "ChatGPT-4";
150
+ readonly GEMINI: "Gemini";
151
+ }>>;
152
+ contentUnits: z.ZodArray<z.ZodObject<{
153
+ id: z.ZodString;
154
+ context: z.ZodOptional<z.ZodObject<{
155
+ description: z.ZodOptional<z.ZodString>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ description?: string | undefined;
158
+ }, {
159
+ description?: string | undefined;
160
+ }>>;
161
+ characterLimit: z.ZodOptional<z.ZodNumber>;
162
+ segments: z.ZodArray<z.ZodObject<{
163
+ sourceValue: z.ZodString;
164
+ translations: z.ZodArray<z.ZodObject<{
165
+ id: z.ZodString;
166
+ locale: z.ZodEffects<z.ZodString, string, string>;
167
+ value: z.ZodString;
168
+ }, "strip", z.ZodTypeAny, {
169
+ value: string;
170
+ locale: string;
171
+ id: string;
172
+ }, {
173
+ value: string;
174
+ locale: string;
175
+ id: string;
176
+ }>, "atleastone">;
177
+ tmMatch: z.ZodOptional<z.ZodObject<{
178
+ sourceValue: z.ZodString;
179
+ translatedValue: z.ZodString;
180
+ }, "strip", z.ZodTypeAny, {
181
+ sourceValue: string;
182
+ translatedValue: string;
183
+ }, {
184
+ sourceValue: string;
185
+ translatedValue: string;
186
+ }>>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ sourceValue: string;
189
+ translations: [{
190
+ value: string;
191
+ locale: string;
192
+ id: string;
193
+ }, ...{
194
+ value: string;
195
+ locale: string;
196
+ id: string;
197
+ }[]];
198
+ tmMatch?: {
199
+ sourceValue: string;
200
+ translatedValue: string;
201
+ } | undefined;
202
+ }, {
203
+ sourceValue: string;
204
+ translations: [{
205
+ value: string;
206
+ locale: string;
207
+ id: string;
208
+ }, ...{
209
+ value: string;
210
+ locale: string;
211
+ id: string;
212
+ }[]];
213
+ tmMatch?: {
214
+ sourceValue: string;
215
+ translatedValue: string;
216
+ } | undefined;
217
+ }>, "atleastone">;
218
+ }, "strip", z.ZodTypeAny, {
219
+ id: string;
220
+ segments: [{
221
+ sourceValue: string;
222
+ translations: [{
223
+ value: string;
224
+ locale: string;
225
+ id: string;
226
+ }, ...{
227
+ value: string;
228
+ locale: string;
229
+ id: string;
230
+ }[]];
231
+ tmMatch?: {
232
+ sourceValue: string;
233
+ translatedValue: string;
234
+ } | undefined;
235
+ }, ...{
236
+ sourceValue: string;
237
+ translations: [{
238
+ value: string;
239
+ locale: string;
240
+ id: string;
241
+ }, ...{
242
+ value: string;
243
+ locale: string;
244
+ id: string;
245
+ }[]];
246
+ tmMatch?: {
247
+ sourceValue: string;
248
+ translatedValue: string;
249
+ } | undefined;
250
+ }[]];
251
+ context?: {
252
+ description?: string | undefined;
253
+ } | undefined;
254
+ characterLimit?: number | undefined;
255
+ }, {
256
+ id: string;
257
+ segments: [{
258
+ sourceValue: string;
259
+ translations: [{
260
+ value: string;
261
+ locale: string;
262
+ id: string;
263
+ }, ...{
264
+ value: string;
265
+ locale: string;
266
+ id: string;
267
+ }[]];
268
+ tmMatch?: {
269
+ sourceValue: string;
270
+ translatedValue: string;
271
+ } | undefined;
272
+ }, ...{
273
+ sourceValue: string;
274
+ translations: [{
275
+ value: string;
276
+ locale: string;
277
+ id: string;
278
+ }, ...{
279
+ value: string;
280
+ locale: string;
281
+ id: string;
282
+ }[]];
283
+ tmMatch?: {
284
+ sourceValue: string;
285
+ translatedValue: string;
286
+ } | undefined;
287
+ }[]];
288
+ context?: {
289
+ description?: string | undefined;
290
+ } | undefined;
291
+ characterLimit?: number | undefined;
292
+ }>, "atleastone">;
293
+ }, "strip", z.ZodTypeAny, {
294
+ sourceLocale: string;
295
+ contentUnits: [{
296
+ id: string;
297
+ segments: [{
298
+ sourceValue: string;
299
+ translations: [{
300
+ value: string;
301
+ locale: string;
302
+ id: string;
303
+ }, ...{
304
+ value: string;
305
+ locale: string;
306
+ id: string;
307
+ }[]];
308
+ tmMatch?: {
309
+ sourceValue: string;
310
+ translatedValue: string;
311
+ } | undefined;
312
+ }, ...{
313
+ sourceValue: string;
314
+ translations: [{
315
+ value: string;
316
+ locale: string;
317
+ id: string;
318
+ }, ...{
319
+ value: string;
320
+ locale: string;
321
+ id: string;
322
+ }[]];
323
+ tmMatch?: {
324
+ sourceValue: string;
325
+ translatedValue: string;
326
+ } | undefined;
327
+ }[]];
328
+ context?: {
329
+ description?: string | undefined;
330
+ } | undefined;
331
+ characterLimit?: number | undefined;
332
+ }, ...{
333
+ id: string;
334
+ segments: [{
335
+ sourceValue: string;
336
+ translations: [{
337
+ value: string;
338
+ locale: string;
339
+ id: string;
340
+ }, ...{
341
+ value: string;
342
+ locale: string;
343
+ id: string;
344
+ }[]];
345
+ tmMatch?: {
346
+ sourceValue: string;
347
+ translatedValue: string;
348
+ } | undefined;
349
+ }, ...{
350
+ sourceValue: string;
351
+ translations: [{
352
+ value: string;
353
+ locale: string;
354
+ id: string;
355
+ }, ...{
356
+ value: string;
357
+ locale: string;
358
+ id: string;
359
+ }[]];
360
+ tmMatch?: {
361
+ sourceValue: string;
362
+ translatedValue: string;
363
+ } | undefined;
364
+ }[]];
365
+ context?: {
366
+ description?: string | undefined;
367
+ } | undefined;
368
+ characterLimit?: number | undefined;
369
+ }[]];
370
+ context?: {
371
+ description?: string | undefined;
372
+ styleGuide?: {
373
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
374
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
375
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
376
+ generalRule?: "active-voice" | "passive-voice" | undefined;
377
+ } | {
378
+ text: string;
379
+ } | undefined;
380
+ glossary?: {
381
+ term: string;
382
+ translatable: boolean;
383
+ forbidden: boolean;
384
+ caseSensitive: boolean;
385
+ description?: string | undefined;
386
+ translations?: {
387
+ locale: string;
388
+ translation: string;
389
+ description?: string | undefined;
390
+ }[] | undefined;
391
+ }[] | undefined;
392
+ } | undefined;
393
+ integration?: "Claude" | "ChatGPT-4" | "Gemini" | undefined;
394
+ }, {
395
+ sourceLocale: string;
396
+ contentUnits: [{
397
+ id: string;
398
+ segments: [{
399
+ sourceValue: string;
400
+ translations: [{
401
+ value: string;
402
+ locale: string;
403
+ id: string;
404
+ }, ...{
405
+ value: string;
406
+ locale: string;
407
+ id: string;
408
+ }[]];
409
+ tmMatch?: {
410
+ sourceValue: string;
411
+ translatedValue: string;
412
+ } | undefined;
413
+ }, ...{
414
+ sourceValue: string;
415
+ translations: [{
416
+ value: string;
417
+ locale: string;
418
+ id: string;
419
+ }, ...{
420
+ value: string;
421
+ locale: string;
422
+ id: string;
423
+ }[]];
424
+ tmMatch?: {
425
+ sourceValue: string;
426
+ translatedValue: string;
427
+ } | undefined;
428
+ }[]];
429
+ context?: {
430
+ description?: string | undefined;
431
+ } | undefined;
432
+ characterLimit?: number | undefined;
433
+ }, ...{
434
+ id: string;
435
+ segments: [{
436
+ sourceValue: string;
437
+ translations: [{
438
+ value: string;
439
+ locale: string;
440
+ id: string;
441
+ }, ...{
442
+ value: string;
443
+ locale: string;
444
+ id: string;
445
+ }[]];
446
+ tmMatch?: {
447
+ sourceValue: string;
448
+ translatedValue: string;
449
+ } | undefined;
450
+ }, ...{
451
+ sourceValue: string;
452
+ translations: [{
453
+ value: string;
454
+ locale: string;
455
+ id: string;
456
+ }, ...{
457
+ value: string;
458
+ locale: string;
459
+ id: string;
460
+ }[]];
461
+ tmMatch?: {
462
+ sourceValue: string;
463
+ translatedValue: string;
464
+ } | undefined;
465
+ }[]];
466
+ context?: {
467
+ description?: string | undefined;
468
+ } | undefined;
469
+ characterLimit?: number | undefined;
470
+ }[]];
471
+ context?: {
472
+ description?: string | undefined;
473
+ styleGuide?: {
474
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
475
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
476
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
477
+ generalRule?: "active-voice" | "passive-voice" | undefined;
478
+ } | {
479
+ text: string;
480
+ } | undefined;
481
+ glossary?: {
482
+ term: string;
483
+ description?: string | undefined;
484
+ translatable?: boolean | undefined;
485
+ forbidden?: boolean | undefined;
486
+ caseSensitive?: boolean | undefined;
487
+ translations?: {
488
+ locale: string;
489
+ translation: string;
490
+ description?: string | undefined;
491
+ }[] | undefined;
492
+ }[] | undefined;
493
+ } | undefined;
494
+ integration?: "Claude" | "ChatGPT-4" | "Gemini" | undefined;
495
+ }>;
496
+ export declare const LQA_SYNC_V2_HEADERS_SCHEMA: z.ZodObject<{
497
+ 'x-fake-processing': z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
498
+ }, "strip", z.ZodTypeAny, {
499
+ 'x-fake-processing'?: boolean | undefined;
500
+ }, {
501
+ 'x-fake-processing'?: unknown;
502
+ }>;
503
+ export declare const LQA_SYNC_V2_RESPONSE_SCHEMA: z.ZodObject<{
504
+ integration: z.ZodString;
505
+ data: z.ZodArray<z.ZodObject<{
506
+ contentUnitId: z.ZodString;
507
+ translationId: z.ZodString;
508
+ suggestion: z.ZodNullable<z.ZodString>;
509
+ issues: z.ZodArray<z.ZodObject<{
510
+ category: z.ZodNativeEnum<{
511
+ readonly ACCURACY: "accuracy";
512
+ readonly FLUENCY: "fluency";
513
+ readonly TERMINOLOGY: "terminology";
514
+ readonly LOCALE_CONVENTION: "locale convention";
515
+ readonly STYLE: "style";
516
+ readonly CONSISTENCY: "consistency";
517
+ readonly COHERENCE: "coherence";
518
+ readonly DESIGN: "design";
519
+ readonly MARKUP: "markup";
520
+ readonly INTERNATIONALIZATION: "internationalization";
521
+ readonly VERITY: "verity";
522
+ }>;
523
+ severity: z.ZodNativeEnum<{
524
+ readonly NEUTRAL: "neutral";
525
+ readonly MINOR: "minor";
526
+ readonly MAJOR: "major";
527
+ readonly CRITICAL: "critical";
528
+ }>;
529
+ comment: z.ZodNullable<z.ZodString>;
530
+ }, "strip", z.ZodTypeAny, {
531
+ category: "accuracy" | "fluency" | "terminology" | "locale convention" | "style" | "consistency" | "coherence" | "design" | "markup" | "internationalization" | "verity";
532
+ severity: "neutral" | "minor" | "major" | "critical";
533
+ comment: string | null;
534
+ }, {
535
+ category: "accuracy" | "fluency" | "terminology" | "locale convention" | "style" | "consistency" | "coherence" | "design" | "markup" | "internationalization" | "verity";
536
+ severity: "neutral" | "minor" | "major" | "critical";
537
+ comment: string | null;
538
+ }>, "many">;
539
+ }, "strip", z.ZodTypeAny, {
540
+ contentUnitId: string;
541
+ translationId: string;
542
+ suggestion: string | null;
543
+ issues: {
544
+ category: "accuracy" | "fluency" | "terminology" | "locale convention" | "style" | "consistency" | "coherence" | "design" | "markup" | "internationalization" | "verity";
545
+ severity: "neutral" | "minor" | "major" | "critical";
546
+ comment: string | null;
547
+ }[];
548
+ }, {
549
+ contentUnitId: string;
550
+ translationId: string;
551
+ suggestion: string | null;
552
+ issues: {
553
+ category: "accuracy" | "fluency" | "terminology" | "locale convention" | "style" | "consistency" | "coherence" | "design" | "markup" | "internationalization" | "verity";
554
+ severity: "neutral" | "minor" | "major" | "critical";
555
+ comment: string | null;
556
+ }[];
557
+ }>, "many">;
558
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
559
+ message: z.ZodString;
560
+ errorCode: z.ZodString;
561
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
562
+ }, {
563
+ contentUnitId: z.ZodString;
564
+ translationId: z.ZodString;
565
+ }>, "strip", z.ZodTypeAny, {
566
+ message: string;
567
+ errorCode: string;
568
+ contentUnitId: string;
569
+ translationId: string;
570
+ details?: Record<string, unknown> | undefined;
571
+ }, {
572
+ message: string;
573
+ errorCode: string;
574
+ contentUnitId: string;
575
+ translationId: string;
576
+ details?: Record<string, unknown> | undefined;
577
+ }>, "many">>;
578
+ }, "strip", z.ZodTypeAny, {
579
+ integration: string;
580
+ data: {
581
+ contentUnitId: string;
582
+ translationId: string;
583
+ suggestion: string | null;
584
+ issues: {
585
+ category: "accuracy" | "fluency" | "terminology" | "locale convention" | "style" | "consistency" | "coherence" | "design" | "markup" | "internationalization" | "verity";
586
+ severity: "neutral" | "minor" | "major" | "critical";
587
+ comment: string | null;
588
+ }[];
589
+ }[];
590
+ errors?: {
591
+ message: string;
592
+ errorCode: string;
593
+ contentUnitId: string;
594
+ translationId: string;
595
+ details?: Record<string, unknown> | undefined;
596
+ }[] | undefined;
597
+ }, {
598
+ integration: string;
599
+ data: {
600
+ contentUnitId: string;
601
+ translationId: string;
602
+ suggestion: string | null;
603
+ issues: {
604
+ category: "accuracy" | "fluency" | "terminology" | "locale convention" | "style" | "consistency" | "coherence" | "design" | "markup" | "internationalization" | "verity";
605
+ severity: "neutral" | "minor" | "major" | "critical";
606
+ comment: string | null;
607
+ }[];
608
+ }[];
609
+ errors?: {
610
+ message: string;
611
+ errorCode: string;
612
+ contentUnitId: string;
613
+ translationId: string;
614
+ details?: Record<string, unknown> | undefined;
615
+ }[] | undefined;
616
+ }>;
617
+ export type LqaSyncV2Body = z.infer<typeof LQA_SYNC_V2_BODY_SCHEMA>;
618
+ export type LqaSyncV2Headers = z.infer<typeof LQA_SYNC_V2_HEADERS_SCHEMA>;
619
+ export type LqaSyncV2Response = z.infer<typeof LQA_SYNC_V2_RESPONSE_SCHEMA>;