@lokalise/polyglot-sdk 19.0.2 → 20.0.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.
@@ -7,16 +7,21 @@ export type FinetunedIntegrationEngineEnum = ObjectValues<typeof FinetunedIntegr
7
7
  export declare const AiIntegrationEngineEnum: {
8
8
  readonly FINETUNED_OPENAI: "FT-OpenAI";
9
9
  readonly CLAUDE: "Claude";
10
- readonly CHAT_GPT4: "ChatGPT-4";
10
+ readonly GPT: "GPT";
11
11
  readonly GEMINI: "Gemini";
12
12
  };
13
13
  export type AiIntegrationEngineEnum = ObjectValues<typeof AiIntegrationEngineEnum>;
14
- export declare const AI_INTEGRATION_ENGINE_SCHEMA: z.ZodNativeEnum<{
15
- readonly FINETUNED_OPENAI: "FT-OpenAI";
16
- readonly CLAUDE: "Claude";
14
+ export declare const DeprecatedAiIntegrationEngineEnum: {
17
15
  readonly CHAT_GPT4: "ChatGPT-4";
18
- readonly GEMINI: "Gemini";
19
- }>;
16
+ };
17
+ export type DeprecatedAiIntegrationEngineEnum = ObjectValues<typeof DeprecatedAiIntegrationEngineEnum>;
18
+ export declare const AI_INTEGRATION_ENGINE_SCHEMA: z.ZodEffects<z.ZodNativeEnum<{
19
+ CHAT_GPT4: "ChatGPT-4";
20
+ FINETUNED_OPENAI: "FT-OpenAI";
21
+ CLAUDE: "Claude";
22
+ GPT: "GPT";
23
+ GEMINI: "Gemini";
24
+ }>, "FT-OpenAI" | "Claude" | "GPT" | "Gemini", "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4">;
20
25
  export declare const MtIntegrationEngineEnum: {
21
26
  readonly DEEPL: "DeepL";
22
27
  readonly GOOGLE_TRANSLATE: "GoogleTranslate";
@@ -31,22 +36,23 @@ export declare const MT_INTEGRATION_ENGINE_SCHEMA: z.ZodNativeEnum<{
31
36
  export declare const RealIntegrationEngineEnum: {
32
37
  readonly FINETUNED_OPENAI: "FT-OpenAI";
33
38
  readonly CLAUDE: "Claude";
34
- readonly CHAT_GPT4: "ChatGPT-4";
39
+ readonly GPT: "GPT";
35
40
  readonly GEMINI: "Gemini";
36
41
  readonly DEEPL: "DeepL";
37
42
  readonly GOOGLE_TRANSLATE: "GoogleTranslate";
38
43
  readonly MICROSOFT_TRANSLATOR: "MicrosoftTranslator";
39
44
  };
40
45
  export type RealIntegrationEngineEnum = ObjectValues<typeof RealIntegrationEngineEnum>;
41
- export declare const REAL_INTEGRATION_ENGINE_SCHEMA: z.ZodNativeEnum<{
42
- readonly FINETUNED_OPENAI: "FT-OpenAI";
43
- readonly CLAUDE: "Claude";
44
- readonly CHAT_GPT4: "ChatGPT-4";
45
- readonly GEMINI: "Gemini";
46
- readonly DEEPL: "DeepL";
47
- readonly GOOGLE_TRANSLATE: "GoogleTranslate";
48
- readonly MICROSOFT_TRANSLATOR: "MicrosoftTranslator";
49
- }>;
46
+ export declare const REAL_INTEGRATION_ENGINE_SCHEMA: z.ZodEffects<z.ZodNativeEnum<{
47
+ CHAT_GPT4: "ChatGPT-4";
48
+ FINETUNED_OPENAI: "FT-OpenAI";
49
+ CLAUDE: "Claude";
50
+ GPT: "GPT";
51
+ GEMINI: "Gemini";
52
+ DEEPL: "DeepL";
53
+ GOOGLE_TRANSLATE: "GoogleTranslate";
54
+ MICROSOFT_TRANSLATOR: "MicrosoftTranslator";
55
+ }>, "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator", "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator">;
50
56
  export declare const FORCE_INTEGRATION_SCHEMA: z.ZodBoolean;
51
57
  export declare const refineIntegrationIsPresent: readonly [(data: {
52
58
  integration?: string;
@@ -56,7 +62,7 @@ export declare const IntegrationEngineEnum: {
56
62
  readonly FAKE: "Fake";
57
63
  readonly FINETUNED_OPENAI: "FT-OpenAI";
58
64
  readonly CLAUDE: "Claude";
59
- readonly CHAT_GPT4: "ChatGPT-4";
65
+ readonly GPT: "GPT";
60
66
  readonly GEMINI: "Gemini";
61
67
  readonly DEEPL: "DeepL";
62
68
  readonly GOOGLE_TRANSLATE: "GoogleTranslate";
@@ -77,14 +83,14 @@ export declare const COMMON_ERROR_RESPONSE_SCHEMA: z.ZodObject<{
77
83
  details?: Record<string, unknown> | undefined;
78
84
  }>;
79
85
  export type CommonErrorResponse = z.infer<typeof COMMON_ERROR_RESPONSE_SCHEMA>;
80
- export declare const COMMON_FAILED_OPERATION_CALLBACK_SCHEMA: z.ZodObject<z.objectUtil.extendShape<{
86
+ export declare const COMMON_FAILED_OPERATION_CALLBACK_SCHEMA: z.ZodObject<{
81
87
  message: z.ZodString;
82
88
  errorCode: z.ZodString;
83
89
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
84
- }, {
90
+ } & {
85
91
  status: z.ZodLiteral<"error">;
86
92
  originCorrelationId: z.ZodString;
87
- }>, "strip", z.ZodTypeAny, {
93
+ }, "strip", z.ZodTypeAny, {
88
94
  originCorrelationId: string;
89
95
  message: string;
90
96
  status: "error";
@@ -7,12 +7,21 @@ export const FinetunedIntegrationEngineEnum = {
7
7
  };
8
8
  export const AiIntegrationEngineEnum = {
9
9
  CLAUDE: 'Claude',
10
- CHAT_GPT4: 'ChatGPT-4',
10
+ GPT: 'GPT',
11
11
  GEMINI: 'Gemini',
12
12
  ...FinetunedIntegrationEngineEnum,
13
13
  };
14
+ export const DeprecatedAiIntegrationEngineEnum = {
15
+ CHAT_GPT4: 'ChatGPT-4', // ChatGPT-4 is depreciated in favour of GPT
16
+ };
14
17
  export const AI_INTEGRATION_ENGINE_SCHEMA = z
15
- .nativeEnum(AiIntegrationEngineEnum)
18
+ .nativeEnum({ ...AiIntegrationEngineEnum, ...DeprecatedAiIntegrationEngineEnum })
19
+ .transform((val) => {
20
+ if (val === DeprecatedAiIntegrationEngineEnum.CHAT_GPT4) {
21
+ return AiIntegrationEngineEnum.GPT;
22
+ }
23
+ return val;
24
+ })
16
25
  .describe('Indicates which integration should be used to process the request');
17
26
  export const MtIntegrationEngineEnum = {
18
27
  DEEPL: 'DeepL',
@@ -27,7 +36,13 @@ export const RealIntegrationEngineEnum = {
27
36
  ...AiIntegrationEngineEnum,
28
37
  };
29
38
  export const REAL_INTEGRATION_ENGINE_SCHEMA = z
30
- .nativeEnum(RealIntegrationEngineEnum)
39
+ .nativeEnum({ ...RealIntegrationEngineEnum, ...DeprecatedAiIntegrationEngineEnum })
40
+ .transform((val) => {
41
+ if (val === DeprecatedAiIntegrationEngineEnum.CHAT_GPT4) {
42
+ return AiIntegrationEngineEnum.GPT;
43
+ }
44
+ return val;
45
+ })
31
46
  .describe('Indicates which integration should be used to process the request (preferably)');
32
47
  export const FORCE_INTEGRATION_SCHEMA = z
33
48
  .boolean()
@@ -105,7 +120,7 @@ export const REQUEST_SIZE_LIMIT_MAP = {
105
120
  */
106
121
  [IntegrationEngineEnum.GEMINI]: SEGMENT_VALUE_MAX_LENGTH_DEFAULT,
107
122
  [IntegrationEngineEnum.CLAUDE]: SEGMENT_VALUE_MAX_LENGTH_DEFAULT,
108
- [IntegrationEngineEnum.CHAT_GPT4]: SEGMENT_VALUE_MAX_LENGTH_DEFAULT,
123
+ [IntegrationEngineEnum.GPT]: SEGMENT_VALUE_MAX_LENGTH_DEFAULT,
109
124
  [IntegrationEngineEnum.FINETUNED_OPENAI]: SEGMENT_VALUE_MAX_LENGTH_DEFAULT,
110
125
  [IntegrationEngineEnum.FAKE]: SEGMENT_VALUE_MAX_LENGTH_DEFAULT,
111
126
  };
@@ -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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CAAC,CAAC,CAAA;AAK3F,MAAM,gBAAgB,GAAwB,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACxD,CAAC,CAAC,KAAK,CAAC,CAAC,0BAA0B,EAAE,CAAC,CAAC,KAAK,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"}
@@ -8,13 +8,12 @@ export declare const ErrorCodeEnum: {
8
8
  readonly LanguagePairNotSupportedError: "LANGUAGE_PAIR_NOT_SUPPORTED";
9
9
  };
10
10
  export type ErrorCodeEnum = ObjectValues<typeof ErrorCodeEnum>;
11
- export declare const VALIDATION_ERROR_SCHEMA: z.ZodObject<z.objectUtil.extendShape<{
11
+ export declare const VALIDATION_ERROR_SCHEMA: z.ZodObject<{
12
12
  message: z.ZodString;
13
- errorCode: z.ZodString;
14
13
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
15
- }, {
14
+ } & {
16
15
  errorCode: z.ZodLiteral<"VALIDATION_ERROR">;
17
- }>, "strip", z.ZodTypeAny, {
16
+ }, "strip", z.ZodTypeAny, {
18
17
  message: string;
19
18
  errorCode: "VALIDATION_ERROR";
20
19
  details?: Record<string, unknown> | undefined;
@@ -23,13 +22,12 @@ export declare const VALIDATION_ERROR_SCHEMA: z.ZodObject<z.objectUtil.extendSha
23
22
  errorCode: "VALIDATION_ERROR";
24
23
  details?: Record<string, unknown> | undefined;
25
24
  }>;
26
- export declare const CONTEXT_NOT_SUPPORTED_ERROR_SCHEMA: z.ZodObject<z.objectUtil.extendShape<{
25
+ export declare const CONTEXT_NOT_SUPPORTED_ERROR_SCHEMA: z.ZodObject<{
27
26
  message: z.ZodString;
28
- errorCode: z.ZodString;
29
27
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
30
- }, {
28
+ } & {
31
29
  errorCode: z.ZodLiteral<"CONTEXT_NOT_SUPPORTED">;
32
- }>, "strip", z.ZodTypeAny, {
30
+ }, "strip", z.ZodTypeAny, {
33
31
  message: string;
34
32
  errorCode: "CONTEXT_NOT_SUPPORTED";
35
33
  details?: Record<string, unknown> | undefined;
@@ -38,13 +36,12 @@ export declare const CONTEXT_NOT_SUPPORTED_ERROR_SCHEMA: z.ZodObject<z.objectUti
38
36
  errorCode: "CONTEXT_NOT_SUPPORTED";
39
37
  details?: Record<string, unknown> | undefined;
40
38
  }>;
41
- export declare const INTEGRATION_NOT_AVAILABLE_ERROR_SCHEMA: z.ZodObject<z.objectUtil.extendShape<{
39
+ export declare const INTEGRATION_NOT_AVAILABLE_ERROR_SCHEMA: z.ZodObject<{
42
40
  message: z.ZodString;
43
- errorCode: z.ZodString;
44
41
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
45
- }, {
42
+ } & {
46
43
  errorCode: z.ZodLiteral<"INTEGRATION_NOT_AVAILABLE_ERROR">;
47
- }>, "strip", z.ZodTypeAny, {
44
+ }, "strip", z.ZodTypeAny, {
48
45
  message: string;
49
46
  errorCode: "INTEGRATION_NOT_AVAILABLE_ERROR";
50
47
  details?: Record<string, unknown> | undefined;
@@ -53,13 +50,12 @@ export declare const INTEGRATION_NOT_AVAILABLE_ERROR_SCHEMA: z.ZodObject<z.objec
53
50
  errorCode: "INTEGRATION_NOT_AVAILABLE_ERROR";
54
51
  details?: Record<string, unknown> | undefined;
55
52
  }>;
56
- export declare const INTEGRATION_NOT_ENABLED_ERROR_SCHEMA: z.ZodObject<z.objectUtil.extendShape<{
53
+ export declare const INTEGRATION_NOT_ENABLED_ERROR_SCHEMA: z.ZodObject<{
57
54
  message: z.ZodString;
58
- errorCode: z.ZodString;
59
55
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
60
- }, {
56
+ } & {
61
57
  errorCode: z.ZodLiteral<"INTEGRATION_NOT_ENABLED_ERROR">;
62
- }>, "strip", z.ZodTypeAny, {
58
+ }, "strip", z.ZodTypeAny, {
63
59
  message: string;
64
60
  errorCode: "INTEGRATION_NOT_ENABLED_ERROR";
65
61
  details?: Record<string, unknown> | undefined;
@@ -68,13 +64,12 @@ export declare const INTEGRATION_NOT_ENABLED_ERROR_SCHEMA: z.ZodObject<z.objectU
68
64
  errorCode: "INTEGRATION_NOT_ENABLED_ERROR";
69
65
  details?: Record<string, unknown> | undefined;
70
66
  }>;
71
- export declare const LANGUAGE_PAIR_NOT_SUPPORTED_ERROR_SCHEMA: z.ZodObject<z.objectUtil.extendShape<{
67
+ export declare const LANGUAGE_PAIR_NOT_SUPPORTED_ERROR_SCHEMA: z.ZodObject<{
72
68
  message: z.ZodString;
73
- errorCode: z.ZodString;
74
69
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
75
- }, {
70
+ } & {
76
71
  errorCode: z.ZodLiteral<"LANGUAGE_PAIR_NOT_SUPPORTED">;
77
- }>, "strip", z.ZodTypeAny, {
72
+ }, "strip", z.ZodTypeAny, {
78
73
  message: string;
79
74
  errorCode: "LANGUAGE_PAIR_NOT_SUPPORTED";
80
75
  details?: Record<string, unknown> | undefined;
@@ -196,19 +196,20 @@ declare const LQA_CONTENT_UNIT_SCHEMA: z.ZodObject<{
196
196
  } | undefined;
197
197
  characterLimit?: number | undefined;
198
198
  }>;
199
- export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<z.objectUtil.extendShape<{
199
+ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<{
200
200
  originCorrelationId: z.ZodString;
201
201
  ownerId: z.ZodString;
202
202
  callbackUrl: z.ZodString;
203
203
  callbackToken: z.ZodString;
204
- }, {
204
+ } & {
205
205
  sourceLocale: z.ZodEffects<z.ZodString, string, string>;
206
- integration: z.ZodOptional<z.ZodNativeEnum<{
207
- readonly FINETUNED_OPENAI: "FT-OpenAI";
208
- readonly CLAUDE: "Claude";
209
- readonly CHAT_GPT4: "ChatGPT-4";
210
- readonly GEMINI: "Gemini";
211
- }>>;
206
+ integration: z.ZodOptional<z.ZodEffects<z.ZodNativeEnum<{
207
+ CHAT_GPT4: "ChatGPT-4";
208
+ FINETUNED_OPENAI: "FT-OpenAI";
209
+ CLAUDE: "Claude";
210
+ GPT: "GPT";
211
+ GEMINI: "Gemini";
212
+ }>, "FT-OpenAI" | "Claude" | "GPT" | "Gemini", "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4">>;
212
213
  context: z.ZodOptional<z.ZodObject<{
213
214
  description: z.ZodOptional<z.ZodString>;
214
215
  styleGuide: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -514,7 +515,7 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<z.objectUtil.extendShape
514
515
  } | undefined;
515
516
  characterLimit?: number | undefined;
516
517
  }>, "atleastone">;
517
- }>, "strip", z.ZodTypeAny, {
518
+ }, "strip", z.ZodTypeAny, {
518
519
  originCorrelationId: string;
519
520
  ownerId: string;
520
521
  callbackUrl: string;
@@ -623,7 +624,7 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<z.objectUtil.extendShape
623
624
  translatedValue: string;
624
625
  }[] | undefined;
625
626
  } | undefined;
626
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
627
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
627
628
  }, {
628
629
  originCorrelationId: string;
629
630
  ownerId: string;
@@ -733,7 +734,7 @@ export declare const LQA_ASYNC_BODY_SCHEMA: z.ZodObject<z.objectUtil.extendShape
733
734
  translatedValue: string;
734
735
  }[] | undefined;
735
736
  } | undefined;
736
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
737
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
737
738
  }>;
738
739
  export declare const LQA_ASYNC_HEADERS_SCHEMA: z.ZodObject<{
739
740
  'x-fake-processing': z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
@@ -799,14 +800,14 @@ export declare const LQA_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
799
800
  score: number;
800
801
  suggestion?: string | null | undefined;
801
802
  }>, "many">;
802
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
803
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
803
804
  message: z.ZodString;
804
805
  errorCode: z.ZodString;
805
806
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
806
- }, {
807
+ } & {
807
808
  contentUnitId: z.ZodString;
808
809
  translationId: z.ZodString;
809
- }>, "strip", z.ZodTypeAny, {
810
+ }, "strip", z.ZodTypeAny, {
810
811
  message: string;
811
812
  errorCode: string;
812
813
  contentUnitId: string;
@@ -909,14 +910,14 @@ export declare const LQA_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status"
909
910
  score: number;
910
911
  suggestion?: string | null | undefined;
911
912
  }>, "many">;
912
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
913
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
913
914
  message: z.ZodString;
914
915
  errorCode: z.ZodString;
915
916
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
916
- }, {
917
+ } & {
917
918
  contentUnitId: z.ZodString;
918
919
  translationId: z.ZodString;
919
- }>, "strip", z.ZodTypeAny, {
920
+ }, "strip", z.ZodTypeAny, {
920
921
  message: string;
921
922
  errorCode: string;
922
923
  contentUnitId: string;
@@ -971,14 +972,14 @@ export declare const LQA_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status"
971
972
  translationId: string;
972
973
  details?: Record<string, unknown> | undefined;
973
974
  }[] | undefined;
974
- }>, z.ZodObject<z.objectUtil.extendShape<{
975
+ }>, z.ZodObject<{
975
976
  message: z.ZodString;
976
977
  errorCode: z.ZodString;
977
978
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
978
- }, {
979
+ } & {
979
980
  status: z.ZodLiteral<"error">;
980
981
  originCorrelationId: z.ZodString;
981
- }>, "strip", z.ZodTypeAny, {
982
+ }, "strip", z.ZodTypeAny, {
982
983
  originCorrelationId: string;
983
984
  message: string;
984
985
  status: "error";
@@ -362,12 +362,13 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
362
362
  translatedValue: string;
363
363
  }[] | undefined;
364
364
  }>>;
365
- integration: z.ZodOptional<z.ZodNativeEnum<{
366
- readonly FINETUNED_OPENAI: "FT-OpenAI";
367
- readonly CLAUDE: "Claude";
368
- readonly CHAT_GPT4: "ChatGPT-4";
369
- readonly GEMINI: "Gemini";
370
- }>>;
365
+ integration: z.ZodOptional<z.ZodEffects<z.ZodNativeEnum<{
366
+ CHAT_GPT4: "ChatGPT-4";
367
+ FINETUNED_OPENAI: "FT-OpenAI";
368
+ CLAUDE: "Claude";
369
+ GPT: "GPT";
370
+ GEMINI: "Gemini";
371
+ }>, "FT-OpenAI" | "Claude" | "GPT" | "Gemini", "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4">>;
371
372
  contentUnits: z.ZodArray<z.ZodObject<{
372
373
  id: z.ZodString;
373
374
  context: z.ZodOptional<z.ZodObject<{
@@ -614,7 +615,7 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
614
615
  translatedValue: string;
615
616
  }[] | undefined;
616
617
  } | undefined;
617
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
618
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
618
619
  }, {
619
620
  sourceLocale: string;
620
621
  contentUnits: [{
@@ -720,7 +721,7 @@ export declare const LQA_SYNC_BODY_SCHEMA: z.ZodObject<{
720
721
  translatedValue: string;
721
722
  }[] | undefined;
722
723
  } | undefined;
723
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
724
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
724
725
  }>;
725
726
  export declare const LQA_SYNC_HEADERS_SCHEMA: z.ZodObject<{
726
727
  'x-fake-processing': z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
@@ -775,14 +776,14 @@ export declare const LQA_SYNC_RESPONSE_SCHEMA: z.ZodObject<{
775
776
  suggestion: string | null;
776
777
  score: number;
777
778
  }>, "many">;
778
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
779
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
779
780
  message: z.ZodString;
780
781
  errorCode: z.ZodString;
781
782
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
782
- }, {
783
+ } & {
783
784
  contentUnitId: z.ZodString;
784
785
  translationId: z.ZodString;
785
- }>, "strip", z.ZodTypeAny, {
786
+ }, "strip", z.ZodTypeAny, {
786
787
  message: string;
787
788
  errorCode: string;
788
789
  contentUnitId: string;
@@ -168,12 +168,13 @@ export declare const GENERATE_VARIANTS_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.
168
168
  sourceValue: z.ZodString;
169
169
  targetLocale: z.ZodEffects<z.ZodString, string, string>;
170
170
  targetValue: z.ZodString;
171
- integration: z.ZodOptional<z.ZodNativeEnum<{
172
- readonly FINETUNED_OPENAI: "FT-OpenAI";
173
- readonly CLAUDE: "Claude";
174
- readonly CHAT_GPT4: "ChatGPT-4";
175
- readonly GEMINI: "Gemini";
176
- }>>;
171
+ integration: z.ZodOptional<z.ZodEffects<z.ZodNativeEnum<{
172
+ CHAT_GPT4: "ChatGPT-4";
173
+ FINETUNED_OPENAI: "FT-OpenAI";
174
+ CLAUDE: "Claude";
175
+ GPT: "GPT";
176
+ GEMINI: "Gemini";
177
+ }>, "FT-OpenAI" | "Claude" | "GPT" | "Gemini", "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4">>;
177
178
  forceIntegration: z.ZodOptional<z.ZodBoolean>;
178
179
  history: z.ZodOptional<z.ZodArray<z.ZodObject<{
179
180
  values: z.ZodArray<z.ZodString, "atleastone">;
@@ -198,7 +199,7 @@ export declare const GENERATE_VARIANTS_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.
198
199
  sourceLocale: string;
199
200
  targetLocale: string;
200
201
  targetValue: string;
201
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
202
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
202
203
  assets?: {
203
204
  description?: string | undefined;
204
205
  styleGuide?: {
@@ -238,7 +239,7 @@ export declare const GENERATE_VARIANTS_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.
238
239
  sourceLocale: string;
239
240
  targetLocale: string;
240
241
  targetValue: string;
241
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
242
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
242
243
  assets?: {
243
244
  description?: string | undefined;
244
245
  styleGuide?: {
@@ -278,7 +279,7 @@ export declare const GENERATE_VARIANTS_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.
278
279
  sourceLocale: string;
279
280
  targetLocale: string;
280
281
  targetValue: string;
281
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
282
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
282
283
  assets?: {
283
284
  description?: string | undefined;
284
285
  styleGuide?: {
@@ -318,7 +319,7 @@ export declare const GENERATE_VARIANTS_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.
318
319
  sourceLocale: string;
319
320
  targetLocale: string;
320
321
  targetValue: string;
321
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
322
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
322
323
  assets?: {
323
324
  description?: string | undefined;
324
325
  styleGuide?: {
@@ -358,7 +359,7 @@ export declare const GENERATE_VARIANTS_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.
358
359
  sourceLocale: string;
359
360
  targetLocale: string;
360
361
  targetValue: string;
361
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
362
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
362
363
  assets?: {
363
364
  description?: string | undefined;
364
365
  styleGuide?: {
@@ -398,7 +399,7 @@ export declare const GENERATE_VARIANTS_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.
398
399
  sourceLocale: string;
399
400
  targetLocale: string;
400
401
  targetValue: string;
401
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
402
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
402
403
  assets?: {
403
404
  description?: string | undefined;
404
405
  styleGuide?: {
@@ -438,7 +439,7 @@ export declare const GENERATE_VARIANTS_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.
438
439
  sourceLocale: string;
439
440
  targetLocale: string;
440
441
  targetValue: string;
441
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
442
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
442
443
  assets?: {
443
444
  description?: string | undefined;
444
445
  styleGuide?: {
@@ -478,7 +479,7 @@ export declare const GENERATE_VARIANTS_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.
478
479
  sourceLocale: string;
479
480
  targetLocale: string;
480
481
  targetValue: string;
481
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
482
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
482
483
  assets?: {
483
484
  description?: string | undefined;
484
485
  styleGuide?: {
@@ -327,12 +327,13 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
327
327
  }>>;
328
328
  locale: z.ZodEffects<z.ZodString, string, string>;
329
329
  value: z.ZodString;
330
- integration: z.ZodOptional<z.ZodNativeEnum<{
331
- readonly FINETUNED_OPENAI: "FT-OpenAI";
332
- readonly CLAUDE: "Claude";
333
- readonly CHAT_GPT4: "ChatGPT-4";
334
- readonly GEMINI: "Gemini";
335
- }>>;
330
+ integration: z.ZodOptional<z.ZodEffects<z.ZodNativeEnum<{
331
+ CHAT_GPT4: "ChatGPT-4";
332
+ FINETUNED_OPENAI: "FT-OpenAI";
333
+ CLAUDE: "Claude";
334
+ GPT: "GPT";
335
+ GEMINI: "Gemini";
336
+ }>, "FT-OpenAI" | "Claude" | "GPT" | "Gemini", "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4">>;
336
337
  forceIntegration: z.ZodOptional<z.ZodBoolean>;
337
338
  history: z.ZodOptional<z.ZodArray<z.ZodObject<{
338
339
  values: z.ZodArray<z.ZodString, "atleastone">;
@@ -382,7 +383,7 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
382
383
  translatedValue: string;
383
384
  }[] | undefined;
384
385
  } | undefined;
385
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
386
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
386
387
  assets?: {
387
388
  description?: string | undefined;
388
389
  styleGuide?: {
@@ -446,7 +447,7 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
446
447
  translatedValue: string;
447
448
  }[] | undefined;
448
449
  } | undefined;
449
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
450
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
450
451
  assets?: {
451
452
  description?: string | undefined;
452
453
  styleGuide?: {
@@ -510,7 +511,7 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
510
511
  translatedValue: string;
511
512
  }[] | undefined;
512
513
  } | undefined;
513
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
514
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
514
515
  assets?: {
515
516
  description?: string | undefined;
516
517
  styleGuide?: {
@@ -574,7 +575,7 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
574
575
  translatedValue: string;
575
576
  }[] | undefined;
576
577
  } | undefined;
577
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
578
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
578
579
  assets?: {
579
580
  description?: string | undefined;
580
581
  styleGuide?: {
@@ -638,7 +639,7 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
638
639
  translatedValue: string;
639
640
  }[] | undefined;
640
641
  } | undefined;
641
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
642
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
642
643
  assets?: {
643
644
  description?: string | undefined;
644
645
  styleGuide?: {
@@ -702,7 +703,7 @@ export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects
702
703
  translatedValue: string;
703
704
  }[] | undefined;
704
705
  } | undefined;
705
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
706
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
706
707
  assets?: {
707
708
  description?: string | undefined;
708
709
  styleGuide?: {
@@ -765,19 +766,20 @@ export declare const REWRITE_TEXT_SEGMENT_RESPONSE_SCHEMA: z.ZodObject<{
765
766
  export type RewriteTextSegmentBody = z.infer<typeof REWRITE_TEXT_SEGMENT_BODY_SCHEMA>;
766
767
  export type RewriteTextSegmentHeaders = z.infer<typeof COMMON_REQUEST_HEADERS_SCHEMA>;
767
768
  export type RewriteTextSegmentResponse = z.infer<typeof REWRITE_TEXT_SEGMENT_RESPONSE_SCHEMA>;
768
- export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
769
+ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<{
769
770
  originCorrelationId: z.ZodString;
770
771
  ownerId: z.ZodString;
771
772
  callbackUrl: z.ZodString;
772
773
  callbackToken: z.ZodString;
773
- }, {
774
+ } & {
774
775
  locale: z.ZodEffects<z.ZodString, string, string>;
775
- integration: z.ZodOptional<z.ZodNativeEnum<{
776
- readonly FINETUNED_OPENAI: "FT-OpenAI";
777
- readonly CLAUDE: "Claude";
778
- readonly CHAT_GPT4: "ChatGPT-4";
779
- readonly GEMINI: "Gemini";
780
- }>>;
776
+ integration: z.ZodOptional<z.ZodEffects<z.ZodNativeEnum<{
777
+ CHAT_GPT4: "ChatGPT-4";
778
+ FINETUNED_OPENAI: "FT-OpenAI";
779
+ CLAUDE: "Claude";
780
+ GPT: "GPT";
781
+ GEMINI: "Gemini";
782
+ }>, "FT-OpenAI" | "Claude" | "GPT" | "Gemini", "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4">>;
781
783
  context: z.ZodOptional<z.ZodObject<Omit<{
782
784
  description: z.ZodOptional<z.ZodString>;
783
785
  styleGuide: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -1051,7 +1053,7 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<z.
1051
1053
  } | undefined;
1052
1054
  characterLimit?: number | undefined;
1053
1055
  }[]]>;
1054
- }>, "strip", z.ZodTypeAny, {
1056
+ }, "strip", z.ZodTypeAny, {
1055
1057
  originCorrelationId: string;
1056
1058
  ownerId: string;
1057
1059
  callbackUrl: string;
@@ -1111,7 +1113,7 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<z.
1111
1113
  translatedValue: string;
1112
1114
  }[] | undefined;
1113
1115
  } | undefined;
1114
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
1116
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
1115
1117
  }, {
1116
1118
  originCorrelationId: string;
1117
1119
  ownerId: string;
@@ -1172,7 +1174,7 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<z.
1172
1174
  translatedValue: string;
1173
1175
  }[] | undefined;
1174
1176
  } | undefined;
1175
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
1177
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
1176
1178
  }>, {
1177
1179
  originCorrelationId: string;
1178
1180
  ownerId: string;
@@ -1233,7 +1235,7 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<z.
1233
1235
  translatedValue: string;
1234
1236
  }[] | undefined;
1235
1237
  } | undefined;
1236
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
1238
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | undefined;
1237
1239
  }, {
1238
1240
  originCorrelationId: string;
1239
1241
  ownerId: string;
@@ -1294,7 +1296,7 @@ export declare const REWRITE_TEXT_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodObject<z.
1294
1296
  translatedValue: string;
1295
1297
  }[] | undefined;
1296
1298
  } | undefined;
1297
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | undefined;
1299
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | undefined;
1298
1300
  }>;
1299
1301
  export declare const REWRITE_TEXT_ASYNC_HEADERS_SCHEMA: z.ZodObject<{
1300
1302
  'x-fake-processing': z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
@@ -1345,16 +1347,16 @@ export declare const REWRITE_TEXT_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
1345
1347
  kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
1346
1348
  }[] | undefined;
1347
1349
  }>, "many">;
1348
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1350
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1349
1351
  message: z.ZodString;
1350
1352
  errorCode: z.ZodString;
1351
1353
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1352
- }, {
1354
+ } & {
1353
1355
  contentUnitId: z.ZodString;
1354
1356
  segmentId: z.ZodString;
1355
1357
  polyglotRefId: z.ZodString;
1356
1358
  integration: z.ZodString;
1357
- }>, "strip", z.ZodTypeAny, {
1359
+ }, "strip", z.ZodTypeAny, {
1358
1360
  message: string;
1359
1361
  errorCode: string;
1360
1362
  integration: string;
@@ -1446,16 +1448,16 @@ export declare const REWRITE_TEXT_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion
1446
1448
  kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
1447
1449
  }[] | undefined;
1448
1450
  }>, "many">;
1449
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1451
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1450
1452
  message: z.ZodString;
1451
1453
  errorCode: z.ZodString;
1452
1454
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1453
- }, {
1455
+ } & {
1454
1456
  contentUnitId: z.ZodString;
1455
1457
  segmentId: z.ZodString;
1456
1458
  polyglotRefId: z.ZodString;
1457
1459
  integration: z.ZodString;
1458
- }>, "strip", z.ZodTypeAny, {
1460
+ }, "strip", z.ZodTypeAny, {
1459
1461
  message: string;
1460
1462
  errorCode: string;
1461
1463
  integration: string;
@@ -1514,14 +1516,14 @@ export declare const REWRITE_TEXT_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion
1514
1516
  polyglotRefId: string;
1515
1517
  details?: Record<string, unknown> | undefined;
1516
1518
  }[] | undefined;
1517
- }>, z.ZodObject<z.objectUtil.extendShape<{
1519
+ }>, z.ZodObject<{
1518
1520
  message: z.ZodString;
1519
1521
  errorCode: z.ZodString;
1520
1522
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1521
- }, {
1523
+ } & {
1522
1524
  status: z.ZodLiteral<"error">;
1523
1525
  originCorrelationId: z.ZodString;
1524
- }>, "strip", z.ZodTypeAny, {
1526
+ }, "strip", z.ZodTypeAny, {
1525
1527
  originCorrelationId: string;
1526
1528
  message: string;
1527
1529
  status: "error";
@@ -1,21 +1,22 @@
1
1
  import z from 'zod';
2
- export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
2
+ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
3
3
  originCorrelationId: z.ZodString;
4
4
  ownerId: z.ZodString;
5
5
  callbackUrl: z.ZodString;
6
6
  callbackToken: z.ZodString;
7
- }, {
7
+ } & {
8
8
  sourceLocale: z.ZodEffects<z.ZodString, string, string>;
9
9
  targetLocale: z.ZodEffects<z.ZodString, string, string>;
10
- integration: z.ZodOptional<z.ZodNativeEnum<{
11
- readonly FINETUNED_OPENAI: "FT-OpenAI";
12
- readonly CLAUDE: "Claude";
13
- readonly CHAT_GPT4: "ChatGPT-4";
14
- readonly GEMINI: "Gemini";
15
- readonly DEEPL: "DeepL";
16
- readonly GOOGLE_TRANSLATE: "GoogleTranslate";
17
- readonly MICROSOFT_TRANSLATOR: "MicrosoftTranslator";
18
- }>>;
10
+ integration: z.ZodOptional<z.ZodEffects<z.ZodNativeEnum<{
11
+ CHAT_GPT4: "ChatGPT-4";
12
+ FINETUNED_OPENAI: "FT-OpenAI";
13
+ CLAUDE: "Claude";
14
+ GPT: "GPT";
15
+ GEMINI: "Gemini";
16
+ DEEPL: "DeepL";
17
+ GOOGLE_TRANSLATE: "GoogleTranslate";
18
+ MICROSOFT_TRANSLATOR: "MicrosoftTranslator";
19
+ }>, "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator", "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator">>;
19
20
  forceIntegration: z.ZodOptional<z.ZodBoolean>;
20
21
  pickIntegrationByScore: z.ZodDefault<z.ZodBoolean>;
21
22
  includeScore: z.ZodDefault<z.ZodBoolean>;
@@ -529,7 +530,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
529
530
  } | undefined;
530
531
  characterLimit?: number | undefined;
531
532
  }[]]>;
532
- }>, "strip", z.ZodTypeAny, {
533
+ }, "strip", z.ZodTypeAny, {
533
534
  originCorrelationId: string;
534
535
  ownerId: string;
535
536
  callbackUrl: string;
@@ -625,7 +626,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
625
626
  translatedValue: string;
626
627
  }[] | undefined;
627
628
  } | undefined;
628
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
629
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
629
630
  forceIntegration?: boolean | undefined;
630
631
  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 | {
631
632
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -746,7 +747,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
746
747
  translatedValue: string;
747
748
  }[] | undefined;
748
749
  } | undefined;
749
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
750
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
750
751
  forceIntegration?: boolean | undefined;
751
752
  pickIntegrationByScore?: boolean | undefined;
752
753
  includeScore?: boolean | undefined;
@@ -871,7 +872,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
871
872
  translatedValue: string;
872
873
  }[] | undefined;
873
874
  } | undefined;
874
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
875
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
875
876
  forceIntegration?: boolean | undefined;
876
877
  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 | {
877
878
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -992,7 +993,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
992
993
  translatedValue: string;
993
994
  }[] | undefined;
994
995
  } | undefined;
995
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
996
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
996
997
  forceIntegration?: boolean | undefined;
997
998
  pickIntegrationByScore?: boolean | undefined;
998
999
  includeScore?: boolean | undefined;
@@ -1117,7 +1118,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1117
1118
  translatedValue: string;
1118
1119
  }[] | undefined;
1119
1120
  } | undefined;
