@lokalise/content-conversion-schemas 5.4.0 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/common.d.ts +3 -0
- package/dist/api/common.d.ts.map +1 -0
- package/dist/api/common.js +3 -0
- package/dist/api/common.js.map +1 -0
- package/dist/api/contentObjects.d.ts +100 -88
- package/dist/api/contentObjects.d.ts.map +1 -1
- package/dist/api/contentObjects.js +1 -45
- package/dist/api/contentObjects.js.map +1 -1
- package/dist/api/contentObjectsNew.d.ts +250 -5
- package/dist/api/contentObjectsNew.d.ts.map +1 -1
- package/dist/api/contentObjectsNew.js +1 -1
- package/dist/api/contentObjectsNew.js.map +1 -1
- package/dist/api/exportObjects.d.ts +2 -2
- package/dist/api/exportObjects.d.ts.map +1 -1
- package/dist/api/exportObjects.js +3 -2
- package/dist/api/exportObjects.js.map +1 -1
- package/dist/api/generationObjects.d.ts +837 -4
- package/dist/api/generationObjects.d.ts.map +1 -1
- package/dist/api/generationObjects.js +30 -1
- package/dist/api/generationObjects.js.map +1 -1
- package/dist/api/textUnit.d.ts +202 -0
- package/dist/api/textUnit.d.ts.map +1 -0
- package/dist/api/textUnit.js +54 -0
- package/dist/api/textUnit.js.map +1 -0
- package/dist/api/textUnitMetadata.d.ts +1 -0
- package/dist/api/textUnitMetadata.d.ts.map +1 -1
- package/dist/api/translationObjects.d.ts +1 -1
- package/dist/api/xcstings.d.ts +1 -0
- package/dist/api/xcstings.d.ts.map +1 -1
- package/dist/api/xcstings.js +1 -0
- package/dist/api/xcstings.js.map +1 -1
- package/dist/events/conversion.d.ts +1690 -47
- package/dist/events/conversion.d.ts.map +1 -1
- package/dist/events/conversion.js +20 -1
- package/dist/events/conversion.js.map +1 -1
- package/dist/events/export.d.ts.map +1 -1
- package/dist/events/export.js +2 -1
- package/dist/events/export.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ export declare const RECONSTRUCTABLE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
19
19
|
context: z.ZodOptional<z.ZodString>;
|
|
20
20
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
21
21
|
sourceLanguage: z.ZodObject<{
|
|
22
|
-
id: z.
|
|
22
|
+
id: z.ZodString;
|
|
23
23
|
locale: z.ZodString;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
25
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -27,7 +27,6 @@ export declare const RECONSTRUCTABLE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
27
27
|
textUnits: z.ZodArray<z.ZodObject<{
|
|
28
28
|
id: z.ZodString;
|
|
29
29
|
name: z.ZodOptional<z.ZodString>;
|
|
30
|
-
locale: z.ZodOptional<z.ZodString>;
|
|
31
30
|
isTranslatable: z.ZodBoolean;
|
|
32
31
|
source: z.ZodObject<{
|
|
33
32
|
textCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -44,6 +43,55 @@ export declare const RECONSTRUCTABLE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
44
43
|
hasBeenSegmented: z.ZodBoolean;
|
|
45
44
|
segments: z.ZodArray<z.ZodString>;
|
|
46
45
|
}, z.core.$strip>;
|
|
46
|
+
targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
47
|
+
hasBeenSegmented: z.ZodBoolean;
|
|
48
|
+
segments: z.ZodArray<z.ZodString>;
|
|
49
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
50
|
+
pptxAttributes: z.ZodOptional<z.ZodObject<{
|
|
51
|
+
slideNumber: z.ZodNumber;
|
|
52
|
+
slideType: z.ZodEnum<{
|
|
53
|
+
readonly LAYOUT: "LAYOUT";
|
|
54
|
+
readonly NOTES: "NOTES";
|
|
55
|
+
readonly MASTER_NOTES: "MASTER_NOTES";
|
|
56
|
+
readonly SLIDE: "SLIDE";
|
|
57
|
+
readonly MASTER_SLIDE: "MASTER_SLIDE";
|
|
58
|
+
readonly CHART: "CHART";
|
|
59
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
60
|
+
}>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
xcstrings: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
state: z.ZodOptional<z.ZodString>;
|
|
64
|
+
shouldTranslate: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
extractionState: z.ZodOptional<z.ZodString>;
|
|
66
|
+
localizationType: z.ZodEnum<{
|
|
67
|
+
readonly STRING_UNIT: "STRING_UNIT";
|
|
68
|
+
readonly SUBSTITUTIONS: "SUBSTITUTIONS";
|
|
69
|
+
readonly PLURAL_VARIATION: "PLURAL_VARIATION";
|
|
70
|
+
readonly DEVICE_VARIATION: "DEVICE_VARIATION";
|
|
71
|
+
readonly DEVICE_PLURAL_VARIATION: "DEVICE_PLURAL_VARIATION";
|
|
72
|
+
}>;
|
|
73
|
+
keyPath: z.ZodString;
|
|
74
|
+
device: z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
readonly MAC: "MAC";
|
|
76
|
+
readonly IPHONE: "IPHONE";
|
|
77
|
+
readonly APPLE_WATCH: "APPLE_WATCH";
|
|
78
|
+
readonly IPAD: "IPAD";
|
|
79
|
+
readonly OTHER: "OTHER";
|
|
80
|
+
}>>;
|
|
81
|
+
pluralForm: z.ZodOptional<z.ZodEnum<{
|
|
82
|
+
readonly ZERO: "ZERO";
|
|
83
|
+
readonly ONE: "ONE";
|
|
84
|
+
readonly TWO: "TWO";
|
|
85
|
+
readonly FEW: "FEW";
|
|
86
|
+
readonly MANY: "MANY";
|
|
87
|
+
readonly OTHER: "OTHER";
|
|
88
|
+
}>>;
|
|
89
|
+
formatSpecifier: z.ZodOptional<z.ZodString>;
|
|
90
|
+
argNum: z.ZodOptional<z.ZodNumber>;
|
|
91
|
+
isPlural: z.ZodBoolean;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
}, z.core.$strip>>>;
|
|
47
95
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
48
96
|
pptxAttributes: z.ZodOptional<z.ZodObject<{
|
|
49
97
|
slideNumber: z.ZodNumber;
|
|
@@ -59,6 +107,7 @@ export declare const RECONSTRUCTABLE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
59
107
|
}, z.core.$strip>>;
|
|
60
108
|
xcstrings: z.ZodOptional<z.ZodObject<{
|
|
61
109
|
state: z.ZodOptional<z.ZodString>;
|
|
110
|
+
shouldTranslate: z.ZodOptional<z.ZodBoolean>;
|
|
62
111
|
extractionState: z.ZodOptional<z.ZodString>;
|
|
63
112
|
localizationType: z.ZodEnum<{
|
|
64
113
|
readonly STRING_UNIT: "STRING_UNIT";
|
|
@@ -123,7 +172,7 @@ export declare const RECONSTRUCTABLE_ITEM: z.ZodObject<{
|
|
|
123
172
|
context: z.ZodOptional<z.ZodString>;
|
|
124
173
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
125
174
|
sourceLanguage: z.ZodObject<{
|
|
126
|
-
id: z.
|
|
175
|
+
id: z.ZodString;
|
|
127
176
|
locale: z.ZodString;
|
|
128
177
|
}, z.core.$strip>;
|
|
129
178
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -131,7 +180,6 @@ export declare const RECONSTRUCTABLE_ITEM: z.ZodObject<{
|
|
|
131
180
|
textUnits: z.ZodArray<z.ZodObject<{
|
|
132
181
|
id: z.ZodString;
|
|
133
182
|
name: z.ZodOptional<z.ZodString>;
|
|
134
|
-
locale: z.ZodOptional<z.ZodString>;
|
|
135
183
|
isTranslatable: z.ZodBoolean;
|
|
136
184
|
source: z.ZodObject<{
|
|
137
185
|
textCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -148,6 +196,55 @@ export declare const RECONSTRUCTABLE_ITEM: z.ZodObject<{
|
|
|
148
196
|
hasBeenSegmented: z.ZodBoolean;
|
|
149
197
|
segments: z.ZodArray<z.ZodString>;
|
|
150
198
|
}, z.core.$strip>;
|
|
199
|
+
targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
200
|
+
hasBeenSegmented: z.ZodBoolean;
|
|
201
|
+
segments: z.ZodArray<z.ZodString>;
|
|
202
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
203
|
+
pptxAttributes: z.ZodOptional<z.ZodObject<{
|
|
204
|
+
slideNumber: z.ZodNumber;
|
|
205
|
+
slideType: z.ZodEnum<{
|
|
206
|
+
readonly LAYOUT: "LAYOUT";
|
|
207
|
+
readonly NOTES: "NOTES";
|
|
208
|
+
readonly MASTER_NOTES: "MASTER_NOTES";
|
|
209
|
+
readonly SLIDE: "SLIDE";
|
|
210
|
+
readonly MASTER_SLIDE: "MASTER_SLIDE";
|
|
211
|
+
readonly CHART: "CHART";
|
|
212
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
213
|
+
}>;
|
|
214
|
+
}, z.core.$strip>>;
|
|
215
|
+
xcstrings: z.ZodOptional<z.ZodObject<{
|
|
216
|
+
state: z.ZodOptional<z.ZodString>;
|
|
217
|
+
shouldTranslate: z.ZodOptional<z.ZodBoolean>;
|
|
218
|
+
extractionState: z.ZodOptional<z.ZodString>;
|
|
219
|
+
localizationType: z.ZodEnum<{
|
|
220
|
+
readonly STRING_UNIT: "STRING_UNIT";
|
|
221
|
+
readonly SUBSTITUTIONS: "SUBSTITUTIONS";
|
|
222
|
+
readonly PLURAL_VARIATION: "PLURAL_VARIATION";
|
|
223
|
+
readonly DEVICE_VARIATION: "DEVICE_VARIATION";
|
|
224
|
+
readonly DEVICE_PLURAL_VARIATION: "DEVICE_PLURAL_VARIATION";
|
|
225
|
+
}>;
|
|
226
|
+
keyPath: z.ZodString;
|
|
227
|
+
device: z.ZodOptional<z.ZodEnum<{
|
|
228
|
+
readonly MAC: "MAC";
|
|
229
|
+
readonly IPHONE: "IPHONE";
|
|
230
|
+
readonly APPLE_WATCH: "APPLE_WATCH";
|
|
231
|
+
readonly IPAD: "IPAD";
|
|
232
|
+
readonly OTHER: "OTHER";
|
|
233
|
+
}>>;
|
|
234
|
+
pluralForm: z.ZodOptional<z.ZodEnum<{
|
|
235
|
+
readonly ZERO: "ZERO";
|
|
236
|
+
readonly ONE: "ONE";
|
|
237
|
+
readonly TWO: "TWO";
|
|
238
|
+
readonly FEW: "FEW";
|
|
239
|
+
readonly MANY: "MANY";
|
|
240
|
+
readonly OTHER: "OTHER";
|
|
241
|
+
}>>;
|
|
242
|
+
formatSpecifier: z.ZodOptional<z.ZodString>;
|
|
243
|
+
argNum: z.ZodOptional<z.ZodNumber>;
|
|
244
|
+
isPlural: z.ZodBoolean;
|
|
245
|
+
}, z.core.$strip>>;
|
|
246
|
+
}, z.core.$strip>>;
|
|
247
|
+
}, z.core.$strip>>>;
|
|
151
248
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
152
249
|
pptxAttributes: z.ZodOptional<z.ZodObject<{
|
|
153
250
|
slideNumber: z.ZodNumber;
|
|
@@ -163,6 +260,7 @@ export declare const RECONSTRUCTABLE_ITEM: z.ZodObject<{
|
|
|
163
260
|
}, z.core.$strip>>;
|
|
164
261
|
xcstrings: z.ZodOptional<z.ZodObject<{
|
|
165
262
|
state: z.ZodOptional<z.ZodString>;
|
|
263
|
+
shouldTranslate: z.ZodOptional<z.ZodBoolean>;
|
|
166
264
|
extractionState: z.ZodOptional<z.ZodString>;
|
|
167
265
|
localizationType: z.ZodEnum<{
|
|
168
266
|
readonly STRING_UNIT: "STRING_UNIT";
|
|
@@ -204,4 +302,739 @@ export declare const RECONSTRUCTABLE_ITEM: z.ZodObject<{
|
|
|
204
302
|
}, z.core.$strip>>;
|
|
205
303
|
}, z.core.$strip>;
|
|
206
304
|
export type ReconstructableItem = z.infer<typeof RECONSTRUCTABLE_ITEM>;
|
|
305
|
+
export declare const FAILED_RECONSTRUCTABLE_ITEM_SCHEMA: z.ZodObject<{
|
|
306
|
+
id: z.ZodString;
|
|
307
|
+
name: z.ZodOptional<z.ZodString>;
|
|
308
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
309
|
+
state: z.ZodLiteral<"failed">;
|
|
310
|
+
error: z.ZodObject<{
|
|
311
|
+
code: z.ZodString;
|
|
312
|
+
message: z.ZodString;
|
|
313
|
+
}, z.core.$strip>;
|
|
314
|
+
contentUnits: z.ZodOptional<z.ZodNever>;
|
|
315
|
+
failedContentUnits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
316
|
+
error: z.ZodString;
|
|
317
|
+
contentUnit: z.ZodObject<{
|
|
318
|
+
id: z.ZodString;
|
|
319
|
+
type: z.ZodEnum<{
|
|
320
|
+
readonly HTML_FILE: "HTML_FILE";
|
|
321
|
+
readonly DOCX_FILE: "DOCX_FILE";
|
|
322
|
+
readonly PPTX_FILE: "PPTX_FILE";
|
|
323
|
+
readonly XLSX_FILE: "XLSX_FILE";
|
|
324
|
+
readonly MARKDOWN_FILE: "MARKDOWN_FILE";
|
|
325
|
+
readonly IDML_FILE: "IDML_FILE";
|
|
326
|
+
readonly JSON_FILE: "JSON_FILE";
|
|
327
|
+
readonly YAML_FILE: "YAML_FILE";
|
|
328
|
+
readonly XCSTRINGS_FILE: "XCSTRINGS_FILE";
|
|
329
|
+
readonly TEXT: "TEXT";
|
|
330
|
+
readonly HTML: "HTML";
|
|
331
|
+
readonly JSON: "JSON";
|
|
332
|
+
readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
|
|
333
|
+
}>;
|
|
334
|
+
context: z.ZodOptional<z.ZodString>;
|
|
335
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
336
|
+
sourceLanguage: z.ZodObject<{
|
|
337
|
+
id: z.ZodString;
|
|
338
|
+
locale: z.ZodString;
|
|
339
|
+
}, z.core.$strip>;
|
|
340
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
341
|
+
type: z.ZodLiteral<"inline">;
|
|
342
|
+
textUnits: z.ZodArray<z.ZodObject<{
|
|
343
|
+
id: z.ZodString;
|
|
344
|
+
name: z.ZodOptional<z.ZodString>;
|
|
345
|
+
isTranslatable: z.ZodBoolean;
|
|
346
|
+
source: z.ZodObject<{
|
|
347
|
+
textCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
348
|
+
id: z.ZodString;
|
|
349
|
+
type: z.ZodEnum<{
|
|
350
|
+
readonly OPENING: "OPENING";
|
|
351
|
+
readonly CLOSING: "CLOSING";
|
|
352
|
+
readonly PLACEHOLDER: "PLACEHOLDER";
|
|
353
|
+
}>;
|
|
354
|
+
value: z.ZodString;
|
|
355
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
356
|
+
parser: z.ZodDefault<z.ZodLiteral<"okapi">>;
|
|
357
|
+
}, z.core.$strip>>>>;
|
|
358
|
+
hasBeenSegmented: z.ZodBoolean;
|
|
359
|
+
segments: z.ZodArray<z.ZodString>;
|
|
360
|
+
}, z.core.$strip>;
|
|
361
|
+
targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
362
|
+
hasBeenSegmented: z.ZodBoolean;
|
|
363
|
+
segments: z.ZodArray<z.ZodString>;
|
|
364
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
365
|
+
pptxAttributes: z.ZodOptional<z.ZodObject<{
|
|
366
|
+
slideNumber: z.ZodNumber;
|
|
367
|
+
slideType: z.ZodEnum<{
|
|
368
|
+
readonly LAYOUT: "LAYOUT";
|
|
369
|
+
readonly NOTES: "NOTES";
|
|
370
|
+
readonly MASTER_NOTES: "MASTER_NOTES";
|
|
371
|
+
readonly SLIDE: "SLIDE";
|
|
372
|
+
readonly MASTER_SLIDE: "MASTER_SLIDE";
|
|
373
|
+
readonly CHART: "CHART";
|
|
374
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
375
|
+
}>;
|
|
376
|
+
}, z.core.$strip>>;
|
|
377
|
+
xcstrings: z.ZodOptional<z.ZodObject<{
|
|
378
|
+
state: z.ZodOptional<z.ZodString>;
|
|
379
|
+
shouldTranslate: z.ZodOptional<z.ZodBoolean>;
|
|
380
|
+
extractionState: z.ZodOptional<z.ZodString>;
|
|
381
|
+
localizationType: z.ZodEnum<{
|
|
382
|
+
readonly STRING_UNIT: "STRING_UNIT";
|
|
383
|
+
readonly SUBSTITUTIONS: "SUBSTITUTIONS";
|
|
384
|
+
readonly PLURAL_VARIATION: "PLURAL_VARIATION";
|
|
385
|
+
readonly DEVICE_VARIATION: "DEVICE_VARIATION";
|
|
386
|
+
readonly DEVICE_PLURAL_VARIATION: "DEVICE_PLURAL_VARIATION";
|
|
387
|
+
}>;
|
|
388
|
+
keyPath: z.ZodString;
|
|
389
|
+
device: z.ZodOptional<z.ZodEnum<{
|
|
390
|
+
readonly MAC: "MAC";
|
|
391
|
+
readonly IPHONE: "IPHONE";
|
|
392
|
+
readonly APPLE_WATCH: "APPLE_WATCH";
|
|
393
|
+
readonly IPAD: "IPAD";
|
|
394
|
+
readonly OTHER: "OTHER";
|
|
395
|
+
}>>;
|
|
396
|
+
pluralForm: z.ZodOptional<z.ZodEnum<{
|
|
397
|
+
readonly ZERO: "ZERO";
|
|
398
|
+
readonly ONE: "ONE";
|
|
399
|
+
readonly TWO: "TWO";
|
|
400
|
+
readonly FEW: "FEW";
|
|
401
|
+
readonly MANY: "MANY";
|
|
402
|
+
readonly OTHER: "OTHER";
|
|
403
|
+
}>>;
|
|
404
|
+
formatSpecifier: z.ZodOptional<z.ZodString>;
|
|
405
|
+
argNum: z.ZodOptional<z.ZodNumber>;
|
|
406
|
+
isPlural: z.ZodBoolean;
|
|
407
|
+
}, z.core.$strip>>;
|
|
408
|
+
}, z.core.$strip>>;
|
|
409
|
+
}, z.core.$strip>>>;
|
|
410
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
411
|
+
pptxAttributes: z.ZodOptional<z.ZodObject<{
|
|
412
|
+
slideNumber: z.ZodNumber;
|
|
413
|
+
slideType: z.ZodEnum<{
|
|
414
|
+
readonly LAYOUT: "LAYOUT";
|
|
415
|
+
readonly NOTES: "NOTES";
|
|
416
|
+
readonly MASTER_NOTES: "MASTER_NOTES";
|
|
417
|
+
readonly SLIDE: "SLIDE";
|
|
418
|
+
readonly MASTER_SLIDE: "MASTER_SLIDE";
|
|
419
|
+
readonly CHART: "CHART";
|
|
420
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
421
|
+
}>;
|
|
422
|
+
}, z.core.$strip>>;
|
|
423
|
+
xcstrings: z.ZodOptional<z.ZodObject<{
|
|
424
|
+
state: z.ZodOptional<z.ZodString>;
|
|
425
|
+
shouldTranslate: z.ZodOptional<z.ZodBoolean>;
|
|
426
|
+
extractionState: z.ZodOptional<z.ZodString>;
|
|
427
|
+
localizationType: z.ZodEnum<{
|
|
428
|
+
readonly STRING_UNIT: "STRING_UNIT";
|
|
429
|
+
readonly SUBSTITUTIONS: "SUBSTITUTIONS";
|
|
430
|
+
readonly PLURAL_VARIATION: "PLURAL_VARIATION";
|
|
431
|
+
readonly DEVICE_VARIATION: "DEVICE_VARIATION";
|
|
432
|
+
readonly DEVICE_PLURAL_VARIATION: "DEVICE_PLURAL_VARIATION";
|
|
433
|
+
}>;
|
|
434
|
+
keyPath: z.ZodString;
|
|
435
|
+
device: z.ZodOptional<z.ZodEnum<{
|
|
436
|
+
readonly MAC: "MAC";
|
|
437
|
+
readonly IPHONE: "IPHONE";
|
|
438
|
+
readonly APPLE_WATCH: "APPLE_WATCH";
|
|
439
|
+
readonly IPAD: "IPAD";
|
|
440
|
+
readonly OTHER: "OTHER";
|
|
441
|
+
}>>;
|
|
442
|
+
pluralForm: z.ZodOptional<z.ZodEnum<{
|
|
443
|
+
readonly ZERO: "ZERO";
|
|
444
|
+
readonly ONE: "ONE";
|
|
445
|
+
readonly TWO: "TWO";
|
|
446
|
+
readonly FEW: "FEW";
|
|
447
|
+
readonly MANY: "MANY";
|
|
448
|
+
readonly OTHER: "OTHER";
|
|
449
|
+
}>>;
|
|
450
|
+
formatSpecifier: z.ZodOptional<z.ZodString>;
|
|
451
|
+
argNum: z.ZodOptional<z.ZodNumber>;
|
|
452
|
+
isPlural: z.ZodBoolean;
|
|
453
|
+
}, z.core.$strip>>;
|
|
454
|
+
}, z.core.$strip>>;
|
|
455
|
+
}, z.core.$strip>>;
|
|
456
|
+
parsedContentStorageId: z.ZodOptional<z.ZodNever>;
|
|
457
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
458
|
+
type: z.ZodLiteral<"remote">;
|
|
459
|
+
parsedContentStorageId: z.ZodString;
|
|
460
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
461
|
+
filePathWithLocalePlaceholder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
462
|
+
textUnits: z.ZodOptional<z.ZodNever>;
|
|
463
|
+
}, z.core.$strip>]>;
|
|
464
|
+
}, z.core.$strip>;
|
|
465
|
+
}, z.core.$strip>>>;
|
|
466
|
+
}, z.core.$strip>;
|
|
467
|
+
export declare const PARTIALLY_FAILED_RECONSTRUCTABLE_ITEM_SCHEMA: z.ZodObject<{
|
|
468
|
+
id: z.ZodString;
|
|
469
|
+
name: z.ZodOptional<z.ZodString>;
|
|
470
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
471
|
+
state: z.ZodLiteral<"partial_error">;
|
|
472
|
+
contentUnits: z.ZodArray<z.ZodObject<{
|
|
473
|
+
id: z.ZodString;
|
|
474
|
+
type: z.ZodEnum<{
|
|
475
|
+
readonly HTML_FILE: "HTML_FILE";
|
|
476
|
+
readonly DOCX_FILE: "DOCX_FILE";
|
|
477
|
+
readonly PPTX_FILE: "PPTX_FILE";
|
|
478
|
+
readonly XLSX_FILE: "XLSX_FILE";
|
|
479
|
+
readonly MARKDOWN_FILE: "MARKDOWN_FILE";
|
|
480
|
+
readonly IDML_FILE: "IDML_FILE";
|
|
481
|
+
readonly JSON_FILE: "JSON_FILE";
|
|
482
|
+
readonly YAML_FILE: "YAML_FILE";
|
|
483
|
+
readonly XCSTRINGS_FILE: "XCSTRINGS_FILE";
|
|
484
|
+
readonly TEXT: "TEXT";
|
|
485
|
+
readonly HTML: "HTML";
|
|
486
|
+
readonly JSON: "JSON";
|
|
487
|
+
readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
|
|
488
|
+
}>;
|
|
489
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
490
|
+
type: z.ZodLiteral<"inline">;
|
|
491
|
+
value: z.ZodString;
|
|
492
|
+
storageId: z.ZodOptional<z.ZodNever>;
|
|
493
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
494
|
+
type: z.ZodLiteral<"remote">;
|
|
495
|
+
storageId: z.ZodString;
|
|
496
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
497
|
+
value: z.ZodOptional<z.ZodNever>;
|
|
498
|
+
}, z.core.$strip>]>;
|
|
499
|
+
context: z.ZodOptional<z.ZodString>;
|
|
500
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
501
|
+
}, z.core.$strip>>;
|
|
502
|
+
failedContentUnits: z.ZodArray<z.ZodObject<{
|
|
503
|
+
error: z.ZodString;
|
|
504
|
+
contentUnit: z.ZodObject<{
|
|
505
|
+
id: z.ZodString;
|
|
506
|
+
type: z.ZodEnum<{
|
|
507
|
+
readonly HTML_FILE: "HTML_FILE";
|
|
508
|
+
readonly DOCX_FILE: "DOCX_FILE";
|
|
509
|
+
readonly PPTX_FILE: "PPTX_FILE";
|
|
510
|
+
readonly XLSX_FILE: "XLSX_FILE";
|
|
511
|
+
readonly MARKDOWN_FILE: "MARKDOWN_FILE";
|
|
512
|
+
readonly IDML_FILE: "IDML_FILE";
|
|
513
|
+
readonly JSON_FILE: "JSON_FILE";
|
|
514
|
+
readonly YAML_FILE: "YAML_FILE";
|
|
515
|
+
readonly XCSTRINGS_FILE: "XCSTRINGS_FILE";
|
|
516
|
+
readonly TEXT: "TEXT";
|
|
517
|
+
readonly HTML: "HTML";
|
|
518
|
+
readonly JSON: "JSON";
|
|
519
|
+
readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
|
|
520
|
+
}>;
|
|
521
|
+
context: z.ZodOptional<z.ZodString>;
|
|
522
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
523
|
+
sourceLanguage: z.ZodObject<{
|
|
524
|
+
id: z.ZodString;
|
|
525
|
+
locale: z.ZodString;
|
|
526
|
+
}, z.core.$strip>;
|
|
527
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
528
|
+
type: z.ZodLiteral<"inline">;
|
|
529
|
+
textUnits: z.ZodArray<z.ZodObject<{
|
|
530
|
+
id: z.ZodString;
|
|
531
|
+
name: z.ZodOptional<z.ZodString>;
|
|
532
|
+
isTranslatable: z.ZodBoolean;
|
|
533
|
+
source: z.ZodObject<{
|
|
534
|
+
textCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
535
|
+
id: z.ZodString;
|
|
536
|
+
type: z.ZodEnum<{
|
|
537
|
+
readonly OPENING: "OPENING";
|
|
538
|
+
readonly CLOSING: "CLOSING";
|
|
539
|
+
readonly PLACEHOLDER: "PLACEHOLDER";
|
|
540
|
+
}>;
|
|
541
|
+
value: z.ZodString;
|
|
542
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
543
|
+
parser: z.ZodDefault<z.ZodLiteral<"okapi">>;
|
|
544
|
+
}, z.core.$strip>>>>;
|
|
545
|
+
hasBeenSegmented: z.ZodBoolean;
|
|
546
|
+
segments: z.ZodArray<z.ZodString>;
|
|
547
|
+
}, z.core.$strip>;
|
|
548
|
+
targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
549
|
+
hasBeenSegmented: z.ZodBoolean;
|
|
550
|
+
segments: z.ZodArray<z.ZodString>;
|
|
551
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
552
|
+
pptxAttributes: z.ZodOptional<z.ZodObject<{
|
|
553
|
+
slideNumber: z.ZodNumber;
|
|
554
|
+
slideType: z.ZodEnum<{
|
|
555
|
+
readonly LAYOUT: "LAYOUT";
|
|
556
|
+
readonly NOTES: "NOTES";
|
|
557
|
+
readonly MASTER_NOTES: "MASTER_NOTES";
|
|
558
|
+
readonly SLIDE: "SLIDE";
|
|
559
|
+
readonly MASTER_SLIDE: "MASTER_SLIDE";
|
|
560
|
+
readonly CHART: "CHART";
|
|
561
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
562
|
+
}>;
|
|
563
|
+
}, z.core.$strip>>;
|
|
564
|
+
xcstrings: z.ZodOptional<z.ZodObject<{
|
|
565
|
+
state: z.ZodOptional<z.ZodString>;
|
|
566
|
+
shouldTranslate: z.ZodOptional<z.ZodBoolean>;
|
|
567
|
+
extractionState: z.ZodOptional<z.ZodString>;
|
|
568
|
+
localizationType: z.ZodEnum<{
|
|
569
|
+
readonly STRING_UNIT: "STRING_UNIT";
|
|
570
|
+
readonly SUBSTITUTIONS: "SUBSTITUTIONS";
|
|
571
|
+
readonly PLURAL_VARIATION: "PLURAL_VARIATION";
|
|
572
|
+
readonly DEVICE_VARIATION: "DEVICE_VARIATION";
|
|
573
|
+
readonly DEVICE_PLURAL_VARIATION: "DEVICE_PLURAL_VARIATION";
|
|
574
|
+
}>;
|
|
575
|
+
keyPath: z.ZodString;
|
|
576
|
+
device: z.ZodOptional<z.ZodEnum<{
|
|
577
|
+
readonly MAC: "MAC";
|
|
578
|
+
readonly IPHONE: "IPHONE";
|
|
579
|
+
readonly APPLE_WATCH: "APPLE_WATCH";
|
|
580
|
+
readonly IPAD: "IPAD";
|
|
581
|
+
readonly OTHER: "OTHER";
|
|
582
|
+
}>>;
|
|
583
|
+
pluralForm: z.ZodOptional<z.ZodEnum<{
|
|
584
|
+
readonly ZERO: "ZERO";
|
|
585
|
+
readonly ONE: "ONE";
|
|
586
|
+
readonly TWO: "TWO";
|
|
587
|
+
readonly FEW: "FEW";
|
|
588
|
+
readonly MANY: "MANY";
|
|
589
|
+
readonly OTHER: "OTHER";
|
|
590
|
+
}>>;
|
|
591
|
+
formatSpecifier: z.ZodOptional<z.ZodString>;
|
|
592
|
+
argNum: z.ZodOptional<z.ZodNumber>;
|
|
593
|
+
isPlural: z.ZodBoolean;
|
|
594
|
+
}, z.core.$strip>>;
|
|
595
|
+
}, z.core.$strip>>;
|
|
596
|
+
}, z.core.$strip>>>;
|
|
597
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
598
|
+
pptxAttributes: z.ZodOptional<z.ZodObject<{
|
|
599
|
+
slideNumber: z.ZodNumber;
|
|
600
|
+
slideType: z.ZodEnum<{
|
|
601
|
+
readonly LAYOUT: "LAYOUT";
|
|
602
|
+
readonly NOTES: "NOTES";
|
|
603
|
+
readonly MASTER_NOTES: "MASTER_NOTES";
|
|
604
|
+
readonly SLIDE: "SLIDE";
|
|
605
|
+
readonly MASTER_SLIDE: "MASTER_SLIDE";
|
|
606
|
+
readonly CHART: "CHART";
|
|
607
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
608
|
+
}>;
|
|
609
|
+
}, z.core.$strip>>;
|
|
610
|
+
xcstrings: z.ZodOptional<z.ZodObject<{
|
|
611
|
+
state: z.ZodOptional<z.ZodString>;
|
|
612
|
+
shouldTranslate: z.ZodOptional<z.ZodBoolean>;
|
|
613
|
+
extractionState: z.ZodOptional<z.ZodString>;
|
|
614
|
+
localizationType: z.ZodEnum<{
|
|
615
|
+
readonly STRING_UNIT: "STRING_UNIT";
|
|
616
|
+
readonly SUBSTITUTIONS: "SUBSTITUTIONS";
|
|
617
|
+
readonly PLURAL_VARIATION: "PLURAL_VARIATION";
|
|
618
|
+
readonly DEVICE_VARIATION: "DEVICE_VARIATION";
|
|
619
|
+
readonly DEVICE_PLURAL_VARIATION: "DEVICE_PLURAL_VARIATION";
|
|
620
|
+
}>;
|
|
621
|
+
keyPath: z.ZodString;
|
|
622
|
+
device: z.ZodOptional<z.ZodEnum<{
|
|
623
|
+
readonly MAC: "MAC";
|
|
624
|
+
readonly IPHONE: "IPHONE";
|
|
625
|
+
readonly APPLE_WATCH: "APPLE_WATCH";
|
|
626
|
+
readonly IPAD: "IPAD";
|
|
627
|
+
readonly OTHER: "OTHER";
|
|
628
|
+
}>>;
|
|
629
|
+
pluralForm: z.ZodOptional<z.ZodEnum<{
|
|
630
|
+
readonly ZERO: "ZERO";
|
|
631
|
+
readonly ONE: "ONE";
|
|
632
|
+
readonly TWO: "TWO";
|
|
633
|
+
readonly FEW: "FEW";
|
|
634
|
+
readonly MANY: "MANY";
|
|
635
|
+
readonly OTHER: "OTHER";
|
|
636
|
+
}>>;
|
|
637
|
+
formatSpecifier: z.ZodOptional<z.ZodString>;
|
|
638
|
+
argNum: z.ZodOptional<z.ZodNumber>;
|
|
639
|
+
isPlural: z.ZodBoolean;
|
|
640
|
+
}, z.core.$strip>>;
|
|
641
|
+
}, z.core.$strip>>;
|
|
642
|
+
}, z.core.$strip>>;
|
|
643
|
+
parsedContentStorageId: z.ZodOptional<z.ZodNever>;
|
|
644
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
645
|
+
type: z.ZodLiteral<"remote">;
|
|
646
|
+
parsedContentStorageId: z.ZodString;
|
|
647
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
648
|
+
filePathWithLocalePlaceholder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
649
|
+
textUnits: z.ZodOptional<z.ZodNever>;
|
|
650
|
+
}, z.core.$strip>]>;
|
|
651
|
+
}, z.core.$strip>;
|
|
652
|
+
}, z.core.$strip>>;
|
|
653
|
+
}, z.core.$strip>;
|
|
654
|
+
export declare const GENERATE_CONTENT_ITEM_RESULT_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
655
|
+
id: z.ZodString;
|
|
656
|
+
name: z.ZodOptional<z.ZodString>;
|
|
657
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
658
|
+
state: z.ZodLiteral<"failed">;
|
|
659
|
+
error: z.ZodObject<{
|
|
660
|
+
code: z.ZodString;
|
|
661
|
+
message: z.ZodString;
|
|
662
|
+
}, z.core.$strip>;
|
|
663
|
+
contentUnits: z.ZodOptional<z.ZodNever>;
|
|
664
|
+
failedContentUnits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
665
|
+
error: z.ZodString;
|
|
666
|
+
contentUnit: z.ZodObject<{
|
|
667
|
+
id: z.ZodString;
|
|
668
|
+
type: z.ZodEnum<{
|
|
669
|
+
readonly HTML_FILE: "HTML_FILE";
|
|
670
|
+
readonly DOCX_FILE: "DOCX_FILE";
|
|
671
|
+
readonly PPTX_FILE: "PPTX_FILE";
|
|
672
|
+
readonly XLSX_FILE: "XLSX_FILE";
|
|
673
|
+
readonly MARKDOWN_FILE: "MARKDOWN_FILE";
|
|
674
|
+
readonly IDML_FILE: "IDML_FILE";
|
|
675
|
+
readonly JSON_FILE: "JSON_FILE";
|
|
676
|
+
readonly YAML_FILE: "YAML_FILE";
|
|
677
|
+
readonly XCSTRINGS_FILE: "XCSTRINGS_FILE";
|
|
678
|
+
readonly TEXT: "TEXT";
|
|
679
|
+
readonly HTML: "HTML";
|
|
680
|
+
readonly JSON: "JSON";
|
|
681
|
+
readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
|
|
682
|
+
}>;
|
|
683
|
+
context: z.ZodOptional<z.ZodString>;
|
|
684
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
685
|
+
sourceLanguage: z.ZodObject<{
|
|
686
|
+
id: z.ZodString;
|
|
687
|
+
locale: z.ZodString;
|
|
688
|
+
}, z.core.$strip>;
|
|
689
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
690
|
+
type: z.ZodLiteral<"inline">;
|
|
691
|
+
textUnits: z.ZodArray<z.ZodObject<{
|
|
692
|
+
id: z.ZodString;
|
|
693
|
+
name: z.ZodOptional<z.ZodString>;
|
|
694
|
+
isTranslatable: z.ZodBoolean;
|
|
695
|
+
source: z.ZodObject<{
|
|
696
|
+
textCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
697
|
+
id: z.ZodString;
|
|
698
|
+
type: z.ZodEnum<{
|
|
699
|
+
readonly OPENING: "OPENING";
|
|
700
|
+
readonly CLOSING: "CLOSING";
|
|
701
|
+
readonly PLACEHOLDER: "PLACEHOLDER";
|
|
702
|
+
}>;
|
|
703
|
+
value: z.ZodString;
|
|
704
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
705
|
+
parser: z.ZodDefault<z.ZodLiteral<"okapi">>;
|
|
706
|
+
}, z.core.$strip>>>>;
|
|
707
|
+
hasBeenSegmented: z.ZodBoolean;
|
|
708
|
+
segments: z.ZodArray<z.ZodString>;
|
|
709
|
+
}, z.core.$strip>;
|
|
710
|
+
targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
711
|
+
hasBeenSegmented: z.ZodBoolean;
|
|
712
|
+
segments: z.ZodArray<z.ZodString>;
|
|
713
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
714
|
+
pptxAttributes: z.ZodOptional<z.ZodObject<{
|
|
715
|
+
slideNumber: z.ZodNumber;
|
|
716
|
+
slideType: z.ZodEnum<{
|
|
717
|
+
readonly LAYOUT: "LAYOUT";
|
|
718
|
+
readonly NOTES: "NOTES";
|
|
719
|
+
readonly MASTER_NOTES: "MASTER_NOTES";
|
|
720
|
+
readonly SLIDE: "SLIDE";
|
|
721
|
+
readonly MASTER_SLIDE: "MASTER_SLIDE";
|
|
722
|
+
readonly CHART: "CHART";
|
|
723
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
724
|
+
}>;
|
|
725
|
+
}, z.core.$strip>>;
|
|
726
|
+
xcstrings: z.ZodOptional<z.ZodObject<{
|
|
727
|
+
state: z.ZodOptional<z.ZodString>;
|
|
728
|
+
shouldTranslate: z.ZodOptional<z.ZodBoolean>;
|
|
729
|
+
extractionState: z.ZodOptional<z.ZodString>;
|
|
730
|
+
localizationType: z.ZodEnum<{
|
|
731
|
+
readonly STRING_UNIT: "STRING_UNIT";
|
|
732
|
+
readonly SUBSTITUTIONS: "SUBSTITUTIONS";
|
|
733
|
+
readonly PLURAL_VARIATION: "PLURAL_VARIATION";
|
|
734
|
+
readonly DEVICE_VARIATION: "DEVICE_VARIATION";
|
|
735
|
+
readonly DEVICE_PLURAL_VARIATION: "DEVICE_PLURAL_VARIATION";
|
|
736
|
+
}>;
|
|
737
|
+
keyPath: z.ZodString;
|
|
738
|
+
device: z.ZodOptional<z.ZodEnum<{
|
|
739
|
+
readonly MAC: "MAC";
|
|
740
|
+
readonly IPHONE: "IPHONE";
|
|
741
|
+
readonly APPLE_WATCH: "APPLE_WATCH";
|
|
742
|
+
readonly IPAD: "IPAD";
|
|
743
|
+
readonly OTHER: "OTHER";
|
|
744
|
+
}>>;
|
|
745
|
+
pluralForm: z.ZodOptional<z.ZodEnum<{
|
|
746
|
+
readonly ZERO: "ZERO";
|
|
747
|
+
readonly ONE: "ONE";
|
|
748
|
+
readonly TWO: "TWO";
|
|
749
|
+
readonly FEW: "FEW";
|
|
750
|
+
readonly MANY: "MANY";
|
|
751
|
+
readonly OTHER: "OTHER";
|
|
752
|
+
}>>;
|
|
753
|
+
formatSpecifier: z.ZodOptional<z.ZodString>;
|
|
754
|
+
argNum: z.ZodOptional<z.ZodNumber>;
|
|
755
|
+
isPlural: z.ZodBoolean;
|
|
756
|
+
}, z.core.$strip>>;
|
|
757
|
+
}, z.core.$strip>>;
|
|
758
|
+
}, z.core.$strip>>>;
|
|
759
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
760
|
+
pptxAttributes: z.ZodOptional<z.ZodObject<{
|
|
761
|
+
slideNumber: z.ZodNumber;
|
|
762
|
+
slideType: z.ZodEnum<{
|
|
763
|
+
readonly LAYOUT: "LAYOUT";
|
|
764
|
+
readonly NOTES: "NOTES";
|
|
765
|
+
readonly MASTER_NOTES: "MASTER_NOTES";
|
|
766
|
+
readonly SLIDE: "SLIDE";
|
|
767
|
+
readonly MASTER_SLIDE: "MASTER_SLIDE";
|
|
768
|
+
readonly CHART: "CHART";
|
|
769
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
770
|
+
}>;
|
|
771
|
+
}, z.core.$strip>>;
|
|
772
|
+
xcstrings: z.ZodOptional<z.ZodObject<{
|
|
773
|
+
state: z.ZodOptional<z.ZodString>;
|
|
774
|
+
shouldTranslate: z.ZodOptional<z.ZodBoolean>;
|
|
775
|
+
extractionState: z.ZodOptional<z.ZodString>;
|
|
776
|
+
localizationType: z.ZodEnum<{
|
|
777
|
+
readonly STRING_UNIT: "STRING_UNIT";
|
|
778
|
+
readonly SUBSTITUTIONS: "SUBSTITUTIONS";
|
|
779
|
+
readonly PLURAL_VARIATION: "PLURAL_VARIATION";
|
|
780
|
+
readonly DEVICE_VARIATION: "DEVICE_VARIATION";
|
|
781
|
+
readonly DEVICE_PLURAL_VARIATION: "DEVICE_PLURAL_VARIATION";
|
|
782
|
+
}>;
|
|
783
|
+
keyPath: z.ZodString;
|
|
784
|
+
device: z.ZodOptional<z.ZodEnum<{
|
|
785
|
+
readonly MAC: "MAC";
|
|
786
|
+
readonly IPHONE: "IPHONE";
|
|
787
|
+
readonly APPLE_WATCH: "APPLE_WATCH";
|
|
788
|
+
readonly IPAD: "IPAD";
|
|
789
|
+
readonly OTHER: "OTHER";
|
|
790
|
+
}>>;
|
|
791
|
+
pluralForm: z.ZodOptional<z.ZodEnum<{
|
|
792
|
+
readonly ZERO: "ZERO";
|
|
793
|
+
readonly ONE: "ONE";
|
|
794
|
+
readonly TWO: "TWO";
|
|
795
|
+
readonly FEW: "FEW";
|
|
796
|
+
readonly MANY: "MANY";
|
|
797
|
+
readonly OTHER: "OTHER";
|
|
798
|
+
}>>;
|
|
799
|
+
formatSpecifier: z.ZodOptional<z.ZodString>;
|
|
800
|
+
argNum: z.ZodOptional<z.ZodNumber>;
|
|
801
|
+
isPlural: z.ZodBoolean;
|
|
802
|
+
}, z.core.$strip>>;
|
|
803
|
+
}, z.core.$strip>>;
|
|
804
|
+
}, z.core.$strip>>;
|
|
805
|
+
parsedContentStorageId: z.ZodOptional<z.ZodNever>;
|
|
806
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
807
|
+
type: z.ZodLiteral<"remote">;
|
|
808
|
+
parsedContentStorageId: z.ZodString;
|
|
809
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
810
|
+
filePathWithLocalePlaceholder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
811
|
+
textUnits: z.ZodOptional<z.ZodNever>;
|
|
812
|
+
}, z.core.$strip>]>;
|
|
813
|
+
}, z.core.$strip>;
|
|
814
|
+
}, z.core.$strip>>>;
|
|
815
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
816
|
+
id: z.ZodString;
|
|
817
|
+
name: z.ZodOptional<z.ZodString>;
|
|
818
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
819
|
+
state: z.ZodLiteral<"partial_error">;
|
|
820
|
+
contentUnits: z.ZodArray<z.ZodObject<{
|
|
821
|
+
id: z.ZodString;
|
|
822
|
+
type: z.ZodEnum<{
|
|
823
|
+
readonly HTML_FILE: "HTML_FILE";
|
|
824
|
+
readonly DOCX_FILE: "DOCX_FILE";
|
|
825
|
+
readonly PPTX_FILE: "PPTX_FILE";
|
|
826
|
+
readonly XLSX_FILE: "XLSX_FILE";
|
|
827
|
+
readonly MARKDOWN_FILE: "MARKDOWN_FILE";
|
|
828
|
+
readonly IDML_FILE: "IDML_FILE";
|
|
829
|
+
readonly JSON_FILE: "JSON_FILE";
|
|
830
|
+
readonly YAML_FILE: "YAML_FILE";
|
|
831
|
+
readonly XCSTRINGS_FILE: "XCSTRINGS_FILE";
|
|
832
|
+
readonly TEXT: "TEXT";
|
|
833
|
+
readonly HTML: "HTML";
|
|
834
|
+
readonly JSON: "JSON";
|
|
835
|
+
readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
|
|
836
|
+
}>;
|
|
837
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
838
|
+
type: z.ZodLiteral<"inline">;
|
|
839
|
+
value: z.ZodString;
|
|
840
|
+
storageId: z.ZodOptional<z.ZodNever>;
|
|
841
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
842
|
+
type: z.ZodLiteral<"remote">;
|
|
843
|
+
storageId: z.ZodString;
|
|
844
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
845
|
+
value: z.ZodOptional<z.ZodNever>;
|
|
846
|
+
}, z.core.$strip>]>;
|
|
847
|
+
context: z.ZodOptional<z.ZodString>;
|
|
848
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
849
|
+
}, z.core.$strip>>;
|
|
850
|
+
failedContentUnits: z.ZodArray<z.ZodObject<{
|
|
851
|
+
error: z.ZodString;
|
|
852
|
+
contentUnit: z.ZodObject<{
|
|
853
|
+
id: z.ZodString;
|
|
854
|
+
type: z.ZodEnum<{
|
|
855
|
+
readonly HTML_FILE: "HTML_FILE";
|
|
856
|
+
readonly DOCX_FILE: "DOCX_FILE";
|
|
857
|
+
readonly PPTX_FILE: "PPTX_FILE";
|
|
858
|
+
readonly XLSX_FILE: "XLSX_FILE";
|
|
859
|
+
readonly MARKDOWN_FILE: "MARKDOWN_FILE";
|
|
860
|
+
readonly IDML_FILE: "IDML_FILE";
|
|
861
|
+
readonly JSON_FILE: "JSON_FILE";
|
|
862
|
+
readonly YAML_FILE: "YAML_FILE";
|
|
863
|
+
readonly XCSTRINGS_FILE: "XCSTRINGS_FILE";
|
|
864
|
+
readonly TEXT: "TEXT";
|
|
865
|
+
readonly HTML: "HTML";
|
|
866
|
+
readonly JSON: "JSON";
|
|
867
|
+
readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
|
|
868
|
+
}>;
|
|
869
|
+
context: z.ZodOptional<z.ZodString>;
|
|
870
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
871
|
+
sourceLanguage: z.ZodObject<{
|
|
872
|
+
id: z.ZodString;
|
|
873
|
+
locale: z.ZodString;
|
|
874
|
+
}, z.core.$strip>;
|
|
875
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
876
|
+
type: z.ZodLiteral<"inline">;
|
|
877
|
+
textUnits: z.ZodArray<z.ZodObject<{
|
|
878
|
+
id: z.ZodString;
|
|
879
|
+
name: z.ZodOptional<z.ZodString>;
|
|
880
|
+
isTranslatable: z.ZodBoolean;
|
|
881
|
+
source: z.ZodObject<{
|
|
882
|
+
textCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
883
|
+
id: z.ZodString;
|
|
884
|
+
type: z.ZodEnum<{
|
|
885
|
+
readonly OPENING: "OPENING";
|
|
886
|
+
readonly CLOSING: "CLOSING";
|
|
887
|
+
readonly PLACEHOLDER: "PLACEHOLDER";
|
|
888
|
+
}>;
|
|
889
|
+
value: z.ZodString;
|
|
890
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
891
|
+
parser: z.ZodDefault<z.ZodLiteral<"okapi">>;
|
|
892
|
+
}, z.core.$strip>>>>;
|
|
893
|
+
hasBeenSegmented: z.ZodBoolean;
|
|
894
|
+
segments: z.ZodArray<z.ZodString>;
|
|
895
|
+
}, z.core.$strip>;
|
|
896
|
+
targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
897
|
+
hasBeenSegmented: z.ZodBoolean;
|
|
898
|
+
segments: z.ZodArray<z.ZodString>;
|
|
899
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
900
|
+
pptxAttributes: z.ZodOptional<z.ZodObject<{
|
|
901
|
+
slideNumber: z.ZodNumber;
|
|
902
|
+
slideType: z.ZodEnum<{
|
|
903
|
+
readonly LAYOUT: "LAYOUT";
|
|
904
|
+
readonly NOTES: "NOTES";
|
|
905
|
+
readonly MASTER_NOTES: "MASTER_NOTES";
|
|
906
|
+
readonly SLIDE: "SLIDE";
|
|
907
|
+
readonly MASTER_SLIDE: "MASTER_SLIDE";
|
|
908
|
+
readonly CHART: "CHART";
|
|
909
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
910
|
+
}>;
|
|
911
|
+
}, z.core.$strip>>;
|
|
912
|
+
xcstrings: z.ZodOptional<z.ZodObject<{
|
|
913
|
+
state: z.ZodOptional<z.ZodString>;
|
|
914
|
+
shouldTranslate: z.ZodOptional<z.ZodBoolean>;
|
|
915
|
+
extractionState: z.ZodOptional<z.ZodString>;
|
|
916
|
+
localizationType: z.ZodEnum<{
|
|
917
|
+
readonly STRING_UNIT: "STRING_UNIT";
|
|
918
|
+
readonly SUBSTITUTIONS: "SUBSTITUTIONS";
|
|
919
|
+
readonly PLURAL_VARIATION: "PLURAL_VARIATION";
|
|
920
|
+
readonly DEVICE_VARIATION: "DEVICE_VARIATION";
|
|
921
|
+
readonly DEVICE_PLURAL_VARIATION: "DEVICE_PLURAL_VARIATION";
|
|
922
|
+
}>;
|
|
923
|
+
keyPath: z.ZodString;
|
|
924
|
+
device: z.ZodOptional<z.ZodEnum<{
|
|
925
|
+
readonly MAC: "MAC";
|
|
926
|
+
readonly IPHONE: "IPHONE";
|
|
927
|
+
readonly APPLE_WATCH: "APPLE_WATCH";
|
|
928
|
+
readonly IPAD: "IPAD";
|
|
929
|
+
readonly OTHER: "OTHER";
|
|
930
|
+
}>>;
|
|
931
|
+
pluralForm: z.ZodOptional<z.ZodEnum<{
|
|
932
|
+
readonly ZERO: "ZERO";
|
|
933
|
+
readonly ONE: "ONE";
|
|
934
|
+
readonly TWO: "TWO";
|
|
935
|
+
readonly FEW: "FEW";
|
|
936
|
+
readonly MANY: "MANY";
|
|
937
|
+
readonly OTHER: "OTHER";
|
|
938
|
+
}>>;
|
|
939
|
+
formatSpecifier: z.ZodOptional<z.ZodString>;
|
|
940
|
+
argNum: z.ZodOptional<z.ZodNumber>;
|
|
941
|
+
isPlural: z.ZodBoolean;
|
|
942
|
+
}, z.core.$strip>>;
|
|
943
|
+
}, z.core.$strip>>;
|
|
944
|
+
}, z.core.$strip>>>;
|
|
945
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
946
|
+
pptxAttributes: z.ZodOptional<z.ZodObject<{
|
|
947
|
+
slideNumber: z.ZodNumber;
|
|
948
|
+
slideType: z.ZodEnum<{
|
|
949
|
+
readonly LAYOUT: "LAYOUT";
|
|
950
|
+
readonly NOTES: "NOTES";
|
|
951
|
+
readonly MASTER_NOTES: "MASTER_NOTES";
|
|
952
|
+
readonly SLIDE: "SLIDE";
|
|
953
|
+
readonly MASTER_SLIDE: "MASTER_SLIDE";
|
|
954
|
+
readonly CHART: "CHART";
|
|
955
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
956
|
+
}>;
|
|
957
|
+
}, z.core.$strip>>;
|
|
958
|
+
xcstrings: z.ZodOptional<z.ZodObject<{
|
|
959
|
+
state: z.ZodOptional<z.ZodString>;
|
|
960
|
+
shouldTranslate: z.ZodOptional<z.ZodBoolean>;
|
|
961
|
+
extractionState: z.ZodOptional<z.ZodString>;
|
|
962
|
+
localizationType: z.ZodEnum<{
|
|
963
|
+
readonly STRING_UNIT: "STRING_UNIT";
|
|
964
|
+
readonly SUBSTITUTIONS: "SUBSTITUTIONS";
|
|
965
|
+
readonly PLURAL_VARIATION: "PLURAL_VARIATION";
|
|
966
|
+
readonly DEVICE_VARIATION: "DEVICE_VARIATION";
|
|
967
|
+
readonly DEVICE_PLURAL_VARIATION: "DEVICE_PLURAL_VARIATION";
|
|
968
|
+
}>;
|
|
969
|
+
keyPath: z.ZodString;
|
|
970
|
+
device: z.ZodOptional<z.ZodEnum<{
|
|
971
|
+
readonly MAC: "MAC";
|
|
972
|
+
readonly IPHONE: "IPHONE";
|
|
973
|
+
readonly APPLE_WATCH: "APPLE_WATCH";
|
|
974
|
+
readonly IPAD: "IPAD";
|
|
975
|
+
readonly OTHER: "OTHER";
|
|
976
|
+
}>>;
|
|
977
|
+
pluralForm: z.ZodOptional<z.ZodEnum<{
|
|
978
|
+
readonly ZERO: "ZERO";
|
|
979
|
+
readonly ONE: "ONE";
|
|
980
|
+
readonly TWO: "TWO";
|
|
981
|
+
readonly FEW: "FEW";
|
|
982
|
+
readonly MANY: "MANY";
|
|
983
|
+
readonly OTHER: "OTHER";
|
|
984
|
+
}>>;
|
|
985
|
+
formatSpecifier: z.ZodOptional<z.ZodString>;
|
|
986
|
+
argNum: z.ZodOptional<z.ZodNumber>;
|
|
987
|
+
isPlural: z.ZodBoolean;
|
|
988
|
+
}, z.core.$strip>>;
|
|
989
|
+
}, z.core.$strip>>;
|
|
990
|
+
}, z.core.$strip>>;
|
|
991
|
+
parsedContentStorageId: z.ZodOptional<z.ZodNever>;
|
|
992
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
993
|
+
type: z.ZodLiteral<"remote">;
|
|
994
|
+
parsedContentStorageId: z.ZodString;
|
|
995
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
996
|
+
filePathWithLocalePlaceholder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
997
|
+
textUnits: z.ZodOptional<z.ZodNever>;
|
|
998
|
+
}, z.core.$strip>]>;
|
|
999
|
+
}, z.core.$strip>;
|
|
1000
|
+
}, z.core.$strip>>;
|
|
1001
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1002
|
+
id: z.ZodString;
|
|
1003
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1004
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1005
|
+
state: z.ZodLiteral<"reconstructed">;
|
|
1006
|
+
contentUnits: z.ZodArray<z.ZodObject<{
|
|
1007
|
+
id: z.ZodString;
|
|
1008
|
+
type: z.ZodEnum<{
|
|
1009
|
+
readonly HTML_FILE: "HTML_FILE";
|
|
1010
|
+
readonly DOCX_FILE: "DOCX_FILE";
|
|
1011
|
+
readonly PPTX_FILE: "PPTX_FILE";
|
|
1012
|
+
readonly XLSX_FILE: "XLSX_FILE";
|
|
1013
|
+
readonly MARKDOWN_FILE: "MARKDOWN_FILE";
|
|
1014
|
+
readonly IDML_FILE: "IDML_FILE";
|
|
1015
|
+
readonly JSON_FILE: "JSON_FILE";
|
|
1016
|
+
readonly YAML_FILE: "YAML_FILE";
|
|
1017
|
+
readonly XCSTRINGS_FILE: "XCSTRINGS_FILE";
|
|
1018
|
+
readonly TEXT: "TEXT";
|
|
1019
|
+
readonly HTML: "HTML";
|
|
1020
|
+
readonly JSON: "JSON";
|
|
1021
|
+
readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
|
|
1022
|
+
}>;
|
|
1023
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
1024
|
+
type: z.ZodLiteral<"inline">;
|
|
1025
|
+
value: z.ZodString;
|
|
1026
|
+
storageId: z.ZodOptional<z.ZodNever>;
|
|
1027
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1028
|
+
type: z.ZodLiteral<"remote">;
|
|
1029
|
+
storageId: z.ZodString;
|
|
1030
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
1031
|
+
value: z.ZodOptional<z.ZodNever>;
|
|
1032
|
+
}, z.core.$strip>]>;
|
|
1033
|
+
context: z.ZodOptional<z.ZodString>;
|
|
1034
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1035
|
+
}, z.core.$strip>>;
|
|
1036
|
+
}, z.core.$strip>]>;
|
|
1037
|
+
export type FailedReconstructableItem = z.infer<typeof FAILED_RECONSTRUCTABLE_ITEM_SCHEMA>;
|
|
1038
|
+
export type PartiallyFailedReconstructableItem = z.infer<typeof PARTIALLY_FAILED_RECONSTRUCTABLE_ITEM_SCHEMA>;
|
|
1039
|
+
export type GeneratedContentItemResult = z.infer<typeof GENERATE_CONTENT_ITEM_RESULT_SCHEMA>;
|
|
207
1040
|
//# sourceMappingURL=generationObjects.d.ts.map
|