@atlaskit/adf-schema 51.5.2 → 51.5.3

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