@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.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/sdk/schemas/common/commonSchemas.d.ts +20 -21
- package/dist/sdk/schemas/common/commonSchemas.js +16 -18
- package/dist/sdk/schemas/common/commonSchemas.js.map +1 -1
- package/dist/sdk/schemas/common/translationContextSchemas.d.ts +32 -32
- package/dist/sdk/schemas/common/translationContextSchemas.js +2 -0
- package/dist/sdk/schemas/common/translationContextSchemas.js.map +1 -1
- package/dist/sdk/schemas/lqa/lqaAsyncSchemas.d.ts +108 -89
- package/dist/sdk/schemas/lqa/lqaAsyncSchemas.js +3 -2
- package/dist/sdk/schemas/lqa/lqaAsyncSchemas.js.map +1 -1
- package/dist/sdk/schemas/lqa/lqaSyncSchemas.d.ts +100 -91
- package/dist/sdk/schemas/lqa/lqaSyncSchemas.js +3 -2
- package/dist/sdk/schemas/lqa/lqaSyncSchemas.js.map +1 -1
- package/dist/sdk/schemas/translation/generateVariants.d.ts +63 -64
- package/dist/sdk/schemas/translation/rewriteTextSchemas.d.ts +155 -157
- package/dist/sdk/schemas/translation/rewriteTextSchemas.js +2 -2
- package/dist/sdk/schemas/translation/rewriteTextSchemas.js.map +1 -1
- package/dist/sdk/schemas/translation/sharedSchemas.d.ts +257 -58
- package/dist/sdk/schemas/translation/sharedSchemas.js +25 -15
- package/dist/sdk/schemas/translation/sharedSchemas.js.map +1 -1
- package/dist/sdk/schemas/translation/translateAsyncSchemas.d.ts +334 -335
- package/dist/sdk/schemas/translation/translateAsyncSchemas.js +2 -2
- package/dist/sdk/schemas/translation/translateAsyncSchemas.js.map +1 -1
- package/dist/sdk/schemas/translation/translateSyncSchemas.d.ts +491 -254
- package/dist/sdk/schemas/translation/translateSyncSchemas.js +11 -3
- package/dist/sdk/schemas/translation/translateSyncSchemas.js.map +1 -1
- package/dist/sdk/schemas/translation/translateTextSegmentSchemas.d.ts +425 -68
- package/dist/sdk/schemas/translation/translateTextSegmentSchemas.js +25 -7
- package/dist/sdk/schemas/translation/translateTextSegmentSchemas.js.map +1 -1
- package/package.json +9 -9
|
@@ -7,12 +7,12 @@ declare const LQA_SEGMENT_SCHEMA: z.ZodObject<{
|
|
|
7
7
|
value: z.ZodEffects<z.ZodString, string, string>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
value: string;
|
|
10
|
-
locale: string;
|
|
11
10
|
id: string;
|
|
11
|
+
locale: string;
|
|
12
12
|
}, {
|
|
13
13
|
value: string;
|
|
14
|
-
locale: string;
|
|
15
14
|
id: string;
|
|
15
|
+
locale: string;
|
|
16
16
|
}>, "atleastone">;
|
|
17
17
|
tmMatch: z.ZodOptional<z.ZodObject<{
|
|
18
18
|
sourceValue: z.ZodString;
|
|
@@ -28,12 +28,12 @@ declare const LQA_SEGMENT_SCHEMA: z.ZodObject<{
|
|
|
28
28
|
sourceValue: string;
|
|
29
29
|
translations: [{
|
|
30
30
|
value: string;
|
|
31
|
-
locale: string;
|
|
32
31
|
id: string;
|
|
32
|
+
locale: string;
|
|
33
33
|
}, ...{
|
|
34
34
|
value: string;
|
|
35
|
-
locale: string;
|
|
36
35
|
id: string;
|
|
36
|
+
locale: string;
|
|
37
37
|
}[]];
|
|
38
38
|
tmMatch?: {
|
|
39
39
|
sourceValue: string;
|
|
@@ -43,12 +43,12 @@ declare const LQA_SEGMENT_SCHEMA: z.ZodObject<{
|
|
|
43
43
|
sourceValue: string;
|
|
44
44
|
translations: [{
|
|
45
45
|
value: string;
|
|
46
|
-
locale: string;
|
|
47
46
|
id: string;
|
|
47
|
+
locale: string;
|
|
48
48
|
}, ...{
|
|
49
49
|
value: string;
|
|
50
|
-
locale: string;
|
|
51
50
|
id: string;
|
|
51
|
+
locale: string;
|
|
52
52
|
}[]];
|
|
53
53
|
tmMatch?: {
|
|
54
54
|
sourceValue: string;
|
|
@@ -72,12 +72,12 @@ declare const LQA_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
72
72
|
value: z.ZodEffects<z.ZodString, string, string>;
|
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
74
|
value: string;
|
|
75
|
-
locale: string;
|
|
76
75
|
id: string;
|
|
76
|
+
locale: string;
|
|
77
77
|
}, {
|
|
78
78
|
value: string;
|
|
79
|
-
locale: string;
|
|
80
79
|
id: string;
|
|
80
|
+
locale: string;
|
|
81
81
|
}>, "atleastone">;
|
|
82
82
|
tmMatch: z.ZodOptional<z.ZodObject<{
|
|
83
83
|
sourceValue: z.ZodString;
|
|
@@ -93,12 +93,12 @@ declare const LQA_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
93
93
|
sourceValue: string;
|
|
94
94
|
translations: [{
|
|
95
95
|
value: string;
|
|
96
|
-
locale: string;
|
|
97
96
|
id: string;
|
|
97
|
+
locale: string;
|
|
98
98
|
}, ...{
|
|
99
99
|
value: string;
|
|
100
|
-
locale: string;
|
|
101
100
|
id: string;
|
|
101
|
+
locale: string;
|
|
102
102
|
}[]];
|
|
103
103
|
tmMatch?: {
|
|
104
104
|
sourceValue: string;
|
|
@@ -108,12 +108,12 @@ declare const LQA_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
108
108
|
sourceValue: string;
|
|
109
109
|
translations: [{
|
|
110
110
|
value: string;
|
|
111
|
-
locale: string;
|
|
112
111
|
id: string;
|
|
112
|
+
locale: string;
|
|
113
113
|
}, ...{
|
|
114
114
|
value: string;
|
|
115
|
-
locale: string;
|
|
116
115
|
id: string;
|
|
116
|
+
locale: string;
|
|
117
117
|
}[]];
|
|
118
118
|
tmMatch?: {
|
|
119
119
|
sourceValue: string;
|
|
@@ -122,17 +122,16 @@ declare const LQA_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
122
122
|
}>, "atleastone">;
|
|
123
123
|
characterLimit: z.ZodOptional<z.ZodNumber>;
|
|
124
124
|
}, "strip", z.ZodTypeAny, {
|
|
125
|
-
id: string;
|
|
126
125
|
segments: [{
|
|
127
126
|
sourceValue: string;
|
|
128
127
|
translations: [{
|
|
129
128
|
value: string;
|
|
130
|
-
locale: string;
|
|
131
129
|
id: string;
|
|
130
|
+
locale: string;
|
|
132
131
|
}, ...{
|
|
133
132
|
value: string;
|
|
134
|
-
locale: string;
|
|
135
133
|
id: string;
|
|
134
|
+
locale: string;
|
|
136
135
|
}[]];
|
|
137
136
|
tmMatch?: {
|
|
138
137
|
sourceValue: string;
|
|
@@ -142,34 +141,34 @@ declare const LQA_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
142
141
|
sourceValue: string;
|
|
143
142
|
translations: [{
|
|
144
143
|
value: string;
|
|
145
|
-
locale: string;
|
|
146
144
|
id: string;
|
|
145
|
+
locale: string;
|
|
147
146
|
}, ...{
|
|
148
147
|
value: string;
|
|
149
|
-
locale: string;
|
|
150
148
|
id: string;
|
|
149
|
+
locale: string;
|
|
151
150
|
}[]];
|
|
152
151
|
tmMatch?: {
|
|
153
152
|
sourceValue: string;
|
|
154
153
|
translatedValue: string;
|
|
155
154
|
} | undefined;
|
|
156
155
|
}[]];
|
|
156
|
+
id: string;
|
|
157
157
|
context?: {
|
|
158
158
|
description?: string | undefined;
|
|
159
159
|
} | undefined;
|
|
160
160
|
characterLimit?: number | undefined;
|
|
161
161
|
}, {
|
|
162
|
-
id: string;
|
|
163
162
|
segments: [{
|
|
164
163
|
sourceValue: string;
|
|
165
164
|
translations: [{
|
|
166
165
|
value: string;
|
|
167
|
-
locale: string;
|
|
168
166
|
id: string;
|
|
167
|
+
locale: string;
|
|
169
168
|
}, ...{
|
|
170
169
|
value: string;
|
|
171
|
-
locale: string;
|
|
172
170
|
id: string;
|
|
171
|
+
locale: string;
|
|
173
172
|
}[]];
|
|
174
173
|
tmMatch?: {
|
|
175
174
|
sourceValue: string;
|
|
@@ -179,18 +178,19 @@ declare const LQA_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
179
178
|
sourceValue: string;
|
|
180
179
|
translations: [{
|
|
181
180
|
value: string;
|
|
182
|
-
locale: string;
|
|
183
181
|
id: string;
|
|
182
|
+
locale: string;
|
|
184
183
|
}, ...{
|
|
185
184
|
value: string;
|
|
186
|
-
locale: string;
|
|
187
185
|
id: string;
|
|
186
|
+
locale: string;
|
|
188
187
|
}[]];
|
|
189
188
|
tmMatch?: {
|
|
190
189
|
sourceValue: string;
|
|
191
190
|
translatedValue: string;
|
|
192
191
|
} | undefined;
|
|
193
192
|
}[]];
|
|
193
|
+
id: string;
|
|
194
194
|
context?: {
|
|
195
195
|
description?: string | undefined;
|
|
196
196
|
} | undefined;
|
|
@@ -203,13 +203,12 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
203
203
|
callbackToken: z.ZodString;
|
|
204
204
|
} & {
|
|
205
205
|
sourceLocale: z.ZodEffects<z.ZodString, string, string>;
|
|
206
|
-
integration: z.ZodOptional<z.
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}>, "FT-OpenAI" | "Claude" | "GPT" | "Gemini", "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4">>;
|
|
206
|
+
integration: z.ZodOptional<z.ZodNativeEnum<{
|
|
207
|
+
readonly FINETUNED_OPENAI: "FT-OpenAI";
|
|
208
|
+
readonly CLAUDE: "Claude";
|
|
209
|
+
readonly GPT: "GPT";
|
|
210
|
+
readonly GEMINI: "Gemini";
|
|
211
|
+
}>>;
|
|
213
212
|
context: z.ZodOptional<z.ZodObject<{
|
|
214
213
|
description: z.ZodOptional<z.ZodString>;
|
|
215
214
|
styleGuide: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -255,12 +254,12 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
255
254
|
translation: z.ZodString;
|
|
256
255
|
description: z.ZodOptional<z.ZodString>;
|
|
257
256
|
}, "strip", z.ZodTypeAny, {
|
|
258
|
-
locale: string;
|
|
259
257
|
translation: string;
|
|
258
|
+
locale: string;
|
|
260
259
|
description?: string | undefined;
|
|
261
260
|
}, {
|
|
262
|
-
locale: string;
|
|
263
261
|
translation: string;
|
|
262
|
+
locale: string;
|
|
264
263
|
description?: string | undefined;
|
|
265
264
|
}>, "many">>;
|
|
266
265
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -270,8 +269,8 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
270
269
|
caseSensitive: boolean;
|
|
271
270
|
description?: string | undefined;
|
|
272
271
|
translations?: {
|
|
273
|
-
locale: string;
|
|
274
272
|
translation: string;
|
|
273
|
+
locale: string;
|
|
275
274
|
description?: string | undefined;
|
|
276
275
|
}[] | undefined;
|
|
277
276
|
}, {
|
|
@@ -281,8 +280,8 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
281
280
|
forbidden?: boolean | undefined;
|
|
282
281
|
caseSensitive?: boolean | undefined;
|
|
283
282
|
translations?: {
|
|
284
|
-
locale: string;
|
|
285
283
|
translation: string;
|
|
284
|
+
locale: string;
|
|
286
285
|
description?: string | undefined;
|
|
287
286
|
}[] | undefined;
|
|
288
287
|
}>, {
|
|
@@ -292,8 +291,8 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
292
291
|
caseSensitive: boolean;
|
|
293
292
|
description?: string | undefined;
|
|
294
293
|
translations?: {
|
|
295
|
-
locale: string;
|
|
296
294
|
translation: string;
|
|
295
|
+
locale: string;
|
|
297
296
|
description?: string | undefined;
|
|
298
297
|
}[] | undefined;
|
|
299
298
|
}, {
|
|
@@ -303,8 +302,8 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
303
302
|
forbidden?: boolean | undefined;
|
|
304
303
|
caseSensitive?: boolean | undefined;
|
|
305
304
|
translations?: {
|
|
306
|
-
locale: string;
|
|
307
305
|
translation: string;
|
|
306
|
+
locale: string;
|
|
308
307
|
description?: string | undefined;
|
|
309
308
|
}[] | undefined;
|
|
310
309
|
}>, "many">>;
|
|
@@ -320,6 +319,10 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
320
319
|
translatedValue: string;
|
|
321
320
|
}>, "many">>;
|
|
322
321
|
}, "strip", z.ZodTypeAny, {
|
|
322
|
+
translationExamples?: {
|
|
323
|
+
sourceValue: string;
|
|
324
|
+
translatedValue: string;
|
|
325
|
+
}[] | undefined;
|
|
323
326
|
description?: string | undefined;
|
|
324
327
|
styleGuide?: {
|
|
325
328
|
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
@@ -336,17 +339,17 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
336
339
|
caseSensitive: boolean;
|
|
337
340
|
description?: string | undefined;
|
|
338
341
|
translations?: {
|
|
339
|
-
locale: string;
|
|
340
342
|
translation: string;
|
|
343
|
+
locale: string;
|
|
341
344
|
description?: string | undefined;
|
|
342
345
|
}[] | undefined;
|
|
343
346
|
}[] | undefined;
|
|
344
347
|
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
348
|
+
}, {
|
|
345
349
|
translationExamples?: {
|
|
346
350
|
sourceValue: string;
|
|
347
351
|
translatedValue: string;
|
|
348
352
|
}[] | undefined;
|
|
349
|
-
}, {
|
|
350
353
|
description?: string | undefined;
|
|
351
354
|
styleGuide?: {
|
|
352
355
|
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
@@ -363,16 +366,12 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
363
366
|
forbidden?: boolean | undefined;
|
|
364
367
|
caseSensitive?: boolean | undefined;
|
|
365
368
|
translations?: {
|
|
366
|
-
locale: string;
|
|
367
369
|
translation: string;
|
|
370
|
+
locale: string;
|
|
368
371
|
description?: string | undefined;
|
|
369
372
|
}[] | undefined;
|
|
370
373
|
}[] | undefined;
|
|
371
374
|
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
372
|
-
translationExamples?: {
|
|
373
|
-
sourceValue: string;
|
|
374
|
-
translatedValue: string;
|
|
375
|
-
}[] | undefined;
|
|
376
375
|
}>>;
|
|
377
376
|
contentUnits: z.ZodArray<z.ZodObject<{
|
|
378
377
|
id: z.ZodString;
|
|
@@ -391,12 +390,12 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
391
390
|
value: z.ZodEffects<z.ZodString, string, string>;
|
|
392
391
|
}, "strip", z.ZodTypeAny, {
|
|
393
392
|
value: string;
|
|
394
|
-
locale: string;
|
|
395
393
|
id: string;
|
|
394
|
+
locale: string;
|
|
396
395
|
}, {
|
|
397
396
|
value: string;
|
|
398
|
-
locale: string;
|
|
399
397
|
id: string;
|
|
398
|
+
locale: string;
|
|
400
399
|
}>, "atleastone">;
|
|
401
400
|
tmMatch: z.ZodOptional<z.ZodObject<{
|
|
402
401
|
sourceValue: z.ZodString;
|
|
@@ -412,12 +411,12 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
412
411
|
sourceValue: string;
|
|
413
412
|
translations: [{
|
|
414
413
|
value: string;
|
|
415
|
-
locale: string;
|
|
416
414
|
id: string;
|
|
415
|
+
locale: string;
|
|
417
416
|
}, ...{
|
|
418
417
|
value: string;
|
|
419
|
-
locale: string;
|
|
420
418
|
id: string;
|
|
419
|
+
locale: string;
|
|
421
420
|
}[]];
|
|
422
421
|
tmMatch?: {
|
|
423
422
|
sourceValue: string;
|
|
@@ -427,12 +426,12 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
427
426
|
sourceValue: string;
|
|
428
427
|
translations: [{
|
|
429
428
|
value: string;
|
|
430
|
-
locale: string;
|
|
431
429
|
id: string;
|
|
430
|
+
locale: string;
|
|
432
431
|
}, ...{
|
|
433
432
|
value: string;
|
|
434
|
-
locale: string;
|
|
435
433
|
id: string;
|
|
434
|
+
locale: string;
|
|
436
435
|
}[]];
|
|
437
436
|
tmMatch?: {
|
|
438
437
|
sourceValue: string;
|
|
@@ -441,17 +440,16 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
441
440
|
}>, "atleastone">;
|
|
442
441
|
characterLimit: z.ZodOptional<z.ZodNumber>;
|
|
443
442
|
}, "strip", z.ZodTypeAny, {
|
|
444
|
-
id: string;
|
|
445
443
|
segments: [{
|
|
446
444
|
sourceValue: string;
|
|
447
445
|
translations: [{
|
|
448
446
|
value: string;
|
|
449
|
-
locale: string;
|
|
450
447
|
id: string;
|
|
448
|
+
locale: string;
|
|
451
449
|
}, ...{
|
|
452
450
|
value: string;
|
|
453
|
-
locale: string;
|
|
454
451
|
id: string;
|
|
452
|
+
locale: string;
|
|
455
453
|
}[]];
|
|
456
454
|
tmMatch?: {
|
|
457
455
|
sourceValue: string;
|
|
@@ -461,34 +459,34 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
461
459
|
sourceValue: string;
|
|
462
460
|
translations: [{
|
|
463
461
|
value: string;
|
|
464
|
-
locale: string;
|
|
465
462
|
id: string;
|
|
463
|
+
locale: string;
|
|
466
464
|
}, ...{
|
|
467
465
|
value: string;
|
|
468
|
-
locale: string;
|
|
469
466
|
id: string;
|
|
467
|
+
locale: string;
|
|
470
468
|
}[]];
|
|
471
469
|
tmMatch?: {
|
|
472
470
|
sourceValue: string;
|
|
473
471
|
translatedValue: string;
|
|
474
472
|
} | undefined;
|
|
475
473
|
}[]];
|
|
474
|
+
id: string;
|
|
476
475
|
context?: {
|
|
477
476
|
description?: string | undefined;
|
|
478
477
|
} | undefined;
|
|
479
478
|
characterLimit?: number | undefined;
|
|
480
479
|
}, {
|
|
481
|
-
id: string;
|
|
482
480
|
segments: [{
|
|
483
481
|
sourceValue: string;
|
|
484
482
|
translations: [{
|
|
485
483
|
value: string;
|
|
486
|
-
locale: string;
|
|
487
484
|
id: string;
|
|
485
|
+
locale: string;
|
|
488
486
|
}, ...{
|
|
489
487
|
value: string;
|
|
490
|
-
locale: string;
|
|
491
488
|
id: string;
|
|
489
|
+
locale: string;
|
|
492
490
|
}[]];
|
|
493
491
|
tmMatch?: {
|
|
494
492
|
sourceValue: string;
|
|
@@ -498,18 +496,19 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
498
496
|
sourceValue: string;
|
|
499
497
|
translations: [{
|
|
500
498
|
value: string;
|
|
501
|
-
locale: string;
|
|
502
499
|
id: string;
|
|
500
|
+
locale: string;
|
|
503
501
|
}, ...{
|
|
504
502
|
value: string;
|
|
505
|
-
locale: string;
|
|
506
503
|
id: string;
|
|
504
|
+
locale: string;
|
|
507
505
|
}[]];
|
|
508
506
|
tmMatch?: {
|
|
509
507
|
sourceValue: string;
|
|
510
508
|
translatedValue: string;
|
|
511
509
|
} | undefined;
|
|
512
510
|
}[]];
|
|
511
|
+
id: string;
|
|
513
512
|
context?: {
|
|
514
513
|
description?: string | undefined;
|
|
515
514
|
} | undefined;
|
|
@@ -522,17 +521,16 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
522
521
|
callbackToken: string;
|
|
523
522
|
sourceLocale: string;
|
|
524
523
|
contentUnits: [{
|
|
525
|
-
id: string;
|
|
526
524
|
segments: [{
|
|
527
525
|
sourceValue: string;
|
|
528
526
|
translations: [{
|
|
529
527
|
value: string;
|
|
530
|
-
locale: string;
|
|
531
528
|
id: string;
|
|
529
|
+
locale: string;
|
|
532
530
|
}, ...{
|
|
533
531
|
value: string;
|
|
534
|
-
locale: string;
|
|
535
532
|
id: string;
|
|
533
|
+
locale: string;
|
|
536
534
|
}[]];
|
|
537
535
|
tmMatch?: {
|
|
538
536
|
sourceValue: string;
|
|
@@ -542,34 +540,34 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
542
540
|
sourceValue: string;
|
|
543
541
|
translations: [{
|
|
544
542
|
value: string;
|
|
545
|
-
locale: string;
|
|
546
543
|
id: string;
|
|
544
|
+
locale: string;
|
|
547
545
|
}, ...{
|
|
548
546
|
value: string;
|
|
549
|
-
locale: string;
|
|
550
547
|
id: string;
|
|
548
|
+
locale: string;
|
|
551
549
|
}[]];
|
|
552
550
|
tmMatch?: {
|
|
553
551
|
sourceValue: string;
|
|
554
552
|
translatedValue: string;
|
|
555
553
|
} | undefined;
|
|
556
554
|
}[]];
|
|
555
|
+
id: string;
|
|
557
556
|
context?: {
|
|
558
557
|
description?: string | undefined;
|
|
559
558
|
} | undefined;
|
|
560
559
|
characterLimit?: number | undefined;
|
|
561
560
|
}, ...{
|
|
562
|
-
id: string;
|
|
563
561
|
segments: [{
|
|
564
562
|
sourceValue: string;
|
|
565
563
|
translations: [{
|
|
566
564
|
value: string;
|
|
567
|
-
locale: string;
|
|
568
565
|
id: string;
|
|
566
|
+
locale: string;
|
|
569
567
|
}, ...{
|
|
570
568
|
value: string;
|
|
571
|
-
locale: string;
|
|
572
569
|
id: string;
|
|
570
|
+
locale: string;
|
|
573
571
|
}[]];
|
|
574
572
|
tmMatch?: {
|
|
575
573
|
sourceValue: string;
|
|
@@ -579,24 +577,29 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
579
577
|
sourceValue: string;
|
|
580
578
|
translations: [{
|
|
581
579
|
value: string;
|
|
582
|
-
locale: string;
|
|
583
580
|
id: string;
|
|
581
|
+
locale: string;
|
|
584
582
|
}, ...{
|
|
585
583
|
value: string;
|
|
586
|
-
locale: string;
|
|
587
584
|
id: string;
|
|
585
|
+
locale: string;
|
|
588
586
|
}[]];
|
|
589
587
|
tmMatch?: {
|
|
590
588
|
sourceValue: string;
|
|
591
589
|
translatedValue: string;
|
|
592
590
|
} | undefined;
|
|
593
591
|
}[]];
|
|
592
|
+
id: string;
|
|
594
593
|
context?: {
|
|
595
594
|
description?: string | undefined;
|
|
596
595
|
} | undefined;
|
|
597
596
|
characterLimit?: number | undefined;
|
|
598
597
|
}[]];
|
|
599
598
|
context?: {
|
|
599
|
+
translationExamples?: {
|
|
600
|
+
sourceValue: string;
|
|
601
|
+
translatedValue: string;
|
|
602
|
+
}[] | undefined;
|
|
600
603
|
description?: string | undefined;
|
|
601
604
|
styleGuide?: {
|
|
602
605
|
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
@@ -613,16 +616,12 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
613
616
|
caseSensitive: boolean;
|
|
614
617
|
description?: string | undefined;
|
|
615
618
|
translations?: {
|
|
616
|
-
locale: string;
|
|
617
619
|
translation: string;
|
|
620
|
+
locale: string;
|
|
618
621
|
description?: string | undefined;
|
|
619
622
|
}[] | undefined;
|
|
620
623
|
}[] | undefined;
|
|
621
624
|
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
622
|
-
translationExamples?: {
|
|
623
|
-
sourceValue: string;
|
|
624
|
-
translatedValue: string;
|
|
625
|
-
}[] | undefined;
|
|
626
625
|
} | undefined;
|
|
627
626
|
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
|
|
628
627
|
}, {
|
|
@@ -632,17 +631,16 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
632
631
|
callbackToken: string;
|
|
633
632
|
sourceLocale: string;
|
|
634
633
|
contentUnits: [{
|
|
635
|
-
id: string;
|
|
636
634
|
segments: [{
|
|
637
635
|
sourceValue: string;
|
|
638
636
|
translations: [{
|
|
639
637
|
value: string;
|
|
640
|
-
locale: string;
|
|
641
638
|
id: string;
|
|
639
|
+
locale: string;
|
|
642
640
|
}, ...{
|
|
643
641
|
value: string;
|
|
644
|
-
locale: string;
|
|
645
642
|
id: string;
|
|
643
|
+
locale: string;
|
|
646
644
|
}[]];
|
|
647
645
|
tmMatch?: {
|
|
648
646
|
sourceValue: string;
|
|
@@ -652,34 +650,34 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
652
650
|
sourceValue: string;
|
|
653
651
|
translations: [{
|
|
654
652
|
value: string;
|
|
655
|
-
locale: string;
|
|
656
653
|
id: string;
|
|
654
|
+
locale: string;
|
|
657
655
|
}, ...{
|
|
658
656
|
value: string;
|
|
659
|
-
locale: string;
|
|
660
657
|
id: string;
|
|
658
|
+
locale: string;
|
|
661
659
|
}[]];
|
|
662
660
|
tmMatch?: {
|
|
663
661
|
sourceValue: string;
|
|
664
662
|
translatedValue: string;
|
|
665
663
|
} | undefined;
|
|
666
664
|
}[]];
|
|
665
|
+
id: string;
|
|
667
666
|
context?: {
|
|
668
667
|
description?: string | undefined;
|
|
669
668
|
} | undefined;
|
|
670
669
|
characterLimit?: number | undefined;
|
|
671
670
|
}, ...{
|
|
672
|
-
id: string;
|
|
673
671
|
segments: [{
|
|
674
672
|
sourceValue: string;
|
|
675
673
|
translations: [{
|
|
676
674
|
value: string;
|
|
677
|
-
locale: string;
|
|
678
675
|
id: string;
|
|
676
|
+
locale: string;
|
|
679
677
|
}, ...{
|
|
680
678
|
value: string;
|
|
681
|
-
locale: string;
|
|
682
679
|
id: string;
|
|
680
|
+
locale: string;
|
|
683
681
|
}[]];
|
|
684
682
|
tmMatch?: {
|
|
685
683
|
sourceValue: string;
|
|
@@ -689,24 +687,29 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
689
687
|
sourceValue: string;
|
|
690
688
|
translations: [{
|
|
691
689
|
value: string;
|
|
692
|
-
locale: string;
|
|
693
690
|
id: string;
|
|
691
|
+
locale: string;
|
|
694
692
|
}, ...{
|
|
695
693
|
value: string;
|
|
696
|
-
locale: string;
|
|
697
694
|
id: string;
|
|
695
|
+
locale: string;
|
|
698
696
|
}[]];
|
|
699
697
|
tmMatch?: {
|
|
700
698
|
sourceValue: string;
|
|
701
699
|
translatedValue: string;
|
|
702
700
|
} | undefined;
|
|
703
701
|
}[]];
|
|
702
|
+
id: string;
|
|
704
703
|
context?: {
|
|
705
704
|
description?: string | undefined;
|
|
706
705
|
} | undefined;
|
|
707
706
|
characterLimit?: number | undefined;
|
|
708
707
|
}[]];
|
|
709
708
|
context?: {
|
|
709
|
+
translationExamples?: {
|
|
710
|
+
sourceValue: string;
|
|
711
|
+
translatedValue: string;
|
|
712
|
+
}[] | undefined;
|
|
710
713
|
description?: string | undefined;
|
|
711
714
|
styleGuide?: {
|
|
712
715
|
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
@@ -723,18 +726,14 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
723
726
|
forbidden?: boolean | undefined;
|
|
724
727
|
caseSensitive?: boolean | undefined;
|
|
725
728
|
translations?: {
|
|
726
|
-
locale: string;
|
|
727
729
|
translation: string;
|
|
730
|
+
locale: string;
|
|
728
731
|
description?: string | undefined;
|
|
729
732
|
}[] | undefined;
|
|
730
733
|
}[] | undefined;
|
|
731
734
|
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
732
|
-
translationExamples?: {
|
|
733
|
-
sourceValue: string;
|
|
734
|
-
translatedValue: string;
|
|
735
|
-
}[] | undefined;
|
|
736
735
|
} | undefined;
|
|
737
|
-
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" |
|
|
736
|
+
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
|
|
738
737
|
}>;
|
|
739
738
|
export declare const LQA_ASYNC_HEADERS_SCHEMA: z.ZodObject<{
|
|
740
739
|
'x-fake-processing': z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
@@ -757,6 +756,7 @@ export declare const LQA_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
|
|
|
757
756
|
status: z.ZodLiteral<"success">;
|
|
758
757
|
originCorrelationId: z.ZodString;
|
|
759
758
|
data: z.ZodArray<z.ZodObject<{
|
|
759
|
+
polyglotRefId: z.ZodString;
|
|
760
760
|
contentUnitId: z.ZodString;
|
|
761
761
|
translationId: z.ZodString;
|
|
762
762
|
suggestion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -785,6 +785,7 @@ export declare const LQA_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
|
|
|
785
785
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
786
786
|
comment?: string | null | undefined;
|
|
787
787
|
}[];
|
|
788
|
+
polyglotRefId: string;
|
|
788
789
|
contentUnitId: string;
|
|
789
790
|
translationId: string;
|
|
790
791
|
score: number;
|
|
@@ -795,6 +796,7 @@ export declare const LQA_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
|
|
|
795
796
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
796
797
|
comment?: string | null | undefined;
|
|
797
798
|
}[];
|
|
799
|
+
polyglotRefId: string;
|
|
798
800
|
contentUnitId: string;
|
|
799
801
|
translationId: string;
|
|
800
802
|
score: number;
|
|
@@ -805,17 +807,20 @@ export declare const LQA_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
|
|
|
805
807
|
errorCode: z.ZodString;
|
|
806
808
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
807
809
|
} & {
|
|
810
|
+
polyglotRefId: z.ZodString;
|
|
808
811
|
contentUnitId: z.ZodString;
|
|
809
812
|
translationId: z.ZodString;
|
|
810
813
|
}, "strip", z.ZodTypeAny, {
|
|
811
814
|
message: string;
|
|
812
815
|
errorCode: string;
|
|
816
|
+
polyglotRefId: string;
|
|
813
817
|
contentUnitId: string;
|
|
814
818
|
translationId: string;
|
|
815
819
|
details?: Record<string, unknown> | undefined;
|
|
816
820
|
}, {
|
|
817
821
|
message: string;
|
|
818
822
|
errorCode: string;
|
|
823
|
+
polyglotRefId: string;
|
|
819
824
|
contentUnitId: string;
|
|
820
825
|
translationId: string;
|
|
821
826
|
details?: Record<string, unknown> | undefined;
|
|
@@ -829,6 +834,7 @@ export declare const LQA_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
|
|
|
829
834
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
830
835
|
comment?: string | null | undefined;
|
|
831
836
|
}[];
|
|
837
|
+
polyglotRefId: string;
|
|
832
838
|
contentUnitId: string;
|
|
833
839
|
translationId: string;
|
|
834
840
|
score: number;
|
|
@@ -837,6 +843,7 @@ export declare const LQA_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
|
|
|
837
843
|
errors?: {
|
|
838
844
|
message: string;
|
|
839
845
|
errorCode: string;
|
|
846
|
+
polyglotRefId: string;
|
|
840
847
|
contentUnitId: string;
|
|
841
848
|
translationId: string;
|
|
842
849
|
details?: Record<string, unknown> | undefined;
|
|
@@ -850,6 +857,7 @@ export declare const LQA_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
|
|
|
850
857
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
851
858
|
comment?: string | null | undefined;
|
|
852
859
|
}[];
|
|
860
|
+
polyglotRefId: string;
|
|
853
861
|
contentUnitId: string;
|
|
854
862
|
translationId: string;
|
|
855
863
|
score: number;
|
|
@@ -858,6 +866,7 @@ export declare const LQA_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
|
|
|
858
866
|
errors?: {
|
|
859
867
|
message: string;
|
|
860
868
|
errorCode: string;
|
|
869
|
+
polyglotRefId: string;
|
|
861
870
|
contentUnitId: string;
|
|
862
871
|
translationId: string;
|
|
863
872
|
details?: Record<string, unknown> | undefined;
|
|
@@ -867,6 +876,7 @@ export declare const LQA_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status"
|
|
|
867
876
|
status: z.ZodLiteral<"success">;
|
|
868
877
|
originCorrelationId: z.ZodString;
|
|
869
878
|
data: z.ZodArray<z.ZodObject<{
|
|
879
|
+
polyglotRefId: z.ZodString;
|
|
870
880
|
contentUnitId: z.ZodString;
|
|
871
881
|
translationId: z.ZodString;
|
|
872
882
|
suggestion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -895,6 +905,7 @@ export declare const LQA_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status"
|
|
|
895
905
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
896
906
|
comment?: string | null | undefined;
|
|
897
907
|
}[];
|
|
908
|
+
polyglotRefId: string;
|
|
898
909
|
contentUnitId: string;
|
|
899
910
|
translationId: string;
|
|
900
911
|
score: number;
|
|
@@ -905,6 +916,7 @@ export declare const LQA_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status"
|
|
|
905
916
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
906
917
|
comment?: string | null | undefined;
|
|
907
918
|
}[];
|
|
919
|
+
polyglotRefId: string;
|
|
908
920
|
contentUnitId: string;
|
|
909
921
|
translationId: string;
|
|
910
922
|
score: number;
|
|
@@ -915,17 +927,20 @@ export declare const LQA_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status"
|
|
|
915
927
|
errorCode: z.ZodString;
|
|
916
928
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
917
929
|
} & {
|
|
930
|
+
polyglotRefId: z.ZodString;
|
|
918
931
|
contentUnitId: z.ZodString;
|
|
919
932
|
translationId: z.ZodString;
|
|
920
933
|
}, "strip", z.ZodTypeAny, {
|
|
921
934
|
message: string;
|
|
922
935
|
errorCode: string;
|
|
936
|
+
polyglotRefId: string;
|
|
923
937
|
contentUnitId: string;
|
|
924
938
|
translationId: string;
|
|
925
939
|
details?: Record<string, unknown> | undefined;
|
|
926
940
|
}, {
|
|
927
941
|
message: string;
|
|
928
942
|
errorCode: string;
|
|
943
|
+
polyglotRefId: string;
|
|
929
944
|
contentUnitId: string;
|
|
930
945
|
translationId: string;
|
|
931
946
|
details?: Record<string, unknown> | undefined;
|
|
@@ -939,6 +954,7 @@ export declare const LQA_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status"
|
|
|
939
954
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
940
955
|
comment?: string | null | undefined;
|
|
941
956
|
}[];
|
|
957
|
+
polyglotRefId: string;
|
|
942
958
|
contentUnitId: string;
|
|
943
959
|
translationId: string;
|
|
944
960
|
score: number;
|
|
@@ -947,6 +963,7 @@ export declare const LQA_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status"
|
|
|
947
963
|
errors?: {
|
|
948
964
|
message: string;
|
|
949
965
|
errorCode: string;
|
|
966
|
+
polyglotRefId: string;
|
|
950
967
|
contentUnitId: string;
|
|
951
968
|
translationId: string;
|
|
952
969
|
details?: Record<string, unknown> | undefined;
|
|
@@ -960,6 +977,7 @@ export declare const LQA_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status"
|
|
|
960
977
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
961
978
|
comment?: string | null | undefined;
|
|
962
979
|
}[];
|
|
980
|
+
polyglotRefId: string;
|
|
963
981
|
contentUnitId: string;
|
|
964
982
|
translationId: string;
|
|
965
983
|
score: number;
|
|
@@ -968,6 +986,7 @@ export declare const LQA_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status"
|
|
|
968
986
|
errors?: {
|
|
969
987
|
message: string;
|
|
970
988
|
errorCode: string;
|
|
989
|
+
polyglotRefId: string;
|
|
971
990
|
contentUnitId: string;
|
|
972
991
|
translationId: string;
|
|
973
992
|
details?: Record<string, unknown> | undefined;
|