document-model.js 1.9.0 → 1.10.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 (45) hide show
  1. package/README.md +36 -0
  2. package/dist/color-AELCDH_b.d.cts +13 -0
  3. package/dist/color-AELCDH_b.d.ts +13 -0
  4. package/dist/color.cjs +40 -0
  5. package/dist/color.d.cts +2 -0
  6. package/dist/color.d.ts +2 -0
  7. package/dist/color.js +36 -0
  8. package/dist/content.cjs +341 -0
  9. package/dist/content.d.cts +1188 -0
  10. package/dist/content.d.ts +1188 -0
  11. package/dist/content.js +309 -0
  12. package/dist/geometry-CokwQGtJ.d.cts +27 -0
  13. package/dist/geometry-CokwQGtJ.d.ts +27 -0
  14. package/dist/geometry.cjs +43 -0
  15. package/dist/geometry.d.cts +2 -0
  16. package/dist/geometry.d.ts +2 -0
  17. package/dist/geometry.js +36 -0
  18. package/dist/index.cjs +79 -684
  19. package/dist/index.d.cts +8 -2448
  20. package/dist/index.d.ts +8 -2448
  21. package/dist/index.js +8 -613
  22. package/dist/layout.cjs +147 -0
  23. package/dist/layout.d.cts +636 -0
  24. package/dist/layout.d.ts +636 -0
  25. package/dist/layout.js +133 -0
  26. package/dist/metadata.cjs +15 -0
  27. package/dist/metadata.d.cts +15 -0
  28. package/dist/metadata.d.ts +15 -0
  29. package/dist/metadata.js +14 -0
  30. package/dist/package.cjs +14 -0
  31. package/dist/package.d.cts +528 -0
  32. package/dist/package.d.ts +528 -0
  33. package/dist/package.js +12 -0
  34. package/dist/schema-io.cjs +87 -0
  35. package/dist/schema-io.d.cts +37 -0
  36. package/dist/schema-io.d.ts +37 -0
  37. package/dist/schema-io.js +79 -0
  38. package/dist/style.cjs +23 -0
  39. package/dist/style.d.cts +24 -0
  40. package/dist/style.d.ts +24 -0
  41. package/dist/style.js +20 -0
  42. package/package.json +10 -4
  43. package/schemas/content-document.schema.json +3 -3
  44. package/schemas/document-package.schema.json +3 -3
  45. package/schemas/layout-document.schema.json +1 -1
