document-model.js 3.3.0 → 4.0.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 (41) hide show
  1. package/README.md +82 -31
  2. package/dist/codec.d.cts +2 -7
  3. package/dist/codec.d.ts +2 -7
  4. package/dist/content-BN0PWqpt.d.cts +2393 -0
  5. package/dist/content-CiZf6Fqn.d.ts +2393 -0
  6. package/dist/content-json-schema-defs.cjs +1005 -0
  7. package/dist/content-json-schema-defs.js +1005 -0
  8. package/dist/content.cjs +1 -7
  9. package/dist/content.d.cts +2 -2354
  10. package/dist/content.d.ts +2 -2354
  11. package/dist/content.js +1 -7
  12. package/dist/definitions.cjs +109 -0
  13. package/dist/definitions.d.cts +115 -0
  14. package/dist/definitions.d.ts +115 -0
  15. package/dist/definitions.js +99 -0
  16. package/dist/index.cjs +42 -18
  17. package/dist/index.d.cts +7 -6
  18. package/dist/index.d.ts +7 -6
  19. package/dist/index.js +6 -5
  20. package/dist/package-node-DDPSNOvy.d.cts +441 -0
  21. package/dist/package-node-QVFHQcm8.d.ts +441 -0
  22. package/dist/package-node.cjs +120 -0
  23. package/dist/package-node.d.cts +2 -0
  24. package/dist/package-node.d.ts +2 -0
  25. package/dist/package-node.js +93 -0
  26. package/dist/package.cjs +37 -7
  27. package/dist/package.d.cts +452 -755
  28. package/dist/package.d.ts +452 -755
  29. package/dist/package.js +39 -8
  30. package/dist/schema-io.cjs +55 -25
  31. package/dist/schema-io.d.cts +13 -11
  32. package/dist/schema-io.d.ts +13 -11
  33. package/dist/schema-io.js +54 -25
  34. package/package.json +2 -2
  35. package/schemas/content-document.schema.json +1476 -68
  36. package/schemas/document-package.schema.json +3056 -30
  37. package/dist/layout.cjs +0 -150
  38. package/dist/layout.d.cts +0 -684
  39. package/dist/layout.d.ts +0 -684
  40. package/dist/layout.js +0 -136
  41. package/schemas/layout-document.schema.json +0 -760
