@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 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 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 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;
|
|
@@ -73,12 +73,12 @@ declare const CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
73
73
|
value: z.ZodEffects<z.ZodString, string, string>;
|
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
|
75
75
|
value: string;
|
|
76
|
-
locale: string;
|
|
77
76
|
id: string;
|
|
77
|
+
locale: string;
|
|
78
78
|
}, {
|
|
79
79
|
value: string;
|
|
80
|
-
locale: string;
|
|
81
80
|
id: string;
|
|
81
|
+
locale: string;
|
|
82
82
|
}>, "atleastone">;
|
|
83
83
|
tmMatch: z.ZodOptional<z.ZodObject<{
|
|
84
84
|
sourceValue: z.ZodString;
|
|
@@ -94,12 +94,12 @@ declare const CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
94
94
|
sourceValue: string;
|
|
95
95
|
translations: [{
|
|
96
96
|
value: string;
|
|
97
|
-
locale: string;
|
|
98
97
|
id: string;
|
|
98
|
+
locale: string;
|
|
99
99
|
}, ...{
|
|
100
100
|
value: string;
|
|
101
|
-
locale: string;
|
|
102
101
|
id: string;
|
|
102
|
+
locale: string;
|
|
103
103
|
}[]];
|
|
104
104
|
tmMatch?: {
|
|
105
105
|
sourceValue: string;
|
|
@@ -109,12 +109,12 @@ declare const CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
109
109
|
sourceValue: string;
|
|
110
110
|
translations: [{
|
|
111
111
|
value: string;
|
|
112
|
-
locale: string;
|
|
113
112
|
id: string;
|
|
113
|
+
locale: string;
|
|
114
114
|
}, ...{
|
|
115
115
|
value: string;
|
|
116
|
-
locale: string;
|
|
117
116
|
id: string;
|
|
117
|
+
locale: string;
|
|
118
118
|
}[]];
|
|
119
119
|
tmMatch?: {
|
|
120
120
|
sourceValue: string;
|
|
@@ -122,17 +122,16 @@ declare const CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
122
122
|
} | undefined;
|
|
123
123
|
}>, "atleastone">;
|
|
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 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 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;
|
|
@@ -243,12 +243,12 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
243
243
|
translation: z.ZodString;
|
|
244
244
|
description: z.ZodOptional<z.ZodString>;
|
|
245
245
|
}, "strip", z.ZodTypeAny, {
|
|
246
|
-
locale: string;
|
|
247
246
|
translation: string;
|
|
247
|
+
locale: string;
|
|
248
248
|
description?: string | undefined;
|
|
249
249
|
}, {
|
|
250
|
-
locale: string;
|
|
251
250
|
translation: string;
|
|
251
|
+
locale: string;
|
|
252
252
|
description?: string | undefined;
|
|
253
253
|
}>, "many">>;
|
|
254
254
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -258,8 +258,8 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
258
258
|
caseSensitive: boolean;
|
|
259
259
|
description?: string | undefined;
|
|
260
260
|
translations?: {
|
|
261
|
-
locale: string;
|
|
262
261
|
translation: string;
|
|
262
|
+
locale: string;
|
|
263
263
|
description?: string | undefined;
|
|
264
264
|
}[] | undefined;
|
|
265
265
|
}, {
|
|
@@ -269,8 +269,8 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
269
269
|
forbidden?: boolean | undefined;
|
|
270
270
|
caseSensitive?: boolean | undefined;
|
|
271
271
|
translations?: {
|
|
272
|
-
locale: string;
|
|
273
272
|
translation: string;
|
|
273
|
+
locale: string;
|
|
274
274
|
description?: string | undefined;
|
|
275
275
|
}[] | undefined;
|
|
276
276
|
}>, {
|
|
@@ -280,8 +280,8 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
280
280
|
caseSensitive: boolean;
|
|
281
281
|
description?: string | undefined;
|
|
282
282
|
translations?: {
|
|
283
|
-
locale: string;
|
|
284
283
|
translation: string;
|
|
284
|
+
locale: string;
|
|
285
285
|
description?: string | undefined;
|
|
286
286
|
}[] | undefined;
|
|
287
287
|
}, {
|
|
@@ -291,8 +291,8 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
291
291
|
forbidden?: boolean | undefined;
|
|
292
292
|
caseSensitive?: boolean | undefined;
|
|
293
293
|
translations?: {
|
|
294
|
-
locale: string;
|
|
295
294
|
translation: string;
|
|
295
|
+
locale: string;
|
|
296
296
|
description?: string | undefined;
|
|
297
297
|
}[] | undefined;
|
|
298
298
|
}>, "many">>;
|
|
@@ -308,6 +308,10 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
308
308
|
translatedValue: string;
|
|
309
309
|
}>, "many">>;
|
|
310
310
|
}, "strip", z.ZodTypeAny, {
|
|
311
|
+
translationExamples?: {
|
|
312
|
+
sourceValue: string;
|
|
313
|
+
translatedValue: string;
|
|
314
|
+
}[] | undefined;
|
|
311
315
|
description?: string | undefined;
|
|
312
316
|
styleGuide?: {
|
|
313
317
|
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
@@ -324,17 +328,17 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
324
328
|
caseSensitive: boolean;
|
|
325
329
|
description?: string | undefined;
|
|
326
330
|
translations?: {
|
|
327
|
-
locale: string;
|
|
328
331
|
translation: string;
|
|
332
|
+
locale: string;
|
|
329
333
|
description?: string | undefined;
|
|
330
334
|
}[] | undefined;
|
|
331
335
|
}[] | undefined;
|
|
332
336
|
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
337
|
+
}, {
|
|
333
338
|
translationExamples?: {
|
|
334
339
|
sourceValue: string;
|
|
335
340
|
translatedValue: string;
|
|
336
341
|
}[] | undefined;
|
|
337
|
-
}, {
|
|
338
342
|
description?: string | undefined;
|
|
339
343
|
styleGuide?: {
|
|
340
344
|
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
@@ -351,24 +355,19 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
351
355
|
forbidden?: boolean | undefined;
|
|
352
356
|
caseSensitive?: boolean | undefined;
|
|
353
357
|
translations?: {
|
|
354
|
-
locale: string;
|
|
355
358
|
translation: string;
|
|
359
|
+
locale: string;
|
|
356
360
|
description?: string | undefined;
|
|
357
361
|
}[] | undefined;
|
|
358
362
|
}[] | undefined;
|
|
359
363
|
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
360
|
-
translationExamples?: {
|
|
361
|
-
sourceValue: string;
|
|
362
|
-
translatedValue: string;
|
|
363
|
-
}[] | undefined;
|
|
364
364
|
}>>;
|
|
365
|
-
integration: z.ZodOptional<z.
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
}>, "FT-OpenAI" | "Claude" | "GPT" | "Gemini", "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4">>;
|
|
365
|
+
integration: z.ZodOptional<z.ZodNativeEnum<{
|
|
366
|
+
readonly FINETUNED_OPENAI: "FT-OpenAI";
|
|
367
|
+
readonly CLAUDE: "Claude";
|
|
368
|
+
readonly GPT: "GPT";
|
|
369
|
+
readonly GEMINI: "Gemini";
|
|
370
|
+
}>>;
|
|
372
371
|
contentUnits: z.ZodArray<z.ZodObject<{
|
|
373
372
|
id: z.ZodString;
|
|
374
373
|
context: z.ZodOptional<z.ZodObject<{
|
|
@@ -387,12 +386,12 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
387
386
|
value: z.ZodEffects<z.ZodString, string, string>;
|
|
388
387
|
}, "strip", z.ZodTypeAny, {
|
|
389
388
|
value: string;
|
|
390
|
-
locale: string;
|
|
391
389
|
id: string;
|
|
390
|
+
locale: string;
|
|
392
391
|
}, {
|
|
393
392
|
value: string;
|
|
394
|
-
locale: string;
|
|
395
393
|
id: string;
|
|
394
|
+
locale: string;
|
|
396
395
|
}>, "atleastone">;
|
|
397
396
|
tmMatch: z.ZodOptional<z.ZodObject<{
|
|
398
397
|
sourceValue: z.ZodString;
|
|
@@ -408,12 +407,12 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
408
407
|
sourceValue: string;
|
|
409
408
|
translations: [{
|
|
410
409
|
value: string;
|
|
411
|
-
locale: string;
|
|
412
410
|
id: string;
|
|
411
|
+
locale: string;
|
|
413
412
|
}, ...{
|
|
414
413
|
value: string;
|
|
415
|
-
locale: string;
|
|
416
414
|
id: string;
|
|
415
|
+
locale: string;
|
|
417
416
|
}[]];
|
|
418
417
|
tmMatch?: {
|
|
419
418
|
sourceValue: string;
|
|
@@ -423,12 +422,12 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
423
422
|
sourceValue: string;
|
|
424
423
|
translations: [{
|
|
425
424
|
value: string;
|
|
426
|
-
locale: string;
|
|
427
425
|
id: string;
|
|
426
|
+
locale: string;
|
|
428
427
|
}, ...{
|
|
429
428
|
value: string;
|
|
430
|
-
locale: string;
|
|
431
429
|
id: string;
|
|
430
|
+
locale: string;
|
|
432
431
|
}[]];
|
|
433
432
|
tmMatch?: {
|
|
434
433
|
sourceValue: string;
|
|
@@ -436,17 +435,16 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
436
435
|
} | undefined;
|
|
437
436
|
}>, "atleastone">;
|
|
438
437
|
}, "strip", z.ZodTypeAny, {
|
|
439
|
-
id: string;
|
|
440
438
|
segments: [{
|
|
441
439
|
sourceValue: string;
|
|
442
440
|
translations: [{
|
|
443
441
|
value: string;
|
|
444
|
-
locale: string;
|
|
445
442
|
id: string;
|
|
443
|
+
locale: string;
|
|
446
444
|
}, ...{
|
|
447
445
|
value: string;
|
|
448
|
-
locale: string;
|
|
449
446
|
id: string;
|
|
447
|
+
locale: string;
|
|
450
448
|
}[]];
|
|
451
449
|
tmMatch?: {
|
|
452
450
|
sourceValue: string;
|
|
@@ -456,34 +454,34 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
456
454
|
sourceValue: string;
|
|
457
455
|
translations: [{
|
|
458
456
|
value: string;
|
|
459
|
-
locale: string;
|
|
460
457
|
id: string;
|
|
458
|
+
locale: string;
|
|
461
459
|
}, ...{
|
|
462
460
|
value: string;
|
|
463
|
-
locale: string;
|
|
464
461
|
id: string;
|
|
462
|
+
locale: string;
|
|
465
463
|
}[]];
|
|
466
464
|
tmMatch?: {
|
|
467
465
|
sourceValue: string;
|
|
468
466
|
translatedValue: string;
|
|
469
467
|
} | undefined;
|
|
470
468
|
}[]];
|
|
469
|
+
id: string;
|
|
471
470
|
context?: {
|
|
472
471
|
description?: string | undefined;
|
|
473
472
|
} | undefined;
|
|
474
473
|
characterLimit?: number | undefined;
|
|
475
474
|
}, {
|
|
476
|
-
id: string;
|
|
477
475
|
segments: [{
|
|
478
476
|
sourceValue: string;
|
|
479
477
|
translations: [{
|
|
480
478
|
value: string;
|
|
481
|
-
locale: string;
|
|
482
479
|
id: string;
|
|
480
|
+
locale: string;
|
|
483
481
|
}, ...{
|
|
484
482
|
value: string;
|
|
485
|
-
locale: string;
|
|
486
483
|
id: string;
|
|
484
|
+
locale: string;
|
|
487
485
|
}[]];
|
|
488
486
|
tmMatch?: {
|
|
489
487
|
sourceValue: string;
|
|
@@ -493,18 +491,19 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
493
491
|
sourceValue: string;
|
|
494
492
|
translations: [{
|
|
495
493
|
value: string;
|
|
496
|
-
locale: string;
|
|
497
494
|
id: string;
|
|
495
|
+
locale: string;
|
|
498
496
|
}, ...{
|
|
499
497
|
value: string;
|
|
500
|
-
locale: string;
|
|
501
498
|
id: string;
|
|
499
|
+
locale: string;
|
|
502
500
|
}[]];
|
|
503
501
|
tmMatch?: {
|
|
504
502
|
sourceValue: string;
|
|
505
503
|
translatedValue: string;
|
|
506
504
|
} | undefined;
|
|
507
505
|
}[]];
|
|
506
|
+
id: string;
|
|
508
507
|
context?: {
|
|
509
508
|
description?: string | undefined;
|
|
510
509
|
} | undefined;
|
|
@@ -513,17 +512,16 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
513
512
|
}, "strip", z.ZodTypeAny, {
|
|
514
513
|
sourceLocale: string;
|
|
515
514
|
contentUnits: [{
|
|
516
|
-
id: string;
|
|
517
515
|
segments: [{
|
|
518
516
|
sourceValue: string;
|
|
519
517
|
translations: [{
|
|
520
518
|
value: string;
|
|
521
|
-
locale: string;
|
|
522
519
|
id: string;
|
|
520
|
+
locale: string;
|
|
523
521
|
}, ...{
|
|
524
522
|
value: string;
|
|
525
|
-
locale: string;
|
|
526
523
|
id: string;
|
|
524
|
+
locale: string;
|
|
527
525
|
}[]];
|
|
528
526
|
tmMatch?: {
|
|
529
527
|
sourceValue: string;
|
|
@@ -533,34 +531,34 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
533
531
|
sourceValue: string;
|
|
534
532
|
translations: [{
|
|
535
533
|
value: string;
|
|
536
|
-
locale: string;
|
|
537
534
|
id: string;
|
|
535
|
+
locale: string;
|
|
538
536
|
}, ...{
|
|
539
537
|
value: string;
|
|
540
|
-
locale: string;
|
|
541
538
|
id: string;
|
|
539
|
+
locale: string;
|
|
542
540
|
}[]];
|
|
543
541
|
tmMatch?: {
|
|
544
542
|
sourceValue: string;
|
|
545
543
|
translatedValue: string;
|
|
546
544
|
} | undefined;
|
|
547
545
|
}[]];
|
|
546
|
+
id: string;
|
|
548
547
|
context?: {
|
|
549
548
|
description?: string | undefined;
|
|
550
549
|
} | undefined;
|
|
551
550
|
characterLimit?: number | undefined;
|
|
552
551
|
}, ...{
|
|
553
|
-
id: string;
|
|
554
552
|
segments: [{
|
|
555
553
|
sourceValue: string;
|
|
556
554
|
translations: [{
|
|
557
555
|
value: string;
|
|
558
|
-
locale: string;
|
|
559
556
|
id: string;
|
|
557
|
+
locale: string;
|
|
560
558
|
}, ...{
|
|
561
559
|
value: string;
|
|
562
|
-
locale: string;
|
|
563
560
|
id: string;
|
|
561
|
+
locale: string;
|
|
564
562
|
}[]];
|
|
565
563
|
tmMatch?: {
|
|
566
564
|
sourceValue: string;
|
|
@@ -570,24 +568,29 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
570
568
|
sourceValue: string;
|
|
571
569
|
translations: [{
|
|
572
570
|
value: string;
|
|
573
|
-
locale: string;
|
|
574
571
|
id: string;
|
|
572
|
+
locale: string;
|
|
575
573
|
}, ...{
|
|
576
574
|
value: string;
|
|
577
|
-
locale: string;
|
|
578
575
|
id: string;
|
|
576
|
+
locale: string;
|
|
579
577
|
}[]];
|
|
580
578
|
tmMatch?: {
|
|
581
579
|
sourceValue: string;
|
|
582
580
|
translatedValue: string;
|
|
583
581
|
} | undefined;
|
|
584
582
|
}[]];
|
|
583
|
+
id: string;
|
|
585
584
|
context?: {
|
|
586
585
|
description?: string | undefined;
|
|
587
586
|
} | undefined;
|
|
588
587
|
characterLimit?: number | undefined;
|
|
589
588
|
}[]];
|
|
590
589
|
context?: {
|
|
590
|
+
translationExamples?: {
|
|
591
|
+
sourceValue: string;
|
|
592
|
+
translatedValue: string;
|
|
593
|
+
}[] | undefined;
|
|
591
594
|
description?: string | undefined;
|
|
592
595
|
styleGuide?: {
|
|
593
596
|
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
@@ -604,32 +607,27 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
604
607
|
caseSensitive: boolean;
|
|
605
608
|
description?: string | undefined;
|
|
606
609
|
translations?: {
|
|
607
|
-
locale: string;
|
|
608
610
|
translation: string;
|
|
611
|
+
locale: string;
|
|
609
612
|
description?: string | undefined;
|
|
610
613
|
}[] | undefined;
|
|
611
614
|
}[] | undefined;
|
|
612
615
|
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
613
|
-
translationExamples?: {
|
|
614
|
-
sourceValue: string;
|
|
615
|
-
translatedValue: string;
|
|
616
|
-
}[] | undefined;
|
|
617
616
|
} | undefined;
|
|
618
617
|
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
|
|
619
618
|
}, {
|
|
620
619
|
sourceLocale: string;
|
|
621
620
|
contentUnits: [{
|
|
622
|
-
id: string;
|
|
623
621
|
segments: [{
|
|
624
622
|
sourceValue: string;
|
|
625
623
|
translations: [{
|
|
626
624
|
value: string;
|
|
627
|
-
locale: string;
|
|
628
625
|
id: string;
|
|
626
|
+
locale: string;
|
|
629
627
|
}, ...{
|
|
630
628
|
value: string;
|
|
631
|
-
locale: string;
|
|
632
629
|
id: string;
|
|
630
|
+
locale: string;
|
|
633
631
|
}[]];
|
|
634
632
|
tmMatch?: {
|
|
635
633
|
sourceValue: string;
|
|
@@ -639,34 +637,34 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
639
637
|
sourceValue: string;
|
|
640
638
|
translations: [{
|
|
641
639
|
value: string;
|
|
642
|
-
locale: string;
|
|
643
640
|
id: string;
|
|
641
|
+
locale: string;
|
|
644
642
|
}, ...{
|
|
645
643
|
value: string;
|
|
646
|
-
locale: string;
|
|
647
644
|
id: string;
|
|
645
|
+
locale: string;
|
|
648
646
|
}[]];
|
|
649
647
|
tmMatch?: {
|
|
650
648
|
sourceValue: string;
|
|
651
649
|
translatedValue: string;
|
|
652
650
|
} | undefined;
|
|
653
651
|
}[]];
|
|
652
|
+
id: string;
|
|
654
653
|
context?: {
|
|
655
654
|
description?: string | undefined;
|
|
656
655
|
} | undefined;
|
|
657
656
|
characterLimit?: number | undefined;
|
|
658
657
|
}, ...{
|
|
659
|
-
id: string;
|
|
660
658
|
segments: [{
|
|
661
659
|
sourceValue: string;
|
|
662
660
|
translations: [{
|
|
663
661
|
value: string;
|
|
664
|
-
locale: string;
|
|
665
662
|
id: string;
|
|
663
|
+
locale: string;
|
|
666
664
|
}, ...{
|
|
667
665
|
value: string;
|
|
668
|
-
locale: string;
|
|
669
666
|
id: string;
|
|
667
|
+
locale: string;
|
|
670
668
|
}[]];
|
|
671
669
|
tmMatch?: {
|
|
672
670
|
sourceValue: string;
|
|
@@ -676,24 +674,29 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
676
674
|
sourceValue: string;
|
|
677
675
|
translations: [{
|
|
678
676
|
value: string;
|
|
679
|
-
locale: string;
|
|
680
677
|
id: string;
|
|
678
|
+
locale: string;
|
|
681
679
|
}, ...{
|
|
682
680
|
value: string;
|
|
683
|
-
locale: string;
|
|
684
681
|
id: string;
|
|
682
|
+
locale: string;
|
|
685
683
|
}[]];
|
|
686
684
|
tmMatch?: {
|
|
687
685
|
sourceValue: string;
|
|
688
686
|
translatedValue: string;
|
|
689
687
|
} | undefined;
|
|
690
688
|
}[]];
|
|
689
|
+
id: string;
|
|
691
690
|
context?: {
|
|
692
691
|
description?: string | undefined;
|
|
693
692
|
} | undefined;
|
|
694
693
|
characterLimit?: number | undefined;
|
|
695
694
|
}[]];
|
|
696
695
|
context?: {
|
|
696
|
+
translationExamples?: {
|
|
697
|
+
sourceValue: string;
|
|
698
|
+
translatedValue: string;
|
|
699
|
+
}[] | undefined;
|
|
697
700
|
description?: string | undefined;
|
|
698
701
|
styleGuide?: {
|
|
699
702
|
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
@@ -710,18 +713,14 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
|
|
|
710
713
|
forbidden?: boolean | undefined;
|
|
711
714
|
caseSensitive?: boolean | undefined;
|
|
712
715
|
translations?: {
|
|
713
|
-
locale: string;
|
|
714
716
|
translation: string;
|
|
717
|
+
locale: string;
|
|
715
718
|
description?: string | undefined;
|
|
716
719
|
}[] | undefined;
|
|
717
720
|
}[] | undefined;
|
|
718
721
|
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
719
|
-
translationExamples?: {
|
|
720
|
-
sourceValue: string;
|
|
721
|
-
translatedValue: string;
|
|
722
|
-
}[] | undefined;
|
|
723
722
|
} | undefined;
|
|
724
|
-
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" |
|
|
723
|
+
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
|
|
725
724
|
}>;
|
|
726
725
|
export declare const LQA_SYNC_HEADERS_SCHEMA: z.ZodObject<{
|
|
727
726
|
'x-fake-processing': z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
@@ -733,6 +732,7 @@ export declare const LQA_SYNC_HEADERS_SCHEMA: z.ZodObject<{
|
|
|
733
732
|
export declare const LQA_SYNC_RESPONSE_SCHEMA: z.ZodObject<{
|
|
734
733
|
integration: z.ZodString;
|
|
735
734
|
data: z.ZodArray<z.ZodObject<{
|
|
735
|
+
polyglotRefId: z.ZodString;
|
|
736
736
|
contentUnitId: z.ZodString;
|
|
737
737
|
translationId: z.ZodString;
|
|
738
738
|
suggestion: z.ZodNullable<z.ZodString>;
|
|
@@ -761,6 +761,7 @@ export declare const LQA_SYNC_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
761
761
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
762
762
|
comment: string | null;
|
|
763
763
|
}[];
|
|
764
|
+
polyglotRefId: string;
|
|
764
765
|
contentUnitId: string;
|
|
765
766
|
translationId: string;
|
|
766
767
|
suggestion: string | null;
|
|
@@ -771,6 +772,7 @@ export declare const LQA_SYNC_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
771
772
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
772
773
|
comment: string | null;
|
|
773
774
|
}[];
|
|
775
|
+
polyglotRefId: string;
|
|
774
776
|
contentUnitId: string;
|
|
775
777
|
translationId: string;
|
|
776
778
|
suggestion: string | null;
|
|
@@ -781,57 +783,64 @@ export declare const LQA_SYNC_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
781
783
|
errorCode: z.ZodString;
|
|
782
784
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
783
785
|
} & {
|
|
786
|
+
polyglotRefId: z.ZodString;
|
|
784
787
|
contentUnitId: z.ZodString;
|
|
785
788
|
translationId: z.ZodString;
|
|
786
789
|
}, "strip", z.ZodTypeAny, {
|
|
787
790
|
message: string;
|
|
788
791
|
errorCode: string;
|
|
792
|
+
polyglotRefId: string;
|
|
789
793
|
contentUnitId: string;
|
|
790
794
|
translationId: string;
|
|
791
795
|
details?: Record<string, unknown> | undefined;
|
|
792
796
|
}, {
|
|
793
797
|
message: string;
|
|
794
798
|
errorCode: string;
|
|
799
|
+
polyglotRefId: string;
|
|
795
800
|
contentUnitId: string;
|
|
796
801
|
translationId: string;
|
|
797
802
|
details?: Record<string, unknown> | undefined;
|
|
798
803
|
}>, "many">>;
|
|
799
804
|
}, "strip", z.ZodTypeAny, {
|
|
800
|
-
integration: string;
|
|
801
805
|
data: {
|
|
802
806
|
issues: {
|
|
803
807
|
category: string;
|
|
804
808
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
805
809
|
comment: string | null;
|
|
806
810
|
}[];
|
|
811
|
+
polyglotRefId: string;
|
|
807
812
|
contentUnitId: string;
|
|
808
813
|
translationId: string;
|
|
809
814
|
suggestion: string | null;
|
|
810
815
|
score: number;
|
|
811
816
|
}[];
|
|
817
|
+
integration: string;
|
|
812
818
|
errors?: {
|
|
813
819
|
message: string;
|
|
814
820
|
errorCode: string;
|
|
821
|
+
polyglotRefId: string;
|
|
815
822
|
contentUnitId: string;
|
|
816
823
|
translationId: string;
|
|
817
824
|
details?: Record<string, unknown> | undefined;
|
|
818
825
|
}[] | undefined;
|
|
819
826
|
}, {
|
|
820
|
-
integration: string;
|
|
821
827
|
data: {
|
|
822
828
|
issues: {
|
|
823
829
|
category: string;
|
|
824
830
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
825
831
|
comment: string | null;
|
|
826
832
|
}[];
|
|
833
|
+
polyglotRefId: string;
|
|
827
834
|
contentUnitId: string;
|
|
828
835
|
translationId: string;
|
|
829
836
|
suggestion: string | null;
|
|
830
837
|
score: number;
|
|
831
838
|
}[];
|
|
839
|
+
integration: string;
|
|
832
840
|
errors?: {
|
|
833
841
|
message: string;
|
|
834
842
|
errorCode: string;
|
|
843
|
+
polyglotRefId: string;
|
|
835
844
|
contentUnitId: string;
|
|
836
845
|
translationId: string;
|
|
837
846
|
details?: Record<string, unknown> | undefined;
|