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