@lokalise/polyglot-sdk 17.0.3 → 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.
Files changed (67) hide show
  1. package/LICENSE +13 -0
  2. package/dist/index.d.ts +23 -23
  3. package/dist/index.js +21 -34
  4. package/dist/index.js.map +1 -1
  5. package/dist/sdk/PolyglotClient.d.ts +8 -8
  6. package/dist/sdk/PolyglotClient.js +28 -33
  7. package/dist/sdk/PolyglotClient.js.map +1 -1
  8. package/dist/sdk/errors/PolyglotError.js +2 -6
  9. package/dist/sdk/errors/PolyglotError.js.map +1 -1
  10. package/dist/sdk/helpers/htmlEscaping.d.ts +1 -1
  11. package/dist/sdk/helpers/htmlEscaping.js +12 -17
  12. package/dist/sdk/helpers/htmlEscaping.js.map +1 -1
  13. package/dist/sdk/helpers/isEnumValue.js +1 -5
  14. package/dist/sdk/helpers/isEnumValue.js.map +1 -1
  15. package/dist/sdk/helpers/nonTranslatableContentHelper.d.ts +1 -1
  16. package/dist/sdk/helpers/nonTranslatableContentHelper.js +10 -16
  17. package/dist/sdk/helpers/nonTranslatableContentHelper.js.map +1 -1
  18. package/dist/sdk/helpers/nonTranslatableContentWrappers.d.ts +10 -3
  19. package/dist/sdk/helpers/nonTranslatableContentWrappers.js +17 -15
  20. package/dist/sdk/helpers/nonTranslatableContentWrappers.js.map +1 -1
  21. package/dist/sdk/schemas/common/asyncRequestSchemas.d.ts +1 -1
  22. package/dist/sdk/schemas/common/asyncRequestSchemas.js +12 -16
  23. package/dist/sdk/schemas/common/asyncRequestSchemas.js.map +1 -1
  24. package/dist/sdk/schemas/common/commonSchemas.d.ts +7 -1
  25. package/dist/sdk/schemas/common/commonSchemas.js +58 -53
  26. package/dist/sdk/schemas/common/commonSchemas.js.map +1 -1
  27. package/dist/sdk/schemas/common/errorSchemas.d.ts +1 -1
  28. package/dist/sdk/schemas/common/errorSchemas.js +13 -17
  29. package/dist/sdk/schemas/common/errorSchemas.js.map +1 -1
  30. package/dist/sdk/schemas/common/translationContextSchemas.js +33 -38
  31. package/dist/sdk/schemas/common/translationContextSchemas.js.map +1 -1
  32. package/dist/sdk/schemas/lqa/commonSchemas.d.ts +1 -1
  33. package/dist/sdk/schemas/lqa/commonSchemas.js +1 -4
  34. package/dist/sdk/schemas/lqa/commonSchemas.js.map +1 -1
  35. package/dist/sdk/schemas/lqa/lqaAsyncSchemas.js +46 -50
  36. package/dist/sdk/schemas/lqa/lqaAsyncSchemas.js.map +1 -1
  37. package/dist/sdk/schemas/lqa/lqaSyncSchemas.js +38 -42
  38. package/dist/sdk/schemas/lqa/lqaSyncSchemas.js.map +1 -1
  39. package/dist/sdk/schemas/scoring/scoreSchemas.js +24 -27
  40. package/dist/sdk/schemas/scoring/scoreSchemas.js.map +1 -1
  41. package/dist/sdk/schemas/translation/generateVariants.d.ts +88 -1
  42. package/dist/sdk/schemas/translation/generateVariants.js +25 -27
  43. package/dist/sdk/schemas/translation/generateVariants.js.map +1 -1
  44. package/dist/sdk/schemas/translation/rewriteTextSchemas.d.ts +135 -2
  45. package/dist/sdk/schemas/translation/rewriteTextSchemas.js +53 -55
  46. package/dist/sdk/schemas/translation/rewriteTextSchemas.js.map +1 -1
  47. package/dist/sdk/schemas/translation/sharedSchemas.d.ts +2 -2
  48. package/dist/sdk/schemas/translation/sharedSchemas.js +54 -58
  49. package/dist/sdk/schemas/translation/sharedSchemas.js.map +1 -1
  50. package/dist/sdk/schemas/translation/translateAsyncSchemas.d.ts +224 -1
  51. package/dist/sdk/schemas/translation/translateAsyncSchemas.js +51 -53
  52. package/dist/sdk/schemas/translation/translateAsyncSchemas.js.map +1 -1
  53. package/dist/sdk/schemas/translation/translateSyncSchemas.d.ts +214 -1
  54. package/dist/sdk/schemas/translation/translateSyncSchemas.js +34 -36
  55. package/dist/sdk/schemas/translation/translateSyncSchemas.js.map +1 -1
  56. package/dist/sdk/schemas/translation/translateTextSegmentSchemas.d.ts +148 -1
  57. package/dist/sdk/schemas/translation/translateTextSegmentSchemas.js +28 -30
  58. package/dist/sdk/schemas/translation/translateTextSegmentSchemas.js.map +1 -1
  59. package/dist/sdk/types/client.js +1 -2
  60. package/dist/sdk/types/common.js +1 -2
  61. package/dist/sdk/validation/isSegmentUnderLengthLimit.d.ts +1 -1
  62. package/dist/sdk/validation/isSegmentUnderLengthLimit.js +7 -11
  63. package/dist/sdk/validation/isSegmentUnderLengthLimit.js.map +1 -1
  64. package/dist/sdk/validation/requestSizeLimit.d.ts +4 -4
  65. package/dist/sdk/validation/requestSizeLimit.js +10 -16
  66. package/dist/sdk/validation/requestSizeLimit.js.map +1 -1
  67. package/package.json +7 -7
