@norio-office/rich-text 0.8.0 → 0.8.3

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