1120
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1121
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1121
1122
  forceIntegration?: boolean | undefined;
1122
1123
  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 | {
1123
1124
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -1238,7 +1239,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1238
1239
  translatedValue: string;
1239
1240
  }[] | undefined;
1240
1241
  } | undefined;
1241
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1242
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1242
1243
  forceIntegration?: boolean | undefined;
1243
1244
  pickIntegrationByScore?: boolean | undefined;
1244
1245
  includeScore?: boolean | undefined;
@@ -1363,7 +1364,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1363
1364
  translatedValue: string;
1364
1365
  }[] | undefined;
1365
1366
  } | undefined;
1366
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1367
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1367
1368
  forceIntegration?: boolean | undefined;
1368
1369
  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 | {
1369
1370
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -1484,7 +1485,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1484
1485
  translatedValue: string;
1485
1486
  }[] | undefined;
1486
1487
  } | undefined;
1487
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1488
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1488
1489
  forceIntegration?: boolean | undefined;
1489
1490
  pickIntegrationByScore?: boolean | undefined;
1490
1491
  includeScore?: boolean | undefined;
@@ -1609,7 +1610,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1609
1610
  translatedValue: string;
1610
1611
  }[] | undefined;
1611
1612
  } | undefined;
1612
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1613
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1613
1614
  forceIntegration?: boolean | undefined;
