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