document-schema 7.7.0 → 7.8.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/dist/codec.d.cts +1 -1
  2. package/dist/codec.d.ts +1 -1
  3. package/dist/{content-BlTHCDvF.d.cts → content-CBkzO-uB.d.cts} +1732 -31
  4. package/dist/content-json-schema-defs.cjs +126 -15
  5. package/dist/content-json-schema-defs.js +126 -15
  6. package/dist/{content-BqSMRlSK.d.ts → content-xlX3HwY8.d.ts} +1732 -31
  7. package/dist/content.cjs +70 -17
  8. package/dist/content.d.cts +2 -2
  9. package/dist/content.d.ts +2 -2
  10. package/dist/content.js +67 -18
  11. package/dist/decompose.d.cts +2 -2
  12. package/dist/decompose.d.ts +2 -2
  13. package/dist/definitions.d.cts +4 -4
  14. package/dist/definitions.d.ts +4 -4
  15. package/dist/factor-styles.d.cts +1 -1
  16. package/dist/factor-styles.d.ts +1 -1
  17. package/dist/flatten.d.cts +1 -1
  18. package/dist/flatten.d.ts +1 -1
  19. package/dist/index.cjs +4 -0
  20. package/dist/index.d.cts +4 -4
  21. package/dist/index.d.ts +4 -4
  22. package/dist/index.js +2 -2
  23. package/dist/{package-node-Btm9VsaX.d.cts → package-node-BWHA7o_U.d.cts} +302 -5
  24. package/dist/{package-node-DPm8hWYt.d.ts → package-node-F0sdAYc9.d.ts} +302 -5
  25. package/dist/package-node.d.cts +1 -1
  26. package/dist/package-node.d.ts +1 -1
  27. package/dist/package.d.cts +33 -6
  28. package/dist/package.d.ts +33 -6
  29. package/dist/schema-io.cjs +2 -2
  30. package/dist/schema-io.d.cts +1 -1
  31. package/dist/schema-io.d.ts +1 -1
  32. package/dist/schema-io.js +2 -2
  33. package/dist/{style-D06NwxAJ.d.cts → style-BGMcYrD2.d.cts} +1 -1
  34. package/dist/{style-D06NwxAJ.d.ts → style-BGMcYrD2.d.ts} +1 -1
  35. package/dist/style.d.cts +1 -1
  36. package/dist/style.d.ts +1 -1
  37. package/dist/text-layout.d.cts +1 -1
  38. package/dist/text-layout.d.ts +1 -1
  39. package/package.json +1 -1
  40. package/schemas/content-document.schema.json +1138 -13
  41. package/schemas/document-tree.schema.json +208 -3
@@ -1,4 +1,4 @@
1
- import { Bt as ContentSheetImage, E as ContentEmbeddedObject, U as ContentFormula, g as ContentConstructEnd, hn as ContentVector, i as ContentBlock, v as ContentConstructStart } from "./content-BlTHCDvF.cjs";
1
+ import { D as ContentEmbeddedObject, Gt as ContentSheetImage, Sn as ContentVector, W as ContentFormula, _ as ContentConstructEnd, a as ContentBlock, y as ContentConstructStart } from "./content-CBkzO-uB.cjs";
2
2
  import { a as ConstructDescriptor } from "./construct-C9cYkjnd.cjs";
3
3
  import { z } from "zod";
4
4
  //#region src/package-node.d.ts
@@ -23,6 +23,33 @@ declare const SectionDescriptorSchema: z.ZodObject<{
23
23
  }>;
24
24
  xml: z.ZodString;
25
25
  }, z.core.$strict>>;
