document-schema 3.3.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/README.md +82 -31
  2. package/dist/codec.d.cts +2 -7
  3. package/dist/codec.d.ts +2 -7
  4. package/dist/content-BN0PWqpt.d.cts +2393 -0
  5. package/dist/content-CiZf6Fqn.d.ts +2393 -0
  6. package/dist/content-json-schema-defs.cjs +1005 -0
  7. package/dist/content-json-schema-defs.js +1005 -0
  8. package/dist/content.cjs +1 -7
  9. package/dist/content.d.cts +2 -2354
  10. package/dist/content.d.ts +2 -2354
  11. package/dist/content.js +1 -7
  12. package/dist/definitions.cjs +109 -0
  13. package/dist/definitions.d.cts +115 -0
  14. package/dist/definitions.d.ts +115 -0
  15. package/dist/definitions.js +99 -0
  16. package/dist/index.cjs +42 -18
  17. package/dist/index.d.cts +7 -6
  18. package/dist/index.d.ts +7 -6
  19. package/dist/index.js +6 -5
  20. package/dist/package-node-DDPSNOvy.d.cts +441 -0
  21. package/dist/package-node-QVFHQcm8.d.ts +441 -0
  22. package/dist/package-node.cjs +120 -0
  23. package/dist/package-node.d.cts +2 -0
  24. package/dist/package-node.d.ts +2 -0
  25. package/dist/package-node.js +93 -0
  26. package/dist/package.cjs +37 -7
  27. package/dist/package.d.cts +452 -755
  28. package/dist/package.d.ts +452 -755
  29. package/dist/package.js +39 -8
  30. package/dist/schema-io.cjs +55 -25
  31. package/dist/schema-io.d.cts +13 -11
  32. package/dist/schema-io.d.ts +13 -11
  33. package/dist/schema-io.js +54 -25
  34. package/package.json +2 -2
  35. package/schemas/content-document.schema.json +1476 -68
  36. package/schemas/document-package.schema.json +3056 -30
  37. package/dist/layout.cjs +0 -150
  38. package/dist/layout.d.cts +0 -684
  39. package/dist/layout.d.ts +0 -684
  40. package/dist/layout.js +0 -136
  41. package/schemas/layout-document.schema.json +0 -760
package/dist/package.d.ts CHANGED
@@ -1,799 +1,496 @@
1
1
  import { d as MathMlNode } from "./mathml-B1oTCtzc.js";
2
2
  import { s as MathExpression } from "./math-B7gZJeND.js";
3
- import { ContentBlock, ContentEmbeddedObject } from "./content.js";
3
+ import { P as SheetGroupNode, R as SlideGroupNode, i as DrawPageGroupNode, w as SectionGroupNode } from "./package-node-QVFHQcm8.js";
4
4
  import { z } from "zod";
5
5
  //#region src/package.d.ts
