@lokalise/polyglot-sdk 18.0.0 → 18.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sdk/schemas/common/commonSchemas.d.ts +6 -0
- package/dist/sdk/schemas/common/commonSchemas.js +10 -1
- package/dist/sdk/schemas/common/commonSchemas.js.map +1 -1
- package/dist/sdk/schemas/translation/generateVariants.d.ts +88 -1
- package/dist/sdk/schemas/translation/generateVariants.js +4 -2
- package/dist/sdk/schemas/translation/generateVariants.js.map +1 -1
- package/dist/sdk/schemas/translation/rewriteTextSchemas.d.ts +134 -1
- package/dist/sdk/schemas/translation/rewriteTextSchemas.js +4 -2
- package/dist/sdk/schemas/translation/rewriteTextSchemas.js.map +1 -1
- package/dist/sdk/schemas/translation/translateAsyncSchemas.d.ts +224 -1
- package/dist/sdk/schemas/translation/translateAsyncSchemas.js +3 -1
- package/dist/sdk/schemas/translation/translateAsyncSchemas.js.map +1 -1
- package/dist/sdk/schemas/translation/translateSyncSchemas.d.ts +214 -1
- package/dist/sdk/schemas/translation/translateSyncSchemas.js +4 -2
- package/dist/sdk/schemas/translation/translateSyncSchemas.js.map +1 -1
- package/dist/sdk/schemas/translation/translateTextSegmentSchemas.d.ts +148 -1
- package/dist/sdk/schemas/translation/translateTextSegmentSchemas.js +4 -2
- package/dist/sdk/schemas/translation/translateTextSegmentSchemas.js.map +1 -1
- package/dist/sdk/validation/requestSizeLimit.d.ts +2 -2
- package/dist/sdk/validation/requestSizeLimit.js +4 -4
- package/dist/sdk/validation/requestSizeLimit.js.map +1 -1
- package/package.json +1 -1
|
@@ -47,6 +47,11 @@ export declare const REAL_INTEGRATION_ENGINE_SCHEMA: z.ZodNativeEnum<{
|
|
|
47
47
|
readonly GOOGLE_TRANSLATE: "GoogleTranslate";
|
|
48
48
|
readonly MICROSOFT_TRANSLATOR: "MicrosoftTranslator";
|
|
49
49
|
}>;
|
|
50
|
+
export declare const FORCE_INTEGRATION_SCHEMA: z.ZodBoolean;
|
|
51
|
+
export declare const refineIntegrationIsPresent: readonly [(data: {
|
|
52
|
+
integration?: string;
|
|
53
|
+
forceIntegration?: boolean;
|
|
54
|
+
}) => true | "" | undefined, "Field `integration` must be provided if `forceIntegration` is set."];
|
|
50
55
|
export declare const IntegrationEngineEnum: {
|
|
51
56
|
readonly FAKE: "Fake";
|
|
52
57
|
readonly FINETUNED_OPENAI: "FT-OpenAI";
|
|
@@ -100,6 +105,7 @@ export declare const COMMON_REQUEST_HEADERS_SCHEMA: z.ZodObject<{
|
|
|
100
105
|
}, {
|
|
101
106
|
'x-fake-processing'?: unknown;
|
|
102
107
|
}>;
|
|
108
|
+
export type CommonRequestHeaders = z.infer<typeof COMMON_REQUEST_HEADERS_SCHEMA>;
|
|
103
109
|
export declare const LOCALE_SCHEMA: z.ZodEffects<z.ZodString, string, string>;
|
|
104
110
|
export declare const TM_MATCH_SCHEMA: z.ZodOptional<z.ZodObject<{
|
|
105
111
|
sourceValue: z.ZodString;
|
|
@@ -28,7 +28,16 @@ export const RealIntegrationEngineEnum = {
|
|
|
28
28
|
};
|
|
29
29
|
export const REAL_INTEGRATION_ENGINE_SCHEMA = z
|
|
30
30
|
.nativeEnum(RealIntegrationEngineEnum)
|
|
31
|
-
.describe('Indicates which integration should be used to process the request');
|
|
31
|
+
.describe('Indicates which integration should be used to process the request (preferably)');
|
|
32
|
+
export const FORCE_INTEGRATION_SCHEMA = z
|
|
33
|
+
.boolean()
|
|
34
|
+
.describe('If `true`, the request will fail if `integration` is unavailable, otherwise it will fall back to the default resolution logic');
|
|
35
|
+
export const refineIntegrationIsPresent = [
|
|
36
|
+
(data) => {
|
|
37
|
+
return !data.forceIntegration || (data.integration && data.forceIntegration);
|
|
38
|
+
},
|
|
39
|
+
'Field `integration` must be provided if `forceIntegration` is set.',
|
|
40
|
+
];
|
|
32
41
|
export const IntegrationEngineEnum = {
|
|
33
42
|
...RealIntegrationEngineEnum,
|
|
34
43
|
FAKE: 'Fake',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/common/commonSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,CAAC,MAAM,KAAK,CAAA;AAGnB,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAA;AAEzE,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,gBAAgB,EAAE,WAAW;CACrB,CAAA;AAGV,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,GAAG,8BAA8B;CACzB,CAAA;AAGV,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC;KAC1C,UAAU,CAAC,uBAAuB,CAAC;KACnC,QAAQ,CAAC,mEAAmE,CAAC,CAAA;AAEhF,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,KAAK,EAAE,OAAO;IACd,gBAAgB,EAAE,iBAAiB;IACnC,oBAAoB,EAAE,qBAAqB;CACnC,CAAA;AAGV,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC;KAC1C,UAAU,CAAC,uBAAuB,CAAC;KACnC,QAAQ,CAAC,mEAAmE,CAAC,CAAA;AAEhF,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,GAAG,uBAAuB;IAC1B,GAAG,uBAAuB;CAClB,CAAA;AAGV,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC;KAC5C,UAAU,CAAC,yBAAyB,CAAC;KACrC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"commonSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/common/commonSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,M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,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAC7F,CAAA;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,MAAM,CAAC,gBAAgB,CAAC;KACxB,QAAQ,CAAC,qEAAqE,CAAC;KAC/E,QAAQ,EAAE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
export declare const GENERATE_VARIANTS_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
2
|
+
export declare const GENERATE_VARIANTS_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
3
3
|
assets: z.ZodOptional<z.ZodObject<{
|
|
4
4
|
description: z.ZodOptional<z.ZodString>;
|
|
5
5
|
styleGuide: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -174,6 +174,7 @@ export declare const GENERATE_VARIANTS_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.
|
|
|
174
174
|
readonly CHAT_GPT4: "ChatGPT-4";
|
|
175
175
|
readonly GEMINI: "Gemini";
|
|
176
176
|
}>>;
|
|
177
|
+
forceIntegration: z.ZodOptional<z.ZodBoolean>;
|
|
177
178
|
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
178
179
|
values: z.ZodArray<z.ZodString, "atleastone">;
|
|
179
180
|
mode: z.ZodPipeline<z.ZodString, z.ZodNativeEnum<{
|
|
@@ -226,6 +227,7 @@ export declare const GENERATE_VARIANTS_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.
|
|
|
226
227
|
translatedValue: string;
|
|
227
228
|
}[] | undefined;
|
|
228
229
|
} | undefined;
|
|
230
|
+
forceIntegration?: boolean | undefined;
|
|
229
231
|
history?: {
|
|
230
232
|
values: [string, ...string[]];
|
|
231
233
|
mode: "rephrase" | "shorten";
|
|
@@ -265,6 +267,7 @@ export declare const GENERATE_VARIANTS_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.
|
|
|
265
267
|
translatedValue: string;
|
|
266
268
|
}[] | undefined;
|
|
267
269
|
} | undefined;
|
|
270
|
+
forceIntegration?: boolean | undefined;
|
|
268
271
|
history?: {
|
|
269
272
|
values: [string, ...string[]];
|
|
270
273
|
mode: string;
|
|
@@ -304,6 +307,7 @@ export declare const GENERATE_VARIANTS_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.
|
|
|
304
307
|
translatedValue: string;
|
|
305
308
|
}[] | undefined;
|
|
306
309
|
} | undefined;
|
|
310
|
+
forceIntegration?: boolean | undefined;
|
|
307
311
|
history?: {
|
|
308
312
|
values: [string, ...string[]];
|
|
309
313
|
mode: "rephrase" | "shorten";
|
|
@@ -343,6 +347,7 @@ export declare const GENERATE_VARIANTS_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.
|
|
|
343
347
|
translatedValue: string;
|
|
344
348
|
}[] | undefined;
|
|
345
349
|
} | undefined;
|
|
350
|
+
forceIntegration?: boolean | undefined;
|
|
346
351
|
history?: {
|
|
347
352
|
values: [string, ...string[]];
|
|
348
353
|
mode: string;
|
|
@@ -382,6 +387,7 @@ export declare const GENERATE_VARIANTS_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.
|
|
|
382
387
|
translatedValue: string;
|
|
383
388
|
}[] | undefined;
|
|
384
389
|
} | undefined;
|
|
390
|
+
forceIntegration?: boolean | undefined;
|
|
385
391
|
history?: {
|
|
386
392
|
values: [string, ...string[]];
|
|
387
393
|
mode: "rephrase" | "shorten";
|
|
@@ -421,6 +427,87 @@ export declare const GENERATE_VARIANTS_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.
|
|
|
421
427
|
translatedValue: string;
|
|
422
428
|
}[] | undefined;
|
|
423
429
|
} | undefined;
|
|
430
|
+
forceIntegration?: boolean | undefined;
|
|
431
|
+
history?: {
|
|
432
|
+
values: [string, ...string[]];
|
|
433
|
+
mode: string;
|
|
434
|
+
}[] | undefined;
|
|
435
|
+
}>, {
|
|
436
|
+
sourceValue: string;
|
|
437
|
+
mode: "rephrase" | "shorten";
|
|
438
|
+
sourceLocale: string;
|
|
439
|
+
targetLocale: string;
|
|
440
|
+
targetValue: string;
|
|
441
|
+
integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
|
|
442
|
+
assets?: {
|
|
443
|
+
description?: string | undefined;
|
|
444
|
+
styleGuide?: {
|
|
445
|
+
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
446
|
+
toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
|
|
447
|
+
levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
|
|
448
|
+
generalRule?: "active-voice" | "passive-voice" | undefined;
|
|
449
|
+
} | {
|
|
450
|
+
text: string;
|
|
451
|
+
} | undefined;
|
|
452
|
+
glossary?: {
|
|
453
|
+
term: string;
|
|
454
|
+
translatable: boolean;
|
|
455
|
+
forbidden: boolean;
|
|
456
|
+
caseSensitive: boolean;
|
|
457
|
+
description?: string | undefined;
|
|
458
|
+
translations?: {
|
|
459
|
+
locale: string;
|
|
460
|
+
translation: string;
|
|
461
|
+
description?: string | undefined;
|
|
462
|
+
}[] | undefined;
|
|
463
|
+
}[] | undefined;
|
|
464
|
+
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
465
|
+
translationExamples?: {
|
|
466
|
+
sourceValue: string;
|
|
467
|
+
translatedValue: string;
|
|
468
|
+
}[] | undefined;
|
|
469
|
+
} | undefined;
|
|
470
|
+
forceIntegration?: boolean | undefined;
|
|
471
|
+
history?: {
|
|
472
|
+
values: [string, ...string[]];
|
|
473
|
+
mode: "rephrase" | "shorten";
|
|
474
|
+
}[] | undefined;
|
|
475
|
+
}, {
|
|
476
|
+
sourceValue: string;
|
|
477
|
+
mode: string;
|
|
478
|
+
sourceLocale: string;
|
|
479
|
+
targetLocale: string;
|
|
480
|
+
targetValue: string;
|
|
481
|
+
integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
|
|
482
|
+
assets?: {
|
|
483
|
+
description?: string | undefined;
|
|
484
|
+
styleGuide?: {
|
|
485
|
+
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
486
|
+
toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
|
|
487
|
+
levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
|
|
488
|
+
generalRule?: "active-voice" | "passive-voice" | undefined;
|
|
489
|
+
} | {
|
|
490
|
+
text: string;
|
|
491
|
+
} | undefined;
|
|
492
|
+
glossary?: {
|
|
493
|
+
term: string;
|
|
494
|
+
description?: string | undefined;
|
|
495
|
+
translatable?: boolean | undefined;
|
|
496
|
+
forbidden?: boolean | undefined;
|
|
497
|
+
caseSensitive?: boolean | undefined;
|
|
498
|
+
translations?: {
|
|
499
|
+
locale: string;
|
|
500
|
+
translation: string;
|
|
501
|
+
description?: string | undefined;
|
|
502
|
+
}[] | undefined;
|
|
503
|
+
}[] | undefined;
|
|
504
|
+
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
505
|
+
translationExamples?: {
|
|
506
|
+
sourceValue: string;
|
|
507
|
+
translatedValue: string;
|
|
508
|
+
}[] | undefined;
|
|
509
|
+
} | undefined;
|
|
510
|
+
forceIntegration?: boolean | undefined;
|
|
424
511
|
history?: {
|
|
425
512
|
values: [string, ...string[]];
|
|
426
513
|
mode: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
import { AI_INTEGRATION_ENGINE_SCHEMA, COMMON_REQUEST_HEADERS_SCHEMA, LOCALE_SCHEMA, } from '../common/commonSchemas.js';
|
|
2
|
+
import { AI_INTEGRATION_ENGINE_SCHEMA, COMMON_REQUEST_HEADERS_SCHEMA, FORCE_INTEGRATION_SCHEMA, LOCALE_SCHEMA, refineIntegrationIsPresent, } from '../common/commonSchemas.js';
|
|
3
3
|
import { TRANSLATION_CONTEXT_SCHEMA } from '../common/translationContextSchemas.js';
|
|
4
4
|
import { HISTORY_REQUEST_SCHEMA, SEGMENT_WARNINGS_SCHEMA, VariantsModeEnum, refineDifferentSourceAndTargetLang, refineSingleSegmentSizeLimit, } from './sharedSchemas.js';
|
|
5
5
|
export const GENERATE_VARIANTS_BODY_SCHEMA = z
|
|
@@ -12,6 +12,7 @@ export const GENERATE_VARIANTS_BODY_SCHEMA = z
|
|
|
12
12
|
.string()
|
|
13
13
|
.describe('Current translation of the text in target language. AI translator will do its best to avoid returning the same value'),
|
|
14
14
|
integration: AI_INTEGRATION_ENGINE_SCHEMA.optional(),
|
|
15
|
+
forceIntegration: FORCE_INTEGRATION_SCHEMA.optional(),
|
|
15
16
|
history: z
|
|
16
17
|
.array(HISTORY_REQUEST_SCHEMA)
|
|
17
18
|
.describe('A list of other previously created variations for this text')
|
|
@@ -23,7 +24,8 @@ export const GENERATE_VARIANTS_BODY_SCHEMA = z
|
|
|
23
24
|
.describe('A specific way of how a new variant is generated. If `rephrase`, it simply gets reworded, if `shorten` - AI tries to also make the translation shorter.'),
|
|
24
25
|
})
|
|
25
26
|
.refine(...refineDifferentSourceAndTargetLang)
|
|
26
|
-
.refine(...refineSingleSegmentSizeLimit)
|
|
27
|
+
.refine(...refineSingleSegmentSizeLimit)
|
|
28
|
+
.refine(...refineIntegrationIsPresent);
|
|
27
29
|
export const GENERATE_VARIANTS_HEADERS_SCHEMA = COMMON_REQUEST_HEADERS_SCHEMA;
|
|
28
30
|
export const GENERATE_VARIANTS_RESPONSE_SCHEMA = z
|
|
29
31
|
.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateVariants.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/translation/generateVariants.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAA;AACnB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,aAAa,
|
|
1
|
+
{"version":3,"file":"generateVariants.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/translation/generateVariants.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAA;AACnB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,wBAAwB,EACxB,aAAa,EACb,0BAA0B,GAC3B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAA;AAEnF,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EAChB,kCAAkC,EAClC,4BAA4B,GAC7B,MAAM,oBAAoB,CAAA;AAE3B,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KAC3C,MAAM,CAAC;IACN,MAAM,EAAE,0BAA0B,CAAC,QAAQ,EAAE;IAC7C,YAAY,EAAE,aAAa;IAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IAClE,YAAY,EAAE,aAAa;IAC3B,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,CACP,sHAAsH,CACvH;IACH,WAAW,EAAE,4BAA4B,CAAC,QAAQ,EAAE;IACpD,gBAAgB,EAAE,wBAAwB,CAAC,QAAQ,EAAE;IACrD,OAAO,EAAE,CAAC;SACP,KAAK,CAAC,sBAAsB,CAAC;SAC7B,QAAQ,CAAC,6DAA6D,CAAC;SACvE,QAAQ,EAAE;IACb,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,WAAW,EAAE;SACb,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;SACpC,QAAQ,CACP,yJAAyJ,CAC1J;CACJ,CAAC;KACD,MAAM,CAAC,GAAG,kCAAkC,CAAC;KAC7C,MAAM,CAAC,GAAG,4BAA4B,CAAC;KACvC,MAAM,CAAC,GAAG,0BAA0B,CAAC,CAAA;AAExC,MAAM,CAAC,MAAM,gCAAgC,GAAG,6BAA6B,CAAA;AAE7E,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC;KAC/C,MAAM,CAAC;IACN,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACpC,QAAQ,EAAE,uBAAuB,CAAC,QAAQ,EAAE;IAC5C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC;KACD,QAAQ,CAAC,oBAAoB,CAAC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
import { COMMON_REQUEST_HEADERS_SCHEMA } from '../common/commonSchemas.js';
|
|
3
|
-
export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
3
|
+
export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
4
4
|
context: z.ZodOptional<z.ZodObject<Omit<{
|
|
5
5
|
description: z.ZodOptional<z.ZodString>;
|
|
6
6
|
styleGuide: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -333,6 +333,7 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodObject<
|
|
|
333
333
|
readonly CHAT_GPT4: "ChatGPT-4";
|
|
334
334
|
readonly GEMINI: "Gemini";
|
|
335
335
|
}>>;
|
|
336
|
+
forceIntegration: z.ZodOptional<z.ZodBoolean>;
|
|
336
337
|
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
337
338
|
values: z.ZodArray<z.ZodString, "atleastone">;
|
|
338
339
|
mode: z.ZodPipeline<z.ZodString, z.ZodNativeEnum<{
|
|
@@ -409,6 +410,7 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodObject<
|
|
|
409
410
|
translatedValue: string;
|
|
410
411
|
}[] | undefined;
|
|
411
412
|
} | undefined;
|
|
413
|
+
forceIntegration?: boolean | undefined;
|
|
412
414
|
history?: {
|
|
413
415
|
values: [string, ...string[]];
|
|
414
416
|
mode: "rephrase" | "shorten";
|
|
@@ -472,6 +474,7 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodObject<
|
|
|
472
474
|
translatedValue: string;
|
|
473
475
|
}[] | undefined;
|
|
474
476
|
} | undefined;
|
|
477
|
+
forceIntegration?: boolean | undefined;
|
|
475
478
|
history?: {
|
|
476
479
|
values: [string, ...string[]];
|
|
477
480
|
mode: string;
|
|
@@ -535,6 +538,7 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodObject<
|
|
|
535
538
|
translatedValue: string;
|
|
536
539
|
}[] | undefined;
|
|
537
540
|
} | undefined;
|
|
541
|
+
forceIntegration?: boolean | undefined;
|
|
538
542
|
history?: {
|
|
539
543
|
values: [string, ...string[]];
|
|
540
544
|
mode: "rephrase" | "shorten";
|
|
@@ -598,6 +602,135 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodObject<
|
|
|
598
602
|
translatedValue: string;
|
|
599
603
|
}[] | undefined;
|
|
600
604
|
} | undefined;
|
|
605
|
+
forceIntegration?: boolean | undefined;
|
|
606
|
+
history?: {
|
|
607
|
+
values: [string, ...string[]];
|
|
608
|
+
mode: string;
|
|
609
|
+
}[] | undefined;
|
|
610
|
+
}>, {
|
|
611
|
+
value: string;
|
|
612
|
+
locale: string;
|
|
613
|
+
mode: "rephrase" | "shorten";
|
|
614
|
+
context?: {
|
|
615
|
+
description?: string | undefined;
|
|
616
|
+
styleGuide?: {
|
|
617
|
+
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
618
|
+
toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
|
|
619
|
+
levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
|
|
620
|
+
generalRule?: "active-voice" | "passive-voice" | undefined;
|
|
621
|
+
} | {
|
|
622
|
+
text: string;
|
|
623
|
+
} | undefined;
|
|
624
|
+
glossary?: {
|
|
625
|
+
term: string;
|
|
626
|
+
translatable: boolean;
|
|
627
|
+
forbidden: boolean;
|
|
628
|
+
caseSensitive: boolean;
|
|
629
|
+
description?: string | undefined;
|
|
630
|
+
translations?: {
|
|
631
|
+
locale: string;
|
|
632
|
+
translation: string;
|
|
633
|
+
description?: string | undefined;
|
|
634
|
+
}[] | undefined;
|
|
635
|
+
}[] | undefined;
|
|
636
|
+
translationExamples?: {
|
|
637
|
+
sourceValue: string;
|
|
638
|
+
translatedValue: string;
|
|
639
|
+
}[] | undefined;
|
|
640
|
+
} | undefined;
|
|
641
|
+
integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
|
|
642
|
+
assets?: {
|
|
643
|
+
description?: string | undefined;
|
|
644
|
+
styleGuide?: {
|
|
645
|
+
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
646
|
+
toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
|
|
647
|
+
levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
|
|
648
|
+
generalRule?: "active-voice" | "passive-voice" | undefined;
|
|
649
|
+
} | {
|
|
650
|
+
text: string;
|
|
651
|
+
} | undefined;
|
|
652
|
+
glossary?: {
|
|
653
|
+
term: string;
|
|
654
|
+
translatable: boolean;
|
|
655
|
+
forbidden: boolean;
|
|
656
|
+
caseSensitive: boolean;
|
|
657
|
+
description?: string | undefined;
|
|
658
|
+
translations?: {
|
|
659
|
+
locale: string;
|
|
660
|
+
translation: string;
|
|
661
|
+
description?: string | undefined;
|
|
662
|
+
}[] | undefined;
|
|
663
|
+
}[] | undefined;
|
|
664
|
+
translationExamples?: {
|
|
665
|
+
sourceValue: string;
|
|
666
|
+
translatedValue: string;
|
|
667
|
+
}[] | undefined;
|
|
668
|
+
} | undefined;
|
|
669
|
+
forceIntegration?: boolean | undefined;
|
|
670
|
+
history?: {
|
|
671
|
+
values: [string, ...string[]];
|
|
672
|
+
mode: "rephrase" | "shorten";
|
|
673
|
+
}[] | undefined;
|
|
674
|
+
}, {
|
|
675
|
+
value: string;
|
|
676
|
+
locale: string;
|
|
677
|
+
mode: string;
|
|
678
|
+
context?: {
|
|
679
|
+
description?: string | undefined;
|
|
680
|
+
styleGuide?: {
|
|
681
|
+
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
682
|
+
toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
|
|
683
|
+
levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
|
|
684
|
+
generalRule?: "active-voice" | "passive-voice" | undefined;
|
|
685
|
+
} | {
|
|
686
|
+
text: string;
|
|
687
|
+
} | undefined;
|
|
688
|
+
glossary?: {
|
|
689
|
+
term: string;
|
|
690
|
+
description?: string | undefined;
|
|
691
|
+
translatable?: boolean | undefined;
|
|
692
|
+
forbidden?: boolean | undefined;
|
|
693
|
+
caseSensitive?: boolean | undefined;
|
|
694
|
+
translations?: {
|
|
695
|
+
locale: string;
|
|
696
|
+
translation: string;
|
|
697
|
+
description?: string | undefined;
|
|
698
|
+
}[] | undefined;
|
|
699
|
+
}[] | undefined;
|
|
700
|
+
translationExamples?: {
|
|
701
|
+
sourceValue: string;
|
|
702
|
+
translatedValue: string;
|
|
703
|
+
}[] | undefined;
|
|
704
|
+
} | undefined;
|
|
705
|
+
integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
|
|
706
|
+
assets?: {
|
|
707
|
+
description?: string | undefined;
|
|
708
|
+
styleGuide?: {
|
|
709
|
+
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
710
|
+
toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
|
|
711
|
+
levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
|
|
712
|
+
generalRule?: "active-voice" | "passive-voice" | undefined;
|
|
713
|
+
} | {
|
|
714
|
+
text: string;
|
|
715
|
+
} | undefined;
|
|
716
|
+
glossary?: {
|
|
717
|
+
term: string;
|
|
718
|
+
description?: string | undefined;
|
|
719
|
+
translatable?: boolean | undefined;
|
|
720
|
+
forbidden?: boolean | undefined;
|
|
721
|
+
caseSensitive?: boolean | undefined;
|
|
722
|
+
translations?: {
|
|
723
|
+
locale: string;
|
|
724
|
+
translation: string;
|
|
725
|
+
description?: string | undefined;
|
|
726
|
+
}[] | undefined;
|
|
727
|
+
}[] | undefined;
|
|
728
|
+
translationExamples?: {
|
|
729
|
+
sourceValue: string;
|
|
730
|
+
translatedValue: string;
|
|
731
|
+
}[] | undefined;
|
|
732
|
+
} | undefined;
|
|
733
|
+
forceIntegration?: boolean | undefined;
|
|
601
734
|
history?: {
|
|
602
735
|
values: [string, ...string[]];
|
|
603
736
|
mode: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
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, LOCALE_SCHEMA, } from '../common/commonSchemas.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';
|
|
4
4
|
import { TEXT_REWRITING_CONTEXT } from '../common/translationContextSchemas.js';
|
|
5
5
|
import { CONTENT_ID_PROP_SCHEMA, 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
|
|
@@ -10,6 +10,7 @@ export const REWRITE_TEXT_SEGMENT_BODY_SCHEMA = z
|
|
|
10
10
|
locale: LOCALE_SCHEMA,
|
|
11
11
|
value: z.string().min(1).describe('Text to generate variants for'),
|
|
12
12
|
integration: AI_INTEGRATION_ENGINE_SCHEMA.optional(),
|
|
13
|
+
forceIntegration: FORCE_INTEGRATION_SCHEMA.optional(),
|
|
13
14
|
history: z
|
|
14
15
|
.array(HISTORY_REQUEST_SCHEMA)
|
|
15
16
|
.describe('A list of other previously created variations for this text')
|
|
@@ -20,7 +21,8 @@ export const REWRITE_TEXT_SEGMENT_BODY_SCHEMA = z
|
|
|
20
21
|
.pipe(z.nativeEnum(VariantsModeEnum))
|
|
21
22
|
.describe('A specific way of how a new variant is generated. If `rephrase`, it simply gets reworded, if `shorten` - AI tries to also make the translation shorter.'),
|
|
22
23
|
})
|
|
23
|
-
.refine(...refineSingleSegmentSizeLimit)
|
|
24
|
+
.refine(...refineSingleSegmentSizeLimit)
|
|
25
|
+
.refine(...refineIntegrationIsPresent);
|
|
24
26
|
export const REWRITE_TEXT_SEGMENT_RESPONSE_SCHEMA = z
|
|
25
27
|
.object({
|
|
26
28
|
generatedAt: z.string().datetime(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rewriteTextSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/translation/rewriteTextSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAA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