1614
1615
  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 | {
1615
1616
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -1730,7 +1731,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1730
1731
  translatedValue: string;
1731
1732
  }[] | undefined;
1732
1733
  } | undefined;
1733
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1734
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1734
1735
  forceIntegration?: boolean | undefined;
1735
1736
  pickIntegrationByScore?: boolean | undefined;
1736
1737
  includeScore?: boolean | undefined;
@@ -1842,16 +1843,16 @@ export declare const TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA: z.ZodObject<{
1842
1843
  comment?: string | null | undefined;
1843
1844
  }[] | null | undefined;
1844
1845
  }>, "many">;
1845
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1846
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1846
1847
  message: z.ZodString;
1847
1848
  errorCode: z.ZodString;
1848
1849
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1849
- }, {
1850
+ } & {
1850
1851
  contentUnitId: z.ZodString;
1851
1852
  segmentId: z.ZodString;
1852
1853
  polyglotRefId: z.ZodString;
1853
1854
  integration: z.ZodString;
1854
- }>, "strip", z.ZodTypeAny, {
1855
+ }, "strip", z.ZodTypeAny, {
1855
1856
  message: string;
1856
1857
  errorCode: string;
1857
1858
  integration: string;
@@ -1923,7 +1924,7 @@ export declare const TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA: z.ZodObject<{
1923
1924
  details?: Record<string, unknown> | undefined;
1924
1925
  }[] | undefined;
1925
1926
  }>;
