@openplanr/protocol 0.5.0 → 0.6.1

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