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