1926
- export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.extendShape<{
1927
+ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<{
1927
1928
  originCorrelationId: z.ZodString;
1928
1929
  data: z.ZodArray<z.ZodObject<{
1929
1930
  contentUnitId: z.ZodString;
@@ -1988,16 +1989,16 @@ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.ex
1988
1989
  comment?: string | null | undefined;
1989
1990
  }[] | null | undefined;
1990
1991
  }>, "many">;
1991
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1992
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1992
1993
  message: z.ZodString;
1993
1994
  errorCode: z.ZodString;
1994
1995
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1995
- }, {
1996
+ } & {
1996
1997
  contentUnitId: z.ZodString;
1997
1998
  segmentId: z.ZodString;
1998
1999
  polyglotRefId: z.ZodString;
1999
2000
  integration: z.ZodString;
2000
- }>, "strip", z.ZodTypeAny, {
2001
+ }, "strip", z.ZodTypeAny, {
2001
2002
  message: string;
2002
2003
  errorCode: string;
2003
2004
  integration: string;
@@ -2014,9 +2015,9 @@ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.ex
2014
2015
  polyglotRefId: string;
2015
2016
  details?: Record<string, unknown> | undefined;
2016
2017
  }>, "many">>;
2017
- }, {
2018
+ } & {
2018
2019
  status: z.ZodLiteral<"success">;
2019
- }>, "strip", z.ZodTypeAny, {
2020
+ }, "strip", z.ZodTypeAny, {
2020
2021
  originCorrelationId: string;
2021
2022
  status: "success";
2022
2023
  data: {
@@ -2073,7 +2074,7 @@ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.ex
2073
2074
  details?: Record<string, unknown> | undefined;
2074
2075
  }[] | undefined;
2075
2076
  }>;
