document-content-model 7.7.0 → 7.9.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 (45) 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-C4XiF8OW.d.cts} +6 -6
  4. package/dist/{construct-C9cYkjnd.d.ts → construct-C4XiF8OW.d.ts} +6 -6
  5. package/dist/construct.d.cts +1 -1
  6. package/dist/construct.d.ts +1 -1
  7. package/dist/{content-BIM8bWWt.d.ts → content-C1hJ6olW.d.ts} +1753 -47
  8. package/dist/{content-DpsxyPMw.d.cts → content-DN5CqH6Y.d.cts} +1753 -47
  9. package/dist/content-json-schema-defs.cjs +128 -15
  10. package/dist/content-json-schema-defs.js +128 -15
  11. package/dist/content.cjs +71 -17
  12. package/dist/content.d.cts +2 -2
  13. package/dist/content.d.ts +2 -2
  14. package/dist/content.js +68 -18
  15. package/dist/decompose.d.cts +2 -2
  16. package/dist/decompose.d.ts +2 -2
  17. package/dist/definitions.d.cts +4 -4
  18. package/dist/definitions.d.ts +4 -4
  19. package/dist/factor-styles.d.cts +1 -1
  20. package/dist/factor-styles.d.ts +1 -1
  21. package/dist/flatten.d.cts +1 -1
  22. package/dist/flatten.d.ts +1 -1
  23. package/dist/index.cjs +4 -0
  24. package/dist/index.d.cts +5 -5
  25. package/dist/index.d.ts +5 -5
  26. package/dist/index.js +2 -2
  27. package/dist/{package-node-B8LBrCCD.d.ts → package-node-B9aFWtrZ.d.ts} +311 -14
  28. package/dist/{package-node-CENJl5PH.d.cts → package-node-DktLHAKG.d.cts} +311 -14
  29. package/dist/package-node.d.cts +1 -1
  30. package/dist/package-node.d.ts +1 -1
  31. package/dist/package.d.cts +33 -6
  32. package/dist/package.d.ts +33 -6
  33. package/dist/schema-io.cjs +2 -2
  34. package/dist/schema-io.d.cts +1 -1
  35. package/dist/schema-io.d.ts +1 -1
  36. package/dist/schema-io.js +2 -2
  37. package/dist/{style-BGMcYrD2.d.cts → style-D06NwxAJ.d.cts} +1 -1
  38. package/dist/{style-BGMcYrD2.d.ts → style-D06NwxAJ.d.ts} +1 -1
  39. package/dist/style.d.cts +1 -1
  40. package/dist/style.d.ts +1 -1
  41. package/dist/text-layout.d.cts +1 -1
  42. package/dist/text-layout.d.ts +1 -1
  43. package/package.json +1 -1
  44. package/schemas/content-document.schema.json +1147 -13
  45. package/schemas/document-tree.schema.json +214 -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,57 @@ 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
+ },
498
553
  ContentImageOriginal: {
499
554
  type: "object",
500
555
  properties: {
@@ -535,13 +590,26 @@ const CONTENT_DEFS = {
535
590
  },
536
591
  altText: { type: "string" },
537
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
+ },
603
+ caption: { type: "string" },
538
604
  floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
539
605
  sourcePath: { type: "string" },
540
606
  source: { $ref: "#/$defs/SourceResidue" },
541
607
  frames: {
542
608
  type: "array",
543
609
  items: { $ref: "#/$defs/LayoutFrame" }
544
- }
610
+ },
611
+ origin: { $ref: "#/$defs/ContentOrigin" },
612
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
545
613
  },
546
614
  required: [
547
615
  "kind",
@@ -564,7 +632,9 @@ const CONTENT_DEFS = {
564
632
  frames: {
565
633
  type: "array",
566
634
  items: { $ref: "#/$defs/LayoutFrame" }
567
- }
635
+ },
636
+ origin: { $ref: "#/$defs/ContentOrigin" },
637
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
568
638
  },
569
639
  required: ["kind"],
570
640
  additionalProperties: false