6
- declare const DOCUMENT_PACKAGE_FORMAT_VERSION = 2;
7
- declare const DocumentPackageSchema: z.ZodObject<{
8
- formatVersion: z.ZodLiteral<2>;
9
- content: z.ZodDiscriminatedUnion<[z.ZodObject<{
10
- sections: z.ZodArray<z.ZodObject<{
11
- pageSize: z.ZodObject<{
12
- widthPt: z.ZodNumber;
13
- heightPt: z.ZodNumber;
14
- }, z.core.$strip>;
15
- margins: z.ZodObject<{
16
- topPt: z.ZodNumber;
17
- rightPt: z.ZodNumber;
18
- bottomPt: z.ZodNumber;
19
- leftPt: z.ZodNumber;
20
- }, z.core.$strip>;
21
- blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
22
- }, z.core.$strip>>;
23
- symbolTable: z.ZodOptional<z.ZodObject<{
24
- symbols: z.ZodArray<z.ZodObject<{
25
- glyph: z.ZodString;
26
- scope: z.ZodString;
27
- id: z.ZodString;
28
- quantityKind: z.ZodOptional<z.ZodString>;
29
- preferredUnit: z.ZodOptional<z.ZodString>;
30
- definitionSource: z.ZodOptional<z.ZodString>;
6
+ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7
+ children: z.ZodArray<z.ZodCustom<SectionGroupNode, SectionGroupNode>>;
8
+ pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
9
+ widthPt: z.ZodNumber;
10
+ heightPt: z.ZodNumber;
11
+ }, z.core.$strip>>>;
12
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
13
+ paragraph: z.ZodOptional<z.ZodObject<{
14
+ alignment: z.ZodOptional<z.ZodEnum<{
15
+ left: "left";
16
+ center: "center";
17
+ right: "right";
18
+ justify: "justify";
19
+ }>>;
20
+ list: z.ZodOptional<z.ZodObject<{
21
+ numId: z.ZodOptional<z.ZodString>;
22
+ level: z.ZodNumber;
31
23
  }, z.core.$strip>>;
32
- units: z.ZodArray<z.ZodObject<{
33
- id: z.ZodString;
34
- symbol: z.ZodString;
35
- name: z.ZodOptional<z.ZodString>;
36
- dimension: z.ZodRecord<z.ZodEnum<{
37
- time: "time";
38
- length: "length";
39
- mass: "mass";
40
- electricCurrent: "electricCurrent";
41
- thermodynamicTemperature: "thermodynamicTemperature";
42
- amountOfSubstance: "amountOfSubstance";
43
- luminousIntensity: "luminousIntensity";
44
- }> & z.core.$partial, z.ZodNumber>;
45
- factorToSi: z.ZodObject<{
46
- numerator: z.ZodString;
47
- denominator: z.ZodString;
48
- }, z.core.$strip>;
49
- offsetToSi: z.ZodOptional<z.ZodObject<{
50
- numerator: z.ZodString;
51
- denominator: z.ZodString;
52
- }, z.core.$strip>>;
53
- context: z.ZodOptional<z.ZodString>;
24
+ spacingBeforePt: z.ZodOptional<z.ZodNumber>;
25
+ spacingAfterPt: z.ZodOptional<z.ZodNumber>;
26
+ lineSpacing: z.ZodOptional<z.ZodNumber>;
27
+ indentLeftPt: z.ZodOptional<z.ZodNumber>;
28
+ indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
29
+ }, z.core.$strict>>;
30
+ run: z.ZodOptional<z.ZodObject<{
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;
54
41
  }, z.core.$strip>>;
55
- contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
56
- id: z.ZodString;
57
- bases: z.ZodArray<z.ZodObject<{
58
- unit: z.ZodString;
59
- value: z.ZodObject<{
60
- numerator: z.ZodString;
61
- denominator: z.ZodString;
62
- }, z.core.$strip>;
63
- }, z.core.$strip>>;
64
- }, z.core.$strip>>>;
42
+ }, z.core.$strict>>;
43
+ }, z.core.$strict>>>;
44
+ definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
45
+ kind: z.ZodString;
46
+ }, z.core.$loose>>>;
47
+ symbolTable: z.ZodOptional<z.ZodObject<{
48
+ symbols: z.ZodArray<z.ZodObject<{
49
+ glyph: z.ZodString;
50
+ scope: z.ZodString;
51
+ id: z.ZodString;
52
+ quantityKind: z.ZodOptional<z.ZodString>;
53
+ preferredUnit: z.ZodOptional<z.ZodString>;
54
+ definitionSource: z.ZodOptional<z.ZodString>;
65
55
  }, z.core.$strip>>;
66
- kind: z.ZodLiteral<"wordprocessing">;
67
- formatVersion: z.ZodLiteral<3>;
68
- metadata: z.ZodObject<{
69
- title: z.ZodOptional<z.ZodString>;
70
- author: z.ZodOptional<z.ZodString>;
71
- subject: z.ZodOptional<z.ZodString>;
72
- keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
73
- creator: z.ZodOptional<z.ZodString>;
74
- producer: z.ZodOptional<z.ZodString>;
75
- createdIso: z.ZodOptional<z.ZodString>;
76
- modifiedIso: z.ZodOptional<z.ZodString>;
77
- }, z.core.$strip>;
78
- }, z.core.$strip>, z.ZodObject<{
79
- slides: z.ZodArray<z.ZodObject<{
80
- size: z.ZodObject<{
81
- widthPt: z.ZodNumber;
82
- heightPt: z.ZodNumber;
56
+ units: z.ZodArray<z.ZodObject<{
57
+ id: z.ZodString;
58
+ symbol: z.ZodString;
59
+ name: z.ZodOptional<z.ZodString>;
60
+ dimension: z.ZodRecord<z.ZodEnum<{
61
+ time: "time";
62
+ length: "length";
63
+ mass: "mass";
64
+ electricCurrent: "electricCurrent";
65
+ thermodynamicTemperature: "thermodynamicTemperature";
66
+ amountOfSubstance: "amountOfSubstance";
67
+ luminousIntensity: "luminousIntensity";
68
+ }> & z.core.$partial, z.ZodNumber>;
69
+ factorToSi: z.ZodObject<{
70
+ numerator: z.ZodString;
71
+ denominator: z.ZodString;
83
72
  }, z.core.$strip>;
84
- shapes: z.ZodArray<z.ZodObject<{
85
- name: z.ZodOptional<z.ZodString>;
86
- frame: z.ZodObject<{
87
- xPt: z.ZodNumber;
88
- yPt: z.ZodNumber;
89
- widthPt: z.ZodNumber;
90
- heightPt: z.ZodNumber;
91
- }, z.core.$strip>;
92
- rotationDeg: z.ZodOptional<z.ZodNumber>;
93
- insetLeftPt: z.ZodNumber;
94
- insetTopPt: z.ZodNumber;
95
- insetRightPt: z.ZodNumber;
96
- insetBottomPt: z.ZodNumber;
97
- fontScale: z.ZodOptional<z.ZodNumber>;
98
- lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
99
- paintOrder: z.ZodOptional<z.ZodNumber>;
100
- sourcePath: z.ZodOptional<z.ZodString>;
101
- frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
102
- pageIndex: z.ZodNumber;
103
- xPt: z.ZodNumber;
104
- yPt: z.ZodNumber;
105
- widthPt: z.ZodNumber;
106
- heightPt: z.ZodNumber;
107
- }, z.core.$strip>>>;
108
- blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
73
+ offsetToSi: z.ZodOptional<z.ZodObject<{
74
+ numerator: z.ZodString;
75
+ denominator: z.ZodString;
109
76
  }, z.core.$strip>>;
110
- notes: z.ZodString;
77
+ context: z.ZodOptional<z.ZodString>;
111
78
  }, z.core.$strip>>;
112
- symbolTable: z.ZodOptional<z.ZodObject<{
113
- symbols: z.ZodArray<z.ZodObject<{
114
- glyph: z.ZodString;
115
- scope: z.ZodString;
116
- id: z.ZodString;
117
- quantityKind: z.ZodOptional<z.ZodString>;
118
- preferredUnit: z.ZodOptional<z.ZodString>;
119
- definitionSource: z.ZodOptional<z.ZodString>;
120
- }, z.core.$strip>>;
121
- units: z.ZodArray<z.ZodObject<{
122
- id: z.ZodString;
123
- symbol: z.ZodString;
124
- name: z.ZodOptional<z.ZodString>;
125
- dimension: z.ZodRecord<z.ZodEnum<{
126
- time: "time";
127
- length: "length";
128
- mass: "mass";
129
- electricCurrent: "electricCurrent";
130
- thermodynamicTemperature: "thermodynamicTemperature";
131
- amountOfSubstance: "amountOfSubstance";
132
- luminousIntensity: "luminousIntensity";
133
- }> & z.core.$partial, z.ZodNumber>;
134
- factorToSi: z.ZodObject<{
79
+ contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
80
+ id: z.ZodString;
81
+ bases: z.ZodArray<z.ZodObject<{
82
+ unit: z.ZodString;
83
+ value: z.ZodObject<{
135
84
  numerator: z.ZodString;
136
85
  denominator: z.ZodString;
137
86
  }, z.core.$strip>;
138
- offsetToSi: z.ZodOptional<z.ZodObject<{
139
- numerator: z.ZodString;
140
- denominator: z.ZodString;
141
- }, z.core.$strip>>;
142
- context: z.ZodOptional<z.ZodString>;
143
- }, z.core.$strip>>;
144
- contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
145
- id: z.ZodString;
146
- bases: z.ZodArray<z.ZodObject<{
147
- unit: z.ZodString;
148
- value: z.ZodObject<{
149
- numerator: z.ZodString;
150
- denominator: z.ZodString;
151
- }, z.core.$strip>;
152
- }, z.core.$strip>>;
153
- }, z.core.$strip>>>;
154
- }, z.core.$strip>>;
155
- kind: z.ZodLiteral<"presentation">;
156
- formatVersion: z.ZodLiteral<3>;
157
- metadata: z.ZodObject<{
158
- title: z.ZodOptional<z.ZodString>;
159
- author: z.ZodOptional<z.ZodString>;
160
- subject: z.ZodOptional<z.ZodString>;
161
- keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
162
- creator: z.ZodOptional<z.ZodString>;
163
- producer: z.ZodOptional<z.ZodString>;
164
- createdIso: z.ZodOptional<z.ZodString>;
165
- modifiedIso: z.ZodOptional<z.ZodString>;
166
- }, z.core.$strip>;
167
- }, z.core.$strip>, z.ZodObject<{
168
- sheets: z.ZodArray<z.ZodObject<{
169
- name: z.ZodString;
170
- cells: z.ZodArray<z.ZodObject<{
171
- row: z.ZodNumber;
172
- column: z.ZodNumber;
173
- value: z.ZodDiscriminatedUnion<[z.ZodObject<{
174
- kind: z.ZodLiteral<"number">;
175
- value: z.ZodNumber;
176
- exactValue: z.ZodOptional<z.ZodString>;
177
- }, z.core.$strip>, z.ZodObject<{
178
- kind: z.ZodLiteral<"percentage">;
179
- value: z.ZodNumber;
180
- exactValue: z.ZodOptional<z.ZodString>;
181
- }, z.core.$strip>, z.ZodObject<{
182
- kind: z.ZodLiteral<"currency">;
183
- value: z.ZodNumber;
184
- currency: z.ZodOptional<z.ZodString>;
185
- exactValue: z.ZodOptional<z.ZodString>;
186
- }, z.core.$strip>, z.ZodObject<{
187
- kind: z.ZodLiteral<"boolean">;
188
- value: z.ZodBoolean;
189
- }, z.core.$strip>, z.ZodObject<{
190
- kind: z.ZodLiteral<"date">;
191
- value: z.ZodString;
192
- }, z.core.$strip>, z.ZodObject<{
193
- kind: z.ZodLiteral<"time">;
194
- value: z.ZodString;
195
- }, z.core.$strip>, z.ZodObject<{
196
- kind: z.ZodLiteral<"dateTime">;
197
- value: z.ZodString;
198
- }, z.core.$strip>, z.ZodObject<{
199
- kind: z.ZodLiteral<"string">;
200
- value: z.ZodString;
201
- }, z.core.$strip>, z.ZodObject<{
202
- kind: z.ZodLiteral<"error">;
203
- value: z.ZodString;
204
- }, z.core.$strip>, z.ZodObject<{
205
- kind: z.ZodLiteral<"empty">;
206
- }, z.core.$strip>], "kind">;
207
- formula: z.ZodOptional<z.ZodString>;
208
- displayText: z.ZodString;
209
- runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
210
- text: z.ZodString;
211
- bold: z.ZodOptional<z.ZodBoolean>;
212
- italic: z.ZodOptional<z.ZodBoolean>;
213
- underline: z.ZodOptional<z.ZodBoolean>;
214
- strike: z.ZodOptional<z.ZodBoolean>;
215
- fontFamily: z.ZodOptional<z.ZodString>;
216
- sizePt: z.ZodOptional<z.ZodNumber>;
217
- color: z.ZodOptional<z.ZodObject<{
218
- r: z.ZodNumber;
219
- g: z.ZodNumber;
220
- b: z.ZodNumber;
221
- }, z.core.$strip>>;
222
- hyperlink: z.ZodOptional<z.ZodString>;
223
- sourcePath: z.ZodOptional<z.ZodString>;
224
- frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
225
- pageIndex: z.ZodNumber;
226
- xPt: z.ZodNumber;
227
- yPt: z.ZodNumber;
228
- widthPt: z.ZodNumber;
229
- heightPt: z.ZodNumber;
230
- }, z.core.$strip>>>;
231
- }, z.core.$strip>>>;
232
- colSpan: z.ZodOptional<z.ZodNumber>;
233
- rowSpan: z.ZodOptional<z.ZodNumber>;
234
- background: z.ZodOptional<z.ZodObject<{
235
- r: z.ZodNumber;
236
- g: z.ZodNumber;
237
- b: z.ZodNumber;
238
- }, z.core.$strip>>;
239
- borders: z.ZodOptional<z.ZodObject<{
240
- left: z.ZodOptional<z.ZodObject<{
241
- color: z.ZodObject<{
242
- r: z.ZodNumber;
243
- g: z.ZodNumber;
244
- b: z.ZodNumber;
245
- }, z.core.$strip>;
246
- widthPt: z.ZodNumber;
247
- style: z.ZodOptional<z.ZodEnum<{
248
- solid: "solid";
249
- dashed: "dashed";
250
- dotted: "dotted";
251
- double: "double";
252
- }>>;
253
- }, z.core.$strip>>;
254
- right: z.ZodOptional<z.ZodObject<{
255
- color: z.ZodObject<{
256
- r: z.ZodNumber;
257
- g: z.ZodNumber;
258
- b: z.ZodNumber;
259
- }, z.core.$strip>;
260
- widthPt: z.ZodNumber;
261
- style: z.ZodOptional<z.ZodEnum<{
262
- solid: "solid";
263
- dashed: "dashed";
264
- dotted: "dotted";
265
- double: "double";
266
- }>>;
267
- }, z.core.$strip>>;
268
- top: z.ZodOptional<z.ZodObject<{
269
- color: z.ZodObject<{
270
- r: z.ZodNumber;
271
- g: z.ZodNumber;
272
- b: z.ZodNumber;
273
- }, z.core.$strip>;
274
- widthPt: z.ZodNumber;
275
- style: z.ZodOptional<z.ZodEnum<{
276
- solid: "solid";
277
- dashed: "dashed";
278
- dotted: "dotted";
279
- double: "double";
280
- }>>;
281
- }, z.core.$strip>>;
282
- bottom: z.ZodOptional<z.ZodObject<{
283
- color: z.ZodObject<{
284
- r: z.ZodNumber;
285
- g: z.ZodNumber;
286
- b: z.ZodNumber;
287
- }, z.core.$strip>;
288
- widthPt: z.ZodNumber;
289
- style: z.ZodOptional<z.ZodEnum<{
290
- solid: "solid";
291
- dashed: "dashed";
292
- dotted: "dotted";
293
- double: "double";
294
- }>>;
295
- }, z.core.$strip>>;
296
- }, z.core.$strip>>;
297
- alignment: z.ZodOptional<z.ZodEnum<{
298
- left: "left";
299
- center: "center";
300
- right: "right";
301
- justify: "justify";
302
- }>>;
303
- verticalAlignment: z.ZodOptional<z.ZodEnum<{
304
- top: "top";
305
- bottom: "bottom";
306
- middle: "middle";
307
- }>>;
308
- comment: z.ZodOptional<z.ZodObject<{
309
- text: z.ZodString;
310
- author: z.ZodOptional<z.ZodString>;
311
- createdAt: z.ZodOptional<z.ZodString>;
312
- replies: z.ZodOptional<z.ZodArray<z.ZodObject<{
313
- text: z.ZodString;
314
- author: z.ZodOptional<z.ZodString>;
315
- }, z.core.$strip>>>;
316
- }, z.core.$strip>>;
317
- sourcePath: z.ZodOptional<z.ZodString>;
318
- frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
319
- pageIndex: z.ZodNumber;
320
- xPt: z.ZodNumber;
321
- yPt: z.ZodNumber;
322
- widthPt: z.ZodNumber;
323
- heightPt: z.ZodNumber;
324
- }, z.core.$strip>>>;
325
- }, z.core.$strip>>;
326
- columns: z.ZodArray<z.ZodObject<{
327
- index: z.ZodNumber;
328
- widthPt: z.ZodOptional<z.ZodNumber>;
329
- hidden: z.ZodOptional<z.ZodBoolean>;
330
87
  }, z.core.$strip>>;
331
- rows: z.ZodArray<z.ZodObject<{
332
- index: z.ZodNumber;
333
- heightPt: z.ZodOptional<z.ZodNumber>;
334
- hidden: z.ZodOptional<z.ZodBoolean>;
88
+ }, z.core.$strip>>>;
89
+ }, z.core.$strip>>;
90
+ metadata: z.ZodObject<{
91
+ title: z.ZodOptional<z.ZodString>;
92
+ author: z.ZodOptional<z.ZodString>;
93
+ subject: z.ZodOptional<z.ZodString>;
94
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
95
+ creator: z.ZodOptional<z.ZodString>;
96
+ producer: z.ZodOptional<z.ZodString>;
97
+ createdIso: z.ZodOptional<z.ZodString>;
98
+ modifiedIso: z.ZodOptional<z.ZodString>;
99
+ }, z.core.$strip>;
100
+ kind: z.ZodLiteral<"wordprocessing">;
101
+ }, z.core.$strip>, z.ZodObject<{
102
+ children: z.ZodArray<z.ZodCustom<SlideGroupNode, SlideGroupNode>>;
103
+ pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
104
+ widthPt: z.ZodNumber;
105
+ heightPt: z.ZodNumber;
106
+ }, z.core.$strip>>>;
107
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
108
+ paragraph: z.ZodOptional<z.ZodObject<{
109
+ alignment: z.ZodOptional<z.ZodEnum<{
110
+ left: "left";
111
+ center: "center";
112
+ right: "right";
113
+ justify: "justify";
114
+ }>>;
115
+ list: z.ZodOptional<z.ZodObject<{
116
+ numId: z.ZodOptional<z.ZodString>;
117
+ level: z.ZodNumber;
335
118
  }, z.core.$strip>>;
336
- images: z.ZodArray<z.ZodObject<{
337
- kind: z.ZodLiteral<"image">;
338
- format: z.ZodEnum<{
339
- png: "png";
340
- jpeg: "jpeg";
341
- }>;
342
- base64: z.ZodString;
343
- widthPt: z.ZodNumber;
344
- heightPt: z.ZodNumber;
345
- altText: z.ZodOptional<z.ZodString>;
346
- sourcePath: z.ZodOptional<z.ZodString>;
347
- frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
348
- pageIndex: z.ZodNumber;
349
- xPt: z.ZodNumber;
350
- yPt: z.ZodNumber;
351
- widthPt: z.ZodNumber;
352
- heightPt: z.ZodNumber;
353
- }, z.core.$strip>>>;
354
- anchorRow: z.ZodNumber;
355
- anchorColumn: z.ZodNumber;
356
- offsetXPt: z.ZodNumber;
357
- offsetYPt: z.ZodNumber;
119
+ spacingBeforePt: z.ZodOptional<z.ZodNumber>;
120
+ spacingAfterPt: z.ZodOptional<z.ZodNumber>;
121
+ lineSpacing: z.ZodOptional<z.ZodNumber>;
122
+ indentLeftPt: z.ZodOptional<z.ZodNumber>;
123
+ indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
124
+ }, z.core.$strict>>;
125
+ run: z.ZodOptional<z.ZodObject<{
126
+ bold: z.ZodOptional<z.ZodBoolean>;
127
+ italic: z.ZodOptional<z.ZodBoolean>;
128
+ underline: z.ZodOptional<z.ZodBoolean>;
129
+ strike: z.ZodOptional<z.ZodBoolean>;
130
+ fontFamily: z.ZodOptional<z.ZodString>;
131
+ sizePt: z.ZodOptional<z.ZodNumber>;
132
+ color: z.ZodOptional<z.ZodObject<{
133
+ r: z.ZodNumber;
134
+ g: z.ZodNumber;
135
+ b: z.ZodNumber;
358
136
  }, z.core.$strip>>;
359
- printSettings: z.ZodObject<{
360
- pageSize: z.ZodObject<{
361
- widthPt: z.ZodNumber;
362
- heightPt: z.ZodNumber;
363
- }, z.core.$strip>;
364
- margins: z.ZodObject<{
365
- topPt: z.ZodNumber;
366
- rightPt: z.ZodNumber;
367
- bottomPt: z.ZodNumber;
368
- leftPt: z.ZodNumber;
369
- }, z.core.$strip>;
370
- printRange: z.ZodOptional<z.ZodObject<{
371
- startRow: z.ZodNumber;
372
- startColumn: z.ZodNumber;
373
- endRow: z.ZodNumber;
374
- endColumn: z.ZodNumber;
375
- }, z.core.$strip>>;
376
- scalePercent: z.ZodOptional<z.ZodNumber>;
377
- fitToPages: z.ZodOptional<z.ZodObject<{
378
- width: z.ZodNumber;
379
- height: z.ZodNumber;
380
- }, z.core.$strip>>;
381
- repeatRows: z.ZodOptional<z.ZodObject<{
382
- start: z.ZodNumber;
383
- end: z.ZodNumber;
384
- }, z.core.$strip>>;
385
- repeatColumns: z.ZodOptional<z.ZodObject<{
386
- start: z.ZodNumber;
387
- end: z.ZodNumber;
388
- }, z.core.$strip>>;
389
- gridlines: z.ZodBoolean;
390
- headers: z.ZodBoolean;
391
- pageOrder: z.ZodEnum<{
392
- downThenOver: "downThenOver";
393
- overThenDown: "overThenDown";
394
- }>;
395
- manualBreaks: z.ZodOptional<z.ZodObject<{
396
- rows: z.ZodArray<z.ZodNumber>;
397
- columns: z.ZodArray<z.ZodNumber>;
398
- }, z.core.$strip>>;
399
- }, z.core.$strip>;
400
- embeddedObjects: z.ZodOptional<z.ZodArray<z.ZodCustom<ContentEmbeddedObject, ContentEmbeddedObject>>>;
137
+ }, z.core.$strict>>;
138
+ }, z.core.$strict>>>;
139
+ definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
140
+ kind: z.ZodString;
141
+ }, z.core.$loose>>>;
142
+ symbolTable: z.ZodOptional<z.ZodObject<{
143
+ symbols: z.ZodArray<z.ZodObject<{
144
+ glyph: z.ZodString;
145
+ scope: z.ZodString;
146
+ id: z.ZodString;
147
+ quantityKind: z.ZodOptional<z.ZodString>;
148
+ preferredUnit: z.ZodOptional<z.ZodString>;
149
+ definitionSource: z.ZodOptional<z.ZodString>;
401
150
  }, z.core.$strip>>;
402
- symbolTable: z.ZodOptional<z.ZodObject<{
403
- symbols: z.ZodArray<z.ZodObject<{
404
- glyph: z.ZodString;
405
- scope: z.ZodString;
406
- id: z.ZodString;
407
- quantityKind: z.ZodOptional<z.ZodString>;
408
- preferredUnit: z.ZodOptional<z.ZodString>;
409
- definitionSource: z.ZodOptional<z.ZodString>;
151
+ units: z.ZodArray<z.ZodObject<{
152
+ id: z.ZodString;
153
+ symbol: z.ZodString;
154
+ name: z.ZodOptional<z.ZodString>;
155
+ dimension: z.ZodRecord<z.ZodEnum<{
156
+ time: "time";
157
+ length: "length";
158
+ mass: "mass";
159
+ electricCurrent: "electricCurrent";
160
+ thermodynamicTemperature: "thermodynamicTemperature";
161
+ amountOfSubstance: "amountOfSubstance";
162
+ luminousIntensity: "luminousIntensity";
163
+ }> & z.core.$partial, z.ZodNumber>;
164
+ factorToSi: z.ZodObject<{
165
+ numerator: z.ZodString;
166
+ denominator: z.ZodString;
167
+ }, z.core.$strip>;
168
+ offsetToSi: z.ZodOptional<z.ZodObject<{
169
+ numerator: z.ZodString;
170
+ denominator: z.ZodString;
410
171
  }, z.core.$strip>>;
411
- units: z.ZodArray<z.ZodObject<{
412
- id: z.ZodString;
413
- symbol: z.ZodString;
414
- name: z.ZodOptional<z.ZodString>;
415
- dimension: z.ZodRecord<z.ZodEnum<{
416
- time: "time";
417
- length: "length";
418
- mass: "mass";
419
- electricCurrent: "electricCurrent";
420
- thermodynamicTemperature: "thermodynamicTemperature";
421
- amountOfSubstance: "amountOfSubstance";
422
- luminousIntensity: "luminousIntensity";
423
- }> & z.core.$partial, z.ZodNumber>;
424
- factorToSi: z.ZodObject<{
172
+ context: z.ZodOptional<z.ZodString>;
173
+ }, z.core.$strip>>;
174
+ contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
175
+ id: z.ZodString;
176
+ bases: z.ZodArray<z.ZodObject<{
177
+ unit: z.ZodString;
178
+ value: z.ZodObject<{
425
179
  numerator: z.ZodString;
426
180
  denominator: z.ZodString;
427
181
  }, z.core.$strip>;
428
- offsetToSi: z.ZodOptional<z.ZodObject<{
429
- numerator: z.ZodString;
430
- denominator: z.ZodString;
431
- }, z.core.$strip>>;
432
- context: z.ZodOptional<z.ZodString>;
433
182
  }, z.core.$strip>>;
434
- contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
435
- id: z.ZodString;
436
- bases: z.ZodArray<z.ZodObject<{
437
- unit: z.ZodString;
438
- value: z.ZodObject<{
439
- numerator: z.ZodString;
440
- denominator: z.ZodString;
441
- }, z.core.$strip>;
442
- }, z.core.$strip>>;
443
- }, z.core.$strip>>>;
183
+ }, z.core.$strip>>>;
184
+ }, z.core.$strip>>;
185
+ metadata: z.ZodObject<{
186
+ title: z.ZodOptional<z.ZodString>;
187
+ author: z.ZodOptional<z.ZodString>;
188
+ subject: z.ZodOptional<z.ZodString>;
189
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
190
+ creator: z.ZodOptional<z.ZodString>;
191
+ producer: z.ZodOptional<z.ZodString>;
192
+ createdIso: z.ZodOptional<z.ZodString>;
193
+ modifiedIso: z.ZodOptional<z.ZodString>;
194
+ }, z.core.$strip>;
195
+ kind: z.ZodLiteral<"presentation">;
196
+ }, z.core.$strip>, z.ZodObject<{
197
+ children: z.ZodArray<z.ZodCustom<SheetGroupNode, SheetGroupNode>>;
198
+ pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
199
+ widthPt: z.ZodNumber;
200
+ heightPt: z.ZodNumber;
201
+ }, z.core.$strip>>>;
202
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
203
+ paragraph: z.ZodOptional<z.ZodObject<{
204
+ alignment: z.ZodOptional<z.ZodEnum<{
205
+ left: "left";
206
+ center: "center";
207
+ right: "right";
208
+ justify: "justify";
209
+ }>>;
210
+ list: z.ZodOptional<z.ZodObject<{
211
+ numId: z.ZodOptional<z.ZodString>;
212
+ level: z.ZodNumber;
213
+ }, z.core.$strip>>;
214
+ spacingBeforePt: z.ZodOptional<z.ZodNumber>;
215
+ spacingAfterPt: z.ZodOptional<z.ZodNumber>;
216
+ lineSpacing: z.ZodOptional<z.ZodNumber>;
217
+ indentLeftPt: z.ZodOptional<z.ZodNumber>;
218
+ indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
219
+ }, z.core.$strict>>;
220
+ run: z.ZodOptional<z.ZodObject<{
221
+ bold: z.ZodOptional<z.ZodBoolean>;
222
+ italic: z.ZodOptional<z.ZodBoolean>;
223
+ underline: z.ZodOptional<z.ZodBoolean>;
224
+ strike: z.ZodOptional<z.ZodBoolean>;
225
+ fontFamily: z.ZodOptional<z.ZodString>;
226
+ sizePt: z.ZodOptional<z.ZodNumber>;
227
+ color: z.ZodOptional<z.ZodObject<{
228
+ r: z.ZodNumber;
229
+ g: z.ZodNumber;
230
+ b: z.ZodNumber;
231
+ }, z.core.$strip>>;
232
+ }, z.core.$strict>>;
233
+ }, z.core.$strict>>>;
234
+ definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
235
+ kind: z.ZodString;
236
+ }, z.core.$loose>>>;
237
+ symbolTable: z.ZodOptional<z.ZodObject<{
238
+ symbols: z.ZodArray<z.ZodObject<{
239
+ glyph: z.ZodString;
240
+ scope: z.ZodString;
241
+ id: z.ZodString;
242
+ quantityKind: z.ZodOptional<z.ZodString>;
243
+ preferredUnit: z.ZodOptional<z.ZodString>;
244
+ definitionSource: z.ZodOptional<z.ZodString>;
444
245
  }, z.core.$strip>>;
445
- kind: z.ZodLiteral<"spreadsheet">;
446
- formatVersion: z.ZodLiteral<3>;
447
- metadata: z.ZodObject<{
448
- title: z.ZodOptional<z.ZodString>;
449
- author: z.ZodOptional<z.ZodString>;
450
- subject: z.ZodOptional<z.ZodString>;
451
- keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
452
- creator: z.ZodOptional<z.ZodString>;
453
- producer: z.ZodOptional<z.ZodString>;
454
- createdIso: z.ZodOptional<z.ZodString>;
455
- modifiedIso: z.ZodOptional<z.ZodString>;
456
- }, z.core.$strip>;
457
- }, z.core.$strip>, z.ZodObject<{
458
- pages: z.ZodArray<z.ZodObject<{
459
- size: z.ZodObject<{
460
- widthPt: z.ZodNumber;
461
- heightPt: z.ZodNumber;
246
+ units: z.ZodArray<z.ZodObject<{
247
+ id: z.ZodString;
248
+ symbol: z.ZodString;
249
+ name: z.ZodOptional<z.ZodString>;
250
+ dimension: z.ZodRecord<z.ZodEnum<{
251
+ time: "time";
252
+ length: "length";
253
+ mass: "mass";
254
+ electricCurrent: "electricCurrent";
255
+ thermodynamicTemperature: "thermodynamicTemperature";
256
+ amountOfSubstance: "amountOfSubstance";
257
+ luminousIntensity: "luminousIntensity";
258
+ }> & z.core.$partial, z.ZodNumber>;
259
+ factorToSi: z.ZodObject<{
260
+ numerator: z.ZodString;
261
+ denominator: z.ZodString;
462
262
  }, z.core.$strip>;
463
- shapes: z.ZodArray<z.ZodObject<{
464
- name: z.ZodOptional<z.ZodString>;
465
- frame: z.ZodObject<{
466
- xPt: z.ZodNumber;
467
- yPt: z.ZodNumber;
468
- widthPt: z.ZodNumber;
469
- heightPt: z.ZodNumber;
470
- }, z.core.$strip>;
471
- rotationDeg: z.ZodOptional<z.ZodNumber>;
472
- insetLeftPt: z.ZodNumber;
473
- insetTopPt: z.ZodNumber;
474
- insetRightPt: z.ZodNumber;
475
- insetBottomPt: z.ZodNumber;
476
- fontScale: z.ZodOptional<z.ZodNumber>;
477
- lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
478
- paintOrder: z.ZodOptional<z.ZodNumber>;
479
- sourcePath: z.ZodOptional<z.ZodString>;
480
- frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
481
- pageIndex: z.ZodNumber;
482
- xPt: z.ZodNumber;
483
- yPt: z.ZodNumber;
484
- widthPt: z.ZodNumber;
485
- heightPt: z.ZodNumber;
486
- }, z.core.$strip>>>;
487
- blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
263
+ offsetToSi: z.ZodOptional<z.ZodObject<{
264
+ numerator: z.ZodString;
265
+ denominator: z.ZodString;
488
266
  }, z.core.$strip>>;
489
- vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
490
- kind: z.ZodLiteral<"rect">;
491
- frame: z.ZodObject<{
492
- xPt: z.ZodNumber;
493
- yPt: z.ZodNumber;
494
- widthPt: z.ZodNumber;
495
- heightPt: z.ZodNumber;
496
- }, z.core.$strip>;
497
- rotationDeg: z.ZodOptional<z.ZodNumber>;
498
- fill: z.ZodOptional<z.ZodObject<{
499
- r: z.ZodNumber;
500
- g: z.ZodNumber;
501
- b: z.ZodNumber;
502
- }, z.core.$strip>>;
503
- stroke: z.ZodOptional<z.ZodObject<{
504
- color: z.ZodObject<{
505
- r: z.ZodNumber;
506
- g: z.ZodNumber;
507
- b: z.ZodNumber;
508
- }, z.core.$strip>;
509
- widthPt: z.ZodNumber;
510
- style: z.ZodOptional<z.ZodEnum<{
511
- solid: "solid";
512
- dashed: "dashed";
513
- dotted: "dotted";
514
- double: "double";
515
- }>>;
516
- }, z.core.$strip>>;
517
- paintOrder: z.ZodOptional<z.ZodNumber>;
518
- sourcePath: z.ZodOptional<z.ZodString>;
519
- frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
520
- pageIndex: z.ZodNumber;
521
- xPt: z.ZodNumber;
522
- yPt: z.ZodNumber;
523
- widthPt: z.ZodNumber;
524
- heightPt: z.ZodNumber;
525
- }, z.core.$strip>>>;
526
- }, z.core.$strip>, z.ZodObject<{
527
- kind: z.ZodLiteral<"ellipse">;
528
- frame: z.ZodObject<{
529
- xPt: z.ZodNumber;
530
- yPt: z.ZodNumber;
531
- widthPt: z.ZodNumber;
532
- heightPt: z.ZodNumber;
533
- }, z.core.$strip>;
534
- rotationDeg: z.ZodOptional<z.ZodNumber>;
535
- fill: z.ZodOptional<z.ZodObject<{
536
- r: z.ZodNumber;
537
- g: z.ZodNumber;
538
- b: z.ZodNumber;
539
- }, z.core.$strip>>;
540
- stroke: z.ZodOptional<z.ZodObject<{
541
- color: z.ZodObject<{
542
- r: z.ZodNumber;
543
- g: z.ZodNumber;
544
- b: z.ZodNumber;
545
- }, z.core.$strip>;
546
- widthPt: z.ZodNumber;
547
- style: z.ZodOptional<z.ZodEnum<{
548
- solid: "solid";
549
- dashed: "dashed";
550
- dotted: "dotted";
551
- double: "double";
552
- }>>;
553
- }, z.core.$strip>>;
554
- paintOrder: z.ZodOptional<z.ZodNumber>;
555
- sourcePath: z.ZodOptional<z.ZodString>;
556
- frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
557
- pageIndex: z.ZodNumber;
558
- xPt: z.ZodNumber;
559
- yPt: z.ZodNumber;
560
- widthPt: z.ZodNumber;
561
- heightPt: z.ZodNumber;
562
- }, z.core.$strip>>>;
563
- }, z.core.$strip>, z.ZodObject<{
564
- kind: z.ZodLiteral<"line">;
565
- from: z.ZodObject<{
566
- xPt: z.ZodNumber;
567
- yPt: z.ZodNumber;
568
- }, z.core.$strip>;
569
- to: z.ZodObject<{
570
- xPt: z.ZodNumber;
571
- yPt: z.ZodNumber;
572
- }, z.core.$strip>;
573
- stroke: z.ZodObject<{
574
- color: z.ZodObject<{
575
- r: z.ZodNumber;
576
- g: z.ZodNumber;
577
- b: z.ZodNumber;
578
- }, z.core.$strip>;
579
- widthPt: z.ZodNumber;
580
- style: z.ZodOptional<z.ZodEnum<{
581
- solid: "solid";
582
- dashed: "dashed";
583
- dotted: "dotted";
584
- double: "double";
585
- }>>;
586
- }, z.core.$strip>;
587
- paintOrder: z.ZodOptional<z.ZodNumber>;
588
- sourcePath: z.ZodOptional<z.ZodString>;
589
- frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
590
- pageIndex: z.ZodNumber;
591
- xPt: z.ZodNumber;
592
- yPt: z.ZodNumber;
593
- widthPt: z.ZodNumber;
594
- heightPt: z.ZodNumber;
595
- }, z.core.$strip>>>;
596
- }, z.core.$strip>, z.ZodObject<{
597
- kind: z.ZodLiteral<"path">;
598
- frame: z.ZodObject<{
599
- xPt: z.ZodNumber;
600
- yPt: z.ZodNumber;
601
- widthPt: z.ZodNumber;
602
- heightPt: z.ZodNumber;
603
- }, z.core.$strip>;
604
- rotationDeg: z.ZodOptional<z.ZodNumber>;
605
- subpaths: z.ZodArray<z.ZodObject<{
606
- start: z.ZodObject<{
607
- xPt: z.ZodNumber;
608
- yPt: z.ZodNumber;
609
- }, z.core.$strip>;
610
- segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
611
- kind: z.ZodLiteral<"line">;
612
- to: z.ZodObject<{
613
- xPt: z.ZodNumber;
614
- yPt: z.ZodNumber;
615
- }, z.core.$strip>;
616
- }, z.core.$strip>, z.ZodObject<{
617
- kind: z.ZodLiteral<"cubic">;
618
- control1: z.ZodObject<{
619
- xPt: z.ZodNumber;
620
- yPt: z.ZodNumber;
621
- }, z.core.$strip>;
622
- control2: z.ZodObject<{
623
- xPt: z.ZodNumber;
624
- yPt: z.ZodNumber;
625
- }, z.core.$strip>;
626
- to: z.ZodObject<{
627
- xPt: z.ZodNumber;
628
- yPt: z.ZodNumber;
629
- }, z.core.$strip>;
630
- }, z.core.$strip>], "kind">>;
631
- closed: z.ZodBoolean;
632
- }, z.core.$strip>>;
633
- fill: z.ZodOptional<z.ZodObject<{
634
- r: z.ZodNumber;
635
- g: z.ZodNumber;
636
- b: z.ZodNumber;
637
- }, z.core.$strip>>;
638
- fillRule: z.ZodOptional<z.ZodEnum<{
639
- nonzero: "nonzero";
640
- evenodd: "evenodd";
641
- }>>;
642
- stroke: z.ZodOptional<z.ZodObject<{
643
- color: z.ZodObject<{
644
- r: z.ZodNumber;
645
- g: z.ZodNumber;
646
- b: z.ZodNumber;
647
- }, z.core.$strip>;
648
- widthPt: z.ZodNumber;
649
- style: z.ZodOptional<z.ZodEnum<{
650
- solid: "solid";
651
- dashed: "dashed";
652
- dotted: "dotted";
653
- double: "double";
654
- }>>;
655
- }, z.core.$strip>>;
656
- paintOrder: z.ZodOptional<z.ZodNumber>;
657
- sourcePath: z.ZodOptional<z.ZodString>;
658
- frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
659
- pageIndex: z.ZodNumber;
660
- xPt: z.ZodNumber;
661
- yPt: z.ZodNumber;
662
- widthPt: z.ZodNumber;
663
- heightPt: z.ZodNumber;
664
- }, z.core.$strip>>>;
665
- }, z.core.$strip>], "kind">>;
267
+ context: z.ZodOptional<z.ZodString>;
666
268
  }, z.core.$strip>>;