@@ -1,5 +1,5 @@
1
1
  import z from 'zod';
2
- export declare const TRANSLATE_ASYNC_BODY_SCHEMA: 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<z.objectUtil.extendShape<{
3
3
  originCorrelationId: z.ZodString;
4
4
  ownerId: z.ZodString;
5
5
  callbackUrl: z.ZodString;
@@ -16,6 +16,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
16
16
  readonly GOOGLE_TRANSLATE: "GoogleTranslate";
17
17
  readonly MICROSOFT_TRANSLATOR: "MicrosoftTranslator";
18
18
  }>>;
19
+ forceIntegration: z.ZodOptional<z.ZodBoolean>;
19
20
  pickIntegrationByScore: z.ZodDefault<z.ZodBoolean>;
20
21
  includeScore: z.ZodDefault<z.ZodBoolean>;
21
22
  context: z.ZodOptional<z.ZodObject<{
@@ -505,6 +506,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
505
506
  }[] | undefined;
506
507
  } | undefined;
507
508
  integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
509
+ forceIntegration?: boolean | undefined;
508
510
  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 | {
509
511
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
510
512
  } | null)[] | {
@@ -609,6 +611,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
609
611
  }[] | undefined;
610
612
  } | undefined;
611
613
  integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
614
+ forceIntegration?: boolean | undefined;
612
615
  pickIntegrationByScore?: boolean | undefined;
613
616
  includeScore?: boolean | undefined;
614
617
  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 | {
@@ -717,6 +720,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
717
720
  }[] | undefined;
718
721
  } | undefined;
719
722
  integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
723
+ forceIntegration?: boolean | undefined;
720
724
  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 | {
721
725
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
722
726
  } | null)[] | {
@@ -821,6 +825,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
821
825
  }[] | undefined;
822
826
  } | undefined;
823
827
  integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
828
+ forceIntegration?: boolean | undefined;
824
829
  pickIntegrationByScore?: boolean | undefined;
825
830
  includeScore?: boolean | undefined;
826
831
  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 | {
@@ -929,6 +934,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
929
934
  }[] | undefined;
930
935
  } | undefined;
931
936
  integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
