document-content-model 7.6.1 → 7.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/codec.d.cts +1 -1
  2. package/dist/codec.d.ts +1 -1
  3. package/dist/{construct-C9cYkjnd.d.cts → construct-GVdTKrE7.d.cts} +3 -3
  4. package/dist/{construct-C9cYkjnd.d.ts → construct-GVdTKrE7.d.ts} +3 -3
  5. package/dist/construct.d.cts +1 -1
  6. package/dist/construct.d.ts +1 -1
  7. package/dist/{content-PPcQWl8e.d.ts → content-DAc4O272.d.ts} +1934 -87
  8. package/dist/{content-JIKLIrji.d.cts → content-SgKmas45.d.cts} +1934 -87
  9. package/dist/content-json-schema-defs.cjs +158 -15
  10. package/dist/content-json-schema-defs.js +158 -15
  11. package/dist/content.cjs +106 -27
  12. package/dist/content.d.cts +2 -2
  13. package/dist/content.d.ts +2 -2
  14. package/dist/content.js +98 -28
  15. package/dist/decompose.d.cts +2 -2
  16. package/dist/decompose.d.ts +2 -2
  17. package/dist/definitions.cjs +1 -10
  18. package/dist/definitions.d.cts +1 -1
  19. package/dist/definitions.d.ts +1 -1
  20. package/dist/definitions.js +2 -11
  21. package/dist/factor-styles.cjs +1 -0
  22. package/dist/factor-styles.d.cts +1 -1
  23. package/dist/factor-styles.d.ts +1 -1
  24. package/dist/factor-styles.js +1 -0
  25. package/dist/flatten.cjs +1 -0
  26. package/dist/flatten.d.cts +1 -1
  27. package/dist/flatten.d.ts +1 -1
  28. package/dist/flatten.js +1 -0
  29. package/dist/index.cjs +9 -0
  30. package/dist/index.d.cts +4 -4
  31. package/dist/index.d.ts +4 -4
  32. package/dist/index.js +2 -2
  33. package/dist/{package-node-B4CHgiVQ.d.ts → package-node-BnFUnaa0.d.ts} +359 -49
  34. package/dist/{package-node-duDMdOvH.d.cts → package-node-DnUyGT61.d.cts} +359 -49
  35. package/dist/package-node.d.cts +1 -1
  36. package/dist/package-node.d.ts +1 -1
  37. package/dist/package.cjs +1 -0
  38. package/dist/package.d.cts +33 -1
  39. package/dist/package.d.ts +33 -1
  40. package/dist/package.js +2 -1
  41. package/dist/schema-io.cjs +2 -2
  42. package/dist/schema-io.d.cts +1 -1
  43. package/dist/schema-io.d.ts +1 -1
  44. package/dist/schema-io.js +2 -2
  45. package/package.json +1 -1
  46. package/schemas/content-document.schema.json +1296 -13
  47. package/schemas/document-tree.schema.json +292 -3
@@ -361,7 +361,9 @@ const CONTENT_DEFS = {
361
361
  frames: {
362
362
  type: "array",
363
363
  items: { $ref: "#/$defs/LayoutFrame" }
364
- }
364
+ },
365
+ origin: { $ref: "#/$defs/ContentOrigin" },
366
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
365
367
  },
366
368
  required: ["text"],
367
369
  additionalProperties: false
@@ -434,7 +436,9 @@ const CONTENT_DEFS = {
434
436
  frames: {
435
437
  type: "array",
436
438
  items: { $ref: "#/$defs/LayoutFrame" }
437
- }
439
+ },
440
+ origin: { $ref: "#/$defs/ContentOrigin" },
441
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
438
442
  },
439
443
  required: ["kind", "runs"],
440
444
  additionalProperties: false
@@ -495,6 +499,70 @@ const CONTENT_DEFS = {
495
499
  required: ["horizontal", "vertical"],
496
500
  additionalProperties: false
497
501
  },
