@wix/auto_sdk_multilingual_machine-translation 1.0.43 → 1.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -11
- package/build/cjs/schemas.d.ts +0 -677
- package/build/cjs/schemas.js +0 -760
- package/build/cjs/schemas.js.map +0 -1
- package/build/es/schemas.d.mts +0 -677
- package/build/es/schemas.mjs +0 -720
- package/build/es/schemas.mjs.map +0 -1
- package/build/internal/cjs/schemas.d.ts +0 -677
- package/build/internal/cjs/schemas.js +0 -760
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/schemas.d.mts +0 -677
- package/build/internal/es/schemas.mjs +0 -720
- package/build/internal/es/schemas.mjs.map +0 -1
- package/schemas/package.json +0 -3
package/build/cjs/schemas.js
DELETED
|
@@ -1,760 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// schemas.ts
|
|
31
|
-
var schemas_exports = {};
|
|
32
|
-
__export(schemas_exports, {
|
|
33
|
-
BulkMachineTranslateRequest: () => BulkMachineTranslateRequest,
|
|
34
|
-
BulkMachineTranslateResponse: () => BulkMachineTranslateResponse,
|
|
35
|
-
MachineTranslateRequest: () => MachineTranslateRequest,
|
|
36
|
-
MachineTranslateResponse: () => MachineTranslateResponse
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(schemas_exports);
|
|
39
|
-
|
|
40
|
-
// src/multilingual-machine-v3-translatable-content-machine-translation.schemas.ts
|
|
41
|
-
var z = __toESM(require("zod"));
|
|
42
|
-
var MachineTranslateRequest = z.object({
|
|
43
|
-
sourceLanguage: z.enum([
|
|
44
|
-
"AF",
|
|
45
|
-
"SQ",
|
|
46
|
-
"AM",
|
|
47
|
-
"AR",
|
|
48
|
-
"HY",
|
|
49
|
-
"AS",
|
|
50
|
-
"AY",
|
|
51
|
-
"AZ",
|
|
52
|
-
"BM",
|
|
53
|
-
"EU",
|
|
54
|
-
"BE",
|
|
55
|
-
"BN",
|
|
56
|
-
"BHO",
|
|
57
|
-
"BS",
|
|
58
|
-
"BG",
|
|
59
|
-
"CA",
|
|
60
|
-
"CEB",
|
|
61
|
-
"ZH_CN",
|
|
62
|
-
"ZH_TW",
|
|
63
|
-
"ZH",
|
|
64
|
-
"CO",
|
|
65
|
-
"HR",
|
|
66
|
-
"CS",
|
|
67
|
-
"DA",
|
|
68
|
-
"DV",
|
|
69
|
-
"DOI",
|
|
70
|
-
"NL",
|
|
71
|
-
"EN",
|
|
72
|
-
"EO",
|
|
73
|
-
"ET",
|
|
74
|
-
"EE",
|
|
75
|
-
"FIL",
|
|
76
|
-
"FI",
|
|
77
|
-
"FR",
|
|
78
|
-
"FY",
|
|
79
|
-
"GL",
|
|
80
|
-
"KA",
|
|
81
|
-
"DE",
|
|
82
|
-
"EL",
|
|
83
|
-
"GN",
|
|
84
|
-
"GU",
|
|
85
|
-
"HT",
|
|
86
|
-
"HA",
|
|
87
|
-
"HAW",
|
|
88
|
-
"HE",
|
|
89
|
-
"HI",
|
|
90
|
-
"HMN",
|
|
91
|
-
"HU",
|
|
92
|
-
"IS",
|
|
93
|
-
"IG",
|
|
94
|
-
"ILO",
|
|
95
|
-
"ID",
|
|
96
|
-
"GA",
|
|
97
|
-
"IT",
|
|
98
|
-
"JA",
|
|
99
|
-
"JW",
|
|
100
|
-
"KN",
|
|
101
|
-
"KK",
|
|
102
|
-
"KM",
|
|
103
|
-
"RW",
|
|
104
|
-
"GOM",
|
|
105
|
-
"KO",
|
|
106
|
-
"KRI",
|
|
107
|
-
"KU",
|
|
108
|
-
"CKB",
|
|
109
|
-
"KY",
|
|
110
|
-
"LO",
|
|
111
|
-
"LA",
|
|
112
|
-
"LV",
|
|
113
|
-
"LN",
|
|
114
|
-
"LT",
|
|
115
|
-
"LG",
|
|
116
|
-
"LB",
|
|
117
|
-
"MK",
|
|
118
|
-
"MAI",
|
|
119
|
-
"MG",
|
|
120
|
-
"MS",
|
|
121
|
-
"ML",
|
|
122
|
-
"MT",
|
|
123
|
-
"MI",
|
|
124
|
-
"MR",
|
|
125
|
-
"MNI_MTEI",
|
|
126
|
-
"LUS",
|
|
127
|
-
"MN",
|
|
128
|
-
"MY",
|
|
129
|
-
"NE",
|
|
130
|
-
"NO",
|
|
131
|
-
"NY",
|
|
132
|
-
"OR",
|
|
133
|
-
"OM",
|
|
134
|
-
"PS",
|
|
135
|
-
"FA",
|
|
136
|
-
"PL",
|
|
137
|
-
"PT",
|
|
138
|
-
"PA",
|
|
139
|
-
"QU",
|
|
140
|
-
"RO",
|
|
141
|
-
"RU",
|
|
142
|
-
"SM",
|
|
143
|
-
"SA",
|
|
144
|
-
"GD",
|
|
145
|
-
"NSO",
|
|
146
|
-
"SR",
|
|
147
|
-
"ST",
|
|
148
|
-
"SN",
|
|
149
|
-
"SD",
|
|
150
|
-
"SI",
|
|
151
|
-
"SK",
|
|
152
|
-
"SL",
|
|
153
|
-
"SO",
|
|
154
|
-
"ES",
|
|
155
|
-
"SU",
|
|
156
|
-
"SW",
|
|
157
|
-
"SV",
|
|
158
|
-
"TL",
|
|
159
|
-
"TG",
|
|
160
|
-
"TA",
|
|
161
|
-
"TT",
|
|
162
|
-
"TE",
|
|
163
|
-
"TH",
|
|
164
|
-
"TI",
|
|
165
|
-
"TS",
|
|
166
|
-
"TR",
|
|
167
|
-
"TK",
|
|
168
|
-
"AK",
|
|
169
|
-
"UK",
|
|
170
|
-
"UR",
|
|
171
|
-
"UG",
|
|
172
|
-
"UZ",
|
|
173
|
-
"VI",
|
|
174
|
-
"CY",
|
|
175
|
-
"XH",
|
|
176
|
-
"YI",
|
|
177
|
-
"YO",
|
|
178
|
-
"ZU"
|
|
179
|
-
]),
|
|
180
|
-
options: z.object({
|
|
181
|
-
targetLanguage: z.enum([
|
|
182
|
-
"AF",
|
|
183
|
-
"SQ",
|
|
184
|
-
"AM",
|
|
185
|
-
"AR",
|
|
186
|
-
"HY",
|
|
187
|
-
"AS",
|
|
188
|
-
"AY",
|
|
189
|
-
"AZ",
|
|
190
|
-
"BM",
|
|
191
|
-
"EU",
|
|
192
|
-
"BE",
|
|
193
|
-
"BN",
|
|
194
|
-
"BHO",
|
|
195
|
-
"BS",
|
|
196
|
-
"BG",
|
|
197
|
-
"CA",
|
|
198
|
-
"CEB",
|
|
199
|
-
"ZH_CN",
|
|
200
|
-
"ZH_TW",
|
|
201
|
-
"ZH",
|
|
202
|
-
"CO",
|
|
203
|
-
"HR",
|
|
204
|
-
"CS",
|
|
205
|
-
"DA",
|
|
206
|
-
"DV",
|
|
207
|
-
"DOI",
|
|
208
|
-
"NL",
|
|
209
|
-
"EN",
|
|
210
|
-
"EO",
|
|
211
|
-
"ET",
|
|
212
|
-
"EE",
|
|
213
|
-
"FIL",
|
|
214
|
-
"FI",
|
|
215
|
-
"FR",
|
|
216
|
-
"FY",
|
|
217
|
-
"GL",
|
|
218
|
-
"KA",
|
|
219
|
-
"DE",
|
|
220
|
-
"EL",
|
|
221
|
-
"GN",
|
|
222
|
-
"GU",
|
|
223
|
-
"HT",
|
|
224
|
-
"HA",
|
|
225
|
-
"HAW",
|
|
226
|
-
"HE",
|
|
227
|
-
"HI",
|
|
228
|
-
"HMN",
|
|
229
|
-
"HU",
|
|
230
|
-
"IS",
|
|
231
|
-
"IG",
|
|
232
|
-
"ILO",
|
|
233
|
-
"ID",
|
|
234
|
-
"GA",
|
|
235
|
-
"IT",
|
|
236
|
-
"JA",
|
|
237
|
-
"JW",
|
|
238
|
-
"KN",
|
|
239
|
-
"KK",
|
|
240
|
-
"KM",
|
|
241
|
-
"RW",
|
|
242
|
-
"GOM",
|
|
243
|
-
"KO",
|
|
244
|
-
"KRI",
|
|
245
|
-
"KU",
|
|
246
|
-
"CKB",
|
|
247
|
-
"KY",
|
|
248
|
-
"LO",
|
|
249
|
-
"LA",
|
|
250
|
-
"LV",
|
|
251
|
-
"LN",
|
|
252
|
-
"LT",
|
|
253
|
-
"LG",
|
|
254
|
-
"LB",
|
|
255
|
-
"MK",
|
|
256
|
-
"MAI",
|
|
257
|
-
"MG",
|
|
258
|
-
"MS",
|
|
259
|
-
"ML",
|
|
260
|
-
"MT",
|
|
261
|
-
"MI",
|
|
262
|
-
"MR",
|
|
263
|
-
"MNI_MTEI",
|
|
264
|
-
"LUS",
|
|
265
|
-
"MN",
|
|
266
|
-
"MY",
|
|
267
|
-
"NE",
|
|
268
|
-
"NO",
|
|
269
|
-
"NY",
|
|
270
|
-
"OR",
|
|
271
|
-
"OM",
|
|
272
|
-
"PS",
|
|
273
|
-
"FA",
|
|
274
|
-
"PL",
|
|
275
|
-
"PT",
|
|
276
|
-
"PA",
|
|
277
|
-
"QU",
|
|
278
|
-
"RO",
|
|
279
|
-
"RU",
|
|
280
|
-
"SM",
|
|
281
|
-
"SA",
|
|
282
|
-
"GD",
|
|
283
|
-
"NSO",
|
|
284
|
-
"SR",
|
|
285
|
-
"ST",
|
|
286
|
-
"SN",
|
|
287
|
-
"SD",
|
|
288
|
-
"SI",
|
|
289
|
-
"SK",
|
|
290
|
-
"SL",
|
|
291
|
-
"SO",
|
|
292
|
-
"ES",
|
|
293
|
-
"SU",
|
|
294
|
-
"SW",
|
|
295
|
-
"SV",
|
|
296
|
-
"TL",
|
|
297
|
-
"TG",
|
|
298
|
-
"TA",
|
|
299
|
-
"TT",
|
|
300
|
-
"TE",
|
|
301
|
-
"TH",
|
|
302
|
-
"TI",
|
|
303
|
-
"TS",
|
|
304
|
-
"TR",
|
|
305
|
-
"TK",
|
|
306
|
-
"AK",
|
|
307
|
-
"UK",
|
|
308
|
-
"UR",
|
|
309
|
-
"UG",
|
|
310
|
-
"UZ",
|
|
311
|
-
"VI",
|
|
312
|
-
"CY",
|
|
313
|
-
"XH",
|
|
314
|
-
"YI",
|
|
315
|
-
"YO",
|
|
316
|
-
"ZU"
|
|
317
|
-
]),
|
|
318
|
-
contentToTranslate: z.intersection(
|
|
319
|
-
z.object({
|
|
320
|
-
_id: z.string().describe(
|
|
321
|
-
"Translatable content ID. The ID should be unique to this content and doesn't need to match the ID used by any other service."
|
|
322
|
-
).max(512).optional().nullable(),
|
|
323
|
-
format: z.enum(["PLAIN_TEXT", "HTML", "RICH"]).optional()
|
|
324
|
-
}),
|
|
325
|
-
z.xor([
|
|
326
|
-
z.object({
|
|
327
|
-
plainTextContent: z.never().optional(),
|
|
328
|
-
htmlContent: z.never().optional(),
|
|
329
|
-
richContent: z.never().optional()
|
|
330
|
-
}),
|
|
331
|
-
z.object({
|
|
332
|
-
htmlContent: z.never().optional(),
|
|
333
|
-
richContent: z.never().optional(),
|
|
334
|
-
plainTextContent: z.string().describe("Plain text.").min(1).max(1e4)
|
|
335
|
-
}),
|
|
336
|
-
z.object({
|
|
337
|
-
plainTextContent: z.never().optional(),
|
|
338
|
-
richContent: z.never().optional(),
|
|
339
|
-
htmlContent: z.string().describe("HTML-encoded.").min(1).max(1e4)
|
|
340
|
-
}),
|
|
341
|
-
z.object({
|
|
342
|
-
plainTextContent: z.never().optional(),
|
|
343
|
-
htmlContent: z.never().optional(),
|
|
344
|
-
richContent: z.any().describe("Rich content.")
|
|
345
|
-
})
|
|
346
|
-
])
|
|
347
|
-
).describe("The content to translate.")
|
|
348
|
-
})
|
|
349
|
-
});
|
|
350
|
-
var MachineTranslateResponse = z.object({
|
|
351
|
-
translatedContent: z.intersection(
|
|
352
|
-
z.object({
|
|
353
|
-
_id: z.string().describe(
|
|
354
|
-
"Translatable content ID. The ID should be unique to this content and doesn't need to match the ID used by any other service."
|
|
355
|
-
).max(512).optional().nullable(),
|
|
356
|
-
format: z.enum(["PLAIN_TEXT", "HTML", "RICH"]).describe("Format of the translatable content.").optional()
|
|
357
|
-
}),
|
|
358
|
-
z.xor([
|
|
359
|
-
z.object({
|
|
360
|
-
plainTextContent: z.never().optional(),
|
|
361
|
-
htmlContent: z.never().optional(),
|
|
362
|
-
richContent: z.never().optional()
|
|
363
|
-
}),
|
|
364
|
-
z.object({
|
|
365
|
-
htmlContent: z.never().optional(),
|
|
366
|
-
richContent: z.never().optional(),
|
|
367
|
-
plainTextContent: z.string().describe("Plain text.").min(1).max(1e4)
|
|
368
|
-
}),
|
|
369
|
-
z.object({
|
|
370
|
-
plainTextContent: z.never().optional(),
|
|
371
|
-
richContent: z.never().optional(),
|
|
372
|
-
htmlContent: z.string().describe("HTML-encoded.").min(1).max(1e4)
|
|
373
|
-
}),
|
|
374
|
-
z.object({
|
|
375
|
-
plainTextContent: z.never().optional(),
|
|
376
|
-
htmlContent: z.never().optional(),
|
|
377
|
-
richContent: z.any().describe("Rich content.")
|
|
378
|
-
})
|
|
379
|
-
])
|
|
380
|
-
).describe("The translated content.").optional()
|
|
381
|
-
});
|
|
382
|
-
var BulkMachineTranslateRequest = z.object({
|
|
383
|
-
sourceLanguage: z.enum([
|
|
384
|
-
"AF",
|
|
385
|
-
"SQ",
|
|
386
|
-
"AM",
|
|
387
|
-
"AR",
|
|
388
|
-
"HY",
|
|
389
|
-
"AS",
|
|
390
|
-
"AY",
|
|
391
|
-
"AZ",
|
|
392
|
-
"BM",
|
|
393
|
-
"EU",
|
|
394
|
-
"BE",
|
|
395
|
-
"BN",
|
|
396
|
-
"BHO",
|
|
397
|
-
"BS",
|
|
398
|
-
"BG",
|
|
399
|
-
"CA",
|
|
400
|
-
"CEB",
|
|
401
|
-
"ZH_CN",
|
|
402
|
-
"ZH_TW",
|
|
403
|
-
"ZH",
|
|
404
|
-
"CO",
|
|
405
|
-
"HR",
|
|
406
|
-
"CS",
|
|
407
|
-
"DA",
|
|
408
|
-
"DV",
|
|
409
|
-
"DOI",
|
|
410
|
-
"NL",
|
|
411
|
-
"EN",
|
|
412
|
-
"EO",
|
|
413
|
-
"ET",
|
|
414
|
-
"EE",
|
|
415
|
-
"FIL",
|
|
416
|
-
"FI",
|
|
417
|
-
"FR",
|
|
418
|
-
"FY",
|
|
419
|
-
"GL",
|
|
420
|
-
"KA",
|
|
421
|
-
"DE",
|
|
422
|
-
"EL",
|
|
423
|
-
"GN",
|
|
424
|
-
"GU",
|
|
425
|
-
"HT",
|
|
426
|
-
"HA",
|
|
427
|
-
"HAW",
|
|
428
|
-
"HE",
|
|
429
|
-
"HI",
|
|
430
|
-
"HMN",
|
|
431
|
-
"HU",
|
|
432
|
-
"IS",
|
|
433
|
-
"IG",
|
|
434
|
-
"ILO",
|
|
435
|
-
"ID",
|
|
436
|
-
"GA",
|
|
437
|
-
"IT",
|
|
438
|
-
"JA",
|
|
439
|
-
"JW",
|
|
440
|
-
"KN",
|
|
441
|
-
"KK",
|
|
442
|
-
"KM",
|
|
443
|
-
"RW",
|
|
444
|
-
"GOM",
|
|
445
|
-
"KO",
|
|
446
|
-
"KRI",
|
|
447
|
-
"KU",
|
|
448
|
-
"CKB",
|
|
449
|
-
"KY",
|
|
450
|
-
"LO",
|
|
451
|
-
"LA",
|
|
452
|
-
"LV",
|
|
453
|
-
"LN",
|
|
454
|
-
"LT",
|
|
455
|
-
"LG",
|
|
456
|
-
"LB",
|
|
457
|
-
"MK",
|
|
458
|
-
"MAI",
|
|
459
|
-
"MG",
|
|
460
|
-
"MS",
|
|
461
|
-
"ML",
|
|
462
|
-
"MT",
|
|
463
|
-
"MI",
|
|
464
|
-
"MR",
|
|
465
|
-
"MNI_MTEI",
|
|
466
|
-
"LUS",
|
|
467
|
-
"MN",
|
|
468
|
-
"MY",
|
|
469
|
-
"NE",
|
|
470
|
-
"NO",
|
|
471
|
-
"NY",
|
|
472
|
-
"OR",
|
|
473
|
-
"OM",
|
|
474
|
-
"PS",
|
|
475
|
-
"FA",
|
|
476
|
-
"PL",
|
|
477
|
-
"PT",
|
|
478
|
-
"PA",
|
|
479
|
-
"QU",
|
|
480
|
-
"RO",
|
|
481
|
-
"RU",
|
|
482
|
-
"SM",
|
|
483
|
-
"SA",
|
|
484
|
-
"GD",
|
|
485
|
-
"NSO",
|
|
486
|
-
"SR",
|
|
487
|
-
"ST",
|
|
488
|
-
"SN",
|
|
489
|
-
"SD",
|
|
490
|
-
"SI",
|
|
491
|
-
"SK",
|
|
492
|
-
"SL",
|
|
493
|
-
"SO",
|
|
494
|
-
"ES",
|
|
495
|
-
"SU",
|
|
496
|
-
"SW",
|
|
497
|
-
"SV",
|
|
498
|
-
"TL",
|
|
499
|
-
"TG",
|
|
500
|
-
"TA",
|
|
501
|
-
"TT",
|
|
502
|
-
"TE",
|
|
503
|
-
"TH",
|
|
504
|
-
"TI",
|
|
505
|
-
"TS",
|
|
506
|
-
"TR",
|
|
507
|
-
"TK",
|
|
508
|
-
"AK",
|
|
509
|
-
"UK",
|
|
510
|
-
"UR",
|
|
511
|
-
"UG",
|
|
512
|
-
"UZ",
|
|
513
|
-
"VI",
|
|
514
|
-
"CY",
|
|
515
|
-
"XH",
|
|
516
|
-
"YI",
|
|
517
|
-
"YO",
|
|
518
|
-
"ZU"
|
|
519
|
-
]),
|
|
520
|
-
options: z.object({
|
|
521
|
-
targetLanguage: z.enum([
|
|
522
|
-
"AF",
|
|
523
|
-
"SQ",
|
|
524
|
-
"AM",
|
|
525
|
-
"AR",
|
|
526
|
-
"HY",
|
|
527
|
-
"AS",
|
|
528
|
-
"AY",
|
|
529
|
-
"AZ",
|
|
530
|
-
"BM",
|
|
531
|
-
"EU",
|
|
532
|
-
"BE",
|
|
533
|
-
"BN",
|
|
534
|
-
"BHO",
|
|
535
|
-
"BS",
|
|
536
|
-
"BG",
|
|
537
|
-
"CA",
|
|
538
|
-
"CEB",
|
|
539
|
-
"ZH_CN",
|
|
540
|
-
"ZH_TW",
|
|
541
|
-
"ZH",
|
|
542
|
-
"CO",
|
|
543
|
-
"HR",
|
|
544
|
-
"CS",
|
|
545
|
-
"DA",
|
|
546
|
-
"DV",
|
|
547
|
-
"DOI",
|
|
548
|
-
"NL",
|
|
549
|
-
"EN",
|
|
550
|
-
"EO",
|
|
551
|
-
"ET",
|
|
552
|
-
"EE",
|
|
553
|
-
"FIL",
|
|
554
|
-
"FI",
|
|
555
|
-
"FR",
|
|
556
|
-
"FY",
|
|
557
|
-
"GL",
|
|
558
|
-
"KA",
|
|
559
|
-
"DE",
|
|
560
|
-
"EL",
|
|
561
|
-
"GN",
|
|
562
|
-
"GU",
|
|
563
|
-
"HT",
|
|
564
|
-
"HA",
|
|
565
|
-
"HAW",
|
|
566
|
-
"HE",
|
|
567
|
-
"HI",
|
|
568
|
-
"HMN",
|
|
569
|
-
"HU",
|
|
570
|
-
"IS",
|
|
571
|
-
"IG",
|
|
572
|
-
"ILO",
|
|
573
|
-
"ID",
|
|
574
|
-
"GA",
|
|
575
|
-
"IT",
|
|
576
|
-
"JA",
|
|
577
|
-
"JW",
|
|
578
|
-
"KN",
|
|
579
|
-
"KK",
|
|
580
|
-
"KM",
|
|
581
|
-
"RW",
|
|
582
|
-
"GOM",
|
|
583
|
-
"KO",
|
|
584
|
-
"KRI",
|
|
585
|
-
"KU",
|
|
586
|
-
"CKB",
|
|
587
|
-
"KY",
|
|
588
|
-
"LO",
|
|
589
|
-
"LA",
|
|
590
|
-
"LV",
|
|
591
|
-
"LN",
|
|
592
|
-
"LT",
|
|
593
|
-
"LG",
|
|
594
|
-
"LB",
|
|
595
|
-
"MK",
|
|
596
|
-
"MAI",
|
|
597
|
-
"MG",
|
|
598
|
-
"MS",
|
|
599
|
-
"ML",
|
|
600
|
-
"MT",
|
|
601
|
-
"MI",
|
|
602
|
-
"MR",
|
|
603
|
-
"MNI_MTEI",
|
|
604
|
-
"LUS",
|
|
605
|
-
"MN",
|
|
606
|
-
"MY",
|
|
607
|
-
"NE",
|
|
608
|
-
"NO",
|
|
609
|
-
"NY",
|
|
610
|
-
"OR",
|
|
611
|
-
"OM",
|
|
612
|
-
"PS",
|
|
613
|
-
"FA",
|
|
614
|
-
"PL",
|
|
615
|
-
"PT",
|
|
616
|
-
"PA",
|
|
617
|
-
"QU",
|
|
618
|
-
"RO",
|
|
619
|
-
"RU",
|
|
620
|
-
"SM",
|
|
621
|
-
"SA",
|
|
622
|
-
"GD",
|
|
623
|
-
"NSO",
|
|
624
|
-
"SR",
|
|
625
|
-
"ST",
|
|
626
|
-
"SN",
|
|
627
|
-
"SD",
|
|
628
|
-
"SI",
|
|
629
|
-
"SK",
|
|
630
|
-
"SL",
|
|
631
|
-
"SO",
|
|
632
|
-
"ES",
|
|
633
|
-
"SU",
|
|
634
|
-
"SW",
|
|
635
|
-
"SV",
|
|
636
|
-
"TL",
|
|
637
|
-
"TG",
|
|
638
|
-
"TA",
|
|
639
|
-
"TT",
|
|
640
|
-
"TE",
|
|
641
|
-
"TH",
|
|
642
|
-
"TI",
|
|
643
|
-
"TS",
|
|
644
|
-
"TR",
|
|
645
|
-
"TK",
|
|
646
|
-
"AK",
|
|
647
|
-
"UK",
|
|
648
|
-
"UR",
|
|
649
|
-
"UG",
|
|
650
|
-
"UZ",
|
|
651
|
-
"VI",
|
|
652
|
-
"CY",
|
|
653
|
-
"XH",
|
|
654
|
-
"YI",
|
|
655
|
-
"YO",
|
|
656
|
-
"ZU"
|
|
657
|
-
]),
|
|
658
|
-
contentToTranslate: z.array(
|
|
659
|
-
z.intersection(
|
|
660
|
-
z.object({
|
|
661
|
-
_id: z.string().describe(
|
|
662
|
-
"Translatable content ID. The ID should be unique to this content and doesn't need to match the ID used by any other service."
|
|
663
|
-
).max(512).optional().nullable(),
|
|
664
|
-
format: z.enum(["PLAIN_TEXT", "HTML", "RICH"]).optional()
|
|
665
|
-
}),
|
|
666
|
-
z.xor([
|
|
667
|
-
z.object({
|
|
668
|
-
plainTextContent: z.never().optional(),
|
|
669
|
-
htmlContent: z.never().optional(),
|
|
670
|
-
richContent: z.never().optional()
|
|
671
|
-
}),
|
|
672
|
-
z.object({
|
|
673
|
-
htmlContent: z.never().optional(),
|
|
674
|
-
richContent: z.never().optional(),
|
|
675
|
-
plainTextContent: z.string().describe("Plain text.").min(1).max(1e4)
|
|
676
|
-
}),
|
|
677
|
-
z.object({
|
|
678
|
-
plainTextContent: z.never().optional(),
|
|
679
|
-
richContent: z.never().optional(),
|
|
680
|
-
htmlContent: z.string().describe("HTML-encoded.").min(1).max(1e4)
|
|
681
|
-
}),
|
|
682
|
-
z.object({
|
|
683
|
-
plainTextContent: z.never().optional(),
|
|
684
|
-
htmlContent: z.never().optional(),
|
|
685
|
-
richContent: z.any().describe("Rich content.")
|
|
686
|
-
})
|
|
687
|
-
])
|
|
688
|
-
)
|
|
689
|
-
).min(1).max(1e3).optional()
|
|
690
|
-
})
|
|
691
|
-
});
|
|
692
|
-
var BulkMachineTranslateResponse = z.object({
|
|
693
|
-
results: z.array(
|
|
694
|
-
z.object({
|
|
695
|
-
itemMetadata: z.object({
|
|
696
|
-
_id: z.string().describe(
|
|
697
|
-
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
698
|
-
).optional().nullable(),
|
|
699
|
-
originalIndex: z.number().int().describe(
|
|
700
|
-
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
701
|
-
).optional(),
|
|
702
|
-
success: z.boolean().describe(
|
|
703
|
-
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
704
|
-
).optional(),
|
|
705
|
-
error: z.object({
|
|
706
|
-
code: z.string().describe("Error code.").optional(),
|
|
707
|
-
description: z.string().describe("Description of the error.").optional(),
|
|
708
|
-
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
709
|
-
}).describe("Details about the error in case of failure.").optional()
|
|
710
|
-
}).describe("Metadata for the individual item in the request.").optional(),
|
|
711
|
-
item: z.intersection(
|
|
712
|
-
z.object({
|
|
713
|
-
_id: z.string().describe(
|
|
714
|
-
"Translatable content ID. The ID should be unique to this content and doesn't need to match the ID used by any other service."
|
|
715
|
-
).max(512).optional().nullable(),
|
|
716
|
-
format: z.enum(["PLAIN_TEXT", "HTML", "RICH"]).describe("Format of the translatable content.").optional()
|
|
717
|
-
}),
|
|
718
|
-
z.xor([
|
|
719
|
-
z.object({
|
|
720
|
-
plainTextContent: z.never().optional(),
|
|
721
|
-
htmlContent: z.never().optional(),
|
|
722
|
-
richContent: z.never().optional()
|
|
723
|
-
}),
|
|
724
|
-
z.object({
|
|
725
|
-
htmlContent: z.never().optional(),
|
|
726
|
-
richContent: z.never().optional(),
|
|
727
|
-
plainTextContent: z.string().describe("Plain text.").min(1).max(1e4)
|
|
728
|
-
}),
|
|
729
|
-
z.object({
|
|
730
|
-
plainTextContent: z.never().optional(),
|
|
731
|
-
richContent: z.never().optional(),
|
|
732
|
-
htmlContent: z.string().describe("HTML-encoded.").min(1).max(1e4)
|
|
733
|
-
}),
|
|
734
|
-
z.object({
|
|
735
|
-
plainTextContent: z.never().optional(),
|
|
736
|
-
htmlContent: z.never().optional(),
|
|
737
|
-
richContent: z.any().describe("Rich content.")
|
|
738
|
-
})
|
|
739
|
-
])
|
|
740
|
-
).describe("The translated content.").optional()
|
|
741
|
-
})
|
|
742
|
-
).min(1).max(1e3).optional(),
|
|
743
|
-
bulkActionMetadata: z.object({
|
|
744
|
-
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
745
|
-
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
746
|
-
undetailedFailures: z.number().int().describe(
|
|
747
|
-
"Number of failures without details because detailed failure threshold was exceeded."
|
|
748
|
-
).optional()
|
|
749
|
-
}).describe(
|
|
750
|
-
"Metadata for the overall bulk action, including success and failure counts."
|
|
751
|
-
).optional()
|
|
752
|
-
});
|
|
753
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
754
|
-
0 && (module.exports = {
|
|
755
|
-
BulkMachineTranslateRequest,
|
|
756
|
-
BulkMachineTranslateResponse,
|
|
757
|
-
MachineTranslateRequest,
|
|
758
|
-
MachineTranslateResponse
|
|
759
|
-
});
|
|
760
|
-
//# sourceMappingURL=schemas.js.map
|