2076
- export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<{
2077
+ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
2077
2078
  originCorrelationId: z.ZodString;
2078
2079
  data: z.ZodArray<z.ZodObject<{
2079
2080
  contentUnitId: z.ZodString;
@@ -2138,16 +2139,16 @@ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"s
2138
2139
  comment?: string | null | undefined;
2139
2140
  }[] | null | undefined;
2140
2141
  }>, "many">;
2141
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
2142
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
2142
2143
  message: z.ZodString;
2143
2144
  errorCode: z.ZodString;
2144
2145
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2145
- }, {
2146
+ } & {
2146
2147
  contentUnitId: z.ZodString;
2147
2148
  segmentId: z.ZodString;
2148
2149
  polyglotRefId: z.ZodString;
2149
2150
  integration: z.ZodString;
2150
- }>, "strip", z.ZodTypeAny, {
2151
+ }, "strip", z.ZodTypeAny, {
2151
2152
  message: string;
2152
2153
  errorCode: string;
2153
2154
  integration: string;
@@ -2164,9 +2165,9 @@ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"s
2164
2165
  polyglotRefId: string;
2165
2166
  details?: Record<string, unknown> | undefined;
2166
2167
  }>, "many">>;
2167
- }, {
2168
+ } & {
2168
2169
  status: z.ZodLiteral<"success">;
2169
- }>, "strip", z.ZodTypeAny, {
2170
+ }, "strip", z.ZodTypeAny, {
2170
2171
  originCorrelationId: string;
2171
2172
  status: "success";
2172
2173
  data: {
@@ -2222,14 +2223,14 @@ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"s
2222
2223
  polyglotRefId: string;
2223
2224
  details?: Record<string, unknown> | undefined;
2224
2225
  }[] | undefined;
2225
- }>, z.ZodObject<z.objectUtil.extendShape<{
2226
+ }>, z.ZodObject<{
2226
2227
  message: z.ZodString;
2227
2228
  errorCode: z.ZodString;
2228
2229
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2229
- }, {
2230
+ } & {
2230
2231
  status: z.ZodLiteral<"error">;
2231
2232
  originCorrelationId: z.ZodString;
2232
- }>, "strip", z.ZodTypeAny, {
2233
+ }, "strip", z.ZodTypeAny, {
2233
2234
  originCorrelationId: string;
2234
2235
  message: string;
2235
2236
  status: "error";
@@ -4,15 +4,16 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
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.ZodNativeEnum<{
8
- readonly FINETUNED_OPENAI: "FT-OpenAI";
9
- readonly CLAUDE: "Claude";
10
- readonly CHAT_GPT4: "ChatGPT-4";
11
- readonly GEMINI: "Gemini";
12
- readonly DEEPL: "DeepL";
13
- readonly GOOGLE_TRANSLATE: "GoogleTranslate";
14
- readonly MICROSOFT_TRANSLATOR: "MicrosoftTranslator";
15
- }>>;
7
+ integration: z.ZodOptional<z.ZodEffects<z.ZodNativeEnum<{
8
+ CHAT_GPT4: "ChatGPT-4";
9
+ FINETUNED_OPENAI: "FT-OpenAI";
10
+ CLAUDE: "Claude";
11
+ GPT: "GPT";
12
+ GEMINI: "Gemini";
13
+ DEEPL: "DeepL";
14
+ GOOGLE_TRANSLATE: "GoogleTranslate";
15
+ MICROSOFT_TRANSLATOR: "MicrosoftTranslator";
16
+ }>, "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator", "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator">>;
16
17
  forceIntegration: z.ZodOptional<z.ZodBoolean>;
17
18
  context: z.ZodOptional<z.ZodObject<{
18
19
  description: z.ZodOptional<z.ZodString>;
@@ -615,7 +616,7 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
615
616
  translatedValue: string;
616
617
  }[] | undefined;
617
618
  } | undefined;