502
+ ContentOrigin: {
503
+ type: "string",
504
+ enum: [
505
+ "chart",
506
+ "diagram",
507
+ "table",
508
+ "image",
509
+ "notes",
510
+ "body"
511
+ ]
512
+ },
513
+ ContentInterpretation: {
514
+ type: "object",
515
+ properties: {
516
+ transcript: {
517
+ type: "object",
518
+ properties: {
519
+ text: { type: "string" },
520
+ confidence: {
521
+ type: "string",
522
+ enum: [
523
+ "high",
524
+ "medium",
525
+ "low"
526
+ ]
527
+ },
528
+ mechanism: {
529
+ type: "string",
530
+ enum: ["deterministic", "model"]
531
+ }
532
+ },
533
+ required: [
534
+ "text",
535
+ "confidence",
536
+ "mechanism"
537
+ ],
538
+ additionalProperties: false
539
+ },
540
+ description: { type: "string" },
541
+ by: {
542
+ type: "object",
543
+ properties: {
544
+ model: { type: "string" },
545
+ at: { type: "string" }
546
+ },
547
+ required: ["model", "at"],
548
+ additionalProperties: false
549
+ }
550
+ },
551
+ additionalProperties: false
552
+ },
553
+ ContentImageOriginal: {
554
+ type: "object",
555
+ properties: {
556
+ filter: {
557
+ type: "string",
558
+ enum: ["jbig2", "jpeg2000"]
559
+ },
560
+ base64: { type: "string" },
561
+ jbig2GlobalsBase64: { type: "string" }
562
+ },
563
+ required: ["filter", "base64"],
564
+ additionalProperties: false
565
+ },
498
566
  ContentImageBlock: {
499
567
  type: "object",
500
568
  properties: {
@@ -521,13 +589,26 @@ const CONTENT_DEFS = {
521
589
  exclusiveMinimum: 0
522
590
  },
523
591
  altText: { type: "string" },
592
+ original: { $ref: "#/$defs/ContentImageOriginal" },
593
+ anchorRunIndex: {
594
+ type: "integer",
595
+ minimum: 0,
596
+ maximum: MAX_SAFE_INTEGER
597
+ },
598
+ anchorOffset: {
599
+ type: "integer",
600
+ minimum: 0,
601
+ maximum: MAX_SAFE_INTEGER
602
+ },
524
603
  floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
525
604
  sourcePath: { type: "string" },
526
605
  source: { $ref: "#/$defs/SourceResidue" },
527
606
  frames: {
528
607
  type: "array",
529
608
  items: { $ref: "#/$defs/LayoutFrame" }
530
- }
609
+ },
610
+ origin: { $ref: "#/$defs/ContentOrigin" },
611
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
531
612
  },
532
613
  required: [
533
614
  "kind",
@@ -550,7 +631,9 @@ const CONTENT_DEFS = {
550
631
  frames: {
551
632
  type: "array",
552
633
  items: { $ref: "#/$defs/LayoutFrame" }
553
- }
634
+ },
635
+ origin: { $ref: "#/$defs/ContentOrigin" },
636
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
554
637
  },
555
638
  required: ["kind"],
556
639
  additionalProperties: false
@@ -588,7 +671,9 @@ const CONTENT_DEFS = {
588
671
  frames: {
589
672
  type: "array",
590
673
  items: { $ref: "#/$defs/LayoutFrame" }
591
- }
674
+ },
675
+ origin: { $ref: "#/$defs/ContentOrigin" },
676
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
592
677
  },
593
678
  required: ["blocks"],
594
679
  additionalProperties: false
@@ -635,7 +720,9 @@ const CONTENT_DEFS = {
635
720
  frames: {
636
721
  type: "array",
637
722
  items: { $ref: "#/$defs/LayoutFrame" }
638
- }
723
+ },
724
+ origin: { $ref: "#/$defs/ContentOrigin" },
725
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
639
726
  },