26
+ origin: z.ZodOptional<z.ZodEnum<{
27
+ chart: "chart";
28
+ diagram: "diagram";
29
+ table: "table";
30
+ image: "image";
31
+ notes: "notes";
32
+ body: "body";
33
+ }>>;
34
+ interpretation: z.ZodOptional<z.ZodObject<{
35
+ transcript: z.ZodOptional<z.ZodObject<{
36
+ text: z.ZodString;
37
+ confidence: z.ZodEnum<{
38
+ high: "high";
39
+ medium: "medium";
40
+ low: "low";
41
+ }>;
42
+ mechanism: z.ZodEnum<{
43
+ deterministic: "deterministic";
44
+ model: "model";
45
+ }>;
46
+ }, z.core.$strip>>;
47
+ description: z.ZodOptional<z.ZodString>;
48
+ by: z.ZodOptional<z.ZodObject<{
49
+ model: z.ZodString;
50
+ at: z.ZodString;
51
+ }, z.core.$strip>>;
52
+ }, z.core.$strip>>;
26
53
  pageSize: z.ZodObject<{
27
54
  widthPt: z.ZodNumber;
28
55
  heightPt: z.ZodNumber;
@@ -73,11 +100,38 @@ declare const SlideDescriptorSchema: z.ZodObject<{
73
100
  }>;
74
101
  xml: z.ZodString;
75
102
  }, z.core.$strict>>;
103
+ notes: z.ZodString;
104
+ origin: z.ZodOptional<z.ZodEnum<{
105
+ chart: "chart";
106
+ diagram: "diagram";
107
+ table: "table";
108
+ image: "image";
109
+ notes: "notes";
110
+ body: "body";
111
+ }>>;
112
+ interpretation: z.ZodOptional<z.ZodObject<{
113
+ transcript: z.ZodOptional<z.ZodObject<{
114
+ text: z.ZodString;
115
+ confidence: z.ZodEnum<{
116
+ high: "high";
117
+ medium: "medium";
118
+ low: "low";
119
+ }>;
120
+ mechanism: z.ZodEnum<{
121
+ deterministic: "deterministic";
122
+ model: "model";
123
+ }>;
124
+ }, z.core.$strip>>;
125
+ description: z.ZodOptional<z.ZodString>;
126
+ by: z.ZodOptional<z.ZodObject<{
127
+ model: z.ZodString;
128
+ at: z.ZodString;
129
+ }, z.core.$strip>>;
130
+ }, z.core.$strip>>;
76
131
  size: z.ZodObject<{
77
132
  widthPt: z.ZodNumber;
78
133
  heightPt: z.ZodNumber;
79
134
  }, z.core.$strip>;
80
- notes: z.ZodString;
81
135
  kind: z.ZodLiteral<"slide">;
82
136
  }, z.core.$strict>;
83
137
  type SlideDescriptor = z.infer<typeof SlideDescriptorSchema>;
@@ -103,6 +157,33 @@ declare const SheetDescriptorSchema: z.ZodObject<{
103
157
  xml: z.ZodString;
104
158
  }, z.core.$strict>>;
105
159
  name: z.ZodString;
