@atlaskit/adf-schema 44.5.0 → 44.6.1

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