640
727
  required: [
641
728
  "kind",
@@ -781,6 +868,8 @@ const CONTENT_DEFS = {
781
868
  headers: { $ref: "#/$defs/ContentPageFurniture" },
782
869
  footers: { $ref: "#/$defs/ContentPageFurniture" },
783
870
  source: { $ref: "#/$defs/SourceResidue" },
871
+ origin: { $ref: "#/$defs/ContentOrigin" },
872
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
784
873
  kind: {
785
874
  type: "string",
786
875
  const: "section"
@@ -817,6 +906,8 @@ const CONTENT_DEFS = {
817
906
  size: { $ref: "#/$defs/PageSize" },
818
907
  notes: { type: "string" },
819
908
  source: { $ref: "#/$defs/SourceResidue" },
909
+ origin: { $ref: "#/$defs/ContentOrigin" },
910
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
820
911
  kind: {
821
912
  type: "string",
822
913
  const: "slide"
@@ -855,6 +946,8 @@ const CONTENT_DEFS = {
855
946
  items: { $ref: "#/$defs/ContentSheetConditionalFormat" }
856
947
  },
857
948
  source: { $ref: "#/$defs/SourceResidue" },
949
+ origin: { $ref: "#/$defs/ContentOrigin" },
950
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
858
951
  kind: {
859
952
  type: "string",
860
953
  const: "sheet"
@@ -875,6 +968,8 @@ const CONTENT_DEFS = {
875
968
  properties: {
876
969
  size: { $ref: "#/$defs/PageSize" },
877
970
  source: { $ref: "#/$defs/SourceResidue" },
971
+ origin: { $ref: "#/$defs/ContentOrigin" },
972
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
878
973
  kind: {
879
974
  type: "string",
880
975
  const: "drawPage"
@@ -919,7 +1014,9 @@ const CONTENT_DEFS = {
919
1014
  frames: {
920
1015
  type: "array",
921
1016
  items: { $ref: "#/$defs/LayoutFrame" }
922
- }
1017
+ },
1018
+ origin: { $ref: "#/$defs/ContentOrigin" },
1019
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
923
1020
  },
924
1021
  required: [
925
1022
  "frame",
@@ -976,7 +1073,9 @@ const CONTENT_DEFS = {
976
1073
  frames: {
977
1074
  type: "array",
978
1075
  items: { $ref: "#/$defs/LayoutFrame" }
979
- }
1076
+ },
1077
+ origin: { $ref: "#/$defs/ContentOrigin" },
1078
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
980
1079
  },
981
1080
  required: [
982
1081
  "kind",
@@ -1031,7 +1130,9 @@ const CONTENT_DEFS = {
1031
1130
  frames: {
1032
1131
  type: "array",
1033
1132
  items: { $ref: "#/$defs/LayoutFrame" }
1034
- }
1133
+ },
1134
+ origin: { $ref: "#/$defs/ContentOrigin" },
1135
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
1035
1136
  },
1036
1137
  required: [
1037
1138
  "kind",
@@ -1040,6 +1141,22 @@ const CONTENT_DEFS = {
1040
1141
  ],
1041
1142
  additionalProperties: false
1042
1143
  },
1144
+ ContentFont: {
1145
+ type: "object",
1146
+ properties: {
1147
+ bold: { type: "boolean" },
1148
+ italic: { type: "boolean" },
1149
+ underline: { type: "boolean" },
1150
+ strike: { type: "boolean" },
1151
+ fontFamily: { type: "string" },
1152
+ sizePt: {
1153
+ type: "number",
1154
+ exclusiveMinimum: 0
1155
+ },
1156
+ color: { $ref: "#/$defs/Color" }
1157
+ },
1158
+ additionalProperties: false
1159
+ },
1043
1160
  ContentSheetCell: {
1044
1161
  type: "object",
1045
1162
  properties: {
@@ -1057,6 +1174,7 @@ const CONTENT_DEFS = {
1057
1174
  formula: { type: "string" },
1058
1175
  displayText: { type: "string" },
1059
1176
  numberFormatCode: { type: "string" },
1177
+ font: { $ref: "#/$defs/ContentFont" },
1060
1178
  runs: {
1061
1179
  type: "array",
1062
1180
  items: { $ref: "#/$defs/ContentRun" }
@@ -1088,7 +1206,9 @@ const CONTENT_DEFS = {
1088
1206
  frames: {
1089
1207
  type: "array",
1090
1208
  items: { $ref: "#/$defs/LayoutFrame" }
1091
- }
1209
+ },
1210
+ origin: { $ref: "#/$defs/ContentOrigin" },
1211
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
1092
1212
  },
1093
1213
  required: [
1094
1214
  "row",
@@ -1854,6 +1974,17 @@ const CONTENT_DEFS = {
1854
1974
  exclusiveMinimum: 0
1855
1975
  },
1856
1976
  altText: { type: "string" },
1977
+ original: { $ref: "#/$defs/ContentImageOriginal" },
1978
+ anchorRunIndex: {
1979
+ type: "integer",
1980
+ minimum: 0,
1981
+ maximum: MAX_SAFE_INTEGER
1982
+ },
1983
+ anchorOffset: {
1984
+ type: "integer",
1985
+ minimum: 0,
1986
+ maximum: MAX_SAFE_INTEGER
1987
+ },
1857
1988
  floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
1858
1989
  sourcePath: { type: "string" },
1859
1990
  source: { $ref: "#/$defs/SourceResidue" },
@@ -1861,6 +1992,8 @@ const CONTENT_DEFS = {
1861
1992
  type: "array",
1862
1993
  items: { $ref: "#/$defs/LayoutFrame" }
1863
1994
  },
1995
+ origin: { $ref: "#/$defs/ContentOrigin" },
1996
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
1864
1997
  anchorRow: {
1865
1998
  type: "integer",
1866
1999
  minimum: 0,
@@ -2111,7 +2244,9 @@ const CONTENT_DEFS = {
2111
2244
  frames: {
2112
2245
  type: "array",
2113
2246
  items: { $ref: "#/$defs/LayoutFrame" }
2114
- }
2247
+ },
2248
+ origin: { $ref: "#/$defs/ContentOrigin" },
2249
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2115
2250
  },
2116
2251
  required: ["kind", "frame"],
2117
2252
  additionalProperties: false
@@ -2139,7 +2274,9 @@ const CONTENT_DEFS = {
2139
2274
  frames: {
2140
2275
  type: "array",
2141
2276
  items: { $ref: "#/$defs/LayoutFrame" }
2142
- }
2277
+ },
2278
+ origin: { $ref: "#/$defs/ContentOrigin" },
2279
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2143
2280
  },
2144
2281
  required: ["kind", "frame"],
2145
2282
  additionalProperties: false
@@ -2160,7 +2297,9 @@ const CONTENT_DEFS = {
2160
2297
  frames: {
2161
2298
  type: "array",
2162
2299
  items: { $ref: "#/$defs/LayoutFrame" }
2163
- }
2300
+ },
2301
+ origin: { $ref: "#/$defs/ContentOrigin" },
2302
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2164
2303
  },
2165
2304
  required: [
2166
2305
  "kind",
@@ -2201,7 +2340,9 @@ const CONTENT_DEFS = {
2201
2340
  frames: {
2202
2341
  type: "array",
2203
2342
  items: { $ref: "#/$defs/LayoutFrame" }
2204
- }
2343
+ },
2344
+ origin: { $ref: "#/$defs/ContentOrigin" },
2345
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2205
2346
  },
2206
2347
  required: [
2207
2348
  "kind",
@@ -2636,7 +2777,9 @@ const CONTENT_DEFS = {
2636
2777
  presentation: { $ref: "#/$defs/MathPresentation" },
2637
2778
  content: { $ref: "#/$defs/MathExpression" },
2638
2779
  provenance: { $ref: "#/$defs/MathProvenance" },
2639
- source: { $ref: "#/$defs/SourceResidue" }
2780
+ source: { $ref: "#/$defs/SourceResidue" },
2781
+ origin: { $ref: "#/$defs/ContentOrigin" },
2782
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2640
2783
  },
2641
2784
  required: ["mathml"],
2642
2785
  additionalProperties: false
@@ -360,7 +360,9 @@ const CONTENT_DEFS = {
360
360
  frames: {
361
361
  type: "array",
362
362
  items: { $ref: "#/$defs/LayoutFrame" }
363
- }
363
+ },
364
+ origin: { $ref: "#/$defs/ContentOrigin" },
365
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
364
366
  },
365
367
  required: ["text"],
366
368
  additionalProperties: false
@@ -433,7 +435,9 @@ const CONTENT_DEFS = {
433
435
  frames: {
434
436
  type: "array",
435
437
  items: { $ref: "#/$defs/LayoutFrame" }
436
- }
438
+ },
439
+ origin: { $ref: "#/$defs/ContentOrigin" },
440
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
437
441
  },
438
442
  required: ["kind", "runs"],
439
443
  additionalProperties: false
@@ -494,6 +498,70 @@ const CONTENT_DEFS = {
494
498
  required: ["horizontal", "vertical"],
495
499
  additionalProperties: false
496
500
  },
501
+ ContentOrigin: {
502
+ type: "string",
503
+ enum: [
504
+ "chart",
505
+ "diagram",
506
+ "table",
507
+ "image",
508
+ "notes",
509
+ "body"
510
+ ]
511
+ },
512
+ ContentInterpretation: {
513
+ type: "object",
514
+ properties: {
515
+ transcript: {
516
+ type: "object",
517
+ properties: {
518
+ text: { type: "string" },
519
+ confidence: {
520
+ type: "string",
521
+ enum: [
522
+ "high",
523
+ "medium",
524
+ "low"
525
+ ]
526
+ },
527
+ mechanism: {
528
+ type: "string",
529
+ enum: ["deterministic", "model"]
530
+ }
531
+ },
532
+ required: [
533
+ "text",
534
+ "confidence",
535
+ "mechanism"
536
+ ],
537
+ additionalProperties: false
538
+ },
539
+ description: { type: "string" },
540
+ by: {
541
+ type: "object",
542
+ properties: {
543
+ model: { type: "string" },
544
+ at: { type: "string" }
545
+ },
546
+ required: ["model", "at"],
547
+ additionalProperties: false
548
+ }
549
+ },
550
+ additionalProperties: false
551
+ },
552
+ ContentImageOriginal: {
553
+ type: "object",
554
+ properties: {
555
+ filter: {
556
+ type: "string",
557
+ enum: ["jbig2", "jpeg2000"]
558
+ },
559
+ base64: { type: "string" },
560
+ jbig2GlobalsBase64: { type: "string" }
561
+ },
562
+ required: ["filter", "base64"],
563
+ additionalProperties: false
564
+ },
497
565
  ContentImageBlock: {
498
566
  type: "object",
499
567
  properties: {
@@ -520,13 +588,26 @@ const CONTENT_DEFS = {
520
588
  exclusiveMinimum: 0
521
589
  },
522
590
  altText: { type: "string" },
591
+ original: { $ref: "#/$defs/ContentImageOriginal" },
592
+ anchorRunIndex: {
593
+ type: "integer",
594
+ minimum: 0,
595
+ maximum: MAX_SAFE_INTEGER
596
+ },
597
+ anchorOffset: {
598
+ type: "integer",
599
+ minimum: 0,
600
+ maximum: MAX_SAFE_INTEGER
601
+ },
523
602
  floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
524
603
  sourcePath: { type: "string" },
525
604
  source: { $ref: "#/$defs/SourceResidue" },
526
605
  frames: {
527
606
  type: "array",
528
607
  items: { $ref: "#/$defs/LayoutFrame" }
529
- }
608
+ },
609
+ origin: { $ref: "#/$defs/ContentOrigin" },
610
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
530
611
  },
531
612
  required: [
532
613
  "kind",
@@ -549,7 +630,9 @@ const CONTENT_DEFS = {
549
630
  frames: {
550
631
  type: "array",
551
632
  items: { $ref: "#/$defs/LayoutFrame" }
552
- }
633
+ },
634
+ origin: { $ref: "#/$defs/ContentOrigin" },
635
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
553
636
  },
554
637
  required: ["kind"],
555
638
  additionalProperties: false
@@ -587,7 +670,9 @@ const CONTENT_DEFS = {
587
670
  frames: {
588
671
  type: "array",
589
672
  items: { $ref: "#/$defs/LayoutFrame" }
590
- }
673
+ },
674
+ origin: { $ref: "#/$defs/ContentOrigin" },
675
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
591
676
  },
592
677
  required: ["blocks"],
593
678
  additionalProperties: false
@@ -634,7 +719,9 @@ const CONTENT_DEFS = {
634
719
  frames: {
635
720
  type: "array",
636
721
  items: { $ref: "#/$defs/LayoutFrame" }
637
- }
722
+ },
723
+ origin: { $ref: "#/$defs/ContentOrigin" },
724
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
638
725
  },
639
726
  required: [
640
727
  "kind",
@@ -780,6 +867,8 @@ const CONTENT_DEFS = {
780
867
  headers: { $ref: "#/$defs/ContentPageFurniture" },
781
868
  footers: { $ref: "#/$defs/ContentPageFurniture" },
782
869
  source: { $ref: "#/$defs/SourceResidue" },
870
+ origin: { $ref: "#/$defs/ContentOrigin" },
871
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
783
872
  kind: {
784
873
  type: "string",
785
874
  const: "section"
@@ -816,6 +905,8 @@ const CONTENT_DEFS = {
816
905
  size: { $ref: "#/$defs/PageSize" },
817
906
  notes: { type: "string" },
818
907
  source: { $ref: "#/$defs/SourceResidue" },
908
+ origin: { $ref: "#/$defs/ContentOrigin" },
909
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
819
910
  kind: {
820
911
  type: "string",
821
912
  const: "slide"
@@ -854,6 +945,8 @@ const CONTENT_DEFS = {
854
945
  items: { $ref: "#/$defs/ContentSheetConditionalFormat" }
855
946
  },
856
947
  source: { $ref: "#/$defs/SourceResidue" },
948
+ origin: { $ref: "#/$defs/ContentOrigin" },
949
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
857
950
  kind: {
858
951
  type: "string",
859
952
  const: "sheet"
@@ -874,6 +967,8 @@ const CONTENT_DEFS = {
874
967
  properties: {
875
968
  size: { $ref: "#/$defs/PageSize" },
876
969
  source: { $ref: "#/$defs/SourceResidue" },
970
+ origin: { $ref: "#/$defs/ContentOrigin" },
971
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
877
972
  kind: {
878
973
  type: "string",
879
974
  const: "drawPage"
@@ -918,7 +1013,9 @@ const CONTENT_DEFS = {
918
1013
  frames: {
919
1014
  type: "array",
920
1015
  items: { $ref: "#/$defs/LayoutFrame" }
921
- }
1016
+ },
1017
+ origin: { $ref: "#/$defs/ContentOrigin" },
1018
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
922
1019
  },
923
1020
  required: [
924
1021
  "frame",
@@ -975,7 +1072,9 @@ const CONTENT_DEFS = {
975
1072
  frames: {
976
1073
  type: "array",
977
1074
  items: { $ref: "#/$defs/LayoutFrame" }
978
- }
1075
+ },
1076
+ origin: { $ref: "#/$defs/ContentOrigin" },
1077
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
979
1078
  },
980
1079
  required: [
981
1080
  "kind",
@@ -1030,7 +1129,9 @@ const CONTENT_DEFS = {
1030
1129
  frames: {
1031
1130
  type: "array",
1032
1131
  items: { $ref: "#/$defs/LayoutFrame" }
1033
- }
1132
+ },
1133
+ origin: { $ref: "#/$defs/ContentOrigin" },
1134
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
1034
1135
  },
1035
1136
  required: [
1036
1137
  "kind",
@@ -1039,6 +1140,22 @@ const CONTENT_DEFS = {
1039
1140
  ],
1040
1141
  additionalProperties: false
1041
1142
  },
1143
+ ContentFont: {
1144
+ type: "object",
1145
+ properties: {
1146
+ bold: { type: "boolean" },
1147
+ italic: { type: "boolean" },
1148
+ underline: { type: "boolean" },
1149
+ strike: { type: "boolean" },
1150
+ fontFamily: { type: "string" },
1151
+ sizePt: {
1152
+ type: "number",
1153
+ exclusiveMinimum: 0
1154
+ },
1155
+ color: { $ref: "#/$defs/Color" }
1156
+ },
1157
+ additionalProperties: false
1158
+ },
1042
1159
  ContentSheetCell: {
1043
1160
  type: "object",
1044
1161
  properties: {
@@ -1056,6 +1173,7 @@ const CONTENT_DEFS = {
1056
1173
  formula: { type: "string" },
1057
1174
  displayText: { type: "string" },
1058
1175
  numberFormatCode: { type: "string" },
1176
+ font: { $ref: "#/$defs/ContentFont" },
1059
1177
  runs: {
1060
1178
  type: "array",
1061
1179
  items: { $ref: "#/$defs/ContentRun" }
@@ -1087,7 +1205,9 @@ const CONTENT_DEFS = {
1087
1205
  frames: {
1088
1206
  type: "array",
1089
1207
  items: { $ref: "#/$defs/LayoutFrame" }
1090
- }
1208
+ },
1209
+ origin: { $ref: "#/$defs/ContentOrigin" },
1210
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
1091
1211
  },
1092
1212
  required: [
1093
1213
  "row",
@@ -1853,6 +1973,17 @@ const CONTENT_DEFS = {
1853
1973
  exclusiveMinimum: 0
1854
1974
  },
1855
1975
  altText: { type: "string" },
1976
+ original: { $ref: "#/$defs/ContentImageOriginal" },
1977
+ anchorRunIndex: {
1978
+ type: "integer",
1979
+ minimum: 0,
1980
+ maximum: MAX_SAFE_INTEGER
1981
+ },
1982
+ anchorOffset: {
1983
+ type: "integer",
1984
+ minimum: 0,
1985
+ maximum: MAX_SAFE_INTEGER
1986
+ },
1856
1987
  floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
1857
1988
  sourcePath: { type: "string" },
1858
1989
  source: { $ref: "#/$defs/SourceResidue" },
@@ -1860,6 +1991,8 @@ const CONTENT_DEFS = {
1860
1991
  type: "array",
1861
1992
  items: { $ref: "#/$defs/LayoutFrame" }
1862
1993
  },
1994
+ origin: { $ref: "#/$defs/ContentOrigin" },
1995
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
1863
1996
  anchorRow: {
1864
1997
  type: "integer",
1865
1998
  minimum: 0,
@@ -2110,7 +2243,9 @@ const CONTENT_DEFS = {
2110
2243
  frames: {
2111
2244
  type: "array",
2112
2245
  items: { $ref: "#/$defs/LayoutFrame" }
2113
- }
2246
+ },
2247
+ origin: { $ref: "#/$defs/ContentOrigin" },
2248
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2114
2249
  },
2115
2250
  required: ["kind", "frame"],
2116
2251
  additionalProperties: false
@@ -2138,7 +2273,9 @@ const CONTENT_DEFS = {
2138
2273
  frames: {
2139
2274
  type: "array",
2140
2275
  items: { $ref: "#/$defs/LayoutFrame" }
2141
- }
2276
+ },
2277
+ origin: { $ref: "#/$defs/ContentOrigin" },
2278
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2142
2279
  },
2143
2280
  required: ["kind", "frame"],
2144
2281
  additionalProperties: false
@@ -2159,7 +2296,9 @@ const CONTENT_DEFS = {
2159
2296
  frames: {
2160
2297
  type: "array",
2161
2298
  items: { $ref: "#/$defs/LayoutFrame" }
2162
- }
2299
+ },
2300
+ origin: { $ref: "#/$defs/ContentOrigin" },
2301
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2163
2302
  },
2164
2303
  required: [
2165
2304
  "kind",
@@ -2200,7 +2339,9 @@ const CONTENT_DEFS = {
2200
2339
  frames: {
2201
2340
  type: "array",
2202
2341
  items: { $ref: "#/$defs/LayoutFrame" }
2203
- }
2342
+ },
2343
+ origin: { $ref: "#/$defs/ContentOrigin" },
2344
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2204
2345
  },
2205
2346
  required: [
2206
2347
  "kind",
@@ -2635,7 +2776,9 @@ const CONTENT_DEFS = {
2635
2776
  presentation: { $ref: "#/$defs/MathPresentation" },
2636
2777
  content: { $ref: "#/$defs/MathExpression" },
2637
2778
  provenance: { $ref: "#/$defs/MathProvenance" },
2638
- source: { $ref: "#/$defs/SourceResidue" }
2779
+ source: { $ref: "#/$defs/SourceResidue" },
2780
+ origin: { $ref: "#/$defs/ContentOrigin" },
2781
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2639
2782
  },
2640
2783
  required: ["mathml"],
2641
2784
  additionalProperties: false