rtf-codec 4.2.2 → 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<{
@@ -314,8 +314,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
314
314
  paragraph: z.ZodOptional<z.ZodObject<{
315
315
  alignment: z.ZodOptional<z.ZodEnum<{
316
316
  left: "left";
317
- right: "right";
318
317
  center: "center";
318
+ right: "right";
319
319
  justify: "justify";
320
320
  }>>;
321
321
  list: z.ZodOptional<z.ZodObject<{
@@ -463,8 +463,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
463
463
  paragraph: z.ZodOptional<z.ZodObject<{
464
464
  alignment: z.ZodOptional<z.ZodEnum<{
465
465
  left: "left";
466
- right: "right";
467
466
  center: "center";
467
+ right: "right";
468
468
  justify: "justify";
469
469
  }>>;
470
470
  list: z.ZodOptional<z.ZodObject<{
@@ -604,6 +604,33 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
604
604
  kind: z.ZodLiteral<"drawing">;
605
605
  }, z.core.$strip>, z.ZodObject<{
606
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>>;
607
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>>>;
608
635
  starMath: z.ZodOptional<z.ZodString>;
609
636
  presentation: z.ZodOptional<z.ZodObject<{
@@ -644,8 +671,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
644
671
  paragraph: z.ZodOptional<z.ZodObject<{
645
672
  alignment: z.ZodOptional<z.ZodEnum<{
646
673
  left: "left";
647
- right: "right";
648
674
  center: "center";
675
+ right: "right";
649
676
  justify: "justify";
650
677
  }>>;
651
678
  list: z.ZodOptional<z.ZodObject<{
@@ -786,6 +813,33 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
786
813
  }, z.core.$strip>], "kind">>;
787
814
  declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
788
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>>;
789
843
  pageSize: z.ZodObject<{
790
844
  widthPt: z.ZodNumber;
791
845
  heightPt: z.ZodNumber;
@@ -903,11 +957,66 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
903
957
  }, z.core.$strip>;
904
958
  }, z.core.$strip>, z.ZodObject<{
905
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>>;
906
987
  size: z.ZodObject<{
907
988
  widthPt: z.ZodNumber;
908
989
  heightPt: z.ZodNumber;
909
990
  }, z.core.$strip>;
910
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>>;
911
1020
  name: z.ZodOptional<z.ZodString>;
912
1021
  frame: z.ZodObject<{
913
1022
  xPt: z.ZodNumber;
@@ -951,7 +1060,6 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
951
1060
  widthPt: z.ZodNumber;
952
1061
  heightPt: z.ZodNumber;
953
1062
  }, z.core.$strip>>>;
954
- 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>>>>;
955
1063
  }, z.core.$strip>>;
956
1064
  notes: z.ZodString;
957
1065
  source: z.ZodOptional<z.ZodObject<{
@@ -1044,8 +1152,62 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1044
1152
  }, z.core.$strip>;
1045
1153
  }, z.core.$strip>, z.ZodObject<{
1046
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>>;
1047
1182
  name: z.ZodString;
1048
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>>;
1049
1211
  row: z.ZodNumber;
1050
1212
  column: z.ZodNumber;
1051
1213
  value: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1099,6 +1261,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1099
1261
  }, z.core.$strip>>;
1100
1262
  }, z.core.$strip>>;
1101
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>>;
1102
1291
  hyperlink: z.ZodOptional<z.ZodString>;
1103
1292
  verticalAlign: z.ZodOptional<z.ZodEnum<{
1104
1293
  superscript: "superscript";
@@ -1313,8 +1502,8 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1313
1502
  }, z.core.$strip>>;
1314
1503
  alignment: z.ZodOptional<z.ZodEnum<{
1315
1504
  left: "left";
1316
- right: "right";
1317
1505
  center: "center";
1506
+ right: "right";
1318
1507
  justify: "justify";
1319
1508
  }>>;
1320
1509
  verticalAlignment: z.ZodOptional<z.ZodEnum<{
@@ -1371,6 +1560,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1371
1560
  hidden: z.ZodOptional<z.ZodBoolean>;
1372
1561
  }, z.core.$strip>>;
1373
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>>;
1374
1590
  kind: z.ZodLiteral<"image">;
1375
1591
  format: z.ZodEnum<{
1376
1592
  png: "png";
@@ -1390,6 +1606,8 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1390
1606
  base64: z.ZodString;
1391
1607
  jbig2GlobalsBase64: z.ZodOptional<z.ZodString>;
1392
1608
  }, z.core.$strip>>;
1609
+ anchorRunIndex: z.ZodOptional<z.ZodNumber>;
1610
+ anchorOffset: z.ZodOptional<z.ZodNumber>;
1393
1611
  floatPosition: z.ZodOptional<z.ZodObject<{
1394
1612
  horizontal: z.ZodUnion<readonly [z.ZodObject<{
1395
1613
  relativeTo: z.ZodEnum<{
@@ -1426,10 +1644,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1426
1644
  }>;
1427
1645
  align: z.ZodEnum<{
1428
1646
  left: "left";
1647
+ center: "center";
1429
1648
  right: "right";
1430
1649
  top: "top";
1431
1650
  bottom: "bottom";
1432
- center: "center";
1433
1651
  inside: "inside";
1434
1652
  outside: "outside";
1435
1653
  }>;
@@ -1469,10 +1687,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1469
1687
  }>;
1470
1688
  align: z.ZodEnum<{
1471
1689
  left: "left";
1690
+ center: "center";
1472
1691
  right: "right";
1473
1692
  top: "top";
1474
1693
  bottom: "bottom";
1475
- center: "center";
1476
1694
  inside: "inside";
1477
1695
  outside: "outside";
1478
1696
  }>;
@@ -1561,10 +1779,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1561
1779
  endColumn: z.ZodNumber;
1562
1780
  }, z.core.$strip>>;
1563
1781
  type: z.ZodEnum<{
1564
- date: "date";
1565
- custom: "custom";
1566
1782
  decimal: "decimal";
1567
1783
  list: "list";
1784
+ date: "date";
1785
+ custom: "custom";
1568
1786
  time: "time";
1569
1787
  whole: "whole";
1570
1788
  textLength: "textLength";
@@ -2278,11 +2496,66 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2278
2496
  }, z.core.$strip>;
2279
2497
  }, z.core.$strip>, z.ZodObject<{
2280
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>>;
2281
2526
  size: z.ZodObject<{
2282
2527
  widthPt: z.ZodNumber;
2283
2528
  heightPt: z.ZodNumber;
2284
2529
  }, z.core.$strip>;
2285
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>>;
2286
2559
  name: z.ZodOptional<z.ZodString>;
2287
2560
  frame: z.ZodObject<{
2288
2561
  xPt: z.ZodNumber;
@@ -2326,9 +2599,35 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2326
2599
  widthPt: z.ZodNumber;
2327
2600
  heightPt: z.ZodNumber;
2328
2601
  }, z.core.$strip>>>;
2329
- 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>>>>;
2330
2602
  }, z.core.$strip>>;
2331
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>>;
2332
2631
  kind: z.ZodLiteral<"rect">;
2333
2632
  frame: z.ZodObject<{
2334
2633
  xPt: z.ZodNumber;
@@ -2440,6 +2739,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2440
2739
  heightPt: z.ZodNumber;
2441
2740
  }, z.core.$strip>>>;
2442
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>>;
2443
2769
  kind: z.ZodLiteral<"ellipse">;
2444
2770
  frame: z.ZodObject<{
2445
2771
  xPt: z.ZodNumber;
@@ -2551,6 +2877,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2551
2877
  heightPt: z.ZodNumber;
2552
2878
  }, z.core.$strip>>>;
2553
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>>;
2554
2907
  kind: z.ZodLiteral<"line">;
2555
2908
  from: z.ZodObject<{
2556
2909
  xPt: z.ZodNumber;
@@ -2612,6 +2965,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2612
2965
  heightPt: z.ZodNumber;
2613
2966
  }, z.core.$strip>>>;
2614
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>>;
2615
2995
  kind: z.ZodLiteral<"path">;
2616
2996
  frame: z.ZodObject<{
2617
2997
  xPt: z.ZodNumber;
@@ -2845,6 +3225,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2845
3225
  }, z.core.$strip>;
2846
3226
  }, z.core.$strip>, z.ZodObject<{
2847
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>>;
2848
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>>>;
2849
3256
  starMath: z.ZodOptional<z.ZodString>;
2850
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<{
@@ -314,8 +314,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
314
314
  paragraph: z.ZodOptional<z.ZodObject<{
315
315
  alignment: z.ZodOptional<z.ZodEnum<{
316
316
  left: "left";
317
- right: "right";
318
317
  center: "center";
318
+ right: "right";
319
319
  justify: "justify";
320
320
  }>>;
321
321
  list: z.ZodOptional<z.ZodObject<{
@@ -463,8 +463,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
463
463
  paragraph: z.ZodOptional<z.ZodObject<{
464
464
  alignment: z.ZodOptional<z.ZodEnum<{
465
465
  left: "left";
466
- right: "right";
467
466
  center: "center";
467
+ right: "right";
468
468
  justify: "justify";
469
469
  }>>;
470
470
  list: z.ZodOptional<z.ZodObject<{
@@ -604,6 +604,33 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
604
604
  kind: z.ZodLiteral<"drawing">;
605
605
  }, z.core.$strip>, z.ZodObject<{
606
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>>;
607
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>>>;
608
635
  starMath: z.ZodOptional<z.ZodString>;
609
636
  presentation: z.ZodOptional<z.ZodObject<{
@@ -644,8 +671,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
644
671
  paragraph: z.ZodOptional<z.ZodObject<{
645
672
  alignment: z.ZodOptional<z.ZodEnum<{
646
673
  left: "left";
647
- right: "right";
648
674
  center: "center";
675
+ right: "right";
649
676
  justify: "justify";
650
677
  }>>;
651
678
  list: z.ZodOptional<z.ZodObject<{
@@ -786,6 +813,33 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
786
813
  }, z.core.$strip>], "kind">>;
787
814
  declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
788
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>>;
789
843
  pageSize: z.ZodObject<{
790
844
  widthPt: z.ZodNumber;
791
845
  heightPt: z.ZodNumber;
@@ -903,11 +957,66 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
903
957
  }, z.core.$strip>;
904
958
  }, z.core.$strip>, z.ZodObject<{
905
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>>;
906
987
  size: z.ZodObject<{
907
988
  widthPt: z.ZodNumber;
908
989
  heightPt: z.ZodNumber;
909
990
  }, z.core.$strip>;
910
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>>;
911
1020
  name: z.ZodOptional<z.ZodString>;
912
1021
  frame: z.ZodObject<{
913
1022
  xPt: z.ZodNumber;
@@ -951,7 +1060,6 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
951
1060
  widthPt: z.ZodNumber;
952
1061
  heightPt: z.ZodNumber;
953
1062
  }, z.core.$strip>>>;
954
- 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>>>>;
955
1063
  }, z.core.$strip>>;
956
1064
  notes: z.ZodString;
957
1065
  source: z.ZodOptional<z.ZodObject<{
@@ -1044,8 +1152,62 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1044
1152
  }, z.core.$strip>;
1045
1153
  }, z.core.$strip>, z.ZodObject<{
1046
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>>;
1047
1182
  name: z.ZodString;
1048
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>>;
1049
1211
  row: z.ZodNumber;
1050
1212
  column: z.ZodNumber;
1051
1213
  value: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1099,6 +1261,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1099
1261
  }, z.core.$strip>>;
1100
1262
  }, z.core.$strip>>;
1101
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>>;
1102
1291
  hyperlink: z.ZodOptional<z.ZodString>;
1103
1292
  verticalAlign: z.ZodOptional<z.ZodEnum<{
1104
1293
  superscript: "superscript";
@@ -1313,8 +1502,8 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1313
1502
  }, z.core.$strip>>;
1314
1503
  alignment: z.ZodOptional<z.ZodEnum<{
1315
1504
  left: "left";
1316
- right: "right";
1317
1505
  center: "center";
1506
+ right: "right";
1318
1507
  justify: "justify";
1319
1508
  }>>;
1320
1509
  verticalAlignment: z.ZodOptional<z.ZodEnum<{
@@ -1371,6 +1560,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1371
1560
  hidden: z.ZodOptional<z.ZodBoolean>;
1372
1561
  }, z.core.$strip>>;
1373
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>>;
1374
1590
  kind: z.ZodLiteral<"image">;
1375
1591
  format: z.ZodEnum<{
1376
1592
  png: "png";
@@ -1390,6 +1606,8 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1390
1606
  base64: z.ZodString;
1391
1607
  jbig2GlobalsBase64: z.ZodOptional<z.ZodString>;
1392
1608
  }, z.core.$strip>>;
1609
+ anchorRunIndex: z.ZodOptional<z.ZodNumber>;
1610
+ anchorOffset: z.ZodOptional<z.ZodNumber>;
1393
1611
  floatPosition: z.ZodOptional<z.ZodObject<{
1394
1612
  horizontal: z.ZodUnion<readonly [z.ZodObject<{
1395
1613
  relativeTo: z.ZodEnum<{
@@ -1426,10 +1644,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1426
1644
  }>;
1427
1645
  align: z.ZodEnum<{
1428
1646
  left: "left";
1647
+ center: "center";
1429
1648
  right: "right";
1430
1649
  top: "top";
1431
1650
  bottom: "bottom";
1432
- center: "center";
1433
1651
  inside: "inside";
1434
1652
  outside: "outside";
1435
1653
  }>;
@@ -1469,10 +1687,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1469
1687
  }>;
1470
1688
  align: z.ZodEnum<{
1471
1689
  left: "left";
1690
+ center: "center";
1472
1691
  right: "right";
1473
1692
  top: "top";
1474
1693
  bottom: "bottom";
1475
- center: "center";
1476
1694
  inside: "inside";
1477
1695
  outside: "outside";
1478
1696
  }>;
@@ -1561,10 +1779,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1561
1779
  endColumn: z.ZodNumber;
1562
1780
  }, z.core.$strip>>;
1563
1781
  type: z.ZodEnum<{
1564
- date: "date";
1565
- custom: "custom";
1566
1782
  decimal: "decimal";
1567
1783
  list: "list";
1784
+ date: "date";
1785
+ custom: "custom";
1568
1786
  time: "time";
1569
1787
  whole: "whole";
1570
1788
  textLength: "textLength";
@@ -2278,11 +2496,66 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2278
2496
  }, z.core.$strip>;
2279
2497
  }, z.core.$strip>, z.ZodObject<{
2280
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>>;
2281
2526
  size: z.ZodObject<{
2282
2527
  widthPt: z.ZodNumber;
2283
2528
  heightPt: z.ZodNumber;
2284
2529
  }, z.core.$strip>;
2285
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>>;
2286
2559
  name: z.ZodOptional<z.ZodString>;
2287
2560
  frame: z.ZodObject<{
2288
2561
  xPt: z.ZodNumber;
@@ -2326,9 +2599,35 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2326
2599
  widthPt: z.ZodNumber;
2327
2600
  heightPt: z.ZodNumber;
2328
2601
  }, z.core.$strip>>>;
2329
- 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>>>>;
2330
2602
  }, z.core.$strip>>;
2331
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>>;
2332
2631
  kind: z.ZodLiteral<"rect">;
2333
2632
  frame: z.ZodObject<{
2334
2633
  xPt: z.ZodNumber;
@@ -2440,6 +2739,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2440
2739
  heightPt: z.ZodNumber;
2441
2740
  }, z.core.$strip>>>;
2442
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>>;
2443
2769
  kind: z.ZodLiteral<"ellipse">;
2444
2770
  frame: z.ZodObject<{
2445
2771
  xPt: z.ZodNumber;
@@ -2551,6 +2877,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2551
2877
  heightPt: z.ZodNumber;
2552
2878
  }, z.core.$strip>>>;
2553
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>>;
2554
2907
  kind: z.ZodLiteral<"line">;
2555
2908
  from: z.ZodObject<{
2556
2909
  xPt: z.ZodNumber;
@@ -2612,6 +2965,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2612
2965
  heightPt: z.ZodNumber;
2613
2966
  }, z.core.$strip>>>;
2614
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>>;
2615
2995
  kind: z.ZodLiteral<"path">;
2616
2996
  frame: z.ZodObject<{
2617
2997
  xPt: z.ZodNumber;
@@ -2845,6 +3225,33 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2845
3225
  }, z.core.$strip>;
2846
3226
  }, z.core.$strip>, z.ZodObject<{
2847
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>>;
2848
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>>>;
2849
3256
  starMath: z.ZodOptional<z.ZodString>;
2850
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.2",
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.4",
86
- "document-schema.js": "7.7.0",
85
+ "archive-codec": "1.10.5",
86
+ "document-schema.js": "7.8.0",
87
87
  "zod": "4.4.3"
88
88
  },
89
89
  "devDependencies": {