epub-codec 1.3.6 → 1.3.7

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.
@@ -147,8 +147,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
147
147
  paragraph: z.ZodOptional<z.ZodObject<{
148
148
  alignment: z.ZodOptional<z.ZodEnum<{
149
149
  left: "left";
150
- right: "right";
151
150
  center: "center";
151
+ right: "right";
152
152
  justify: "justify";
153
153
  }>>;
154
154
  list: z.ZodOptional<z.ZodObject<{
@@ -296,8 +296,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
296
296
  paragraph: z.ZodOptional<z.ZodObject<{
297
297
  alignment: z.ZodOptional<z.ZodEnum<{
298
298
  left: "left";
299
- right: "right";
300
299
  center: "center";
300
+ right: "right";
301
301
  justify: "justify";
302
302
  }>>;
303
303
  list: z.ZodOptional<z.ZodObject<{
@@ -450,8 +450,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
450
450
  paragraph: z.ZodOptional<z.ZodObject<{
451
451
  alignment: z.ZodOptional<z.ZodEnum<{
452
452
  left: "left";
453
- right: "right";
454
453
  center: "center";
454
+ right: "right";
455
455
  justify: "justify";
456
456
  }>>;
457
457
  list: z.ZodOptional<z.ZodObject<{
@@ -599,8 +599,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
599
599
  paragraph: z.ZodOptional<z.ZodObject<{
600
600
  alignment: z.ZodOptional<z.ZodEnum<{
601
601
  left: "left";
602
- right: "right";
603
602
  center: "center";
603
+ right: "right";
604
604
  justify: "justify";
605
605
  }>>;
606
606
  list: z.ZodOptional<z.ZodObject<{
@@ -740,6 +740,33 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
740
740
  kind: z.ZodLiteral<"drawing">;
741
741
  }, z.core.$strip>, z.ZodObject<{
742
742
  children: z.ZodArray<z.ZodObject<{
743
+ origin: z.ZodOptional<z.ZodEnum<{
744
+ chart: "chart";
745
+ diagram: "diagram";
746
+ table: "table";
747
+ image: "image";
748
+ notes: "notes";
749
+ body: "body";
750
+ }>>;
751
+ interpretation: z.ZodOptional<z.ZodObject<{
752
+ transcript: z.ZodOptional<z.ZodObject<{
753
+ text: z.ZodString;
754
+ confidence: z.ZodEnum<{
755
+ high: "high";
756
+ medium: "medium";
757
+ low: "low";
758
+ }>;
759
+ mechanism: z.ZodEnum<{
760
+ deterministic: "deterministic";
761
+ model: "model";
762
+ }>;
763
+ }, z.core.$strip>>;
764
+ description: z.ZodOptional<z.ZodString>;
765
+ by: z.ZodOptional<z.ZodObject<{
766
+ model: z.ZodString;
767
+ at: z.ZodString;
768
+ }, z.core.$strip>>;
769
+ }, z.core.$strip>>;
743
770
  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>>>;
744
771
  starMath: z.ZodOptional<z.ZodString>;
745
772
  presentation: z.ZodOptional<z.ZodObject<{
@@ -780,8 +807,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
780
807
  paragraph: z.ZodOptional<z.ZodObject<{
781
808
  alignment: z.ZodOptional<z.ZodEnum<{
782
809
  left: "left";
783
- right: "right";
784
810
  center: "center";
811
+ right: "right";
785
812
  justify: "justify";
786
813
  }>>;
787
814
  list: z.ZodOptional<z.ZodObject<{
@@ -922,6 +949,33 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
922
949
  }, z.core.$strip>], "kind">>;
923
950
  declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
924
951
  sections: z.ZodArray<z.ZodObject<{
952
+ origin: z.ZodOptional<z.ZodEnum<{
953
+ chart: "chart";
954
+ diagram: "diagram";
955
+ table: "table";
956
+ image: "image";
957
+ notes: "notes";
958
+ body: "body";
959
+ }>>;
960
+ interpretation: z.ZodOptional<z.ZodObject<{
961
+ transcript: z.ZodOptional<z.ZodObject<{
962
+ text: z.ZodString;
963
+ confidence: z.ZodEnum<{
964
+ high: "high";
965
+ medium: "medium";
966
+ low: "low";
967
+ }>;
968
+ mechanism: z.ZodEnum<{
969
+ deterministic: "deterministic";
970
+ model: "model";
971
+ }>;
972
+ }, z.core.$strip>>;
973
+ description: z.ZodOptional<z.ZodString>;
974
+ by: z.ZodOptional<z.ZodObject<{
975
+ model: z.ZodString;
976
+ at: z.ZodString;
977
+ }, z.core.$strip>>;
978
+ }, z.core.$strip>>;
925
979
  pageSize: z.ZodObject<{
926
980
  widthPt: z.ZodNumber;
927
981
  heightPt: z.ZodNumber;
@@ -1039,11 +1093,66 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1039
1093
  }, z.core.$strip>;
1040
1094
  }, z.core.$strip>, z.ZodObject<{
1041
1095
  slides: z.ZodArray<z.ZodObject<{
1096
+ origin: z.ZodOptional<z.ZodEnum<{
1097
+ chart: "chart";
1098
+ diagram: "diagram";
1099
+ table: "table";
1100
+ image: "image";
1101
+ notes: "notes";
1102
+ body: "body";
1103
+ }>>;
1104
+ interpretation: z.ZodOptional<z.ZodObject<{
1105
+ transcript: z.ZodOptional<z.ZodObject<{
1106
+ text: z.ZodString;
1107
+ confidence: z.ZodEnum<{
1108
+ high: "high";
1109
+ medium: "medium";
1110
+ low: "low";
1111
+ }>;
1112
+ mechanism: z.ZodEnum<{
1113
+ deterministic: "deterministic";
1114
+ model: "model";
1115
+ }>;
1116
+ }, z.core.$strip>>;
1117
+ description: z.ZodOptional<z.ZodString>;
1118
+ by: z.ZodOptional<z.ZodObject<{
1119
+ model: z.ZodString;
1120
+ at: z.ZodString;
1121
+ }, z.core.$strip>>;
1122
+ }, z.core.$strip>>;
1042
1123
  size: z.ZodObject<{
1043
1124
  widthPt: z.ZodNumber;
1044
1125
  heightPt: z.ZodNumber;
1045
1126
  }, z.core.$strip>;
1046
1127
  shapes: z.ZodArray<z.ZodObject<{
1128
+ 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>>>>;
1129
+ origin: z.ZodOptional<z.ZodEnum<{
1130
+ chart: "chart";
1131
+ diagram: "diagram";
1132
+ table: "table";
1133
+ image: "image";
1134
+ notes: "notes";
1135
+ body: "body";
1136
+ }>>;
1137
+ interpretation: z.ZodOptional<z.ZodObject<{
1138
+ transcript: z.ZodOptional<z.ZodObject<{
1139
+ text: z.ZodString;
1140
+ confidence: z.ZodEnum<{
1141
+ high: "high";
1142
+ medium: "medium";
1143
+ low: "low";
1144
+ }>;
1145
+ mechanism: z.ZodEnum<{
1146
+ deterministic: "deterministic";
1147
+ model: "model";
1148
+ }>;
1149
+ }, z.core.$strip>>;
1150
+ description: z.ZodOptional<z.ZodString>;
1151
+ by: z.ZodOptional<z.ZodObject<{
1152
+ model: z.ZodString;
1153
+ at: z.ZodString;
1154
+ }, z.core.$strip>>;
1155
+ }, z.core.$strip>>;
1047
1156
  name: z.ZodOptional<z.ZodString>;
1048
1157
  frame: z.ZodObject<{
1049
1158
  xPt: z.ZodNumber;
@@ -1087,7 +1196,6 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1087
1196
  widthPt: z.ZodNumber;
1088
1197
  heightPt: z.ZodNumber;
1089
1198
  }, z.core.$strip>>>;
1090
- 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>>>>;
1091
1199
  }, z.core.$strip>>;
1092
1200
  notes: z.ZodString;
1093
1201
  source: z.ZodOptional<z.ZodObject<{
@@ -1180,8 +1288,62 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1180
1288
  }, z.core.$strip>;
1181
1289
  }, z.core.$strip>, z.ZodObject<{
1182
1290
  sheets: z.ZodArray<z.ZodObject<{
1291
+ origin: z.ZodOptional<z.ZodEnum<{
1292
+ chart: "chart";
1293
+ diagram: "diagram";
1294
+ table: "table";
1295
+ image: "image";
1296
+ notes: "notes";
1297
+ body: "body";
1298
+ }>>;
1299
+ interpretation: z.ZodOptional<z.ZodObject<{
1300
+ transcript: z.ZodOptional<z.ZodObject<{
1301
+ text: z.ZodString;
1302
+ confidence: z.ZodEnum<{
1303
+ high: "high";
1304
+ medium: "medium";
1305
+ low: "low";
1306
+ }>;
1307
+ mechanism: z.ZodEnum<{
1308
+ deterministic: "deterministic";
1309
+ model: "model";
1310
+ }>;
1311
+ }, z.core.$strip>>;
1312
+ description: z.ZodOptional<z.ZodString>;
1313
+ by: z.ZodOptional<z.ZodObject<{
1314
+ model: z.ZodString;
1315
+ at: z.ZodString;
1316
+ }, z.core.$strip>>;
1317
+ }, z.core.$strip>>;
1183
1318
  name: z.ZodString;
1184
1319
  cells: z.ZodArray<z.ZodObject<{
1320
+ origin: z.ZodOptional<z.ZodEnum<{
1321
+ chart: "chart";
1322
+ diagram: "diagram";
1323
+ table: "table";
1324
+ image: "image";
1325
+ notes: "notes";
1326
+ body: "body";
1327
+ }>>;
1328
+ interpretation: z.ZodOptional<z.ZodObject<{
1329
+ transcript: z.ZodOptional<z.ZodObject<{
1330
+ text: z.ZodString;
1331
+ confidence: z.ZodEnum<{
1332
+ high: "high";
1333
+ medium: "medium";
1334
+ low: "low";
1335
+ }>;
1336
+ mechanism: z.ZodEnum<{
1337
+ deterministic: "deterministic";
1338
+ model: "model";
1339
+ }>;
1340
+ }, z.core.$strip>>;
1341
+ description: z.ZodOptional<z.ZodString>;
1342
+ by: z.ZodOptional<z.ZodObject<{
1343
+ model: z.ZodString;
1344
+ at: z.ZodString;
1345
+ }, z.core.$strip>>;
1346
+ }, z.core.$strip>>;
1185
1347
  row: z.ZodNumber;
1186
1348
  column: z.ZodNumber;
1187
1349
  value: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1235,6 +1397,33 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1235
1397
  }, z.core.$strip>>;
1236
1398
  }, z.core.$strip>>;
1237
1399
  runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1400
+ origin: z.ZodOptional<z.ZodEnum<{
1401
+ chart: "chart";
1402
+ diagram: "diagram";
1403
+ table: "table";
1404
+ image: "image";
1405
+ notes: "notes";
1406
+ body: "body";
1407
+ }>>;
1408
+ interpretation: z.ZodOptional<z.ZodObject<{
1409
+ transcript: z.ZodOptional<z.ZodObject<{
1410
+ text: z.ZodString;
1411
+ confidence: z.ZodEnum<{
1412
+ high: "high";
1413
+ medium: "medium";
1414
+ low: "low";
1415
+ }>;
1416
+ mechanism: z.ZodEnum<{
1417
+ deterministic: "deterministic";
1418
+ model: "model";
1419
+ }>;
1420
+ }, z.core.$strip>>;
1421
+ description: z.ZodOptional<z.ZodString>;
1422
+ by: z.ZodOptional<z.ZodObject<{
1423
+ model: z.ZodString;
1424
+ at: z.ZodString;
1425
+ }, z.core.$strip>>;
1426
+ }, z.core.$strip>>;
1238
1427
  hyperlink: z.ZodOptional<z.ZodString>;
1239
1428
  verticalAlign: z.ZodOptional<z.ZodEnum<{
1240
1429
  superscript: "superscript";
@@ -1449,8 +1638,8 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1449
1638
  }, z.core.$strip>>;
1450
1639
  alignment: z.ZodOptional<z.ZodEnum<{
1451
1640
  left: "left";
1452
- right: "right";
1453
1641
  center: "center";
1642
+ right: "right";
1454
1643
  justify: "justify";
1455
1644
  }>>;
1456
1645
  verticalAlignment: z.ZodOptional<z.ZodEnum<{
@@ -1507,6 +1696,33 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1507
1696
  hidden: z.ZodOptional<z.ZodBoolean>;
1508
1697
  }, z.core.$strip>>;
1509
1698
  images: z.ZodArray<z.ZodObject<{
1699
+ origin: z.ZodOptional<z.ZodEnum<{
1700
+ chart: "chart";
1701
+ diagram: "diagram";
1702
+ table: "table";
1703
+ image: "image";
1704
+ notes: "notes";
1705
+ body: "body";
1706
+ }>>;
1707
+ interpretation: z.ZodOptional<z.ZodObject<{
1708
+ transcript: z.ZodOptional<z.ZodObject<{
1709
+ text: z.ZodString;
1710
+ confidence: z.ZodEnum<{
1711
+ high: "high";
1712
+ medium: "medium";
1713
+ low: "low";
1714
+ }>;
1715
+ mechanism: z.ZodEnum<{
1716
+ deterministic: "deterministic";
1717
+ model: "model";
1718
+ }>;
1719
+ }, z.core.$strip>>;
1720
+ description: z.ZodOptional<z.ZodString>;
1721
+ by: z.ZodOptional<z.ZodObject<{
1722
+ model: z.ZodString;
1723
+ at: z.ZodString;
1724
+ }, z.core.$strip>>;
1725
+ }, z.core.$strip>>;
1510
1726
  kind: z.ZodLiteral<"image">;
1511
1727
  format: z.ZodEnum<{
1512
1728
  png: "png";
@@ -1526,6 +1742,8 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1526
1742
  base64: z.ZodString;
1527
1743
  jbig2GlobalsBase64: z.ZodOptional<z.ZodString>;
1528
1744
  }, z.core.$strip>>;
1745
+ anchorRunIndex: z.ZodOptional<z.ZodNumber>;
1746
+ anchorOffset: z.ZodOptional<z.ZodNumber>;
1529
1747
  floatPosition: z.ZodOptional<z.ZodObject<{
1530
1748
  horizontal: z.ZodUnion<readonly [z.ZodObject<{
1531
1749
  relativeTo: z.ZodEnum<{
@@ -1562,10 +1780,10 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1562
1780
  }>;
1563
1781
  align: z.ZodEnum<{
1564
1782
  left: "left";
1783
+ center: "center";
1565
1784
  right: "right";
1566
1785
  top: "top";
1567
1786
  bottom: "bottom";
1568
- center: "center";
1569
1787
  inside: "inside";
1570
1788
  outside: "outside";
1571
1789
  }>;
@@ -1605,10 +1823,10 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1605
1823
  }>;
1606
1824
  align: z.ZodEnum<{
1607
1825
  left: "left";
1826
+ center: "center";
1608
1827
  right: "right";
1609
1828
  top: "top";
1610
1829
  bottom: "bottom";
1611
- center: "center";
1612
1830
  inside: "inside";
1613
1831
  outside: "outside";
1614
1832
  }>;
@@ -1697,10 +1915,10 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1697
1915
  endColumn: z.ZodNumber;
1698
1916
  }, z.core.$strip>>;
1699
1917
  type: z.ZodEnum<{
1700
- date: "date";
1701
- custom: "custom";
1702
1918
  decimal: "decimal";
1703
1919
  list: "list";
1920
+ date: "date";
1921
+ custom: "custom";
1704
1922
  time: "time";
1705
1923
  whole: "whole";
1706
1924
  textLength: "textLength";
@@ -2414,11 +2632,66 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
2414
2632
  }, z.core.$strip>;
2415
2633
  }, z.core.$strip>, z.ZodObject<{
2416
2634
  pages: z.ZodArray<z.ZodObject<{
2635
+ origin: z.ZodOptional<z.ZodEnum<{
2636
+ chart: "chart";
2637
+ diagram: "diagram";
2638
+ table: "table";
2639
+ image: "image";
2640
+ notes: "notes";
2641
+ body: "body";
2642
+ }>>;
2643
+ interpretation: z.ZodOptional<z.ZodObject<{
2644
+ transcript: z.ZodOptional<z.ZodObject<{
2645
+ text: z.ZodString;
2646
+ confidence: z.ZodEnum<{
2647
+ high: "high";
2648
+ medium: "medium";
2649
+ low: "low";
2650
+ }>;
2651
+ mechanism: z.ZodEnum<{
2652
+ deterministic: "deterministic";
2653
+ model: "model";
2654
+ }>;
2655
+ }, z.core.$strip>>;
2656
+ description: z.ZodOptional<z.ZodString>;
2657
+ by: z.ZodOptional<z.ZodObject<{
2658
+ model: z.ZodString;
2659
+ at: z.ZodString;
2660
+ }, z.core.$strip>>;
2661
+ }, z.core.$strip>>;
2417
2662
  size: z.ZodObject<{
2418
2663
  widthPt: z.ZodNumber;
2419
2664
  heightPt: z.ZodNumber;
2420
2665
  }, z.core.$strip>;
2421
2666
  shapes: z.ZodArray<z.ZodObject<{
2667
+ 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>>>>;
2668
+ origin: z.ZodOptional<z.ZodEnum<{
2669
+ chart: "chart";
2670
+ diagram: "diagram";
2671
+ table: "table";
2672
+ image: "image";
2673
+ notes: "notes";
2674
+ body: "body";
2675
+ }>>;
2676
+ interpretation: z.ZodOptional<z.ZodObject<{
2677
+ transcript: z.ZodOptional<z.ZodObject<{
2678
+ text: z.ZodString;
2679
+ confidence: z.ZodEnum<{
2680
+ high: "high";
2681
+ medium: "medium";
2682
+ low: "low";
2683
+ }>;
2684
+ mechanism: z.ZodEnum<{
2685
+ deterministic: "deterministic";
2686
+ model: "model";
2687
+ }>;
2688
+ }, z.core.$strip>>;
2689
+ description: z.ZodOptional<z.ZodString>;
2690
+ by: z.ZodOptional<z.ZodObject<{
2691
+ model: z.ZodString;
2692
+ at: z.ZodString;
2693
+ }, z.core.$strip>>;
2694
+ }, z.core.$strip>>;
2422
2695
  name: z.ZodOptional<z.ZodString>;
2423
2696
  frame: z.ZodObject<{
2424
2697
  xPt: z.ZodNumber;
@@ -2462,9 +2735,35 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
2462
2735
  widthPt: z.ZodNumber;
2463
2736
  heightPt: z.ZodNumber;
2464
2737
  }, z.core.$strip>>>;
2465
- 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>>>>;
2466
2738
  }, z.core.$strip>>;
2467
2739
  vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2740
+ origin: z.ZodOptional<z.ZodEnum<{
2741
+ chart: "chart";
2742
+ diagram: "diagram";
2743
+ table: "table";
2744
+ image: "image";
2745
+ notes: "notes";
2746
+ body: "body";
2747
+ }>>;
2748
+ interpretation: z.ZodOptional<z.ZodObject<{
2749
+ transcript: z.ZodOptional<z.ZodObject<{
2750
+ text: z.ZodString;
2751
+ confidence: z.ZodEnum<{
2752
+ high: "high";
2753
+ medium: "medium";
2754
+ low: "low";
2755
+ }>;
2756
+ mechanism: z.ZodEnum<{
2757
+ deterministic: "deterministic";
2758
+ model: "model";
2759
+ }>;
2760
+ }, z.core.$strip>>;
2761
+ description: z.ZodOptional<z.ZodString>;
2762
+ by: z.ZodOptional<z.ZodObject<{
2763
+ model: z.ZodString;
2764
+ at: z.ZodString;
2765
+ }, z.core.$strip>>;
2766
+ }, z.core.$strip>>;
2468
2767
  kind: z.ZodLiteral<"rect">;
2469
2768
  frame: z.ZodObject<{
2470
2769
  xPt: z.ZodNumber;
@@ -2576,6 +2875,33 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
2576
2875
  heightPt: z.ZodNumber;
2577
2876
  }, z.core.$strip>>>;
2578
2877
  }, z.core.$strip>, z.ZodObject<{
2878
+ origin: z.ZodOptional<z.ZodEnum<{
2879
+ chart: "chart";
2880
+ diagram: "diagram";
2881
+ table: "table";
2882
+ image: "image";
2883
+ notes: "notes";
2884
+ body: "body";
2885
+ }>>;
2886
+ interpretation: z.ZodOptional<z.ZodObject<{
2887
+ transcript: z.ZodOptional<z.ZodObject<{
2888
+ text: z.ZodString;
2889
+ confidence: z.ZodEnum<{
2890
+ high: "high";
2891
+ medium: "medium";
2892
+ low: "low";
2893
+ }>;
2894
+ mechanism: z.ZodEnum<{
2895
+ deterministic: "deterministic";
2896
+ model: "model";
2897
+ }>;
2898
+ }, z.core.$strip>>;
2899
+ description: z.ZodOptional<z.ZodString>;
2900
+ by: z.ZodOptional<z.ZodObject<{
2901
+ model: z.ZodString;
2902
+ at: z.ZodString;
2903
+ }, z.core.$strip>>;
2904
+ }, z.core.$strip>>;
2579
2905
  kind: z.ZodLiteral<"ellipse">;
2580
2906
  frame: z.ZodObject<{
2581
2907
  xPt: z.ZodNumber;
@@ -2687,6 +3013,33 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
2687
3013
  heightPt: z.ZodNumber;
2688
3014
  }, z.core.$strip>>>;
2689
3015
  }, z.core.$strip>, z.ZodObject<{
3016
+ origin: z.ZodOptional<z.ZodEnum<{
3017
+ chart: "chart";
3018
+ diagram: "diagram";
3019
+ table: "table";
3020
+ image: "image";
3021
+ notes: "notes";
3022
+ body: "body";
3023
+ }>>;
3024
+ interpretation: z.ZodOptional<z.ZodObject<{
3025
+ transcript: z.ZodOptional<z.ZodObject<{
3026
+ text: z.ZodString;
3027
+ confidence: z.ZodEnum<{
3028
+ high: "high";
3029
+ medium: "medium";
3030
+ low: "low";
3031
+ }>;
3032
+ mechanism: z.ZodEnum<{
3033
+ deterministic: "deterministic";
3034
+ model: "model";
3035
+ }>;
3036
+ }, z.core.$strip>>;
3037
+ description: z.ZodOptional<z.ZodString>;
3038
+ by: z.ZodOptional<z.ZodObject<{
3039
+ model: z.ZodString;
3040
+ at: z.ZodString;
3041
+ }, z.core.$strip>>;
3042
+ }, z.core.$strip>>;
2690
3043
  kind: z.ZodLiteral<"line">;
2691
3044
  from: z.ZodObject<{
2692
3045
  xPt: z.ZodNumber;
@@ -2748,6 +3101,33 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
2748
3101
  heightPt: z.ZodNumber;
2749
3102
  }, z.core.$strip>>>;
2750
3103
  }, z.core.$strip>, z.ZodObject<{
3104
+ origin: z.ZodOptional<z.ZodEnum<{
3105
+ chart: "chart";
3106
+ diagram: "diagram";
3107
+ table: "table";
3108
+ image: "image";
3109
+ notes: "notes";
3110
+ body: "body";
3111
+ }>>;
3112
+ interpretation: z.ZodOptional<z.ZodObject<{
3113
+ transcript: z.ZodOptional<z.ZodObject<{
3114
+ text: z.ZodString;
3115
+ confidence: z.ZodEnum<{
3116
+ high: "high";
3117
+ medium: "medium";
3118
+ low: "low";
3119
+ }>;
3120
+ mechanism: z.ZodEnum<{
3121
+ deterministic: "deterministic";
3122
+ model: "model";
3123
+ }>;
3124
+ }, z.core.$strip>>;
3125
+ description: z.ZodOptional<z.ZodString>;
3126
+ by: z.ZodOptional<z.ZodObject<{
3127
+ model: z.ZodString;
3128
+ at: z.ZodString;
3129
+ }, z.core.$strip>>;
3130
+ }, z.core.$strip>>;
2751
3131
  kind: z.ZodLiteral<"path">;
2752
3132
  frame: z.ZodObject<{
2753
3133
  xPt: z.ZodNumber;
@@ -2981,6 +3361,33 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
2981
3361
  }, z.core.$strip>;
2982
3362
  }, z.core.$strip>, z.ZodObject<{
2983
3363
  formula: z.ZodObject<{
3364
+ origin: z.ZodOptional<z.ZodEnum<{
3365
+ chart: "chart";
3366
+ diagram: "diagram";
3367
+ table: "table";
3368
+ image: "image";
3369
+ notes: "notes";
3370
+ body: "body";
3371
+ }>>;
3372
+ interpretation: z.ZodOptional<z.ZodObject<{
3373
+ transcript: z.ZodOptional<z.ZodObject<{
3374
+ text: z.ZodString;
3375
+ confidence: z.ZodEnum<{
3376
+ high: "high";
3377
+ medium: "medium";
3378
+ low: "low";
3379
+ }>;
3380
+ mechanism: z.ZodEnum<{
3381
+ deterministic: "deterministic";
3382
+ model: "model";
3383
+ }>;
3384
+ }, z.core.$strip>>;
3385
+ description: z.ZodOptional<z.ZodString>;
3386
+ by: z.ZodOptional<z.ZodObject<{
3387
+ model: z.ZodString;
3388
+ at: z.ZodString;
3389
+ }, z.core.$strip>>;
3390
+ }, z.core.$strip>>;
2984
3391
  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>>>;
2985
3392
  starMath: z.ZodOptional<z.ZodString>;
2986
3393
  presentation: z.ZodOptional<z.ZodObject<{
@@ -147,8 +147,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
147
147
  paragraph: z.ZodOptional<z.ZodObject<{
148
148
  alignment: z.ZodOptional<z.ZodEnum<{
149
149
  left: "left";
150
- right: "right";
151
150
  center: "center";
151
+ right: "right";
152
152
  justify: "justify";
153
153
  }>>;
154
154
  list: z.ZodOptional<z.ZodObject<{
@@ -296,8 +296,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
296
296
  paragraph: z.ZodOptional<z.ZodObject<{
297
297
  alignment: z.ZodOptional<z.ZodEnum<{
298
298
  left: "left";
299
- right: "right";
300
299
  center: "center";
300
+ right: "right";
301
301
  justify: "justify";
302
302
  }>>;
303
303
  list: z.ZodOptional<z.ZodObject<{
@@ -450,8 +450,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
450
450
  paragraph: z.ZodOptional<z.ZodObject<{
451
451
  alignment: z.ZodOptional<z.ZodEnum<{
452
452
  left: "left";
453
- right: "right";
454
453
  center: "center";
454
+ right: "right";
455
455
  justify: "justify";
456
456
  }>>;
457
457
  list: z.ZodOptional<z.ZodObject<{
@@ -599,8 +599,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
599
599
  paragraph: z.ZodOptional<z.ZodObject<{
600
600
  alignment: z.ZodOptional<z.ZodEnum<{
601
601
  left: "left";
602
- right: "right";
603
602
  center: "center";
603
+ right: "right";
604
604
  justify: "justify";
605
605
  }>>;
606
606
  list: z.ZodOptional<z.ZodObject<{
@@ -740,6 +740,33 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
740
740
  kind: z.ZodLiteral<"drawing">;
741
741
  }, z.core.$strip>, z.ZodObject<{
742
742
  children: z.ZodArray<z.ZodObject<{
743
+ origin: z.ZodOptional<z.ZodEnum<{
744
+ chart: "chart";
745
+ diagram: "diagram";
746
+ table: "table";
747
+ image: "image";
748
+ notes: "notes";
749
+ body: "body";
750
+ }>>;
751
+ interpretation: z.ZodOptional<z.ZodObject<{
752
+ transcript: z.ZodOptional<z.ZodObject<{
753
+ text: z.ZodString;
754
+ confidence: z.ZodEnum<{
755
+ high: "high";
756
+ medium: "medium";
757
+ low: "low";
758
+ }>;
759
+ mechanism: z.ZodEnum<{
760
+ deterministic: "deterministic";
761
+ model: "model";
762
+ }>;
763
+ }, z.core.$strip>>;
764
+ description: z.ZodOptional<z.ZodString>;
765
+ by: z.ZodOptional<z.ZodObject<{
766
+ model: z.ZodString;
767
+ at: z.ZodString;
768
+ }, z.core.$strip>>;
769
+ }, z.core.$strip>>;
743
770
  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>>>;
744
771
  starMath: z.ZodOptional<z.ZodString>;
745
772
  presentation: z.ZodOptional<z.ZodObject<{
@@ -780,8 +807,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
780
807
  paragraph: z.ZodOptional<z.ZodObject<{
781
808
  alignment: z.ZodOptional<z.ZodEnum<{
782
809
  left: "left";
783
- right: "right";
784
810
  center: "center";
811
+ right: "right";
785
812
  justify: "justify";
786
813
  }>>;
787
814
  list: z.ZodOptional<z.ZodObject<{
@@ -922,6 +949,33 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
922
949
  }, z.core.$strip>], "kind">>;
923
950
  declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
924
951
  sections: z.ZodArray<z.ZodObject<{
952
+ origin: z.ZodOptional<z.ZodEnum<{
953
+ chart: "chart";
954
+ diagram: "diagram";
955
+ table: "table";
956
+ image: "image";
957
+ notes: "notes";
958
+ body: "body";
959
+ }>>;
960
+ interpretation: z.ZodOptional<z.ZodObject<{
961
+ transcript: z.ZodOptional<z.ZodObject<{
962
+ text: z.ZodString;
963
+ confidence: z.ZodEnum<{
964
+ high: "high";
965
+ medium: "medium";
966
+ low: "low";
967
+ }>;
968
+ mechanism: z.ZodEnum<{
969
+ deterministic: "deterministic";
970
+ model: "model";
971
+ }>;
972
+ }, z.core.$strip>>;
973
+ description: z.ZodOptional<z.ZodString>;
974
+ by: z.ZodOptional<z.ZodObject<{
975
+ model: z.ZodString;
976
+ at: z.ZodString;
977
+ }, z.core.$strip>>;
978
+ }, z.core.$strip>>;
925
979
  pageSize: z.ZodObject<{
926
980
  widthPt: z.ZodNumber;
927
981
  heightPt: z.ZodNumber;
@@ -1039,11 +1093,66 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1039
1093
  }, z.core.$strip>;
1040
1094
  }, z.core.$strip>, z.ZodObject<{
1041
1095
  slides: z.ZodArray<z.ZodObject<{
1096
+ origin: z.ZodOptional<z.ZodEnum<{
1097
+ chart: "chart";
1098
+ diagram: "diagram";
1099
+ table: "table";
1100
+ image: "image";
1101
+ notes: "notes";
1102
+ body: "body";
1103
+ }>>;
1104
+ interpretation: z.ZodOptional<z.ZodObject<{
1105
+ transcript: z.ZodOptional<z.ZodObject<{
1106
+ text: z.ZodString;
1107
+ confidence: z.ZodEnum<{
1108
+ high: "high";
1109
+ medium: "medium";
1110
+ low: "low";
1111
+ }>;
1112
+ mechanism: z.ZodEnum<{
1113
+ deterministic: "deterministic";
1114
+ model: "model";
1115
+ }>;
1116
+ }, z.core.$strip>>;
1117
+ description: z.ZodOptional<z.ZodString>;
1118
+ by: z.ZodOptional<z.ZodObject<{
1119
+ model: z.ZodString;
1120
+ at: z.ZodString;
1121
+ }, z.core.$strip>>;
1122
+ }, z.core.$strip>>;
1042
1123
  size: z.ZodObject<{
1043
1124
  widthPt: z.ZodNumber;
1044
1125
  heightPt: z.ZodNumber;
1045
1126
  }, z.core.$strip>;
1046
1127
  shapes: z.ZodArray<z.ZodObject<{
1128
+ 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>>>>;
1129
+ origin: z.ZodOptional<z.ZodEnum<{
1130
+ chart: "chart";
1131
+ diagram: "diagram";
1132
+ table: "table";
1133
+ image: "image";
1134
+ notes: "notes";
1135
+ body: "body";
1136
+ }>>;
1137
+ interpretation: z.ZodOptional<z.ZodObject<{
1138
+ transcript: z.ZodOptional<z.ZodObject<{
1139
+ text: z.ZodString;
1140
+ confidence: z.ZodEnum<{
1141
+ high: "high";
1142
+ medium: "medium";
1143
+ low: "low";
1144
+ }>;
1145
+ mechanism: z.ZodEnum<{
1146
+ deterministic: "deterministic";
1147
+ model: "model";
1148
+ }>;
1149
+ }, z.core.$strip>>;
1150
+ description: z.ZodOptional<z.ZodString>;
1151
+ by: z.ZodOptional<z.ZodObject<{
1152
+ model: z.ZodString;
1153
+ at: z.ZodString;
1154
+ }, z.core.$strip>>;
1155
+ }, z.core.$strip>>;
1047
1156
  name: z.ZodOptional<z.ZodString>;
1048
1157
  frame: z.ZodObject<{
1049
1158
  xPt: z.ZodNumber;
@@ -1087,7 +1196,6 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1087
1196
  widthPt: z.ZodNumber;
1088
1197
  heightPt: z.ZodNumber;
1089
1198
  }, z.core.$strip>>>;
1090
- 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>>>>;
1091
1199
  }, z.core.$strip>>;
1092
1200
  notes: z.ZodString;
1093
1201
  source: z.ZodOptional<z.ZodObject<{
@@ -1180,8 +1288,62 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1180
1288
  }, z.core.$strip>;
1181
1289
  }, z.core.$strip>, z.ZodObject<{
1182
1290
  sheets: z.ZodArray<z.ZodObject<{
1291
+ origin: z.ZodOptional<z.ZodEnum<{
1292
+ chart: "chart";
1293
+ diagram: "diagram";
1294
+ table: "table";
1295
+ image: "image";
1296
+ notes: "notes";
1297
+ body: "body";
1298
+ }>>;
1299
+ interpretation: z.ZodOptional<z.ZodObject<{
1300
+ transcript: z.ZodOptional<z.ZodObject<{
1301
+ text: z.ZodString;
1302
+ confidence: z.ZodEnum<{
1303
+ high: "high";
1304
+ medium: "medium";
1305
+ low: "low";
1306
+ }>;
1307
+ mechanism: z.ZodEnum<{
1308
+ deterministic: "deterministic";
1309
+ model: "model";
1310
+ }>;
1311
+ }, z.core.$strip>>;
1312
+ description: z.ZodOptional<z.ZodString>;
1313
+ by: z.ZodOptional<z.ZodObject<{
1314
+ model: z.ZodString;
1315
+ at: z.ZodString;
1316
+ }, z.core.$strip>>;
1317
+ }, z.core.$strip>>;
1183
1318
  name: z.ZodString;
1184
1319
  cells: z.ZodArray<z.ZodObject<{
1320
+ origin: z.ZodOptional<z.ZodEnum<{
1321
+ chart: "chart";
1322
+ diagram: "diagram";
1323
+ table: "table";
1324
+ image: "image";
1325
+ notes: "notes";
1326
+ body: "body";
1327
+ }>>;
1328
+ interpretation: z.ZodOptional<z.ZodObject<{
1329
+ transcript: z.ZodOptional<z.ZodObject<{
1330
+ text: z.ZodString;
1331
+ confidence: z.ZodEnum<{
1332
+ high: "high";
1333
+ medium: "medium";
1334
+ low: "low";
1335
+ }>;
1336
+ mechanism: z.ZodEnum<{
1337
+ deterministic: "deterministic";
1338
+ model: "model";
1339
+ }>;
1340
+ }, z.core.$strip>>;
1341
+ description: z.ZodOptional<z.ZodString>;
1342
+ by: z.ZodOptional<z.ZodObject<{
1343
+ model: z.ZodString;
1344
+ at: z.ZodString;
1345
+ }, z.core.$strip>>;
1346
+ }, z.core.$strip>>;
1185
1347
  row: z.ZodNumber;
1186
1348
  column: z.ZodNumber;
1187
1349
  value: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1235,6 +1397,33 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1235
1397
  }, z.core.$strip>>;
1236
1398
  }, z.core.$strip>>;
1237
1399
  runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1400
+ origin: z.ZodOptional<z.ZodEnum<{
1401
+ chart: "chart";
1402
+ diagram: "diagram";
1403
+ table: "table";
1404
+ image: "image";
1405
+ notes: "notes";
1406
+ body: "body";
1407
+ }>>;
1408
+ interpretation: z.ZodOptional<z.ZodObject<{
1409
+ transcript: z.ZodOptional<z.ZodObject<{
1410
+ text: z.ZodString;
1411
+ confidence: z.ZodEnum<{
1412
+ high: "high";
1413
+ medium: "medium";
1414
+ low: "low";
1415
+ }>;
1416
+ mechanism: z.ZodEnum<{
1417
+ deterministic: "deterministic";
1418
+ model: "model";
1419
+ }>;
1420
+ }, z.core.$strip>>;
1421
+ description: z.ZodOptional<z.ZodString>;
1422
+ by: z.ZodOptional<z.ZodObject<{
1423
+ model: z.ZodString;
1424
+ at: z.ZodString;
1425
+ }, z.core.$strip>>;
1426
+ }, z.core.$strip>>;
1238
1427
  hyperlink: z.ZodOptional<z.ZodString>;
1239
1428
  verticalAlign: z.ZodOptional<z.ZodEnum<{
1240
1429
  superscript: "superscript";
@@ -1449,8 +1638,8 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1449
1638
  }, z.core.$strip>>;
1450
1639
  alignment: z.ZodOptional<z.ZodEnum<{
1451
1640
  left: "left";
1452
- right: "right";
1453
1641
  center: "center";
1642
+ right: "right";
1454
1643
  justify: "justify";
1455
1644
  }>>;
1456
1645
  verticalAlignment: z.ZodOptional<z.ZodEnum<{
@@ -1507,6 +1696,33 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1507
1696
  hidden: z.ZodOptional<z.ZodBoolean>;
1508
1697
  }, z.core.$strip>>;
1509
1698
  images: z.ZodArray<z.ZodObject<{
1699
+ origin: z.ZodOptional<z.ZodEnum<{
1700
+ chart: "chart";
1701
+ diagram: "diagram";
1702
+ table: "table";
1703
+ image: "image";
1704
+ notes: "notes";
1705
+ body: "body";
1706
+ }>>;
1707
+ interpretation: z.ZodOptional<z.ZodObject<{
1708
+ transcript: z.ZodOptional<z.ZodObject<{
1709
+ text: z.ZodString;
1710
+ confidence: z.ZodEnum<{
1711
+ high: "high";
1712
+ medium: "medium";
1713
+ low: "low";
1714
+ }>;
1715
+ mechanism: z.ZodEnum<{
1716
+ deterministic: "deterministic";
1717
+ model: "model";
1718
+ }>;
1719
+ }, z.core.$strip>>;
1720
+ description: z.ZodOptional<z.ZodString>;
1721
+ by: z.ZodOptional<z.ZodObject<{
1722
+ model: z.ZodString;
1723
+ at: z.ZodString;
1724
+ }, z.core.$strip>>;
1725
+ }, z.core.$strip>>;
1510
1726
  kind: z.ZodLiteral<"image">;
1511
1727
  format: z.ZodEnum<{
1512
1728
  png: "png";
@@ -1526,6 +1742,8 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1526
1742
  base64: z.ZodString;
1527
1743
  jbig2GlobalsBase64: z.ZodOptional<z.ZodString>;
1528
1744
  }, z.core.$strip>>;
1745
+ anchorRunIndex: z.ZodOptional<z.ZodNumber>;
1746
+ anchorOffset: z.ZodOptional<z.ZodNumber>;
1529
1747
  floatPosition: z.ZodOptional<z.ZodObject<{
1530
1748
  horizontal: z.ZodUnion<readonly [z.ZodObject<{
1531
1749
  relativeTo: z.ZodEnum<{
@@ -1562,10 +1780,10 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1562
1780
  }>;
1563
1781
  align: z.ZodEnum<{
1564
1782
  left: "left";
1783
+ center: "center";
1565
1784
  right: "right";
1566
1785
  top: "top";
1567
1786
  bottom: "bottom";
1568
- center: "center";
1569
1787
  inside: "inside";
1570
1788
  outside: "outside";
1571
1789
  }>;
@@ -1605,10 +1823,10 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1605
1823
  }>;
1606
1824
  align: z.ZodEnum<{
1607
1825
  left: "left";
1826
+ center: "center";
1608
1827
  right: "right";
1609
1828
  top: "top";
1610
1829
  bottom: "bottom";
1611
- center: "center";
1612
1830
  inside: "inside";
1613
1831
  outside: "outside";
1614
1832
  }>;
@@ -1697,10 +1915,10 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1697
1915
  endColumn: z.ZodNumber;
1698
1916
  }, z.core.$strip>>;
1699
1917
  type: z.ZodEnum<{
1700
- date: "date";
1701
- custom: "custom";
1702
1918
  decimal: "decimal";
1703
1919
  list: "list";
1920
+ date: "date";
1921
+ custom: "custom";
1704
1922
  time: "time";
1705
1923
  whole: "whole";
1706
1924
  textLength: "textLength";
@@ -2414,11 +2632,66 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
2414
2632
  }, z.core.$strip>;
2415
2633
  }, z.core.$strip>, z.ZodObject<{
2416
2634
  pages: z.ZodArray<z.ZodObject<{
2635
+ origin: z.ZodOptional<z.ZodEnum<{
2636
+ chart: "chart";
2637
+ diagram: "diagram";
2638
+ table: "table";
2639
+ image: "image";
2640
+ notes: "notes";
2641
+ body: "body";
2642
+ }>>;
2643
+ interpretation: z.ZodOptional<z.ZodObject<{
2644
+ transcript: z.ZodOptional<z.ZodObject<{
2645
+ text: z.ZodString;
2646
+ confidence: z.ZodEnum<{
2647
+ high: "high";
2648
+ medium: "medium";
2649
+ low: "low";
2650
+ }>;
2651
+ mechanism: z.ZodEnum<{
2652
+ deterministic: "deterministic";
2653
+ model: "model";
2654
+ }>;
2655
+ }, z.core.$strip>>;
2656
+ description: z.ZodOptional<z.ZodString>;
2657
+ by: z.ZodOptional<z.ZodObject<{
2658
+ model: z.ZodString;
2659
+ at: z.ZodString;
2660
+ }, z.core.$strip>>;
2661
+ }, z.core.$strip>>;
2417
2662
  size: z.ZodObject<{
2418
2663
  widthPt: z.ZodNumber;
2419
2664
  heightPt: z.ZodNumber;
2420
2665
  }, z.core.$strip>;
2421
2666
  shapes: z.ZodArray<z.ZodObject<{
2667
+ 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>>>>;
2668
+ origin: z.ZodOptional<z.ZodEnum<{
2669
+ chart: "chart";
2670
+ diagram: "diagram";
2671
+ table: "table";
2672
+ image: "image";
2673
+ notes: "notes";
2674
+ body: "body";
2675
+ }>>;
2676
+ interpretation: z.ZodOptional<z.ZodObject<{
2677
+ transcript: z.ZodOptional<z.ZodObject<{
2678
+ text: z.ZodString;
2679
+ confidence: z.ZodEnum<{
2680
+ high: "high";
2681
+ medium: "medium";
2682
+ low: "low";
2683
+ }>;
2684
+ mechanism: z.ZodEnum<{
2685
+ deterministic: "deterministic";
2686
+ model: "model";
2687
+ }>;
2688
+ }, z.core.$strip>>;
2689
+ description: z.ZodOptional<z.ZodString>;
2690
+ by: z.ZodOptional<z.ZodObject<{
2691
+ model: z.ZodString;
2692
+ at: z.ZodString;
2693
+ }, z.core.$strip>>;
2694
+ }, z.core.$strip>>;
2422
2695
  name: z.ZodOptional<z.ZodString>;
2423
2696
  frame: z.ZodObject<{
2424
2697
  xPt: z.ZodNumber;
@@ -2462,9 +2735,35 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
2462
2735
  widthPt: z.ZodNumber;
2463
2736
  heightPt: z.ZodNumber;
2464
2737
  }, z.core.$strip>>>;
2465
- 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>>>>;
2466
2738
  }, z.core.$strip>>;
2467
2739
  vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2740
+ origin: z.ZodOptional<z.ZodEnum<{
2741
+ chart: "chart";
2742
+ diagram: "diagram";
2743
+ table: "table";
2744
+ image: "image";
2745
+ notes: "notes";
2746
+ body: "body";
2747
+ }>>;
2748
+ interpretation: z.ZodOptional<z.ZodObject<{
2749
+ transcript: z.ZodOptional<z.ZodObject<{
2750
+ text: z.ZodString;
2751
+ confidence: z.ZodEnum<{
2752
+ high: "high";
2753
+ medium: "medium";
2754
+ low: "low";
2755
+ }>;
2756
+ mechanism: z.ZodEnum<{
2757
+ deterministic: "deterministic";
2758
+ model: "model";
2759
+ }>;
2760
+ }, z.core.$strip>>;
2761
+ description: z.ZodOptional<z.ZodString>;
2762
+ by: z.ZodOptional<z.ZodObject<{
2763
+ model: z.ZodString;
2764
+ at: z.ZodString;
2765
+ }, z.core.$strip>>;
2766
+ }, z.core.$strip>>;
2468
2767
  kind: z.ZodLiteral<"rect">;
2469
2768
  frame: z.ZodObject<{
2470
2769
  xPt: z.ZodNumber;
@@ -2576,6 +2875,33 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
2576
2875
  heightPt: z.ZodNumber;
2577
2876
  }, z.core.$strip>>>;
2578
2877
  }, z.core.$strip>, z.ZodObject<{
2878
+ origin: z.ZodOptional<z.ZodEnum<{
2879
+ chart: "chart";
2880
+ diagram: "diagram";
2881
+ table: "table";
2882
+ image: "image";
2883
+ notes: "notes";
2884
+ body: "body";
2885
+ }>>;
2886
+ interpretation: z.ZodOptional<z.ZodObject<{
2887
+ transcript: z.ZodOptional<z.ZodObject<{
2888
+ text: z.ZodString;
2889
+ confidence: z.ZodEnum<{
2890
+ high: "high";
2891
+ medium: "medium";
2892
+ low: "low";
2893
+ }>;
2894
+ mechanism: z.ZodEnum<{
2895
+ deterministic: "deterministic";
2896
+ model: "model";
2897
+ }>;
2898
+ }, z.core.$strip>>;
2899
+ description: z.ZodOptional<z.ZodString>;
2900
+ by: z.ZodOptional<z.ZodObject<{
2901
+ model: z.ZodString;
2902
+ at: z.ZodString;
2903
+ }, z.core.$strip>>;
2904
+ }, z.core.$strip>>;
2579
2905
  kind: z.ZodLiteral<"ellipse">;
2580
2906
  frame: z.ZodObject<{
2581
2907
  xPt: z.ZodNumber;
@@ -2687,6 +3013,33 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
2687
3013
  heightPt: z.ZodNumber;
2688
3014
  }, z.core.$strip>>>;
2689
3015
  }, z.core.$strip>, z.ZodObject<{
3016
+ origin: z.ZodOptional<z.ZodEnum<{
3017
+ chart: "chart";
3018
+ diagram: "diagram";
3019
+ table: "table";
3020
+ image: "image";
3021
+ notes: "notes";
3022
+ body: "body";
3023
+ }>>;
3024
+ interpretation: z.ZodOptional<z.ZodObject<{
3025
+ transcript: z.ZodOptional<z.ZodObject<{
3026
+ text: z.ZodString;
3027
+ confidence: z.ZodEnum<{
3028
+ high: "high";
3029
+ medium: "medium";
3030
+ low: "low";
3031
+ }>;
3032
+ mechanism: z.ZodEnum<{
3033
+ deterministic: "deterministic";
3034
+ model: "model";
3035
+ }>;
3036
+ }, z.core.$strip>>;
3037
+ description: z.ZodOptional<z.ZodString>;
3038
+ by: z.ZodOptional<z.ZodObject<{
3039
+ model: z.ZodString;
3040
+ at: z.ZodString;
3041
+ }, z.core.$strip>>;
3042
+ }, z.core.$strip>>;
2690
3043
  kind: z.ZodLiteral<"line">;
2691
3044
  from: z.ZodObject<{
2692
3045
  xPt: z.ZodNumber;
@@ -2748,6 +3101,33 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
2748
3101
  heightPt: z.ZodNumber;
2749
3102
  }, z.core.$strip>>>;
2750
3103
  }, z.core.$strip>, z.ZodObject<{
3104
+ origin: z.ZodOptional<z.ZodEnum<{
3105
+ chart: "chart";
3106
+ diagram: "diagram";
3107
+ table: "table";
3108
+ image: "image";
3109
+ notes: "notes";
3110
+ body: "body";
3111
+ }>>;
3112
+ interpretation: z.ZodOptional<z.ZodObject<{
3113
+ transcript: z.ZodOptional<z.ZodObject<{
3114
+ text: z.ZodString;
3115
+ confidence: z.ZodEnum<{
3116
+ high: "high";
3117
+ medium: "medium";
3118
+ low: "low";
3119
+ }>;
3120
+ mechanism: z.ZodEnum<{
3121
+ deterministic: "deterministic";
3122
+ model: "model";
3123
+ }>;
3124
+ }, z.core.$strip>>;
3125
+ description: z.ZodOptional<z.ZodString>;
3126
+ by: z.ZodOptional<z.ZodObject<{
3127
+ model: z.ZodString;
3128
+ at: z.ZodString;
3129
+ }, z.core.$strip>>;
3130
+ }, z.core.$strip>>;
2751
3131
  kind: z.ZodLiteral<"path">;
2752
3132
  frame: z.ZodObject<{
2753
3133
  xPt: z.ZodNumber;
@@ -2981,6 +3361,33 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
2981
3361
  }, z.core.$strip>;
2982
3362
  }, z.core.$strip>, z.ZodObject<{
2983
3363
  formula: z.ZodObject<{
3364
+ origin: z.ZodOptional<z.ZodEnum<{
3365
+ chart: "chart";
3366
+ diagram: "diagram";
3367
+ table: "table";
3368
+ image: "image";
3369
+ notes: "notes";
3370
+ body: "body";
3371
+ }>>;
3372
+ interpretation: z.ZodOptional<z.ZodObject<{
3373
+ transcript: z.ZodOptional<z.ZodObject<{
3374
+ text: z.ZodString;
3375
+ confidence: z.ZodEnum<{
3376
+ high: "high";
3377
+ medium: "medium";
3378
+ low: "low";
3379
+ }>;
3380
+ mechanism: z.ZodEnum<{
3381
+ deterministic: "deterministic";
3382
+ model: "model";
3383
+ }>;
3384
+ }, z.core.$strip>>;
3385
+ description: z.ZodOptional<z.ZodString>;
3386
+ by: z.ZodOptional<z.ZodObject<{
3387
+ model: z.ZodString;
3388
+ at: z.ZodString;
3389
+ }, z.core.$strip>>;
3390
+ }, z.core.$strip>>;
2984
3391
  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>>>;
2985
3392
  starMath: z.ZodOptional<z.ZodString>;
2986
3393
  presentation: z.ZodOptional<z.ZodObject<{
package/dist/codec.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as epubContentCodec, i as epubCodec, n as decodePackage, o as packageCodec, r as encodePackage, t as EpubBytesSchema } from "./codec-D1d9aS27.cjs";
1
+ import { a as epubContentCodec, i as epubCodec, n as decodePackage, o as packageCodec, r as encodePackage, t as EpubBytesSchema } from "./codec-C-4UJ78w.cjs";
2
2
  export { EpubBytesSchema, decodePackage, encodePackage, epubCodec, epubContentCodec, packageCodec };
package/dist/codec.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as epubContentCodec, i as epubCodec, n as decodePackage, o as packageCodec, r as encodePackage, t as EpubBytesSchema } from "./codec-CPAZbRZe.js";
1
+ import { a as epubContentCodec, i as epubCodec, n as decodePackage, o as packageCodec, r as encodePackage, t as EpubBytesSchema } from "./codec-DpvZLWRM.js";
2
2
  export { EpubBytesSchema, decodePackage, encodePackage, epubCodec, epubContentCodec, packageCodec };
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { n as OCF_CONTAINER_PATH, r as OCF_MIMETYPE_PATH, t as EPUB_MIME_TYPE } from "./format-DxUddUPj.cjs";
2
2
  import { n as unzipPackage, r as zipPackage, t as ZipEntry } from "./zip-ie17sOo5.cjs";
3
- import { _ as XmlPart, a as epubContentCodec, c as serializePackage, d as BinaryPart, f as BinaryPartSchema, g as PartSchema, h as Part, i as epubCodec, l as packageFromEntries, m as EpubPackageSchema, n as decodePackage, o as packageCodec, p as EpubPackage, r as encodePackage, s as packageToEntries, t as EpubBytesSchema, u as parsePackage, v as XmlPartSchema } from "./codec-D1d9aS27.cjs";
3
+ import { _ as XmlPart, a as epubContentCodec, c as serializePackage, d as BinaryPart, f as BinaryPartSchema, g as PartSchema, h as Part, i as epubCodec, l as packageFromEntries, m as EpubPackageSchema, n as decodePackage, o as packageCodec, p as EpubPackage, r as encodePackage, s as packageToEntries, t as EpubBytesSchema, u as parsePackage, v as XmlPartSchema } from "./codec-C-4UJ78w.cjs";
4
4
  import { a as EpubEmptySpineError, c as EpubInvalidOpfError, d as EpubUnbalancedConstructMarkersError, f as EpubUnsupportedDocumentKindError, i as EpubDiagnosticSink, l as EpubPackageFlattenError, m as NOOP_EPUB_DIAGNOSTIC_SINK, n as EpubDiagnosticCodes, o as EpubInvalidContainerError, p as EpubWriteError, r as EpubDiagnosticSeverity, s as EpubInvalidMimetypeError, t as EpubDiagnostic, u as EpubParseError } from "./diagnostics-C0CRdoda.cjs";
5
5
  import { t as resolveOpfPath } from "./container-B6cHHiY9.cjs";
6
6
  import { n as OpfPackage, r as OpfSpineItemRef, t as OpfManifestItem } from "./types-BxmkPT_F.cjs";
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { n as OCF_CONTAINER_PATH, r as OCF_MIMETYPE_PATH, t as EPUB_MIME_TYPE } from "./format-DxUddUPj.js";
2
2
  import { n as unzipPackage, r as zipPackage, t as ZipEntry } from "./zip-ie17sOo5.js";
3
- import { _ as XmlPart, a as epubContentCodec, c as serializePackage, d as BinaryPart, f as BinaryPartSchema, g as PartSchema, h as Part, i as epubCodec, l as packageFromEntries, m as EpubPackageSchema, n as decodePackage, o as packageCodec, p as EpubPackage, r as encodePackage, s as packageToEntries, t as EpubBytesSchema, u as parsePackage, v as XmlPartSchema } from "./codec-CPAZbRZe.js";
3
+ import { _ as XmlPart, a as epubContentCodec, c as serializePackage, d as BinaryPart, f as BinaryPartSchema, g as PartSchema, h as Part, i as epubCodec, l as packageFromEntries, m as EpubPackageSchema, n as decodePackage, o as packageCodec, p as EpubPackage, r as encodePackage, s as packageToEntries, t as EpubBytesSchema, u as parsePackage, v as XmlPartSchema } from "./codec-DpvZLWRM.js";
4
4
  import { a as EpubEmptySpineError, c as EpubInvalidOpfError, d as EpubUnbalancedConstructMarkersError, f as EpubUnsupportedDocumentKindError, i as EpubDiagnosticSink, l as EpubPackageFlattenError, m as NOOP_EPUB_DIAGNOSTIC_SINK, n as EpubDiagnosticCodes, o as EpubInvalidContainerError, p as EpubWriteError, r as EpubDiagnosticSeverity, s as EpubInvalidMimetypeError, t as EpubDiagnostic, u as EpubParseError } from "./diagnostics-C0CRdoda.js";
5
5
  import { t as resolveOpfPath } from "./container-B6cHHiY9.js";
6
6
  import { n as OpfPackage, r as OpfSpineItemRef, t as OpfManifestItem } from "./types-BxmkPT_F.js";
@@ -1,2 +1,2 @@
1
- import { _ as XmlPart, d as BinaryPart, f as BinaryPartSchema, g as PartSchema, h as Part, m as EpubPackageSchema, p as EpubPackage, v as XmlPartSchema } from "../codec-D1d9aS27.cjs";
1
+ import { _ as XmlPart, d as BinaryPart, f as BinaryPartSchema, g as PartSchema, h as Part, m as EpubPackageSchema, p as EpubPackage, v as XmlPartSchema } from "../codec-C-4UJ78w.cjs";
2
2
  export { BinaryPart, BinaryPartSchema, EpubPackage, EpubPackageSchema, Part, PartSchema, XmlPart, XmlPartSchema };
@@ -1,2 +1,2 @@
1
- import { _ as XmlPart, d as BinaryPart, f as BinaryPartSchema, g as PartSchema, h as Part, m as EpubPackageSchema, p as EpubPackage, v as XmlPartSchema } from "../codec-CPAZbRZe.js";
1
+ import { _ as XmlPart, d as BinaryPart, f as BinaryPartSchema, g as PartSchema, h as Part, m as EpubPackageSchema, p as EpubPackage, v as XmlPartSchema } from "../codec-DpvZLWRM.js";
2
2
  export { BinaryPart, BinaryPartSchema, EpubPackage, EpubPackageSchema, Part, PartSchema, XmlPart, XmlPartSchema };
@@ -1,2 +1,2 @@
1
- import { l as packageFromEntries, u as parsePackage } from "../codec-D1d9aS27.cjs";
1
+ import { l as packageFromEntries, u as parsePackage } from "../codec-C-4UJ78w.cjs";
2
2
  export { packageFromEntries, parsePackage };
@@ -1,2 +1,2 @@
1
- import { l as packageFromEntries, u as parsePackage } from "../codec-CPAZbRZe.js";
1
+ import { l as packageFromEntries, u as parsePackage } from "../codec-DpvZLWRM.js";
2
2
  export { packageFromEntries, parsePackage };
@@ -1,2 +1,2 @@
1
- import { c as serializePackage, s as packageToEntries } from "../codec-D1d9aS27.cjs";
1
+ import { c as serializePackage, s as packageToEntries } from "../codec-C-4UJ78w.cjs";
2
2
  export { packageToEntries, serializePackage };
@@ -1,2 +1,2 @@
1
- import { c as serializePackage, s as packageToEntries } from "../codec-CPAZbRZe.js";
1
+ import { c as serializePackage, s as packageToEntries } from "../codec-DpvZLWRM.js";
2
2
  export { packageToEntries, serializePackage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "epub-codec",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "EPUB 2/3 reading and deterministic EPUB 3 writing against the shared document-schema.js content pivot.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -78,7 +78,7 @@
78
78
  "license": "MIT",
79
79
  "packageManager": "pnpm@11.6.0",
80
80
  "dependencies": {
81
- "document-schema.js": "7.7.0",
81
+ "document-schema.js": "7.8.0",
82
82
  "entities": "8.0.0",
83
83
  "fast-xml-parser": "5.10.1",
84
84
  "fflate": "0.8.3",