@@ -1,40 +1,3066 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@3.3.0/schemas/document-package.schema.json",
4
- "type": "object",
5
- "properties": {
6
- "formatVersion": {
7
- "type": "number",
8
- "const": 2
9
- },
10
- "content": {
11
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@3.3.0/schemas/content-document.schema.json"
12
- },
13
- "pages": {
14
- "type": "array",
15
- "items": {
16
- "type": "object",
17
- "properties": {
18
- "widthPt": {
19
- "type": "number",
20
- "exclusiveMinimum": 0
3
+ "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@4.0.0/schemas/document-package.schema.json",
4
+ "oneOf": [
5
+ {
6
+ "type": "object",
7
+ "properties": {
8
+ "kind": {
9
+ "type": "string",
10
+ "const": "wordprocessing"
11
+ },
12
+ "metadata": {
13
+ "type": "object",
14
+ "properties": {
15
+ "title": {
16
+ "type": "string"
17
+ },
18
+ "author": {
19
+ "type": "string"
20
+ },
21
+ "subject": {
22
+ "type": "string"
23
+ },
24
+ "keywords": {
25
+ "type": "array",
26
+ "items": {
27
+ "type": "string"
28
+ }
29
+ },
30
+ "creator": {
31
+ "type": "string"
32
+ },
33
+ "producer": {
34
+ "type": "string"
35
+ },
36
+ "createdIso": {
37
+ "type": "string"
38
+ },
39
+ "modifiedIso": {
40
+ "type": "string"
41
+ }
42
+ },
43
+ "additionalProperties": false
44
+ },
45
+ "symbolTable": {
46
+ "$ref": "#/$defs/SymbolTable"
47
+ },
48
+ "pages": {
49
+ "type": "array",
50
+ "items": {
51
+ "type": "object",
52
+ "properties": {
53
+ "widthPt": {
54
+ "type": "number",
55
+ "exclusiveMinimum": 0
56
+ },
57
+ "heightPt": {
58
+ "type": "number",
59
+ "exclusiveMinimum": 0
60
+ }
61
+ },
62
+ "required": [
63
+ "widthPt",
64
+ "heightPt"
65
+ ],
66
+ "additionalProperties": false
67
+ }
68
+ },
69
+ "styles": {
70
+ "type": "object",
71
+ "propertyNames": {
72
+ "type": "string"
73
+ },
74
+ "additionalProperties": {
75
+ "$ref": "#/$defs/StyleEntry"
76
+ }
77
+ },
78
+ "definitions": {
79
+ "type": "object",
80
+ "propertyNames": {
81
+ "type": "string"
82
+ },
83
+ "additionalProperties": {
84
+ "$ref": "#/$defs/DefinitionEntry"
85
+ }
86
+ },
87
+ "children": {
88
+ "type": "array",
89
+ "items": {
90
+ "$ref": "#/$defs/SectionGroup"
91
+ }
92
+ }
93
+ },
94
+ "required": [
95
+ "kind",
96
+ "metadata",
97
+ "children"
98
+ ],
99
+ "additionalProperties": false
100
+ },
101
+ {
102
+ "type": "object",
103
+ "properties": {
104
+ "kind": {
105
+ "type": "string",
106
+ "const": "presentation"
107
+ },
108
+ "metadata": {
109
+ "type": "object",
110
+ "properties": {
111
+ "title": {
112
+ "type": "string"
113
+ },
114
+ "author": {
115
+ "type": "string"
116
+ },
117
+ "subject": {
118
+ "type": "string"
119
+ },
120
+ "keywords": {
121
+ "type": "array",
122
+ "items": {
123
+ "type": "string"
124
+ }
125
+ },
126
+ "creator": {
127
+ "type": "string"
128
+ },
129
+ "producer": {
130
+ "type": "string"
131
+ },
132
+ "createdIso": {
133
+ "type": "string"
134
+ },
135
+ "modifiedIso": {
136
+ "type": "string"
137
+ }
138
+ },
139
+ "additionalProperties": false
140
+ },
141
+ "symbolTable": {
142
+ "$ref": "#/$defs/SymbolTable"
143
+ },
144
+ "pages": {
145
+ "type": "array",
146
+ "items": {
147
+ "type": "object",
148
+ "properties": {
149
+ "widthPt": {
150
+ "type": "number",
151
+ "exclusiveMinimum": 0
152
+ },
153
+ "heightPt": {
154
+ "type": "number",
155
+ "exclusiveMinimum": 0
156
+ }
157
+ },
158
+ "required": [
159
+ "widthPt",
160
+ "heightPt"
161
+ ],
162
+ "additionalProperties": false
163
+ }
164
+ },
165
+ "styles": {
166
+ "type": "object",
167
+ "propertyNames": {
168
+ "type": "string"
169
+ },
170
+ "additionalProperties": {
171
+ "$ref": "#/$defs/StyleEntry"
172
+ }
173
+ },
174
+ "definitions": {
175
+ "type": "object",
176
+ "propertyNames": {
177
+ "type": "string"
178
+ },
179
+ "additionalProperties": {
180
+ "$ref": "#/$defs/DefinitionEntry"
181
+ }
182
+ },
183
+ "children": {
184
+ "type": "array",
185
+ "items": {
186
+ "$ref": "#/$defs/SlideGroup"
187
+ }
188
+ }
189
+ },
190
+ "required": [
191
+ "kind",
192
+ "metadata",
193
+ "children"
194
+ ],
195
+ "additionalProperties": false
196
+ },
197
+ {
198
+ "type": "object",
199
+ "properties": {
200
+ "kind": {
201
+ "type": "string",
202
+ "const": "spreadsheet"
203
+ },
204
+ "metadata": {
205
+ "type": "object",
206
+ "properties": {
207
+ "title": {
208
+ "type": "string"
209
+ },
210
+ "author": {
211
+ "type": "string"
212
+ },
213
+ "subject": {
214
+ "type": "string"
215
+ },
216
+ "keywords": {
217
+ "type": "array",
218
+ "items": {
219
+ "type": "string"
220
+ }
221
+ },
222
+ "creator": {
223
+ "type": "string"
224
+ },
225
+ "producer": {
226
+ "type": "string"
227
+ },
228
+ "createdIso": {
229
+ "type": "string"
230
+ },
231
+ "modifiedIso": {
232
+ "type": "string"
233
+ }
21
234
  },
22
- "heightPt": {
235
+ "additionalProperties": false
236
+ },
237
+ "symbolTable": {
238
+ "$ref": "#/$defs/SymbolTable"
239
+ },
240
+ "pages": {
241
+ "type": "array",
242
+ "items": {
243
+ "type": "object",
244
+ "properties": {
245
+ "widthPt": {
246
+ "type": "number",
247
+ "exclusiveMinimum": 0
248
+ },
249
+ "heightPt": {
250
+ "type": "number",
251
+ "exclusiveMinimum": 0
252
+ }
253
+ },
254
+ "required": [
255
+ "widthPt",
256
+ "heightPt"
257
+ ],
258
+ "additionalProperties": false
259
+ }
260
+ },
261
+ "styles": {
262
+ "type": "object",
263
+ "propertyNames": {
264
+ "type": "string"
265
+ },
266
+ "additionalProperties": {
267
+ "$ref": "#/$defs/StyleEntry"
268
+ }
269
+ },
270
+ "definitions": {
271
+ "type": "object",
272
+ "propertyNames": {
273
+ "type": "string"
274
+ },
275
+ "additionalProperties": {
276
+ "$ref": "#/$defs/DefinitionEntry"
277
+ }
278
+ },
279
+ "children": {
280
+ "type": "array",
281
+ "items": {
282
+ "$ref": "#/$defs/SheetGroup"
283
+ }
284
+ }
285
+ },
286
+ "required": [
287
+ "kind",
288
+ "metadata",
289
+ "children"
290
+ ],
291
+ "additionalProperties": false
292
+ },
293
+ {
294
+ "type": "object",
295
+ "properties": {
296
+ "kind": {
297
+ "type": "string",
298
+ "const": "drawing"
299
+ },
300
+ "metadata": {
301
+ "type": "object",
302
+ "properties": {
303
+ "title": {
304
+ "type": "string"
305
+ },
306
+ "author": {
307
+ "type": "string"
308
+ },
309
+ "subject": {
310
+ "type": "string"
311
+ },
312
+ "keywords": {
313
+ "type": "array",
314
+ "items": {
315
+ "type": "string"
316
+ }
317
+ },
318
+ "creator": {
319
+ "type": "string"
320
+ },
321
+ "producer": {
322
+ "type": "string"
323
+ },
324
+ "createdIso": {
325
+ "type": "string"
326
+ },
327
+ "modifiedIso": {
328
+ "type": "string"
329
+ }
330
+ },
331
+ "additionalProperties": false
332
+ },
333
+ "symbolTable": {
334
+ "$ref": "#/$defs/SymbolTable"
335
+ },
336
+ "pages": {
337
+ "type": "array",
338
+ "items": {
339
+ "type": "object",
340
+ "properties": {
341
+ "widthPt": {
342
+ "type": "number",
343
+ "exclusiveMinimum": 0
344
+ },
345
+ "heightPt": {
346
+ "type": "number",
347
+ "exclusiveMinimum": 0
348
+ }
349
+ },
350
+ "required": [
351
+ "widthPt",
352
+ "heightPt"
353
+ ],
354
+ "additionalProperties": false
355
+ }
356
+ },
357
+ "styles": {
358
+ "type": "object",
359
+ "propertyNames": {
360
+ "type": "string"
361
+ },
362
+ "additionalProperties": {
363
+ "$ref": "#/$defs/StyleEntry"
364
+ }
365
+ },
366
+ "definitions": {
367
+ "type": "object",
368
+ "propertyNames": {
369
+ "type": "string"
370
+ },
371
+ "additionalProperties": {
372
+ "$ref": "#/$defs/DefinitionEntry"
373
+ }
374
+ },
375
+ "children": {
376
+ "type": "array",
377
+ "items": {
378
+ "$ref": "#/$defs/DrawPageGroup"
379
+ }
380
+ }
381
+ },
382
+ "required": [
383
+ "kind",
384
+ "metadata",
385
+ "children"
386
+ ],
387
+ "additionalProperties": false
388
+ },
389
+ {
390
+ "type": "object",
391
+ "properties": {
392
+ "kind": {
393
+ "type": "string",
394
+ "const": "formula"
395
+ },
396
+ "metadata": {
397
+ "type": "object",
398
+ "properties": {
399
+ "title": {
400
+ "type": "string"
401
+ },
402
+ "author": {
403
+ "type": "string"
404
+ },
405
+ "subject": {
406
+ "type": "string"
407
+ },
408
+ "keywords": {
409
+ "type": "array",
410
+ "items": {
411
+ "type": "string"
412
+ }
413
+ },
414
+ "creator": {
415
+ "type": "string"
416
+ },
417
+ "producer": {
418
+ "type": "string"
419
+ },
420
+ "createdIso": {
421
+ "type": "string"
422
+ },
423
+ "modifiedIso": {
424
+ "type": "string"
425
+ }
426
+ },
427
+ "additionalProperties": false
428
+ },
429
+ "symbolTable": {
430
+ "$ref": "#/$defs/SymbolTable"
431
+ },
432
+ "pages": {
433
+ "type": "array",
434
+ "items": {
435
+ "type": "object",
436
+ "properties": {
437
+ "widthPt": {
438
+ "type": "number",
439
+ "exclusiveMinimum": 0
440
+ },
441
+ "heightPt": {
442
+ "type": "number",
443
+ "exclusiveMinimum": 0
444
+ }
445
+ },
446
+ "required": [
447
+ "widthPt",
448
+ "heightPt"
449
+ ],
450
+ "additionalProperties": false
451
+ }
452
+ },
453
+ "styles": {
454
+ "type": "object",
455
+ "propertyNames": {
456
+ "type": "string"
457
+ },
458
+ "additionalProperties": {
459
+ "$ref": "#/$defs/StyleEntry"
460
+ }
461
+ },
462
+ "definitions": {
463
+ "type": "object",
464
+ "propertyNames": {
465
+ "type": "string"
466
+ },
467
+ "additionalProperties": {
468
+ "$ref": "#/$defs/DefinitionEntry"
469
+ }
470
+ },
471
+ "children": {
472
+ "minItems": 1,
473
+ "maxItems": 1,
474
+ "type": "array",
475
+ "items": {
476
+ "$ref": "#/$defs/ContentFormula"
477
+ }
478
+ }
479
+ },
480
+ "required": [
481
+ "kind",
482
+ "metadata",
483
+ "children"
484
+ ],
485
+ "additionalProperties": false
486
+ }
487
+ ],
488
+ "$defs": {
489
+ "Color": {
490
+ "type": "object",
491
+ "properties": {
492
+ "r": {
493
+ "type": "number",
494
+ "minimum": 0,
495
+ "maximum": 1
496
+ },
497
+ "g": {
498
+ "type": "number",
499
+ "minimum": 0,
500
+ "maximum": 1
501
+ },
502
+ "b": {
503
+ "type": "number",
504
+ "minimum": 0,
505
+ "maximum": 1
506
+ }
507
+ },
508
+ "required": [
509
+ "r",
510
+ "g",
511
+ "b"
512
+ ],
513
+ "additionalProperties": false
514
+ },
515
+ "Box": {
516
+ "type": "object",
517
+ "properties": {
518
+ "xPt": {
519
+ "type": "number"
520
+ },
521
+ "yPt": {
522
+ "type": "number"
523
+ },
524
+ "widthPt": {
525
+ "type": "number",
526
+ "minimum": 0
527
+ },
528
+ "heightPt": {
529
+ "type": "number",
530
+ "minimum": 0
531
+ }
532
+ },
533
+ "required": [
534
+ "xPt",
535
+ "yPt",
536
+ "widthPt",
537
+ "heightPt"
538
+ ],
539
+ "additionalProperties": false
540
+ },
541
+ "LayoutFrame": {
542
+ "type": "object",
543
+ "properties": {
544
+ "pageIndex": {
545
+ "type": "integer",
546
+ "minimum": 0,
547
+ "maximum": 9007199254740991
548
+ },
549
+ "xPt": {
550
+ "type": "number"
551
+ },
552
+ "yPt": {
553
+ "type": "number"
554
+ },
555
+ "widthPt": {
556
+ "type": "number",
557
+ "minimum": 0
558
+ },
559
+ "heightPt": {
560
+ "type": "number",
561
+ "minimum": 0
562
+ }
563
+ },
564
+ "required": [
565
+ "pageIndex",
566
+ "xPt",
567
+ "yPt",
568
+ "widthPt",
569
+ "heightPt"
570
+ ],
571
+ "additionalProperties": false
572
+ },
573
+ "Alignment": {
574
+ "type": "string",
575
+ "enum": [
576
+ "left",
577
+ "center",
578
+ "right",
579
+ "justify"
580
+ ]
581
+ },
582
+ "ContentStrokeStyle": {
583
+ "type": "string",
584
+ "enum": [
585
+ "solid",
586
+ "dashed",
587
+ "dotted",
588
+ "double"
589
+ ]
590
+ },
591
+ "ContentBorder": {
592
+ "type": "object",
593
+ "properties": {
594
+ "color": {
595
+ "$ref": "#/$defs/Color"
596
+ },
597
+ "widthPt": {
598
+ "type": "number",
599
+ "exclusiveMinimum": 0
600
+ },
601
+ "style": {
602
+ "$ref": "#/$defs/ContentStrokeStyle"
603
+ }
604
+ },
605
+ "required": [
606
+ "color",
607
+ "widthPt"
608
+ ],
609
+ "additionalProperties": false
610
+ },
611
+ "ContentCellBorders": {
612
+ "type": "object",
613
+ "properties": {
614
+ "left": {
615
+ "$ref": "#/$defs/ContentBorder"
616
+ },
617
+ "right": {
618
+ "$ref": "#/$defs/ContentBorder"
619
+ },
620
+ "top": {
621
+ "$ref": "#/$defs/ContentBorder"
622
+ },
623
+ "bottom": {
624
+ "$ref": "#/$defs/ContentBorder"
625
+ }
626
+ },
627
+ "additionalProperties": false
628
+ },
629
+ "ContentListMembership": {
630
+ "type": "object",
631
+ "properties": {
632
+ "numId": {
633
+ "type": "string"
634
+ },
635
+ "level": {
636
+ "type": "integer",
637
+ "minimum": 0,
638
+ "maximum": 9007199254740991
639
+ }
640
+ },
641
+ "required": [
642
+ "level"
643
+ ],
644
+ "additionalProperties": false
645
+ },
646
+ "ContentRun": {
647
+ "type": "object",
648
+ "properties": {
649
+ "text": {
650
+ "type": "string"
651
+ },
652
+ "bold": {
653
+ "type": "boolean"
654
+ },
655
+ "italic": {
656
+ "type": "boolean"
657
+ },
658
+ "underline": {
659
+ "type": "boolean"
660
+ },
661
+ "strike": {
662
+ "type": "boolean"
663
+ },
664
+ "fontFamily": {
665
+ "type": "string"
666
+ },
667
+ "sizePt": {
668
+ "type": "number",
669
+ "exclusiveMinimum": 0
670
+ },
671
+ "color": {
672
+ "$ref": "#/$defs/Color"
673
+ },
674
+ "hyperlink": {
675
+ "type": "string"
676
+ },
677
+ "sourcePath": {
678
+ "type": "string"
679
+ },
680
+ "frames": {
681
+ "type": "array",
682
+ "items": {
683
+ "$ref": "#/$defs/LayoutFrame"
684
+ }
685
+ }
686
+ },
687
+ "required": [
688
+ "text"
689
+ ],
690
+ "additionalProperties": false
691
+ },
692
+ "ContentParagraph": {
693
+ "type": "object",
694
+ "properties": {
695
+ "kind": {
696
+ "type": "string",
697
+ "const": "paragraph"
698
+ },
699
+ "runs": {
700
+ "type": "array",
701
+ "items": {
702
+ "$ref": "#/$defs/ContentRun"
703
+ }
704
+ },
705
+ "styleId": {
706
+ "type": "string"
707
+ },
708
+ "headingLevel": {
709
+ "type": "integer",
710
+ "exclusiveMinimum": 0,
711
+ "maximum": 9007199254740991
712
+ },
713
+ "alignment": {
714
+ "$ref": "#/$defs/Alignment"
715
+ },
716
+ "list": {
717
+ "$ref": "#/$defs/ContentListMembership"
718
+ },
719
+ "spacingBeforePt": {
720
+ "type": "number"
721
+ },
722
+ "spacingAfterPt": {
723
+ "type": "number"
724
+ },
725
+ "lineSpacing": {
726
+ "type": "number",
727
+ "exclusiveMinimum": 0
728
+ },
729
+ "indentLeftPt": {
730
+ "type": "number"
731
+ },
732
+ "indentFirstLinePt": {
733
+ "type": "number"
734
+ },
735
+ "sourcePath": {
736
+ "type": "string"
737
+ },
738
+ "frames": {
739
+ "type": "array",
740
+ "items": {
741
+ "$ref": "#/$defs/LayoutFrame"
742
+ }
743
+ }
744
+ },
745
+ "required": [
746
+ "kind",
747
+ "runs"
748
+ ],
749
+ "additionalProperties": false
750
+ },
751
+ "ContentImageBlock": {
752
+ "type": "object",
753
+ "properties": {
754
+ "kind": {
755
+ "type": "string",
756
+ "const": "image"
757
+ },
758
+ "format": {
759
+ "type": "string",
760
+ "enum": [
761
+ "png",
762
+ "jpeg"
763
+ ]
764
+ },
765
+ "base64": {
766
+ "type": "string"
767
+ },
768
+ "widthPt": {
769
+ "type": "number",
770
+ "exclusiveMinimum": 0
771
+ },
772
+ "heightPt": {
773
+ "type": "number",
774
+ "exclusiveMinimum": 0
775
+ },
776
+ "altText": {
777
+ "type": "string"
778
+ },
779
+ "sourcePath": {
780
+ "type": "string"
781
+ },
782
+ "frames": {
783
+ "type": "array",
784
+ "items": {
785
+ "$ref": "#/$defs/LayoutFrame"
786
+ }
787
+ }
788
+ },
789
+ "required": [
790
+ "kind",
791
+ "format",
792
+ "base64",
793
+ "widthPt",
794
+ "heightPt"
795
+ ],
796
+ "additionalProperties": false
797
+ },
798
+ "ContentPageBreak": {
799
+ "type": "object",
800
+ "properties": {
801
+ "kind": {
802
+ "type": "string",
803
+ "const": "pageBreak"
804
+ },
805
+ "sourcePath": {
806
+ "type": "string"
807
+ },
808
+ "frames": {
809
+ "type": "array",
810
+ "items": {
811
+ "$ref": "#/$defs/LayoutFrame"
812
+ }
813
+ }
814
+ },
815
+ "required": [
816
+ "kind"
817
+ ],
818
+ "additionalProperties": false
819
+ },
820
+ "ContentTableCell": {
821
+ "type": "object",
822
+ "properties": {
823
+ "blocks": {
824
+ "type": "array",
825
+ "items": {
826
+ "$ref": "#/$defs/ContentBlock"
827
+ }
828
+ },
829
+ "colSpan": {
830
+ "type": "integer",
831
+ "exclusiveMinimum": 0,
832
+ "maximum": 9007199254740991
833
+ },
834
+ "rowSpan": {
835
+ "type": "integer",
836
+ "exclusiveMinimum": 0,
837
+ "maximum": 9007199254740991
838
+ },
839
+ "background": {
840
+ "$ref": "#/$defs/Color"
841
+ },
842
+ "borders": {
843
+ "$ref": "#/$defs/ContentCellBorders"
844
+ },
845
+ "sourcePath": {
846
+ "type": "string"
847
+ },
848
+ "frames": {
849
+ "type": "array",
850
+ "items": {
851
+ "$ref": "#/$defs/LayoutFrame"
852
+ }
853
+ }
854
+ },
855
+ "required": [
856
+ "blocks"
857
+ ],
858
+ "additionalProperties": false
859
+ },
860
+ "ContentTableRow": {
861
+ "type": "object",
862
+ "properties": {
863
+ "cells": {
864
+ "type": "array",
865
+ "items": {
866
+ "$ref": "#/$defs/ContentTableCell"
867
+ }
868
+ },
869
+ "heightPt": {
870
+ "type": "number",
871
+ "exclusiveMinimum": 0
872
+ }
873
+ },
874
+ "required": [
875
+ "cells"
876
+ ],
877
+ "additionalProperties": false
878
+ },
879
+ "ContentTable": {
880
+ "type": "object",
881
+ "properties": {
882
+ "kind": {
883
+ "type": "string",
884
+ "const": "table"
885
+ },
886
+ "rows": {
887
+ "type": "array",
888
+ "items": {
889
+ "$ref": "#/$defs/ContentTableRow"
890
+ }
891
+ },
892
+ "columnWidthsPt": {
893
+ "type": "array",
894
+ "items": {
23
895
  "type": "number",
24
896
  "exclusiveMinimum": 0
25
897
  }
26
898
  },
27
- "required": [
28
- "widthPt",
29
- "heightPt"
30
- ],
31
- "additionalProperties": false
899
+ "sourcePath": {
900
+ "type": "string"
901
+ },
902
+ "frames": {
903
+ "type": "array",
904
+ "items": {
905
+ "$ref": "#/$defs/LayoutFrame"
906
+ }
907
+ }
908
+ },
909
+ "required": [
910
+ "kind",
911
+ "rows",
912
+ "columnWidthsPt"
913
+ ],
914
+ "additionalProperties": false
915
+ },
916
+ "ContentEmbeddedObjectBlock": {
917
+ "type": "object",
918
+ "properties": {
919
+ "kind": {
920
+ "type": "string",
921
+ "const": "embeddedObject"
922
+ },
923
+ "objectKind": {
924
+ "type": "string",
925
+ "enum": [
926
+ "formula",
927
+ "wordprocessing",
928
+ "presentation",
929
+ "spreadsheet",
930
+ "drawing"
931
+ ]
932
+ },
933
+ "document": {
934
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.0.0/schemas/content-document.schema.json"
935
+ },
936
+ "frame": {
937
+ "$ref": "#/$defs/Box"
938
+ },
939
+ "sourcePath": {
940
+ "type": "string"
941
+ },
942
+ "frames": {
943
+ "type": "array",
944
+ "items": {
945
+ "$ref": "#/$defs/LayoutFrame"
946
+ }
947
+ },
948
+ "anchorRow": {
949
+ "type": "integer",
950
+ "minimum": 0,
951
+ "maximum": 9007199254740991
952
+ },
953
+ "anchorColumn": {
954
+ "type": "integer",
955
+ "minimum": 0,
956
+ "maximum": 9007199254740991
957
+ },
958
+ "offsetXPt": {
959
+ "type": "number"
960
+ },
961
+ "offsetYPt": {
962
+ "type": "number"
963
+ }
964
+ },
965
+ "required": [
966
+ "kind",
967
+ "objectKind",
968
+ "document",
969
+ "frame"
970
+ ],
971
+ "additionalProperties": false
972
+ },
973
+ "ContentBlock": {
974
+ "oneOf": [
975
+ {
976
+ "$ref": "#/$defs/ContentParagraph"
977
+ },
978
+ {
979
+ "$ref": "#/$defs/ContentTable"
980
+ },
981
+ {
982
+ "$ref": "#/$defs/ContentImageBlock"
983
+ },
984
+ {
985
+ "$ref": "#/$defs/ContentPageBreak"
986
+ },
987
+ {
988
+ "$ref": "#/$defs/ContentEmbeddedObjectBlock"
989
+ }
990
+ ]
991
+ },
992
+ "PageSize": {
993
+ "type": "object",
994
+ "properties": {
995
+ "widthPt": {
996
+ "type": "number",
997
+ "exclusiveMinimum": 0
998
+ },
999
+ "heightPt": {
1000
+ "type": "number",
1001
+ "exclusiveMinimum": 0
1002
+ }
1003
+ },
1004
+ "required": [
1005
+ "widthPt",
1006
+ "heightPt"
1007
+ ],
1008
+ "additionalProperties": false
1009
+ },
1010
+ "Margins": {
1011
+ "type": "object",
1012
+ "properties": {
1013
+ "topPt": {
1014
+ "type": "number",
1015
+ "minimum": 0
1016
+ },
1017
+ "rightPt": {
1018
+ "type": "number",
1019
+ "minimum": 0
1020
+ },
1021
+ "bottomPt": {
1022
+ "type": "number",
1023
+ "minimum": 0
1024
+ },
1025
+ "leftPt": {
1026
+ "type": "number",
1027
+ "minimum": 0
1028
+ }
1029
+ },
1030
+ "required": [
1031
+ "topPt",
1032
+ "rightPt",
1033
+ "bottomPt",
1034
+ "leftPt"
1035
+ ],
1036
+ "additionalProperties": false
1037
+ },
1038
+ "SectionDescriptor": {
1039
+ "type": "object",
1040
+ "properties": {
1041
+ "pageSize": {
1042
+ "$ref": "#/$defs/PageSize"
1043
+ },
1044
+ "margins": {
1045
+ "$ref": "#/$defs/Margins"
1046
+ },
1047
+ "kind": {
1048
+ "type": "string",
1049
+ "const": "section"
1050
+ }
1051
+ },
1052
+ "required": [
1053
+ "pageSize",
1054
+ "margins",
1055
+ "kind"
1056
+ ],
1057
+ "additionalProperties": false
1058
+ },
1059
+ "SlideDescriptor": {
1060
+ "type": "object",
1061
+ "properties": {
1062
+ "size": {
1063
+ "$ref": "#/$defs/PageSize"
1064
+ },
1065
+ "notes": {
1066
+ "type": "string"
1067
+ },
1068
+ "kind": {
1069
+ "type": "string",
1070
+ "const": "slide"
1071
+ }
1072
+ },
1073
+ "required": [
1074
+ "size",
1075
+ "notes",
1076
+ "kind"
1077
+ ],
1078
+ "additionalProperties": false
1079
+ },
1080
+ "SheetDescriptor": {
1081
+ "type": "object",
1082
+ "properties": {
1083
+ "name": {
1084
+ "type": "string"
1085
+ },
1086
+ "cells": {
1087
+ "type": "array",
1088
+ "items": {
1089
+ "$ref": "#/$defs/ContentSheetCell"
1090
+ }
1091
+ },
1092
+ "columns": {
1093
+ "type": "array",
1094
+ "items": {
1095
+ "$ref": "#/$defs/ContentSheetColumn"
1096
+ }
1097
+ },
1098
+ "rows": {
1099
+ "type": "array",
1100
+ "items": {
1101
+ "$ref": "#/$defs/ContentSheetRow"
1102
+ }
1103
+ },
1104
+ "printSettings": {
1105
+ "$ref": "#/$defs/ContentSheetPrintSettings"
1106
+ },
1107
+ "kind": {
1108
+ "type": "string",
1109
+ "const": "sheet"
1110
+ }
1111
+ },
1112
+ "required": [
1113
+ "name",
1114
+ "cells",
1115
+ "columns",
1116
+ "rows",
1117
+ "printSettings",
1118
+ "kind"
1119
+ ],
1120
+ "additionalProperties": false
1121
+ },
1122
+ "DrawPageDescriptor": {
1123
+ "type": "object",
1124
+ "properties": {
1125
+ "size": {
1126
+ "$ref": "#/$defs/PageSize"
1127
+ },
1128
+ "kind": {
1129
+ "type": "string",
1130
+ "const": "drawPage"
1131
+ }
1132
+ },
1133
+ "required": [
1134
+ "size",
1135
+ "kind"
1136
+ ],
1137
+ "additionalProperties": false
1138
+ },
1139
+ "ShapeDescriptor": {
1140
+ "type": "object",
1141
+ "properties": {
1142
+ "name": {
1143
+ "type": "string"
1144
+ },
1145
+ "frame": {
1146
+ "$ref": "#/$defs/Box"
1147
+ },
1148
+ "rotationDeg": {
1149
+ "type": "number"
1150
+ },
1151
+ "insetLeftPt": {
1152
+ "type": "number",
1153
+ "minimum": 0
1154
+ },
1155
+ "insetTopPt": {
1156
+ "type": "number",
1157
+ "minimum": 0
1158
+ },
1159
+ "insetRightPt": {
1160
+ "type": "number",
1161
+ "minimum": 0
1162
+ },
1163
+ "insetBottomPt": {
1164
+ "type": "number",
1165
+ "minimum": 0
1166
+ },
1167
+ "fontScale": {
1168
+ "type": "number",
1169
+ "exclusiveMinimum": 0
1170
+ },
1171
+ "lineSpacingReduction": {
1172
+ "type": "number",
1173
+ "minimum": 0
1174
+ },
1175
+ "paintOrder": {
1176
+ "type": "number"
1177
+ },
1178
+ "sourcePath": {
1179
+ "type": "string"
1180
+ },
1181
+ "frames": {
1182
+ "type": "array",
1183
+ "items": {
1184
+ "$ref": "#/$defs/LayoutFrame"
1185
+ }
1186
+ }
1187
+ },
1188
+ "required": [
1189
+ "frame",
1190
+ "insetLeftPt",
1191
+ "insetTopPt",
1192
+ "insetRightPt",
1193
+ "insetBottomPt"
1194
+ ],
1195
+ "additionalProperties": false
1196
+ },
1197
+ "HeadingParagraph": {
1198
+ "type": "object",
1199
+ "properties": {
1200
+ "kind": {
1201
+ "type": "string",
1202
+ "const": "paragraph"
1203
+ },
1204
+ "runs": {
1205
+ "type": "array",
1206
+ "items": {
1207
+ "$ref": "#/$defs/ContentRun"
1208
+ }
1209
+ },
1210
+ "styleId": {
1211
+ "type": "string"
1212
+ },
1213
+ "headingLevel": {
1214
+ "type": "integer",
1215
+ "exclusiveMinimum": 0,
1216
+ "maximum": 9007199254740991
1217
+ },
1218
+ "alignment": {
1219
+ "$ref": "#/$defs/Alignment"
1220
+ },
1221
+ "list": {
1222
+ "$ref": "#/$defs/ContentListMembership"
1223
+ },
1224
+ "spacingBeforePt": {
1225
+ "type": "number"
1226
+ },
1227
+ "spacingAfterPt": {
1228
+ "type": "number"
1229
+ },
1230
+ "lineSpacing": {
1231
+ "type": "number",
1232
+ "exclusiveMinimum": 0
1233
+ },
1234
+ "indentLeftPt": {
1235
+ "type": "number"
1236
+ },
1237
+ "indentFirstLinePt": {
1238
+ "type": "number"
1239
+ },
1240
+ "sourcePath": {
1241
+ "type": "string"
1242
+ },
1243
+ "frames": {
1244
+ "type": "array",
1245
+ "items": {
1246
+ "$ref": "#/$defs/LayoutFrame"
1247
+ }
1248
+ }
1249
+ },
1250
+ "required": [
1251
+ "kind",
1252
+ "runs",
1253
+ "headingLevel"
1254
+ ],
1255
+ "additionalProperties": false
1256
+ },
1257
+ "ListParagraph": {
1258
+ "type": "object",
1259
+ "properties": {
1260
+ "kind": {
1261
+ "type": "string",
1262
+ "const": "paragraph"
1263
+ },
1264
+ "runs": {
1265
+ "type": "array",
1266
+ "items": {
1267
+ "$ref": "#/$defs/ContentRun"
1268
+ }
1269
+ },
1270
+ "styleId": {
1271
+ "type": "string"
1272
+ },
1273
+ "headingLevel": {
1274
+ "type": "integer",
1275
+ "exclusiveMinimum": 0,
1276
+ "maximum": 9007199254740991
1277
+ },
1278
+ "alignment": {
1279
+ "$ref": "#/$defs/Alignment"
1280
+ },
1281
+ "list": {
1282
+ "$ref": "#/$defs/ContentListMembership"
1283
+ },
1284
+ "spacingBeforePt": {
1285
+ "type": "number"
1286
+ },
1287
+ "spacingAfterPt": {
1288
+ "type": "number"
1289
+ },
1290
+ "lineSpacing": {
1291
+ "type": "number",
1292
+ "exclusiveMinimum": 0
1293
+ },
1294
+ "indentLeftPt": {
1295
+ "type": "number"
1296
+ },
1297
+ "indentFirstLinePt": {
1298
+ "type": "number"
1299
+ },
1300
+ "sourcePath": {
1301
+ "type": "string"
1302
+ },
1303
+ "frames": {
1304
+ "type": "array",
1305
+ "items": {
1306
+ "$ref": "#/$defs/LayoutFrame"
1307
+ }
1308
+ }
1309
+ },
1310
+ "required": [
1311
+ "kind",
1312
+ "runs",
1313
+ "list"
1314
+ ],
1315
+ "additionalProperties": false
1316
+ },
1317
+ "ContentSheetCell": {
1318
+ "type": "object",
1319
+ "properties": {
1320
+ "row": {
1321
+ "type": "integer",
1322
+ "minimum": 0,
1323
+ "maximum": 9007199254740991
1324
+ },
1325
+ "column": {
1326
+ "type": "integer",
1327
+ "minimum": 0,
1328
+ "maximum": 9007199254740991
1329
+ },
1330
+ "value": {
1331
+ "$ref": "#/$defs/ContentCellValue"
1332
+ },
1333
+ "formula": {
1334
+ "type": "string"
1335
+ },
1336
+ "displayText": {
1337
+ "type": "string"
1338
+ },
1339
+ "runs": {
1340
+ "type": "array",
1341
+ "items": {
1342
+ "$ref": "#/$defs/ContentRun"
1343
+ }
1344
+ },
1345
+ "colSpan": {
1346
+ "type": "integer",
1347
+ "exclusiveMinimum": 0,
1348
+ "maximum": 9007199254740991
1349
+ },
1350
+ "rowSpan": {
1351
+ "type": "integer",
1352
+ "exclusiveMinimum": 0,
1353
+ "maximum": 9007199254740991
1354
+ },
1355
+ "background": {
1356
+ "$ref": "#/$defs/Color"
1357
+ },
1358
+ "borders": {
1359
+ "$ref": "#/$defs/ContentCellBorders"
1360
+ },
1361
+ "alignment": {
1362
+ "$ref": "#/$defs/Alignment"
1363
+ },
1364
+ "verticalAlignment": {
1365
+ "type": "string",
1366
+ "enum": [
1367
+ "top",
1368
+ "middle",
1369
+ "bottom"
1370
+ ]
1371
+ },
1372
+ "comment": {
1373
+ "$ref": "#/$defs/ContentSheetCellComment"
1374
+ },
1375
+ "sourcePath": {
1376
+ "type": "string"
1377
+ },
1378
+ "frames": {
1379
+ "type": "array",
1380
+ "items": {
1381
+ "$ref": "#/$defs/LayoutFrame"
1382
+ }
1383
+ }
1384
+ },
1385
+ "required": [
1386
+ "row",
1387
+ "column",
1388
+ "value",
1389
+ "displayText"
1390
+ ],
1391
+ "additionalProperties": false
1392
+ },
1393
+ "ContentCellValue": {
1394
+ "oneOf": [
1395
+ {
1396
+ "type": "object",
1397
+ "properties": {
1398
+ "kind": {
1399
+ "type": "string",
1400
+ "const": "number"
1401
+ },
1402
+ "value": {
1403
+ "type": "number"
1404
+ },
1405
+ "exactValue": {
1406
+ "type": "string",
1407
+ "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
1408
+ }
1409
+ },
1410
+ "required": [
1411
+ "kind",
1412
+ "value"
1413
+ ],
1414
+ "additionalProperties": false
1415
+ },
1416
+ {
1417
+ "type": "object",
1418
+ "properties": {
1419
+ "kind": {
1420
+ "type": "string",
1421
+ "const": "percentage"
1422
+ },
1423
+ "value": {
1424
+ "type": "number"
1425
+ },
1426
+ "exactValue": {
1427
+ "type": "string",
1428
+ "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
1429
+ }
1430
+ },
1431
+ "required": [
1432
+ "kind",
1433
+ "value"
1434
+ ],
1435
+ "additionalProperties": false
1436
+ },
1437
+ {
1438
+ "type": "object",
1439
+ "properties": {
1440
+ "kind": {
1441
+ "type": "string",
1442
+ "const": "currency"
1443
+ },
1444
+ "value": {
1445
+ "type": "number"
1446
+ },
1447
+ "currency": {
1448
+ "type": "string"
1449
+ },
1450
+ "exactValue": {
1451
+ "type": "string",
1452
+ "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
1453
+ }
1454
+ },
1455
+ "required": [
1456
+ "kind",
1457
+ "value"
1458
+ ],
1459
+ "additionalProperties": false
1460
+ },
1461
+ {
1462
+ "type": "object",
1463
+ "properties": {
1464
+ "kind": {
1465
+ "type": "string",
1466
+ "const": "boolean"
1467
+ },
1468
+ "value": {
1469
+ "type": "boolean"
1470
+ }
1471
+ },
1472
+ "required": [
1473
+ "kind",
1474
+ "value"
1475
+ ],
1476
+ "additionalProperties": false
1477
+ },
1478
+ {
1479
+ "type": "object",
1480
+ "properties": {
1481
+ "kind": {
1482
+ "type": "string",
1483
+ "const": "date"
1484
+ },
1485
+ "value": {
1486
+ "type": "string"
1487
+ }
1488
+ },
1489
+ "required": [
1490
+ "kind",
1491
+ "value"
1492
+ ],
1493
+ "additionalProperties": false
1494
+ },
1495
+ {
1496
+ "type": "object",
1497
+ "properties": {
1498
+ "kind": {
1499
+ "type": "string",
1500
+ "const": "time"
1501
+ },
1502
+ "value": {
1503
+ "type": "string"
1504
+ }
1505
+ },
1506
+ "required": [
1507
+ "kind",
1508
+ "value"
1509
+ ],
1510
+ "additionalProperties": false
1511
+ },
1512
+ {
1513
+ "type": "object",
1514
+ "properties": {
1515
+ "kind": {
1516
+ "type": "string",
1517
+ "const": "dateTime"
1518
+ },
1519
+ "value": {
1520
+ "type": "string"
1521
+ }
1522
+ },
1523
+ "required": [
1524
+ "kind",
1525
+ "value"
1526
+ ],
1527
+ "additionalProperties": false
1528
+ },
1529
+ {
1530
+ "type": "object",
1531
+ "properties": {
1532
+ "kind": {
1533
+ "type": "string",
1534
+ "const": "string"
1535
+ },
1536
+ "value": {
1537
+ "type": "string"
1538
+ }
1539
+ },
1540
+ "required": [
1541
+ "kind",
1542
+ "value"
1543
+ ],
1544
+ "additionalProperties": false
1545
+ },
1546
+ {
1547
+ "type": "object",
1548
+ "properties": {
1549
+ "kind": {
1550
+ "type": "string",
1551
+ "const": "error"
1552
+ },
1553
+ "value": {
1554
+ "type": "string"
1555
+ }
1556
+ },
1557
+ "required": [
1558
+ "kind",
1559
+ "value"
1560
+ ],
1561
+ "additionalProperties": false
1562
+ },
1563
+ {
1564
+ "type": "object",
1565
+ "properties": {
1566
+ "kind": {
1567
+ "type": "string",
1568
+ "const": "empty"
1569
+ }
1570
+ },
1571
+ "required": [
1572
+ "kind"
1573
+ ],
1574
+ "additionalProperties": false
1575
+ }
1576
+ ]
1577
+ },
1578
+ "ContentSheetCellComment": {
1579
+ "type": "object",
1580
+ "properties": {
1581
+ "text": {
1582
+ "type": "string"
1583
+ },
1584
+ "author": {
1585
+ "type": "string"
1586
+ },
1587
+ "createdAt": {
1588
+ "type": "string"
1589
+ },
1590
+ "replies": {
1591
+ "type": "array",
1592
+ "items": {
1593
+ "type": "object",
1594
+ "properties": {
1595
+ "text": {
1596
+ "type": "string"
1597
+ },
1598
+ "author": {
1599
+ "type": "string"
1600
+ }
1601
+ },
1602
+ "required": [
1603
+ "text"
1604
+ ],
1605
+ "additionalProperties": false
1606
+ }
1607
+ }
1608
+ },
1609
+ "required": [
1610
+ "text"
1611
+ ],
1612
+ "additionalProperties": false
1613
+ },
1614
+ "ContentSheetColumn": {
1615
+ "type": "object",
1616
+ "properties": {
1617
+ "index": {
1618
+ "type": "integer",
1619
+ "minimum": 0,
1620
+ "maximum": 9007199254740991
1621
+ },
1622
+ "widthPt": {
1623
+ "type": "number",
1624
+ "exclusiveMinimum": 0
1625
+ },
1626
+ "hidden": {
1627
+ "type": "boolean"
1628
+ }
1629
+ },
1630
+ "required": [
1631
+ "index"
1632
+ ],
1633
+ "additionalProperties": false
1634
+ },
1635
+ "ContentSheetRow": {
1636
+ "type": "object",
1637
+ "properties": {
1638
+ "index": {
1639
+ "type": "integer",
1640
+ "minimum": 0,
1641
+ "maximum": 9007199254740991
1642
+ },
1643
+ "heightPt": {
1644
+ "type": "number",
1645
+ "exclusiveMinimum": 0
1646
+ },
1647
+ "hidden": {
1648
+ "type": "boolean"
1649
+ }
1650
+ },
1651
+ "required": [
1652
+ "index"
1653
+ ],
1654
+ "additionalProperties": false
1655
+ },
1656
+ "ContentSheetPrintSettings": {
1657
+ "type": "object",
1658
+ "properties": {
1659
+ "pageSize": {
1660
+ "$ref": "#/$defs/PageSize"
1661
+ },
1662
+ "margins": {
1663
+ "$ref": "#/$defs/Margins"
1664
+ },
1665
+ "printRange": {
1666
+ "$ref": "#/$defs/ContentSheetPrintRange"
1667
+ },
1668
+ "scalePercent": {
1669
+ "type": "number",
1670
+ "exclusiveMinimum": 0
1671
+ },
1672
+ "fitToPages": {
1673
+ "type": "object",
1674
+ "properties": {
1675
+ "width": {
1676
+ "type": "integer",
1677
+ "exclusiveMinimum": 0,
1678
+ "maximum": 9007199254740991
1679
+ },
1680
+ "height": {
1681
+ "type": "integer",
1682
+ "exclusiveMinimum": 0,
1683
+ "maximum": 9007199254740991
1684
+ }
1685
+ },
1686
+ "required": [
1687
+ "width",
1688
+ "height"
1689
+ ],
1690
+ "additionalProperties": false
1691
+ },
1692
+ "repeatRows": {
1693
+ "$ref": "#/$defs/ContentSheetRepeatRange"
1694
+ },
1695
+ "repeatColumns": {
1696
+ "$ref": "#/$defs/ContentSheetRepeatRange"
1697
+ },
1698
+ "gridlines": {
1699
+ "type": "boolean"
1700
+ },
1701
+ "headers": {
1702
+ "type": "boolean"
1703
+ },
1704
+ "pageOrder": {
1705
+ "type": "string",
1706
+ "enum": [
1707
+ "downThenOver",
1708
+ "overThenDown"
1709
+ ]
1710
+ },
1711
+ "manualBreaks": {
1712
+ "type": "object",
1713
+ "properties": {
1714
+ "rows": {
1715
+ "type": "array",
1716
+ "items": {
1717
+ "type": "integer",
1718
+ "minimum": 0,
1719
+ "maximum": 9007199254740991
1720
+ }
1721
+ },
1722
+ "columns": {
1723
+ "type": "array",
1724
+ "items": {
1725
+ "type": "integer",
1726
+ "minimum": 0,
1727
+ "maximum": 9007199254740991
1728
+ }
1729
+ }
1730
+ },
1731
+ "required": [
1732
+ "rows",
1733
+ "columns"
1734
+ ],
1735
+ "additionalProperties": false
1736
+ }
1737
+ },
1738
+ "required": [
1739
+ "pageSize",
1740
+ "margins",
1741
+ "gridlines",
1742
+ "headers",
1743
+ "pageOrder"
1744
+ ],
1745
+ "additionalProperties": false
1746
+ },
1747
+ "ContentSheetPrintRange": {
1748
+ "type": "object",
1749
+ "properties": {
1750
+ "startRow": {
1751
+ "type": "integer",
1752
+ "minimum": 0,
1753
+ "maximum": 9007199254740991
1754
+ },
1755
+ "startColumn": {
1756
+ "type": "integer",
1757
+ "minimum": 0,
1758
+ "maximum": 9007199254740991
1759
+ },
1760
+ "endRow": {
1761
+ "type": "integer",
1762
+ "minimum": 0,
1763
+ "maximum": 9007199254740991
1764
+ },
1765
+ "endColumn": {
1766
+ "type": "integer",
1767
+ "minimum": 0,
1768
+ "maximum": 9007199254740991
1769
+ }
1770
+ },
1771
+ "required": [
1772
+ "startRow",
1773
+ "startColumn",
1774
+ "endRow",
1775
+ "endColumn"
1776
+ ],
1777
+ "additionalProperties": false
1778
+ },
1779
+ "ContentSheetRepeatRange": {
1780
+ "type": "object",
1781
+ "properties": {
1782
+ "start": {
1783
+ "type": "integer",
1784
+ "minimum": 0,
1785
+ "maximum": 9007199254740991
1786
+ },
1787
+ "end": {
1788
+ "type": "integer",
1789
+ "minimum": 0,
1790
+ "maximum": 9007199254740991
1791
+ }
1792
+ },
1793
+ "required": [
1794
+ "start",
1795
+ "end"
1796
+ ],
1797
+ "additionalProperties": false
1798
+ },
1799
+ "ContentSheetImage": {
1800
+ "type": "object",
1801
+ "properties": {
1802
+ "kind": {
1803
+ "type": "string",
1804
+ "const": "image"
1805
+ },
1806
+ "format": {
1807
+ "type": "string",
1808
+ "enum": [
1809
+ "png",
1810
+ "jpeg"
1811
+ ]
1812
+ },
1813
+ "base64": {
1814
+ "type": "string"
1815
+ },
1816
+ "widthPt": {
1817
+ "type": "number",
1818
+ "exclusiveMinimum": 0
1819
+ },
1820
+ "heightPt": {
1821
+ "type": "number",
1822
+ "exclusiveMinimum": 0
1823
+ },
1824
+ "altText": {
1825
+ "type": "string"
1826
+ },
1827
+ "sourcePath": {
1828
+ "type": "string"
1829
+ },
1830
+ "frames": {
1831
+ "type": "array",
1832
+ "items": {
1833
+ "$ref": "#/$defs/LayoutFrame"
1834
+ }
1835
+ },
1836
+ "anchorRow": {
1837
+ "type": "integer",
1838
+ "minimum": 0,
1839
+ "maximum": 9007199254740991
1840
+ },
1841
+ "anchorColumn": {
1842
+ "type": "integer",
1843
+ "minimum": 0,
1844
+ "maximum": 9007199254740991
1845
+ },
1846
+ "offsetXPt": {
1847
+ "type": "number"
1848
+ },
1849
+ "offsetYPt": {
1850
+ "type": "number"
1851
+ }
1852
+ },
1853
+ "required": [
1854
+ "kind",
1855
+ "format",
1856
+ "base64",
1857
+ "widthPt",
1858
+ "heightPt",
1859
+ "anchorRow",
1860
+ "anchorColumn",
1861
+ "offsetXPt",
1862
+ "offsetYPt"
1863
+ ],
1864
+ "additionalProperties": false
1865
+ },
1866
+ "ContentStroke": {
1867
+ "type": "object",
1868
+ "properties": {
1869
+ "color": {
1870
+ "$ref": "#/$defs/Color"
1871
+ },
1872
+ "widthPt": {
1873
+ "type": "number",
1874
+ "exclusiveMinimum": 0
1875
+ },
1876
+ "style": {
1877
+ "$ref": "#/$defs/ContentStrokeStyle"
1878
+ }
1879
+ },
1880
+ "required": [
1881
+ "color",
1882
+ "widthPt"
1883
+ ],
1884
+ "additionalProperties": false
1885
+ },
1886
+ "ContentPathPoint": {
1887
+ "type": "object",
1888
+ "properties": {
1889
+ "xPt": {
1890
+ "type": "number"
1891
+ },
1892
+ "yPt": {
1893
+ "type": "number"
1894
+ }
1895
+ },
1896
+ "required": [
1897
+ "xPt",
1898
+ "yPt"
1899
+ ],
1900
+ "additionalProperties": false
1901
+ },
1902
+ "ContentPathSegment": {
1903
+ "oneOf": [
1904
+ {
1905
+ "type": "object",
1906
+ "properties": {
1907
+ "kind": {
1908
+ "type": "string",
1909
+ "const": "line"
1910
+ },
1911
+ "to": {
1912
+ "$ref": "#/$defs/ContentPathPoint"
1913
+ }
1914
+ },
1915
+ "required": [
1916
+ "kind",
1917
+ "to"
1918
+ ],
1919
+ "additionalProperties": false
1920
+ },
1921
+ {
1922
+ "type": "object",
1923
+ "properties": {
1924
+ "kind": {
1925
+ "type": "string",
1926
+ "const": "cubic"
1927
+ },
1928
+ "control1": {
1929
+ "$ref": "#/$defs/ContentPathPoint"
1930
+ },
1931
+ "control2": {
1932
+ "$ref": "#/$defs/ContentPathPoint"
1933
+ },
1934
+ "to": {
1935
+ "$ref": "#/$defs/ContentPathPoint"
1936
+ }
1937
+ },
1938
+ "required": [
1939
+ "kind",
1940
+ "control1",
1941
+ "control2",
1942
+ "to"
1943
+ ],
1944
+ "additionalProperties": false
1945
+ }
1946
+ ]
1947
+ },
1948
+ "ContentSubpath": {
1949
+ "type": "object",
1950
+ "properties": {
1951
+ "start": {
1952
+ "$ref": "#/$defs/ContentPathPoint"
1953
+ },
1954
+ "segments": {
1955
+ "type": "array",
1956
+ "items": {
1957
+ "$ref": "#/$defs/ContentPathSegment"
1958
+ }
1959
+ },
1960
+ "closed": {
1961
+ "type": "boolean"
1962
+ }
1963
+ },
1964
+ "required": [
1965
+ "start",
1966
+ "segments",
1967
+ "closed"
1968
+ ],
1969
+ "additionalProperties": false
1970
+ },
1971
+ "ContentVector": {
1972
+ "oneOf": [
1973
+ {
1974
+ "type": "object",
1975
+ "properties": {
1976
+ "kind": {
1977
+ "type": "string",
1978
+ "const": "rect"
1979
+ },
1980
+ "frame": {
1981
+ "$ref": "#/$defs/Box"
1982
+ },
1983
+ "rotationDeg": {
1984
+ "type": "number"
1985
+ },
1986
+ "fill": {
1987
+ "$ref": "#/$defs/Color"
1988
+ },
1989
+ "stroke": {
1990
+ "$ref": "#/$defs/ContentStroke"
1991
+ },
1992
+ "paintOrder": {
1993
+ "type": "number"
1994
+ },
1995
+ "sourcePath": {
1996
+ "type": "string"
1997
+ },
1998
+ "frames": {
1999
+ "type": "array",
2000
+ "items": {
2001
+ "$ref": "#/$defs/LayoutFrame"
2002
+ }
2003
+ }
2004
+ },
2005
+ "required": [
2006
+ "kind",
2007
+ "frame"
2008
+ ],
2009
+ "additionalProperties": false
2010
+ },
2011
+ {
2012
+ "type": "object",
2013
+ "properties": {
2014
+ "kind": {
2015
+ "type": "string",
2016
+ "const": "ellipse"
2017
+ },
2018
+ "frame": {
2019
+ "$ref": "#/$defs/Box"
2020
+ },
2021
+ "rotationDeg": {
2022
+ "type": "number"
2023
+ },
2024
+ "fill": {
2025
+ "$ref": "#/$defs/Color"
2026
+ },
2027
+ "stroke": {
2028
+ "$ref": "#/$defs/ContentStroke"
2029
+ },
2030
+ "paintOrder": {
2031
+ "type": "number"
2032
+ },
2033
+ "sourcePath": {
2034
+ "type": "string"
2035
+ },
2036
+ "frames": {
2037
+ "type": "array",
2038
+ "items": {
2039
+ "$ref": "#/$defs/LayoutFrame"
2040
+ }
2041
+ }
2042
+ },
2043
+ "required": [
2044
+ "kind",
2045
+ "frame"
2046
+ ],
2047
+ "additionalProperties": false
2048
+ },
2049
+ {
2050
+ "type": "object",
2051
+ "properties": {
2052
+ "kind": {
2053
+ "type": "string",
2054
+ "const": "line"
2055
+ },
2056
+ "from": {
2057
+ "$ref": "#/$defs/ContentPathPoint"
2058
+ },
2059
+ "to": {
2060
+ "$ref": "#/$defs/ContentPathPoint"
2061
+ },
2062
+ "stroke": {
2063
+ "$ref": "#/$defs/ContentStroke"
2064
+ },
2065
+ "paintOrder": {
2066
+ "type": "number"
2067
+ },
2068
+ "sourcePath": {
2069
+ "type": "string"
2070
+ },
2071
+ "frames": {
2072
+ "type": "array",
2073
+ "items": {
2074
+ "$ref": "#/$defs/LayoutFrame"
2075
+ }
2076
+ }
2077
+ },
2078
+ "required": [
2079
+ "kind",
2080
+ "from",
2081
+ "to",
2082
+ "stroke"
2083
+ ],
2084
+ "additionalProperties": false
2085
+ },
2086
+ {
2087
+ "type": "object",
2088
+ "properties": {
2089
+ "kind": {
2090
+ "type": "string",
2091
+ "const": "path"
2092
+ },
2093
+ "frame": {
2094
+ "$ref": "#/$defs/Box"
2095
+ },
2096
+ "rotationDeg": {
2097
+ "type": "number"
2098
+ },
2099
+ "subpaths": {
2100
+ "type": "array",
2101
+ "items": {
2102
+ "$ref": "#/$defs/ContentSubpath"
2103
+ }
2104
+ },
2105
+ "fill": {
2106
+ "$ref": "#/$defs/Color"
2107
+ },
2108
+ "fillRule": {
2109
+ "type": "string",
2110
+ "enum": [
2111
+ "nonzero",
2112
+ "evenodd"
2113
+ ]
2114
+ },
2115
+ "stroke": {
2116
+ "$ref": "#/$defs/ContentStroke"
2117
+ },
2118
+ "paintOrder": {
2119
+ "type": "number"
2120
+ },
2121
+ "sourcePath": {
2122
+ "type": "string"
2123
+ },
2124
+ "frames": {
2125
+ "type": "array",
2126
+ "items": {
2127
+ "$ref": "#/$defs/LayoutFrame"
2128
+ }
2129
+ }
2130
+ },
2131
+ "required": [
2132
+ "kind",
2133
+ "frame",
2134
+ "subpaths"
2135
+ ],
2136
+ "additionalProperties": false
2137
+ }
2138
+ ]
2139
+ },
2140
+ "ContentEmbeddedObject": {
2141
+ "type": "object",
2142
+ "properties": {
2143
+ "objectKind": {
2144
+ "type": "string",
2145
+ "enum": [
2146
+ "formula",
2147
+ "wordprocessing",
2148
+ "presentation",
2149
+ "spreadsheet",
2150
+ "drawing"
2151
+ ]
2152
+ },
2153
+ "document": {
2154
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.0.0/schemas/content-document.schema.json"
2155
+ },
2156
+ "frame": {
2157
+ "$ref": "#/$defs/Box"
2158
+ },
2159
+ "anchorRow": {
2160
+ "type": "integer",
2161
+ "minimum": 0,
2162
+ "maximum": 9007199254740991
2163
+ },
2164
+ "anchorColumn": {
2165
+ "type": "integer",
2166
+ "minimum": 0,
2167
+ "maximum": 9007199254740991
2168
+ },
2169
+ "offsetXPt": {
2170
+ "type": "number"
2171
+ },
2172
+ "offsetYPt": {
2173
+ "type": "number"
2174
+ }
2175
+ },
2176
+ "required": [
2177
+ "objectKind",
2178
+ "document",
2179
+ "frame"
2180
+ ],
2181
+ "additionalProperties": false
2182
+ },
2183
+ "SectionGroup": {
2184
+ "type": "object",
2185
+ "properties": {
2186
+ "node": {
2187
+ "$ref": "#/$defs/SectionDescriptor"
2188
+ },
2189
+ "style": {
2190
+ "type": "string"
2191
+ },
2192
+ "children": {
2193
+ "type": "array",
2194
+ "items": {
2195
+ "oneOf": [
2196
+ {
2197
+ "$ref": "#/$defs/HeadingGroup"
2198
+ },
2199
+ {
2200
+ "$ref": "#/$defs/ListGroup"
2201
+ },
2202
+ {
2203
+ "$ref": "#/$defs/ContentBlock"
2204
+ }
2205
+ ]
2206
+ }
2207
+ }
2208
+ },
2209
+ "required": [
2210
+ "node",
2211
+ "children"
2212
+ ],
2213
+ "additionalProperties": false
2214
+ },
2215
+ "HeadingGroup": {
2216
+ "type": "object",
2217
+ "properties": {
2218
+ "node": {
2219
+ "$ref": "#/$defs/HeadingParagraph"
2220
+ },
2221
+ "style": {
2222
+ "type": "string"
2223
+ },
2224
+ "children": {
2225
+ "type": "array",
2226
+ "items": {
2227
+ "oneOf": [
2228
+ {
2229
+ "$ref": "#/$defs/HeadingGroup"
2230
+ },
2231
+ {
2232
+ "$ref": "#/$defs/ListGroup"
2233
+ },
2234
+ {
2235
+ "$ref": "#/$defs/ContentBlock"
2236
+ }
2237
+ ]
2238
+ }
2239
+ }
2240
+ },
2241
+ "required": [
2242
+ "node",
2243
+ "children"
2244
+ ],
2245
+ "additionalProperties": false
2246
+ },
2247
+ "ListGroup": {
2248
+ "type": "object",
2249
+ "properties": {
2250
+ "node": {
2251
+ "$ref": "#/$defs/ListParagraph"
2252
+ },
2253
+ "style": {
2254
+ "type": "string"
2255
+ },
2256
+ "children": {
2257
+ "type": "array",
2258
+ "items": {
2259
+ "oneOf": [
2260
+ {
2261
+ "$ref": "#/$defs/ListGroup"
2262
+ },
2263
+ {
2264
+ "$ref": "#/$defs/ContentBlock"
2265
+ }
2266
+ ]
2267
+ }
2268
+ }
2269
+ },
2270
+ "required": [
2271
+ "node",
2272
+ "children"
2273
+ ],
2274
+ "additionalProperties": false
2275
+ },
2276
+ "SlideGroup": {
2277
+ "type": "object",
2278
+ "properties": {
2279
+ "node": {
2280
+ "$ref": "#/$defs/SlideDescriptor"
2281
+ },
2282
+ "style": {
2283
+ "type": "string"
2284
+ },
2285
+ "children": {
2286
+ "type": "array",
2287
+ "items": {
2288
+ "$ref": "#/$defs/ShapeGroup"
2289
+ }
2290
+ }
2291
+ },
2292
+ "required": [
2293
+ "node",
2294
+ "children"
2295
+ ],
2296
+ "additionalProperties": false
2297
+ },
2298
+ "ShapeGroup": {
2299
+ "type": "object",
2300
+ "properties": {
2301
+ "node": {
2302
+ "$ref": "#/$defs/ShapeDescriptor"
2303
+ },
2304
+ "style": {
2305
+ "type": "string"
2306
+ },
2307
+ "children": {
2308
+ "type": "array",
2309
+ "items": {
2310
+ "oneOf": [
2311
+ {
2312
+ "$ref": "#/$defs/ListGroup"
2313
+ },
2314
+ {
2315
+ "$ref": "#/$defs/ContentBlock"
2316
+ }
2317
+ ]
2318
+ }
2319
+ }
2320
+ },
2321
+ "required": [
2322
+ "node",
2323
+ "children"
2324
+ ],
2325
+ "additionalProperties": false
2326
+ },
2327
+ "SheetGroup": {
2328
+ "type": "object",
2329
+ "properties": {
2330
+ "node": {
2331
+ "$ref": "#/$defs/SheetDescriptor"
2332
+ },
2333
+ "style": {
2334
+ "type": "string"
2335
+ },
2336
+ "children": {
2337
+ "type": "array",
2338
+ "items": {
2339
+ "oneOf": [
2340
+ {
2341
+ "$ref": "#/$defs/ContentSheetImage"
2342
+ },
2343
+ {
2344
+ "$ref": "#/$defs/ContentEmbeddedObject"
2345
+ }
2346
+ ]
2347
+ }
2348
+ }
2349
+ },
2350
+ "required": [
2351
+ "node",
2352
+ "children"
2353
+ ],
2354
+ "additionalProperties": false
2355
+ },
2356
+ "DrawPageGroup": {
2357
+ "type": "object",
2358
+ "properties": {
2359
+ "node": {
2360
+ "$ref": "#/$defs/DrawPageDescriptor"
2361
+ },
2362
+ "style": {
2363
+ "type": "string"
2364
+ },
2365
+ "children": {
2366
+ "type": "array",
2367
+ "items": {
2368
+ "oneOf": [
2369
+ {
2370
+ "$ref": "#/$defs/ShapeGroup"
2371
+ },
2372
+ {
2373
+ "$ref": "#/$defs/ContentVector"
2374
+ }
2375
+ ]
2376
+ }
2377
+ }
2378
+ },
2379
+ "required": [
2380
+ "node",
2381
+ "children"
2382
+ ],
2383
+ "additionalProperties": false
2384
+ },
2385
+ "StyleParagraphProperties": {
2386
+ "type": "object",
2387
+ "properties": {
2388
+ "alignment": {
2389
+ "$ref": "#/$defs/Alignment"
2390
+ },
2391
+ "list": {
2392
+ "$ref": "#/$defs/ContentListMembership"
2393
+ },
2394
+ "spacingBeforePt": {
2395
+ "type": "number"
2396
+ },
2397
+ "spacingAfterPt": {
2398
+ "type": "number"
2399
+ },
2400
+ "lineSpacing": {
2401
+ "type": "number",
2402
+ "exclusiveMinimum": 0
2403
+ },
2404
+ "indentLeftPt": {
2405
+ "type": "number"
2406
+ },
2407
+ "indentFirstLinePt": {
2408
+ "type": "number"
2409
+ }
2410
+ },
2411
+ "additionalProperties": false
2412
+ },
2413
+ "StyleRunProperties": {
2414
+ "type": "object",
2415
+ "properties": {
2416
+ "bold": {
2417
+ "type": "boolean"
2418
+ },
2419
+ "italic": {
2420
+ "type": "boolean"
2421
+ },
2422
+ "underline": {
2423
+ "type": "boolean"
2424
+ },
2425
+ "strike": {
2426
+ "type": "boolean"
2427
+ },
2428
+ "fontFamily": {
2429
+ "type": "string"
2430
+ },
2431
+ "sizePt": {
2432
+ "type": "number",
2433
+ "exclusiveMinimum": 0
2434
+ },
2435
+ "color": {
2436
+ "$ref": "#/$defs/Color"
2437
+ }
2438
+ },
2439
+ "additionalProperties": false
2440
+ },
2441
+ "StyleEntry": {
2442
+ "type": "object",
2443
+ "properties": {
2444
+ "paragraph": {
2445
+ "$ref": "#/$defs/StyleParagraphProperties"
2446
+ },
2447
+ "run": {
2448
+ "$ref": "#/$defs/StyleRunProperties"
2449
+ }
2450
+ },
2451
+ "additionalProperties": false
2452
+ },
2453
+ "DefinitionEntry": {
2454
+ "type": "object",
2455
+ "properties": {
2456
+ "kind": {
2457
+ "type": "string"
2458
+ }
2459
+ },
2460
+ "required": [
2461
+ "kind"
2462
+ ],
2463
+ "additionalProperties": {}
2464
+ },
2465
+ "MathMlAttribute": {
2466
+ "type": "object",
2467
+ "properties": {
2468
+ "name": {
2469
+ "type": "string"
2470
+ },
2471
+ "value": {
2472
+ "type": "string"
2473
+ }
2474
+ },
2475
+ "required": [
2476
+ "name",
2477
+ "value"
2478
+ ],
2479
+ "additionalProperties": false
2480
+ },
2481
+ "MathMlElement": {
2482
+ "type": "object",
2483
+ "properties": {
2484
+ "type": {
2485
+ "type": "string",
2486
+ "const": "element"
2487
+ },
2488
+ "tag": {
2489
+ "type": "string"
2490
+ },
2491
+ "attributes": {
2492
+ "type": "array",
2493
+ "items": {
2494
+ "$ref": "#/$defs/MathMlAttribute"
2495
+ }
2496
+ },
2497
+ "children": {
2498
+ "type": "array",
2499
+ "items": {
2500
+ "$ref": "#/$defs/MathMlNode"
2501
+ }
2502
+ }
2503
+ },
2504
+ "required": [
2505
+ "type",
2506
+ "tag",
2507
+ "attributes",
2508
+ "children"
2509
+ ],
2510
+ "additionalProperties": false
2511
+ },
2512
+ "MathMlNode": {
2513
+ "oneOf": [
2514
+ {
2515
+ "type": "object",
2516
+ "properties": {
2517
+ "type": {
2518
+ "type": "string",
2519
+ "const": "text"
2520
+ },
2521
+ "value": {
2522
+ "type": "string"
2523
+ }
2524
+ },
2525
+ "required": [
2526
+ "type",
2527
+ "value"
2528
+ ],
2529
+ "additionalProperties": false
2530
+ },
2531
+ {
2532
+ "type": "object",
2533
+ "properties": {
2534
+ "type": {
2535
+ "type": "string",
2536
+ "const": "cdata"
2537
+ },
2538
+ "value": {
2539
+ "type": "string"
2540
+ }
2541
+ },
2542
+ "required": [
2543
+ "type",
2544
+ "value"
2545
+ ],
2546
+ "additionalProperties": false
2547
+ },
2548
+ {
2549
+ "type": "object",
2550
+ "properties": {
2551
+ "type": {
2552
+ "type": "string",
2553
+ "const": "comment"
2554
+ },
2555
+ "value": {
2556
+ "type": "string"
2557
+ }
2558
+ },
2559
+ "required": [
2560
+ "type",
2561
+ "value"
2562
+ ],
2563
+ "additionalProperties": false
2564
+ },
2565
+ {
2566
+ "type": "object",
2567
+ "properties": {
2568
+ "type": {
2569
+ "type": "string",
2570
+ "const": "declaration"
2571
+ },
2572
+ "attributes": {
2573
+ "type": "array",
2574
+ "items": {
2575
+ "$ref": "#/$defs/MathMlAttribute"
2576
+ }
2577
+ }
2578
+ },
2579
+ "required": [
2580
+ "type",
2581
+ "attributes"
2582
+ ],
2583
+ "additionalProperties": false
2584
+ },
2585
+ {
2586
+ "type": "object",
2587
+ "properties": {
2588
+ "type": {
2589
+ "type": "string",
2590
+ "const": "pi"
2591
+ },
2592
+ "target": {
2593
+ "type": "string"
2594
+ },
2595
+ "content": {
2596
+ "type": "string"
2597
+ }
2598
+ },
2599
+ "required": [
2600
+ "type",
2601
+ "target",
2602
+ "content"
2603
+ ],
2604
+ "additionalProperties": false
2605
+ },
2606
+ {
2607
+ "$ref": "#/$defs/MathMlElement"
2608
+ }
2609
+ ]
2610
+ },
2611
+ "ContentFormula": {
2612
+ "type": "object",
2613
+ "properties": {
2614
+ "mathml": {
2615
+ "type": "array",
2616
+ "items": {
2617
+ "$ref": "#/$defs/MathMlNode"
2618
+ }
2619
+ },
2620
+ "starMath": {
2621
+ "type": "string"
2622
+ },
2623
+ "presentation": {
2624
+ "$ref": "#/$defs/MathPresentation"
2625
+ },
2626
+ "content": {
2627
+ "$ref": "#/$defs/MathExpression"
2628
+ },
2629
+ "provenance": {
2630
+ "$ref": "#/$defs/MathProvenance"
2631
+ }
2632
+ },
2633
+ "required": [
2634
+ "mathml"
2635
+ ],
2636
+ "additionalProperties": false
2637
+ },
2638
+ "ExactRational": {
2639
+ "type": "object",
2640
+ "properties": {
2641
+ "numerator": {
2642
+ "type": "string",
2643
+ "pattern": "^(0|-?[1-9]\\d*)$"
2644
+ },
2645
+ "denominator": {
2646
+ "type": "string",
2647
+ "pattern": "^[1-9]\\d*$"
2648
+ }
2649
+ },
2650
+ "required": [
2651
+ "numerator",
2652
+ "denominator"
2653
+ ],
2654
+ "additionalProperties": false
2655
+ },
2656
+ "DimensionVector": {
2657
+ "type": "object",
2658
+ "propertyNames": {
2659
+ "type": "string",
2660
+ "enum": [
2661
+ "length",
2662
+ "mass",
2663
+ "time",
2664
+ "electricCurrent",
2665
+ "thermodynamicTemperature",
2666
+ "amountOfSubstance",
2667
+ "luminousIntensity"
2668
+ ]
2669
+ },
2670
+ "additionalProperties": {
2671
+ "type": "integer",
2672
+ "minimum": -9007199254740991,
2673
+ "maximum": 9007199254740991
32
2674
  }
2675
+ },
2676
+ "MathPresentation": {
2677
+ "type": "object",
2678
+ "properties": {
2679
+ "latex": {
2680
+ "type": "string"
2681
+ }
2682
+ },
2683
+ "required": [
2684
+ "latex"
2685
+ ],
2686
+ "additionalProperties": false
2687
+ },
2688
+ "MathProvenance": {
2689
+ "type": "object",
2690
+ "properties": {
2691
+ "source": {
2692
+ "type": "string"
2693
+ },
2694
+ "pageRef": {
2695
+ "type": "string"
2696
+ },
2697
+ "editTrail": {
2698
+ "type": "array",
2699
+ "items": {
2700
+ "type": "string"
2701
+ }
2702
+ }
2703
+ },
2704
+ "required": [
2705
+ "source",
2706
+ "editTrail"
2707
+ ],
2708
+ "additionalProperties": false
2709
+ },
2710
+ "MathUncertainty": {
2711
+ "type": "object",
2712
+ "properties": {
2713
+ "magnitude": {
2714
+ "$ref": "#/$defs/ExactRational"
2715
+ },
2716
+ "unit": {
2717
+ "type": "string"
2718
+ },
2719
+ "coverageFactor": {
2720
+ "type": "number",
2721
+ "exclusiveMinimum": 0
2722
+ }
2723
+ },
2724
+ "required": [
2725
+ "magnitude"
2726
+ ],
2727
+ "additionalProperties": false
2728
+ },
2729
+ "MathSymbolEntry": {
2730
+ "type": "object",
2731
+ "properties": {
2732
+ "glyph": {
2733
+ "type": "string"
2734
+ },
2735
+ "scope": {
2736
+ "type": "string"
2737
+ },
2738
+ "id": {
2739
+ "type": "string"
2740
+ },
2741
+ "quantityKind": {
2742
+ "type": "string"
2743
+ },
2744
+ "preferredUnit": {
2745
+ "type": "string"
2746
+ },
2747
+ "definitionSource": {
2748
+ "type": "string"
2749
+ }
2750
+ },
2751
+ "required": [
2752
+ "glyph",
2753
+ "scope",
2754
+ "id"
2755
+ ],
2756
+ "additionalProperties": false
2757
+ },
2758
+ "MathUnit": {
2759
+ "type": "object",
2760
+ "properties": {
2761
+ "id": {
2762
+ "type": "string"
2763
+ },
2764
+ "symbol": {
2765
+ "type": "string"
2766
+ },
2767
+ "name": {
2768
+ "type": "string"
2769
+ },
2770
+ "dimension": {
2771
+ "$ref": "#/$defs/DimensionVector"
2772
+ },
2773
+ "factorToSi": {
2774
+ "$ref": "#/$defs/ExactRational"
2775
+ },
2776
+ "offsetToSi": {
2777
+ "$ref": "#/$defs/ExactRational"
2778
+ },
2779
+ "context": {
2780
+ "type": "string"
2781
+ }
2782
+ },
2783
+ "required": [
2784
+ "id",
2785
+ "symbol",
2786
+ "dimension",
2787
+ "factorToSi"
2788
+ ],
2789
+ "additionalProperties": false
2790
+ },
2791
+ "MathNormalisationContext": {
2792
+ "type": "object",
2793
+ "properties": {
2794
+ "id": {
2795
+ "type": "string"
2796
+ },
2797
+ "bases": {
2798
+ "type": "array",
2799
+ "items": {
2800
+ "type": "object",
2801
+ "properties": {
2802
+ "unit": {
2803
+ "type": "string"
2804
+ },
2805
+ "value": {
2806
+ "$ref": "#/$defs/ExactRational"
2807
+ }
2808
+ },
2809
+ "required": [
2810
+ "unit",
2811
+ "value"
2812
+ ],
2813
+ "additionalProperties": false
2814
+ }
2815
+ }
2816
+ },
2817
+ "required": [
2818
+ "id",
2819
+ "bases"
2820
+ ],
2821
+ "additionalProperties": false
2822
+ },
2823
+ "SymbolTable": {
2824
+ "type": "object",
2825
+ "properties": {
2826
+ "symbols": {
2827
+ "type": "array",
2828
+ "items": {
2829
+ "$ref": "#/$defs/MathSymbolEntry"
2830
+ }
2831
+ },
2832
+ "units": {
2833
+ "type": "array",
2834
+ "items": {
2835
+ "$ref": "#/$defs/MathUnit"
2836
+ }
2837
+ },
2838
+ "contexts": {
2839
+ "type": "array",
2840
+ "items": {
2841
+ "$ref": "#/$defs/MathNormalisationContext"
2842
+ }
2843
+ }
2844
+ },
2845
+ "required": [
2846
+ "symbols",
2847
+ "units"
2848
+ ],
2849
+ "additionalProperties": false
2850
+ },
2851
+ "MathNum": {
2852
+ "type": "object",
2853
+ "properties": {
2854
+ "kind": {
2855
+ "type": "string",
2856
+ "const": "num"
2857
+ },
2858
+ "numerator": {
2859
+ "type": "string",
2860
+ "pattern": "^(0|-?[1-9]\\d*)$"
2861
+ },
2862
+ "denominator": {
2863
+ "type": "string",
2864
+ "pattern": "^[1-9]\\d*$"
2865
+ }
2866
+ },
2867
+ "required": [
2868
+ "kind",
2869
+ "numerator",
2870
+ "denominator"
2871
+ ],
2872
+ "additionalProperties": false
2873
+ },
2874
+ "MathQty": {
2875
+ "type": "object",
2876
+ "properties": {
2877
+ "kind": {
2878
+ "type": "string",
2879
+ "const": "qty"
2880
+ },
2881
+ "value": {
2882
+ "$ref": "#/$defs/ExactRational"
2883
+ },
2884
+ "unit": {
2885
+ "type": "string"
2886
+ },
2887
+ "uncertainty": {
2888
+ "$ref": "#/$defs/MathUncertainty"
2889
+ }
2890
+ },
2891
+ "required": [
2892
+ "kind",
2893
+ "value",
2894
+ "unit"
2895
+ ],
2896
+ "additionalProperties": false
2897
+ },
2898
+ "MathSym": {
2899
+ "type": "object",
2900
+ "properties": {
2901
+ "kind": {
2902
+ "type": "string",
2903
+ "const": "sym"
2904
+ },
2905
+ "id": {
2906
+ "type": "string"
2907
+ }
2908
+ },
2909
+ "required": [
2910
+ "kind",
2911
+ "id"
2912
+ ],
2913
+ "additionalProperties": false
2914
+ },
2915
+ "MathApp": {
2916
+ "type": "object",
2917
+ "properties": {
2918
+ "kind": {
2919
+ "type": "string",
2920
+ "const": "app"
2921
+ },
2922
+ "operator": {
2923
+ "type": "string"
2924
+ },
2925
+ "args": {
2926
+ "type": "array",
2927
+ "items": {
2928
+ "$ref": "#/$defs/MathExpression"
2929
+ }
2930
+ }
2931
+ },
2932
+ "required": [
2933
+ "kind",
2934
+ "operator",
2935
+ "args"
2936
+ ],
2937
+ "additionalProperties": false
2938
+ },
2939
+ "MathSum": {
2940
+ "type": "object",
2941
+ "properties": {
2942
+ "kind": {
2943
+ "type": "string",
2944
+ "const": "sum"
2945
+ },
2946
+ "binder": {
2947
+ "type": "string"
2948
+ },
2949
+ "lower": {
2950
+ "$ref": "#/$defs/MathExpression"
2951
+ },
2952
+ "upper": {
2953
+ "$ref": "#/$defs/MathExpression"
2954
+ },
2955
+ "body": {
2956
+ "$ref": "#/$defs/MathExpression"
2957
+ }
2958
+ },
2959
+ "required": [
2960
+ "kind",
2961
+ "binder",
2962
+ "lower",
2963
+ "upper",
2964
+ "body"
2965
+ ],
2966
+ "additionalProperties": false
2967
+ },
2968
+ "MathProd": {
2969
+ "type": "object",
2970
+ "properties": {
2971
+ "kind": {
2972
+ "type": "string",
2973
+ "const": "prod"
2974
+ },
2975
+ "binder": {
2976
+ "type": "string"
2977
+ },
2978
+ "lower": {
2979
+ "$ref": "#/$defs/MathExpression"
2980
+ },
2981
+ "upper": {
2982
+ "$ref": "#/$defs/MathExpression"
2983
+ },
2984
+ "body": {
2985
+ "$ref": "#/$defs/MathExpression"
2986
+ }
2987
+ },
2988
+ "required": [
2989
+ "kind",
2990
+ "binder",
2991
+ "lower",
2992
+ "upper",
2993
+ "body"
2994
+ ],
2995
+ "additionalProperties": false
2996
+ },
2997
+ "MathMatrix": {
2998
+ "type": "object",
2999
+ "properties": {
3000
+ "kind": {
3001
+ "type": "string",
3002
+ "const": "matrix"
3003
+ },
3004
+ "rows": {
3005
+ "type": "array",
3006
+ "items": {
3007
+ "type": "array",
3008
+ "items": {
3009
+ "$ref": "#/$defs/MathExpression"
3010
+ }
3011
+ }
3012
+ }
3013
+ },
3014
+ "required": [
3015
+ "kind",
3016
+ "rows"
3017
+ ],
3018
+ "additionalProperties": false
3019
+ },
3020
+ "MathUnparsed": {
3021
+ "type": "object",
3022
+ "properties": {
3023
+ "kind": {
3024
+ "type": "string",
3025
+ "const": "unparsed"
3026
+ },
3027
+ "latex": {
3028
+ "type": "string"
3029
+ }
3030
+ },
3031
+ "required": [
3032
+ "kind",
3033
+ "latex"
3034
+ ],
3035
+ "additionalProperties": false
3036
+ },
3037
+ "MathExpression": {
3038
+ "oneOf": [
3039
+ {
3040
+ "$ref": "#/$defs/MathNum"
3041
+ },
3042
+ {
3043
+ "$ref": "#/$defs/MathQty"
3044
+ },
3045
+ {
3046
+ "$ref": "#/$defs/MathSym"
3047
+ },
3048
+ {
3049
+ "$ref": "#/$defs/MathApp"
3050
+ },
3051
+ {
3052
+ "$ref": "#/$defs/MathSum"
3053
+ },
3054
+ {
3055
+ "$ref": "#/$defs/MathProd"
3056
+ },
3057
+ {
3058
+ "$ref": "#/$defs/MathMatrix"
3059
+ },
3060
+ {
3061
+ "$ref": "#/$defs/MathUnparsed"
3062
+ }
3063
+ ]
33
3064
  }
34
- },
35
- "required": [
36
- "formatVersion",
37
- "content"
38
- ],
39
- "additionalProperties": false
3065
+ }
40
3066
  }