618
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
619
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
619
620
  forceIntegration?: boolean | undefined;
620
621
  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
622
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -734,7 +735,7 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
734
735
  translatedValue: string;
735
736
  }[] | undefined;
736
737
  } | undefined;
737
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
738
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
738
739
  forceIntegration?: boolean | undefined;
739
740
  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
741
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -853,7 +854,7 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
853
854
  translatedValue: string;
854
855
  }[] | undefined;
855
856
  } | undefined;
856
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
857
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
857
858
  forceIntegration?: boolean | undefined;
858
859
  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 | {
859
860
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -972,7 +973,7 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
972
973
  translatedValue: string;
973
974
  }[] | undefined;
974
975
  } | undefined;
975
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
976
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
976
977
  forceIntegration?: boolean | undefined;
977
978
  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 | {
978
979
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -1091,7 +1092,7 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
1091
1092
  translatedValue: string;
1092
1093
  }[] | undefined;
1093
1094
  } | undefined;
1094
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1095
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1095
1096
  forceIntegration?: boolean | undefined;
1096
1097
  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 | {
1097
1098
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -1210,7 +1211,7 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
1210
1211
  translatedValue: string;
1211
1212
  }[] | undefined;
1212
1213
  } | undefined;
1213
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1214
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1214
1215
  forceIntegration?: boolean | undefined;