160
+ origin: z.ZodOptional<z.ZodEnum<{
161
+ chart: "chart";
162
+ diagram: "diagram";
163
+ table: "table";
164
+ image: "image";
165
+ notes: "notes";
166
+ body: "body";
167
+ }>>;
168
+ interpretation: z.ZodOptional<z.ZodObject<{
169
+ transcript: z.ZodOptional<z.ZodObject<{
170
+ text: z.ZodString;
171
+ confidence: z.ZodEnum<{
172
+ high: "high";
173
+ medium: "medium";
174
+ low: "low";
175
+ }>;
176
+ mechanism: z.ZodEnum<{
177
+ deterministic: "deterministic";
178
+ model: "model";
179
+ }>;
180
+ }, z.core.$strip>>;
181
+ description: z.ZodOptional<z.ZodString>;
182
+ by: z.ZodOptional<z.ZodObject<{
183
+ model: z.ZodString;
184
+ at: z.ZodString;
185
+ }, z.core.$strip>>;
186
+ }, z.core.$strip>>;
106
187
  printSettings: z.ZodObject<{
107
188
  pageSize: z.ZodObject<{
108
189
  widthPt: z.ZodNumber;
@@ -145,6 +226,33 @@ declare const SheetDescriptorSchema: z.ZodObject<{
145
226
  }, z.core.$strip>>;
146
227
  }, z.core.$strip>;
147
228
  cells: z.ZodArray<z.ZodObject<{
229
+ origin: z.ZodOptional<z.ZodEnum<{
230
+ chart: "chart";
231
+ diagram: "diagram";
232
+ table: "table";
233
+ image: "image";
234
+ notes: "notes";
235
+ body: "body";
236
+ }>>;
237
+ interpretation: z.ZodOptional<z.ZodObject<{
238
+ transcript: z.ZodOptional<z.ZodObject<{
239
+ text: z.ZodString;
240
+ confidence: z.ZodEnum<{
241
+ high: "high";
242
+ medium: "medium";
243
+ low: "low";
244
+ }>;
245
+ mechanism: z.ZodEnum<{
246
+ deterministic: "deterministic";
247
+ model: "model";
248
+ }>;
249
+ }, z.core.$strip>>;
250
+ description: z.ZodOptional<z.ZodString>;
251
+ by: z.ZodOptional<z.ZodObject<{
252
+ model: z.ZodString;
253
+ at: z.ZodString;
254
+ }, z.core.$strip>>;
255
+ }, z.core.$strip>>;
148
256
  row: z.ZodNumber;
149
257
  column: z.ZodNumber;
150
258
  value: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -198,6 +306,33 @@ declare const SheetDescriptorSchema: z.ZodObject<{
198
306
  }, z.core.$strip>>;
199
307
  }, z.core.$strip>>;
200
308
  runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
309
+ origin: z.ZodOptional<z.ZodEnum<{
310
+ chart: "chart";
311
+ diagram: "diagram";
312
+ table: "table";
313
+ image: "image";
314
+ notes: "notes";
315
+ body: "body";
316
+ }>>;
317
+ interpretation: z.ZodOptional<z.ZodObject<{
318
+ transcript: z.ZodOptional<z.ZodObject<{
319
+ text: z.ZodString;
320
+ confidence: z.ZodEnum<{
321
+ high: "high";
322
+ medium: "medium";
323
+ low: "low";
324
+ }>;
325
+ mechanism: z.ZodEnum<{
326
+ deterministic: "deterministic";
327
+ model: "model";
328
+ }>;
329
+ }, z.core.$strip>>;
330
+ description: z.ZodOptional<z.ZodString>;
331
+ by: z.ZodOptional<z.ZodObject<{
332
+ model: z.ZodString;
333
+ at: z.ZodString;
334
+ }, z.core.$strip>>;
335
+ }, z.core.$strip>>;
201
336
  hyperlink: z.ZodOptional<z.ZodString>;
202
337
  verticalAlign: z.ZodOptional<z.ZodEnum<{
203
338
  superscript: "superscript";
@@ -412,8 +547,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
412
547
  }, z.core.$strip>>;
413
548
  alignment: z.ZodOptional<z.ZodEnum<{
414
549
  left: "left";
415
- center: "center";
416
550
  right: "right";
551
+ center: "center";
417
552
  justify: "justify";
418
553
  }>>;
419
554
  verticalAlignment: z.ZodOptional<z.ZodEnum<{
@@ -1123,6 +1258,33 @@ declare const DrawPageDescriptorSchema: z.ZodObject<{
1123
1258
  }>;
1124
1259
  xml: z.ZodString;
1125
1260
  }, z.core.$strict>>;
1261
+ origin: z.ZodOptional<z.ZodEnum<{
1262
+ chart: "chart";
1263
+ diagram: "diagram";
1264
+ table: "table";
1265
+ image: "image";
1266
+ notes: "notes";
1267
+ body: "body";
1268
+ }>>;
1269
+ interpretation: z.ZodOptional<z.ZodObject<{
1270
+ transcript: z.ZodOptional<z.ZodObject<{
1271
+ text: z.ZodString;
1272
+ confidence: z.ZodEnum<{
1273
+ high: "high";
1274
+ medium: "medium";
1275
+ low: "low";
1276
+ }>;
1277
+ mechanism: z.ZodEnum<{
1278
+ deterministic: "deterministic";
1279
+ model: "model";
1280
+ }>;
1281
+ }, z.core.$strip>>;
1282
+ description: z.ZodOptional<z.ZodString>;
1283
+ by: z.ZodOptional<z.ZodObject<{
1284
+ model: z.ZodString;
1285
+ at: z.ZodString;
1286
+ }, z.core.$strip>>;
1287
+ }, z.core.$strip>>;
1126
1288
  size: z.ZodObject<{
1127
1289
  widthPt: z.ZodNumber;
1128
1290
  heightPt: z.ZodNumber;
@@ -1160,6 +1322,33 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
1160
1322
  widthPt: z.ZodNumber;
1161
1323
  heightPt: z.ZodNumber;
1162
1324
  }, z.core.$strip>>>;
1325
+ origin: z.ZodOptional<z.ZodEnum<{
1326
+ chart: "chart";
1327
+ diagram: "diagram";
1328
+ table: "table";
1329
+ image: "image";
1330
+ notes: "notes";
1331
+ body: "body";
1332
+ }>>;
1333
+ interpretation: z.ZodOptional<z.ZodObject<{
1334
+ transcript: z.ZodOptional<z.ZodObject<{
1335
+ text: z.ZodString;
1336
+ confidence: z.ZodEnum<{
1337
+ high: "high";
1338
+ medium: "medium";
1339
+ low: "low";
1340
+ }>;
1341
+ mechanism: z.ZodEnum<{
1342
+ deterministic: "deterministic";
1343
+ model: "model";
1344
+ }>;
1345
+ }, z.core.$strip>>;
1346
+ description: z.ZodOptional<z.ZodString>;
1347
+ by: z.ZodOptional<z.ZodObject<{
1348
+ model: z.ZodString;
1349
+ at: z.ZodString;
1350
+ }, z.core.$strip>>;
1351
+ }, z.core.$strip>>;
1163
1352
  frame: z.ZodObject<{
1164
1353
  xPt: z.ZodNumber;
1165
1354
  yPt: z.ZodNumber;
@@ -1177,8 +1366,62 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
1177
1366
  }, z.core.$strict>;
1178
1367
  type ShapeDescriptor = z.infer<typeof ShapeDescriptorSchema>;
1179
1368
  declare const HeadingParagraphSchema: z.ZodObject<{
1369
+ origin: z.ZodOptional<z.ZodEnum<{
1370
+ chart: "chart";
1371
+ diagram: "diagram";
1372
+ table: "table";
1373
+ image: "image";
1374
+ notes: "notes";
1375
+ body: "body";
1376
+ }>>;
1377
+ interpretation: z.ZodOptional<z.ZodObject<{
1378
+ transcript: z.ZodOptional<z.ZodObject<{
1379
+ text: z.ZodString;
1380
+ confidence: z.ZodEnum<{
1381
+ high: "high";
1382
+ medium: "medium";
1383
+ low: "low";
1384
+ }>;
1385
+ mechanism: z.ZodEnum<{
1386
+ deterministic: "deterministic";
1387
+ model: "model";
1388
+ }>;
1389
+ }, z.core.$strip>>;
1390
+ description: z.ZodOptional<z.ZodString>;
1391
+ by: z.ZodOptional<z.ZodObject<{
1392
+ model: z.ZodString;
1393
+ at: z.ZodString;
1394
+ }, z.core.$strip>>;
1395
+ }, z.core.$strip>>;
1180
1396
  kind: z.ZodLiteral<"paragraph">;
1181
1397
  runs: z.ZodArray<z.ZodObject<{
1398
+ origin: z.ZodOptional<z.ZodEnum<{
1399
+ chart: "chart";
1400
+ diagram: "diagram";
1401
+ table: "table";
1402
+ image: "image";
1403
+ notes: "notes";
1404
+ body: "body";
1405
+ }>>;
1406
+ interpretation: z.ZodOptional<z.ZodObject<{
1407
+ transcript: z.ZodOptional<z.ZodObject<{
1408
+ text: z.ZodString;
1409
+ confidence: z.ZodEnum<{
1410
+ high: "high";
1411
+ medium: "medium";
1412
+ low: "low";
1413
+ }>;
1414
+ mechanism: z.ZodEnum<{
1415
+ deterministic: "deterministic";
1416
+ model: "model";
1417
+ }>;
1418
+ }, z.core.$strip>>;
1419
+ description: z.ZodOptional<z.ZodString>;
1420
+ by: z.ZodOptional<z.ZodObject<{
1421
+ model: z.ZodString;
1422
+ at: z.ZodString;
1423
+ }, z.core.$strip>>;
1424
+ }, z.core.$strip>>;
1182
1425
  hyperlink: z.ZodOptional<z.ZodString>;
1183
1426
  verticalAlign: z.ZodOptional<z.ZodEnum<{
1184
1427
  superscript: "superscript";
@@ -1428,8 +1671,8 @@ declare const HeadingParagraphSchema: z.ZodObject<{
1428
1671
  preformatted: z.ZodOptional<z.ZodBoolean>;
1429
1672
  alignment: z.ZodOptional<z.ZodEnum<{
1430
1673
  left: "left";
1431
- center: "center";
1432
1674
  right: "right";
1675
+ center: "center";
1433
1676
  justify: "justify";
1434
1677
  }>>;
1435
1678
  list: z.ZodOptional<z.ZodObject<{
@@ -1548,8 +1791,62 @@ declare const HeadingParagraphSchema: z.ZodObject<{
1548
1791
  }, z.core.$strip>;
1549
1792
  type HeadingParagraph = z.infer<typeof HeadingParagraphSchema>;
1550
1793
  declare const ListParagraphSchema: z.ZodObject<{
1794
+ origin: z.ZodOptional<z.ZodEnum<{
1795
+ chart: "chart";
1796
+ diagram: "diagram";
1797
+ table: "table";
1798
+ image: "image";
1799
+ notes: "notes";
1800
+ body: "body";
1801
+ }>>;
1802
+ interpretation: z.ZodOptional<z.ZodObject<{
1803
+ transcript: z.ZodOptional<z.ZodObject<{
1804
+ text: z.ZodString;
1805
+ confidence: z.ZodEnum<{
1806
+ high: "high";
1807
+ medium: "medium";
1808
+ low: "low";
1809
+ }>;
1810
+ mechanism: z.ZodEnum<{
1811
+ deterministic: "deterministic";
1812
+ model: "model";
1813
+ }>;
1814
+ }, z.core.$strip>>;
1815
+ description: z.ZodOptional<z.ZodString>;
1816
+ by: z.ZodOptional<z.ZodObject<{
1817
+ model: z.ZodString;
1818
+ at: z.ZodString;
1819
+ }, z.core.$strip>>;
1820
+ }, z.core.$strip>>;
1551
1821
  kind: z.ZodLiteral<"paragraph">;
1552
1822
  runs: z.ZodArray<z.ZodObject<{
1823
+ origin: z.ZodOptional<z.ZodEnum<{
1824
+ chart: "chart";
1825
+ diagram: "diagram";
1826
+ table: "table";
1827
+ image: "image";
1828
+ notes: "notes";
1829
+ body: "body";
1830
+ }>>;
1831
+ interpretation: z.ZodOptional<z.ZodObject<{
1832
+ transcript: z.ZodOptional<z.ZodObject<{
1833
+ text: z.ZodString;
1834
+ confidence: z.ZodEnum<{
1835
+ high: "high";
1836
+ medium: "medium";
1837
+ low: "low";
1838
+ }>;
1839
+ mechanism: z.ZodEnum<{
1840
+ deterministic: "deterministic";
1841
+ model: "model";
1842
+ }>;
1843
+ }, z.core.$strip>>;
1844
+ description: z.ZodOptional<z.ZodString>;
1845
+ by: z.ZodOptional<z.ZodObject<{
1846
+ model: z.ZodString;
1847
+ at: z.ZodString;
1848
+ }, z.core.$strip>>;
1849
+ }, z.core.$strip>>;
1553
1850
  hyperlink: z.ZodOptional<z.ZodString>;
1554
1851
  verticalAlign: z.ZodOptional<z.ZodEnum<{
1555
1852
  superscript: "superscript";
@@ -1800,8 +2097,8 @@ declare const ListParagraphSchema: z.ZodObject<{
1800
2097
  headingLevel: z.ZodOptional<z.ZodNumber>;
1801
2098
  alignment: z.ZodOptional<z.ZodEnum<{
1802
2099
  left: "left";
1803
- center: "center";
1804
2100
  right: "right";
2101
+ center: "center";
1805
2102
  justify: "justify";
1806
2103
  }>>;
1807
2104
  spacingBeforePt: z.ZodOptional<z.ZodNumber>;