document-schema 3.2.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 +1006 -1
  7. package/dist/content-json-schema-defs.js +1006 -1
  8. package/dist/content.cjs +2 -8
  9. package/dist/content.d.cts +2 -2354
  10. package/dist/content.d.ts +2 -2354
  11. package/dist/content.js +2 -8
  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 -69
  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/layout.d.ts DELETED
@@ -1,684 +0,0 @@
1
- import { z } from "zod";
2
- //#region src/layout.d.ts
3
- declare const LAYOUT_FORMAT_VERSION = 1;
4
- declare const LayoutTextSchema: z.ZodObject<{
5
- kind: z.ZodLiteral<"text">;
6
- text: z.ZodString;
7
- xPt: z.ZodNumber;
8
- yPt: z.ZodNumber;
9
- font: z.ZodObject<{
10
- family: z.ZodString;
11
- weight: z.ZodEnum<{
12
- bold: "bold";
13
- normal: "normal";
14
- }>;
15
- style: z.ZodEnum<{
16
- italic: "italic";
17
- normal: "normal";
18
- }>;
19
- }, z.core.$strip>;
20
- sizePt: z.ZodNumber;
21
- color: z.ZodObject<{
22
- r: z.ZodNumber;
23
- g: z.ZodNumber;
24
- b: z.ZodNumber;
25
- }, z.core.$strip>;
26
- widthPt: z.ZodOptional<z.ZodNumber>;
27
- rotationDeg: z.ZodOptional<z.ZodNumber>;
28
- underline: z.ZodOptional<z.ZodBoolean>;
29
- sourcePath: z.ZodOptional<z.ZodString>;
30
- }, z.core.$strip>;
31
- type LayoutText = z.infer<typeof LayoutTextSchema>;
32
- declare const LayoutImageSchema: z.ZodObject<{
33
- kind: z.ZodLiteral<"image">;
34
- imageId: z.ZodString;
35
- xPt: z.ZodNumber;
36
- yPt: z.ZodNumber;
37
- widthPt: z.ZodNumber;
38
- heightPt: z.ZodNumber;
39
- rotationDeg: z.ZodOptional<z.ZodNumber>;
40
- sourcePath: z.ZodOptional<z.ZodString>;
41
- }, z.core.$strip>;
42
- type LayoutImage = z.infer<typeof LayoutImageSchema>;
43
- declare const LayoutRectSchema: z.ZodObject<{
44
- kind: z.ZodLiteral<"rect">;
45
- xPt: z.ZodNumber;
46
- yPt: z.ZodNumber;
47
- widthPt: z.ZodNumber;
48
- heightPt: z.ZodNumber;
49
- fill: z.ZodOptional<z.ZodObject<{
50
- r: z.ZodNumber;
51
- g: z.ZodNumber;
52
- b: z.ZodNumber;
53
- }, z.core.$strip>>;
54
- stroke: z.ZodOptional<z.ZodObject<{
55
- color: z.ZodObject<{
56
- r: z.ZodNumber;
57
- g: z.ZodNumber;
58
- b: z.ZodNumber;
59
- }, z.core.$strip>;
60
- widthPt: z.ZodNumber;
61
- }, z.core.$strip>>;
62
- sourcePath: z.ZodOptional<z.ZodString>;
63
- }, z.core.$strip>;
64
- type LayoutRect = z.infer<typeof LayoutRectSchema>;
65
- declare const LayoutLineSchema: z.ZodObject<{
66
- kind: z.ZodLiteral<"line">;
67
- x1Pt: z.ZodNumber;
68
- y1Pt: z.ZodNumber;
69
- x2Pt: z.ZodNumber;
70
- y2Pt: z.ZodNumber;
71
- color: z.ZodObject<{
72
- r: z.ZodNumber;
73
- g: z.ZodNumber;
74
- b: z.ZodNumber;
75
- }, z.core.$strip>;
76
- widthPt: z.ZodNumber;
77
- style: z.ZodOptional<z.ZodEnum<{
78
- solid: "solid";
79
- dashed: "dashed";
80
- dotted: "dotted";
81
- double: "double";
82
- }>>;
83
- sourcePath: z.ZodOptional<z.ZodString>;
84
- }, z.core.$strip>;
85
- type LayoutLine = z.infer<typeof LayoutLineSchema>;
86
- declare const LayoutEllipseSchema: z.ZodObject<{
87
- kind: z.ZodLiteral<"ellipse">;
88
- xPt: z.ZodNumber;
89
- yPt: z.ZodNumber;
90
- widthPt: z.ZodNumber;
91
- heightPt: z.ZodNumber;
92
- fill: z.ZodOptional<z.ZodObject<{
93
- r: z.ZodNumber;
94
- g: z.ZodNumber;
95
- b: z.ZodNumber;
96
- }, z.core.$strip>>;
97
- stroke: z.ZodOptional<z.ZodObject<{
98
- color: z.ZodObject<{
99
- r: z.ZodNumber;
100
- g: z.ZodNumber;
101
- b: z.ZodNumber;
102
- }, z.core.$strip>;
103
- widthPt: z.ZodNumber;
104
- }, z.core.$strip>>;
105
- sourcePath: z.ZodOptional<z.ZodString>;
106
- }, z.core.$strip>;
107
- type LayoutEllipse = z.infer<typeof LayoutEllipseSchema>;
108
- declare const LayoutPathSegmentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
109
- kind: z.ZodLiteral<"line">;
110
- xPt: z.ZodNumber;
111
- yPt: z.ZodNumber;
112
- }, z.core.$strip>, z.ZodObject<{
113
- kind: z.ZodLiteral<"cubic">;
114
- c1xPt: z.ZodNumber;
115
- c1yPt: z.ZodNumber;
116
- c2xPt: z.ZodNumber;
117
- c2yPt: z.ZodNumber;
118
- xPt: z.ZodNumber;
119
- yPt: z.ZodNumber;
120
- }, z.core.$strip>], "kind">;
121
- type LayoutPathSegment = z.infer<typeof LayoutPathSegmentSchema>;
122
- declare const LayoutSubpathSchema: z.ZodObject<{
123
- startXPt: z.ZodNumber;
124
- startYPt: z.ZodNumber;
125
- segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
126
- kind: z.ZodLiteral<"line">;
127
- xPt: z.ZodNumber;
128
- yPt: z.ZodNumber;
129
- }, z.core.$strip>, z.ZodObject<{
130
- kind: z.ZodLiteral<"cubic">;
131
- c1xPt: z.ZodNumber;
132
- c1yPt: z.ZodNumber;
133
- c2xPt: z.ZodNumber;
134
- c2yPt: z.ZodNumber;
135
- xPt: z.ZodNumber;
136
- yPt: z.ZodNumber;
137
- }, z.core.$strip>], "kind">>;
138
- closed: z.ZodBoolean;
139
- }, z.core.$strip>;
140
- type LayoutSubpath = z.infer<typeof LayoutSubpathSchema>;
141
- declare const LayoutPathSchema: z.ZodObject<{
142
- kind: z.ZodLiteral<"path">;
143
- subpaths: z.ZodArray<z.ZodObject<{
144
- startXPt: z.ZodNumber;
145
- startYPt: z.ZodNumber;
146
- segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
147
- kind: z.ZodLiteral<"line">;
148
- xPt: z.ZodNumber;
149
- yPt: z.ZodNumber;
150
- }, z.core.$strip>, z.ZodObject<{
151
- kind: z.ZodLiteral<"cubic">;
152
- c1xPt: z.ZodNumber;
153
- c1yPt: z.ZodNumber;
154
- c2xPt: z.ZodNumber;
155
- c2yPt: z.ZodNumber;
156
- xPt: z.ZodNumber;
157
- yPt: z.ZodNumber;
158
- }, z.core.$strip>], "kind">>;
159
- closed: z.ZodBoolean;
160
- }, z.core.$strip>>;
161
- fill: z.ZodOptional<z.ZodObject<{
162
- r: z.ZodNumber;
163
- g: z.ZodNumber;
164
- b: z.ZodNumber;
165
- }, z.core.$strip>>;
166
- fillRule: z.ZodOptional<z.ZodEnum<{
167
- nonzero: "nonzero";
168
- evenodd: "evenodd";
169
- }>>;
170
- stroke: z.ZodOptional<z.ZodObject<{
171
- color: z.ZodObject<{
172
- r: z.ZodNumber;
173
- g: z.ZodNumber;
174
- b: z.ZodNumber;
175
- }, z.core.$strip>;
176
- widthPt: z.ZodNumber;
177
- }, z.core.$strip>>;
178
- style: z.ZodOptional<z.ZodEnum<{
179
- solid: "solid";
180
- dashed: "dashed";
181
- dotted: "dotted";
182
- double: "double";
183
- }>>;
184
- sourcePath: z.ZodOptional<z.ZodString>;
185
- }, z.core.$strip>;
186
- type LayoutPath = z.infer<typeof LayoutPathSchema>;
187
- declare const LayoutLinkSchema: z.ZodObject<{
188
- kind: z.ZodLiteral<"link">;
189
- uri: z.ZodString;
190
- xPt: z.ZodNumber;
191
- yPt: z.ZodNumber;
192
- widthPt: z.ZodNumber;
193
- heightPt: z.ZodNumber;
194
- sourcePath: z.ZodOptional<z.ZodString>;
195
- }, z.core.$strip>;
196
- type LayoutLink = z.infer<typeof LayoutLinkSchema>;
197
- declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
198
- kind: z.ZodLiteral<"text">;
199
- text: z.ZodString;
200
- xPt: z.ZodNumber;
201
- yPt: z.ZodNumber;
202
- font: z.ZodObject<{
203
- family: z.ZodString;
204
- weight: z.ZodEnum<{
205
- bold: "bold";
206
- normal: "normal";
207
- }>;
208
- style: z.ZodEnum<{
209
- italic: "italic";
210
- normal: "normal";
211
- }>;
212
- }, z.core.$strip>;
213
- sizePt: z.ZodNumber;
214
- color: z.ZodObject<{
215
- r: z.ZodNumber;
216
- g: z.ZodNumber;
217
- b: z.ZodNumber;
218
- }, z.core.$strip>;
219
- widthPt: z.ZodOptional<z.ZodNumber>;
220
- rotationDeg: z.ZodOptional<z.ZodNumber>;
221
- underline: z.ZodOptional<z.ZodBoolean>;
222
- sourcePath: z.ZodOptional<z.ZodString>;
223
- }, z.core.$strip>, z.ZodObject<{
224
- kind: z.ZodLiteral<"image">;
225
- imageId: z.ZodString;
226
- xPt: z.ZodNumber;
227
- yPt: z.ZodNumber;
228
- widthPt: z.ZodNumber;
229
- heightPt: z.ZodNumber;
230
- rotationDeg: z.ZodOptional<z.ZodNumber>;
231
- sourcePath: z.ZodOptional<z.ZodString>;
232
- }, z.core.$strip>, z.ZodObject<{
233
- kind: z.ZodLiteral<"rect">;
234
- xPt: z.ZodNumber;
235
- yPt: z.ZodNumber;
236
- widthPt: z.ZodNumber;
237
- heightPt: z.ZodNumber;
238
- fill: z.ZodOptional<z.ZodObject<{
239
- r: z.ZodNumber;
240
- g: z.ZodNumber;
241
- b: z.ZodNumber;
242
- }, z.core.$strip>>;
243
- stroke: z.ZodOptional<z.ZodObject<{
244
- color: z.ZodObject<{
245
- r: z.ZodNumber;
246
- g: z.ZodNumber;
247
- b: z.ZodNumber;
248
- }, z.core.$strip>;
249
- widthPt: z.ZodNumber;
250
- }, z.core.$strip>>;
251
- sourcePath: z.ZodOptional<z.ZodString>;
252
- }, z.core.$strip>, z.ZodObject<{
253
- kind: z.ZodLiteral<"line">;
254
- x1Pt: z.ZodNumber;
255
- y1Pt: z.ZodNumber;
256
- x2Pt: z.ZodNumber;
257
- y2Pt: z.ZodNumber;
258
- color: z.ZodObject<{
259
- r: z.ZodNumber;
260
- g: z.ZodNumber;
261
- b: z.ZodNumber;
262
- }, z.core.$strip>;
263
- widthPt: z.ZodNumber;
264
- style: z.ZodOptional<z.ZodEnum<{
265
- solid: "solid";
266
- dashed: "dashed";
267
- dotted: "dotted";
268
- double: "double";
269
- }>>;
270
- sourcePath: z.ZodOptional<z.ZodString>;
271
- }, z.core.$strip>, z.ZodObject<{
272
- kind: z.ZodLiteral<"ellipse">;
273
- xPt: z.ZodNumber;
274
- yPt: z.ZodNumber;
275
- widthPt: z.ZodNumber;
276
- heightPt: z.ZodNumber;
277
- fill: z.ZodOptional<z.ZodObject<{
278
- r: z.ZodNumber;
279
- g: z.ZodNumber;
280
- b: z.ZodNumber;
281
- }, z.core.$strip>>;
282
- stroke: 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
- }, z.core.$strip>>;
290
- sourcePath: z.ZodOptional<z.ZodString>;
291
- }, z.core.$strip>, z.ZodObject<{
292
- kind: z.ZodLiteral<"path">;
293
- subpaths: z.ZodArray<z.ZodObject<{
294
- startXPt: z.ZodNumber;
295
- startYPt: z.ZodNumber;
296
- segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
297
- kind: z.ZodLiteral<"line">;
298
- xPt: z.ZodNumber;
299
- yPt: z.ZodNumber;
300
- }, z.core.$strip>, z.ZodObject<{
301
- kind: z.ZodLiteral<"cubic">;
302
- c1xPt: z.ZodNumber;
303
- c1yPt: z.ZodNumber;
304
- c2xPt: z.ZodNumber;
305
- c2yPt: z.ZodNumber;
306
- xPt: z.ZodNumber;
307
- yPt: z.ZodNumber;
308
- }, z.core.$strip>], "kind">>;
309
- closed: z.ZodBoolean;
310
- }, z.core.$strip>>;
311
- fill: z.ZodOptional<z.ZodObject<{
312
- r: z.ZodNumber;
313
- g: z.ZodNumber;
314
- b: z.ZodNumber;
315
- }, z.core.$strip>>;
316
- fillRule: z.ZodOptional<z.ZodEnum<{
317
- nonzero: "nonzero";
318
- evenodd: "evenodd";
319
- }>>;
320
- stroke: z.ZodOptional<z.ZodObject<{
321
- color: z.ZodObject<{
322
- r: z.ZodNumber;
323
- g: z.ZodNumber;
324
- b: z.ZodNumber;
325
- }, z.core.$strip>;
326
- widthPt: z.ZodNumber;
327
- }, z.core.$strip>>;
328
- style: z.ZodOptional<z.ZodEnum<{
329
- solid: "solid";
330
- dashed: "dashed";
331
- dotted: "dotted";
332
- double: "double";
333
- }>>;
334
- sourcePath: z.ZodOptional<z.ZodString>;
335
- }, z.core.$strip>, z.ZodObject<{
336
- kind: z.ZodLiteral<"link">;
337
- uri: z.ZodString;
338
- xPt: z.ZodNumber;
339
- yPt: z.ZodNumber;
340
- widthPt: z.ZodNumber;
341
- heightPt: z.ZodNumber;
342
- sourcePath: z.ZodOptional<z.ZodString>;
343
- }, z.core.$strip>], "kind">;
344
- type LayoutItem = z.infer<typeof LayoutItemSchema>;
345
- declare const LayoutPageSchema: z.ZodObject<{
346
- widthPt: z.ZodNumber;
347
- heightPt: z.ZodNumber;
348
- items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
349
- kind: z.ZodLiteral<"text">;
350
- text: z.ZodString;
351
- xPt: z.ZodNumber;
352
- yPt: z.ZodNumber;
353
- font: z.ZodObject<{
354
- family: z.ZodString;
355
- weight: z.ZodEnum<{
356
- bold: "bold";
357
- normal: "normal";
358
- }>;
359
- style: z.ZodEnum<{
360
- italic: "italic";
361
- normal: "normal";
362
- }>;
363
- }, z.core.$strip>;
364
- sizePt: z.ZodNumber;
365
- color: z.ZodObject<{
366
- r: z.ZodNumber;
367
- g: z.ZodNumber;
368
- b: z.ZodNumber;
369
- }, z.core.$strip>;
370
- widthPt: z.ZodOptional<z.ZodNumber>;
371
- rotationDeg: z.ZodOptional<z.ZodNumber>;
372
- underline: z.ZodOptional<z.ZodBoolean>;
373
- sourcePath: z.ZodOptional<z.ZodString>;
374
- }, z.core.$strip>, z.ZodObject<{
375
- kind: z.ZodLiteral<"image">;
376
- imageId: z.ZodString;
377
- xPt: z.ZodNumber;
378
- yPt: z.ZodNumber;
379
- widthPt: z.ZodNumber;
380
- heightPt: z.ZodNumber;
381
- rotationDeg: z.ZodOptional<z.ZodNumber>;
382
- sourcePath: z.ZodOptional<z.ZodString>;
383
- }, z.core.$strip>, z.ZodObject<{
384
- kind: z.ZodLiteral<"rect">;
385
- xPt: z.ZodNumber;
386
- yPt: z.ZodNumber;
387
- widthPt: z.ZodNumber;
388
- heightPt: z.ZodNumber;
389
- fill: z.ZodOptional<z.ZodObject<{
390
- r: z.ZodNumber;
391
- g: z.ZodNumber;
392
- b: z.ZodNumber;
393
- }, z.core.$strip>>;
394
- stroke: z.ZodOptional<z.ZodObject<{
395
- color: z.ZodObject<{
396
- r: z.ZodNumber;
397
- g: z.ZodNumber;
398
- b: z.ZodNumber;
399
- }, z.core.$strip>;
400
- widthPt: z.ZodNumber;
401
- }, z.core.$strip>>;
402
- sourcePath: z.ZodOptional<z.ZodString>;
403
- }, z.core.$strip>, z.ZodObject<{
404
- kind: z.ZodLiteral<"line">;
405
- x1Pt: z.ZodNumber;
406
- y1Pt: z.ZodNumber;
407
- x2Pt: z.ZodNumber;
408
- y2Pt: z.ZodNumber;
409
- color: z.ZodObject<{
410
- r: z.ZodNumber;
411
- g: z.ZodNumber;
412
- b: z.ZodNumber;
413
- }, z.core.$strip>;
414
- widthPt: z.ZodNumber;
415
- style: z.ZodOptional<z.ZodEnum<{
416
- solid: "solid";
417
- dashed: "dashed";
418
- dotted: "dotted";
419
- double: "double";
420
- }>>;
421
- sourcePath: z.ZodOptional<z.ZodString>;
422
- }, z.core.$strip>, z.ZodObject<{
423
- kind: z.ZodLiteral<"ellipse">;
424
- xPt: z.ZodNumber;
425
- yPt: z.ZodNumber;
426
- widthPt: z.ZodNumber;
427
- heightPt: z.ZodNumber;
428
- fill: z.ZodOptional<z.ZodObject<{
429
- r: z.ZodNumber;
430
- g: z.ZodNumber;
431
- b: z.ZodNumber;
432
- }, z.core.$strip>>;
433
- stroke: z.ZodOptional<z.ZodObject<{
434
- color: z.ZodObject<{
435
- r: z.ZodNumber;
436
- g: z.ZodNumber;
437
- b: z.ZodNumber;
438
- }, z.core.$strip>;
439
- widthPt: z.ZodNumber;
440
- }, z.core.$strip>>;
441
- sourcePath: z.ZodOptional<z.ZodString>;
442
- }, z.core.$strip>, z.ZodObject<{
443
- kind: z.ZodLiteral<"path">;
444
- subpaths: z.ZodArray<z.ZodObject<{
445
- startXPt: z.ZodNumber;
446
- startYPt: z.ZodNumber;
447
- segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
448
- kind: z.ZodLiteral<"line">;
449
- xPt: z.ZodNumber;
450
- yPt: z.ZodNumber;
451
- }, z.core.$strip>, z.ZodObject<{
452
- kind: z.ZodLiteral<"cubic">;
453
- c1xPt: z.ZodNumber;
454
- c1yPt: z.ZodNumber;
455
- c2xPt: z.ZodNumber;
456
- c2yPt: z.ZodNumber;
457
- xPt: z.ZodNumber;
458
- yPt: z.ZodNumber;
459
- }, z.core.$strip>], "kind">>;
460
- closed: z.ZodBoolean;
461
- }, z.core.$strip>>;
462
- fill: z.ZodOptional<z.ZodObject<{
463
- r: z.ZodNumber;
464
- g: z.ZodNumber;
465
- b: z.ZodNumber;
466
- }, z.core.$strip>>;
467
- fillRule: z.ZodOptional<z.ZodEnum<{
468
- nonzero: "nonzero";
469
- evenodd: "evenodd";
470
- }>>;
471
- stroke: z.ZodOptional<z.ZodObject<{
472
- color: z.ZodObject<{
473
- r: z.ZodNumber;
474
- g: z.ZodNumber;
475
- b: z.ZodNumber;
476
- }, z.core.$strip>;
477
- widthPt: z.ZodNumber;
478
- }, z.core.$strip>>;
479
- style: z.ZodOptional<z.ZodEnum<{
480
- solid: "solid";
481
- dashed: "dashed";
482
- dotted: "dotted";
483
- double: "double";
484
- }>>;
485
- sourcePath: z.ZodOptional<z.ZodString>;
486
- }, z.core.$strip>, z.ZodObject<{
487
- kind: z.ZodLiteral<"link">;
488
- uri: z.ZodString;
489
- xPt: z.ZodNumber;
490
- yPt: z.ZodNumber;
491
- widthPt: z.ZodNumber;
492
- heightPt: z.ZodNumber;
493
- sourcePath: z.ZodOptional<z.ZodString>;
494
- }, z.core.$strip>], "kind">>;
495
- notes: z.ZodOptional<z.ZodString>;
496
- }, z.core.$strip>;
497
- type LayoutPage = z.infer<typeof LayoutPageSchema>;
498
- declare const LayoutImageAssetSchema: z.ZodObject<{
499
- format: z.ZodEnum<{
500
- png: "png";
501
- jpeg: "jpeg";
502
- }>;
503
- base64: z.ZodString;
504
- widthPx: z.ZodNumber;
505
- heightPx: z.ZodNumber;
506
- }, z.core.$strip>;
507
- type LayoutImageAsset = z.infer<typeof LayoutImageAssetSchema>;
508
- declare const LayoutDocumentSchema: z.ZodObject<{
509
- formatVersion: z.ZodLiteral<1>;
510
- metadata: z.ZodObject<{
511
- title: z.ZodOptional<z.ZodString>;
512
- author: z.ZodOptional<z.ZodString>;
513
- subject: z.ZodOptional<z.ZodString>;
514
- keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
515
- creator: z.ZodOptional<z.ZodString>;
516
- producer: z.ZodOptional<z.ZodString>;
517
- createdIso: z.ZodOptional<z.ZodString>;
518
- modifiedIso: z.ZodOptional<z.ZodString>;
519
- }, z.core.$strip>;
520
- pages: z.ZodArray<z.ZodObject<{
521
- widthPt: z.ZodNumber;
522
- heightPt: z.ZodNumber;
523
- items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
524
- kind: z.ZodLiteral<"text">;
525
- text: z.ZodString;
526
- xPt: z.ZodNumber;
527
- yPt: z.ZodNumber;
528
- font: z.ZodObject<{
529
- family: z.ZodString;
530
- weight: z.ZodEnum<{
531
- bold: "bold";
532
- normal: "normal";
533
- }>;
534
- style: z.ZodEnum<{
535
- italic: "italic";
536
- normal: "normal";
537
- }>;
538
- }, z.core.$strip>;
539
- sizePt: z.ZodNumber;
540
- color: z.ZodObject<{
541
- r: z.ZodNumber;
542
- g: z.ZodNumber;
543
- b: z.ZodNumber;
544
- }, z.core.$strip>;
545
- widthPt: z.ZodOptional<z.ZodNumber>;
546
- rotationDeg: z.ZodOptional<z.ZodNumber>;
547
- underline: z.ZodOptional<z.ZodBoolean>;
548
- sourcePath: z.ZodOptional<z.ZodString>;
549
- }, z.core.$strip>, z.ZodObject<{
550
- kind: z.ZodLiteral<"image">;
551
- imageId: z.ZodString;
552
- xPt: z.ZodNumber;
553
- yPt: z.ZodNumber;
554
- widthPt: z.ZodNumber;
555
- heightPt: z.ZodNumber;
556
- rotationDeg: z.ZodOptional<z.ZodNumber>;
557
- sourcePath: z.ZodOptional<z.ZodString>;
558
- }, z.core.$strip>, z.ZodObject<{
559
- kind: z.ZodLiteral<"rect">;
560
- xPt: z.ZodNumber;
561
- yPt: z.ZodNumber;
562
- widthPt: z.ZodNumber;
563
- heightPt: z.ZodNumber;
564
- fill: z.ZodOptional<z.ZodObject<{
565
- r: z.ZodNumber;
566
- g: z.ZodNumber;
567
- b: z.ZodNumber;
568
- }, z.core.$strip>>;
569
- stroke: z.ZodOptional<z.ZodObject<{
570
- color: z.ZodObject<{
571
- r: z.ZodNumber;
572
- g: z.ZodNumber;
573
- b: z.ZodNumber;
574
- }, z.core.$strip>;
575
- widthPt: z.ZodNumber;
576
- }, z.core.$strip>>;
577
- sourcePath: z.ZodOptional<z.ZodString>;
578
- }, z.core.$strip>, z.ZodObject<{
579
- kind: z.ZodLiteral<"line">;
580
- x1Pt: z.ZodNumber;
581
- y1Pt: z.ZodNumber;
582
- x2Pt: z.ZodNumber;
583
- y2Pt: z.ZodNumber;
584
- color: z.ZodObject<{
585
- r: z.ZodNumber;
586
- g: z.ZodNumber;
587
- b: z.ZodNumber;
588
- }, z.core.$strip>;
589
- widthPt: z.ZodNumber;
590
- style: z.ZodOptional<z.ZodEnum<{
591
- solid: "solid";
592
- dashed: "dashed";
593
- dotted: "dotted";
594
- double: "double";
595
- }>>;
596
- sourcePath: z.ZodOptional<z.ZodString>;
597
- }, z.core.$strip>, z.ZodObject<{
598
- kind: z.ZodLiteral<"ellipse">;
599
- xPt: z.ZodNumber;
600
- yPt: z.ZodNumber;
601
- widthPt: z.ZodNumber;
602
- heightPt: z.ZodNumber;
603
- fill: z.ZodOptional<z.ZodObject<{
604
- r: z.ZodNumber;
605
- g: z.ZodNumber;
606
- b: z.ZodNumber;
607
- }, z.core.$strip>>;
608
- stroke: z.ZodOptional<z.ZodObject<{
609
- color: z.ZodObject<{
610
- r: z.ZodNumber;
611
- g: z.ZodNumber;
612
- b: z.ZodNumber;
613
- }, z.core.$strip>;
614
- widthPt: z.ZodNumber;
615
- }, z.core.$strip>>;
616
- sourcePath: z.ZodOptional<z.ZodString>;
617
- }, z.core.$strip>, z.ZodObject<{
618
- kind: z.ZodLiteral<"path">;
619
- subpaths: z.ZodArray<z.ZodObject<{
620
- startXPt: z.ZodNumber;
621
- startYPt: z.ZodNumber;
622
- segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
623
- kind: z.ZodLiteral<"line">;
624
- xPt: z.ZodNumber;
625
- yPt: z.ZodNumber;
626
- }, z.core.$strip>, z.ZodObject<{
627
- kind: z.ZodLiteral<"cubic">;
628
- c1xPt: z.ZodNumber;
629
- c1yPt: z.ZodNumber;
630
- c2xPt: z.ZodNumber;
631
- c2yPt: z.ZodNumber;
632
- xPt: z.ZodNumber;
633
- yPt: z.ZodNumber;
634
- }, z.core.$strip>], "kind">>;
635
- closed: z.ZodBoolean;
636
- }, z.core.$strip>>;
637
- fill: z.ZodOptional<z.ZodObject<{
638
- r: z.ZodNumber;
639
- g: z.ZodNumber;
640
- b: z.ZodNumber;
641
- }, z.core.$strip>>;
642
- fillRule: z.ZodOptional<z.ZodEnum<{
643
- nonzero: "nonzero";
644
- evenodd: "evenodd";
645
- }>>;
646
- stroke: z.ZodOptional<z.ZodObject<{
647
- color: z.ZodObject<{
648
- r: z.ZodNumber;
649
- g: z.ZodNumber;
650
- b: z.ZodNumber;
651
- }, z.core.$strip>;
652
- widthPt: z.ZodNumber;
653
- }, z.core.$strip>>;
654
- style: z.ZodOptional<z.ZodEnum<{
655
- solid: "solid";
656
- dashed: "dashed";
657
- dotted: "dotted";
658
- double: "double";
659
- }>>;
660
- sourcePath: z.ZodOptional<z.ZodString>;
661
- }, z.core.$strip>, z.ZodObject<{
662
- kind: z.ZodLiteral<"link">;
663
- uri: z.ZodString;
664
- xPt: z.ZodNumber;
665
- yPt: z.ZodNumber;
666
- widthPt: z.ZodNumber;
667
- heightPt: z.ZodNumber;
668
- sourcePath: z.ZodOptional<z.ZodString>;
669
- }, z.core.$strip>], "kind">>;
670
- notes: z.ZodOptional<z.ZodString>;
671
- }, z.core.$strip>>;
672
- images: z.ZodRecord<z.ZodString, z.ZodObject<{
673
- format: z.ZodEnum<{
674
- png: "png";
675
- jpeg: "jpeg";
676
- }>;
677
- base64: z.ZodString;
678
- widthPx: z.ZodNumber;
679
- heightPx: z.ZodNumber;
680
- }, z.core.$strip>>;
681
- }, z.core.$strip>;
682
- type LayoutDocument = z.infer<typeof LayoutDocumentSchema>;
683
- //#endregion
684
- export { LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentSchema, LayoutEllipse, LayoutEllipseSchema, LayoutImage, LayoutImageAsset, LayoutImageAssetSchema, LayoutImageSchema, LayoutItem, LayoutItemSchema, LayoutLine, LayoutLineSchema, LayoutLink, LayoutLinkSchema, LayoutPage, LayoutPageSchema, LayoutPath, LayoutPathSchema, LayoutPathSegment, LayoutPathSegmentSchema, LayoutRect, LayoutRectSchema, LayoutSubpath, LayoutSubpathSchema, LayoutText, LayoutTextSchema };