1215
1216
  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 | {
1216
1217
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -1329,7 +1330,7 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
1329
1330
  translatedValue: string;
1330
1331
  }[] | undefined;
1331
1332
  } | undefined;
1332
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1333
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1333
1334
  forceIntegration?: boolean | undefined;
1334
1335
  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 | {
1335
1336
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -1448,7 +1449,7 @@ export declare const TRANSLATE_SYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zod
1448
1449
  translatedValue: string;
1449
1450
  }[] | undefined;
1450
1451
  } | undefined;
1451
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1452
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1452
1453
  forceIntegration?: boolean | undefined;
1453
1454
  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 | {
1454
1455
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -1517,15 +1518,15 @@ export declare const TRANSLATE_SYNC_RESPONSE_SCHEMA: z.ZodObject<{
1517
1518
  }[] | undefined;
1518
1519
  polyglotRefId?: string | undefined;
1519
1520
  }>, "many">;
1520
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1521
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1521
1522
  message: z.ZodString;
1522
1523
  errorCode: z.ZodString;
1523
1524
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1524
- }, {
1525
+ } & {
1525
1526
  contentUnitId: z.ZodString;
1526
1527
  segmentId: z.ZodString;
1527
1528
  integration: z.ZodString;
1528
- }>, "strip", z.ZodTypeAny, {
1529
+ }, "strip", z.ZodTypeAny, {
1529
1530
  message: string;
1530
1531
  errorCode: string;
1531
1532
  integration: string;
@@ -3,18 +3,18 @@ export declare const TRANSLATE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffec
3
3
  ownerId: z.ZodOptional<z.ZodString>;
4
4
  sourceLocale: z.ZodEffects<z.ZodString, string, string>;
5
5
  targetLocale: z.ZodEffects<z.ZodString, string, string>;
6
- integration: z.ZodOptional<z.ZodNativeEnum<{
7
- readonly FINETUNED_OPENAI: "FT-OpenAI";
8
- readonly CLAUDE: "Claude";
9
- readonly CHAT_GPT4: "ChatGPT-4";
10
- readonly GEMINI: "Gemini";
11
- readonly DEEPL: "DeepL";
12
- readonly GOOGLE_TRANSLATE: "GoogleTranslate";
13
- readonly MICROSOFT_TRANSLATOR: "MicrosoftTranslator";
14
- }>>;
6
+ integration: z.ZodOptional<z.ZodEffects<z.ZodNativeEnum<{
7
+ CHAT_GPT4: "ChatGPT-4";
8
+ FINETUNED_OPENAI: "FT-OpenAI";
9
+ CLAUDE: "Claude";
10
+ GPT: "GPT";
11
+ GEMINI: "Gemini";
12
+ DEEPL: "DeepL";
13
+ GOOGLE_TRANSLATE: "GoogleTranslate";
14
+ MICROSOFT_TRANSLATOR: "MicrosoftTranslator";
15
+ }>, "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator", "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator">>;
15
16
  forceIntegration: z.ZodOptional<z.ZodBoolean>;
16
- context: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
17
- description: z.ZodOptional<z.ZodString>;
17
+ context: z.ZodOptional<z.ZodObject<{
18
18
  styleGuide: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
19
19
  text: z.ZodString;
20
20
  }, "strip", z.ZodTypeAny, {
@@ -112,17 +112,7 @@ export declare const TRANSLATE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffec
112
112
  }[] | undefined;
113
113
  }>, "many">>;
