rtf-codec 4.2.1 → 4.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/codec.d.cts CHANGED
@@ -11,8 +11,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
11
11
  paragraph: z.ZodOptional<z.ZodObject<{
12
12
  alignment: z.ZodOptional<z.ZodEnum<{
13
13
  left: "left";
14
- right: "right";
15
14
  center: "center";
15
+ right: "right";
16
16
  justify: "justify";
17
17
  }>>;
18
18
  list: z.ZodOptional<z.ZodObject<{
@@ -160,8 +160,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
160
160
  paragraph: z.ZodOptional<z.ZodObject<{
161
161
  alignment: z.ZodOptional<z.ZodEnum<{
162
162
  left: "left";
163
- right: "right";
164
163
  center: "center";
164
+ right: "right";
165
165
  justify: "justify";
166
166
  }>>;
167
167
  list: z.ZodOptional<z.ZodObject<{
@@ -300,6 +300,11 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
300
300
  }, z.core.$strip>;
301
301
  kind: z.ZodLiteral<"presentation">;
302
302
  }, z.core.$strip>, z.ZodObject<{
303
+ names: z.ZodOptional<z.ZodArray<z.ZodObject<{
304
+ name: z.ZodString;
305
+ refersTo: z.ZodString;
306
+ scopeSheetIndex: z.ZodOptional<z.ZodNumber>;
307
+ }, z.core.$strip>>>;
303
308
  children: z.ZodArray<z.ZodCustom<import("document-schema.js").SheetGroupNode, import("document-schema.js").SheetGroupNode>>;
304
309
  pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
305
310
  widthPt: z.ZodNumber;
@@ -309,8 +314,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
309
314
  paragraph: z.ZodOptional<z.ZodObject<{
310
315
  alignment: z.ZodOptional<z.ZodEnum<{
311
316
  left: "left";
312
- right: "right";
313
317
  center: "center";
318
+ right: "right";
314
319
  justify: "justify";
315
320
  }>>;
316
321
  list: z.ZodOptional<z.ZodObject<{
@@ -458,8 +463,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
458
463
  paragraph: z.ZodOptional<z.ZodObject<{
459
464
  alignment: z.ZodOptional<z.ZodEnum<{
460
465
  left: "left";
461
- right: "right";
462
466
  center: "center";
467
+ right: "right";
463
468
  justify: "justify";
464
469
  }>>;
465
470
  list: z.ZodOptional<z.ZodObject<{
@@ -599,6 +604,33 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
599
604
  kind: z.ZodLiteral<"drawing">;
600
605
  }, z.core.$strip>, z.ZodObject<{
601
606
  children: z.ZodArray<z.ZodObject<{
607
+ origin: z.ZodOptional<z.ZodEnum<{
608
+ chart: "chart";
609
+ diagram: "diagram";
610
+ table: "table";
611
+ image: "image";
612
+ notes: "notes";
613
+ body: "body";
614
+ }>>;
615
+ interpretation: z.ZodOptional<z.ZodObject<{
616
+ transcript: z.ZodOptional<z.ZodObject<{
617
+ text: z.ZodString;
618
+ confidence: z.ZodEnum<{
619
+ high: "high";
620
+ medium: "medium";
621
+ low: "low";
622
+ }>;
623
+ mechanism: z.ZodEnum<{
624
+ deterministic: "deterministic";
625
+ model: "model";
626
+ }>;
627
+ }, z.core.$strip>>;
628
+ description: z.ZodOptional<z.ZodString>;
629
+ by: z.ZodOptional<z.ZodObject<{
630
+ model: z.ZodString;
631
+ at: z.ZodString;
632
+ }, z.core.$strip>>;
633
+ }, z.core.$strip>>;
602
634
  mathml: z.ZodArray<z.ZodType<import("document-schema.js").MathMlNode, import("document-schema.js").MathMlNode, z.core.$ZodTypeInternals<import("document-schema.js").MathMlNode, import("document-schema.js").MathMlNode>>>;
603
635
  starMath: z.ZodOptional<z.ZodString>;
604
636
  presentation: z.ZodOptional<z.ZodObject<{
@@ -639,8 +671,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
639
671
  paragraph: z.ZodOptional<z.ZodObject<{
640
672
  alignment: z.ZodOptional<z.ZodEnum<{
641
673
  left: "left";
642
- right: "right";
643
674
  center: "center";
675
+ right: "right";
644
676
  justify: "justify";
645
677
  }>>;
646
678
  list: z.ZodOptional<z.ZodObject<{
@@ -781,6 +813,33 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
781
813
  }, z.core.$strip>], "kind">>;
782
814
  declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
783
815
  sections: z.ZodArray<z.ZodObject<{
816
+ origin: z.ZodOptional<z.ZodEnum<{
817
+ chart: "chart";
818
+ diagram: "diagram";
819
+ table: "table";
820
+ image: "image";
821
+ notes: "notes";
822
+ body: "body";
823
+ }>>;
824
+ interpretation: z.ZodOptional<z.ZodObject<{
825
+ transcript: z.ZodOptional<z.ZodObject<{
826
+ text: z.ZodString;
827
+ confidence: z.ZodEnum<{
828
+ high: "high";
829
+ medium: "medium";
830
+ low: "low";
831
+ }>;
832
+ mechanism: z.ZodEnum<{
833
+ deterministic: "deterministic";
834
+ model: "model";
835
+ }>;
836
+ }, z.core.$strip>>;
837
+ description: z.ZodOptional<z.ZodString>;
838
+ by: z.ZodOptional<z.ZodObject<{
839
+ model: z.ZodString;
840
+ at: z.ZodString;
841
+ }, z.core.$strip>>;
842
+ }, z.core.$strip>>;
784
843
  pageSize: z.ZodObject<{
785
844
  widthPt: z.ZodNumber;
786
845
  heightPt: z.ZodNumber;
@@ -898,11 +957,66 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
898
957
  }, z.core.$strip>;
899
958
  }, z.core.$strip>, z.ZodObject<{
900
959
  slides: z.ZodArray<z.ZodObject<{
960
+ origin: z.ZodOptional<z.ZodEnum<{
961
+ chart: "chart";
962
+ diagram: "diagram";
963
+ table: "table";
964
+ image: "image";
965
+ notes: "notes";
966
+ body: "body";
967
+ }>>;
968
+ interpretation: z.ZodOptional<z.ZodObject<{
969
+ transcript: z.ZodOptional<z.ZodObject<{
970
+ text: z.ZodString;
971
+ confidence: z.ZodEnum<{
972
+ high: "high";
973
+ medium: "medium";
974
+ low: "low";
975
+ }>;
976
+ mechanism: z.ZodEnum<{
977
+ deterministic: "deterministic";
978
+ model: "model";
979
+ }>;
980
+ }, z.core.$strip>>;
981
+ description: z.ZodOptional<z.ZodString>;
982
+ by: z.ZodOptional<z.ZodObject<{
983
+ model: z.ZodString;
984
+ at: z.ZodString;
985
+ }, z.core.$strip>>;
986
+ }, z.core.$strip>>;
901
987
  size: z.ZodObject<{
902
988
  widthPt: z.ZodNumber;
903
989
  heightPt: z.ZodNumber;
904
990
  }, z.core.$strip>;
905
991
  shapes: z.ZodArray<z.ZodObject<{
992
+ blocks: z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>;
993
+ origin: z.ZodOptional<z.ZodEnum<{
994
+ chart: "chart";
995
+ diagram: "diagram";
996
+ table: "table";
997
+ image: "image";
998
+ notes: "notes";
999
+ body: "body";
1000
+ }>>;
1001
+ interpretation: z.ZodOptional<z.ZodObject<{
1002
+ transcript: z.ZodOptional<z.ZodObject<{
1003
+ text: z.ZodString;
1004
+ confidence: z.ZodEnum<{
1005
+ high: "high";
1006
+ medium: "medium";
1007
+ low: "low";
1008
+ }>;
1009
+ mechanism: z.ZodEnum<{
1010
+ deterministic: "deterministic";
1011
+ model: "model";
1012
+ }>;
1013
+ }, z.core.$strip>>;
1014
+ description: z.ZodOptional<z.ZodString>;
1015
+ by: z.ZodOptional<z.ZodObject<{
1016
+ model: z.ZodString;
1017
+ at: z.ZodString;
1018
+ }, z.core.$strip>>;
1019
+ }, z.core.$strip>>;
906
1020
  name: z.ZodOptional<z.ZodString>;
907
1021
  frame: z.ZodObject<{
908
1022
  xPt: z.ZodNumber;
@@ -946,7 +1060,6 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
946
1060
  widthPt: z.ZodNumber;
947
1061
  heightPt: z.ZodNumber;
948
1062
  }, z.core.$strip>>>;
949
- blocks: z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>;
950
1063
  }, z.core.$strip>>;
951
1064
  notes: z.ZodString;
952
1065
  source: z.ZodOptional<z.ZodObject<{
@@ -1039,8 +1152,62 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1039
1152
  }, z.core.$strip>;
1040
1153
  }, z.core.$strip>, z.ZodObject<{
1041
1154
  sheets: z.ZodArray<z.ZodObject<{
1155
+ origin: z.ZodOptional<z.ZodEnum<{
1156
+ chart: "chart";
1157
+ diagram: "diagram";
1158
+ table: "table";
1159
+ image: "image";
1160
+ notes: "notes";
1161
+ body: "body";
1162
+ }>>;
1163
+ interpretation: z.ZodOptional<z.ZodObject<{
1164
+ transcript: z.ZodOptional<z.ZodObject<{
1165
+ text: z.ZodString;
1166
+ confidence: z.ZodEnum<{
1167
+ high: "high";
1168
+ medium: "medium";
1169
+ low: "low";
1170
+ }>;
1171
+ mechanism: z.ZodEnum<{
1172
+ deterministic: "deterministic";
1173
+ model: "model";
1174
+ }>;
1175
+ }, z.core.$strip>>;
1176
+ description: z.ZodOptional<z.ZodString>;
1177
+ by: z.ZodOptional<z.ZodObject<{
1178
+ model: z.ZodString;
1179
+ at: z.ZodString;
1180
+ }, z.core.$strip>>;
1181
+ }, z.core.$strip>>;
1042
1182
  name: z.ZodString;
1043
1183
  cells: z.ZodArray<z.ZodObject<{
1184
+ origin: z.ZodOptional<z.ZodEnum<{
1185
+ chart: "chart";
1186
+ diagram: "diagram";
1187
+ table: "table";
1188
+ image: "image";
1189
+ notes: "notes";
1190
+ body: "body";
1191
+ }>>;
1192
+ interpretation: z.ZodOptional<z.ZodObject<{
1193
+ transcript: z.ZodOptional<z.ZodObject<{
1194
+ text: z.ZodString;
1195
+ confidence: z.ZodEnum<{
1196
+ high: "high";
1197
+ medium: "medium";
1198
+ low: "low";
1199
+ }>;
1200
+ mechanism: z.ZodEnum<{
1201
+ deterministic: "deterministic";
1202
+ model: "model";
1203
+ }>;
1204
+ }, z.core.$strip>>;
1205
+ description: z.ZodOptional<z.ZodString>;
1206
+ by: z.ZodOptional<z.ZodObject<{
1207
+ model: z.ZodString;
1208
+ at: z.ZodString;
1209
+ }, z.core.$strip>>;
1210
+ }, z.core.$strip>>;
1044
1211
  row: z.ZodNumber;
1045
1212
  column: z.ZodNumber;
1046
1213
  value: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1080,8 +1247,7 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1080
1247
  formula: z.ZodOptional<z.ZodString>;
1081
1248
  displayText: z.ZodString;
1082
1249
  numberFormatCode: z.ZodOptional<z.ZodString>;
1083
- runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1084
- text: z.ZodString;
1250
+ font: z.ZodOptional<z.ZodObject<{
1085
1251
  bold: z.ZodOptional<z.ZodBoolean>;
1086
1252
  italic: z.ZodOptional<z.ZodBoolean>;
1087
1253
  underline: z.ZodOptional<z.ZodBoolean>;
@@ -1093,6 +1259,35 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1093
1259
  g: z.ZodNumber;
1094
1260
  b: z.ZodNumber;
1095
1261
  }, z.core.$strip>>;
1262
+ }, z.core.$strip>>;
1263
+ runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1264
+ origin: z.ZodOptional<z.ZodEnum<{
1265
+ chart: "chart";
1266
+ diagram: "diagram";
1267
+ table: "table";
1268
+ image: "image";
1269
+ notes: "notes";
1270
+ body: "body";
1271
+ }>>;
1272
+ interpretation: z.ZodOptional<z.ZodObject<{
1273
+ transcript: z.ZodOptional<z.ZodObject<{
1274
+ text: z.ZodString;
1275
+ confidence: z.ZodEnum<{
1276
+ high: "high";
1277
+ medium: "medium";
1278
+ low: "low";
1279
+ }>;
1280
+ mechanism: z.ZodEnum<{
1281
+ deterministic: "deterministic";
1282
+ model: "model";
1283
+ }>;
1284
+ }, z.core.$strip>>;
1285
+ description: z.ZodOptional<z.ZodString>;
1286
+ by: z.ZodOptional<z.ZodObject<{
1287
+ model: z.ZodString;
1288
+ at: z.ZodString;
1289
+ }, z.core.$strip>>;
1290
+ }, z.core.$strip>>;
1096
1291
  hyperlink: z.ZodOptional<z.ZodString>;
1097
1292
  verticalAlign: z.ZodOptional<z.ZodEnum<{
1098
1293
  superscript: "superscript";
@@ -1130,6 +1325,18 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1130
1325
  widthPt: z.ZodNumber;
1131
1326
  heightPt: z.ZodNumber;
1132
1327
  }, z.core.$strip>>>;
1328
+ bold: z.ZodOptional<z.ZodBoolean>;
1329
+ italic: z.ZodOptional<z.ZodBoolean>;
1330
+ underline: z.ZodOptional<z.ZodBoolean>;
1331
+ strike: z.ZodOptional<z.ZodBoolean>;
1332
+ fontFamily: z.ZodOptional<z.ZodString>;
1333
+ sizePt: z.ZodOptional<z.ZodNumber>;
1334
+ color: z.ZodOptional<z.ZodObject<{
1335
+ r: z.ZodNumber;
1336
+ g: z.ZodNumber;
1337
+ b: z.ZodNumber;
1338
+ }, z.core.$strip>>;
1339
+ text: z.ZodString;
1133
1340
  }, z.core.$strip>>>;
1134
1341
  colSpan: z.ZodOptional<z.ZodNumber>;
1135
1342
  rowSpan: z.ZodOptional<z.ZodNumber>;
@@ -1295,8 +1502,8 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1295
1502
  }, z.core.$strip>>;
1296
1503
  alignment: z.ZodOptional<z.ZodEnum<{
1297
1504
  left: "left";
1298
- right: "right";
1299
1505
  center: "center";
1506
+ right: "right";
1300
1507
  justify: "justify";
1301
1508
  }>>;
1302
1509
  verticalAlignment: z.ZodOptional<z.ZodEnum<{
@@ -1353,6 +1560,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1353
1560
  hidden: z.ZodOptional<z.ZodBoolean>;
1354
1561
  }, z.core.$strip>>;
1355
1562
  images: z.ZodArray<z.ZodObject<{
1563
+ origin: z.ZodOptional<z.ZodEnum<{
1564
+ chart: "chart";
1565
+ diagram: "diagram";
1566
+ table: "table";
1567
+ image: "image";
1568
+ notes: "notes";
1569
+ body: "body";
1570
+ }>>;
1571
+ interpretation: z.ZodOptional<z.ZodObject<{
1572
+ transcript: z.ZodOptional<z.ZodObject<{
1573
+ text: z.ZodString;
1574
+ confidence: z.ZodEnum<{
1575
+ high: "high";
1576
+ medium: "medium";
1577
+ low: "low";
1578
+ }>;
1579
+ mechanism: z.ZodEnum<{
1580
+ deterministic: "deterministic";
1581
+ model: "model";
1582
+ }>;
1583
+ }, z.core.$strip>>;
1584
+ description: z.ZodOptional<z.ZodString>;
1585
+ by: z.ZodOptional<z.ZodObject<{
1586
+ model: z.ZodString;
1587
+ at: z.ZodString;
1588
+ }, z.core.$strip>>;
1589
+ }, z.core.$strip>>;
1356
1590
  kind: z.ZodLiteral<"image">;
1357
1591
  format: z.ZodEnum<{
1358
1592
  png: "png";
@@ -1364,6 +1598,16 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1364
1598
  widthPt: z.ZodNumber;
1365
1599
  heightPt: z.ZodNumber;
1366
1600
  altText: z.ZodOptional<z.ZodString>;
1601
+ original: z.ZodOptional<z.ZodObject<{
1602
+ filter: z.ZodEnum<{
1603
+ jbig2: "jbig2";
1604
+ jpeg2000: "jpeg2000";
1605
+ }>;
1606
+ base64: z.ZodString;
1607
+ jbig2GlobalsBase64: z.ZodOptional<z.ZodString>;
1608
+ }, z.core.$strip>>;
1609
+ anchorRunIndex: z.ZodOptional<z.ZodNumber>;
1610
+ anchorOffset: z.ZodOptional<z.ZodNumber>;
1367
1611
  floatPosition: z.ZodOptional<z.ZodObject<{
1368
1612
  horizontal: z.ZodUnion<readonly [z.ZodObject<{
1369
1613
  relativeTo: z.ZodEnum<{
@@ -1400,10 +1644,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1400
1644
  }>;
1401
1645
  align: z.ZodEnum<{
1402
1646
  left: "left";
1647
+ center: "center";
1403
1648
  right: "right";
1404
1649
  top: "top";
1405
1650
  bottom: "bottom";
1406
- center: "center";
1407
1651
  inside: "inside";
1408
1652
  outside: "outside";
1409
1653
  }>;
@@ -1443,10 +1687,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1443
1687
  }>;
1444
1688
  align: z.ZodEnum<{
1445
1689
  left: "left";
1690
+ center: "center";
1446
1691
  right: "right";
1447
1692
  top: "top";
1448
1693
  bottom: "bottom";
1449
- center: "center";
1450
1694
  inside: "inside";
1451
1695
  outside: "outside";
1452
1696
  }>;
@@ -1535,10 +1779,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1535
1779
  endColumn: z.ZodNumber;
1536
1780
  }, z.core.$strip>>;
1537
1781
  type: z.ZodEnum<{
1538
- date: "date";
1539
- custom: "custom";
1540
1782
  decimal: "decimal";
1541
1783
  list: "list";
1784
+ date: "date";
1785
+ custom: "custom";
1542
1786
  time: "time";
1543
1787
  whole: "whole";
1544
1788
  textLength: "textLength";
@@ -2178,6 +2422,11 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2178
2422
  xml: z.ZodString;
2179
2423
  }, z.core.$strict>>;
2180
2424
  }, z.core.$strip>>;
2425
+ names: z.ZodOptional<z.ZodArray<z.ZodObject<{
2426
+ name: z.ZodString;
2427
+ refersTo: z.ZodString;
2428
+ scopeSheetIndex: z.ZodOptional<z.ZodNumber>;
2429
+ }, z.core.$strip>>>;
2181
2430
  symbolTable: z.ZodOptional<z.ZodObject<{
2182
2431
  symbols: z.ZodArray<z.ZodObject<{
2183
2432
  glyph: z.ZodString;
@@ -2247,11 +2496,66 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2247
2496
  }, z.core.$strip>;
2248
2497
  }, z.core.$strip>, z.ZodObject<{
2249
2498
  pages: z.ZodArray<z.ZodObject<{
2499
+ origin: z.ZodOptional<z.ZodEnum<{
2500
+ chart: "chart";
2501
+ diagram: "diagram";
2502
+ table: "table";
2503
+ image: "image";
2504
+ notes: "notes";
2505
+ body: "body";
2506
+ }>>;
2507
+ interpretation: z.ZodOptional<z.ZodObject<{
2508
+ transcript: z.ZodOptional<z.ZodObject<{
2509
+ text: z.ZodString;
2510
+ confidence: z.ZodEnum<{
2511
+ high: "high";
2512
+ medium: "medium";
2513
+ low: "low";
2514
+ }>;
2515
+ mechanism: z.ZodEnum<{
2516
+ deterministic: "deterministic";
2517
+ model: "model";
2518
+ }>;
2519
+ }, z.core.$strip>>;
2520
+ description: z.ZodOptional<z.ZodString>;
2521
+ by: z.ZodOptional<z.ZodObject<{
2522
+ model: z.ZodString;
2523
+ at: z.ZodString;
2524
+ }, z.core.$strip>>;
2525
+ }, z.core.$strip>>;
2250
2526
  size: z.ZodObject<{
2251
2527
  widthPt: z.ZodNumber;
2252
2528
  heightPt: z.ZodNumber;
2253
2529
  }, z.core.$strip>;
2254
2530
  shapes: z.ZodArray<z.ZodObject<{
2531
+ blocks: z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>;
2532
+ origin: z.ZodOptional<z.ZodEnum<{
2533
+ chart: "chart";
2534
+ diagram: "diagram";
2535
+ table: "table";
2536
+ image: "image";
2537
+ notes: "notes";
2538
+ body: "body";
2539
+ }>>;
2540
+ interpretation: z.ZodOptional<z.ZodObject<{
2541
+ transcript: z.ZodOptional<z.ZodObject<{
2542
+ text: z.ZodString;
2543
+ confidence: z.ZodEnum<{
2544
+ high: "high";
2545
+ medium: "medium";
2546
+ low: "low";
2547
+ }>;
2548
+ mechanism: z.ZodEnum<{
2549
+ deterministic: "deterministic";
2550
+ model: "model";
2551
+ }>;
2552
+ }, z.core.$strip>>;
2553
+ description: z.ZodOptional<z.ZodString>;
2554
+ by: z.ZodOptional<z.ZodObject<{
2555
+ model: z.ZodString;
2556
+ at: z.ZodString;
2557
+ }, z.core.$strip>>;
2558
+ }, z.core.$strip>>;
2255
2559
  name: z.ZodOptional<z.ZodString>;
2256
2560
  frame: z.ZodObject<{
2257
2561
  xPt: z.ZodNumber;
@@ -2295,9 +2599,35 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2295
2599
  widthPt: z.ZodNumber;
2296
2600
  heightPt: z.ZodNumber;
2297
2601
  }, z.core.$strip>>>;
2298
- blocks: z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>;
2299
2602
  }, z.core.$strip>>;
2300
2603
  vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2604
+ origin: z.ZodOptional<z.ZodEnum<{
2605
+ chart: "chart";
2606
+ diagram: "diagram";
2607
+ table: "table";
2608
+ image: "image";
2609
+ notes: "notes";
2610
+ body: "body";
2611
+ }>>;
2612
+ interpretation: z.ZodOptional<z.ZodObject<{
2613
+ transcript: z.ZodOptional<z.ZodObject<{
2614
+ text: z.ZodString;
2615
+ confidence: z.ZodEnum<{
2616
+ high: "high";
2617
+ medium: "medium";
2618
+ low: "low";
2619
+ }>;
2620
+ mechanism: z.ZodEnum<{
2621
+ deterministic: "deterministic";
2622
+ model: "model";
2623
+ }>;
2624
+ }, z.core.$strip>>;
2625
+ description: z.ZodOptional<z.ZodString>;
2626
+ by: z.ZodOptional<z.ZodObject<{
2627
+ model: z.ZodString;
2628
+ at: z.ZodString;
2629
+ }, z.core.$strip>>;
2630
+ }, z.core.$strip>>;
2301
2631
  kind: z.ZodLiteral<"rect">;
2302
2632
  frame: z.ZodObject<{
2303
2633
  xPt: z.ZodNumber;
@@ -2409,6 +2739,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2409
2739
  heightPt: z.ZodNumber;
2410
2740
  }, z.core.$strip>>>;
2411
2741
  }, z.core.$strip>, z.ZodObject<{
2742
+ origin: z.ZodOptional<z.ZodEnum<{
2743
+ chart: "chart";
2744
+ diagram: "diagram";
2745
+ table: "table";
2746
+ image: "image";
2747
+ notes: "notes";
2748
+ body: "body";
2749
+ }>>;
2750
+ interpretation: z.ZodOptional<z.ZodObject<{
2751
+ transcript: z.ZodOptional<z.ZodObject<{
2752
+ text: z.ZodString;
2753
+ confidence: z.ZodEnum<{
2754
+ high: "high";
2755
+ medium: "medium";
2756
+ low: "low";
2757
+ }>;
2758
+ mechanism: z.ZodEnum<{
2759
+ deterministic: "deterministic";
2760
+ model: "model";
2761
+ }>;
2762
+ }, z.core.$strip>>;
2763
+ description: z.ZodOptional<z.ZodString>;
2764
+ by: z.ZodOptional<z.ZodObject<{
2765
+ model: z.ZodString;
2766
+ at: z.ZodString;
2767
+ }, z.core.$strip>>;
2768
+ }, z.core.$strip>>;
2412
2769
  kind: z.ZodLiteral<"ellipse">;
2413
2770
  frame: z.ZodObject<{
2414
2771
  xPt: z.ZodNumber;
@@ -2520,6 +2877,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2520
2877
  heightPt: z.ZodNumber;
2521
2878
  }, z.core.$strip>>>;
2522
2879
  }, z.core.$strip>, z.ZodObject<{
2880
+ origin: z.ZodOptional<z.ZodEnum<{
2881
+ chart: "chart";
2882
+ diagram: "diagram";
2883
+ table: "table";
2884
+ image: "image";
2885
+ notes: "notes";
2886
+ body: "body";
2887
+ }>>;
2888
+ interpretation: z.ZodOptional<z.ZodObject<{
2889
+ transcript: z.ZodOptional<z.ZodObject<{
2890
+ text: z.ZodString;
2891
+ confidence: z.ZodEnum<{
2892
+ high: "high";
2893
+ medium: "medium";
2894
+ low: "low";
2895
+ }>;
2896
+ mechanism: z.ZodEnum<{
2897
+ deterministic: "deterministic";
2898
+ model: "model";
2899
+ }>;
2900
+ }, z.core.$strip>>;
2901
+ description: z.ZodOptional<z.ZodString>;
2902
+ by: z.ZodOptional<z.ZodObject<{
2903
+ model: z.ZodString;
2904
+ at: z.ZodString;
2905
+ }, z.core.$strip>>;
2906
+ }, z.core.$strip>>;
2523
2907
  kind: z.ZodLiteral<"line">;
2524
2908
  from: z.ZodObject<{
2525
2909
  xPt: z.ZodNumber;
@@ -2581,6 +2965,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2581
2965
  heightPt: z.ZodNumber;
2582
2966
  }, z.core.$strip>>>;
2583
2967
  }, z.core.$strip>, z.ZodObject<{
2968
+ origin: z.ZodOptional<z.ZodEnum<{
2969
+ chart: "chart";
2970
+ diagram: "diagram";
2971
+ table: "table";
2972
+ image: "image";
2973
+ notes: "notes";
2974
+ body: "body";
2975
+ }>>;
2976
+ interpretation: z.ZodOptional<z.ZodObject<{
2977
+ transcript: z.ZodOptional<z.ZodObject<{
2978
+ text: z.ZodString;
2979
+ confidence: z.ZodEnum<{
2980
+ high: "high";
2981
+ medium: "medium";
2982
+ low: "low";
2983
+ }>;
2984
+ mechanism: z.ZodEnum<{
2985
+ deterministic: "deterministic";
2986
+ model: "model";
2987
+ }>;
2988
+ }, z.core.$strip>>;
2989
+ description: z.ZodOptional<z.ZodString>;
2990
+ by: z.ZodOptional<z.ZodObject<{
2991
+ model: z.ZodString;
2992
+ at: z.ZodString;
2993
+ }, z.core.$strip>>;
2994
+ }, z.core.$strip>>;
2584
2995
  kind: z.ZodLiteral<"path">;
2585
2996
  frame: z.ZodObject<{
2586
2997
  xPt: z.ZodNumber;
@@ -2814,6 +3225,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2814
3225
  }, z.core.$strip>;
2815
3226
  }, z.core.$strip>, z.ZodObject<{
2816
3227
  formula: z.ZodObject<{
3228
+ origin: z.ZodOptional<z.ZodEnum<{
3229
+ chart: "chart";
3230
+ diagram: "diagram";
3231
+ table: "table";
3232
+ image: "image";
3233
+ notes: "notes";
3234
+ body: "body";
3235
+ }>>;
3236
+ interpretation: z.ZodOptional<z.ZodObject<{
3237
+ transcript: z.ZodOptional<z.ZodObject<{
3238
+ text: z.ZodString;
3239
+ confidence: z.ZodEnum<{
3240
+ high: "high";
3241
+ medium: "medium";
3242
+ low: "low";
3243
+ }>;
3244
+ mechanism: z.ZodEnum<{
3245
+ deterministic: "deterministic";
3246
+ model: "model";
3247
+ }>;
3248
+ }, z.core.$strip>>;
3249
+ description: z.ZodOptional<z.ZodString>;
3250
+ by: z.ZodOptional<z.ZodObject<{
3251
+ model: z.ZodString;
3252
+ at: z.ZodString;
3253
+ }, z.core.$strip>>;
3254
+ }, z.core.$strip>>;
2817
3255
  mathml: z.ZodArray<z.ZodType<import("document-schema.js").MathMlNode, import("document-schema.js").MathMlNode, z.core.$ZodTypeInternals<import("document-schema.js").MathMlNode, import("document-schema.js").MathMlNode>>>;
2818
3256
  starMath: z.ZodOptional<z.ZodString>;
2819
3257
  presentation: z.ZodOptional<z.ZodObject<{
package/dist/codec.d.ts CHANGED
@@ -11,8 +11,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
11
11
  paragraph: z.ZodOptional<z.ZodObject<{
12
12
  alignment: z.ZodOptional<z.ZodEnum<{
13
13
  left: "left";
14
- right: "right";
15
14
  center: "center";
15
+ right: "right";
16
16
  justify: "justify";
17
17
  }>>;
18
18
  list: z.ZodOptional<z.ZodObject<{
@@ -160,8 +160,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
160
160
  paragraph: z.ZodOptional<z.ZodObject<{
161
161
  alignment: z.ZodOptional<z.ZodEnum<{
162
162
  left: "left";
163
- right: "right";
164
163
  center: "center";
164
+ right: "right";
165
165
  justify: "justify";
166
166
  }>>;
167
167
  list: z.ZodOptional<z.ZodObject<{
@@ -300,6 +300,11 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
300
300
  }, z.core.$strip>;
301
301
  kind: z.ZodLiteral<"presentation">;
302
302
  }, z.core.$strip>, z.ZodObject<{
303
+ names: z.ZodOptional<z.ZodArray<z.ZodObject<{
304
+ name: z.ZodString;
305
+ refersTo: z.ZodString;
306
+ scopeSheetIndex: z.ZodOptional<z.ZodNumber>;
307
+ }, z.core.$strip>>>;
303
308
  children: z.ZodArray<z.ZodCustom<import("document-schema.js").SheetGroupNode, import("document-schema.js").SheetGroupNode>>;
304
309
  pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
305
310
  widthPt: z.ZodNumber;
@@ -309,8 +314,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
309
314
  paragraph: z.ZodOptional<z.ZodObject<{
310
315
  alignment: z.ZodOptional<z.ZodEnum<{
311
316
  left: "left";
312
- right: "right";
313
317
  center: "center";
318
+ right: "right";
314
319
  justify: "justify";
315
320
  }>>;
316
321
  list: z.ZodOptional<z.ZodObject<{
@@ -458,8 +463,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
458
463
  paragraph: z.ZodOptional<z.ZodObject<{
459
464
  alignment: z.ZodOptional<z.ZodEnum<{
460
465
  left: "left";
461
- right: "right";
462
466
  center: "center";
467
+ right: "right";
463
468
  justify: "justify";
464
469
  }>>;
465
470
  list: z.ZodOptional<z.ZodObject<{
@@ -599,6 +604,33 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
599
604
  kind: z.ZodLiteral<"drawing">;
600
605
  }, z.core.$strip>, z.ZodObject<{
601
606
  children: z.ZodArray<z.ZodObject<{
607
+ origin: z.ZodOptional<z.ZodEnum<{
608
+ chart: "chart";
609
+ diagram: "diagram";
610
+ table: "table";
611
+ image: "image";
612
+ notes: "notes";
613
+ body: "body";
614
+ }>>;
615
+ interpretation: z.ZodOptional<z.ZodObject<{
616
+ transcript: z.ZodOptional<z.ZodObject<{
617
+ text: z.ZodString;
618
+ confidence: z.ZodEnum<{
619
+ high: "high";
620
+ medium: "medium";
621
+ low: "low";
622
+ }>;
623
+ mechanism: z.ZodEnum<{
624
+ deterministic: "deterministic";
625
+ model: "model";
626
+ }>;
627
+ }, z.core.$strip>>;
628
+ description: z.ZodOptional<z.ZodString>;
629
+ by: z.ZodOptional<z.ZodObject<{
630
+ model: z.ZodString;
631
+ at: z.ZodString;
632
+ }, z.core.$strip>>;
633
+ }, z.core.$strip>>;
602
634
  mathml: z.ZodArray<z.ZodType<import("document-schema.js").MathMlNode, import("document-schema.js").MathMlNode, z.core.$ZodTypeInternals<import("document-schema.js").MathMlNode, import("document-schema.js").MathMlNode>>>;
603
635
  starMath: z.ZodOptional<z.ZodString>;
604
636
  presentation: z.ZodOptional<z.ZodObject<{
@@ -639,8 +671,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
639
671
  paragraph: z.ZodOptional<z.ZodObject<{
640
672
  alignment: z.ZodOptional<z.ZodEnum<{
641
673
  left: "left";
642
- right: "right";
643
674
  center: "center";
675
+ right: "right";
644
676
  justify: "justify";
645
677
  }>>;
646
678
  list: z.ZodOptional<z.ZodObject<{
@@ -781,6 +813,33 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
781
813
  }, z.core.$strip>], "kind">>;
782
814
  declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
783
815
  sections: z.ZodArray<z.ZodObject<{
816
+ origin: z.ZodOptional<z.ZodEnum<{
817
+ chart: "chart";
818
+ diagram: "diagram";
819
+ table: "table";
820
+ image: "image";
821
+ notes: "notes";
822
+ body: "body";
823
+ }>>;
824
+ interpretation: z.ZodOptional<z.ZodObject<{
825
+ transcript: z.ZodOptional<z.ZodObject<{
826
+ text: z.ZodString;
827
+ confidence: z.ZodEnum<{
828
+ high: "high";
829
+ medium: "medium";
830
+ low: "low";
831
+ }>;
832
+ mechanism: z.ZodEnum<{
833
+ deterministic: "deterministic";
834
+ model: "model";
835
+ }>;
836
+ }, z.core.$strip>>;
837
+ description: z.ZodOptional<z.ZodString>;
838
+ by: z.ZodOptional<z.ZodObject<{
839
+ model: z.ZodString;
840
+ at: z.ZodString;
841
+ }, z.core.$strip>>;
842
+ }, z.core.$strip>>;
784
843
  pageSize: z.ZodObject<{
785
844
  widthPt: z.ZodNumber;
786
845
  heightPt: z.ZodNumber;
@@ -898,11 +957,66 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
898
957
  }, z.core.$strip>;
899
958
  }, z.core.$strip>, z.ZodObject<{
900
959
  slides: z.ZodArray<z.ZodObject<{
960
+ origin: z.ZodOptional<z.ZodEnum<{
961
+ chart: "chart";
962
+ diagram: "diagram";
963
+ table: "table";
964
+ image: "image";
965
+ notes: "notes";
966
+ body: "body";
967
+ }>>;
968
+ interpretation: z.ZodOptional<z.ZodObject<{
969
+ transcript: z.ZodOptional<z.ZodObject<{
970
+ text: z.ZodString;
971
+ confidence: z.ZodEnum<{
972
+ high: "high";
973
+ medium: "medium";
974
+ low: "low";
975
+ }>;
976
+ mechanism: z.ZodEnum<{
977
+ deterministic: "deterministic";
978
+ model: "model";
979
+ }>;
980
+ }, z.core.$strip>>;
981
+ description: z.ZodOptional<z.ZodString>;
982
+ by: z.ZodOptional<z.ZodObject<{
983
+ model: z.ZodString;
984
+ at: z.ZodString;
985
+ }, z.core.$strip>>;
986
+ }, z.core.$strip>>;
901
987
  size: z.ZodObject<{
902
988
  widthPt: z.ZodNumber;
903
989
  heightPt: z.ZodNumber;
904
990
  }, z.core.$strip>;
905
991
  shapes: z.ZodArray<z.ZodObject<{
992
+ blocks: z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>;
993
+ origin: z.ZodOptional<z.ZodEnum<{
994
+ chart: "chart";
995
+ diagram: "diagram";
996
+ table: "table";
997
+ image: "image";
998
+ notes: "notes";
999
+ body: "body";
1000
+ }>>;
1001
+ interpretation: z.ZodOptional<z.ZodObject<{
1002
+ transcript: z.ZodOptional<z.ZodObject<{
1003
+ text: z.ZodString;
1004
+ confidence: z.ZodEnum<{
1005
+ high: "high";
1006
+ medium: "medium";
1007
+ low: "low";
1008
+ }>;
1009
+ mechanism: z.ZodEnum<{
1010
+ deterministic: "deterministic";
1011
+ model: "model";
1012
+ }>;
1013
+ }, z.core.$strip>>;
1014
+ description: z.ZodOptional<z.ZodString>;
1015
+ by: z.ZodOptional<z.ZodObject<{
1016
+ model: z.ZodString;
1017
+ at: z.ZodString;
1018
+ }, z.core.$strip>>;
1019
+ }, z.core.$strip>>;
906
1020
  name: z.ZodOptional<z.ZodString>;
907
1021
  frame: z.ZodObject<{
908
1022
  xPt: z.ZodNumber;
@@ -946,7 +1060,6 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
946
1060
  widthPt: z.ZodNumber;
947
1061
  heightPt: z.ZodNumber;
948
1062
  }, z.core.$strip>>>;
949
- blocks: z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>;
950
1063
  }, z.core.$strip>>;
951
1064
  notes: z.ZodString;
952
1065
  source: z.ZodOptional<z.ZodObject<{
@@ -1039,8 +1152,62 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1039
1152
  }, z.core.$strip>;
1040
1153
  }, z.core.$strip>, z.ZodObject<{
1041
1154
  sheets: z.ZodArray<z.ZodObject<{
1155
+ origin: z.ZodOptional<z.ZodEnum<{
1156
+ chart: "chart";
1157
+ diagram: "diagram";
1158
+ table: "table";
1159
+ image: "image";
1160
+ notes: "notes";
1161
+ body: "body";
1162
+ }>>;
1163
+ interpretation: z.ZodOptional<z.ZodObject<{
1164
+ transcript: z.ZodOptional<z.ZodObject<{
1165
+ text: z.ZodString;
1166
+ confidence: z.ZodEnum<{
1167
+ high: "high";
1168
+ medium: "medium";
1169
+ low: "low";
1170
+ }>;
1171
+ mechanism: z.ZodEnum<{
1172
+ deterministic: "deterministic";
1173
+ model: "model";
1174
+ }>;
1175
+ }, z.core.$strip>>;
1176
+ description: z.ZodOptional<z.ZodString>;
1177
+ by: z.ZodOptional<z.ZodObject<{
1178
+ model: z.ZodString;
1179
+ at: z.ZodString;
1180
+ }, z.core.$strip>>;
1181
+ }, z.core.$strip>>;
1042
1182
  name: z.ZodString;
1043
1183
  cells: z.ZodArray<z.ZodObject<{
1184
+ origin: z.ZodOptional<z.ZodEnum<{
1185
+ chart: "chart";
1186
+ diagram: "diagram";
1187
+ table: "table";
1188
+ image: "image";
1189
+ notes: "notes";
1190
+ body: "body";
1191
+ }>>;
1192
+ interpretation: z.ZodOptional<z.ZodObject<{
1193
+ transcript: z.ZodOptional<z.ZodObject<{
1194
+ text: z.ZodString;
1195
+ confidence: z.ZodEnum<{
1196
+ high: "high";
1197
+ medium: "medium";
1198
+ low: "low";
1199
+ }>;
1200
+ mechanism: z.ZodEnum<{
1201
+ deterministic: "deterministic";
1202
+ model: "model";
1203
+ }>;
1204
+ }, z.core.$strip>>;
1205
+ description: z.ZodOptional<z.ZodString>;
1206
+ by: z.ZodOptional<z.ZodObject<{
1207
+ model: z.ZodString;
1208
+ at: z.ZodString;
1209
+ }, z.core.$strip>>;
1210
+ }, z.core.$strip>>;
1044
1211
  row: z.ZodNumber;
1045
1212
  column: z.ZodNumber;
1046
1213
  value: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1080,8 +1247,7 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1080
1247
  formula: z.ZodOptional<z.ZodString>;
1081
1248
  displayText: z.ZodString;
1082
1249
  numberFormatCode: z.ZodOptional<z.ZodString>;
1083
- runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1084
- text: z.ZodString;
1250
+ font: z.ZodOptional<z.ZodObject<{
1085
1251
  bold: z.ZodOptional<z.ZodBoolean>;
1086
1252
  italic: z.ZodOptional<z.ZodBoolean>;
1087
1253
  underline: z.ZodOptional<z.ZodBoolean>;
@@ -1093,6 +1259,35 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1093
1259
  g: z.ZodNumber;
1094
1260
  b: z.ZodNumber;
1095
1261
  }, z.core.$strip>>;
1262
+ }, z.core.$strip>>;
1263
+ runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1264
+ origin: z.ZodOptional<z.ZodEnum<{
1265
+ chart: "chart";
1266
+ diagram: "diagram";
1267
+ table: "table";
1268
+ image: "image";
1269
+ notes: "notes";
1270
+ body: "body";
1271
+ }>>;
1272
+ interpretation: z.ZodOptional<z.ZodObject<{
1273
+ transcript: z.ZodOptional<z.ZodObject<{
1274
+ text: z.ZodString;
1275
+ confidence: z.ZodEnum<{
1276
+ high: "high";
1277
+ medium: "medium";
1278
+ low: "low";
1279
+ }>;
1280
+ mechanism: z.ZodEnum<{
1281
+ deterministic: "deterministic";
1282
+ model: "model";
1283
+ }>;
1284
+ }, z.core.$strip>>;
1285
+ description: z.ZodOptional<z.ZodString>;
1286
+ by: z.ZodOptional<z.ZodObject<{
1287
+ model: z.ZodString;
1288
+ at: z.ZodString;
1289
+ }, z.core.$strip>>;
1290
+ }, z.core.$strip>>;
1096
1291
  hyperlink: z.ZodOptional<z.ZodString>;
1097
1292
  verticalAlign: z.ZodOptional<z.ZodEnum<{
1098
1293
  superscript: "superscript";
@@ -1130,6 +1325,18 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1130
1325
  widthPt: z.ZodNumber;
1131
1326
  heightPt: z.ZodNumber;
1132
1327
  }, z.core.$strip>>>;
1328
+ bold: z.ZodOptional<z.ZodBoolean>;
1329
+ italic: z.ZodOptional<z.ZodBoolean>;
1330
+ underline: z.ZodOptional<z.ZodBoolean>;
1331
+ strike: z.ZodOptional<z.ZodBoolean>;
1332
+ fontFamily: z.ZodOptional<z.ZodString>;
1333
+ sizePt: z.ZodOptional<z.ZodNumber>;
1334
+ color: z.ZodOptional<z.ZodObject<{
1335
+ r: z.ZodNumber;
1336
+ g: z.ZodNumber;
1337
+ b: z.ZodNumber;
1338
+ }, z.core.$strip>>;
1339
+ text: z.ZodString;
1133
1340
  }, z.core.$strip>>>;
1134
1341
  colSpan: z.ZodOptional<z.ZodNumber>;
1135
1342
  rowSpan: z.ZodOptional<z.ZodNumber>;
@@ -1295,8 +1502,8 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1295
1502
  }, z.core.$strip>>;
1296
1503
  alignment: z.ZodOptional<z.ZodEnum<{
1297
1504
  left: "left";
1298
- right: "right";
1299
1505
  center: "center";
1506
+ right: "right";
1300
1507
  justify: "justify";
1301
1508
  }>>;
1302
1509
  verticalAlignment: z.ZodOptional<z.ZodEnum<{
@@ -1353,6 +1560,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1353
1560
  hidden: z.ZodOptional<z.ZodBoolean>;
1354
1561
  }, z.core.$strip>>;
1355
1562
  images: z.ZodArray<z.ZodObject<{
1563
+ origin: z.ZodOptional<z.ZodEnum<{
1564
+ chart: "chart";
1565
+ diagram: "diagram";
1566
+ table: "table";
1567
+ image: "image";
1568
+ notes: "notes";
1569
+ body: "body";
1570
+ }>>;
1571
+ interpretation: z.ZodOptional<z.ZodObject<{
1572
+ transcript: z.ZodOptional<z.ZodObject<{
1573
+ text: z.ZodString;
1574
+ confidence: z.ZodEnum<{
1575
+ high: "high";
1576
+ medium: "medium";
1577
+ low: "low";
1578
+ }>;
1579
+ mechanism: z.ZodEnum<{
1580
+ deterministic: "deterministic";
1581
+ model: "model";
1582
+ }>;
1583
+ }, z.core.$strip>>;
1584
+ description: z.ZodOptional<z.ZodString>;
1585
+ by: z.ZodOptional<z.ZodObject<{
1586
+ model: z.ZodString;
1587
+ at: z.ZodString;
1588
+ }, z.core.$strip>>;
1589
+ }, z.core.$strip>>;
1356
1590
  kind: z.ZodLiteral<"image">;
1357
1591
  format: z.ZodEnum<{
1358
1592
  png: "png";
@@ -1364,6 +1598,16 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1364
1598
  widthPt: z.ZodNumber;
1365
1599
  heightPt: z.ZodNumber;
1366
1600
  altText: z.ZodOptional<z.ZodString>;
1601
+ original: z.ZodOptional<z.ZodObject<{
1602
+ filter: z.ZodEnum<{
1603
+ jbig2: "jbig2";
1604
+ jpeg2000: "jpeg2000";
1605
+ }>;
1606
+ base64: z.ZodString;
1607
+ jbig2GlobalsBase64: z.ZodOptional<z.ZodString>;
1608
+ }, z.core.$strip>>;
1609
+ anchorRunIndex: z.ZodOptional<z.ZodNumber>;
1610
+ anchorOffset: z.ZodOptional<z.ZodNumber>;
1367
1611
  floatPosition: z.ZodOptional<z.ZodObject<{
1368
1612
  horizontal: z.ZodUnion<readonly [z.ZodObject<{
1369
1613
  relativeTo: z.ZodEnum<{
@@ -1400,10 +1644,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1400
1644
  }>;
1401
1645
  align: z.ZodEnum<{
1402
1646
  left: "left";
1647
+ center: "center";
1403
1648
  right: "right";
1404
1649
  top: "top";
1405
1650
  bottom: "bottom";
1406
- center: "center";
1407
1651
  inside: "inside";
1408
1652
  outside: "outside";
1409
1653
  }>;
@@ -1443,10 +1687,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1443
1687
  }>;
1444
1688
  align: z.ZodEnum<{
1445
1689
  left: "left";
1690
+ center: "center";
1446
1691
  right: "right";
1447
1692
  top: "top";
1448
1693
  bottom: "bottom";
1449
- center: "center";
1450
1694
  inside: "inside";
1451
1695
  outside: "outside";
1452
1696
  }>;
@@ -1535,10 +1779,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1535
1779
  endColumn: z.ZodNumber;
1536
1780
  }, z.core.$strip>>;
1537
1781
  type: z.ZodEnum<{
1538
- date: "date";
1539
- custom: "custom";
1540
1782
  decimal: "decimal";
1541
1783
  list: "list";
1784
+ date: "date";
1785
+ custom: "custom";
1542
1786
  time: "time";
1543
1787
  whole: "whole";
1544
1788
  textLength: "textLength";
@@ -2178,6 +2422,11 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2178
2422
  xml: z.ZodString;
2179
2423
  }, z.core.$strict>>;
2180
2424
  }, z.core.$strip>>;
2425
+ names: z.ZodOptional<z.ZodArray<z.ZodObject<{
2426
+ name: z.ZodString;
2427
+ refersTo: z.ZodString;
2428
+ scopeSheetIndex: z.ZodOptional<z.ZodNumber>;
2429
+ }, z.core.$strip>>>;
2181
2430
  symbolTable: z.ZodOptional<z.ZodObject<{
2182
2431
  symbols: z.ZodArray<z.ZodObject<{
2183
2432
  glyph: z.ZodString;
@@ -2247,11 +2496,66 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2247
2496
  }, z.core.$strip>;
2248
2497
  }, z.core.$strip>, z.ZodObject<{
2249
2498
  pages: z.ZodArray<z.ZodObject<{
2499
+ origin: z.ZodOptional<z.ZodEnum<{
2500
+ chart: "chart";
2501
+ diagram: "diagram";
2502
+ table: "table";
2503
+ image: "image";
2504
+ notes: "notes";
2505
+ body: "body";
2506
+ }>>;
2507
+ interpretation: z.ZodOptional<z.ZodObject<{
2508
+ transcript: z.ZodOptional<z.ZodObject<{
2509
+ text: z.ZodString;
2510
+ confidence: z.ZodEnum<{
2511
+ high: "high";
2512
+ medium: "medium";
2513
+ low: "low";
2514
+ }>;
2515
+ mechanism: z.ZodEnum<{
2516
+ deterministic: "deterministic";
2517
+ model: "model";
2518
+ }>;
2519
+ }, z.core.$strip>>;
2520
+ description: z.ZodOptional<z.ZodString>;
2521
+ by: z.ZodOptional<z.ZodObject<{
2522
+ model: z.ZodString;
2523
+ at: z.ZodString;
2524
+ }, z.core.$strip>>;
2525
+ }, z.core.$strip>>;
2250
2526
  size: z.ZodObject<{
2251
2527
  widthPt: z.ZodNumber;
2252
2528
  heightPt: z.ZodNumber;
2253
2529
  }, z.core.$strip>;
2254
2530
  shapes: z.ZodArray<z.ZodObject<{
2531
+ blocks: z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>;
2532
+ origin: z.ZodOptional<z.ZodEnum<{
2533
+ chart: "chart";
2534
+ diagram: "diagram";
2535
+ table: "table";
2536
+ image: "image";
2537
+ notes: "notes";
2538
+ body: "body";
2539
+ }>>;
2540
+ interpretation: z.ZodOptional<z.ZodObject<{
2541
+ transcript: z.ZodOptional<z.ZodObject<{
2542
+ text: z.ZodString;
2543
+ confidence: z.ZodEnum<{
2544
+ high: "high";
2545
+ medium: "medium";
2546
+ low: "low";
2547
+ }>;
2548
+ mechanism: z.ZodEnum<{
2549
+ deterministic: "deterministic";
2550
+ model: "model";
2551
+ }>;
2552
+ }, z.core.$strip>>;
2553
+ description: z.ZodOptional<z.ZodString>;
2554
+ by: z.ZodOptional<z.ZodObject<{
2555
+ model: z.ZodString;
2556
+ at: z.ZodString;
2557
+ }, z.core.$strip>>;
2558
+ }, z.core.$strip>>;
2255
2559
  name: z.ZodOptional<z.ZodString>;
2256
2560
  frame: z.ZodObject<{
2257
2561
  xPt: z.ZodNumber;
@@ -2295,9 +2599,35 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2295
2599
  widthPt: z.ZodNumber;
2296
2600
  heightPt: z.ZodNumber;
2297
2601
  }, z.core.$strip>>>;
2298
- blocks: z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>;
2299
2602
  }, z.core.$strip>>;
2300
2603
  vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2604
+ origin: z.ZodOptional<z.ZodEnum<{
2605
+ chart: "chart";
2606
+ diagram: "diagram";
2607
+ table: "table";
2608
+ image: "image";
2609
+ notes: "notes";
2610
+ body: "body";
2611
+ }>>;
2612
+ interpretation: z.ZodOptional<z.ZodObject<{
2613
+ transcript: z.ZodOptional<z.ZodObject<{
2614
+ text: z.ZodString;
2615
+ confidence: z.ZodEnum<{
2616
+ high: "high";
2617
+ medium: "medium";
2618
+ low: "low";
2619
+ }>;
2620
+ mechanism: z.ZodEnum<{
2621
+ deterministic: "deterministic";
2622
+ model: "model";
2623
+ }>;
2624
+ }, z.core.$strip>>;
2625
+ description: z.ZodOptional<z.ZodString>;
2626
+ by: z.ZodOptional<z.ZodObject<{
2627
+ model: z.ZodString;
2628
+ at: z.ZodString;
2629
+ }, z.core.$strip>>;
2630
+ }, z.core.$strip>>;
2301
2631
  kind: z.ZodLiteral<"rect">;
2302
2632
  frame: z.ZodObject<{
2303
2633
  xPt: z.ZodNumber;
@@ -2409,6 +2739,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2409
2739
  heightPt: z.ZodNumber;
2410
2740
  }, z.core.$strip>>>;
2411
2741
  }, z.core.$strip>, z.ZodObject<{
2742
+ origin: z.ZodOptional<z.ZodEnum<{
2743
+ chart: "chart";
2744
+ diagram: "diagram";
2745
+ table: "table";
2746
+ image: "image";
2747
+ notes: "notes";
2748
+ body: "body";
2749
+ }>>;
2750
+ interpretation: z.ZodOptional<z.ZodObject<{
2751
+ transcript: z.ZodOptional<z.ZodObject<{
2752
+ text: z.ZodString;
2753
+ confidence: z.ZodEnum<{
2754
+ high: "high";
2755
+ medium: "medium";
2756
+ low: "low";
2757
+ }>;
2758
+ mechanism: z.ZodEnum<{
2759
+ deterministic: "deterministic";
2760
+ model: "model";
2761
+ }>;
2762
+ }, z.core.$strip>>;
2763
+ description: z.ZodOptional<z.ZodString>;
2764
+ by: z.ZodOptional<z.ZodObject<{
2765
+ model: z.ZodString;
2766
+ at: z.ZodString;
2767
+ }, z.core.$strip>>;
2768
+ }, z.core.$strip>>;
2412
2769
  kind: z.ZodLiteral<"ellipse">;
2413
2770
  frame: z.ZodObject<{
2414
2771
  xPt: z.ZodNumber;
@@ -2520,6 +2877,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2520
2877
  heightPt: z.ZodNumber;
2521
2878
  }, z.core.$strip>>>;
2522
2879
  }, z.core.$strip>, z.ZodObject<{
2880
+ origin: z.ZodOptional<z.ZodEnum<{
2881
+ chart: "chart";
2882
+ diagram: "diagram";
2883
+ table: "table";
2884
+ image: "image";
2885
+ notes: "notes";
2886
+ body: "body";
2887
+ }>>;
2888
+ interpretation: z.ZodOptional<z.ZodObject<{
2889
+ transcript: z.ZodOptional<z.ZodObject<{
2890
+ text: z.ZodString;
2891
+ confidence: z.ZodEnum<{
2892
+ high: "high";
2893
+ medium: "medium";
2894
+ low: "low";
2895
+ }>;
2896
+ mechanism: z.ZodEnum<{
2897
+ deterministic: "deterministic";
2898
+ model: "model";
2899
+ }>;
2900
+ }, z.core.$strip>>;
2901
+ description: z.ZodOptional<z.ZodString>;
2902
+ by: z.ZodOptional<z.ZodObject<{
2903
+ model: z.ZodString;
2904
+ at: z.ZodString;
2905
+ }, z.core.$strip>>;
2906
+ }, z.core.$strip>>;
2523
2907
  kind: z.ZodLiteral<"line">;
2524
2908
  from: z.ZodObject<{
2525
2909
  xPt: z.ZodNumber;
@@ -2581,6 +2965,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2581
2965
  heightPt: z.ZodNumber;
2582
2966
  }, z.core.$strip>>>;
2583
2967
  }, z.core.$strip>, z.ZodObject<{
2968
+ origin: z.ZodOptional<z.ZodEnum<{
2969
+ chart: "chart";
2970
+ diagram: "diagram";
2971
+ table: "table";
2972
+ image: "image";
2973
+ notes: "notes";
2974
+ body: "body";
2975
+ }>>;
2976
+ interpretation: z.ZodOptional<z.ZodObject<{
2977
+ transcript: z.ZodOptional<z.ZodObject<{
2978
+ text: z.ZodString;
2979
+ confidence: z.ZodEnum<{
2980
+ high: "high";
2981
+ medium: "medium";
2982
+ low: "low";
2983
+ }>;
2984
+ mechanism: z.ZodEnum<{
2985
+ deterministic: "deterministic";
2986
+ model: "model";
2987
+ }>;
2988
+ }, z.core.$strip>>;
2989
+ description: z.ZodOptional<z.ZodString>;
2990
+ by: z.ZodOptional<z.ZodObject<{
2991
+ model: z.ZodString;
2992
+ at: z.ZodString;
2993
+ }, z.core.$strip>>;
2994
+ }, z.core.$strip>>;
2584
2995
  kind: z.ZodLiteral<"path">;
2585
2996
  frame: z.ZodObject<{
2586
2997
  xPt: z.ZodNumber;
@@ -2814,6 +3225,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2814
3225
  }, z.core.$strip>;
2815
3226
  }, z.core.$strip>, z.ZodObject<{
2816
3227
  formula: z.ZodObject<{
3228
+ origin: z.ZodOptional<z.ZodEnum<{
3229
+ chart: "chart";
3230
+ diagram: "diagram";
3231
+ table: "table";
3232
+ image: "image";
3233
+ notes: "notes";
3234
+ body: "body";
3235
+ }>>;
3236
+ interpretation: z.ZodOptional<z.ZodObject<{
3237
+ transcript: z.ZodOptional<z.ZodObject<{
3238
+ text: z.ZodString;
3239
+ confidence: z.ZodEnum<{
3240
+ high: "high";
3241
+ medium: "medium";
3242
+ low: "low";
3243
+ }>;
3244
+ mechanism: z.ZodEnum<{
3245
+ deterministic: "deterministic";
3246
+ model: "model";
3247
+ }>;
3248
+ }, z.core.$strip>>;
3249
+ description: z.ZodOptional<z.ZodString>;
3250
+ by: z.ZodOptional<z.ZodObject<{
3251
+ model: z.ZodString;
3252
+ at: z.ZodString;
3253
+ }, z.core.$strip>>;
3254
+ }, z.core.$strip>>;
2817
3255
  mathml: z.ZodArray<z.ZodType<import("document-schema.js").MathMlNode, import("document-schema.js").MathMlNode, z.core.$ZodTypeInternals<import("document-schema.js").MathMlNode, import("document-schema.js").MathMlNode>>>;
2818
3256
  starMath: z.ZodOptional<z.ZodString>;
2819
3257
  presentation: z.ZodOptional<z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rtf-codec",
3
- "version": "4.2.1",
3
+ "version": "4.2.3",
4
4
  "description": "Hand-written Rich Text Format (RTF 1.9.1) reader and writer against the shared document-schema.js content pivot.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -82,8 +82,8 @@
82
82
  "license": "MIT",
83
83
  "packageManager": "pnpm@11.6.0",
84
84
  "dependencies": {
85
- "archive-codec": "1.10.3",
86
- "document-schema.js": "7.6.1",
85
+ "archive-codec": "1.10.5",
86
+ "document-schema.js": "7.8.0",
87
87
  "zod": "4.4.3"
88
88
  },
89
89
  "devDependencies": {