937
+ forceIntegration?: boolean | undefined;
932
938
  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 | {
933
939
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
934
940
  } | null)[] | {
@@ -1033,6 +1039,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1033
1039
  }[] | undefined;
1034
1040
  } | undefined;
1035
1041
  integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1042
+ forceIntegration?: boolean | undefined;
1036
1043
  pickIntegrationByScore?: boolean | undefined;
1037
1044
  includeScore?: boolean | undefined;
1038
1045
  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 | {
@@ -1141,6 +1148,7 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1141
1148
  }[] | undefined;
1142
1149
  } | undefined;
1143
1150
  integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1151
+ forceIntegration?: boolean | undefined;
1144
1152
  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 | {
1145
1153
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
1146
1154
  } | null)[] | {
@@ -1245,6 +1253,221 @@ export declare const TRANSLATE_ASYNC_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.Zo
1245
1253
  }[] | undefined;
1246
1254
  } | undefined;
1247
1255
  integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1256
+ forceIntegration?: boolean | undefined;
1257
+ pickIntegrationByScore?: boolean | undefined;
1258
+ includeScore?: boolean | undefined;
1259
+ 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 | {
1260
+ [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
1261
+ } | null)[] | {
1262
+ [key: string]: string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null;
1263
+ } | null)[] | {
1264
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1265
+ } | null)[] | {
1266
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1267
+ } | null)[] | {
1268
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1269
+ } | null)[] | {
1270
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1271
+ } | null)[] | {
1272
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1273
+ } | null)[] | {
1274
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1275
+ } | null)[] | {
1276
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1277
+ } | null)[] | {
1278
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1279
+ } | null)[] | {
1280
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1281
+ } | null)[] | {
1282
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1283
+ } | null> | undefined;
1284
+ }>, {
1285
+ originCorrelationId: string;
1286
+ ownerId: string;
1287
+ callbackUrl: string;
1288
+ callbackToken: string;
1289
+ sourceLocale: string;
1290
+ contentUnits: [{
1291
+ id: string;
1292
+ segments: [{
1293
+ value: string;
1294
+ id: string;
1295
+ tmMatch?: {
1296
+ sourceValue: string;
1297
+ translatedValue: string;
1298
+ } | undefined;
1299
+ }, ...{
1300
+ value: string;
1301
+ id: string;
1302
+ tmMatch?: {
1303
+ sourceValue: string;
1304
+ translatedValue: string;
1305
+ } | undefined;
1306
+ }[]];
1307
+ context?: {
1308
+ description: string;
1309
+ } | undefined;
1310
+ characterLimit?: number | undefined;
1311
+ }, ...{
1312
+ id: string;
1313
+ segments: [{
1314
+ value: string;
1315
+ id: string;
1316
+ tmMatch?: {
1317
+ sourceValue: string;
1318
+ translatedValue: string;
1319
+ } | undefined;
1320
+ }, ...{
1321
+ value: string;
1322
+ id: string;
1323
+ tmMatch?: {
1324
+ sourceValue: string;
1325
+ translatedValue: string;
1326
+ } | undefined;
1327
+ }[]];
1328
+ context?: {
1329
+ description: string;
1330
+ } | undefined;
1331
+ characterLimit?: number | undefined;
1332
+ }[]];
1333
+ targetLocale: string;
1334
+ pickIntegrationByScore: boolean;
1335
+ includeScore: boolean;
1336
+ context?: {
1337
+ description?: string | undefined;
1338
+ styleGuide?: {
1339
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
1340
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
1341
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
1342
+ generalRule?: "active-voice" | "passive-voice" | undefined;
1343
+ } | {
1344
+ text: string;
1345
+ } | undefined;
1346
+ glossary?: {
1347
+ term: string;
1348
+ translatable: boolean;
1349
+ forbidden: boolean;
1350
+ caseSensitive: boolean;
1351
+ description?: string | undefined;
1352
+ translations?: {
1353
+ locale: string;
1354
+ translation: string;
1355
+ description?: string | undefined;
1356
+ }[] | undefined;
1357
+ }[] | undefined;
1358
+ targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
1359
+ translationExamples?: {
1360
+ sourceValue: string;
1361
+ translatedValue: string;
1362
+ }[] | undefined;
1363
+ } | undefined;
1364
+ integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1365
+ forceIntegration?: boolean | undefined;
1366
+ 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 | {
1367
+ [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
1368
+ } | null)[] | {
1369
+ [key: string]: string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null;
1370
+ } | null)[] | {
1371
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1372
+ } | null)[] | {
1373
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1374
+ } | null)[] | {
1375
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1376
+ } | null)[] | {
1377
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1378
+ } | null)[] | {
1379
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1380
+ } | null)[] | {
1381
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1382
+ } | null)[] | {
1383
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1384
+ } | null)[] | {
1385
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1386
+ } | null)[] | {
1387
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1388
+ } | null)[] | {
1389
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
1390
+ } | null> | undefined;
1391
+ }, {
1392
+ originCorrelationId: string;
1393
+ ownerId: string;
1394
+ callbackUrl: string;
1395
+ callbackToken: string;
1396
+ sourceLocale: string;
1397
+ contentUnits: [{
1398
+ id: string;
1399
+ segments: [{
1400
+ value: string;
1401
+ id: string;
1402
+ tmMatch?: {
1403
+ sourceValue: string;
1404
+ translatedValue: string;
1405
+ } | undefined;
1406
+ }, ...{
1407
+ value: string;
1408
+ id: string;
1409
+ tmMatch?: {
1410
+ sourceValue: string;
1411
+ translatedValue: string;
1412
+ } | undefined;
1413
+ }[]];
1414
+ context?: {
1415
+ description: string;
1416
+ } | undefined;
1417
+ characterLimit?: number | undefined;
1418
+ }, ...{
1419
+ id: string;
1420
+ segments: [{
1421
+ value: string;
1422
+ id: string;
1423
+ tmMatch?: {
1424
+ sourceValue: string;
1425
+ translatedValue: string;
1426
+ } | undefined;
1427
+ }, ...{
1428
+ value: string;
1429
+ id: string;
1430
+ tmMatch?: {
1431
+ sourceValue: string;
1432
+ translatedValue: string;
1433
+ } | undefined;
1434
+ }[]];
1435
+ context?: {
1436
+ description: string;
1437
+ } | undefined;
1438
+ characterLimit?: number | undefined;
1439
+ }[]];
1440
+ targetLocale: string;
1441
+ context?: {
1442
+ description?: string | undefined;
1443
+ styleGuide?: {
1444
+ targetAudience?: "general" | "technical" | "non-technical" | undefined;
1445
+ toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
1446
+ levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
1447
+ generalRule?: "active-voice" | "passive-voice" | undefined;
1448
+ } | {
1449
+ text: string;
1450
+ } | undefined;
1451
+ glossary?: {
1452
+ term: string;
1453
+ description?: string | undefined;
1454
+ translatable?: boolean | undefined;
1455
+ forbidden?: boolean | undefined;
1456
+ caseSensitive?: boolean | undefined;
1457
+ translations?: {
1458
+ locale: string;
1459
+ translation: string;
1460
+ description?: string | undefined;
1461
+ }[] | undefined;
1462
+ }[] | undefined;
1463
+ targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
1464
+ translationExamples?: {
1465
+ sourceValue: string;
1466
+ translatedValue: string;
1467
+ }[] | undefined;
1468
+ } | undefined;
1469
+ integration?: "FT-OpenAI" | "Claude" | "ChatGPT-4" | "Gemini" | "DeepL" | "GoogleTranslate" | "MicrosoftTranslator" | undefined;
1470
+ forceIntegration?: boolean | undefined;
1248
1471
  pickIntegrationByScore?: boolean | undefined;
1249
1472
  includeScore?: boolean | undefined;
1250
1473
  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 | {
@@ -1,83 +1,81 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TRANSLATE_ASYNC_CALLBACK_SCHEMA = exports.TRANSLATE_ASYNC_SUCCESS_SCHEMA = exports.TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA = exports.TRANSLATE_ASYNC_RESPONSE_SCHEMA = exports.TRANSLATE_ASYNC_HEADERS_SCHEMA = exports.TRANSLATE_ASYNC_BODY_SCHEMA = void 0;
4
- const tslib_1 = require("tslib");
5
- const zod_1 = tslib_1.__importDefault(require("zod"));
6
- const asyncRequestSchemas_1 = require("../common/asyncRequestSchemas");
7
- const commonSchemas_1 = require("../common/commonSchemas");
8
- const translationContextSchemas_1 = require("../common/translationContextSchemas");
9
- const commonSchemas_2 = require("../lqa/commonSchemas");
10
- const sharedSchemas_1 = require("./sharedSchemas");
1
+ import z from 'zod';
2
+ import { ASYNC_REQUEST_SCHEMA, AsyncRequestCallbackStatusEnum, } from '../common/asyncRequestSchemas.js';
3
+ import { COMMON_ERROR_RESPONSE_SCHEMA, COMMON_FAILED_OPERATION_CALLBACK_SCHEMA, COMMON_REQUEST_HEADERS_SCHEMA, FORCE_INTEGRATION_SCHEMA, LOCALE_SCHEMA, METADATA_SCHEMA, REAL_INTEGRATION_ENGINE_SCHEMA, refineIntegrationIsPresent, } from '../common/commonSchemas.js';
4
+ import { TRANSLATION_CONTEXT_SCHEMA } from '../common/translationContextSchemas.js';
5
+ import { LqaIssueSeverityEnum } from '../lqa/commonSchemas.js';
6
+ import { CONTENT_ID_PROP_SCHEMA, SEGMENT_WARNINGS_SCHEMA, TRANSLATE_CONTENT_UNIT_SCHEMA, refineDifferentSourceAndTargetLang, refineRequestSizeLimit, refineUniqueIds, } from './sharedSchemas.js';
11
7
  const CONTENT_UNITS_MAX_LENGTH = 50;
12
- exports.TRANSLATE_ASYNC_BODY_SCHEMA = asyncRequestSchemas_1.ASYNC_REQUEST_SCHEMA.extend({
13
- sourceLocale: commonSchemas_1.LOCALE_SCHEMA,
14
- targetLocale: commonSchemas_1.LOCALE_SCHEMA,
15
- integration: commonSchemas_1.REAL_INTEGRATION_ENGINE_SCHEMA.optional(),
16
- pickIntegrationByScore: zod_1.default
8
+ export const TRANSLATE_ASYNC_BODY_SCHEMA = ASYNC_REQUEST_SCHEMA.extend({
9
+ sourceLocale: LOCALE_SCHEMA,
10
+ targetLocale: LOCALE_SCHEMA,
11
+ integration: REAL_INTEGRATION_ENGINE_SCHEMA.optional(),
12
+ forceIntegration: FORCE_INTEGRATION_SCHEMA.optional(),
13
+ pickIntegrationByScore: z
17
14
  .boolean()
18
15
  .default(false)
19
16
  .describe('Determines whether the best integration should be selected automatically based on score. When enabled, the system performs translation with every available integration and returns the one with the highest confidence score. This cannot be used in conjunction with a forced integration.'),
20
- includeScore: zod_1.default
17
+ includeScore: z
21
18
  .boolean()
22
19
  .default(false)
23
20
  .describe('Determines if Polyglot should evaluate the translation quality and include scores into the callback.'),
24
- context: translationContextSchemas_1.TRANSLATION_CONTEXT_SCHEMA.optional(),
25
- metadata: commonSchemas_1.METADATA_SCHEMA,
26
- contentUnits: zod_1.default
27
- .array(sharedSchemas_1.TRANSLATE_CONTENT_UNIT_SCHEMA)
21
+ context: TRANSLATION_CONTEXT_SCHEMA.optional(),
22
+ metadata: METADATA_SCHEMA,
23
+ contentUnits: z
24
+ .array(TRANSLATE_CONTENT_UNIT_SCHEMA)
28
25
  .nonempty()
29
26
  .max(CONTENT_UNITS_MAX_LENGTH)
30
- .refine(...sharedSchemas_1.refineUniqueIds),
27
+ .refine(...refineUniqueIds),
31
28
  })
32
- .refine(...sharedSchemas_1.refineDifferentSourceAndTargetLang)
33
- .refine(...sharedSchemas_1.refineRequestSizeLimit)
29
+ .refine(...refineDifferentSourceAndTargetLang)
30
+ .refine(...refineRequestSizeLimit)
31
+ .refine(...refineIntegrationIsPresent)
34
32
  .refine((data) => {
35
33
  return !(data.integration && data.pickIntegrationByScore);
36
34
  }, 'Forced integration cannot be specified when "pickIntegrationByScore" is enabled.');
37
- exports.TRANSLATE_ASYNC_HEADERS_SCHEMA = commonSchemas_1.COMMON_REQUEST_HEADERS_SCHEMA;
38
- exports.TRANSLATE_ASYNC_RESPONSE_SCHEMA = zod_1.default
35
+ export const TRANSLATE_ASYNC_HEADERS_SCHEMA = COMMON_REQUEST_HEADERS_SCHEMA;
36
+ export const TRANSLATE_ASYNC_RESPONSE_SCHEMA = z
39
37
  .object({
40
- requestId: zod_1.default.string().uuid(),
41
- expectedAt: zod_1.default.string().datetime(),
38
+ requestId: z.string().uuid(),
39
+ expectedAt: z.string().datetime(),
42
40
  })
43
41
  .describe('Accepted for processing. Await the callback for the results.');
44
- exports.TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA = zod_1.default
42
+ export const TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA = z
45
43
  .object({
46
- originCorrelationId: zod_1.default.string(),
47
- data: zod_1.default.array(zod_1.default.object({
48
- contentUnitId: sharedSchemas_1.CONTENT_ID_PROP_SCHEMA,
49
- segmentId: sharedSchemas_1.CONTENT_ID_PROP_SCHEMA,
50
- polyglotRefId: zod_1.default.string(),
51
- integration: zod_1.default.string(),
52
- translation: zod_1.default.string(),
53
- score: zod_1.default.number().nullable(),
54
- lqaIssues: zod_1.default
55
- .array(zod_1.default.object({
56
- category: zod_1.default.string(),
57
- severity: zod_1.default.nativeEnum(commonSchemas_2.LqaIssueSeverityEnum),
58
- comment: zod_1.default.string().nullable().optional(),
44
+ originCorrelationId: z.string(),
45
+ data: z.array(z.object({
46
+ contentUnitId: CONTENT_ID_PROP_SCHEMA,
47
+ segmentId: CONTENT_ID_PROP_SCHEMA,
48
+ polyglotRefId: z.string(),
49
+ integration: z.string(),
50
+ translation: z.string(),
51
+ score: z.number().nullable(),
52
+ lqaIssues: z
53
+ .array(z.object({
54
+ category: z.string(),
55
+ severity: z.nativeEnum(LqaIssueSeverityEnum),
56
+ comment: z.string().nullable().optional(),
59
57
  }))
60
58
  .nullable()
61
59
  .optional(),
62
- warnings: sharedSchemas_1.SEGMENT_WARNINGS_SCHEMA.optional(),
60
+ warnings: SEGMENT_WARNINGS_SCHEMA.optional(),
63
61
  })),
64
- errors: zod_1.default
65
- .array(commonSchemas_1.COMMON_ERROR_RESPONSE_SCHEMA.extend({
66
- contentUnitId: sharedSchemas_1.CONTENT_ID_PROP_SCHEMA,
67
- segmentId: sharedSchemas_1.CONTENT_ID_PROP_SCHEMA,
68
- polyglotRefId: zod_1.default.string(),
69
- integration: zod_1.default.string(),
62
+ errors: z
63
+ .array(COMMON_ERROR_RESPONSE_SCHEMA.extend({
64
+ contentUnitId: CONTENT_ID_PROP_SCHEMA,
65
+ segmentId: CONTENT_ID_PROP_SCHEMA,
66
+ polyglotRefId: z.string(),
67
+ integration: z.string(),
70
68
  }))
71
69
  .optional(),
72
70
  })
73
71
  .describe('Callback with results.');
74
- exports.TRANSLATE_ASYNC_SUCCESS_SCHEMA = exports.TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA.extend({
75
- status: zod_1.default.literal(asyncRequestSchemas_1.AsyncRequestCallbackStatusEnum.SUCCESS),
72
+ export const TRANSLATE_ASYNC_SUCCESS_SCHEMA = TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA.extend({
73
+ status: z.literal(AsyncRequestCallbackStatusEnum.SUCCESS),
76
74
  });
77
- exports.TRANSLATE_ASYNC_CALLBACK_SCHEMA = zod_1.default
75
+ export const TRANSLATE_ASYNC_CALLBACK_SCHEMA = z
78
76
  .discriminatedUnion('status', [
79
- exports.TRANSLATE_ASYNC_SUCCESS_SCHEMA,
80
- commonSchemas_1.COMMON_FAILED_OPERATION_CALLBACK_SCHEMA,
77
+ TRANSLATE_ASYNC_SUCCESS_SCHEMA,
78
+ COMMON_FAILED_OPERATION_CALLBACK_SCHEMA,
81
79
  ])
82
80
  .describe('Callback with results.');
83
81
  //# sourceMappingURL=translateAsyncSchemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"translateAsyncSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/translation/translateAsyncSchemas.ts"],"names":[],"mappings":";;;;AAAA,sDAAmB;AACnB,uEAAoG;AACpG,2DAOgC;AAChC,mFAAgF;AAChF,wDAA2D;AAC3D,mDAOwB;AAExB,MAAM,wBA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
1
+ {"version":3,"file":"translateAsyncSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/translation/translateAsyncSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAA;AACnB,OAAO,EACL,oBAAoB,EACpB,8BAA8B,GAC/B,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,4BAA4B,EAC5B,uCAAuC,EACvC,6BAA6B,EAC7B,wBAAwB,EACxB,aAAa,EACb,eAAe,EACf,8BAA8B,EAC9B,0BAA0B,GAC3B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAA;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAC9D,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,6BAA6B,EAC7B,kCAAkC,EAClC,sBAAsB,EACtB,eAAe,GAChB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,wBAAwB,GAAG,EAAE,CAAA;AAEnC,MAAM,CAAC,MAAM,2BAA2B,GAAG,oBAAoB,CAAC,MAAM,CAAC;IACrE,YAAY,EAAE,aAAa;IAC3B,YAAY,EAAE,aAAa;IAC3B,WAAW,EAAE,8BAA8B,CAAC,QAAQ,EAAE;IACtD,gBAAgB,EAAE,wBAAwB,CAAC,QAAQ,EAAE;IACrD,sBAAsB,EAAE,CAAC;SACtB,OAAO,EAAE;SACT,OAAO,CAAC,KAAK,CAAC;SACd,QAAQ,CACP,8RAA8R,CAC/R;IACH,YAAY,EAAE,CAAC;SACZ,OAAO,EAAE;SACT,OAAO,CAAC,KAAK,CAAC;SACd,QAAQ,CACP,sGAAsG,CACvG;IACH,OAAO,EAAE,0BAA0B,CAAC,QAAQ,EAAE;IAC9C,QAAQ,EAAE,eAAe;IACzB,YAAY,EAAE,CAAC;SACZ,KAAK,CAAC,6BAA6B,CAAC;SACpC,QAAQ,EAAE;SACV,GAAG,CAAC,wBAAwB,CAAC;SAC7B,MAAM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