114
114
  targetPluralForms: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEnum<["zero", "one", "two", "few", "many", "other"]>, "atleastone">>, ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined, ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined>, ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined, ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined>;
115
- translationExamples: z.ZodOptional<z.ZodArray<z.ZodObject<{
116
- sourceValue: z.ZodString;
117
- translatedValue: z.ZodString;
118
- }, "strip", z.ZodTypeAny, {
119
- sourceValue: string;
120
- translatedValue: string;
121
- }, {
122
- sourceValue: string;
123
- translatedValue: string;
124
- }>, "many">>;
125
- }, {
115
+ } & {
126
116
  description: z.ZodOptional<z.ZodString>;
127
117
  translationExamples: z.ZodOptional<z.ZodArray<z.ZodObject<{
128
118
  sourceValue: z.ZodString;
@@ -134,7 +124,7 @@ export declare const TRANSLATE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffec
134
124
  sourceValue: string;
135
125
  translatedValue: string;
136
126
  }>, "many">>;
137
- }>, "strip", z.ZodTypeAny, {
127
+ }, "strip", z.ZodTypeAny, {
138
128
  description?: string | undefined;
139
129
  styleGuide?: {
140
130
  targetAudience?: "general" | "technical" | "non-technical" | undefined;
@@ -312,7 +302,7 @@ export declare const TRANSLATE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffec
312
302
  translatedValue: string;
313
303
  }[] | undefined;
314
304
  } | undefined;
315
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
305
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
316
306
  forceIntegration?: boolean | undefined;
317
307
  history?: {
318
308
  value: string;
@@ -382,7 +372,7 @@ export declare const TRANSLATE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffec
382
372
  translatedValue: string;
383
373
  }[] | undefined;
384
374
  } | undefined;
385
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
375
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
386
376
  forceIntegration?: boolean | undefined;
387
377
  history?: {
388
378
  value: string;
@@ -452,7 +442,7 @@ export declare const TRANSLATE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffec
452
442
  translatedValue: string;
453
443
  }[] | undefined;
454
444
  } | undefined;
455
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
445
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
456
446
  forceIntegration?: boolean | undefined;
457
447
  history?: {
458
448
  value: string;
@@ -522,7 +512,7 @@ export declare const TRANSLATE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffec
522
512
  translatedValue: string;
523
513
  }[] | undefined;
524
514
  } | undefined;
525
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
515
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
526
516
  forceIntegration?: boolean | undefined;
527
517
  history?: {
528
518
  value: string;
@@ -592,7 +582,7 @@ export declare const TRANSLATE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffec
592
582
  translatedValue: string;
593
583
  }[] | undefined;
594
584
  } | undefined;
595
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
585
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
596
586
  forceIntegration?: boolean | undefined;
597
587
  history?: {
598
588
  value: string;
@@ -662,7 +652,7 @@ export declare const TRANSLATE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffec
662
652
  translatedValue: string;
663
653
  }[] | undefined;
664
654
  } | undefined;
665
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
655
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
666
656
  forceIntegration?: boolean | undefined;
667
657
  history?: {
668
658
  value: string;
@@ -732,7 +722,7 @@ export declare const TRANSLATE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffec
732
722
  translatedValue: string;
733
723
  }[] | undefined;
734
724
  } | undefined;
735
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
725
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
736
726
  forceIntegration?: boolean | undefined;
737
727
  history?: {
738
728
  value: string;
@@ -802,7 +792,7 @@ export declare const TRANSLATE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffec
802
792
  translatedValue: string;
803
793
  }[] | undefined;
804
794
  } | undefined;
805
- integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
795
+ integration?: "FT-OpenAI" | "Claude" | "GPT" | "Gemini" | "ChatGPT-4" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
806
796
  forceIntegration?: boolean | undefined;
807
797
  history?: {
808
798
  value: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokalise/polyglot-sdk",
3
- "version": "19.0.2",
3
+ "version": "20.0.0",
4
4
  "author": {
5
5
  "name": "Lokalise",
6
6
  "url": "https://lokalise.com/"
@@ -41,12 +41,12 @@
41
41
  "@lokalise/id-utils": "^3.0.0",
42
42
  "@lokalise/node-core": "^13.6.0",
43
43
  "@lokalise/non-translatable-markup": "^3.0.0",
44
- "@lokalise/supported-languages": "^3.0.0",
44
+ "@lokalise/supported-languages": "^3.1.0",
45
45
  "@lokalise/zod-extras": "^2.1.0",
46
46
  "html-escaper": "^3.0.3",
47
47
  "undici": "^7.7.0",
48
48
  "undici-retry": "^6.0.0",
49
- "zod": "^3.24.2"
49
+ "zod": "^3.24.3"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@lokalise/fastify-extras": ">=27.0.0"
@@ -58,10 +58,10 @@
58
58
  "@lokalise/fastify-extras": "^27.3.0",
59
59
  "@lokalise/tsconfig": "^1.1.0",
60
60
  "@types/html-escaper": "^3.0.4",
61
- "@types/node": "^22.14.1",
62
- "@vitest/coverage-v8": "^3.1.1",
61
+ "@types/node": "^22.15.3",
62
+ "@vitest/coverage-v8": "^3.1.2",
63
63
  "auto-changelog": "^2.5.0",
64
- "mockttp": "^3.17.0",
64
+ "mockttp": "^3.17.1",
65
65
  "rimraf": "^6.0.1",
66
66
  "ts-deepmerge": "^7.0.1",
67
67
  "typescript": "5.8.3",