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