667
- symbolTable: z.ZodOptional<z.ZodObject<{
668
- symbols: z.ZodArray<z.ZodObject<{
669
- glyph: z.ZodString;
670
- scope: z.ZodString;
671
- id: z.ZodString;
672
- quantityKind: z.ZodOptional<z.ZodString>;
673
- preferredUnit: z.ZodOptional<z.ZodString>;
674
- definitionSource: z.ZodOptional<z.ZodString>;
675
- }, z.core.$strip>>;
676
- units: z.ZodArray<z.ZodObject<{
677
- id: z.ZodString;
678
- symbol: z.ZodString;
679
- name: z.ZodOptional<z.ZodString>;
680
- dimension: z.ZodRecord<z.ZodEnum<{
681
- time: "time";
682
- length: "length";
683
- mass: "mass";
684
- electricCurrent: "electricCurrent";
685
- thermodynamicTemperature: "thermodynamicTemperature";
686
- amountOfSubstance: "amountOfSubstance";
687
- luminousIntensity: "luminousIntensity";
688
- }> & z.core.$partial, z.ZodNumber>;
689
- factorToSi: z.ZodObject<{
269
+ contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
270
+ id: z.ZodString;
271
+ bases: z.ZodArray<z.ZodObject<{
272
+ unit: z.ZodString;
273
+ value: z.ZodObject<{
690
274
  numerator: z.ZodString;
691
275
  denominator: z.ZodString;
692
276
  }, z.core.$strip>;
693
- offsetToSi: z.ZodOptional<z.ZodObject<{
694
- numerator: z.ZodString;
695
- denominator: z.ZodString;
696
- }, z.core.$strip>>;
697
- context: z.ZodOptional<z.ZodString>;
698
277
  }, z.core.$strip>>;
699
- contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
700
- id: z.ZodString;
701
- bases: z.ZodArray<z.ZodObject<{
702
- unit: z.ZodString;
703
- value: z.ZodObject<{
704
- numerator: z.ZodString;
705
- denominator: z.ZodString;
706
- }, z.core.$strip>;
707
- }, z.core.$strip>>;
708
- }, z.core.$strip>>>;
709
- }, z.core.$strip>>;
710
- kind: z.ZodLiteral<"drawing">;
711
- formatVersion: z.ZodLiteral<3>;
712
- metadata: z.ZodObject<{
713
- title: z.ZodOptional<z.ZodString>;
714
- author: z.ZodOptional<z.ZodString>;
715
- subject: z.ZodOptional<z.ZodString>;
716
- keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
717
- creator: z.ZodOptional<z.ZodString>;
718
- producer: z.ZodOptional<z.ZodString>;
719
- createdIso: z.ZodOptional<z.ZodString>;
720
- modifiedIso: z.ZodOptional<z.ZodString>;
721
- }, z.core.$strip>;
722
- }, z.core.$strip>, z.ZodObject<{
723
- formula: z.ZodObject<{
724
- mathml: z.ZodArray<z.ZodCustom<MathMlNode, MathMlNode>>;
725
- starMath: z.ZodOptional<z.ZodString>;
726
- presentation: z.ZodOptional<z.ZodObject<{
727
- latex: z.ZodString;
278
+ }, z.core.$strip>>>;
279
+ }, z.core.$strip>>;
280
+ metadata: z.ZodObject<{
281
+ title: z.ZodOptional<z.ZodString>;
282
+ author: z.ZodOptional<z.ZodString>;
283
+ subject: z.ZodOptional<z.ZodString>;
284
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
285
+ creator: z.ZodOptional<z.ZodString>;
286
+ producer: z.ZodOptional<z.ZodString>;
287
+ createdIso: z.ZodOptional<z.ZodString>;
288
+ modifiedIso: z.ZodOptional<z.ZodString>;
289
+ }, z.core.$strip>;
290
+ kind: z.ZodLiteral<"spreadsheet">;
291
+ }, z.core.$strip>, z.ZodObject<{
292
+ children: z.ZodArray<z.ZodCustom<DrawPageGroupNode, DrawPageGroupNode>>;
293
+ pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
294
+ widthPt: z.ZodNumber;
295
+ heightPt: z.ZodNumber;
296
+ }, z.core.$strip>>>;
297
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
298
+ paragraph: z.ZodOptional<z.ZodObject<{
299
+ alignment: z.ZodOptional<z.ZodEnum<{
300
+ left: "left";
301
+ center: "center";
302
+ right: "right";
303
+ justify: "justify";
304
+ }>>;
305
+ list: z.ZodOptional<z.ZodObject<{
306
+ numId: z.ZodOptional<z.ZodString>;
307
+ level: z.ZodNumber;
728
308
  }, z.core.$strip>>;
729
- content: z.ZodOptional<z.ZodCustom<MathExpression, MathExpression>>;
730
- provenance: z.ZodOptional<z.ZodObject<{
731
- source: z.ZodString;
732
- pageRef: z.ZodOptional<z.ZodString>;
733
- editTrail: z.ZodArray<z.ZodString>;
309
+ spacingBeforePt: z.ZodOptional<z.ZodNumber>;
310
+ spacingAfterPt: z.ZodOptional<z.ZodNumber>;
311
+ lineSpacing: z.ZodOptional<z.ZodNumber>;
312
+ indentLeftPt: z.ZodOptional<z.ZodNumber>;
313
+ indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
314
+ }, z.core.$strict>>;
315
+ run: z.ZodOptional<z.ZodObject<{
316
+ bold: z.ZodOptional<z.ZodBoolean>;
317
+ italic: z.ZodOptional<z.ZodBoolean>;
318
+ underline: z.ZodOptional<z.ZodBoolean>;
319
+ strike: z.ZodOptional<z.ZodBoolean>;
320
+ fontFamily: z.ZodOptional<z.ZodString>;
321
+ sizePt: z.ZodOptional<z.ZodNumber>;
322
+ color: z.ZodOptional<z.ZodObject<{
323
+ r: z.ZodNumber;
324
+ g: z.ZodNumber;
325
+ b: z.ZodNumber;
734
326
  }, z.core.$strip>>;
735
- }, z.core.$strip>;
736
- symbolTable: z.ZodOptional<z.ZodObject<{
737
- symbols: z.ZodArray<z.ZodObject<{
738
- glyph: z.ZodString;
739
- scope: z.ZodString;
740
- id: z.ZodString;
741
- quantityKind: z.ZodOptional<z.ZodString>;
742
- preferredUnit: z.ZodOptional<z.ZodString>;
743
- definitionSource: z.ZodOptional<z.ZodString>;
327
+ }, z.core.$strict>>;
328
+ }, z.core.$strict>>>;
329
+ definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
330
+ kind: z.ZodString;
331
+ }, z.core.$loose>>>;
332
+ symbolTable: z.ZodOptional<z.ZodObject<{
333
+ symbols: z.ZodArray<z.ZodObject<{
334
+ glyph: z.ZodString;
335
+ scope: z.ZodString;
336
+ id: z.ZodString;
337
+ quantityKind: z.ZodOptional<z.ZodString>;
338
+ preferredUnit: z.ZodOptional<z.ZodString>;
339
+ definitionSource: z.ZodOptional<z.ZodString>;
340
+ }, z.core.$strip>>;
341
+ units: z.ZodArray<z.ZodObject<{
342
+ id: z.ZodString;
343
+ symbol: z.ZodString;
344
+ name: z.ZodOptional<z.ZodString>;
345
+ dimension: z.ZodRecord<z.ZodEnum<{
346
+ time: "time";
347
+ length: "length";
348
+ mass: "mass";
349
+ electricCurrent: "electricCurrent";
350
+ thermodynamicTemperature: "thermodynamicTemperature";
351
+ amountOfSubstance: "amountOfSubstance";
352
+ luminousIntensity: "luminousIntensity";
353
+ }> & z.core.$partial, z.ZodNumber>;
354
+ factorToSi: z.ZodObject<{
355
+ numerator: z.ZodString;
356
+ denominator: z.ZodString;
357
+ }, z.core.$strip>;
358
+ offsetToSi: z.ZodOptional<z.ZodObject<{
359
+ numerator: z.ZodString;
360
+ denominator: z.ZodString;
744
361
  }, z.core.$strip>>;
745
- units: z.ZodArray<z.ZodObject<{
746
- id: z.ZodString;
747
- symbol: z.ZodString;
748
- name: z.ZodOptional<z.ZodString>;
749
- dimension: z.ZodRecord<z.ZodEnum<{
750
- time: "time";
751
- length: "length";
752
- mass: "mass";
753
- electricCurrent: "electricCurrent";
754
- thermodynamicTemperature: "thermodynamicTemperature";
755
- amountOfSubstance: "amountOfSubstance";
756
- luminousIntensity: "luminousIntensity";
757
- }> & z.core.$partial, z.ZodNumber>;
758
- factorToSi: z.ZodObject<{
362
+ context: z.ZodOptional<z.ZodString>;
363
+ }, z.core.$strip>>;
364
+ contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
365
+ id: z.ZodString;
366
+ bases: z.ZodArray<z.ZodObject<{
367
+ unit: z.ZodString;
368
+ value: z.ZodObject<{
759
369
  numerator: z.ZodString;
760
370
  denominator: z.ZodString;
761
371
  }, z.core.$strip>;
762
- offsetToSi: z.ZodOptional<z.ZodObject<{
763
- numerator: z.ZodString;
764
- denominator: z.ZodString;
765
- }, z.core.$strip>>;
766
- context: z.ZodOptional<z.ZodString>;
767
372
  }, z.core.$strip>>;
768
- contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
769
- id: z.ZodString;
770
- bases: z.ZodArray<z.ZodObject<{
771
- unit: z.ZodString;
772
- value: z.ZodObject<{
773
- numerator: z.ZodString;
774
- denominator: z.ZodString;
775
- }, z.core.$strip>;
776
- }, z.core.$strip>>;
777
- }, z.core.$strip>>>;
373
+ }, z.core.$strip>>>;
374
+ }, z.core.$strip>>;
375
+ metadata: z.ZodObject<{
376
+ title: z.ZodOptional<z.ZodString>;
377
+ author: z.ZodOptional<z.ZodString>;
378
+ subject: z.ZodOptional<z.ZodString>;
379
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
380
+ creator: z.ZodOptional<z.ZodString>;
381
+ producer: z.ZodOptional<z.ZodString>;
382
+ createdIso: z.ZodOptional<z.ZodString>;
383
+ modifiedIso: z.ZodOptional<z.ZodString>;
384
+ }, z.core.$strip>;
385
+ kind: z.ZodLiteral<"drawing">;
386
+ }, z.core.$strip>, z.ZodObject<{
387
+ children: z.ZodArray<z.ZodObject<{
388
+ mathml: z.ZodArray<z.ZodCustom<MathMlNode, MathMlNode>>;
389
+ starMath: z.ZodOptional<z.ZodString>;
390
+ presentation: z.ZodOptional<z.ZodObject<{
391
+ latex: z.ZodString;
392
+ }, z.core.$strip>>;
393
+ content: z.ZodOptional<z.ZodCustom<MathExpression, MathExpression>>;
394
+ provenance: z.ZodOptional<z.ZodObject<{
395
+ source: z.ZodString;
396
+ pageRef: z.ZodOptional<z.ZodString>;
397
+ editTrail: z.ZodArray<z.ZodString>;
778
398
  }, z.core.$strip>>;
779
- kind: z.ZodLiteral<"formula">;
780
- formatVersion: z.ZodLiteral<3>;
781
- metadata: z.ZodObject<{
782
- title: z.ZodOptional<z.ZodString>;
783
- author: z.ZodOptional<z.ZodString>;
784
- subject: z.ZodOptional<z.ZodString>;
785
- keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
786
- creator: z.ZodOptional<z.ZodString>;
787
- producer: z.ZodOptional<z.ZodString>;
788
- createdIso: z.ZodOptional<z.ZodString>;
789
- modifiedIso: z.ZodOptional<z.ZodString>;
790
- }, z.core.$strip>;
791
- }, z.core.$strip>], "kind">;
399
+ }, z.core.$strip>>;
792
400
  pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
