@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
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
2
|
+
export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
3
3
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
4
4
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
5
5
|
sourceLocale: z.ZodEffects<z.ZodString, string, string>;
|
|
6
6
|
targetLocale: z.ZodEffects<z.ZodString, string, string>;
|
|
7
|
-
integration: z.ZodOptional<z.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}>, "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator", "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator">>;
|
|
7
|
+
integration: z.ZodOptional<z.ZodNativeEnum<{
|
|
8
|
+
readonly FINETUNED_OPENAI: "FT-OpenAI";
|
|
9
|
+
readonly CLAUDE: "Claude";
|
|
10
|
+
readonly GPT: "GPT";
|
|
11
|
+
readonly GEMINI: "Gemini";
|
|
12
|
+
readonly DEEPL: "DeepL";
|
|
13
|
+
readonly GOOGLE_TRANSLATE: "GoogleTranslate";
|
|
14
|
+
readonly MICROSOFT_TRANSLATOR: "MicrosoftTranslator";
|
|
15
|
+
}>>;
|
|
17
16
|
forceIntegration: z.ZodOptional<z.ZodBoolean>;
|
|
18
17
|
context: z.ZodOptional<z.ZodObject<{
|
|
19
18
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -60,12 +59,12 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
60
59
|
translation: z.ZodString;
|
|
61
60
|
description: z.ZodOptional<z.ZodString>;
|
|
62
61
|
}, "strip", z.ZodTypeAny, {
|
|
63
|
-
locale: string;
|
|
64
62
|
translation: string;
|
|
63
|
+
locale: string;
|
|
65
64
|
description?: string | undefined;
|
|
66
65
|
}, {
|
|
67
|
-
locale: string;
|
|
68
66
|
translation: string;
|
|
67
|
+
locale: string;
|
|
69
68
|
description?: string | undefined;
|
|
70
69
|
}>, "many">>;
|
|
71
70
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -75,8 +74,8 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
75
74
|
caseSensitive: boolean;
|
|
76
75
|
description?: string | undefined;
|
|
77
76
|
translations?: {
|
|
78
|
-
locale: string;
|
|
79
77
|
translation: string;
|
|
78
|
+
locale: string;
|
|
80
79
|
description?: string | undefined;
|
|
81
80
|
}[] | undefined;
|
|
82
81
|
}, {
|
|
@@ -86,8 +85,8 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
86
85
|
forbidden?: boolean | undefined;
|
|
87
86
|
caseSensitive?: boolean | undefined;
|
|
88
87
|
translations?: {
|
|
89
|
-
locale: string;
|
|
90
88
|
translation: string;
|
|
89
|
+
locale: string;
|
|
91
90
|
description?: string | undefined;
|
|
92
91
|
}[] | undefined;
|
|
93
92
|
}>, {
|
|
@@ -97,8 +96,8 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
97
96
|
caseSensitive: boolean;
|
|
98
97
|
description?: string | undefined;
|
|
99
98
|
translations?: {
|
|
100
|
-
locale: string;
|
|
101
99
|
translation: string;
|
|
100
|
+
locale: string;
|
|
102
101
|
description?: string | undefined;
|
|
103
102
|
}[] | undefined;
|
|
104
103
|
}, {
|
|
@@ -108,8 +107,8 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
108
107
|
forbidden?: boolean | undefined;
|
|
109
108
|
caseSensitive?: boolean | undefined;
|
|
110
109
|
translations?: {
|
|
111
|
-
locale: string;
|
|
112
110
|
translation: string;
|
|
111
|
+
locale: string;
|
|
113
112
|
description?: string | undefined;
|
|
114
113
|
}[] | undefined;
|
|
115
114
|
}>, "many">>;
|
|
@@ -125,6 +124,10 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
125
124
|
translatedValue: string;
|
|
126
125
|
}>, "many">>;
|
|
127
126
|
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
translationExamples?: {
|
|
128
|
+
sourceValue: string;
|
|
129
|
+
translatedValue: string;
|
|
130
|
+
}[] | undefined;
|
|
128
131
|
description?: string | undefined;
|
|
129
132
|
styleGuide?: {
|
|
130
133
|
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
@@ -141,17 +144,17 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
141
144
|
caseSensitive: boolean;
|
|
142
145
|
description?: string | undefined;
|
|
143
146
|
translations?: {
|
|
144
|
-
locale: string;
|
|
145
147
|
translation: string;
|
|
148
|
+
locale: string;
|
|
146
149
|
description?: string | undefined;
|
|
147
150
|
}[] | undefined;
|
|
148
151
|
}[] | undefined;
|
|
149
152
|
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
153
|
+
}, {
|
|
150
154
|
translationExamples?: {
|
|
151
155
|
sourceValue: string;
|
|
152
156
|
translatedValue: string;
|
|
153
157
|
}[] | undefined;
|
|
154
|
-
}, {
|
|
155
158
|
description?: string | undefined;
|
|
156
159
|
styleGuide?: {
|
|
157
160
|
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
@@ -168,16 +171,12 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
168
171
|
forbidden?: boolean | undefined;
|
|
169
172
|
caseSensitive?: boolean | undefined;
|
|
170
173
|
translations?: {
|
|
171
|
-
locale: string;
|
|
172
174
|
translation: string;
|
|
175
|
+
locale: string;
|
|
173
176
|
description?: string | undefined;
|
|
174
177
|
}[] | undefined;
|
|
175
178
|
}[] | undefined;
|
|
176
179
|
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
177
|
-
translationExamples?: {
|
|
178
|
-
sourceValue: string;
|
|
179
|
-
translatedValue: string;
|
|
180
|
-
}[] | undefined;
|
|
181
180
|
}>>;
|
|
182
181
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
183
182
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
@@ -264,323 +263,561 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
264
263
|
}, "strip", z.ZodTypeAny, {
|
|
265
264
|
value: string;
|
|
266
265
|
id: string;
|
|
267
|
-
translationExamples?: {
|
|
268
|
-
sourceValue: string;
|
|
269
|
-
translatedValue: string;
|
|
270
|
-
}[] | undefined;
|
|
271
266
|
tmMatch?: {
|
|
272
267
|
sourceValue: string;
|
|
273
268
|
translatedValue: string;
|
|
274
269
|
} | undefined;
|
|
275
|
-
}, {
|
|
276
|
-
value: string;
|
|
277
|
-
id: string;
|
|
278
270
|
translationExamples?: {
|
|
279
271
|
sourceValue: string;
|
|
280
272
|
translatedValue: string;
|
|
281
273
|
}[] | undefined;
|
|
274
|
+
}, {
|
|
275
|
+
value: string;
|
|
276
|
+
id: string;
|
|
282
277
|
tmMatch?: {
|
|
283
278
|
sourceValue: string;
|
|
284
279
|
translatedValue: string;
|
|
285
280
|
} | undefined;
|
|
286
|
-
}>, {
|
|
287
|
-
value: string;
|
|
288
|
-
id: string;
|
|
289
281
|
translationExamples?: {
|
|
290
282
|
sourceValue: string;
|
|
291
283
|
translatedValue: string;
|
|
292
284
|
}[] | undefined;
|
|
285
|
+
}>, {
|
|
286
|
+
value: string;
|
|
287
|
+
id: string;
|
|
293
288
|
tmMatch?: {
|
|
294
289
|
sourceValue: string;
|
|
295
290
|
translatedValue: string;
|
|
296
291
|
} | undefined;
|
|
297
|
-
}, {
|
|
298
|
-
value: string;
|
|
299
|
-
id: string;
|
|
300
292
|
translationExamples?: {
|
|
301
293
|
sourceValue: string;
|
|
302
294
|
translatedValue: string;
|
|
303
295
|
}[] | undefined;
|
|
296
|
+
}, {
|
|
297
|
+
value: string;
|
|
298
|
+
id: string;
|
|
304
299
|
tmMatch?: {
|
|
305
300
|
sourceValue: string;
|
|
306
301
|
translatedValue: string;
|
|
307
302
|
} | undefined;
|
|
308
|
-
}>, "atleastone">, [{
|
|
309
|
-
value: string;
|
|
310
|
-
id: string;
|
|
311
303
|
translationExamples?: {
|
|
312
304
|
sourceValue: string;
|
|
313
305
|
translatedValue: string;
|
|
314
306
|
}[] | undefined;
|
|
307
|
+
}>, "atleastone">, [{
|
|
308
|
+
value: string;
|
|
309
|
+
id: string;
|
|
315
310
|
tmMatch?: {
|
|
316
311
|
sourceValue: string;
|
|
317
312
|
translatedValue: string;
|
|
318
313
|
} | undefined;
|
|
319
|
-
}, ...{
|
|
320
|
-
value: string;
|
|
321
|
-
id: string;
|
|
322
314
|
translationExamples?: {
|
|
323
315
|
sourceValue: string;
|
|
324
316
|
translatedValue: string;
|
|
325
317
|
}[] | undefined;
|
|
318
|
+
}, ...{
|
|
319
|
+
value: string;
|
|
320
|
+
id: string;
|
|
326
321
|
tmMatch?: {
|
|
327
322
|
sourceValue: string;
|
|
328
323
|
translatedValue: string;
|
|
329
324
|
} | undefined;
|
|
330
|
-
}[]], [{
|
|
331
|
-
value: string;
|
|
332
|
-
id: string;
|
|
333
325
|
translationExamples?: {
|
|
334
326
|
sourceValue: string;
|
|
335
327
|
translatedValue: string;
|
|
336
328
|
}[] | undefined;
|
|
329
|
+
}[]], [{
|
|
330
|
+
value: string;
|
|
331
|
+
id: string;
|
|
337
332
|
tmMatch?: {
|
|
338
333
|
sourceValue: string;
|
|
339
334
|
translatedValue: string;
|
|
340
335
|
} | undefined;
|
|
341
|
-
}, ...{
|
|
342
|
-
value: string;
|
|
343
|
-
id: string;
|
|
344
336
|
translationExamples?: {
|
|
345
337
|
sourceValue: string;
|
|
346
338
|
translatedValue: string;
|
|
347
339
|
}[] | undefined;
|
|
340
|
+
}, ...{
|
|
341
|
+
value: string;
|
|
342
|
+
id: string;
|
|
348
343
|
tmMatch?: {
|
|
349
344
|
sourceValue: string;
|
|
350
345
|
translatedValue: string;
|
|
351
346
|
} | undefined;
|
|
347
|
+
translationExamples?: {
|
|
348
|
+
sourceValue: string;
|
|
349
|
+
translatedValue: string;
|
|
350
|
+
}[] | undefined;
|
|
352
351
|
}[]]>;
|
|
353
352
|
}, "strip", z.ZodTypeAny, {
|
|
354
|
-
id: string;
|
|
355
353
|
segments: [{
|
|
356
354
|
value: string;
|
|
357
355
|
id: string;
|
|
358
|
-
translationExamples?: {
|
|
359
|
-
sourceValue: string;
|
|
360
|
-
translatedValue: string;
|
|
361
|
-
}[] | undefined;
|
|
362
356
|
tmMatch?: {
|
|
363
357
|
sourceValue: string;
|
|
364
358
|
translatedValue: string;
|
|
365
359
|
} | undefined;
|
|
366
|
-
}, ...{
|
|
367
|
-
value: string;
|
|
368
|
-
id: string;
|
|
369
360
|
translationExamples?: {
|
|
370
361
|
sourceValue: string;
|
|
371
362
|
translatedValue: string;
|
|
372
363
|
}[] | undefined;
|
|
364
|
+
}, ...{
|
|
365
|
+
value: string;
|
|
366
|
+
id: string;
|
|
373
367
|
tmMatch?: {
|
|
374
368
|
sourceValue: string;
|
|
375
369
|
translatedValue: string;
|
|
376
370
|
} | undefined;
|
|
371
|
+
translationExamples?: {
|
|
372
|
+
sourceValue: string;
|
|
373
|
+
translatedValue: string;
|
|
374
|
+
}[] | undefined;
|
|
377
375
|
}[]];
|
|
376
|
+
id: string;
|
|
378
377
|
context?: {
|
|
379
378
|
description: string;
|
|
380
379
|
} | undefined;
|
|
381
380
|
characterLimit?: number | undefined;
|
|
382
381
|
}, {
|
|
383
|
-
id: string;
|
|
384
382
|
segments: [{
|
|
385
383
|
value: string;
|
|
386
384
|
id: string;
|
|
387
|
-
translationExamples?: {
|
|
388
|
-
sourceValue: string;
|
|
389
|
-
translatedValue: string;
|
|
390
|
-
}[] | undefined;
|
|
391
385
|
tmMatch?: {
|
|
392
386
|
sourceValue: string;
|
|
393
387
|
translatedValue: string;
|
|
394
388
|
} | undefined;
|
|
395
|
-
}, ...{
|
|
396
|
-
value: string;
|
|
397
|
-
id: string;
|
|
398
389
|
translationExamples?: {
|
|
399
390
|
sourceValue: string;
|
|
400
391
|
translatedValue: string;
|
|
401
392
|
}[] | undefined;
|
|
393
|
+
}, ...{
|
|
394
|
+
value: string;
|
|
395
|
+
id: string;
|
|
402
396
|
tmMatch?: {
|
|
403
397
|
sourceValue: string;
|
|
404
398
|
translatedValue: string;
|
|
405
399
|
} | undefined;
|
|
400
|
+
translationExamples?: {
|
|
401
|
+
sourceValue: string;
|
|
402
|
+
translatedValue: string;
|
|
403
|
+
}[] | undefined;
|
|
406
404
|
}[]];
|
|
405
|
+
id: string;
|
|
407
406
|
context?: {
|
|
408
407
|
description: string;
|
|
409
408
|
} | undefined;
|
|
410
409
|
characterLimit?: number | undefined;
|
|
411
410
|
}>, "atleastone">, [{
|
|
412
|
-
id: string;
|
|
413
411
|
segments: [{
|
|
414
412
|
value: string;
|
|
415
413
|
id: string;
|
|
416
|
-
translationExamples?: {
|
|
417
|
-
sourceValue: string;
|
|
418
|
-
translatedValue: string;
|
|
419
|
-
}[] | undefined;
|
|
420
414
|
tmMatch?: {
|
|
421
415
|
sourceValue: string;
|
|
422
416
|
translatedValue: string;
|
|
423
417
|
} | undefined;
|
|
424
|
-
}, ...{
|
|
425
|
-
value: string;
|
|
426
|
-
id: string;
|
|
427
418
|
translationExamples?: {
|
|
428
419
|
sourceValue: string;
|
|
429
420
|
translatedValue: string;
|
|
430
421
|
}[] | undefined;
|
|
422
|
+
}, ...{
|
|
423
|
+
value: string;
|
|
424
|
+
id: string;
|
|
431
425
|
tmMatch?: {
|
|
432
426
|
sourceValue: string;
|
|
433
427
|
translatedValue: string;
|
|
434
428
|
} | undefined;
|
|
429
|
+
translationExamples?: {
|
|
430
|
+
sourceValue: string;
|
|
431
|
+
translatedValue: string;
|
|
432
|
+
}[] | undefined;
|
|
435
433
|
}[]];
|
|
434
|
+
id: string;
|
|
436
435
|
context?: {
|
|
437
436
|
description: string;
|
|
438
437
|
} | undefined;
|
|
439
438
|
characterLimit?: number | undefined;
|
|
440
439
|
}, ...{
|
|
441
|
-
id: string;
|
|
442
440
|
segments: [{
|
|
443
441
|
value: string;
|
|
444
442
|
id: string;
|
|
445
|
-
translationExamples?: {
|
|
446
|
-
sourceValue: string;
|
|
447
|
-
translatedValue: string;
|
|
448
|
-
}[] | undefined;
|
|
449
443
|
tmMatch?: {
|
|
450
444
|
sourceValue: string;
|
|
451
445
|
translatedValue: string;
|
|
452
446
|
} | undefined;
|
|
453
|
-
}, ...{
|
|
454
|
-
value: string;
|
|
455
|
-
id: string;
|
|
456
447
|
translationExamples?: {
|
|
457
448
|
sourceValue: string;
|
|
458
449
|
translatedValue: string;
|
|
459
450
|
}[] | undefined;
|
|
451
|
+
}, ...{
|
|
452
|
+
value: string;
|
|
453
|
+
id: string;
|
|
460
454
|
tmMatch?: {
|
|
461
455
|
sourceValue: string;
|
|
462
456
|
translatedValue: string;
|
|
463
457
|
} | undefined;
|
|
458
|
+
translationExamples?: {
|
|
459
|
+
sourceValue: string;
|
|
460
|
+
translatedValue: string;
|
|
461
|
+
}[] | undefined;
|
|
464
462
|
}[]];
|
|
463
|
+
id: string;
|
|
465
464
|
context?: {
|
|
466
465
|
description: string;
|
|
467
466
|
} | undefined;
|
|
468
467
|
characterLimit?: number | undefined;
|
|
469
468
|
}[]], [{
|
|
470
|
-
id: string;
|
|
471
469
|
segments: [{
|
|
472
470
|
value: string;
|
|
473
471
|
id: string;
|
|
472
|
+
tmMatch?: {
|
|
473
|
+
sourceValue: string;
|
|
474
|
+
translatedValue: string;
|
|
475
|
+
} | undefined;
|
|
474
476
|
translationExamples?: {
|
|
475
477
|
sourceValue: string;
|
|
476
478
|
translatedValue: string;
|
|
477
479
|
}[] | undefined;
|
|
480
|
+
}, ...{
|
|
481
|
+
value: string;
|
|
482
|
+
id: string;
|
|
478
483
|
tmMatch?: {
|
|
479
484
|
sourceValue: string;
|
|
480
485
|
translatedValue: string;
|
|
481
486
|
} | undefined;
|
|
482
|
-
|
|
487
|
+
translationExamples?: {
|
|
488
|
+
sourceValue: string;
|
|
489
|
+
translatedValue: string;
|
|
490
|
+
}[] | undefined;
|
|
491
|
+
}[]];
|
|
492
|
+
id: string;
|
|
493
|
+
context?: {
|
|
494
|
+
description: string;
|
|
495
|
+
} | undefined;
|
|
496
|
+
characterLimit?: number | undefined;
|
|
497
|
+
}, ...{
|
|
498
|
+
segments: [{
|
|
483
499
|
value: string;
|
|
484
500
|
id: string;
|
|
501
|
+
tmMatch?: {
|
|
502
|
+
sourceValue: string;
|
|
503
|
+
translatedValue: string;
|
|
504
|
+
} | undefined;
|
|
485
505
|
translationExamples?: {
|
|
486
506
|
sourceValue: string;
|
|
487
507
|
translatedValue: string;
|
|
488
508
|
}[] | undefined;
|
|
509
|
+
}, ...{
|
|
510
|
+
value: string;
|
|
511
|
+
id: string;
|
|
489
512
|
tmMatch?: {
|
|
490
513
|
sourceValue: string;
|
|
491
514
|
translatedValue: string;
|
|
492
515
|
} | undefined;
|
|
516
|
+
translationExamples?: {
|
|
517
|
+
sourceValue: string;
|
|
518
|
+
translatedValue: string;
|
|
519
|
+
}[] | undefined;
|
|
493
520
|
}[]];
|
|
521
|
+
id: string;
|
|
494
522
|
context?: {
|
|
495
523
|
description: string;
|
|
496
524
|
} | undefined;
|
|
497
525
|
characterLimit?: number | undefined;
|
|
498
|
-
}
|
|
499
|
-
|
|
526
|
+
}[]]>;
|
|
527
|
+
}, "strip", z.ZodTypeAny, {
|
|
528
|
+
sourceLocale: string;
|
|
529
|
+
contentUnits: [{
|
|
500
530
|
segments: [{
|
|
501
531
|
value: string;
|
|
502
532
|
id: string;
|
|
533
|
+
tmMatch?: {
|
|
534
|
+
sourceValue: string;
|
|
535
|
+
translatedValue: string;
|
|
536
|
+
} | undefined;
|
|
503
537
|
translationExamples?: {
|
|
504
538
|
sourceValue: string;
|
|
505
539
|
translatedValue: string;
|
|
506
540
|
}[] | undefined;
|
|
541
|
+
}, ...{
|
|
542
|
+
value: string;
|
|
543
|
+
id: string;
|
|
507
544
|
tmMatch?: {
|
|
508
545
|
sourceValue: string;
|
|
509
546
|
translatedValue: string;
|
|
510
547
|
} | undefined;
|
|
511
|
-
|
|
548
|
+
translationExamples?: {
|
|
549
|
+
sourceValue: string;
|
|
550
|
+
translatedValue: string;
|
|
551
|
+
}[] | undefined;
|
|
552
|
+
}[]];
|
|
553
|
+
id: string;
|
|
554
|
+
context?: {
|
|
555
|
+
description: string;
|
|
556
|
+
} | undefined;
|
|
557
|
+
characterLimit?: number | undefined;
|
|
558
|
+
}, ...{
|
|
559
|
+
segments: [{
|
|
512
560
|
value: string;
|
|
513
561
|
id: string;
|
|
562
|
+
tmMatch?: {
|
|
563
|
+
sourceValue: string;
|
|
564
|
+
translatedValue: string;
|
|
565
|
+
} | undefined;
|
|
514
566
|
translationExamples?: {
|
|
515
567
|
sourceValue: string;
|
|
516
568
|
translatedValue: string;
|
|
517
569
|
}[] | undefined;
|
|
570
|
+
}, ...{
|
|
571
|
+
value: string;
|
|
572
|
+
id: string;
|
|
518
573
|
tmMatch?: {
|
|
519
574
|
sourceValue: string;
|
|
520
575
|
translatedValue: string;
|
|
521
576
|
} | undefined;
|
|
577
|
+
translationExamples?: {
|
|
578
|
+
sourceValue: string;
|
|
579
|
+
translatedValue: string;
|
|
580
|
+
}[] | undefined;
|
|
522
581
|
}[]];
|
|
582
|
+
id: string;
|
|
523
583
|
context?: {
|
|
524
584
|
description: string;
|
|
525
585
|
} | undefined;
|
|
526
586
|
characterLimit?: number | undefined;
|
|
527
|
-
}[]]
|
|
528
|
-
|
|
587
|
+
}[]];
|
|
588
|
+
targetLocale: string;
|
|
589
|
+
ownerId?: string | undefined;
|
|
590
|
+
context?: {
|
|
591
|
+
translationExamples?: {
|
|
592
|
+
sourceValue: string;
|
|
593
|
+
translatedValue: string;
|
|
594
|
+
}[] | undefined;
|
|
595
|
+
description?: string | undefined;
|
|
596
|
+
styleGuide?: {
|
|
597
|
+
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
598
|
+
toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
|
|
599
|
+
levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
|
|
600
|
+
generalRule?: "active-voice" | "passive-voice" | undefined;
|
|
601
|
+
} | {
|
|
602
|
+
text: string;
|
|
603
|
+
} | undefined;
|
|
604
|
+
glossary?: {
|
|
605
|
+
term: string;
|
|
606
|
+
translatable: boolean;
|
|
607
|
+
forbidden: boolean;
|
|
608
|
+
caseSensitive: boolean;
|
|
609
|
+
description?: string | undefined;
|
|
610
|
+
translations?: {
|
|
611
|
+
translation: string;
|
|
612
|
+
locale: string;
|
|
613
|
+
description?: string | undefined;
|
|
614
|
+
}[] | undefined;
|
|
615
|
+
}[] | undefined;
|
|
616
|
+
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
617
|
+
} | undefined;
|
|
618
|
+
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
|
|
619
|
+
forceIntegration?: boolean | undefined;
|
|
620
|
+
metadata?: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
621
|
+
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
622
|
+
} | null)[] | {
|
|
623
|
+
[key: string]: string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
624
|
+
} | null)[] | {
|
|
625
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
626
|
+
} | null)[] | {
|
|
627
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
628
|
+
} | null)[] | {
|
|
629
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
630
|
+
} | null)[] | {
|
|
631
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
632
|
+
} | null)[] | {
|
|
633
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
634
|
+
} | null)[] | {
|
|
635
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
636
|
+
} | null)[] | {
|
|
637
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
638
|
+
} | null)[] | {
|
|
639
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
640
|
+
} | null)[] | {
|
|
641
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
642
|
+
} | null)[] | {
|
|
643
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
644
|
+
} | null> | undefined;
|
|
645
|
+
tenantId?: string | undefined;
|
|
646
|
+
}, {
|
|
529
647
|
sourceLocale: string;
|
|
530
648
|
contentUnits: [{
|
|
531
|
-
id: string;
|
|
532
649
|
segments: [{
|
|
533
650
|
value: string;
|
|
534
651
|
id: string;
|
|
652
|
+
tmMatch?: {
|
|
653
|
+
sourceValue: string;
|
|
654
|
+
translatedValue: string;
|
|
655
|
+
} | undefined;
|
|
535
656
|
translationExamples?: {
|
|
536
657
|
sourceValue: string;
|
|
537
658
|
translatedValue: string;
|
|
538
659
|
}[] | undefined;
|
|
660
|
+
}, ...{
|
|
661
|
+
value: string;
|
|
662
|
+
id: string;
|
|
539
663
|
tmMatch?: {
|
|
540
664
|
sourceValue: string;
|
|
541
665
|
translatedValue: string;
|
|
542
666
|
} | undefined;
|
|
543
|
-
|
|
667
|
+
translationExamples?: {
|
|
668
|
+
sourceValue: string;
|
|
669
|
+
translatedValue: string;
|
|
670
|
+
}[] | undefined;
|
|
671
|
+
}[]];
|
|
672
|
+
id: string;
|
|
673
|
+
context?: {
|
|
674
|
+
description: string;
|
|
675
|
+
} | undefined;
|
|
676
|
+
characterLimit?: number | undefined;
|
|
677
|
+
}, ...{
|
|
678
|
+
segments: [{
|
|
544
679
|
value: string;
|
|
545
680
|
id: string;
|
|
681
|
+
tmMatch?: {
|
|
682
|
+
sourceValue: string;
|
|
683
|
+
translatedValue: string;
|
|
684
|
+
} | undefined;
|
|
546
685
|
translationExamples?: {
|
|
547
686
|
sourceValue: string;
|
|
548
687
|
translatedValue: string;
|
|
549
688
|
}[] | undefined;
|
|
689
|
+
}, ...{
|
|
690
|
+
value: string;
|
|
691
|
+
id: string;
|
|
550
692
|
tmMatch?: {
|
|
551
693
|
sourceValue: string;
|
|
552
694
|
translatedValue: string;
|
|
553
695
|
} | undefined;
|
|
696
|
+
translationExamples?: {
|
|
697
|
+
sourceValue: string;
|
|
698
|
+
translatedValue: string;
|
|
699
|
+
}[] | undefined;
|
|
554
700
|
}[]];
|
|
701
|
+
id: string;
|
|
555
702
|
context?: {
|
|
556
703
|
description: string;
|
|
557
704
|
} | undefined;
|
|
558
705
|
characterLimit?: number | undefined;
|
|
559
|
-
}
|
|
560
|
-
|
|
706
|
+
}[]];
|
|
707
|
+
targetLocale: string;
|
|
708
|
+
ownerId?: string | undefined;
|
|
709
|
+
context?: {
|
|
710
|
+
translationExamples?: {
|
|
711
|
+
sourceValue: string;
|
|
712
|
+
translatedValue: string;
|
|
713
|
+
}[] | undefined;
|
|
714
|
+
description?: string | undefined;
|
|
715
|
+
styleGuide?: {
|
|
716
|
+
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
717
|
+
toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
|
|
718
|
+
levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
|
|
719
|
+
generalRule?: "active-voice" | "passive-voice" | undefined;
|
|
720
|
+
} | {
|
|
721
|
+
text: string;
|
|
722
|
+
} | undefined;
|
|
723
|
+
glossary?: {
|
|
724
|
+
term: string;
|
|
725
|
+
description?: string | undefined;
|
|
726
|
+
translatable?: boolean | undefined;
|
|
727
|
+
forbidden?: boolean | undefined;
|
|
728
|
+
caseSensitive?: boolean | undefined;
|
|
729
|
+
translations?: {
|
|
730
|
+
translation: string;
|
|
731
|
+
locale: string;
|
|
732
|
+
description?: string | undefined;
|
|
733
|
+
}[] | undefined;
|
|
734
|
+
}[] | undefined;
|
|
735
|
+
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
736
|
+
} | undefined;
|
|
737
|
+
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
|
|
738
|
+
forceIntegration?: boolean | undefined;
|
|
739
|
+
metadata?: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
740
|
+
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
741
|
+
} | null)[] | {
|
|
742
|
+
[key: string]: string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
743
|
+
} | null)[] | {
|
|
744
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
745
|
+
} | null)[] | {
|
|
746
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
747
|
+
} | null)[] | {
|
|
748
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
749
|
+
} | null)[] | {
|
|
750
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
751
|
+
} | null)[] | {
|
|
752
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
753
|
+
} | null)[] | {
|
|
754
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
755
|
+
} | null)[] | {
|
|
756
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
757
|
+
} | null)[] | {
|
|
758
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
759
|
+
} | null)[] | {
|
|
760
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
761
|
+
} | null)[] | {
|
|
762
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
763
|
+
} | null> | undefined;
|
|
764
|
+
tenantId?: string | undefined;
|
|
765
|
+
}>, {
|
|
766
|
+
sourceLocale: string;
|
|
767
|
+
contentUnits: [{
|
|
561
768
|
segments: [{
|
|
562
769
|
value: string;
|
|
563
770
|
id: string;
|
|
771
|
+
tmMatch?: {
|
|
772
|
+
sourceValue: string;
|
|
773
|
+
translatedValue: string;
|
|
774
|
+
} | undefined;
|
|
564
775
|
translationExamples?: {
|
|
565
776
|
sourceValue: string;
|
|
566
777
|
translatedValue: string;
|
|
567
778
|
}[] | undefined;
|
|
779
|
+
}, ...{
|
|
780
|
+
value: string;
|
|
781
|
+
id: string;
|
|
568
782
|
tmMatch?: {
|
|
569
783
|
sourceValue: string;
|
|
570
784
|
translatedValue: string;
|
|
571
785
|
} | undefined;
|
|
572
|
-
|
|
786
|
+
translationExamples?: {
|
|
787
|
+
sourceValue: string;
|
|
788
|
+
translatedValue: string;
|
|
789
|
+
}[] | undefined;
|
|
790
|
+
}[]];
|
|
791
|
+
id: string;
|
|
792
|
+
context?: {
|
|
793
|
+
description: string;
|
|
794
|
+
} | undefined;
|
|
795
|
+
characterLimit?: number | undefined;
|
|
796
|
+
}, ...{
|
|
797
|
+
segments: [{
|
|
573
798
|
value: string;
|
|
574
799
|
id: string;
|
|
800
|
+
tmMatch?: {
|
|
801
|
+
sourceValue: string;
|
|
802
|
+
translatedValue: string;
|
|
803
|
+
} | undefined;
|
|
575
804
|
translationExamples?: {
|
|
576
805
|
sourceValue: string;
|
|
577
806
|
translatedValue: string;
|
|
578
807
|
}[] | undefined;
|
|
808
|
+
}, ...{
|
|
809
|
+
value: string;
|
|
810
|
+
id: string;
|
|
579
811
|
tmMatch?: {
|
|
580
812
|
sourceValue: string;
|
|
581
813
|
translatedValue: string;
|
|
582
814
|
} | undefined;
|
|
815
|
+
translationExamples?: {
|
|
816
|
+
sourceValue: string;
|
|
817
|
+
translatedValue: string;
|
|
818
|
+
}[] | undefined;
|
|
583
819
|
}[]];
|
|
820
|
+
id: string;
|
|
584
821
|
context?: {
|
|
585
822
|
description: string;
|
|
586
823
|
} | undefined;
|
|
@@ -589,6 +826,10 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
589
826
|
targetLocale: string;
|
|
590
827
|
ownerId?: string | undefined;
|
|
591
828
|
context?: {
|
|
829
|
+
translationExamples?: {
|
|
830
|
+
sourceValue: string;
|
|
831
|
+
translatedValue: string;
|
|
832
|
+
}[] | undefined;
|
|
592
833
|
description?: string | undefined;
|
|
593
834
|
styleGuide?: {
|
|
594
835
|
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
@@ -605,16 +846,12 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
605
846
|
caseSensitive: boolean;
|
|
606
847
|
description?: string | undefined;
|
|
607
848
|
translations?: {
|
|
608
|
-
locale: string;
|
|
609
849
|
translation: string;
|
|
850
|
+
locale: string;
|
|
610
851
|
description?: string | undefined;
|
|
611
852
|
}[] | undefined;
|
|
612
853
|
}[] | undefined;
|
|
613
854
|
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
614
|
-
translationExamples?: {
|
|
615
|
-
sourceValue: string;
|
|
616
|
-
translatedValue: string;
|
|
617
|
-
}[] | undefined;
|
|
618
855
|
} | undefined;
|
|
619
856
|
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
|
|
620
857
|
forceIntegration?: boolean | undefined;
|
|
@@ -647,59 +884,59 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
647
884
|
}, {
|
|
648
885
|
sourceLocale: string;
|
|
649
886
|
contentUnits: [{
|
|
650
|
-
id: string;
|
|
651
887
|
segments: [{
|
|
652
888
|
value: string;
|
|
653
889
|
id: string;
|
|
654
|
-
translationExamples?: {
|
|
655
|
-
sourceValue: string;
|
|
656
|
-
translatedValue: string;
|
|
657
|
-
}[] | undefined;
|
|
658
890
|
tmMatch?: {
|
|
659
891
|
sourceValue: string;
|
|
660
892
|
translatedValue: string;
|
|
661
893
|
} | undefined;
|
|
662
|
-
}, ...{
|
|
663
|
-
value: string;
|
|
664
|
-
id: string;
|
|
665
894
|
translationExamples?: {
|
|
666
895
|
sourceValue: string;
|
|
667
896
|
translatedValue: string;
|
|
668
897
|
}[] | undefined;
|
|
898
|
+
}, ...{
|
|
899
|
+
value: string;
|
|
900
|
+
id: string;
|
|
669
901
|
tmMatch?: {
|
|
670
902
|
sourceValue: string;
|
|
671
903
|
translatedValue: string;
|
|
672
904
|
} | undefined;
|
|
905
|
+
translationExamples?: {
|
|
906
|
+
sourceValue: string;
|
|
907
|
+
translatedValue: string;
|
|
908
|
+
}[] | undefined;
|
|
673
909
|
}[]];
|
|
910
|
+
id: string;
|
|
674
911
|
context?: {
|
|
675
912
|
description: string;
|
|
676
913
|
} | undefined;
|
|
677
914
|
characterLimit?: number | undefined;
|
|
678
915
|
}, ...{
|
|
679
|
-
id: string;
|
|
680
916
|
segments: [{
|
|
681
917
|
value: string;
|
|
682
918
|
id: string;
|
|
683
|
-
translationExamples?: {
|
|
684
|
-
sourceValue: string;
|
|
685
|
-
translatedValue: string;
|
|
686
|
-
}[] | undefined;
|
|
687
919
|
tmMatch?: {
|
|
688
920
|
sourceValue: string;
|
|
689
921
|
translatedValue: string;
|
|
690
922
|
} | undefined;
|
|
691
|
-
}, ...{
|
|
692
|
-
value: string;
|
|
693
|
-
id: string;
|
|
694
923
|
translationExamples?: {
|
|
695
924
|
sourceValue: string;
|
|
696
925
|
translatedValue: string;
|
|
697
926
|
}[] | undefined;
|
|
927
|
+
}, ...{
|
|
928
|
+
value: string;
|
|
929
|
+
id: string;
|
|
698
930
|
tmMatch?: {
|
|
699
931
|
sourceValue: string;
|
|
700
932
|
translatedValue: string;
|
|
701
933
|
} | undefined;
|
|
934
|
+
translationExamples?: {
|
|
935
|
+
sourceValue: string;
|
|
936
|
+
translatedValue: string;
|
|
937
|
+
}[] | undefined;
|
|
702
938
|
}[]];
|
|
939
|
+
id: string;
|
|
703
940
|
context?: {
|
|
704
941
|
description: string;
|
|
705
942
|
} | undefined;
|
|
@@ -708,6 +945,10 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
708
945
|
targetLocale: string;
|
|
709
946
|
ownerId?: string | undefined;
|
|
710
947
|
context?: {
|
|
948
|
+
translationExamples?: {
|
|
949
|
+
sourceValue: string;
|
|
950
|
+
translatedValue: string;
|
|
951
|
+
}[] | undefined;
|
|
711
952
|
description?: string | undefined;
|
|
712
953
|
styleGuide?: {
|
|
713
954
|
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
@@ -724,18 +965,14 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
724
965
|
forbidden?: boolean | undefined;
|
|
725
966
|
caseSensitive?: boolean | undefined;
|
|
726
967
|
translations?: {
|
|
727
|
-
locale: string;
|
|
728
968
|
translation: string;
|
|
969
|
+
locale: string;
|
|
729
970
|
description?: string | undefined;
|
|
730
971
|
}[] | undefined;
|
|
731
972
|
}[] | undefined;
|
|
732
973
|
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
733
|
-
translationExamples?: {
|
|
734
|
-
sourceValue: string;
|
|
735
|
-
translatedValue: string;
|
|
736
|
-
}[] | undefined;
|
|
737
974
|
} | undefined;
|
|
738
|
-
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "
|
|
975
|
+
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
|
|
739
976
|
forceIntegration?: boolean | undefined;
|
|
740
977
|
metadata?: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
741
978
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
@@ -766,59 +1003,59 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
766
1003
|
}>, {
|
|
767
1004
|
sourceLocale: string;
|
|
768
1005
|
contentUnits: [{
|
|
769
|
-
id: string;
|
|
770
1006
|
segments: [{
|
|
771
1007
|
value: string;
|
|
772
1008
|
id: string;
|
|
773
|
-
translationExamples?: {
|
|
774
|
-
sourceValue: string;
|
|
775
|
-
translatedValue: string;
|
|
776
|
-
}[] | undefined;
|
|
777
1009
|
tmMatch?: {
|
|
778
1010
|
sourceValue: string;
|
|
779
1011
|
translatedValue: string;
|
|
780
|
-
} | undefined;
|
|
781
|
-
}, ...{
|
|
782
|
-
value: string;
|
|
783
|
-
id: string;
|
|
1012
|
+
} | undefined;
|
|
784
1013
|
translationExamples?: {
|
|
785
1014
|
sourceValue: string;
|
|
786
1015
|
translatedValue: string;
|
|
787
1016
|
}[] | undefined;
|
|
1017
|
+
}, ...{
|
|
1018
|
+
value: string;
|
|
1019
|
+
id: string;
|
|
788
1020
|
tmMatch?: {
|
|
789
1021
|
sourceValue: string;
|
|
790
1022
|
translatedValue: string;
|
|
791
1023
|
} | undefined;
|
|
1024
|
+
translationExamples?: {
|
|
1025
|
+
sourceValue: string;
|
|
1026
|
+
translatedValue: string;
|
|
1027
|
+
}[] | undefined;
|
|
792
1028
|
}[]];
|
|
1029
|
+
id: string;
|
|
793
1030
|
context?: {
|
|
794
1031
|
description: string;
|
|
795
1032
|
} | undefined;
|
|
796
1033
|
characterLimit?: number | undefined;
|
|
797
1034
|
}, ...{
|
|
798
|
-
id: string;
|
|
799
1035
|
segments: [{
|
|
800
1036
|
value: string;
|
|
801
1037
|
id: string;
|
|
802
|
-
translationExamples?: {
|
|
803
|
-
sourceValue: string;
|
|
804
|
-
translatedValue: string;
|
|
805
|
-
}[] | undefined;
|
|
806
1038
|
tmMatch?: {
|
|
807
1039
|
sourceValue: string;
|
|
808
1040
|
translatedValue: string;
|
|
809
1041
|
} | undefined;
|
|
810
|
-
}, ...{
|
|
811
|
-
value: string;
|
|
812
|
-
id: string;
|
|
813
1042
|
translationExamples?: {
|
|
814
1043
|
sourceValue: string;
|
|
815
1044
|
translatedValue: string;
|
|
816
1045
|
}[] | undefined;
|
|
1046
|
+
}, ...{
|
|
1047
|
+
value: string;
|
|
1048
|
+
id: string;
|
|
817
1049
|
tmMatch?: {
|
|
818
1050
|
sourceValue: string;
|
|
819
1051
|
translatedValue: string;
|
|
820
1052
|
} | undefined;
|
|
1053
|
+
translationExamples?: {
|
|
1054
|
+
sourceValue: string;
|
|
1055
|
+
translatedValue: string;
|
|
1056
|
+
}[] | undefined;
|
|
821
1057
|
}[]];
|
|
1058
|
+
id: string;
|
|
822
1059
|
context?: {
|
|
823
1060
|
description: string;
|
|
824
1061
|
} | undefined;
|
|
@@ -827,6 +1064,10 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
827
1064
|
targetLocale: string;
|
|
828
1065
|
ownerId?: string | undefined;
|
|
829
1066
|
context?: {
|
|
1067
|
+
translationExamples?: {
|
|
1068
|
+
sourceValue: string;
|
|
1069
|
+
translatedValue: string;
|
|
1070
|
+
}[] | undefined;
|
|
830
1071
|
description?: string | undefined;
|
|
831
1072
|
styleGuide?: {
|
|
832
1073
|
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
@@ -843,16 +1084,12 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
843
1084
|
caseSensitive: boolean;
|
|
844
1085
|
description?: string | undefined;
|
|
845
1086
|
translations?: {
|
|
846
|
-
locale: string;
|
|
847
1087
|
translation: string;
|
|
1088
|
+
locale: string;
|
|
848
1089
|
description?: string | undefined;
|
|
849
1090
|
}[] | undefined;
|
|
850
1091
|
}[] | undefined;
|
|
851
1092
|
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
852
|
-
translationExamples?: {
|
|
853
|
-
sourceValue: string;
|
|
854
|
-
translatedValue: string;
|
|
855
|
-
}[] | undefined;
|
|
856
1093
|
} | undefined;
|
|
857
1094
|
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
|
|
858
1095
|
forceIntegration?: boolean | undefined;
|
|
@@ -885,59 +1122,59 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
885
1122
|
}, {
|
|
886
1123
|
sourceLocale: string;
|
|
887
1124
|
contentUnits: [{
|
|
888
|
-
id: string;
|
|
889
1125
|
segments: [{
|
|
890
1126
|
value: string;
|
|
891
1127
|
id: string;
|
|
892
|
-
translationExamples?: {
|
|
893
|
-
sourceValue: string;
|
|
894
|
-
translatedValue: string;
|
|
895
|
-
}[] | undefined;
|
|
896
1128
|
tmMatch?: {
|
|
897
1129
|
sourceValue: string;
|
|
898
1130
|
translatedValue: string;
|
|
899
1131
|
} | undefined;
|
|
900
|
-
}, ...{
|
|
901
|
-
value: string;
|
|
902
|
-
id: string;
|
|
903
1132
|
translationExamples?: {
|
|
904
1133
|
sourceValue: string;
|
|
905
1134
|
translatedValue: string;
|
|
906
1135
|
}[] | undefined;
|
|
1136
|
+
}, ...{
|
|
1137
|
+
value: string;
|
|
1138
|
+
id: string;
|
|
907
1139
|
tmMatch?: {
|
|
908
1140
|
sourceValue: string;
|
|
909
1141
|
translatedValue: string;
|
|
910
1142
|
} | undefined;
|
|
1143
|
+
translationExamples?: {
|
|
1144
|
+
sourceValue: string;
|
|
1145
|
+
translatedValue: string;
|
|
1146
|
+
}[] | undefined;
|
|
911
1147
|
}[]];
|
|
1148
|
+
id: string;
|
|
912
1149
|
context?: {
|
|
913
1150
|
description: string;
|
|
914
1151
|
} | undefined;
|
|
915
1152
|
characterLimit?: number | undefined;
|
|
916
1153
|
}, ...{
|
|
917
|
-
id: string;
|
|
918
1154
|
segments: [{
|
|
919
1155
|
value: string;
|
|
920
1156
|
id: string;
|
|
921
|
-
translationExamples?: {
|
|
922
|
-
sourceValue: string;
|
|
923
|
-
translatedValue: string;
|
|
924
|
-
}[] | undefined;
|
|
925
1157
|
tmMatch?: {
|
|
926
1158
|
sourceValue: string;
|
|
927
1159
|
translatedValue: string;
|
|
928
1160
|
} | undefined;
|
|
929
|
-
}, ...{
|
|
930
|
-
value: string;
|
|
931
|
-
id: string;
|
|
932
1161
|
translationExamples?: {
|
|
933
1162
|
sourceValue: string;
|
|
934
1163
|
translatedValue: string;
|
|
935
1164
|
}[] | undefined;
|
|
1165
|
+
}, ...{
|
|
1166
|
+
value: string;
|
|
1167
|
+
id: string;
|
|
936
1168
|
tmMatch?: {
|
|
937
1169
|
sourceValue: string;
|
|
938
1170
|
translatedValue: string;
|
|
939
1171
|
} | undefined;
|
|
1172
|
+
translationExamples?: {
|
|
1173
|
+
sourceValue: string;
|
|
1174
|
+
translatedValue: string;
|
|
1175
|
+
}[] | undefined;
|
|
940
1176
|
}[]];
|
|
1177
|
+
id: string;
|
|
941
1178
|
context?: {
|
|
942
1179
|
description: string;
|
|
943
1180
|
} | undefined;
|
|
@@ -946,6 +1183,10 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
946
1183
|
targetLocale: string;
|
|
947
1184
|
ownerId?: string | undefined;
|
|
948
1185
|
context?: {
|
|
1186
|
+
translationExamples?: {
|
|
1187
|
+
sourceValue: string;
|
|
1188
|
+
translatedValue: string;
|
|
1189
|
+
}[] | undefined;
|
|
949
1190
|
description?: string | undefined;
|
|
950
1191
|
styleGuide?: {
|
|
951
1192
|
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
@@ -962,18 +1203,14 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
962
1203
|
forbidden?: boolean | undefined;
|
|
963
1204
|
caseSensitive?: boolean | undefined;
|
|
964
1205
|
translations?: {
|
|
965
|
-
locale: string;
|
|
966
1206
|
translation: string;
|
|
1207
|
+
locale: string;
|
|
967
1208
|
description?: string | undefined;
|
|
968
1209
|
}[] | undefined;
|
|
969
1210
|
}[] | undefined;
|
|
970
1211
|
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
971
|
-
translationExamples?: {
|
|
972
|
-
sourceValue: string;
|
|
973
|
-
translatedValue: string;
|
|
974
|
-
}[] | undefined;
|
|
975
1212
|
} | undefined;
|
|
976
|
-
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "
|
|
1213
|
+
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
|
|
977
1214
|
forceIntegration?: boolean | undefined;
|
|
978
1215
|
metadata?: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
979
1216
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
@@ -1004,59 +1241,59 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
1004
1241
|
}>, {
|
|
1005
1242
|
sourceLocale: string;
|
|
1006
1243
|
contentUnits: [{
|
|
1007
|
-
id: string;
|
|
1008
1244
|
segments: [{
|
|
1009
1245
|
value: string;
|
|
1010
1246
|
id: string;
|
|
1011
|
-
translationExamples?: {
|
|
1012
|
-
sourceValue: string;
|
|
1013
|
-
translatedValue: string;
|
|
1014
|
-
}[] | undefined;
|
|
1015
1247
|
tmMatch?: {
|
|
1016
1248
|
sourceValue: string;
|
|
1017
1249
|
translatedValue: string;
|
|
1018
1250
|
} | undefined;
|
|
1019
|
-
}, ...{
|
|
1020
|
-
value: string;
|
|
1021
|
-
id: string;
|
|
1022
1251
|
translationExamples?: {
|
|
1023
1252
|
sourceValue: string;
|
|
1024
1253
|
translatedValue: string;
|
|
1025
1254
|
}[] | undefined;
|
|
1255
|
+
}, ...{
|
|
1256
|
+
value: string;
|
|
1257
|
+
id: string;
|
|
1026
1258
|
tmMatch?: {
|
|
1027
1259
|
sourceValue: string;
|
|
1028
1260
|
translatedValue: string;
|
|
1029
1261
|
} | undefined;
|
|
1262
|
+
translationExamples?: {
|
|
1263
|
+
sourceValue: string;
|
|
1264
|
+
translatedValue: string;
|
|
1265
|
+
}[] | undefined;
|
|
1030
1266
|
}[]];
|
|
1267
|
+
id: string;
|
|
1031
1268
|
context?: {
|
|
1032
1269
|
description: string;
|
|
1033
1270
|
} | undefined;
|
|
1034
1271
|
characterLimit?: number | undefined;
|
|
1035
1272
|
}, ...{
|
|
1036
|
-
id: string;
|
|
1037
1273
|
segments: [{
|
|
1038
1274
|
value: string;
|
|
1039
1275
|
id: string;
|
|
1040
|
-
translationExamples?: {
|
|
1041
|
-
sourceValue: string;
|
|
1042
|
-
translatedValue: string;
|
|
1043
|
-
}[] | undefined;
|
|
1044
1276
|
tmMatch?: {
|
|
1045
1277
|
sourceValue: string;
|
|
1046
1278
|
translatedValue: string;
|
|
1047
1279
|
} | undefined;
|
|
1048
|
-
}, ...{
|
|
1049
|
-
value: string;
|
|
1050
|
-
id: string;
|
|
1051
1280
|
translationExamples?: {
|
|
1052
1281
|
sourceValue: string;
|
|
1053
1282
|
translatedValue: string;
|
|
1054
1283
|
}[] | undefined;
|
|
1284
|
+
}, ...{
|
|
1285
|
+
value: string;
|
|
1286
|
+
id: string;
|
|
1055
1287
|
tmMatch?: {
|
|
1056
1288
|
sourceValue: string;
|
|
1057
1289
|
translatedValue: string;
|
|
1058
1290
|
} | undefined;
|
|
1291
|
+
translationExamples?: {
|
|
1292
|
+
sourceValue: string;
|
|
1293
|
+
translatedValue: string;
|
|
1294
|
+
}[] | undefined;
|
|
1059
1295
|
}[]];
|
|
1296
|
+
id: string;
|
|
1060
1297
|
context?: {
|
|
1061
1298
|
description: string;
|
|
1062
1299
|
} | undefined;
|
|
@@ -1065,6 +1302,10 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
1065
1302
|
targetLocale: string;
|
|
1066
1303
|
ownerId?: string | undefined;
|
|
1067
1304
|
context?: {
|
|
1305
|
+
translationExamples?: {
|
|
1306
|
+
sourceValue: string;
|
|
1307
|
+
translatedValue: string;
|
|
1308
|
+
}[] | undefined;
|
|
1068
1309
|
description?: string | undefined;
|
|
1069
1310
|
styleGuide?: {
|
|
1070
1311
|
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
@@ -1081,16 +1322,12 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
1081
1322
|
caseSensitive: boolean;
|
|
1082
1323
|
description?: string | undefined;
|
|
1083
1324
|
translations?: {
|
|
1084
|
-
locale: string;
|
|
1085
1325
|
translation: string;
|
|
1326
|
+
locale: string;
|
|
1086
1327
|
description?: string | undefined;
|
|
1087
1328
|
}[] | undefined;
|
|
1088
1329
|
}[] | undefined;
|
|
1089
1330
|
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
1090
|
-
translationExamples?: {
|
|
1091
|
-
sourceValue: string;
|
|
1092
|
-
translatedValue: string;
|
|
1093
|
-
}[] | undefined;
|
|
1094
1331
|
} | undefined;
|
|
1095
1332
|
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
|
|
1096
1333
|
forceIntegration?: boolean | undefined;
|
|
@@ -1123,59 +1360,59 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
1123
1360
|
}, {
|
|
1124
1361
|
sourceLocale: string;
|
|
1125
1362
|
contentUnits: [{
|
|
1126
|
-
id: string;
|
|
1127
1363
|
segments: [{
|
|
1128
1364
|
value: string;
|
|
1129
1365
|
id: string;
|
|
1130
|
-
translationExamples?: {
|
|
1131
|
-
sourceValue: string;
|
|
1132
|
-
translatedValue: string;
|
|
1133
|
-
}[] | undefined;
|
|
1134
1366
|
tmMatch?: {
|
|
1135
1367
|
sourceValue: string;
|
|
1136
1368
|
translatedValue: string;
|
|
1137
1369
|
} | undefined;
|
|
1138
|
-
}, ...{
|
|
1139
|
-
value: string;
|
|
1140
|
-
id: string;
|
|
1141
1370
|
translationExamples?: {
|
|
1142
1371
|
sourceValue: string;
|
|
1143
1372
|
translatedValue: string;
|
|
1144
1373
|
}[] | undefined;
|
|
1374
|
+
}, ...{
|
|
1375
|
+
value: string;
|
|
1376
|
+
id: string;
|
|
1145
1377
|
tmMatch?: {
|
|
1146
1378
|
sourceValue: string;
|
|
1147
1379
|
translatedValue: string;
|
|
1148
1380
|
} | undefined;
|
|
1381
|
+
translationExamples?: {
|
|
1382
|
+
sourceValue: string;
|
|
1383
|
+
translatedValue: string;
|
|
1384
|
+
}[] | undefined;
|
|
1149
1385
|
}[]];
|
|
1386
|
+
id: string;
|
|
1150
1387
|
context?: {
|
|
1151
1388
|
description: string;
|
|
1152
1389
|
} | undefined;
|
|
1153
1390
|
characterLimit?: number | undefined;
|
|
1154
1391
|
}, ...{
|
|
1155
|
-
id: string;
|
|
1156
1392
|
segments: [{
|
|
1157
1393
|
value: string;
|
|
1158
1394
|
id: string;
|
|
1159
|
-
translationExamples?: {
|
|
1160
|
-
sourceValue: string;
|
|
1161
|
-
translatedValue: string;
|
|
1162
|
-
}[] | undefined;
|
|
1163
1395
|
tmMatch?: {
|
|
1164
1396
|
sourceValue: string;
|
|
1165
1397
|
translatedValue: string;
|
|
1166
1398
|
} | undefined;
|
|
1167
|
-
}, ...{
|
|
1168
|
-
value: string;
|
|
1169
|
-
id: string;
|
|
1170
1399
|
translationExamples?: {
|
|
1171
1400
|
sourceValue: string;
|
|
1172
1401
|
translatedValue: string;
|
|
1173
1402
|
}[] | undefined;
|
|
1403
|
+
}, ...{
|
|
1404
|
+
value: string;
|
|
1405
|
+
id: string;
|
|
1174
1406
|
tmMatch?: {
|
|
1175
1407
|
sourceValue: string;
|
|
1176
1408
|
translatedValue: string;
|
|
1177
1409
|
} | undefined;
|
|
1410
|
+
translationExamples?: {
|
|
1411
|
+
sourceValue: string;
|
|
1412
|
+
translatedValue: string;
|
|
1413
|
+
}[] | undefined;
|
|
1178
1414
|
}[]];
|
|
1415
|
+
id: string;
|
|
1179
1416
|
context?: {
|
|
1180
1417
|
description: string;
|
|
1181
1418
|
} | undefined;
|
|
@@ -1184,6 +1421,10 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
1184
1421
|
targetLocale: string;
|
|
1185
1422
|
ownerId?: string | undefined;
|
|
1186
1423
|
context?: {
|
|
1424
|
+
translationExamples?: {
|
|
1425
|
+
sourceValue: string;
|
|
1426
|
+
translatedValue: string;
|
|
1427
|
+
}[] | undefined;
|
|
1187
1428
|
description?: string | undefined;
|
|
1188
1429
|
styleGuide?: {
|
|
1189
1430
|
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
@@ -1200,18 +1441,14 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
1200
1441
|
forbidden?: boolean | undefined;
|
|
1201
1442
|
caseSensitive?: boolean | undefined;
|
|
1202
1443
|
translations?: {
|
|
1203
|
-
locale: string;
|
|
1204
1444
|
translation: string;
|
|
1445
|
+
locale: string;
|
|
1205
1446
|
description?: string | undefined;
|
|
1206
1447
|
}[] | undefined;
|
|
1207
1448
|
}[] | undefined;
|
|
1208
1449
|
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
1209
|
-
translationExamples?: {
|
|
1210
|
-
sourceValue: string;
|
|
1211
|
-
translatedValue: string;
|
|
1212
|
-
}[] | undefined;
|
|
1213
1450
|
} | undefined;
|
|
1214
|
-
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "
|
|
1451
|
+
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
|
|
1215
1452
|
forceIntegration?: boolean | undefined;
|
|
1216
1453
|
metadata?: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
1217
1454
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
@@ -1242,59 +1479,59 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
1242
1479
|
}>, {
|
|
1243
1480
|
sourceLocale: string;
|
|
1244
1481
|
contentUnits: [{
|
|
1245
|
-
id: string;
|
|
1246
1482
|
segments: [{
|
|
1247
1483
|
value: string;
|
|
1248
1484
|
id: string;
|
|
1249
|
-
translationExamples?: {
|
|
1250
|
-
sourceValue: string;
|
|
1251
|
-
translatedValue: string;
|
|
1252
|
-
}[] | undefined;
|
|
1253
1485
|
tmMatch?: {
|
|
1254
1486
|
sourceValue: string;
|
|
1255
1487
|
translatedValue: string;
|
|
1256
1488
|
} | undefined;
|
|
1257
|
-
}, ...{
|
|
1258
|
-
value: string;
|
|
1259
|
-
id: string;
|
|
1260
1489
|
translationExamples?: {
|
|
1261
1490
|
sourceValue: string;
|
|
1262
1491
|
translatedValue: string;
|
|
1263
1492
|
}[] | undefined;
|
|
1493
|
+
}, ...{
|
|
1494
|
+
value: string;
|
|
1495
|
+
id: string;
|
|
1264
1496
|
tmMatch?: {
|
|
1265
1497
|
sourceValue: string;
|
|
1266
1498
|
translatedValue: string;
|
|
1267
1499
|
} | undefined;
|
|
1500
|
+
translationExamples?: {
|
|
1501
|
+
sourceValue: string;
|
|
1502
|
+
translatedValue: string;
|
|
1503
|
+
}[] | undefined;
|
|
1268
1504
|
}[]];
|
|
1505
|
+
id: string;
|
|
1269
1506
|
context?: {
|
|
1270
1507
|
description: string;
|
|
1271
1508
|
} | undefined;
|
|
1272
1509
|
characterLimit?: number | undefined;
|
|
1273
1510
|
}, ...{
|
|
1274
|
-
id: string;
|
|
1275
1511
|
segments: [{
|
|
1276
1512
|
value: string;
|
|
1277
1513
|
id: string;
|
|
1278
|
-
translationExamples?: {
|
|
1279
|
-
sourceValue: string;
|
|
1280
|
-
translatedValue: string;
|
|
1281
|
-
}[] | undefined;
|
|
1282
1514
|
tmMatch?: {
|
|
1283
1515
|
sourceValue: string;
|
|
1284
1516
|
translatedValue: string;
|
|
1285
1517
|
} | undefined;
|
|
1286
|
-
}, ...{
|
|
1287
|
-
value: string;
|
|
1288
|
-
id: string;
|
|
1289
1518
|
translationExamples?: {
|
|
1290
1519
|
sourceValue: string;
|
|
1291
1520
|
translatedValue: string;
|
|
1292
1521
|
}[] | undefined;
|
|
1522
|
+
}, ...{
|
|
1523
|
+
value: string;
|
|
1524
|
+
id: string;
|
|
1293
1525
|
tmMatch?: {
|
|
1294
1526
|
sourceValue: string;
|
|
1295
1527
|
translatedValue: string;
|
|
1296
1528
|
} | undefined;
|
|
1529
|
+
translationExamples?: {
|
|
1530
|
+
sourceValue: string;
|
|
1531
|
+
translatedValue: string;
|
|
1532
|
+
}[] | undefined;
|
|
1297
1533
|
}[]];
|
|
1534
|
+
id: string;
|
|
1298
1535
|
context?: {
|
|
1299
1536
|
description: string;
|
|
1300
1537
|
} | undefined;
|
|
@@ -1303,6 +1540,10 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
1303
1540
|
targetLocale: string;
|
|
1304
1541
|
ownerId?: string | undefined;
|
|
1305
1542
|
context?: {
|
|
1543
|
+
translationExamples?: {
|
|
1544
|
+
sourceValue: string;
|
|
1545
|
+
translatedValue: string;
|
|
1546
|
+
}[] | undefined;
|
|
1306
1547
|
description?: string | undefined;
|
|
1307
1548
|
styleGuide?: {
|
|
1308
1549
|
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
@@ -1319,16 +1560,12 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
1319
1560
|
caseSensitive: boolean;
|
|
1320
1561
|
description?: string | undefined;
|
|
1321
1562
|
translations?: {
|
|
1322
|
-
locale: string;
|
|
1323
1563
|
translation: string;
|
|
1564
|
+
locale: string;
|
|
1324
1565
|
description?: string | undefined;
|
|
1325
1566
|
}[] | undefined;
|
|
1326
1567
|
}[] | undefined;
|
|
1327
1568
|
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
1328
|
-
translationExamples?: {
|
|
1329
|
-
sourceValue: string;
|
|
1330
|
-
translatedValue: string;
|
|
1331
|
-
}[] | undefined;
|
|
1332
1569
|
} | undefined;
|
|
1333
1570
|
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
|
|
1334
1571
|
forceIntegration?: boolean | undefined;
|
|
@@ -1361,59 +1598,59 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
1361
1598
|
}, {
|
|
1362
1599
|
sourceLocale: string;
|
|
1363
1600
|
contentUnits: [{
|
|
1364
|
-
id: string;
|
|
1365
1601
|
segments: [{
|
|
1366
1602
|
value: string;
|
|
1367
1603
|
id: string;
|
|
1368
|
-
translationExamples?: {
|
|
1369
|
-
sourceValue: string;
|
|
1370
|
-
translatedValue: string;
|
|
1371
|
-
}[] | undefined;
|
|
1372
1604
|
tmMatch?: {
|
|
1373
1605
|
sourceValue: string;
|
|
1374
1606
|
translatedValue: string;
|
|
1375
1607
|
} | undefined;
|
|
1376
|
-
}, ...{
|
|
1377
|
-
value: string;
|
|
1378
|
-
id: string;
|
|
1379
1608
|
translationExamples?: {
|
|
1380
1609
|
sourceValue: string;
|
|
1381
1610
|
translatedValue: string;
|
|
1382
1611
|
}[] | undefined;
|
|
1612
|
+
}, ...{
|
|
1613
|
+
value: string;
|
|
1614
|
+
id: string;
|
|
1383
1615
|
tmMatch?: {
|
|
1384
1616
|
sourceValue: string;
|
|
1385
1617
|
translatedValue: string;
|
|
1386
1618
|
} | undefined;
|
|
1619
|
+
translationExamples?: {
|
|
1620
|
+
sourceValue: string;
|
|
1621
|
+
translatedValue: string;
|
|
1622
|
+
}[] | undefined;
|
|
1387
1623
|
}[]];
|
|
1624
|
+
id: string;
|
|
1388
1625
|
context?: {
|
|
1389
1626
|
description: string;
|
|
1390
1627
|
} | undefined;
|
|
1391
1628
|
characterLimit?: number | undefined;
|
|
1392
1629
|
}, ...{
|
|
1393
|
-
id: string;
|
|
1394
1630
|
segments: [{
|
|
1395
1631
|
value: string;
|
|
1396
1632
|
id: string;
|
|
1397
|
-
translationExamples?: {
|
|
1398
|
-
sourceValue: string;
|
|
1399
|
-
translatedValue: string;
|
|
1400
|
-
}[] | undefined;
|
|
1401
1633
|
tmMatch?: {
|
|
1402
1634
|
sourceValue: string;
|
|
1403
1635
|
translatedValue: string;
|
|
1404
1636
|
} | undefined;
|
|
1405
|
-
}, ...{
|
|
1406
|
-
value: string;
|
|
1407
|
-
id: string;
|
|
1408
1637
|
translationExamples?: {
|
|
1409
1638
|
sourceValue: string;
|
|
1410
1639
|
translatedValue: string;
|
|
1411
1640
|
}[] | undefined;
|
|
1641
|
+
}, ...{
|
|
1642
|
+
value: string;
|
|
1643
|
+
id: string;
|
|
1412
1644
|
tmMatch?: {
|
|
1413
1645
|
sourceValue: string;
|
|
1414
1646
|
translatedValue: string;
|
|
1415
1647
|
} | undefined;
|
|
1648
|
+
translationExamples?: {
|
|
1649
|
+
sourceValue: string;
|
|
1650
|
+
translatedValue: string;
|
|
1651
|
+
}[] | undefined;
|
|
1416
1652
|
}[]];
|
|
1653
|
+
id: string;
|
|
1417
1654
|
context?: {
|
|
1418
1655
|
description: string;
|
|
1419
1656
|
} | undefined;
|
|
@@ -1422,6 +1659,10 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
1422
1659
|
targetLocale: string;
|
|
1423
1660
|
ownerId?: string | undefined;
|
|
1424
1661
|
context?: {
|
|
1662
|
+
translationExamples?: {
|
|
1663
|
+
sourceValue: string;
|
|
1664
|
+
translatedValue: string;
|
|
1665
|
+
}[] | undefined;
|
|
1425
1666
|
description?: string | undefined;
|
|
1426
1667
|
styleGuide?: {
|
|
1427
1668
|
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
@@ -1438,18 +1679,14 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
1438
1679
|
forbidden?: boolean | undefined;
|
|
1439
1680
|
caseSensitive?: boolean | undefined;
|
|
1440
1681
|
translations?: {
|
|
1441
|
-
locale: string;
|
|
1442
1682
|
translation: string;
|
|
1683
|
+
locale: string;
|
|
1443
1684
|
description?: string | undefined;
|
|
1444
1685
|
}[] | undefined;
|
|
1445
1686
|
}[] | undefined;
|
|
1446
1687
|
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
1447
|
-
translationExamples?: {
|
|
1448
|
-
sourceValue: string;
|
|
1449
|
-
translatedValue: string;
|
|
1450
|
-
}[] | undefined;
|
|
1451
1688
|
} | undefined;
|
|
1452
|
-
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "
|
|
1689
|
+
integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
|
|
1453
1690
|
forceIntegration?: boolean | undefined;
|
|
1454
1691
|
metadata?: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
1455
1692
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
@@ -1504,19 +1741,19 @@ export declare const TRANSLATE_SYNC_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
1504
1741
|
integration: string;
|
|
1505
1742
|
contentUnitId: string;
|
|
1506
1743
|
segmentId: string;
|
|
1744
|
+
polyglotRefId?: string | undefined;
|
|
1507
1745
|
warnings?: {
|
|
1508
1746
|
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
1509
1747
|
}[] | undefined;
|
|
1510
|
-
polyglotRefId?: string | undefined;
|
|
1511
1748
|
}, {
|
|
1512
1749
|
translation: string;
|
|
1513
1750
|
integration: string;
|
|
1514
1751
|
contentUnitId: string;
|
|
1515
1752
|
segmentId: string;
|
|
1753
|
+
polyglotRefId?: string | undefined;
|
|
1516
1754
|
warnings?: {
|
|
1517
1755
|
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
1518
1756
|
}[] | undefined;
|
|
1519
|
-
polyglotRefId?: string | undefined;
|
|
1520
1757
|
}>, "many">;
|
|
1521
1758
|
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1522
1759
|
message: z.ZodString;
|
|
@@ -1547,10 +1784,10 @@ export declare const TRANSLATE_SYNC_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
1547
1784
|
integration: string;
|
|
1548
1785
|
contentUnitId: string;
|
|
1549
1786
|
segmentId: string;
|
|
1787
|
+
polyglotRefId?: string | undefined;
|
|
1550
1788
|
warnings?: {
|
|
1551
1789
|
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
1552
1790
|
}[] | undefined;
|
|
1553
|
-
polyglotRefId?: string | undefined;
|
|
1554
1791
|
}[];
|
|
1555
1792
|
errors?: {
|
|
1556
1793
|
message: string;
|
|
@@ -1566,10 +1803,10 @@ export declare const TRANSLATE_SYNC_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
1566
1803
|
integration: string;
|
|
1567
1804
|
contentUnitId: string;
|
|
1568
1805
|
segmentId: string;
|
|
1806
|
+
polyglotRefId?: string | undefined;
|
|
1569
1807
|
warnings?: {
|
|
1570
1808
|
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
1571
1809
|
}[] | undefined;
|
|
1572
|
-
polyglotRefId?: string | undefined;
|
|
1573
1810
|
}[];
|
|
1574
1811
|
errors?: {
|
|
1575
1812
|
message: string;
|