@@ -602,7 +672,9 @@ const CONTENT_DEFS = {
602
672
  frames: {
603
673
  type: "array",
604
674
  items: { $ref: "#/$defs/LayoutFrame" }
605
- }
675
+ },
676
+ origin: { $ref: "#/$defs/ContentOrigin" },
677
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
606
678
  },
607
679
  required: ["blocks"],
608
680
  additionalProperties: false
@@ -649,7 +721,9 @@ const CONTENT_DEFS = {
649
721
  frames: {
650
722
  type: "array",
651
723
  items: { $ref: "#/$defs/LayoutFrame" }
652
- }
724
+ },
725
+ origin: { $ref: "#/$defs/ContentOrigin" },
726
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
653
727
  },
654
728
  required: [
655
729
  "kind",
@@ -795,6 +869,8 @@ const CONTENT_DEFS = {
795
869
  headers: { $ref: "#/$defs/ContentPageFurniture" },
796
870
  footers: { $ref: "#/$defs/ContentPageFurniture" },
797
871
  source: { $ref: "#/$defs/SourceResidue" },
872
+ origin: { $ref: "#/$defs/ContentOrigin" },
873
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
798
874
  kind: {
799
875
  type: "string",
800
876
  const: "section"
@@ -831,6 +907,8 @@ const CONTENT_DEFS = {
831
907
  size: { $ref: "#/$defs/PageSize" },
832
908
  notes: { type: "string" },
833
909
  source: { $ref: "#/$defs/SourceResidue" },
910
+ origin: { $ref: "#/$defs/ContentOrigin" },
911
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
834
912
  kind: {
835
913
  type: "string",
836
914
  const: "slide"
@@ -869,6 +947,8 @@ const CONTENT_DEFS = {
869
947
  items: { $ref: "#/$defs/ContentSheetConditionalFormat" }
870
948
  },
871
949
  source: { $ref: "#/$defs/SourceResidue" },
950
+ origin: { $ref: "#/$defs/ContentOrigin" },
951
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
872
952
  kind: {
873
953
  type: "string",
874
954
  const: "sheet"
@@ -889,6 +969,8 @@ const CONTENT_DEFS = {
889
969
  properties: {
890
970
  size: { $ref: "#/$defs/PageSize" },
891
971
  source: { $ref: "#/$defs/SourceResidue" },
972
+ origin: { $ref: "#/$defs/ContentOrigin" },
973
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
892
974
  kind: {
893
975
  type: "string",
894
976
  const: "drawPage"
@@ -933,7 +1015,9 @@ const CONTENT_DEFS = {
933
1015
  frames: {
934
1016
  type: "array",
935
1017
  items: { $ref: "#/$defs/LayoutFrame" }
936
- }
1018
+ },
1019
+ origin: { $ref: "#/$defs/ContentOrigin" },
1020
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
937
1021
  },
938
1022
  required: [
939
1023
  "frame",
@@ -990,7 +1074,9 @@ const CONTENT_DEFS = {
990
1074
  frames: {
991
1075
  type: "array",
992
1076
  items: { $ref: "#/$defs/LayoutFrame" }
993
- }
1077
+ },
1078
+ origin: { $ref: "#/$defs/ContentOrigin" },
1079
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
994
1080
  },
995
1081
  required: [
996
1082
  "kind",
@@ -1045,7 +1131,9 @@ const CONTENT_DEFS = {
1045
1131
  frames: {
1046
1132
  type: "array",
1047
1133
  items: { $ref: "#/$defs/LayoutFrame" }
1048
- }
1134
+ },
1135
+ origin: { $ref: "#/$defs/ContentOrigin" },
1136
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
1049
1137
  },
1050
1138
  required: [
1051
1139
  "kind",
@@ -1119,7 +1207,9 @@ const CONTENT_DEFS = {
1119
1207
  frames: {
1120
1208
  type: "array",
1121
1209
  items: { $ref: "#/$defs/LayoutFrame" }
1122
- }
1210
+ },
1211
+ origin: { $ref: "#/$defs/ContentOrigin" },
1212
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
1123
1213
  },
1124
1214
  required: [
1125
1215
  "row",
@@ -1886,6 +1976,17 @@ const CONTENT_DEFS = {
1886
1976
  },
1887
1977
  altText: { type: "string" },
1888
1978
  original: { $ref: "#/$defs/ContentImageOriginal" },
1979
+ anchorRunIndex: {
1980
+ type: "integer",
1981
+ minimum: 0,
1982
+ maximum: MAX_SAFE_INTEGER
1983
+ },
1984
+ anchorOffset: {
1985
+ type: "integer",
1986
+ minimum: 0,
1987
+ maximum: MAX_SAFE_INTEGER
1988
+ },
1989
+ caption: { type: "string" },
1889
1990
  floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
1890
1991
  sourcePath: { type: "string" },
1891
1992
  source: { $ref: "#/$defs/SourceResidue" },
@@ -1893,6 +1994,8 @@ const CONTENT_DEFS = {
1893
1994
  type: "array",
1894
1995
  items: { $ref: "#/$defs/LayoutFrame" }
1895
1996
  },
1997
+ origin: { $ref: "#/$defs/ContentOrigin" },
1998
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
1896
1999
  anchorRow: {
1897
2000
  type: "integer",
1898
2001
  minimum: 0,
@@ -2143,7 +2246,9 @@ const CONTENT_DEFS = {
2143
2246
  frames: {
2144
2247
  type: "array",
2145
2248
  items: { $ref: "#/$defs/LayoutFrame" }
2146
- }
2249
+ },
2250
+ origin: { $ref: "#/$defs/ContentOrigin" },
2251
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2147
2252
  },
2148
2253
  required: ["kind", "frame"],
2149
2254
  additionalProperties: false
@@ -2171,7 +2276,9 @@ const CONTENT_DEFS = {
2171
2276
  frames: {
2172
2277
  type: "array",
2173
2278
  items: { $ref: "#/$defs/LayoutFrame" }
2174
- }
2279
+ },
2280
+ origin: { $ref: "#/$defs/ContentOrigin" },
2281
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2175
2282
  },
2176
2283
  required: ["kind", "frame"],
2177
2284
  additionalProperties: false
@@ -2192,7 +2299,9 @@ const CONTENT_DEFS = {
2192
2299
  frames: {
2193
2300
  type: "array",
2194
2301
  items: { $ref: "#/$defs/LayoutFrame" }
2195
- }
2302
+ },
2303
+ origin: { $ref: "#/$defs/ContentOrigin" },
2304
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2196
2305
  },
2197
2306
  required: [
2198
2307
  "kind",
@@ -2233,7 +2342,9 @@ const CONTENT_DEFS = {
2233
2342
  frames: {
2234
2343
  type: "array",
2235
2344
  items: { $ref: "#/$defs/LayoutFrame" }
2236
- }
2345
+ },
2346
+ origin: { $ref: "#/$defs/ContentOrigin" },
2347
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2237
2348
  },
2238
2349
  required: [
2239
2350
  "kind",
@@ -2668,7 +2779,9 @@ const CONTENT_DEFS = {
2668
2779
  presentation: { $ref: "#/$defs/MathPresentation" },
2669
2780
  content: { $ref: "#/$defs/MathExpression" },
2670
2781
  provenance: { $ref: "#/$defs/MathProvenance" },
2671
- source: { $ref: "#/$defs/SourceResidue" }
2782
+ source: { $ref: "#/$defs/SourceResidue" },
2783
+ origin: { $ref: "#/$defs/ContentOrigin" },
2784
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2672
2785
  },
2673
2786
  required: ["mathml"],
2674
2787
  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,57 @@ 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
+ },
497
552
  ContentImageOriginal: {
498
553
  type: "object",
499
554
  properties: {
@@ -534,13 +589,26 @@ const CONTENT_DEFS = {
534
589
  },
535
590
  altText: { type: "string" },
536
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
+ },
602
+ caption: { type: "string" },
537
603
  floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
538
604
  sourcePath: { type: "string" },
539
605
  source: { $ref: "#/$defs/SourceResidue" },
540
606
  frames: {
541
607
  type: "array",
542
608
  items: { $ref: "#/$defs/LayoutFrame" }
543
- }
609
+ },
610
+ origin: { $ref: "#/$defs/ContentOrigin" },
611
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
544
612
  },
545
613
  required: [
546
614
  "kind",
@@ -563,7 +631,9 @@ const CONTENT_DEFS = {
563
631
  frames: {
564
632
  type: "array",
565
633
  items: { $ref: "#/$defs/LayoutFrame" }
566
- }
634
+ },
635
+ origin: { $ref: "#/$defs/ContentOrigin" },
636
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
567
637
  },
568
638
  required: ["kind"],
569
639
  additionalProperties: false
@@ -601,7 +671,9 @@ const CONTENT_DEFS = {
601
671
  frames: {
602
672
  type: "array",
603
673
  items: { $ref: "#/$defs/LayoutFrame" }
604
- }
674
+ },
675
+ origin: { $ref: "#/$defs/ContentOrigin" },
676
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
605
677
  },
606
678
  required: ["blocks"],
607
679
  additionalProperties: false
@@ -648,7 +720,9 @@ const CONTENT_DEFS = {
648
720
  frames: {
649
721
  type: "array",
650
722
  items: { $ref: "#/$defs/LayoutFrame" }
651
- }
723
+ },
724
+ origin: { $ref: "#/$defs/ContentOrigin" },
725
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
652
726
  },
653
727
  required: [
654
728
  "kind",
@@ -794,6 +868,8 @@ const CONTENT_DEFS = {
794
868
  headers: { $ref: "#/$defs/ContentPageFurniture" },
795
869
  footers: { $ref: "#/$defs/ContentPageFurniture" },
796
870
  source: { $ref: "#/$defs/SourceResidue" },
871
+ origin: { $ref: "#/$defs/ContentOrigin" },
872
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
797
873
  kind: {
798
874
  type: "string",
799
875
  const: "section"
@@ -830,6 +906,8 @@ const CONTENT_DEFS = {
830
906
  size: { $ref: "#/$defs/PageSize" },
831
907
  notes: { type: "string" },
832
908
  source: { $ref: "#/$defs/SourceResidue" },
909
+ origin: { $ref: "#/$defs/ContentOrigin" },
910
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
833
911
  kind: {
834
912
  type: "string",
835
913
  const: "slide"
@@ -868,6 +946,8 @@ const CONTENT_DEFS = {
868
946
  items: { $ref: "#/$defs/ContentSheetConditionalFormat" }
869
947
  },
870
948
  source: { $ref: "#/$defs/SourceResidue" },
949
+ origin: { $ref: "#/$defs/ContentOrigin" },
950
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
871
951
  kind: {
872
952
  type: "string",
873
953
  const: "sheet"
@@ -888,6 +968,8 @@ const CONTENT_DEFS = {
888
968
  properties: {
889
969
  size: { $ref: "#/$defs/PageSize" },
890
970
  source: { $ref: "#/$defs/SourceResidue" },
971
+ origin: { $ref: "#/$defs/ContentOrigin" },
972
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
891
973
  kind: {
892
974
  type: "string",
893
975
  const: "drawPage"
@@ -932,7 +1014,9 @@ const CONTENT_DEFS = {
932
1014
  frames: {
933
1015
  type: "array",
934
1016
  items: { $ref: "#/$defs/LayoutFrame" }
935
- }
1017
+ },
1018
+ origin: { $ref: "#/$defs/ContentOrigin" },
1019
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
936
1020
  },
937
1021
  required: [
938
1022
  "frame",
@@ -989,7 +1073,9 @@ const CONTENT_DEFS = {
989
1073
  frames: {
990
1074
  type: "array",
991
1075
  items: { $ref: "#/$defs/LayoutFrame" }
992
- }
1076
+ },
1077
+ origin: { $ref: "#/$defs/ContentOrigin" },
1078
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
993
1079
  },
994
1080
  required: [
995
1081
  "kind",
@@ -1044,7 +1130,9 @@ const CONTENT_DEFS = {
1044
1130
  frames: {
1045
1131
  type: "array",
1046
1132
  items: { $ref: "#/$defs/LayoutFrame" }
1047
- }
1133
+ },
1134
+ origin: { $ref: "#/$defs/ContentOrigin" },
1135
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
1048
1136
  },
1049
1137
  required: [
1050
1138
  "kind",
@@ -1118,7 +1206,9 @@ const CONTENT_DEFS = {
1118
1206
  frames: {
1119
1207
  type: "array",
1120
1208
  items: { $ref: "#/$defs/LayoutFrame" }
1121
- }
1209
+ },
1210
+ origin: { $ref: "#/$defs/ContentOrigin" },
1211
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
1122
1212
  },
1123
1213
  required: [
1124
1214
  "row",
@@ -1885,6 +1975,17 @@ const CONTENT_DEFS = {
1885
1975
  },
1886
1976
  altText: { type: "string" },
1887
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
+ },
1988
+ caption: { type: "string" },
1888
1989
  floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
1889
1990
  sourcePath: { type: "string" },
1890
1991
  source: { $ref: "#/$defs/SourceResidue" },
@@ -1892,6 +1993,8 @@ const CONTENT_DEFS = {
1892
1993
  type: "array",
1893
1994
  items: { $ref: "#/$defs/LayoutFrame" }
1894
1995
  },
1996
+ origin: { $ref: "#/$defs/ContentOrigin" },
1997
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
1895
1998
  anchorRow: {
1896
1999
  type: "integer",
1897
2000
  minimum: 0,
@@ -2142,7 +2245,9 @@ const CONTENT_DEFS = {
2142
2245
  frames: {
2143
2246
  type: "array",
2144
2247
  items: { $ref: "#/$defs/LayoutFrame" }
2145
- }
2248
+ },
2249
+ origin: { $ref: "#/$defs/ContentOrigin" },
2250
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2146
2251
  },
2147
2252
  required: ["kind", "frame"],
2148
2253
  additionalProperties: false
@@ -2170,7 +2275,9 @@ const CONTENT_DEFS = {
2170
2275
  frames: {
2171
2276
  type: "array",
2172
2277
  items: { $ref: "#/$defs/LayoutFrame" }
2173
- }
2278
+ },
2279
+ origin: { $ref: "#/$defs/ContentOrigin" },
2280
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2174
2281
  },
2175
2282
  required: ["kind", "frame"],
2176
2283
  additionalProperties: false
@@ -2191,7 +2298,9 @@ const CONTENT_DEFS = {
2191
2298
  frames: {
2192
2299
  type: "array",
2193
2300
  items: { $ref: "#/$defs/LayoutFrame" }
2194
- }
2301
+ },
2302
+ origin: { $ref: "#/$defs/ContentOrigin" },
2303
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2195
2304
  },
2196
2305
  required: [
2197
2306
  "kind",
@@ -2232,7 +2341,9 @@ const CONTENT_DEFS = {
2232
2341
  frames: {
2233
2342
  type: "array",
2234
2343
  items: { $ref: "#/$defs/LayoutFrame" }
2235
- }
2344
+ },
2345
+ origin: { $ref: "#/$defs/ContentOrigin" },
2346
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2236
2347
  },
2237
2348
  required: [
2238
2349
  "kind",
@@ -2667,7 +2778,9 @@ const CONTENT_DEFS = {
2667
2778
  presentation: { $ref: "#/$defs/MathPresentation" },
2668
2779
  content: { $ref: "#/$defs/MathExpression" },
2669
2780
  provenance: { $ref: "#/$defs/MathProvenance" },
2670
- source: { $ref: "#/$defs/SourceResidue" }
2781
+ source: { $ref: "#/$defs/SourceResidue" },
2782
+ origin: { $ref: "#/$defs/ContentOrigin" },
2783
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
2671
2784
  },
2672
2785
  required: ["mathml"],
2673
2786
  additionalProperties: false