@@ -0,0 +1,1188 @@
1
+ import { n as Color } from "./color-AELCDH_b.cjs";
2
+ import { t as Box } from "./geometry-CokwQGtJ.cjs";
3
+ import { z } from "zod";
4
+ //#region src/content.d.ts
5
+ declare const ContentRunSchema: z.ZodObject<{
6
+ text: z.ZodString;
7
+ bold: z.ZodOptional<z.ZodBoolean>;
8
+ italic: z.ZodOptional<z.ZodBoolean>;
9
+ underline: z.ZodOptional<z.ZodBoolean>;
10
+ strike: z.ZodOptional<z.ZodBoolean>;
11
+ fontFamily: z.ZodOptional<z.ZodString>;
12
+ sizePt: z.ZodOptional<z.ZodNumber>;
13
+ color: z.ZodOptional<z.ZodObject<{
14
+ r: z.ZodNumber;
15
+ g: z.ZodNumber;
16
+ b: z.ZodNumber;
17
+ }, z.core.$strip>>;
18
+ hyperlink: z.ZodOptional<z.ZodString>;
19
+ sourcePath: z.ZodOptional<z.ZodString>;
20
+ }, z.core.$strip>;
21
+ type ContentRun = z.infer<typeof ContentRunSchema>;
22
+ declare const ContentListMembershipSchema: z.ZodObject<{
23
+ numId: z.ZodString;
24
+ level: z.ZodNumber;
25
+ }, z.core.$strip>;
26
+ type ContentListMembership = z.infer<typeof ContentListMembershipSchema>;
27
+ declare const ContentParagraphSchema: z.ZodObject<{
28
+ kind: z.ZodLiteral<"paragraph">;
29
+ runs: z.ZodArray<z.ZodObject<{
30
+ text: z.ZodString;
31
+ bold: z.ZodOptional<z.ZodBoolean>;
32
+ italic: z.ZodOptional<z.ZodBoolean>;
33
+ underline: z.ZodOptional<z.ZodBoolean>;
34
+ strike: z.ZodOptional<z.ZodBoolean>;
35
+ fontFamily: z.ZodOptional<z.ZodString>;
36
+ sizePt: z.ZodOptional<z.ZodNumber>;
37
+ color: z.ZodOptional<z.ZodObject<{
38
+ r: z.ZodNumber;
39
+ g: z.ZodNumber;
40
+ b: z.ZodNumber;
41
+ }, z.core.$strip>>;
42
+ hyperlink: z.ZodOptional<z.ZodString>;
43
+ sourcePath: z.ZodOptional<z.ZodString>;
44
+ }, z.core.$strip>>;
45
+ styleId: z.ZodOptional<z.ZodString>;
46
+ alignment: z.ZodOptional<z.ZodEnum<{
47
+ left: "left";
48
+ center: "center";
49
+ right: "right";
50
+ justify: "justify";
51
+ }>>;
52
+ list: z.ZodOptional<z.ZodObject<{
53
+ numId: z.ZodString;
54
+ level: z.ZodNumber;
55
+ }, z.core.$strip>>;
56
+ spacingBeforePt: z.ZodOptional<z.ZodNumber>;
57
+ spacingAfterPt: z.ZodOptional<z.ZodNumber>;
58
+ lineSpacing: z.ZodOptional<z.ZodNumber>;
59
+ indentLeftPt: z.ZodOptional<z.ZodNumber>;
60
+ indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
61
+ sourcePath: z.ZodOptional<z.ZodString>;
62
+ }, z.core.$strip>;
63
+ type ContentParagraph = z.infer<typeof ContentParagraphSchema>;
64
+ declare const ContentImageBlockSchema: z.ZodObject<{
65
+ kind: z.ZodLiteral<"image">;
66
+ format: z.ZodEnum<{
67
+ png: "png";
68
+ jpeg: "jpeg";
69
+ }>;
70
+ base64: z.ZodString;
71
+ widthPt: z.ZodNumber;
72
+ heightPt: z.ZodNumber;
73
+ altText: z.ZodOptional<z.ZodString>;
74
+ sourcePath: z.ZodOptional<z.ZodString>;
75
+ }, z.core.$strip>;
76
+ type ContentImageBlock = z.infer<typeof ContentImageBlockSchema>;
77
+ declare const ContentPageBreakSchema: z.ZodObject<{
78
+ kind: z.ZodLiteral<"pageBreak">;
79
+ sourcePath: z.ZodOptional<z.ZodString>;
80
+ }, z.core.$strip>;
81
+ type ContentPageBreak = z.infer<typeof ContentPageBreakSchema>;
82
+ interface ContentTableCell {
83
+ blocks: ContentBlock[];
84
+ colSpan?: number;
85
+ rowSpan?: number;
86
+ background?: Color;
87
+ }
88
+ interface ContentTableRow {
89
+ cells: ContentTableCell[];
90
+ heightPt?: number;
91
+ }
92
+ interface ContentTable {
93
+ kind: 'table';
94
+ rows: ContentTableRow[];
95
+ columnWidthsPt: number[];
96
+ sourcePath?: string;
97
+ }
98
+ type ContentEmbeddedObjectKind = 'formula' | 'wordprocessing' | 'presentation' | 'spreadsheet' | 'drawing';
99
+ interface ContentEmbeddedObject {
100
+ objectKind: ContentEmbeddedObjectKind;
101
+ document: ContentDocument;
102
+ frame: Box;
103
+ }
104
+ interface ContentEmbeddedObjectBlock extends ContentEmbeddedObject {
105
+ kind: 'embeddedObject';
106
+ sourcePath?: string;
107
+ }
108
+ type ContentBlock = ContentParagraph | ContentTable | ContentImageBlock | ContentPageBreak | ContentEmbeddedObjectBlock;
109
+ declare function isContentBlock(value: unknown): value is ContentBlock;
110
+ declare const ContentBlockSchema: z.ZodCustom<ContentBlock, ContentBlock>;
111
+ declare const ContentEmbeddedObjectSchema: z.ZodCustom<ContentEmbeddedObject, ContentEmbeddedObject>;
112
+ declare const ContentEmbeddedObjectBlockSchema: z.ZodCustom<ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlock>;
113
+ declare const ContentTableCellSchema: z.ZodObject<{
114
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
115
+ colSpan: z.ZodOptional<z.ZodNumber>;
116
+ rowSpan: z.ZodOptional<z.ZodNumber>;
117
+ background: z.ZodOptional<z.ZodObject<{
118
+ r: z.ZodNumber;
119
+ g: z.ZodNumber;
120
+ b: z.ZodNumber;
121
+ }, z.core.$strip>>;
122
+ }, z.core.$strip>;
123
+ declare const ContentTableRowSchema: z.ZodObject<{
124
+ cells: z.ZodArray<z.ZodObject<{
125
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
126
+ colSpan: z.ZodOptional<z.ZodNumber>;
127
+ rowSpan: z.ZodOptional<z.ZodNumber>;
128
+ background: z.ZodOptional<z.ZodObject<{
129
+ r: z.ZodNumber;
130
+ g: z.ZodNumber;
131
+ b: z.ZodNumber;
132
+ }, z.core.$strip>>;
133
+ }, z.core.$strip>>;
134
+ heightPt: z.ZodOptional<z.ZodNumber>;
135
+ }, z.core.$strip>;
136
+ declare const ContentTableSchema: z.ZodObject<{
137
+ kind: z.ZodLiteral<"table">;
138
+ rows: z.ZodArray<z.ZodObject<{
139
+ cells: z.ZodArray<z.ZodObject<{
140
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
141
+ colSpan: z.ZodOptional<z.ZodNumber>;
142
+ rowSpan: z.ZodOptional<z.ZodNumber>;
143
+ background: z.ZodOptional<z.ZodObject<{
144
+ r: z.ZodNumber;
145
+ g: z.ZodNumber;
146
+ b: z.ZodNumber;
147
+ }, z.core.$strip>>;
148
+ }, z.core.$strip>>;
149
+ heightPt: z.ZodOptional<z.ZodNumber>;
150
+ }, z.core.$strip>>;
151
+ columnWidthsPt: z.ZodArray<z.ZodNumber>;
152
+ sourcePath: z.ZodOptional<z.ZodString>;
153
+ }, z.core.$strip>;
154
+ declare const ContentSectionSchema: z.ZodObject<{
155
+ pageSize: z.ZodObject<{
156
+ widthPt: z.ZodNumber;
157
+ heightPt: z.ZodNumber;
158
+ }, z.core.$strip>;
159
+ margins: z.ZodObject<{
160
+ topPt: z.ZodNumber;
161
+ rightPt: z.ZodNumber;
162
+ bottomPt: z.ZodNumber;
163
+ leftPt: z.ZodNumber;
164
+ }, z.core.$strip>;
165
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
166
+ }, z.core.$strip>;
167
+ type ContentSection = z.infer<typeof ContentSectionSchema>;
168
+ declare const ContentShapeSchema: z.ZodObject<{
169
+ name: z.ZodOptional<z.ZodString>;
170
+ frame: z.ZodObject<{
171
+ xPt: z.ZodNumber;
172
+ yPt: z.ZodNumber;
173
+ widthPt: z.ZodNumber;
174
+ heightPt: z.ZodNumber;
175
+ }, z.core.$strip>;
176
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
177
+ insetLeftPt: z.ZodNumber;
178
+ insetTopPt: z.ZodNumber;
179
+ insetRightPt: z.ZodNumber;
180
+ insetBottomPt: z.ZodNumber;
181
+ fontScale: z.ZodOptional<z.ZodNumber>;
182
+ lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
183
+ sourcePath: z.ZodOptional<z.ZodString>;
184
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
185
+ }, z.core.$strip>;
186
+ type ContentShape = z.infer<typeof ContentShapeSchema>;
187
+ declare const ContentSlideSchema: z.ZodObject<{
188
+ size: z.ZodObject<{
189
+ widthPt: z.ZodNumber;
190
+ heightPt: z.ZodNumber;
191
+ }, z.core.$strip>;
192
+ shapes: z.ZodArray<z.ZodObject<{
193
+ name: z.ZodOptional<z.ZodString>;
194
+ frame: z.ZodObject<{
195
+ xPt: z.ZodNumber;
196
+ yPt: z.ZodNumber;
197
+ widthPt: z.ZodNumber;
198
+ heightPt: z.ZodNumber;
199
+ }, z.core.$strip>;
200
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
201
+ insetLeftPt: z.ZodNumber;
202
+ insetTopPt: z.ZodNumber;
203
+ insetRightPt: z.ZodNumber;
204
+ insetBottomPt: z.ZodNumber;
205
+ fontScale: z.ZodOptional<z.ZodNumber>;
206
+ lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
207
+ sourcePath: z.ZodOptional<z.ZodString>;
208
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
209
+ }, z.core.$strip>>;
210
+ notes: z.ZodString;
211
+ }, z.core.$strip>;
212
+ type ContentSlide = z.infer<typeof ContentSlideSchema>;
213
+ declare const ContentCellValueSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
214
+ kind: z.ZodLiteral<"number">;
215
+ value: z.ZodNumber;
216
+ }, z.core.$strip>, z.ZodObject<{
217
+ kind: z.ZodLiteral<"percentage">;
218
+ value: z.ZodNumber;
219
+ }, z.core.$strip>, z.ZodObject<{
220
+ kind: z.ZodLiteral<"currency">;
221
+ value: z.ZodNumber;
222
+ currency: z.ZodOptional<z.ZodString>;
223
+ }, z.core.$strip>, z.ZodObject<{
224
+ kind: z.ZodLiteral<"boolean">;
225
+ value: z.ZodBoolean;
226
+ }, z.core.$strip>, z.ZodObject<{
227
+ kind: z.ZodLiteral<"date">;
228
+ value: z.ZodString;
229
+ }, z.core.$strip>, z.ZodObject<{
230
+ kind: z.ZodLiteral<"time">;
231
+ value: z.ZodString;
232
+ }, z.core.$strip>, z.ZodObject<{
233
+ kind: z.ZodLiteral<"string">;
234
+ value: z.ZodString;
235
+ }, z.core.$strip>, z.ZodObject<{
236
+ kind: z.ZodLiteral<"error">;
237
+ value: z.ZodString;
238
+ }, z.core.$strip>, z.ZodObject<{
239
+ kind: z.ZodLiteral<"empty">;
240
+ }, z.core.$strip>], "kind">;
241
+ type ContentCellValue = z.infer<typeof ContentCellValueSchema>;
242
+ declare const ContentSheetCellSchema: z.ZodObject<{
243
+ row: z.ZodNumber;
244
+ column: z.ZodNumber;
245
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
246
+ kind: z.ZodLiteral<"number">;
247
+ value: z.ZodNumber;
248
+ }, z.core.$strip>, z.ZodObject<{
249
+ kind: z.ZodLiteral<"percentage">;
250
+ value: z.ZodNumber;
251
+ }, z.core.$strip>, z.ZodObject<{
252
+ kind: z.ZodLiteral<"currency">;
253
+ value: z.ZodNumber;
254
+ currency: z.ZodOptional<z.ZodString>;
255
+ }, z.core.$strip>, z.ZodObject<{
256
+ kind: z.ZodLiteral<"boolean">;
257
+ value: z.ZodBoolean;
258
+ }, z.core.$strip>, z.ZodObject<{
259
+ kind: z.ZodLiteral<"date">;
260
+ value: z.ZodString;
261
+ }, z.core.$strip>, z.ZodObject<{
262
+ kind: z.ZodLiteral<"time">;
263
+ value: z.ZodString;
264
+ }, z.core.$strip>, z.ZodObject<{
265
+ kind: z.ZodLiteral<"string">;
266
+ value: z.ZodString;
267
+ }, z.core.$strip>, z.ZodObject<{
268
+ kind: z.ZodLiteral<"error">;
269
+ value: z.ZodString;
270
+ }, z.core.$strip>, z.ZodObject<{
271
+ kind: z.ZodLiteral<"empty">;
272
+ }, z.core.$strip>], "kind">;
273
+ formula: z.ZodOptional<z.ZodString>;
274
+ displayText: z.ZodString;
275
+ runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
276
+ text: z.ZodString;
277
+ bold: z.ZodOptional<z.ZodBoolean>;
278
+ italic: z.ZodOptional<z.ZodBoolean>;
279
+ underline: z.ZodOptional<z.ZodBoolean>;
280
+ strike: z.ZodOptional<z.ZodBoolean>;
281
+ fontFamily: z.ZodOptional<z.ZodString>;
282
+ sizePt: z.ZodOptional<z.ZodNumber>;
283
+ color: z.ZodOptional<z.ZodObject<{
284
+ r: z.ZodNumber;
285
+ g: z.ZodNumber;
286
+ b: z.ZodNumber;
287
+ }, z.core.$strip>>;
288
+ hyperlink: z.ZodOptional<z.ZodString>;
289
+ sourcePath: z.ZodOptional<z.ZodString>;
290
+ }, z.core.$strip>>>;
291
+ colSpan: z.ZodOptional<z.ZodNumber>;
292
+ rowSpan: z.ZodOptional<z.ZodNumber>;
293
+ }, z.core.$strip>;
294
+ type ContentSheetCell = z.infer<typeof ContentSheetCellSchema>;
295
+ declare const ContentSheetColumnSchema: z.ZodObject<{
296
+ index: z.ZodNumber;
297
+ widthPt: z.ZodNumber;
298
+ hidden: z.ZodOptional<z.ZodBoolean>;
299
+ }, z.core.$strip>;
300
+ type ContentSheetColumn = z.infer<typeof ContentSheetColumnSchema>;
301
+ declare const ContentSheetRowSchema: z.ZodObject<{
302
+ index: z.ZodNumber;
303
+ heightPt: z.ZodNumber;
304
+ hidden: z.ZodOptional<z.ZodBoolean>;
305
+ }, z.core.$strip>;
306
+ type ContentSheetRow = z.infer<typeof ContentSheetRowSchema>;
307
+ declare const ContentSheetPrintRangeSchema: z.ZodObject<{
308
+ startRow: z.ZodNumber;
309
+ startColumn: z.ZodNumber;
310
+ endRow: z.ZodNumber;
311
+ endColumn: z.ZodNumber;
312
+ }, z.core.$strip>;
313
+ type ContentSheetPrintRange = z.infer<typeof ContentSheetPrintRangeSchema>;
314
+ declare const ContentSheetRepeatRangeSchema: z.ZodObject<{
315
+ start: z.ZodNumber;
316
+ end: z.ZodNumber;
317
+ }, z.core.$strip>;
318
+ type ContentSheetRepeatRange = z.infer<typeof ContentSheetRepeatRangeSchema>;
319
+ declare const ContentSheetPrintSettingsSchema: z.ZodObject<{
320
+ pageSize: z.ZodObject<{
321
+ widthPt: z.ZodNumber;
322
+ heightPt: z.ZodNumber;
323
+ }, z.core.$strip>;
324
+ margins: z.ZodObject<{
325
+ topPt: z.ZodNumber;
326
+ rightPt: z.ZodNumber;
327
+ bottomPt: z.ZodNumber;
328
+ leftPt: z.ZodNumber;
329
+ }, z.core.$strip>;
330
+ printRange: z.ZodOptional<z.ZodObject<{
331
+ startRow: z.ZodNumber;
332
+ startColumn: z.ZodNumber;
333
+ endRow: z.ZodNumber;
334
+ endColumn: z.ZodNumber;
335
+ }, z.core.$strip>>;
336
+ scale: z.ZodOptional<z.ZodNumber>;
337
+ fitToPages: z.ZodOptional<z.ZodObject<{
338
+ width: z.ZodNumber;
339
+ height: z.ZodNumber;
340
+ }, z.core.$strip>>;
341
+ repeatRows: z.ZodOptional<z.ZodObject<{
342
+ start: z.ZodNumber;
343
+ end: z.ZodNumber;
344
+ }, z.core.$strip>>;
345
+ repeatColumns: z.ZodOptional<z.ZodObject<{
346
+ start: z.ZodNumber;
347
+ end: z.ZodNumber;
348
+ }, z.core.$strip>>;
349
+ gridlines: z.ZodBoolean;
350
+ headers: z.ZodBoolean;
351
+ pageOrder: z.ZodEnum<{
352
+ downThenOver: "downThenOver";
353
+ overThenDown: "overThenDown";
354
+ }>;
355
+ manualBreaks: z.ZodOptional<z.ZodObject<{
356
+ rows: z.ZodArray<z.ZodNumber>;
357
+ columns: z.ZodArray<z.ZodNumber>;
358
+ }, z.core.$strip>>;
359
+ }, z.core.$strip>;
360
+ type ContentSheetPrintSettings = z.infer<typeof ContentSheetPrintSettingsSchema>;
361
+ declare const ContentSheetImageSchema: z.ZodObject<{
362
+ kind: z.ZodLiteral<"image">;
363
+ format: z.ZodEnum<{
364
+ png: "png";
365
+ jpeg: "jpeg";
366
+ }>;
367
+ base64: z.ZodString;
368
+ widthPt: z.ZodNumber;
369
+ heightPt: z.ZodNumber;
370
+ altText: z.ZodOptional<z.ZodString>;
371
+ sourcePath: z.ZodOptional<z.ZodString>;
372
+ anchorRow: z.ZodNumber;
373
+ anchorColumn: z.ZodNumber;
374
+ offsetXPt: z.ZodNumber;
375
+ offsetYPt: z.ZodNumber;
376
+ }, z.core.$strip>;
377
+ type ContentSheetImage = z.infer<typeof ContentSheetImageSchema>;
378
+ declare const ContentSheetSchema: z.ZodObject<{
379
+ name: z.ZodString;
380
+ cells: z.ZodArray<z.ZodObject<{
381
+ row: z.ZodNumber;
382
+ column: z.ZodNumber;
383
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
384
+ kind: z.ZodLiteral<"number">;
385
+ value: z.ZodNumber;
386
+ }, z.core.$strip>, z.ZodObject<{
387
+ kind: z.ZodLiteral<"percentage">;
388
+ value: z.ZodNumber;
389
+ }, z.core.$strip>, z.ZodObject<{
390
+ kind: z.ZodLiteral<"currency">;
391
+ value: z.ZodNumber;
392
+ currency: z.ZodOptional<z.ZodString>;
393
+ }, z.core.$strip>, z.ZodObject<{
394
+ kind: z.ZodLiteral<"boolean">;
395
+ value: z.ZodBoolean;
396
+ }, z.core.$strip>, z.ZodObject<{
397
+ kind: z.ZodLiteral<"date">;
398
+ value: z.ZodString;
399
+ }, z.core.$strip>, z.ZodObject<{
400
+ kind: z.ZodLiteral<"time">;
401
+ value: z.ZodString;
402
+ }, z.core.$strip>, z.ZodObject<{
403
+ kind: z.ZodLiteral<"string">;
404
+ value: z.ZodString;
405
+ }, z.core.$strip>, z.ZodObject<{
406
+ kind: z.ZodLiteral<"error">;
407
+ value: z.ZodString;
408
+ }, z.core.$strip>, z.ZodObject<{
409
+ kind: z.ZodLiteral<"empty">;
410
+ }, z.core.$strip>], "kind">;
411
+ formula: z.ZodOptional<z.ZodString>;
412
+ displayText: z.ZodString;
413
+ runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
414
+ text: z.ZodString;
415
+ bold: z.ZodOptional<z.ZodBoolean>;
416
+ italic: z.ZodOptional<z.ZodBoolean>;
417
+ underline: z.ZodOptional<z.ZodBoolean>;
418
+ strike: z.ZodOptional<z.ZodBoolean>;
419
+ fontFamily: z.ZodOptional<z.ZodString>;
420
+ sizePt: z.ZodOptional<z.ZodNumber>;
421
+ color: z.ZodOptional<z.ZodObject<{
422
+ r: z.ZodNumber;
423
+ g: z.ZodNumber;
424
+ b: z.ZodNumber;
425
+ }, z.core.$strip>>;
426
+ hyperlink: z.ZodOptional<z.ZodString>;
427
+ sourcePath: z.ZodOptional<z.ZodString>;
428
+ }, z.core.$strip>>>;
429
+ colSpan: z.ZodOptional<z.ZodNumber>;
430
+ rowSpan: z.ZodOptional<z.ZodNumber>;
431
+ }, z.core.$strip>>;
432
+ columns: z.ZodArray<z.ZodObject<{
433
+ index: z.ZodNumber;
434
+ widthPt: z.ZodNumber;
435
+ hidden: z.ZodOptional<z.ZodBoolean>;
436
+ }, z.core.$strip>>;
437
+ rows: z.ZodArray<z.ZodObject<{
438
+ index: z.ZodNumber;
439
+ heightPt: z.ZodNumber;
440
+ hidden: z.ZodOptional<z.ZodBoolean>;
441
+ }, z.core.$strip>>;
442
+ images: z.ZodArray<z.ZodObject<{
443
+ kind: z.ZodLiteral<"image">;
444
+ format: z.ZodEnum<{
445
+ png: "png";
446
+ jpeg: "jpeg";
447
+ }>;
448
+ base64: z.ZodString;
449
+ widthPt: z.ZodNumber;
450
+ heightPt: z.ZodNumber;
451
+ altText: z.ZodOptional<z.ZodString>;
452
+ sourcePath: z.ZodOptional<z.ZodString>;
453
+ anchorRow: z.ZodNumber;
454
+ anchorColumn: z.ZodNumber;
455
+ offsetXPt: z.ZodNumber;
456
+ offsetYPt: z.ZodNumber;
457
+ }, z.core.$strip>>;
458
+ printSettings: z.ZodObject<{
459
+ pageSize: z.ZodObject<{
460
+ widthPt: z.ZodNumber;
461
+ heightPt: z.ZodNumber;
462
+ }, z.core.$strip>;
463
+ margins: z.ZodObject<{
464
+ topPt: z.ZodNumber;
465
+ rightPt: z.ZodNumber;
466
+ bottomPt: z.ZodNumber;
467
+ leftPt: z.ZodNumber;
468
+ }, z.core.$strip>;
469
+ printRange: z.ZodOptional<z.ZodObject<{
470
+ startRow: z.ZodNumber;
471
+ startColumn: z.ZodNumber;
472
+ endRow: z.ZodNumber;
473
+ endColumn: z.ZodNumber;
474
+ }, z.core.$strip>>;
475
+ scale: z.ZodOptional<z.ZodNumber>;
476
+ fitToPages: z.ZodOptional<z.ZodObject<{
477
+ width: z.ZodNumber;
478
+ height: z.ZodNumber;
479
+ }, z.core.$strip>>;
480
+ repeatRows: z.ZodOptional<z.ZodObject<{
481
+ start: z.ZodNumber;
482
+ end: z.ZodNumber;
483
+ }, z.core.$strip>>;
484
+ repeatColumns: z.ZodOptional<z.ZodObject<{
485
+ start: z.ZodNumber;
486
+ end: z.ZodNumber;
487
+ }, z.core.$strip>>;
488
+ gridlines: z.ZodBoolean;
489
+ headers: z.ZodBoolean;
490
+ pageOrder: z.ZodEnum<{
491
+ downThenOver: "downThenOver";
492
+ overThenDown: "overThenDown";
493
+ }>;
494
+ manualBreaks: z.ZodOptional<z.ZodObject<{
495
+ rows: z.ZodArray<z.ZodNumber>;
496
+ columns: z.ZodArray<z.ZodNumber>;
497
+ }, z.core.$strip>>;
498
+ }, z.core.$strip>;
499
+ embeddedObjects: z.ZodOptional<z.ZodArray<z.ZodCustom<ContentEmbeddedObject, ContentEmbeddedObject>>>;
500
+ }, z.core.$strip>;
501
+ type ContentSheet = z.infer<typeof ContentSheetSchema>;
502
+ declare const ContentStrokeSchema: z.ZodObject<{
503
+ color: z.ZodObject<{
504
+ r: z.ZodNumber;
505
+ g: z.ZodNumber;
506
+ b: z.ZodNumber;
507
+ }, z.core.$strip>;
508
+ widthPt: z.ZodNumber;
509
+ }, z.core.$strip>;
510
+ type ContentStroke = z.infer<typeof ContentStrokeSchema>;
511
+ declare const ContentPathPointSchema: z.ZodObject<{
512
+ xPt: z.ZodNumber;
513
+ yPt: z.ZodNumber;
514
+ }, z.core.$strip>;
515
+ type ContentPathPoint = z.infer<typeof ContentPathPointSchema>;
516
+ declare const ContentPathSegmentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
517
+ kind: z.ZodLiteral<"line">;
518
+ to: z.ZodObject<{
519
+ xPt: z.ZodNumber;
520
+ yPt: z.ZodNumber;
521
+ }, z.core.$strip>;
522
+ }, z.core.$strip>, z.ZodObject<{
523
+ kind: z.ZodLiteral<"cubic">;
524
+ control1: z.ZodObject<{
525
+ xPt: z.ZodNumber;
526
+ yPt: z.ZodNumber;
527
+ }, z.core.$strip>;
528
+ control2: z.ZodObject<{
529
+ xPt: z.ZodNumber;
530
+ yPt: z.ZodNumber;
531
+ }, z.core.$strip>;
532
+ to: z.ZodObject<{
533
+ xPt: z.ZodNumber;
534
+ yPt: z.ZodNumber;
535
+ }, z.core.$strip>;
536
+ }, z.core.$strip>], "kind">;
537
+ type ContentPathSegment = z.infer<typeof ContentPathSegmentSchema>;
538
+ declare const ContentSubpathSchema: z.ZodObject<{
539
+ start: z.ZodObject<{
540
+ xPt: z.ZodNumber;
541
+ yPt: z.ZodNumber;
542
+ }, z.core.$strip>;
543
+ segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
544
+ kind: z.ZodLiteral<"line">;
545
+ to: z.ZodObject<{
546
+ xPt: z.ZodNumber;
547
+ yPt: z.ZodNumber;
548
+ }, z.core.$strip>;
549
+ }, z.core.$strip>, z.ZodObject<{
550
+ kind: z.ZodLiteral<"cubic">;
551
+ control1: z.ZodObject<{
552
+ xPt: z.ZodNumber;
553
+ yPt: z.ZodNumber;
554
+ }, z.core.$strip>;
555
+ control2: z.ZodObject<{
556
+ xPt: z.ZodNumber;
557
+ yPt: z.ZodNumber;
558
+ }, z.core.$strip>;
559
+ to: z.ZodObject<{
560
+ xPt: z.ZodNumber;
561
+ yPt: z.ZodNumber;
562
+ }, z.core.$strip>;
563
+ }, z.core.$strip>], "kind">>;
564
+ closed: z.ZodBoolean;
565
+ }, z.core.$strip>;
566
+ type ContentSubpath = z.infer<typeof ContentSubpathSchema>;
567
+ declare const ContentVectorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
568
+ kind: z.ZodLiteral<"rect">;
569
+ frame: z.ZodObject<{
570
+ xPt: z.ZodNumber;
571
+ yPt: z.ZodNumber;
572
+ widthPt: z.ZodNumber;
573
+ heightPt: z.ZodNumber;
574
+ }, z.core.$strip>;
575
+ fill: z.ZodOptional<z.ZodObject<{
576
+ r: z.ZodNumber;
577
+ g: z.ZodNumber;
578
+ b: z.ZodNumber;
579
+ }, z.core.$strip>>;
580
+ stroke: z.ZodOptional<z.ZodObject<{
581
+ color: z.ZodObject<{
582
+ r: z.ZodNumber;
583
+ g: z.ZodNumber;
584
+ b: z.ZodNumber;
585
+ }, z.core.$strip>;
586
+ widthPt: z.ZodNumber;
587
+ }, z.core.$strip>>;
588
+ sourcePath: z.ZodOptional<z.ZodString>;
589
+ }, z.core.$strip>, z.ZodObject<{
590
+ kind: z.ZodLiteral<"ellipse">;
591
+ frame: z.ZodObject<{
592
+ xPt: z.ZodNumber;
593
+ yPt: z.ZodNumber;
594
+ widthPt: z.ZodNumber;
595
+ heightPt: z.ZodNumber;
596
+ }, z.core.$strip>;
597
+ fill: z.ZodOptional<z.ZodObject<{
598
+ r: z.ZodNumber;
599
+ g: z.ZodNumber;
600
+ b: z.ZodNumber;
601
+ }, z.core.$strip>>;
602
+ stroke: z.ZodOptional<z.ZodObject<{
603
+ color: z.ZodObject<{
604
+ r: z.ZodNumber;
605
+ g: z.ZodNumber;
606
+ b: z.ZodNumber;
607
+ }, z.core.$strip>;
608
+ widthPt: z.ZodNumber;
609
+ }, z.core.$strip>>;
610
+ sourcePath: z.ZodOptional<z.ZodString>;
611
+ }, z.core.$strip>, z.ZodObject<{
612
+ kind: z.ZodLiteral<"line">;
613
+ from: z.ZodObject<{
614
+ xPt: z.ZodNumber;
615
+ yPt: z.ZodNumber;
616
+ }, z.core.$strip>;
617
+ to: z.ZodObject<{
618
+ xPt: z.ZodNumber;
619
+ yPt: z.ZodNumber;
620
+ }, z.core.$strip>;
621
+ stroke: z.ZodObject<{
622
+ color: z.ZodObject<{
623
+ r: z.ZodNumber;
624
+ g: z.ZodNumber;
625
+ b: z.ZodNumber;
626
+ }, z.core.$strip>;
627
+ widthPt: z.ZodNumber;
628
+ }, z.core.$strip>;
629
+ sourcePath: z.ZodOptional<z.ZodString>;
630
+ }, z.core.$strip>, z.ZodObject<{
631
+ kind: z.ZodLiteral<"path">;
632
+ frame: z.ZodObject<{
633
+ xPt: z.ZodNumber;
634
+ yPt: z.ZodNumber;
635
+ widthPt: z.ZodNumber;
636
+ heightPt: z.ZodNumber;
637
+ }, z.core.$strip>;
638
+ subpaths: z.ZodArray<z.ZodObject<{
639
+ start: z.ZodObject<{
640
+ xPt: z.ZodNumber;
641
+ yPt: z.ZodNumber;
642
+ }, z.core.$strip>;
643
+ segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
644
+ kind: z.ZodLiteral<"line">;
645
+ to: z.ZodObject<{
646
+ xPt: z.ZodNumber;
647
+ yPt: z.ZodNumber;
648
+ }, z.core.$strip>;
649
+ }, z.core.$strip>, z.ZodObject<{
650
+ kind: z.ZodLiteral<"cubic">;
651
+ control1: z.ZodObject<{
652
+ xPt: z.ZodNumber;
653
+ yPt: z.ZodNumber;
654
+ }, z.core.$strip>;
655
+ control2: z.ZodObject<{
656
+ xPt: z.ZodNumber;
657
+ yPt: z.ZodNumber;
658
+ }, z.core.$strip>;
659
+ to: z.ZodObject<{
660
+ xPt: z.ZodNumber;
661
+ yPt: z.ZodNumber;
662
+ }, z.core.$strip>;
663
+ }, z.core.$strip>], "kind">>;
664
+ closed: z.ZodBoolean;
665
+ }, z.core.$strip>>;
666
+ fill: z.ZodOptional<z.ZodObject<{
667
+ r: z.ZodNumber;
668
+ g: z.ZodNumber;
669
+ b: z.ZodNumber;
670
+ }, z.core.$strip>>;
671
+ fillRule: z.ZodOptional<z.ZodEnum<{
672
+ nonzero: "nonzero";
673
+ evenodd: "evenodd";
674
+ }>>;
675
+ stroke: z.ZodOptional<z.ZodObject<{
676
+ color: z.ZodObject<{
677
+ r: z.ZodNumber;
678
+ g: z.ZodNumber;
679
+ b: z.ZodNumber;
680
+ }, z.core.$strip>;
681
+ widthPt: z.ZodNumber;
682
+ }, z.core.$strip>>;
683
+ sourcePath: z.ZodOptional<z.ZodString>;
684
+ }, z.core.$strip>], "kind">;
685
+ type ContentVector = z.infer<typeof ContentVectorSchema>;
686
+ declare const ContentDrawPageSchema: z.ZodObject<{
687
+ size: z.ZodObject<{
688
+ widthPt: z.ZodNumber;
689
+ heightPt: z.ZodNumber;
690
+ }, z.core.$strip>;
691
+ shapes: z.ZodArray<z.ZodObject<{
692
+ name: z.ZodOptional<z.ZodString>;
693
+ frame: z.ZodObject<{
694
+ xPt: z.ZodNumber;
695
+ yPt: z.ZodNumber;
696
+ widthPt: z.ZodNumber;
697
+ heightPt: z.ZodNumber;
698
+ }, z.core.$strip>;
699
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
700
+ insetLeftPt: z.ZodNumber;
701
+ insetTopPt: z.ZodNumber;
702
+ insetRightPt: z.ZodNumber;
703
+ insetBottomPt: z.ZodNumber;
704
+ fontScale: z.ZodOptional<z.ZodNumber>;
705
+ lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
706
+ sourcePath: z.ZodOptional<z.ZodString>;
707
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
708
+ }, z.core.$strip>>;
709
+ vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
710
+ kind: z.ZodLiteral<"rect">;
711
+ frame: z.ZodObject<{
712
+ xPt: z.ZodNumber;
713
+ yPt: z.ZodNumber;
714
+ widthPt: z.ZodNumber;
715
+ heightPt: z.ZodNumber;
716
+ }, z.core.$strip>;
717
+ fill: z.ZodOptional<z.ZodObject<{
718
+ r: z.ZodNumber;
719
+ g: z.ZodNumber;
720
+ b: z.ZodNumber;
721
+ }, z.core.$strip>>;
722
+ stroke: z.ZodOptional<z.ZodObject<{
723
+ color: z.ZodObject<{
724
+ r: z.ZodNumber;
725
+ g: z.ZodNumber;
726
+ b: z.ZodNumber;
727
+ }, z.core.$strip>;
728
+ widthPt: z.ZodNumber;
729
+ }, z.core.$strip>>;
730
+ sourcePath: z.ZodOptional<z.ZodString>;
731
+ }, z.core.$strip>, z.ZodObject<{
732
+ kind: z.ZodLiteral<"ellipse">;
733
+ frame: z.ZodObject<{
734
+ xPt: z.ZodNumber;
735
+ yPt: z.ZodNumber;
736
+ widthPt: z.ZodNumber;
737
+ heightPt: z.ZodNumber;
738
+ }, z.core.$strip>;
739
+ fill: z.ZodOptional<z.ZodObject<{
740
+ r: z.ZodNumber;
741
+ g: z.ZodNumber;
742
+ b: z.ZodNumber;
743
+ }, z.core.$strip>>;
744
+ stroke: z.ZodOptional<z.ZodObject<{
745
+ color: z.ZodObject<{
746
+ r: z.ZodNumber;
747
+ g: z.ZodNumber;
748
+ b: z.ZodNumber;
749
+ }, z.core.$strip>;
750
+ widthPt: z.ZodNumber;
751
+ }, z.core.$strip>>;
752
+ sourcePath: z.ZodOptional<z.ZodString>;
753
+ }, z.core.$strip>, z.ZodObject<{
754
+ kind: z.ZodLiteral<"line">;
755
+ from: z.ZodObject<{
756
+ xPt: z.ZodNumber;
757
+ yPt: z.ZodNumber;
758
+ }, z.core.$strip>;
759
+ to: z.ZodObject<{
760
+ xPt: z.ZodNumber;
761
+ yPt: z.ZodNumber;
762
+ }, z.core.$strip>;
763
+ stroke: z.ZodObject<{
764
+ color: z.ZodObject<{
765
+ r: z.ZodNumber;
766
+ g: z.ZodNumber;
767
+ b: z.ZodNumber;
768
+ }, z.core.$strip>;
769
+ widthPt: z.ZodNumber;
770
+ }, z.core.$strip>;
771
+ sourcePath: z.ZodOptional<z.ZodString>;
772
+ }, z.core.$strip>, z.ZodObject<{
773
+ kind: z.ZodLiteral<"path">;
774
+ frame: z.ZodObject<{
775
+ xPt: z.ZodNumber;
776
+ yPt: z.ZodNumber;
777
+ widthPt: z.ZodNumber;
778
+ heightPt: z.ZodNumber;
779
+ }, z.core.$strip>;
780
+ subpaths: z.ZodArray<z.ZodObject<{
781
+ start: z.ZodObject<{
782
+ xPt: z.ZodNumber;
783
+ yPt: z.ZodNumber;
784
+ }, z.core.$strip>;
785
+ segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
786
+ kind: z.ZodLiteral<"line">;
787
+ to: z.ZodObject<{
788
+ xPt: z.ZodNumber;
789
+ yPt: z.ZodNumber;
790
+ }, z.core.$strip>;
791
+ }, z.core.$strip>, z.ZodObject<{
792
+ kind: z.ZodLiteral<"cubic">;
793
+ control1: z.ZodObject<{
794
+ xPt: z.ZodNumber;
795
+ yPt: z.ZodNumber;
796
+ }, z.core.$strip>;
797
+ control2: z.ZodObject<{
798
+ xPt: z.ZodNumber;
799
+ yPt: z.ZodNumber;
800
+ }, z.core.$strip>;
801
+ to: z.ZodObject<{
802
+ xPt: z.ZodNumber;
803
+ yPt: z.ZodNumber;
804
+ }, z.core.$strip>;
805
+ }, z.core.$strip>], "kind">>;
806
+ closed: z.ZodBoolean;
807
+ }, z.core.$strip>>;
808
+ fill: z.ZodOptional<z.ZodObject<{
809
+ r: z.ZodNumber;
810
+ g: z.ZodNumber;
811
+ b: z.ZodNumber;
812
+ }, z.core.$strip>>;
813
+ fillRule: z.ZodOptional<z.ZodEnum<{
814
+ nonzero: "nonzero";
815
+ evenodd: "evenodd";
816
+ }>>;
817
+ stroke: z.ZodOptional<z.ZodObject<{
818
+ color: z.ZodObject<{
819
+ r: z.ZodNumber;
820
+ g: z.ZodNumber;
821
+ b: z.ZodNumber;
822
+ }, z.core.$strip>;
823
+ widthPt: z.ZodNumber;
824
+ }, z.core.$strip>>;
825
+ sourcePath: z.ZodOptional<z.ZodString>;
826
+ }, z.core.$strip>], "kind">>;
827
+ }, z.core.$strip>;
828
+ type ContentDrawPage = z.infer<typeof ContentDrawPageSchema>;
829
+ declare const CONTENT_FORMAT_VERSION = 1;
830
+ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
831
+ kind: z.ZodLiteral<"wordprocessing">;
832
+ formatVersion: z.ZodLiteral<1>;
833
+ metadata: z.ZodObject<{
834
+ title: z.ZodOptional<z.ZodString>;
835
+ author: z.ZodOptional<z.ZodString>;
836
+ subject: z.ZodOptional<z.ZodString>;
837
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
838
+ creator: z.ZodOptional<z.ZodString>;
839
+ producer: z.ZodOptional<z.ZodString>;
840
+ createdIso: z.ZodOptional<z.ZodString>;
841
+ modifiedIso: z.ZodOptional<z.ZodString>;
842
+ }, z.core.$strip>;
843
+ sections: z.ZodArray<z.ZodObject<{
844
+ pageSize: z.ZodObject<{
845
+ widthPt: z.ZodNumber;
846
+ heightPt: z.ZodNumber;
847
+ }, z.core.$strip>;
848
+ margins: z.ZodObject<{
849
+ topPt: z.ZodNumber;
850
+ rightPt: z.ZodNumber;
851
+ bottomPt: z.ZodNumber;
852
+ leftPt: z.ZodNumber;
853
+ }, z.core.$strip>;
854
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
855
+ }, z.core.$strip>>;
856
+ }, z.core.$strip>, z.ZodObject<{
857
+ kind: z.ZodLiteral<"presentation">;
858
+ formatVersion: z.ZodLiteral<1>;
859
+ metadata: z.ZodObject<{
860
+ title: z.ZodOptional<z.ZodString>;
861
+ author: z.ZodOptional<z.ZodString>;
862
+ subject: z.ZodOptional<z.ZodString>;
863
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
864
+ creator: z.ZodOptional<z.ZodString>;
865
+ producer: z.ZodOptional<z.ZodString>;
866
+ createdIso: z.ZodOptional<z.ZodString>;
867
+ modifiedIso: z.ZodOptional<z.ZodString>;
868
+ }, z.core.$strip>;
869
+ slides: z.ZodArray<z.ZodObject<{
870
+ size: z.ZodObject<{
871
+ widthPt: z.ZodNumber;
872
+ heightPt: z.ZodNumber;
873
+ }, z.core.$strip>;
874
+ shapes: z.ZodArray<z.ZodObject<{
875
+ name: z.ZodOptional<z.ZodString>;
876
+ frame: z.ZodObject<{
877
+ xPt: z.ZodNumber;
878
+ yPt: z.ZodNumber;
879
+ widthPt: z.ZodNumber;
880
+ heightPt: z.ZodNumber;
881
+ }, z.core.$strip>;
882
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
883
+ insetLeftPt: z.ZodNumber;
884
+ insetTopPt: z.ZodNumber;
885
+ insetRightPt: z.ZodNumber;
886
+ insetBottomPt: z.ZodNumber;
887
+ fontScale: z.ZodOptional<z.ZodNumber>;
888
+ lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
889
+ sourcePath: z.ZodOptional<z.ZodString>;
890
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
891
+ }, z.core.$strip>>;
892
+ notes: z.ZodString;
893
+ }, z.core.$strip>>;
894
+ }, z.core.$strip>, z.ZodObject<{
895
+ kind: z.ZodLiteral<"spreadsheet">;
896
+ formatVersion: z.ZodLiteral<1>;
897
+ metadata: z.ZodObject<{
898
+ title: z.ZodOptional<z.ZodString>;
899
+ author: z.ZodOptional<z.ZodString>;
900
+ subject: z.ZodOptional<z.ZodString>;
901
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
902
+ creator: z.ZodOptional<z.ZodString>;
903
+ producer: z.ZodOptional<z.ZodString>;
904
+ createdIso: z.ZodOptional<z.ZodString>;
905
+ modifiedIso: z.ZodOptional<z.ZodString>;
906
+ }, z.core.$strip>;
907
+ sheets: z.ZodArray<z.ZodObject<{
908
+ name: z.ZodString;
909
+ cells: z.ZodArray<z.ZodObject<{
910
+ row: z.ZodNumber;
911
+ column: z.ZodNumber;
912
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
913
+ kind: z.ZodLiteral<"number">;
914
+ value: z.ZodNumber;
915
+ }, z.core.$strip>, z.ZodObject<{
916
+ kind: z.ZodLiteral<"percentage">;
917
+ value: z.ZodNumber;
918
+ }, z.core.$strip>, z.ZodObject<{
919
+ kind: z.ZodLiteral<"currency">;
920
+ value: z.ZodNumber;
921
+ currency: z.ZodOptional<z.ZodString>;
922
+ }, z.core.$strip>, z.ZodObject<{
923
+ kind: z.ZodLiteral<"boolean">;
924
+ value: z.ZodBoolean;
925
+ }, z.core.$strip>, z.ZodObject<{
926
+ kind: z.ZodLiteral<"date">;
927
+ value: z.ZodString;
928
+ }, z.core.$strip>, z.ZodObject<{
929
+ kind: z.ZodLiteral<"time">;
930
+ value: z.ZodString;
931
+ }, z.core.$strip>, z.ZodObject<{
932
+ kind: z.ZodLiteral<"string">;
933
+ value: z.ZodString;
934
+ }, z.core.$strip>, z.ZodObject<{
935
+ kind: z.ZodLiteral<"error">;
936
+ value: z.ZodString;
937
+ }, z.core.$strip>, z.ZodObject<{
938
+ kind: z.ZodLiteral<"empty">;
939
+ }, z.core.$strip>], "kind">;
940
+ formula: z.ZodOptional<z.ZodString>;
941
+ displayText: z.ZodString;
942
+ runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
943
+ text: z.ZodString;
944
+ bold: z.ZodOptional<z.ZodBoolean>;
945
+ italic: z.ZodOptional<z.ZodBoolean>;
946
+ underline: z.ZodOptional<z.ZodBoolean>;
947
+ strike: z.ZodOptional<z.ZodBoolean>;
948
+ fontFamily: z.ZodOptional<z.ZodString>;
949
+ sizePt: z.ZodOptional<z.ZodNumber>;
950
+ color: z.ZodOptional<z.ZodObject<{
951
+ r: z.ZodNumber;
952
+ g: z.ZodNumber;
953
+ b: z.ZodNumber;
954
+ }, z.core.$strip>>;
955
+ hyperlink: z.ZodOptional<z.ZodString>;
956
+ sourcePath: z.ZodOptional<z.ZodString>;
957
+ }, z.core.$strip>>>;
958
+ colSpan: z.ZodOptional<z.ZodNumber>;
959
+ rowSpan: z.ZodOptional<z.ZodNumber>;
960
+ }, z.core.$strip>>;
961
+ columns: z.ZodArray<z.ZodObject<{
962
+ index: z.ZodNumber;
963
+ widthPt: z.ZodNumber;
964
+ hidden: z.ZodOptional<z.ZodBoolean>;
965
+ }, z.core.$strip>>;
966
+ rows: z.ZodArray<z.ZodObject<{
967
+ index: z.ZodNumber;
968
+ heightPt: z.ZodNumber;
969
+ hidden: z.ZodOptional<z.ZodBoolean>;
970
+ }, z.core.$strip>>;
971
+ images: z.ZodArray<z.ZodObject<{
972
+ kind: z.ZodLiteral<"image">;
973
+ format: z.ZodEnum<{
974
+ png: "png";
975
+ jpeg: "jpeg";
976
+ }>;
977
+ base64: z.ZodString;
978
+ widthPt: z.ZodNumber;
979
+ heightPt: z.ZodNumber;
980
+ altText: z.ZodOptional<z.ZodString>;
981
+ sourcePath: z.ZodOptional<z.ZodString>;
982
+ anchorRow: z.ZodNumber;
983
+ anchorColumn: z.ZodNumber;
984
+ offsetXPt: z.ZodNumber;
985
+ offsetYPt: z.ZodNumber;
986
+ }, z.core.$strip>>;
987
+ printSettings: z.ZodObject<{
988
+ pageSize: z.ZodObject<{
989
+ widthPt: z.ZodNumber;
990
+ heightPt: z.ZodNumber;
991
+ }, z.core.$strip>;
992
+ margins: z.ZodObject<{
993
+ topPt: z.ZodNumber;
994
+ rightPt: z.ZodNumber;
995
+ bottomPt: z.ZodNumber;
996
+ leftPt: z.ZodNumber;
997
+ }, z.core.$strip>;
998
+ printRange: z.ZodOptional<z.ZodObject<{
999
+ startRow: z.ZodNumber;
1000
+ startColumn: z.ZodNumber;
1001
+ endRow: z.ZodNumber;
1002
+ endColumn: z.ZodNumber;
1003
+ }, z.core.$strip>>;
1004
+ scale: z.ZodOptional<z.ZodNumber>;
1005
+ fitToPages: z.ZodOptional<z.ZodObject<{
1006
+ width: z.ZodNumber;
1007
+ height: z.ZodNumber;
1008
+ }, z.core.$strip>>;
1009
+ repeatRows: z.ZodOptional<z.ZodObject<{
1010
+ start: z.ZodNumber;
1011
+ end: z.ZodNumber;
1012
+ }, z.core.$strip>>;
1013
+ repeatColumns: z.ZodOptional<z.ZodObject<{
1014
+ start: z.ZodNumber;
1015
+ end: z.ZodNumber;
1016
+ }, z.core.$strip>>;
1017
+ gridlines: z.ZodBoolean;
1018
+ headers: z.ZodBoolean;
1019
+ pageOrder: z.ZodEnum<{
1020
+ downThenOver: "downThenOver";
1021
+ overThenDown: "overThenDown";
1022
+ }>;
1023
+ manualBreaks: z.ZodOptional<z.ZodObject<{
1024
+ rows: z.ZodArray<z.ZodNumber>;
1025
+ columns: z.ZodArray<z.ZodNumber>;
1026
+ }, z.core.$strip>>;
1027
+ }, z.core.$strip>;
1028
+ embeddedObjects: z.ZodOptional<z.ZodArray<z.ZodCustom<ContentEmbeddedObject, ContentEmbeddedObject>>>;
1029
+ }, z.core.$strip>>;
1030
+ }, z.core.$strip>, z.ZodObject<{
1031
+ kind: z.ZodLiteral<"drawing">;
1032
+ formatVersion: z.ZodLiteral<1>;
1033
+ metadata: z.ZodObject<{
1034
+ title: z.ZodOptional<z.ZodString>;
1035
+ author: z.ZodOptional<z.ZodString>;
1036
+ subject: z.ZodOptional<z.ZodString>;
1037
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
1038
+ creator: z.ZodOptional<z.ZodString>;
1039
+ producer: z.ZodOptional<z.ZodString>;
1040
+ createdIso: z.ZodOptional<z.ZodString>;
1041
+ modifiedIso: z.ZodOptional<z.ZodString>;
1042
+ }, z.core.$strip>;
1043
+ pages: z.ZodArray<z.ZodObject<{
1044
+ size: z.ZodObject<{
1045
+ widthPt: z.ZodNumber;
1046
+ heightPt: z.ZodNumber;
1047
+ }, z.core.$strip>;
1048
+ shapes: z.ZodArray<z.ZodObject<{
1049
+ name: z.ZodOptional<z.ZodString>;
1050
+ frame: z.ZodObject<{
1051
+ xPt: z.ZodNumber;
1052
+ yPt: z.ZodNumber;
1053
+ widthPt: z.ZodNumber;
1054
+ heightPt: z.ZodNumber;
1055
+ }, z.core.$strip>;
1056
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
1057
+ insetLeftPt: z.ZodNumber;
1058
+ insetTopPt: z.ZodNumber;
1059
+ insetRightPt: z.ZodNumber;
1060
+ insetBottomPt: z.ZodNumber;
1061
+ fontScale: z.ZodOptional<z.ZodNumber>;
1062
+ lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
1063
+ sourcePath: z.ZodOptional<z.ZodString>;
1064
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
1065
+ }, z.core.$strip>>;
1066
+ vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1067
+ kind: z.ZodLiteral<"rect">;
1068
+ frame: z.ZodObject<{
1069
+ xPt: z.ZodNumber;
1070
+ yPt: z.ZodNumber;
1071
+ widthPt: z.ZodNumber;
1072
+ heightPt: z.ZodNumber;
1073
+ }, z.core.$strip>;
1074
+ fill: z.ZodOptional<z.ZodObject<{
1075
+ r: z.ZodNumber;
1076
+ g: z.ZodNumber;
1077
+ b: z.ZodNumber;
1078
+ }, z.core.$strip>>;
1079
+ stroke: z.ZodOptional<z.ZodObject<{
1080
+ color: z.ZodObject<{
1081
+ r: z.ZodNumber;
1082
+ g: z.ZodNumber;
1083
+ b: z.ZodNumber;
1084
+ }, z.core.$strip>;
1085
+ widthPt: z.ZodNumber;
1086
+ }, z.core.$strip>>;
1087
+ sourcePath: z.ZodOptional<z.ZodString>;
1088
+ }, z.core.$strip>, z.ZodObject<{
1089
+ kind: z.ZodLiteral<"ellipse">;
1090
+ frame: z.ZodObject<{
1091
+ xPt: z.ZodNumber;
1092
+ yPt: z.ZodNumber;
1093
+ widthPt: z.ZodNumber;
1094
+ heightPt: z.ZodNumber;
1095
+ }, z.core.$strip>;
1096
+ fill: z.ZodOptional<z.ZodObject<{
1097
+ r: z.ZodNumber;
1098
+ g: z.ZodNumber;
1099
+ b: z.ZodNumber;
1100
+ }, z.core.$strip>>;
1101
+ stroke: z.ZodOptional<z.ZodObject<{
1102
+ color: z.ZodObject<{
1103
+ r: z.ZodNumber;
1104
+ g: z.ZodNumber;
1105
+ b: z.ZodNumber;
1106
+ }, z.core.$strip>;
1107
+ widthPt: z.ZodNumber;
1108
+ }, z.core.$strip>>;
1109
+ sourcePath: z.ZodOptional<z.ZodString>;
1110
+ }, z.core.$strip>, z.ZodObject<{
1111
+ kind: z.ZodLiteral<"line">;
1112
+ from: z.ZodObject<{
1113
+ xPt: z.ZodNumber;
1114
+ yPt: z.ZodNumber;
1115
+ }, z.core.$strip>;
1116
+ to: z.ZodObject<{
1117
+ xPt: z.ZodNumber;
1118
+ yPt: z.ZodNumber;
1119
+ }, z.core.$strip>;
1120
+ stroke: z.ZodObject<{
1121
+ color: z.ZodObject<{
1122
+ r: z.ZodNumber;
1123
+ g: z.ZodNumber;
1124
+ b: z.ZodNumber;
1125
+ }, z.core.$strip>;
1126
+ widthPt: z.ZodNumber;
1127
+ }, z.core.$strip>;
1128
+ sourcePath: z.ZodOptional<z.ZodString>;
1129
+ }, z.core.$strip>, z.ZodObject<{
1130
+ kind: z.ZodLiteral<"path">;
1131
+ frame: z.ZodObject<{
1132
+ xPt: z.ZodNumber;
1133
+ yPt: z.ZodNumber;
1134
+ widthPt: z.ZodNumber;
1135
+ heightPt: z.ZodNumber;
1136
+ }, z.core.$strip>;
1137
+ subpaths: z.ZodArray<z.ZodObject<{
1138
+ start: z.ZodObject<{
1139
+ xPt: z.ZodNumber;
1140
+ yPt: z.ZodNumber;
1141
+ }, z.core.$strip>;
1142
+ segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1143
+ kind: z.ZodLiteral<"line">;
1144
+ to: z.ZodObject<{
1145
+ xPt: z.ZodNumber;
1146
+ yPt: z.ZodNumber;
1147
+ }, z.core.$strip>;
1148
+ }, z.core.$strip>, z.ZodObject<{
1149
+ kind: z.ZodLiteral<"cubic">;
1150
+ control1: z.ZodObject<{
1151
+ xPt: z.ZodNumber;
1152
+ yPt: z.ZodNumber;
1153
+ }, z.core.$strip>;
1154
+ control2: z.ZodObject<{
1155
+ xPt: z.ZodNumber;
1156
+ yPt: z.ZodNumber;
1157
+ }, z.core.$strip>;
1158
+ to: z.ZodObject<{
1159
+ xPt: z.ZodNumber;
1160
+ yPt: z.ZodNumber;
1161
+ }, z.core.$strip>;
1162
+ }, z.core.$strip>], "kind">>;
1163
+ closed: z.ZodBoolean;
1164
+ }, z.core.$strip>>;
1165
+ fill: z.ZodOptional<z.ZodObject<{
1166
+ r: z.ZodNumber;
1167
+ g: z.ZodNumber;
1168
+ b: z.ZodNumber;
1169
+ }, z.core.$strip>>;
1170
+ fillRule: z.ZodOptional<z.ZodEnum<{
1171
+ nonzero: "nonzero";
1172
+ evenodd: "evenodd";
1173
+ }>>;
1174
+ stroke: z.ZodOptional<z.ZodObject<{
1175
+ color: z.ZodObject<{
1176
+ r: z.ZodNumber;
1177
+ g: z.ZodNumber;
1178
+ b: z.ZodNumber;
1179
+ }, z.core.$strip>;
1180
+ widthPt: z.ZodNumber;
1181
+ }, z.core.$strip>>;
1182
+ sourcePath: z.ZodOptional<z.ZodString>;
1183
+ }, z.core.$strip>], "kind">>;
1184
+ }, z.core.$strip>>;
1185
+ }, z.core.$strip>], "kind">;
1186
+ type ContentDocument = z.infer<typeof ContentDocumentSchema>;
1187
+ //#endregion
1188
+ export { CONTENT_FORMAT_VERSION, ContentBlock, ContentBlockSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, isContentBlock };