793
401
  widthPt: z.ZodNumber;
794
402
  heightPt: z.ZodNumber;
795
403
  }, z.core.$strip>>>;
796
- }, z.core.$strip>;
404
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
405
+ paragraph: z.ZodOptional<z.ZodObject<{
406
+ alignment: z.ZodOptional<z.ZodEnum<{
407
+ left: "left";
408
+ center: "center";
409
+ right: "right";
410
+ justify: "justify";
411
+ }>>;
412
+ list: z.ZodOptional<z.ZodObject<{
413
+ numId: z.ZodOptional<z.ZodString>;
414
+ level: z.ZodNumber;
415
+ }, z.core.$strip>>;
416
+ spacingBeforePt: z.ZodOptional<z.ZodNumber>;
417
+ spacingAfterPt: z.ZodOptional<z.ZodNumber>;
418
+ lineSpacing: z.ZodOptional<z.ZodNumber>;
419
+ indentLeftPt: z.ZodOptional<z.ZodNumber>;
420
+ indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
421
+ }, z.core.$strict>>;
422
+ run: z.ZodOptional<z.ZodObject<{
423
+ bold: z.ZodOptional<z.ZodBoolean>;
424
+ italic: z.ZodOptional<z.ZodBoolean>;
425
+ underline: z.ZodOptional<z.ZodBoolean>;
426
+ strike: z.ZodOptional<z.ZodBoolean>;
427
+ fontFamily: z.ZodOptional<z.ZodString>;
428
+ sizePt: z.ZodOptional<z.ZodNumber>;
429
+ color: z.ZodOptional<z.ZodObject<{
430
+ r: z.ZodNumber;
431
+ g: z.ZodNumber;
432
+ b: z.ZodNumber;
433
+ }, z.core.$strip>>;
434
+ }, z.core.$strict>>;
435
+ }, z.core.$strict>>>;
436
+ definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
437
+ kind: z.ZodString;
438
+ }, z.core.$loose>>>;
439
+ symbolTable: z.ZodOptional<z.ZodObject<{
440
+ symbols: z.ZodArray<z.ZodObject<{
441
+ glyph: z.ZodString;
442
+ scope: z.ZodString;
443
+ id: z.ZodString;
444
+ quantityKind: z.ZodOptional<z.ZodString>;
445
+ preferredUnit: z.ZodOptional<z.ZodString>;
446
+ definitionSource: z.ZodOptional<z.ZodString>;
447
+ }, z.core.$strip>>;
448
+ units: z.ZodArray<z.ZodObject<{
449
+ id: z.ZodString;
450
+ symbol: z.ZodString;
451
+ name: z.ZodOptional<z.ZodString>;
452
+ dimension: z.ZodRecord<z.ZodEnum<{
453
+ time: "time";
454
+ length: "length";
455
+ mass: "mass";
456
+ electricCurrent: "electricCurrent";
457
+ thermodynamicTemperature: "thermodynamicTemperature";
458
+ amountOfSubstance: "amountOfSubstance";
459
+ luminousIntensity: "luminousIntensity";
460
+ }> & z.core.$partial, z.ZodNumber>;
461
+ factorToSi: z.ZodObject<{
462
+ numerator: z.ZodString;
463
+ denominator: z.ZodString;
464
+ }, z.core.$strip>;
465
+ offsetToSi: z.ZodOptional<z.ZodObject<{
466
+ numerator: z.ZodString;
467
+ denominator: z.ZodString;
468
+ }, z.core.$strip>>;
469
+ context: z.ZodOptional<z.ZodString>;
470
+ }, z.core.$strip>>;
471
+ contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
472
+ id: z.ZodString;
473
+ bases: z.ZodArray<z.ZodObject<{
474
+ unit: z.ZodString;
475
+ value: z.ZodObject<{
476
+ numerator: z.ZodString;
477
+ denominator: z.ZodString;
478
+ }, z.core.$strip>;
479
+ }, z.core.$strip>>;
480
+ }, z.core.$strip>>>;
481
+ }, z.core.$strip>>;
482
+ metadata: z.ZodObject<{
483
+ title: z.ZodOptional<z.ZodString>;
484
+ author: z.ZodOptional<z.ZodString>;
485
+ subject: z.ZodOptional<z.ZodString>;
486
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
487
+ creator: z.ZodOptional<z.ZodString>;
488
+ producer: z.ZodOptional<z.ZodString>;
489
+ createdIso: z.ZodOptional<z.ZodString>;
490
+ modifiedIso: z.ZodOptional<z.ZodString>;
491
+ }, z.core.$strip>;
492
+ kind: z.ZodLiteral<"formula">;
493
+ }, z.core.$strip>], "kind">;
797
494
  type DocumentPackage = z.infer<typeof DocumentPackageSchema>;
798
495
  //#endregion
799
- export { DOCUMENT_PACKAGE_FORMAT_VERSION, DocumentPackage, DocumentPackageSchema };
496
+ export { DocumentPackage, DocumentPackageSchema };