@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,8 +1,8 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
import { ASYNC_REQUEST_SCHEMA, AsyncRequestCallbackStatusEnum, } from "../common/asyncRequestSchemas.js";
|
|
3
|
-
import { AI_INTEGRATION_ENGINE_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA, COMMON_FAILED_OPERATION_CALLBACK_SCHEMA, COMMON_REQUEST_HEADERS_SCHEMA, FORCE_INTEGRATION_SCHEMA, LOCALE_SCHEMA, refineIntegrationIsPresent, } from "../common/commonSchemas.js";
|
|
3
|
+
import { AI_INTEGRATION_ENGINE_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA, COMMON_FAILED_OPERATION_CALLBACK_SCHEMA, COMMON_REQUEST_HEADERS_SCHEMA, CONTENT_ID_PROP_SCHEMA, FORCE_INTEGRATION_SCHEMA, LOCALE_SCHEMA, refineIntegrationIsPresent, } from "../common/commonSchemas.js";
|
|
4
4
|
import { TEXT_REWRITING_CONTEXT } from "../common/translationContextSchemas.js";
|
|
5
|
-
import {
|
|
5
|
+
import { HISTORY_REQUEST_SCHEMA, REWRITE_CONTENT_UNIT_SCHEMA, SEGMENT_WARNINGS_SCHEMA, VariantsModeEnum, refineRequestSizeLimit, refineSingleSegmentSizeLimit, refineUniqueIds, } from "./sharedSchemas.js";
|
|
6
6
|
export const REWRITE_TEXT_SEGMENT_BODY_SCHEMA = z
|
|
7
7
|
.object({
|
|
8
8
|
context: TEXT_REWRITING_CONTEXT.optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rewriteTextSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/translation/rewriteTextSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAA;AACnB,OAAO,EACL,oBAAoB,EACpB,8BAA8B,GAC/B,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,uCAAuC,EACvC,6BAA6B,EAC7B,wBAAwB,EACxB,aAAa,EACb,0BAA0B,GAC3B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAA;AAC/E,OAAO,EACL,sBAAsB,EACtB,
|
|
1
|
+
{"version":3,"file":"rewriteTextSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/translation/rewriteTextSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAA;AACnB,OAAO,EACL,oBAAoB,EACpB,8BAA8B,GAC/B,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,uCAAuC,EACvC,6BAA6B,EAC7B,sBAAsB,EACtB,wBAAwB,EACxB,aAAa,EACb,0BAA0B,GAC3B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAA;AAC/E,OAAO,EACL,sBAAsB,EACtB,2BAA2B,EAC3B,uBAAuB,EACvB,gBAAgB,EAChB,sBAAsB,EACtB,4BAA4B,EAC5B,eAAe,GAChB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,MAAM,CAAC;IACN,OAAO,EAAE,sBAAsB,CAAC,QAAQ,EAAE;IAC1C,MAAM,EAAE,sBAAsB,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IACvF,MAAM,EAAE,aAAa;IACrB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IAClE,WAAW,EAAE,4BAA4B,CAAC,QAA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|
|
3
|
+
import { IntegrationEngineEnum } from '../common/commonSchemas.ts';
|
|
4
4
|
export type ContentUnitLike = {
|
|
5
5
|
segments: {
|
|
6
6
|
value: string;
|
|
@@ -52,7 +52,6 @@ export declare const SEGMENT_WARNINGS_SCHEMA: z.ZodArray<z.ZodObject<{
|
|
|
52
52
|
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
53
53
|
}>, "many">;
|
|
54
54
|
export declare const CONTENT_UNIT_DESCRIPTION_MAX_LENGTH = 32768;
|
|
55
|
-
export declare const CONTENT_ID_PROP_SCHEMA: z.ZodString;
|
|
56
55
|
export declare const TRANSLATE_SEGMENT_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
57
56
|
id: z.ZodString;
|
|
58
57
|
tmMatch: z.ZodOptional<z.ZodObject<{
|
|
@@ -79,47 +78,47 @@ export declare const TRANSLATE_SEGMENT_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
|
79
78
|
}, "strip", z.ZodTypeAny, {
|
|
80
79
|
value: string;
|
|
81
80
|
id: string;
|
|
82
|
-
translationExamples?: {
|
|
83
|
-
sourceValue: string;
|
|
84
|
-
translatedValue: string;
|
|
85
|
-
}[] | undefined;
|
|
86
81
|
tmMatch?: {
|
|
87
82
|
sourceValue: string;
|
|
88
83
|
translatedValue: string;
|
|
89
84
|
} | undefined;
|
|
90
|
-
}, {
|
|
91
|
-
value: string;
|
|
92
|
-
id: string;
|
|
93
85
|
translationExamples?: {
|
|
94
86
|
sourceValue: string;
|
|
95
87
|
translatedValue: string;
|
|
96
88
|
}[] | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
value: string;
|
|
91
|
+
id: string;
|
|
97
92
|
tmMatch?: {
|
|
98
93
|
sourceValue: string;
|
|
99
94
|
translatedValue: string;
|
|
100
95
|
} | undefined;
|
|
101
|
-
}>, {
|
|
102
|
-
value: string;
|
|
103
|
-
id: string;
|
|
104
96
|
translationExamples?: {
|
|
105
97
|
sourceValue: string;
|
|
106
98
|
translatedValue: string;
|
|
107
99
|
}[] | undefined;
|
|
100
|
+
}>, {
|
|
101
|
+
value: string;
|
|
102
|
+
id: string;
|
|
108
103
|
tmMatch?: {
|
|
109
104
|
sourceValue: string;
|
|
110
105
|
translatedValue: string;
|
|
111
106
|
} | undefined;
|
|
112
|
-
}, {
|
|
113
|
-
value: string;
|
|
114
|
-
id: string;
|
|
115
107
|
translationExamples?: {
|
|
116
108
|
sourceValue: string;
|
|
117
109
|
translatedValue: string;
|
|
118
110
|
}[] | undefined;
|
|
111
|
+
}, {
|
|
112
|
+
value: string;
|
|
113
|
+
id: string;
|
|
119
114
|
tmMatch?: {
|
|
120
115
|
sourceValue: string;
|
|
121
116
|
translatedValue: string;
|
|
122
117
|
} | undefined;
|
|
118
|
+
translationExamples?: {
|
|
119
|
+
sourceValue: string;
|
|
120
|
+
translatedValue: string;
|
|
121
|
+
}[] | undefined;
|
|
123
122
|
}>;
|
|
124
123
|
export declare const TRANSLATE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
125
124
|
id: z.ZodString;
|
|
@@ -157,146 +156,146 @@ export declare const TRANSLATE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
157
156
|
}, "strip", z.ZodTypeAny, {
|
|
158
157
|
value: string;
|
|
159
158
|
id: string;
|
|
160
|
-
translationExamples?: {
|
|
161
|
-
sourceValue: string;
|
|
162
|
-
translatedValue: string;
|
|
163
|
-
}[] | undefined;
|
|
164
159
|
tmMatch?: {
|
|
165
160
|
sourceValue: string;
|
|
166
161
|
translatedValue: string;
|
|
167
162
|
} | undefined;
|
|
168
|
-
}, {
|
|
169
|
-
value: string;
|
|
170
|
-
id: string;
|
|
171
163
|
translationExamples?: {
|
|
172
164
|
sourceValue: string;
|
|
173
165
|
translatedValue: string;
|
|
174
166
|
}[] | undefined;
|
|
167
|
+
}, {
|
|
168
|
+
value: string;
|
|
169
|
+
id: string;
|
|
175
170
|
tmMatch?: {
|
|
176
171
|
sourceValue: string;
|
|
177
172
|
translatedValue: string;
|
|
178
173
|
} | undefined;
|
|
179
|
-
}>, {
|
|
180
|
-
value: string;
|
|
181
|
-
id: string;
|
|
182
174
|
translationExamples?: {
|
|
183
175
|
sourceValue: string;
|
|
184
176
|
translatedValue: string;
|
|
185
177
|
}[] | undefined;
|
|
178
|
+
}>, {
|
|
179
|
+
value: string;
|
|
180
|
+
id: string;
|
|
186
181
|
tmMatch?: {
|
|
187
182
|
sourceValue: string;
|
|
188
183
|
translatedValue: string;
|
|
189
184
|
} | undefined;
|
|
190
|
-
}, {
|
|
191
|
-
value: string;
|
|
192
|
-
id: string;
|
|
193
185
|
translationExamples?: {
|
|
194
186
|
sourceValue: string;
|
|
195
187
|
translatedValue: string;
|
|
196
188
|
}[] | undefined;
|
|
189
|
+
}, {
|
|
190
|
+
value: string;
|
|
191
|
+
id: string;
|
|
197
192
|
tmMatch?: {
|
|
198
193
|
sourceValue: string;
|
|
199
194
|
translatedValue: string;
|
|
200
195
|
} | undefined;
|
|
201
|
-
}>, "atleastone">, [{
|
|
202
|
-
value: string;
|
|
203
|
-
id: string;
|
|
204
196
|
translationExamples?: {
|
|
205
197
|
sourceValue: string;
|
|
206
198
|
translatedValue: string;
|
|
207
199
|
}[] | undefined;
|
|
200
|
+
}>, "atleastone">, [{
|
|
201
|
+
value: string;
|
|
202
|
+
id: string;
|
|
208
203
|
tmMatch?: {
|
|
209
204
|
sourceValue: string;
|
|
210
205
|
translatedValue: string;
|
|
211
206
|
} | undefined;
|
|
212
|
-
}, ...{
|
|
213
|
-
value: string;
|
|
214
|
-
id: string;
|
|
215
207
|
translationExamples?: {
|
|
216
208
|
sourceValue: string;
|
|
217
209
|
translatedValue: string;
|
|
218
210
|
}[] | undefined;
|
|
211
|
+
}, ...{
|
|
212
|
+
value: string;
|
|
213
|
+
id: string;
|
|
219
214
|
tmMatch?: {
|
|
220
215
|
sourceValue: string;
|
|
221
216
|
translatedValue: string;
|
|
222
217
|
} | undefined;
|
|
223
|
-
}[]], [{
|
|
224
|
-
value: string;
|
|
225
|
-
id: string;
|
|
226
218
|
translationExamples?: {
|
|
227
219
|
sourceValue: string;
|
|
228
220
|
translatedValue: string;
|
|
229
221
|
}[] | undefined;
|
|
222
|
+
}[]], [{
|
|
223
|
+
value: string;
|
|
224
|
+
id: string;
|
|
230
225
|
tmMatch?: {
|
|
231
226
|
sourceValue: string;
|
|
232
227
|
translatedValue: string;
|
|
233
228
|
} | undefined;
|
|
234
|
-
}, ...{
|
|
235
|
-
value: string;
|
|
236
|
-
id: string;
|
|
237
229
|
translationExamples?: {
|
|
238
230
|
sourceValue: string;
|
|
239
231
|
translatedValue: string;
|
|
240
232
|
}[] | undefined;
|
|
233
|
+
}, ...{
|
|
234
|
+
value: string;
|
|
235
|
+
id: string;
|
|
241
236
|
tmMatch?: {
|
|
242
237
|
sourceValue: string;
|
|
243
238
|
translatedValue: string;
|
|
244
239
|
} | undefined;
|
|
240
|
+
translationExamples?: {
|
|
241
|
+
sourceValue: string;
|
|
242
|
+
translatedValue: string;
|
|
243
|
+
}[] | undefined;
|
|
245
244
|
}[]]>;
|
|
246
245
|
}, "strip", z.ZodTypeAny, {
|
|
247
|
-
id: string;
|
|
248
246
|
segments: [{
|
|
249
247
|
value: string;
|
|
250
248
|
id: string;
|
|
251
|
-
translationExamples?: {
|
|
252
|
-
sourceValue: string;
|
|
253
|
-
translatedValue: string;
|
|
254
|
-
}[] | undefined;
|
|
255
249
|
tmMatch?: {
|
|
256
250
|
sourceValue: string;
|
|
257
251
|
translatedValue: string;
|
|
258
252
|
} | undefined;
|
|
259
|
-
}, ...{
|
|
260
|
-
value: string;
|
|
261
|
-
id: string;
|
|
262
253
|
translationExamples?: {
|
|
263
254
|
sourceValue: string;
|
|
264
255
|
translatedValue: string;
|
|
265
256
|
}[] | undefined;
|
|
257
|
+
}, ...{
|
|
258
|
+
value: string;
|
|
259
|
+
id: string;
|
|
266
260
|
tmMatch?: {
|
|
267
261
|
sourceValue: string;
|
|
268
262
|
translatedValue: string;
|
|
269
263
|
} | undefined;
|
|
264
|
+
translationExamples?: {
|
|
265
|
+
sourceValue: string;
|
|
266
|
+
translatedValue: string;
|
|
267
|
+
}[] | undefined;
|
|
270
268
|
}[]];
|
|
269
|
+
id: string;
|
|
271
270
|
context?: {
|
|
272
271
|
description: string;
|
|
273
272
|
} | undefined;
|
|
274
273
|
characterLimit?: number | undefined;
|
|
275
274
|
}, {
|
|
276
|
-
id: string;
|
|
277
275
|
segments: [{
|
|
278
276
|
value: string;
|
|
279
277
|
id: string;
|
|
280
|
-
translationExamples?: {
|
|
281
|
-
sourceValue: string;
|
|
282
|
-
translatedValue: string;
|
|
283
|
-
}[] | undefined;
|
|
284
278
|
tmMatch?: {
|
|
285
279
|
sourceValue: string;
|
|
286
280
|
translatedValue: string;
|
|
287
281
|
} | undefined;
|
|
288
|
-
}, ...{
|
|
289
|
-
value: string;
|
|
290
|
-
id: string;
|
|
291
282
|
translationExamples?: {
|
|
292
283
|
sourceValue: string;
|
|
293
284
|
translatedValue: string;
|
|
294
285
|
}[] | undefined;
|
|
286
|
+
}, ...{
|
|
287
|
+
value: string;
|
|
288
|
+
id: string;
|
|
295
289
|
tmMatch?: {
|
|
296
290
|
sourceValue: string;
|
|
297
291
|
translatedValue: string;
|
|
298
292
|
} | undefined;
|
|
293
|
+
translationExamples?: {
|
|
294
|
+
sourceValue: string;
|
|
295
|
+
translatedValue: string;
|
|
296
|
+
}[] | undefined;
|
|
299
297
|
}[]];
|
|
298
|
+
id: string;
|
|
300
299
|
context?: {
|
|
301
300
|
description: string;
|
|
302
301
|
} | undefined;
|
|
@@ -350,7 +349,6 @@ export declare const REWRITE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
350
349
|
id: string;
|
|
351
350
|
}[]]>;
|
|
352
351
|
}, "strip", z.ZodTypeAny, {
|
|
353
|
-
id: string;
|
|
354
352
|
segments: [{
|
|
355
353
|
value: string;
|
|
356
354
|
id: string;
|
|
@@ -358,12 +356,12 @@ export declare const REWRITE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
358
356
|
value: string;
|
|
359
357
|
id: string;
|
|
360
358
|
}[]];
|
|
359
|
+
id: string;
|
|
361
360
|
context?: {
|
|
362
361
|
description: string;
|
|
363
362
|
} | undefined;
|
|
364
363
|
characterLimit?: number | undefined;
|
|
365
364
|
}, {
|
|
366
|
-
id: string;
|
|
367
365
|
segments: [{
|
|
368
366
|
value: string;
|
|
369
367
|
id: string;
|
|
@@ -371,6 +369,7 @@ export declare const REWRITE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
371
369
|
value: string;
|
|
372
370
|
id: string;
|
|
373
371
|
}[]];
|
|
372
|
+
id: string;
|
|
374
373
|
context?: {
|
|
375
374
|
description: string;
|
|
376
375
|
} | undefined;
|
|
@@ -424,3 +423,203 @@ export declare const HISTORY_ENTRY_SCHEMA: z.ZodObject<{
|
|
|
424
423
|
mode: "rephrase" | "shorten" | "translate";
|
|
425
424
|
}>;
|
|
426
425
|
export type HistoryEntry = z.infer<typeof HISTORY_ENTRY_SCHEMA>;
|
|
426
|
+
/**
|
|
427
|
+
* Streaming events
|
|
428
|
+
*/
|
|
429
|
+
export declare const TRANSLATION_EVENT_SCHEMA: z.ZodObject<{
|
|
430
|
+
event: z.ZodLiteral<"translation">;
|
|
431
|
+
data: z.ZodObject<{
|
|
432
|
+
id: z.ZodString;
|
|
433
|
+
content: z.ZodString;
|
|
434
|
+
isComplete: z.ZodBoolean;
|
|
435
|
+
integration: z.ZodNativeEnum<{
|
|
436
|
+
readonly FAKE: "Fake";
|
|
437
|
+
readonly FINETUNED_OPENAI: "FT-OpenAI";
|
|
438
|
+
readonly CLAUDE: "Claude";
|
|
439
|
+
readonly GPT: "GPT";
|
|
440
|
+
readonly GEMINI: "Gemini";
|
|
441
|
+
readonly DEEPL: "DeepL";
|
|
442
|
+
readonly GOOGLE_TRANSLATE: "GoogleTranslate";
|
|
443
|
+
readonly MICROSOFT_TRANSLATOR: "MicrosoftTranslator";
|
|
444
|
+
}>;
|
|
445
|
+
polyglotRefId: z.ZodOptional<z.ZodString>;
|
|
446
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
447
|
+
kind: z.ZodEnum<["EDITED_NON_TRANSLATABLE_CONTENT", "EDITED_ICU_PLURALS"]>;
|
|
448
|
+
}, "strip", z.ZodTypeAny, {
|
|
449
|
+
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
450
|
+
}, {
|
|
451
|
+
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
452
|
+
}>, "many">>;
|
|
453
|
+
}, "strip", z.ZodTypeAny, {
|
|
454
|
+
id: string;
|
|
455
|
+
content: string;
|
|
456
|
+
isComplete: boolean;
|
|
457
|
+
integration: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | "Fake";
|
|
458
|
+
polyglotRefId?: string | undefined;
|
|
459
|
+
warnings?: {
|
|
460
|
+
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
461
|
+
}[] | undefined;
|
|
462
|
+
}, {
|
|
463
|
+
id: string;
|
|
464
|
+
content: string;
|
|
465
|
+
isComplete: boolean;
|
|
466
|
+
integration: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | "Fake";
|
|
467
|
+
polyglotRefId?: string | undefined;
|
|
468
|
+
warnings?: {
|
|
469
|
+
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
470
|
+
}[] | undefined;
|
|
471
|
+
}>;
|
|
472
|
+
}, "strip", z.ZodTypeAny, {
|
|
473
|
+
event: "translation";
|
|
474
|
+
data: {
|
|
475
|
+
id: string;
|
|
476
|
+
content: string;
|
|
477
|
+
isComplete: boolean;
|
|
478
|
+
integration: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | "Fake";
|
|
479
|
+
polyglotRefId?: string | undefined;
|
|
480
|
+
warnings?: {
|
|
481
|
+
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
482
|
+
}[] | undefined;
|
|
483
|
+
};
|
|
484
|
+
}, {
|
|
485
|
+
event: "translation";
|
|
486
|
+
data: {
|
|
487
|
+
id: string;
|
|
488
|
+
content: string;
|
|
489
|
+
isComplete: boolean;
|
|
490
|
+
integration: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | "Fake";
|
|
491
|
+
polyglotRefId?: string | undefined;
|
|
492
|
+
warnings?: {
|
|
493
|
+
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
494
|
+
}[] | undefined;
|
|
495
|
+
};
|
|
496
|
+
}>;
|
|
497
|
+
export declare const ERROR_EVENT_SCHEMA: z.ZodObject<{
|
|
498
|
+
event: z.ZodLiteral<"error">;
|
|
499
|
+
data: z.ZodObject<{
|
|
500
|
+
message: z.ZodString;
|
|
501
|
+
errorCode: z.ZodString;
|
|
502
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
503
|
+
}, "strip", z.ZodTypeAny, {
|
|
504
|
+
message: string;
|
|
505
|
+
errorCode: string;
|
|
506
|
+
details?: Record<string, unknown> | undefined;
|
|
507
|
+
}, {
|
|
508
|
+
message: string;
|
|
509
|
+
errorCode: string;
|
|
510
|
+
details?: Record<string, unknown> | undefined;
|
|
511
|
+
}>;
|
|
512
|
+
}, "strip", z.ZodTypeAny, {
|
|
513
|
+
event: "error";
|
|
514
|
+
data: {
|
|
515
|
+
message: string;
|
|
516
|
+
errorCode: string;
|
|
517
|
+
details?: Record<string, unknown> | undefined;
|
|
518
|
+
};
|
|
519
|
+
}, {
|
|
520
|
+
event: "error";
|
|
521
|
+
data: {
|
|
522
|
+
message: string;
|
|
523
|
+
errorCode: string;
|
|
524
|
+
details?: Record<string, unknown> | undefined;
|
|
525
|
+
};
|
|
526
|
+
}>;
|
|
527
|
+
export declare const STREAMING_EVENT_SCHEMA: z.ZodDiscriminatedUnion<"event", [z.ZodObject<{
|
|
528
|
+
event: z.ZodLiteral<"translation">;
|
|
529
|
+
data: z.ZodObject<{
|
|
530
|
+
id: z.ZodString;
|
|
531
|
+
content: z.ZodString;
|
|
532
|
+
isComplete: z.ZodBoolean;
|
|
533
|
+
integration: z.ZodNativeEnum<{
|
|
534
|
+
readonly FAKE: "Fake";
|
|
535
|
+
readonly FINETUNED_OPENAI: "FT-OpenAI";
|
|
536
|
+
readonly CLAUDE: "Claude";
|
|
537
|
+
readonly GPT: "GPT";
|
|
538
|
+
readonly GEMINI: "Gemini";
|
|
539
|
+
readonly DEEPL: "DeepL";
|
|
540
|
+
readonly GOOGLE_TRANSLATE: "GoogleTranslate";
|
|
541
|
+
readonly MICROSOFT_TRANSLATOR: "MicrosoftTranslator";
|
|
542
|
+
}>;
|
|
543
|
+
polyglotRefId: z.ZodOptional<z.ZodString>;
|
|
544
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
545
|
+
kind: z.ZodEnum<["EDITED_NON_TRANSLATABLE_CONTENT", "EDITED_ICU_PLURALS"]>;
|
|
546
|
+
}, "strip", z.ZodTypeAny, {
|
|
547
|
+
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
548
|
+
}, {
|
|
549
|
+
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
550
|
+
}>, "many">>;
|
|
551
|
+
}, "strip", z.ZodTypeAny, {
|
|
552
|
+
id: string;
|
|
553
|
+
content: string;
|
|
554
|
+
isComplete: boolean;
|
|
555
|
+
integration: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | "Fake";
|
|
556
|
+
polyglotRefId?: string | undefined;
|
|
557
|
+
warnings?: {
|
|
558
|
+
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
559
|
+
}[] | undefined;
|
|
560
|
+
}, {
|
|
561
|
+
id: string;
|
|
562
|
+
content: string;
|
|
563
|
+
isComplete: boolean;
|
|
564
|
+
integration: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | "Fake";
|
|
565
|
+
polyglotRefId?: string | undefined;
|
|
566
|
+
warnings?: {
|
|
567
|
+
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
568
|
+
}[] | undefined;
|
|
569
|
+
}>;
|
|
570
|
+
}, "strip", z.ZodTypeAny, {
|
|
571
|
+
event: "translation";
|
|
572
|
+
data: {
|
|
573
|
+
id: string;
|
|
574
|
+
content: string;
|
|
575
|
+
isComplete: boolean;
|
|
576
|
+
integration: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | "Fake";
|
|
577
|
+
polyglotRefId?: string | undefined;
|
|
578
|
+
warnings?: {
|
|
579
|
+
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
580
|
+
}[] | undefined;
|
|
581
|
+
};
|
|
582
|
+
}, {
|
|
583
|
+
event: "translation";
|
|
584
|
+
data: {
|
|
585
|
+
id: string;
|
|
586
|
+
content: string;
|
|
587
|
+
isComplete: boolean;
|
|
588
|
+
integration: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | "Fake";
|
|
589
|
+
polyglotRefId?: string | undefined;
|
|
590
|
+
warnings?: {
|
|
591
|
+
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
592
|
+
}[] | undefined;
|
|
593
|
+
};
|
|
594
|
+
}>, z.ZodObject<{
|
|
595
|
+
event: z.ZodLiteral<"error">;
|
|
596
|
+
data: z.ZodObject<{
|
|
597
|
+
message: z.ZodString;
|
|
598
|
+
errorCode: z.ZodString;
|
|
599
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
600
|
+
}, "strip", z.ZodTypeAny, {
|
|
601
|
+
message: string;
|
|
602
|
+
errorCode: string;
|
|
603
|
+
details?: Record<string, unknown> | undefined;
|
|
604
|
+
}, {
|
|
605
|
+
message: string;
|
|
606
|
+
errorCode: string;
|
|
607
|
+
details?: Record<string, unknown> | undefined;
|
|
608
|
+
}>;
|
|
609
|
+
}, "strip", z.ZodTypeAny, {
|
|
610
|
+
event: "error";
|
|
611
|
+
data: {
|
|
612
|
+
message: string;
|
|
613
|
+
errorCode: string;
|
|
614
|
+
details?: Record<string, unknown> | undefined;
|
|
615
|
+
};
|
|
616
|
+
}, {
|
|
617
|
+
event: "error";
|
|
618
|
+
data: {
|
|
619
|
+
message: string;
|
|
620
|
+
errorCode: string;
|
|
621
|
+
details?: Record<string, unknown> | undefined;
|
|
622
|
+
};
|
|
623
|
+
}>]>;
|
|
624
|
+
export type TranslationEvent = z.infer<typeof TRANSLATION_EVENT_SCHEMA>;
|
|
625
|
+
export type StreamingEvent = TranslationEvent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
import { isSegmentUnderLengthLimit } from "../../validation/isSegmentUnderLengthLimit.js";
|
|
3
3
|
import { getRequestSizeLimit, isRequestSizeUnderLimit } from "../../validation/requestSizeLimit.js";
|
|
4
|
-
import { TM_MATCH_SCHEMA, TRANSLATION_EXAMPLE_SCHEMA, } from "../common/commonSchemas.js";
|
|
4
|
+
import { COMMON_ERROR_RESPONSE_SCHEMA, CONTENT_ID_PROP_SCHEMA, IntegrationEngineEnum, TM_MATCH_SCHEMA, TRANSLATION_EXAMPLE_SCHEMA, transformTmMatchToTranslationExamples, } from "../common/commonSchemas.js";
|
|
5
5
|
export const refineDifferentSourceAndTargetLang = [
|
|
6
6
|
(data) => {
|
|
7
7
|
return data.sourceLocale !== data.targetLocale;
|
|
@@ -44,31 +44,19 @@ export const SEGMENT_TRANSLATION_WARNING_SCHEMA = z.object({
|
|
|
44
44
|
kind: z.enum(TRANSLATION_QUALITY_WARNING_KINDS),
|
|
45
45
|
});
|
|
46
46
|
export const SEGMENT_WARNINGS_SCHEMA = z.array(SEGMENT_TRANSLATION_WARNING_SCHEMA);
|
|
47
|
-
const ID_PROP_MAX_LENGTH = 100;
|
|
48
47
|
export const CONTENT_UNIT_DESCRIPTION_MAX_LENGTH = 32768;
|
|
49
48
|
const CONTENT_UNIT_SEGMENTS_MAX_LENGTH = 1000; // context -> https://lokalise.slack.com/archives/C07BVQEMCRJ/p1725002827265889
|
|
50
|
-
export const CONTENT_ID_PROP_SCHEMA = z.string().min(1).max(ID_PROP_MAX_LENGTH);
|
|
51
49
|
export const TRANSLATE_SEGMENT_SCHEMA = z
|
|
52
50
|
.object({
|
|
53
51
|
id: CONTENT_ID_PROP_SCHEMA,
|
|
54
|
-
tmMatch: TM_MATCH_SCHEMA
|
|
52
|
+
tmMatch: TM_MATCH_SCHEMA,
|
|
55
53
|
translationExamples: z
|
|
56
54
|
.array(TRANSLATION_EXAMPLE_SCHEMA)
|
|
57
55
|
.optional()
|
|
58
56
|
.describe('When defined, the translation will attempt to follow the provided translation example'),
|
|
59
57
|
value: z.string().min(1),
|
|
60
58
|
})
|
|
61
|
-
.transform(
|
|
62
|
-
if (segment.tmMatch) {
|
|
63
|
-
segment.translationExamples = segment.translationExamples
|
|
64
|
-
? [...segment.translationExamples, segment.tmMatch]
|
|
65
|
-
: [segment.tmMatch];
|
|
66
|
-
}
|
|
67
|
-
if (segment.translationExamples?.length === 0) {
|
|
68
|
-
segment.translationExamples = undefined;
|
|
69
|
-
}
|
|
70
|
-
return segment;
|
|
71
|
-
});
|
|
59
|
+
.transform(transformTmMatchToTranslationExamples);
|
|
72
60
|
export const TRANSLATE_CONTENT_UNIT_SCHEMA = z.object({
|
|
73
61
|
id: CONTENT_ID_PROP_SCHEMA,
|
|
74
62
|
context: z
|
|
@@ -135,4 +123,26 @@ export const HISTORY_ENTRY_SCHEMA = z.object({
|
|
|
135
123
|
mode: z.nativeEnum(TranslateModeEnum).describe('Previously used translation mode'),
|
|
136
124
|
value: z.string().min(1).describe('Previous version of the translation'),
|
|
137
125
|
});
|
|
126
|
+
/**
|
|
127
|
+
* Streaming events
|
|
128
|
+
*/
|
|
129
|
+
export const TRANSLATION_EVENT_SCHEMA = z.object({
|
|
130
|
+
event: z.literal('translation'),
|
|
131
|
+
data: z.object({
|
|
132
|
+
id: z.string(),
|
|
133
|
+
content: z.string(),
|
|
134
|
+
isComplete: z.boolean(),
|
|
135
|
+
integration: z.nativeEnum(IntegrationEngineEnum),
|
|
136
|
+
polyglotRefId: z.string().optional(),
|
|
137
|
+
warnings: SEGMENT_WARNINGS_SCHEMA.optional(),
|
|
138
|
+
}),
|
|
139
|
+
});
|
|
140
|
+
export const ERROR_EVENT_SCHEMA = z.object({
|
|
141
|
+
event: z.literal('error'),
|
|
142
|
+
data: COMMON_ERROR_RESPONSE_SCHEMA,
|
|
143
|
+
});
|
|
144
|
+
export const STREAMING_EVENT_SCHEMA = z.discriminatedUnion('event', [
|
|
145
|
+
TRANSLATION_EVENT_SCHEMA,
|
|
146
|
+
ERROR_EVENT_SCHEMA,
|
|
147
|
+
]);
|
|
138
148
|
//# sourceMappingURL=sharedSchemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/translation/sharedSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAA;AAEnB,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAA;AACzF,OAAO,EAAE,m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