@openplanr/protocol 0.13.0 → 0.14.0

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,4369 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v1.21.0/diagram-edit-transaction.schema.json",
4
+ "x-openplanr-contract": {
5
+ "id": "diagram-edit-transaction",
6
+ "version": "1.21.0"
7
+ },
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "kind": {
12
+ "const": "diagram-edit-transaction"
13
+ },
14
+ "schemaVersion": {
15
+ "const": "1.2.0"
16
+ },
17
+ "protocolVersion": {
18
+ "const": "1.21.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
+ "shapeRef": {
613
+ "type": "object",
614
+ "additionalProperties": false,
615
+ "required": [
616
+ "packId",
617
+ "packVersion",
618
+ "shapeId",
619
+ "definitionDigest"
620
+ ],
621
+ "properties": {
622
+ "packId": {
623
+ "type": "string",
624
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
625
+ "maxLength": 128
626
+ },
627
+ "packVersion": {
628
+ "type": "string",
629
+ "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$",
630
+ "maxLength": 32
631
+ },
632
+ "shapeId": {
633
+ "type": "string",
634
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
635
+ "maxLength": 128
636
+ },
637
+ "definitionDigest": {
638
+ "type": "string",
639
+ "pattern": "^sha256:[a-f0-9]{64}$"
640
+ }
641
+ }
642
+ }
643
+ },
644
+ "required": [
645
+ "shape",
646
+ "fill",
647
+ "stroke",
648
+ "strokeWidth",
649
+ "strokeStyle",
650
+ "fontSize",
651
+ "textAlign"
652
+ ]
653
+ },
654
+ "locks": {
655
+ "type": "object",
656
+ "additionalProperties": false,
657
+ "properties": {
658
+ "position": {
659
+ "type": "boolean"
660
+ },
661
+ "size": {
662
+ "type": "boolean"
663
+ },
664
+ "route": {
665
+ "type": "boolean"
666
+ }
667
+ },
668
+ "required": [
669
+ "position",
670
+ "size",
671
+ "route"
672
+ ]
673
+ }
674
+ },
675
+ "required": [
676
+ "elementId",
677
+ "bounds",
678
+ "route",
679
+ "label",
680
+ "zIndex",
681
+ "appearance",
682
+ "locks"
683
+ ]
684
+ },
685
+ "minItems": 1,
686
+ "maxItems": 10000
687
+ },
688
+ "positions": {
689
+ "type": "array",
690
+ "items": {
691
+ "type": "object",
692
+ "additionalProperties": false,
693
+ "properties": {
694
+ "elementId": {
695
+ "type": "string",
696
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
697
+ "minLength": 1,
698
+ "maxLength": 128
699
+ },
700
+ "semanticIndex": {
701
+ "type": "integer",
702
+ "minimum": 0,
703
+ "maximum": 10000
704
+ },
705
+ "presentationIndex": {
706
+ "type": "integer",
707
+ "minimum": 0,
708
+ "maximum": 10000
709
+ }
710
+ },
711
+ "required": [
712
+ "elementId",
713
+ "semanticIndex",
714
+ "presentationIndex"
715
+ ]
716
+ },
717
+ "minItems": 1,
718
+ "maxItems": 10000
719
+ }
720
+ },
721
+ "required": [
722
+ "type",
723
+ "elements",
724
+ "presentation"
725
+ ]
726
+ },
727
+ {
728
+ "type": "object",
729
+ "additionalProperties": false,
730
+ "properties": {
731
+ "type": {
732
+ "const": "update-semantics"
733
+ },
734
+ "collection": {
735
+ "const": "nodes"
736
+ },
737
+ "elementId": {
738
+ "type": "string",
739
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
740
+ "minLength": 1,
741
+ "maxLength": 128
742
+ },
743
+ "before": {
744
+ "type": "object",
745
+ "additionalProperties": false,
746
+ "properties": {
747
+ "label": {
748
+ "type": "string",
749
+ "minLength": 0,
750
+ "maxLength": 4096
751
+ },
752
+ "kind": {
753
+ "enum": [
754
+ "process",
755
+ "start",
756
+ "end",
757
+ "decision",
758
+ "data-store",
759
+ "component"
760
+ ]
761
+ },
762
+ "description": {
763
+ "anyOf": [
764
+ {
765
+ "type": "null"
766
+ },
767
+ {
768
+ "type": "string",
769
+ "minLength": 0,
770
+ "maxLength": 4096
771
+ }
772
+ ]
773
+ }
774
+ },
775
+ "required": [
776
+ "label",
777
+ "kind",
778
+ "description"
779
+ ]
780
+ },
781
+ "after": {
782
+ "type": "object",
783
+ "additionalProperties": false,
784
+ "properties": {
785
+ "label": {
786
+ "type": "string",
787
+ "minLength": 0,
788
+ "maxLength": 4096
789
+ },
790
+ "kind": {
791
+ "enum": [
792
+ "process",
793
+ "start",
794
+ "end",
795
+ "decision",
796
+ "data-store",
797
+ "component"
798
+ ]
799
+ },
800
+ "description": {
801
+ "anyOf": [
802
+ {
803
+ "type": "null"
804
+ },
805
+ {
806
+ "type": "string",
807
+ "minLength": 0,
808
+ "maxLength": 4096
809
+ }
810
+ ]
811
+ }
812
+ },
813
+ "required": [
814
+ "label",
815
+ "kind",
816
+ "description"
817
+ ]
818
+ }
819
+ },
820
+ "required": [
821
+ "type",
822
+ "collection",
823
+ "elementId",
824
+ "before",
825
+ "after"
826
+ ]
827
+ },
828
+ {
829
+ "type": "object",
830
+ "additionalProperties": false,
831
+ "properties": {
832
+ "type": {
833
+ "const": "update-semantics"
834
+ },
835
+ "collection": {
836
+ "const": "relations"
837
+ },
838
+ "elementId": {
839
+ "type": "string",
840
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
841
+ "minLength": 1,
842
+ "maxLength": 128
843
+ },
844
+ "before": {
845
+ "type": "object",
846
+ "additionalProperties": false,
847
+ "properties": {
848
+ "from": {
849
+ "type": "string",
850
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
851
+ "minLength": 1,
852
+ "maxLength": 128
853
+ },
854
+ "to": {
855
+ "type": "string",
856
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
857
+ "minLength": 1,
858
+ "maxLength": 128
859
+ },
860
+ "kind": {
861
+ "enum": [
862
+ "association",
863
+ "dependency",
864
+ "flow",
865
+ "message",
866
+ "transition"
867
+ ]
868
+ },
869
+ "direction": {
870
+ "enum": [
871
+ "forward",
872
+ "both",
873
+ "none"
874
+ ]
875
+ },
876
+ "label": {
877
+ "anyOf": [
878
+ {
879
+ "type": "null"
880
+ },
881
+ {
882
+ "type": "string",
883
+ "minLength": 0,
884
+ "maxLength": 4096
885
+ }
886
+ ]
887
+ },
888
+ "weight": {
889
+ "anyOf": [
890
+ {
891
+ "type": "null"
892
+ },
893
+ {
894
+ "type": "number",
895
+ "minimum": 0,
896
+ "maximum": 1000000
897
+ }
898
+ ]
899
+ }
900
+ },
901
+ "required": [
902
+ "from",
903
+ "to",
904
+ "kind",
905
+ "direction",
906
+ "label",
907
+ "weight"
908
+ ]
909
+ },
910
+ "after": {
911
+ "type": "object",
912
+ "additionalProperties": false,
913
+ "properties": {
914
+ "from": {
915
+ "type": "string",
916
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
917
+ "minLength": 1,
918
+ "maxLength": 128
919
+ },
920
+ "to": {
921
+ "type": "string",
922
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
923
+ "minLength": 1,
924
+ "maxLength": 128
925
+ },
926
+ "kind": {
927
+ "enum": [
928
+ "association",
929
+ "dependency",
930
+ "flow",
931
+ "message",
932
+ "transition"
933
+ ]
934
+ },
935
+ "direction": {
936
+ "enum": [
937
+ "forward",
938
+ "both",
939
+ "none"
940
+ ]
941
+ },
942
+ "label": {
943
+ "anyOf": [
944
+ {
945
+ "type": "null"
946
+ },
947
+ {
948
+ "type": "string",
949
+ "minLength": 0,
950
+ "maxLength": 4096
951
+ }
952
+ ]
953
+ },
954
+ "weight": {
955
+ "anyOf": [
956
+ {
957
+ "type": "null"
958
+ },
959
+ {
960
+ "type": "number",
961
+ "minimum": 0,
962
+ "maximum": 1000000
963
+ }
964
+ ]
965
+ }
966
+ },
967
+ "required": [
968
+ "from",
969
+ "to",
970
+ "kind",
971
+ "direction",
972
+ "label",
973
+ "weight"
974
+ ]
975
+ }
976
+ },
977
+ "required": [
978
+ "type",
979
+ "collection",
980
+ "elementId",
981
+ "before",
982
+ "after"
983
+ ]
984
+ },
985
+ {
986
+ "type": "object",
987
+ "additionalProperties": false,
988
+ "properties": {
989
+ "type": {
990
+ "const": "update-semantics"
991
+ },
992
+ "collection": {
993
+ "const": "groups"
994
+ },
995
+ "elementId": {
996
+ "type": "string",
997
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
998
+ "minLength": 1,
999
+ "maxLength": 128
1000
+ },
1001
+ "before": {
1002
+ "type": "object",
1003
+ "additionalProperties": false,
1004
+ "properties": {
1005
+ "label": {
1006
+ "type": "string",
1007
+ "minLength": 0,
1008
+ "maxLength": 4096
1009
+ }
1010
+ },
1011
+ "required": [
1012
+ "label"
1013
+ ]
1014
+ },
1015
+ "after": {
1016
+ "type": "object",
1017
+ "additionalProperties": false,
1018
+ "properties": {
1019
+ "label": {
1020
+ "type": "string",
1021
+ "minLength": 0,
1022
+ "maxLength": 4096
1023
+ }
1024
+ },
1025
+ "required": [
1026
+ "label"
1027
+ ]
1028
+ }
1029
+ },
1030
+ "required": [
1031
+ "type",
1032
+ "collection",
1033
+ "elementId",
1034
+ "before",
1035
+ "after"
1036
+ ]
1037
+ },
1038
+ {
1039
+ "type": "object",
1040
+ "additionalProperties": false,
1041
+ "properties": {
1042
+ "type": {
1043
+ "const": "update-semantics"
1044
+ },
1045
+ "collection": {
1046
+ "const": "lanes"
1047
+ },
1048
+ "elementId": {
1049
+ "type": "string",
1050
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1051
+ "minLength": 1,
1052
+ "maxLength": 128
1053
+ },
1054
+ "before": {
1055
+ "type": "object",
1056
+ "additionalProperties": false,
1057
+ "properties": {
1058
+ "label": {
1059
+ "type": "string",
1060
+ "minLength": 0,
1061
+ "maxLength": 4096
1062
+ }
1063
+ },
1064
+ "required": [
1065
+ "label"
1066
+ ]
1067
+ },
1068
+ "after": {
1069
+ "type": "object",
1070
+ "additionalProperties": false,
1071
+ "properties": {
1072
+ "label": {
1073
+ "type": "string",
1074
+ "minLength": 0,
1075
+ "maxLength": 4096
1076
+ }
1077
+ },
1078
+ "required": [
1079
+ "label"
1080
+ ]
1081
+ }
1082
+ },
1083
+ "required": [
1084
+ "type",
1085
+ "collection",
1086
+ "elementId",
1087
+ "before",
1088
+ "after"
1089
+ ]
1090
+ },
1091
+ {
1092
+ "type": "object",
1093
+ "additionalProperties": false,
1094
+ "properties": {
1095
+ "type": {
1096
+ "const": "update-semantics"
1097
+ },
1098
+ "collection": {
1099
+ "const": "annotations"
1100
+ },
1101
+ "elementId": {
1102
+ "type": "string",
1103
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1104
+ "minLength": 1,
1105
+ "maxLength": 128
1106
+ },
1107
+ "before": {
1108
+ "type": "object",
1109
+ "additionalProperties": false,
1110
+ "properties": {
1111
+ "text": {
1112
+ "type": "string",
1113
+ "minLength": 0,
1114
+ "maxLength": 4096
1115
+ },
1116
+ "targetId": {
1117
+ "anyOf": [
1118
+ {
1119
+ "type": "null"
1120
+ },
1121
+ {
1122
+ "type": "string",
1123
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1124
+ "minLength": 1,
1125
+ "maxLength": 128
1126
+ }
1127
+ ]
1128
+ }
1129
+ },
1130
+ "required": [
1131
+ "text",
1132
+ "targetId"
1133
+ ]
1134
+ },
1135
+ "after": {
1136
+ "type": "object",
1137
+ "additionalProperties": false,
1138
+ "properties": {
1139
+ "text": {
1140
+ "type": "string",
1141
+ "minLength": 0,
1142
+ "maxLength": 4096
1143
+ },
1144
+ "targetId": {
1145
+ "anyOf": [
1146
+ {
1147
+ "type": "null"
1148
+ },
1149
+ {
1150
+ "type": "string",
1151
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1152
+ "minLength": 1,
1153
+ "maxLength": 128
1154
+ }
1155
+ ]
1156
+ }
1157
+ },
1158
+ "required": [
1159
+ "text",
1160
+ "targetId"
1161
+ ]
1162
+ }
1163
+ },
1164
+ "required": [
1165
+ "type",
1166
+ "collection",
1167
+ "elementId",
1168
+ "before",
1169
+ "after"
1170
+ ]
1171
+ },
1172
+ {
1173
+ "type": "object",
1174
+ "additionalProperties": false,
1175
+ "properties": {
1176
+ "type": {
1177
+ "const": "update-semantics"
1178
+ },
1179
+ "collection": {
1180
+ "const": "emphasis"
1181
+ },
1182
+ "elementId": {
1183
+ "type": "string",
1184
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1185
+ "minLength": 1,
1186
+ "maxLength": 128
1187
+ },
1188
+ "before": {
1189
+ "anyOf": [
1190
+ {
1191
+ "type": "null"
1192
+ },
1193
+ {
1194
+ "enum": [
1195
+ "primary",
1196
+ "secondary",
1197
+ "muted"
1198
+ ]
1199
+ }
1200
+ ]
1201
+ },
1202
+ "after": {
1203
+ "anyOf": [
1204
+ {
1205
+ "type": "null"
1206
+ },
1207
+ {
1208
+ "enum": [
1209
+ "primary",
1210
+ "secondary",
1211
+ "muted"
1212
+ ]
1213
+ }
1214
+ ]
1215
+ },
1216
+ "index": {
1217
+ "type": "integer",
1218
+ "minimum": 0,
1219
+ "maximum": 1024
1220
+ }
1221
+ },
1222
+ "required": [
1223
+ "type",
1224
+ "collection",
1225
+ "elementId",
1226
+ "before",
1227
+ "after"
1228
+ ]
1229
+ },
1230
+ {
1231
+ "type": "object",
1232
+ "additionalProperties": false,
1233
+ "properties": {
1234
+ "type": {
1235
+ "const": "update-semantics"
1236
+ },
1237
+ "collection": {
1238
+ "const": "document"
1239
+ },
1240
+ "before": {
1241
+ "type": "object",
1242
+ "additionalProperties": false,
1243
+ "properties": {
1244
+ "title": {
1245
+ "type": "string",
1246
+ "minLength": 0,
1247
+ "maxLength": 4096
1248
+ },
1249
+ "summary": {
1250
+ "type": "string",
1251
+ "minLength": 0,
1252
+ "maxLength": 4096
1253
+ },
1254
+ "audience": {
1255
+ "enum": [
1256
+ "engineer",
1257
+ "executive",
1258
+ "mixed"
1259
+ ]
1260
+ },
1261
+ "accessibility": {
1262
+ "type": "object",
1263
+ "additionalProperties": false,
1264
+ "properties": {
1265
+ "title": {
1266
+ "type": "string",
1267
+ "minLength": 0,
1268
+ "maxLength": 4096
1269
+ },
1270
+ "description": {
1271
+ "type": "string",
1272
+ "minLength": 0,
1273
+ "maxLength": 4096
1274
+ },
1275
+ "readingOrder": {
1276
+ "type": "array",
1277
+ "items": {
1278
+ "type": "string",
1279
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1280
+ "minLength": 1,
1281
+ "maxLength": 128
1282
+ },
1283
+ "minItems": 0,
1284
+ "maxItems": 10000,
1285
+ "uniqueItems": true
1286
+ }
1287
+ },
1288
+ "required": [
1289
+ "title",
1290
+ "description",
1291
+ "readingOrder"
1292
+ ]
1293
+ }
1294
+ },
1295
+ "required": [
1296
+ "title",
1297
+ "summary",
1298
+ "audience",
1299
+ "accessibility"
1300
+ ]
1301
+ },
1302
+ "after": {
1303
+ "type": "object",
1304
+ "additionalProperties": false,
1305
+ "properties": {
1306
+ "title": {
1307
+ "type": "string",
1308
+ "minLength": 0,
1309
+ "maxLength": 4096
1310
+ },
1311
+ "summary": {
1312
+ "type": "string",
1313
+ "minLength": 0,
1314
+ "maxLength": 4096
1315
+ },
1316
+ "audience": {
1317
+ "enum": [
1318
+ "engineer",
1319
+ "executive",
1320
+ "mixed"
1321
+ ]
1322
+ },
1323
+ "accessibility": {
1324
+ "type": "object",
1325
+ "additionalProperties": false,
1326
+ "properties": {
1327
+ "title": {
1328
+ "type": "string",
1329
+ "minLength": 0,
1330
+ "maxLength": 4096
1331
+ },
1332
+ "description": {
1333
+ "type": "string",
1334
+ "minLength": 0,
1335
+ "maxLength": 4096
1336
+ },
1337
+ "readingOrder": {
1338
+ "type": "array",
1339
+ "items": {
1340
+ "type": "string",
1341
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1342
+ "minLength": 1,
1343
+ "maxLength": 128
1344
+ },
1345
+ "minItems": 0,
1346
+ "maxItems": 10000,
1347
+ "uniqueItems": true
1348
+ }
1349
+ },
1350
+ "required": [
1351
+ "title",
1352
+ "description",
1353
+ "readingOrder"
1354
+ ]
1355
+ }
1356
+ },
1357
+ "required": [
1358
+ "title",
1359
+ "summary",
1360
+ "audience",
1361
+ "accessibility"
1362
+ ]
1363
+ }
1364
+ },
1365
+ "required": [
1366
+ "type",
1367
+ "collection",
1368
+ "before",
1369
+ "after"
1370
+ ]
1371
+ },
1372
+ {
1373
+ "type": "object",
1374
+ "additionalProperties": false,
1375
+ "properties": {
1376
+ "type": {
1377
+ "const": "update-semantics"
1378
+ },
1379
+ "collection": {
1380
+ "const": "source-map"
1381
+ },
1382
+ "before": {
1383
+ "anyOf": [
1384
+ {
1385
+ "type": "null"
1386
+ },
1387
+ {
1388
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1389
+ "$id": "https://openplanr.dev/schemas/v1.13.0/diagram-source-map.schema.json",
1390
+ "x-openplanr-contract": {
1391
+ "id": "diagram-source-map",
1392
+ "version": "1.13.0"
1393
+ },
1394
+ "type": "object",
1395
+ "additionalProperties": false,
1396
+ "properties": {
1397
+ "kind": {
1398
+ "const": "diagram-source-map"
1399
+ },
1400
+ "schemaVersion": {
1401
+ "const": "1.0.0"
1402
+ },
1403
+ "protocolVersion": {
1404
+ "const": "1.13.0"
1405
+ },
1406
+ "diagramId": {
1407
+ "type": "string",
1408
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1409
+ "minLength": 1,
1410
+ "maxLength": 128
1411
+ },
1412
+ "semanticDigest": {
1413
+ "type": "string",
1414
+ "pattern": "^sha256:[a-f0-9]{64}$"
1415
+ },
1416
+ "sourceDigest": {
1417
+ "type": "string",
1418
+ "pattern": "^sha256:[a-f0-9]{64}$"
1419
+ },
1420
+ "sourceByteLength": {
1421
+ "type": "integer",
1422
+ "minimum": 0,
1423
+ "maximum": 1048576
1424
+ },
1425
+ "encoding": {
1426
+ "const": "utf-8"
1427
+ },
1428
+ "parser": {
1429
+ "type": "object",
1430
+ "additionalProperties": false,
1431
+ "properties": {
1432
+ "id": {
1433
+ "type": "string",
1434
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1435
+ "maxLength": 64
1436
+ },
1437
+ "version": {
1438
+ "type": "string",
1439
+ "minLength": 1,
1440
+ "maxLength": 64
1441
+ }
1442
+ },
1443
+ "required": [
1444
+ "id",
1445
+ "version"
1446
+ ]
1447
+ },
1448
+ "certificationVersion": {
1449
+ "const": "flowchart-copy-v1"
1450
+ },
1451
+ "entries": {
1452
+ "type": "array",
1453
+ "items": {
1454
+ "type": "object",
1455
+ "additionalProperties": false,
1456
+ "properties": {
1457
+ "sourceId": {
1458
+ "anyOf": [
1459
+ {
1460
+ "type": "null"
1461
+ },
1462
+ {
1463
+ "type": "string",
1464
+ "minLength": 1,
1465
+ "maxLength": 128
1466
+ }
1467
+ ]
1468
+ },
1469
+ "elementIds": {
1470
+ "type": "array",
1471
+ "items": {
1472
+ "type": "string",
1473
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1474
+ "minLength": 1,
1475
+ "maxLength": 128
1476
+ },
1477
+ "minItems": 0,
1478
+ "maxItems": 10000,
1479
+ "uniqueItems": true
1480
+ },
1481
+ "range": {
1482
+ "anyOf": [
1483
+ {
1484
+ "type": "null"
1485
+ },
1486
+ {
1487
+ "type": "object",
1488
+ "additionalProperties": false,
1489
+ "properties": {
1490
+ "startByte": {
1491
+ "type": "integer",
1492
+ "minimum": 0,
1493
+ "maximum": 1048576
1494
+ },
1495
+ "endByte": {
1496
+ "type": "integer",
1497
+ "minimum": 0,
1498
+ "maximum": 1048576
1499
+ }
1500
+ },
1501
+ "required": [
1502
+ "startByte",
1503
+ "endByte"
1504
+ ]
1505
+ }
1506
+ ]
1507
+ },
1508
+ "construct": {
1509
+ "type": "string",
1510
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1511
+ "maxLength": 64
1512
+ },
1513
+ "confidence": {
1514
+ "enum": [
1515
+ "exact",
1516
+ "ambiguous"
1517
+ ]
1518
+ },
1519
+ "losses": {
1520
+ "type": "array",
1521
+ "items": {
1522
+ "type": "string",
1523
+ "minLength": 1,
1524
+ "maxLength": 512
1525
+ },
1526
+ "minItems": 0,
1527
+ "maxItems": 64
1528
+ }
1529
+ },
1530
+ "required": [
1531
+ "sourceId",
1532
+ "elementIds",
1533
+ "range",
1534
+ "construct",
1535
+ "confidence",
1536
+ "losses"
1537
+ ]
1538
+ },
1539
+ "minItems": 0,
1540
+ "maxItems": 10000
1541
+ }
1542
+ },
1543
+ "required": [
1544
+ "kind",
1545
+ "schemaVersion",
1546
+ "protocolVersion",
1547
+ "diagramId",
1548
+ "semanticDigest",
1549
+ "sourceDigest",
1550
+ "sourceByteLength",
1551
+ "encoding",
1552
+ "parser",
1553
+ "certificationVersion",
1554
+ "entries"
1555
+ ]
1556
+ }
1557
+ ]
1558
+ },
1559
+ "after": {
1560
+ "anyOf": [
1561
+ {
1562
+ "type": "null"
1563
+ },
1564
+ {
1565
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1566
+ "$id": "https://openplanr.dev/schemas/v1.13.0/diagram-source-map.schema.json",
1567
+ "x-openplanr-contract": {
1568
+ "id": "diagram-source-map",
1569
+ "version": "1.13.0"
1570
+ },
1571
+ "type": "object",
1572
+ "additionalProperties": false,
1573
+ "properties": {
1574
+ "kind": {
1575
+ "const": "diagram-source-map"
1576
+ },
1577
+ "schemaVersion": {
1578
+ "const": "1.0.0"
1579
+ },
1580
+ "protocolVersion": {
1581
+ "const": "1.13.0"
1582
+ },
1583
+ "diagramId": {
1584
+ "type": "string",
1585
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1586
+ "minLength": 1,
1587
+ "maxLength": 128
1588
+ },
1589
+ "semanticDigest": {
1590
+ "type": "string",
1591
+ "pattern": "^sha256:[a-f0-9]{64}$"
1592
+ },
1593
+ "sourceDigest": {
1594
+ "type": "string",
1595
+ "pattern": "^sha256:[a-f0-9]{64}$"
1596
+ },
1597
+ "sourceByteLength": {
1598
+ "type": "integer",
1599
+ "minimum": 0,
1600
+ "maximum": 1048576
1601
+ },
1602
+ "encoding": {
1603
+ "const": "utf-8"
1604
+ },
1605
+ "parser": {
1606
+ "type": "object",
1607
+ "additionalProperties": false,
1608
+ "properties": {
1609
+ "id": {
1610
+ "type": "string",
1611
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1612
+ "maxLength": 64
1613
+ },
1614
+ "version": {
1615
+ "type": "string",
1616
+ "minLength": 1,
1617
+ "maxLength": 64
1618
+ }
1619
+ },
1620
+ "required": [
1621
+ "id",
1622
+ "version"
1623
+ ]
1624
+ },
1625
+ "certificationVersion": {
1626
+ "const": "flowchart-copy-v1"
1627
+ },
1628
+ "entries": {
1629
+ "type": "array",
1630
+ "items": {
1631
+ "type": "object",
1632
+ "additionalProperties": false,
1633
+ "properties": {
1634
+ "sourceId": {
1635
+ "anyOf": [
1636
+ {
1637
+ "type": "null"
1638
+ },
1639
+ {
1640
+ "type": "string",
1641
+ "minLength": 1,
1642
+ "maxLength": 128
1643
+ }
1644
+ ]
1645
+ },
1646
+ "elementIds": {
1647
+ "type": "array",
1648
+ "items": {
1649
+ "type": "string",
1650
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1651
+ "minLength": 1,
1652
+ "maxLength": 128
1653
+ },
1654
+ "minItems": 0,
1655
+ "maxItems": 10000,
1656
+ "uniqueItems": true
1657
+ },
1658
+ "range": {
1659
+ "anyOf": [
1660
+ {
1661
+ "type": "null"
1662
+ },
1663
+ {
1664
+ "type": "object",
1665
+ "additionalProperties": false,
1666
+ "properties": {
1667
+ "startByte": {
1668
+ "type": "integer",
1669
+ "minimum": 0,
1670
+ "maximum": 1048576
1671
+ },
1672
+ "endByte": {
1673
+ "type": "integer",
1674
+ "minimum": 0,
1675
+ "maximum": 1048576
1676
+ }
1677
+ },
1678
+ "required": [
1679
+ "startByte",
1680
+ "endByte"
1681
+ ]
1682
+ }
1683
+ ]
1684
+ },
1685
+ "construct": {
1686
+ "type": "string",
1687
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1688
+ "maxLength": 64
1689
+ },
1690
+ "confidence": {
1691
+ "enum": [
1692
+ "exact",
1693
+ "ambiguous"
1694
+ ]
1695
+ },
1696
+ "losses": {
1697
+ "type": "array",
1698
+ "items": {
1699
+ "type": "string",
1700
+ "minLength": 1,
1701
+ "maxLength": 512
1702
+ },
1703
+ "minItems": 0,
1704
+ "maxItems": 64
1705
+ }
1706
+ },
1707
+ "required": [
1708
+ "sourceId",
1709
+ "elementIds",
1710
+ "range",
1711
+ "construct",
1712
+ "confidence",
1713
+ "losses"
1714
+ ]
1715
+ },
1716
+ "minItems": 0,
1717
+ "maxItems": 10000
1718
+ }
1719
+ },
1720
+ "required": [
1721
+ "kind",
1722
+ "schemaVersion",
1723
+ "protocolVersion",
1724
+ "diagramId",
1725
+ "semanticDigest",
1726
+ "sourceDigest",
1727
+ "sourceByteLength",
1728
+ "encoding",
1729
+ "parser",
1730
+ "certificationVersion",
1731
+ "entries"
1732
+ ]
1733
+ }
1734
+ ]
1735
+ }
1736
+ },
1737
+ "required": [
1738
+ "type",
1739
+ "collection",
1740
+ "before",
1741
+ "after"
1742
+ ]
1743
+ },
1744
+ {
1745
+ "type": "object",
1746
+ "additionalProperties": false,
1747
+ "properties": {
1748
+ "type": {
1749
+ "const": "remove-elements"
1750
+ },
1751
+ "elements": {
1752
+ "type": "array",
1753
+ "items": {
1754
+ "oneOf": [
1755
+ {
1756
+ "type": "object",
1757
+ "additionalProperties": false,
1758
+ "properties": {
1759
+ "collection": {
1760
+ "const": "nodes"
1761
+ },
1762
+ "value": {
1763
+ "type": "object",
1764
+ "additionalProperties": false,
1765
+ "properties": {
1766
+ "id": {
1767
+ "type": "string",
1768
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1769
+ "minLength": 1,
1770
+ "maxLength": 128
1771
+ },
1772
+ "label": {
1773
+ "type": "string",
1774
+ "minLength": 0,
1775
+ "maxLength": 4096
1776
+ },
1777
+ "kind": {
1778
+ "enum": [
1779
+ "process",
1780
+ "start",
1781
+ "end",
1782
+ "decision",
1783
+ "data-store",
1784
+ "component"
1785
+ ]
1786
+ },
1787
+ "description": {
1788
+ "anyOf": [
1789
+ {
1790
+ "type": "null"
1791
+ },
1792
+ {
1793
+ "type": "string",
1794
+ "minLength": 0,
1795
+ "maxLength": 4096
1796
+ }
1797
+ ]
1798
+ }
1799
+ },
1800
+ "required": [
1801
+ "id",
1802
+ "label",
1803
+ "kind",
1804
+ "description"
1805
+ ]
1806
+ }
1807
+ },
1808
+ "required": [
1809
+ "collection",
1810
+ "value"
1811
+ ]
1812
+ },
1813
+ {
1814
+ "type": "object",
1815
+ "additionalProperties": false,
1816
+ "properties": {
1817
+ "collection": {
1818
+ "const": "relations"
1819
+ },
1820
+ "value": {
1821
+ "type": "object",
1822
+ "additionalProperties": false,
1823
+ "properties": {
1824
+ "id": {
1825
+ "type": "string",
1826
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1827
+ "minLength": 1,
1828
+ "maxLength": 128
1829
+ },
1830
+ "from": {
1831
+ "type": "string",
1832
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1833
+ "minLength": 1,
1834
+ "maxLength": 128
1835
+ },
1836
+ "to": {
1837
+ "type": "string",
1838
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1839
+ "minLength": 1,
1840
+ "maxLength": 128
1841
+ },
1842
+ "kind": {
1843
+ "enum": [
1844
+ "association",
1845
+ "dependency",
1846
+ "flow",
1847
+ "message",
1848
+ "transition"
1849
+ ]
1850
+ },
1851
+ "direction": {
1852
+ "enum": [
1853
+ "forward",
1854
+ "both",
1855
+ "none"
1856
+ ]
1857
+ },
1858
+ "label": {
1859
+ "anyOf": [
1860
+ {
1861
+ "type": "null"
1862
+ },
1863
+ {
1864
+ "type": "string",
1865
+ "minLength": 0,
1866
+ "maxLength": 4096
1867
+ }
1868
+ ]
1869
+ },
1870
+ "weight": {
1871
+ "anyOf": [
1872
+ {
1873
+ "type": "null"
1874
+ },
1875
+ {
1876
+ "type": "number",
1877
+ "minimum": 0,
1878
+ "maximum": 1000000
1879
+ }
1880
+ ]
1881
+ }
1882
+ },
1883
+ "required": [
1884
+ "id",
1885
+ "from",
1886
+ "to",
1887
+ "kind",
1888
+ "direction",
1889
+ "label",
1890
+ "weight"
1891
+ ]
1892
+ }
1893
+ },
1894
+ "required": [
1895
+ "collection",
1896
+ "value"
1897
+ ]
1898
+ },
1899
+ {
1900
+ "type": "object",
1901
+ "additionalProperties": false,
1902
+ "properties": {
1903
+ "collection": {
1904
+ "const": "groups"
1905
+ },
1906
+ "value": {
1907
+ "type": "object",
1908
+ "additionalProperties": false,
1909
+ "properties": {
1910
+ "id": {
1911
+ "type": "string",
1912
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1913
+ "minLength": 1,
1914
+ "maxLength": 128
1915
+ },
1916
+ "label": {
1917
+ "type": "string",
1918
+ "minLength": 0,
1919
+ "maxLength": 4096
1920
+ },
1921
+ "members": {
1922
+ "type": "array",
1923
+ "items": {
1924
+ "type": "string",
1925
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1926
+ "minLength": 1,
1927
+ "maxLength": 128
1928
+ },
1929
+ "minItems": 0,
1930
+ "maxItems": 10000,
1931
+ "uniqueItems": true
1932
+ }
1933
+ },
1934
+ "required": [
1935
+ "id",
1936
+ "label",
1937
+ "members"
1938
+ ]
1939
+ }
1940
+ },
1941
+ "required": [
1942
+ "collection",
1943
+ "value"
1944
+ ]
1945
+ },
1946
+ {
1947
+ "type": "object",
1948
+ "additionalProperties": false,
1949
+ "properties": {
1950
+ "collection": {
1951
+ "const": "lanes"
1952
+ },
1953
+ "value": {
1954
+ "type": "object",
1955
+ "additionalProperties": false,
1956
+ "properties": {
1957
+ "id": {
1958
+ "type": "string",
1959
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1960
+ "minLength": 1,
1961
+ "maxLength": 128
1962
+ },
1963
+ "label": {
1964
+ "type": "string",
1965
+ "minLength": 0,
1966
+ "maxLength": 4096
1967
+ },
1968
+ "members": {
1969
+ "type": "array",
1970
+ "items": {
1971
+ "type": "string",
1972
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1973
+ "minLength": 1,
1974
+ "maxLength": 128
1975
+ },
1976
+ "minItems": 0,
1977
+ "maxItems": 10000,
1978
+ "uniqueItems": true
1979
+ }
1980
+ },
1981
+ "required": [
1982
+ "id",
1983
+ "label",
1984
+ "members"
1985
+ ]
1986
+ }
1987
+ },
1988
+ "required": [
1989
+ "collection",
1990
+ "value"
1991
+ ]
1992
+ },
1993
+ {
1994
+ "type": "object",
1995
+ "additionalProperties": false,
1996
+ "properties": {
1997
+ "collection": {
1998
+ "const": "annotations"
1999
+ },
2000
+ "value": {
2001
+ "type": "object",
2002
+ "additionalProperties": false,
2003
+ "properties": {
2004
+ "id": {
2005
+ "type": "string",
2006
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
2007
+ "minLength": 1,
2008
+ "maxLength": 128
2009
+ },
2010
+ "text": {
2011
+ "type": "string",
2012
+ "minLength": 0,
2013
+ "maxLength": 4096
2014
+ },
2015
+ "targetId": {
2016
+ "anyOf": [
2017
+ {
2018
+ "type": "null"
2019
+ },
2020
+ {
2021
+ "type": "string",
2022
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
2023
+ "minLength": 1,
2024
+ "maxLength": 128
2025
+ }
2026
+ ]
2027
+ }
2028
+ },
2029
+ "required": [
2030
+ "id",
2031
+ "text",
2032
+ "targetId"
2033
+ ]
2034
+ }
2035
+ },
2036
+ "required": [
2037
+ "collection",
2038
+ "value"
2039
+ ]
2040
+ }
2041
+ ]
2042
+ },
2043
+ "minItems": 1,
2044
+ "maxItems": 10000
2045
+ },
2046
+ "presentation": {
2047
+ "type": "array",
2048
+ "items": {
2049
+ "type": "object",
2050
+ "additionalProperties": false,
2051
+ "properties": {
2052
+ "elementId": {
2053
+ "type": "string",
2054
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
2055
+ "minLength": 1,
2056
+ "maxLength": 128
2057
+ },
2058
+ "bounds": {
2059
+ "anyOf": [
2060
+ {
2061
+ "type": "null"
2062
+ },
2063
+ {
2064
+ "type": "object",
2065
+ "additionalProperties": false,
2066
+ "properties": {
2067
+ "x": {
2068
+ "type": "number",
2069
+ "minimum": -1000000,
2070
+ "maximum": 1000000
2071
+ },
2072
+ "y": {
2073
+ "type": "number",
2074
+ "minimum": -1000000,
2075
+ "maximum": 1000000
2076
+ },
2077
+ "width": {
2078
+ "type": "number",
2079
+ "minimum": 0.01,
2080
+ "maximum": 1000000
2081
+ },
2082
+ "height": {
2083
+ "type": "number",
2084
+ "minimum": 0.01,
2085
+ "maximum": 1000000
2086
+ }
2087
+ },
2088
+ "required": [
2089
+ "x",
2090
+ "y",
2091
+ "width",
2092
+ "height"
2093
+ ]
2094
+ }
2095
+ ]
2096
+ },
2097
+ "route": {
2098
+ "anyOf": [
2099
+ {
2100
+ "type": "null"
2101
+ },
2102
+ {
2103
+ "type": "object",
2104
+ "additionalProperties": false,
2105
+ "properties": {
2106
+ "mode": {
2107
+ "enum": [
2108
+ "automatic",
2109
+ "manual"
2110
+ ]
2111
+ },
2112
+ "strategy": {
2113
+ "enum": [
2114
+ "straight",
2115
+ "orthogonal"
2116
+ ]
2117
+ },
2118
+ "from": {
2119
+ "type": "object",
2120
+ "additionalProperties": false,
2121
+ "properties": {
2122
+ "side": {
2123
+ "enum": [
2124
+ "top",
2125
+ "right",
2126
+ "bottom",
2127
+ "left"
2128
+ ]
2129
+ },
2130
+ "offset": {
2131
+ "type": "number",
2132
+ "minimum": 0,
2133
+ "maximum": 1
2134
+ }
2135
+ },
2136
+ "required": [
2137
+ "side",
2138
+ "offset"
2139
+ ]
2140
+ },
2141
+ "to": {
2142
+ "type": "object",
2143
+ "additionalProperties": false,
2144
+ "properties": {
2145
+ "side": {
2146
+ "enum": [
2147
+ "top",
2148
+ "right",
2149
+ "bottom",
2150
+ "left"
2151
+ ]
2152
+ },
2153
+ "offset": {
2154
+ "type": "number",
2155
+ "minimum": 0,
2156
+ "maximum": 1
2157
+ }
2158
+ },
2159
+ "required": [
2160
+ "side",
2161
+ "offset"
2162
+ ]
2163
+ },
2164
+ "points": {
2165
+ "type": "array",
2166
+ "items": {
2167
+ "type": "object",
2168
+ "additionalProperties": false,
2169
+ "properties": {
2170
+ "x": {
2171
+ "type": "number",
2172
+ "minimum": -1000000,
2173
+ "maximum": 1000000
2174
+ },
2175
+ "y": {
2176
+ "type": "number",
2177
+ "minimum": -1000000,
2178
+ "maximum": 1000000
2179
+ }
2180
+ },
2181
+ "required": [
2182
+ "x",
2183
+ "y"
2184
+ ]
2185
+ },
2186
+ "minItems": 0,
2187
+ "maxItems": 256
2188
+ }
2189
+ },
2190
+ "required": [
2191
+ "mode",
2192
+ "strategy",
2193
+ "from",
2194
+ "to",
2195
+ "points"
2196
+ ]
2197
+ }
2198
+ ]
2199
+ },
2200
+ "label": {
2201
+ "anyOf": [
2202
+ {
2203
+ "type": "null"
2204
+ },
2205
+ {
2206
+ "type": "object",
2207
+ "additionalProperties": false,
2208
+ "properties": {
2209
+ "x": {
2210
+ "type": "number",
2211
+ "minimum": -1000000,
2212
+ "maximum": 1000000
2213
+ },
2214
+ "y": {
2215
+ "type": "number",
2216
+ "minimum": -1000000,
2217
+ "maximum": 1000000
2218
+ },
2219
+ "width": {
2220
+ "type": "number",
2221
+ "minimum": 0.01,
2222
+ "maximum": 1000000
2223
+ }
2224
+ },
2225
+ "required": [
2226
+ "x",
2227
+ "y",
2228
+ "width"
2229
+ ]
2230
+ }
2231
+ ]
2232
+ },
2233
+ "zIndex": {
2234
+ "type": "integer",
2235
+ "minimum": 0,
2236
+ "maximum": 10000
2237
+ },
2238
+ "appearance": {
2239
+ "type": "object",
2240
+ "additionalProperties": false,
2241
+ "properties": {
2242
+ "shape": {
2243
+ "enum": [
2244
+ "rectangle",
2245
+ "rounded-rectangle",
2246
+ "ellipse",
2247
+ "diamond",
2248
+ "cylinder",
2249
+ "text",
2250
+ "container",
2251
+ "connector"
2252
+ ]
2253
+ },
2254
+ "fill": {
2255
+ "enum": [
2256
+ "surface",
2257
+ "accent",
2258
+ "success",
2259
+ "warning",
2260
+ "danger",
2261
+ "transparent"
2262
+ ]
2263
+ },
2264
+ "stroke": {
2265
+ "enum": [
2266
+ "default",
2267
+ "accent",
2268
+ "muted",
2269
+ "danger",
2270
+ "none"
2271
+ ]
2272
+ },
2273
+ "strokeWidth": {
2274
+ "type": "number",
2275
+ "minimum": 0,
2276
+ "maximum": 16
2277
+ },
2278
+ "strokeStyle": {
2279
+ "enum": [
2280
+ "solid",
2281
+ "dashed",
2282
+ "dotted"
2283
+ ]
2284
+ },
2285
+ "fontSize": {
2286
+ "type": "integer",
2287
+ "minimum": 8,
2288
+ "maximum": 72
2289
+ },
2290
+ "textAlign": {
2291
+ "enum": [
2292
+ "left",
2293
+ "center",
2294
+ "right"
2295
+ ]
2296
+ },
2297
+ "shapeRef": {
2298
+ "type": "object",
2299
+ "additionalProperties": false,
2300
+ "required": [
2301
+ "packId",
2302
+ "packVersion",
2303
+ "shapeId",
2304
+ "definitionDigest"
2305
+ ],
2306
+ "properties": {
2307
+ "packId": {
2308
+ "type": "string",
2309
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
2310
+ "maxLength": 128
2311
+ },
2312
+ "packVersion": {
2313
+ "type": "string",
2314
+ "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$",
2315
+ "maxLength": 32
2316
+ },
2317
+ "shapeId": {
2318
+ "type": "string",
2319
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
2320
+ "maxLength": 128
2321
+ },
2322
+ "definitionDigest": {
2323
+ "type": "string",
2324
+ "pattern": "^sha256:[a-f0-9]{64}$"
2325
+ }
2326
+ }
2327
+ }
2328
+ },
2329
+ "required": [
2330
+ "shape",
2331
+ "fill",
2332
+ "stroke",
2333
+ "strokeWidth",
2334
+ "strokeStyle",
2335
+ "fontSize",
2336
+ "textAlign"
2337
+ ]
2338
+ },
2339
+ "locks": {
2340
+ "type": "object",
2341
+ "additionalProperties": false,
2342
+ "properties": {
2343
+ "position": {
2344
+ "type": "boolean"
2345
+ },
2346
+ "size": {
2347
+ "type": "boolean"
2348
+ },
2349
+ "route": {
2350
+ "type": "boolean"
2351
+ }
2352
+ },
2353
+ "required": [
2354
+ "position",
2355
+ "size",
2356
+ "route"
2357
+ ]
2358
+ }
2359
+ },
2360
+ "required": [
2361
+ "elementId",
2362
+ "bounds",
2363
+ "route",
2364
+ "label",
2365
+ "zIndex",
2366
+ "appearance",
2367
+ "locks"
2368
+ ]
2369
+ },
2370
+ "minItems": 1,
2371
+ "maxItems": 10000
2372
+ }
2373
+ },
2374
+ "required": [
2375
+ "type",
2376
+ "elements",
2377
+ "presentation"
2378
+ ]
2379
+ },
2380
+ {
2381
+ "type": "object",
2382
+ "additionalProperties": false,
2383
+ "properties": {
2384
+ "type": {
2385
+ "const": "set-membership-order"
2386
+ },
2387
+ "before": {
2388
+ "type": "object",
2389
+ "additionalProperties": false,
2390
+ "properties": {
2391
+ "groups": {
2392
+ "type": "array",
2393
+ "items": {
2394
+ "type": "object",
2395
+ "additionalProperties": false,
2396
+ "properties": {
2397
+ "id": {
2398
+ "type": "string",
2399
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
2400
+ "minLength": 1,
2401
+ "maxLength": 128
2402
+ },
2403
+ "members": {
2404
+ "type": "array",
2405
+ "items": {
2406
+ "type": "string",
2407
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
2408
+ "minLength": 1,
2409
+ "maxLength": 128
2410
+ },
2411
+ "minItems": 0,
2412
+ "maxItems": 10000,
2413
+ "uniqueItems": true
2414
+ }
2415
+ },
2416
+ "required": [
2417
+ "id",
2418
+ "members"
2419
+ ]
2420
+ },
2421
+ "minItems": 0,
2422
+ "maxItems": 1024
2423
+ },
2424
+ "lanes": {
2425
+ "type": "array",
2426
+ "items": {
2427
+ "type": "object",
2428
+ "additionalProperties": false,
2429
+ "properties": {
2430
+ "id": {
2431
+ "type": "string",
2432
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
2433
+ "minLength": 1,
2434
+ "maxLength": 128
2435
+ },
2436
+ "members": {
2437
+ "type": "array",
2438
+ "items": {
2439
+ "type": "string",
2440
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
2441
+ "minLength": 1,
2442
+ "maxLength": 128
2443
+ },
2444
+ "minItems": 0,
2445
+ "maxItems": 10000,
2446
+ "uniqueItems": true
2447
+ }
2448
+ },
2449
+ "required": [
2450
+ "id",
2451
+ "members"
2452
+ ]
2453
+ },
2454
+ "minItems": 0,
2455
+ "maxItems": 256
2456
+ },
2457
+ "laneOrder": {
2458
+ "type": "array",
2459
+ "items": {
2460
+ "type": "string",
2461
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
2462
+ "minLength": 1,
2463
+ "maxLength": 128
2464
+ },
2465
+ "minItems": 0,
2466
+ "maxItems": 10000,
2467
+ "uniqueItems": true
2468
+ }
2469
+ },
2470
+ "required": [
2471
+ "groups",
2472
+ "lanes",
2473
+ "laneOrder"
2474
+ ]
2475
+ },
2476
+ "after": {
2477
+ "type": "object",
2478
+ "additionalProperties": false,
2479
+ "properties": {
2480
+ "groups": {
2481
+ "type": "array",
2482
+ "items": {
2483
+ "type": "object",
2484
+ "additionalProperties": false,
2485
+ "properties": {
2486
+ "id": {
2487
+ "type": "string",
2488
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
2489
+ "minLength": 1,
2490
+ "maxLength": 128
2491
+ },
2492
+ "members": {
2493
+ "type": "array",
2494
+ "items": {
2495
+ "type": "string",
2496
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
2497
+ "minLength": 1,
2498
+ "maxLength": 128
2499
+ },
2500
+ "minItems": 0,
2501
+ "maxItems": 10000,
2502
+ "uniqueItems": true
2503
+ }
2504
+ },
2505
+ "required": [
2506
+ "id",
2507
+ "members"
2508
+ ]
2509
+ },
2510
+ "minItems": 0,
2511
+ "maxItems": 1024
2512
+ },
2513
+ "lanes": {
2514
+ "type": "array",
2515
+ "items": {
2516
+ "type": "object",
2517
+ "additionalProperties": false,
2518
+ "properties": {
2519
+ "id": {
2520
+ "type": "string",
2521
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
2522
+ "minLength": 1,
2523
+ "maxLength": 128
2524
+ },
2525
+ "members": {
2526
+ "type": "array",
2527
+ "items": {
2528
+ "type": "string",
2529
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
2530
+ "minLength": 1,
2531
+ "maxLength": 128
2532
+ },
2533
+ "minItems": 0,
2534
+ "maxItems": 10000,
2535
+ "uniqueItems": true
2536
+ }
2537
+ },
2538
+ "required": [
2539
+ "id",
2540
+ "members"
2541
+ ]
2542
+ },
2543
+ "minItems": 0,
2544
+ "maxItems": 256
2545
+ },
2546
+ "laneOrder": {
2547
+ "type": "array",
2548
+ "items": {
2549
+ "type": "string",
2550
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
2551
+ "minLength": 1,
2552
+ "maxLength": 128
2553
+ },
2554
+ "minItems": 0,
2555
+ "maxItems": 10000,
2556
+ "uniqueItems": true
2557
+ }
2558
+ },
2559
+ "required": [
2560
+ "groups",
2561
+ "lanes",
2562
+ "laneOrder"
2563
+ ]
2564
+ }
2565
+ },
2566
+ "required": [
2567
+ "type",
2568
+ "before",
2569
+ "after"
2570
+ ]
2571
+ },
2572
+ {
2573
+ "type": "object",
2574
+ "additionalProperties": false,
2575
+ "properties": {
2576
+ "type": {
2577
+ "const": "set-geometry"
2578
+ },
2579
+ "changes": {
2580
+ "type": "array",
2581
+ "items": {
2582
+ "type": "object",
2583
+ "additionalProperties": false,
2584
+ "properties": {
2585
+ "elementId": {
2586
+ "type": "string",
2587
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
2588
+ "minLength": 1,
2589
+ "maxLength": 128
2590
+ },
2591
+ "before": {
2592
+ "type": "object",
2593
+ "additionalProperties": false,
2594
+ "properties": {
2595
+ "bounds": {
2596
+ "anyOf": [
2597
+ {
2598
+ "type": "null"
2599
+ },
2600
+ {
2601
+ "type": "object",
2602
+ "additionalProperties": false,
2603
+ "properties": {
2604
+ "x": {
2605
+ "type": "number",
2606
+ "minimum": -1000000,
2607
+ "maximum": 1000000
2608
+ },
2609
+ "y": {
2610
+ "type": "number",
2611
+ "minimum": -1000000,
2612
+ "maximum": 1000000
2613
+ },
2614
+ "width": {
2615
+ "type": "number",
2616
+ "minimum": 0.01,
2617
+ "maximum": 1000000
2618
+ },
2619
+ "height": {
2620
+ "type": "number",
2621
+ "minimum": 0.01,
2622
+ "maximum": 1000000
2623
+ }
2624
+ },
2625
+ "required": [
2626
+ "x",
2627
+ "y",
2628
+ "width",
2629
+ "height"
2630
+ ]
2631
+ }
2632
+ ]
2633
+ },
2634
+ "route": {
2635
+ "anyOf": [
2636
+ {
2637
+ "type": "null"
2638
+ },
2639
+ {
2640
+ "type": "object",
2641
+ "additionalProperties": false,
2642
+ "properties": {
2643
+ "mode": {
2644
+ "enum": [
2645
+ "automatic",
2646
+ "manual"
2647
+ ]
2648
+ },
2649
+ "strategy": {
2650
+ "enum": [
2651
+ "straight",
2652
+ "orthogonal"
2653
+ ]
2654
+ },
2655
+ "from": {
2656
+ "type": "object",
2657
+ "additionalProperties": false,
2658
+ "properties": {
2659
+ "side": {
2660
+ "enum": [
2661
+ "top",
2662
+ "right",
2663
+ "bottom",
2664
+ "left"
2665
+ ]
2666
+ },
2667
+ "offset": {
2668
+ "type": "number",
2669
+ "minimum": 0,
2670
+ "maximum": 1
2671
+ }
2672
+ },
2673
+ "required": [
2674
+ "side",
2675
+ "offset"
2676
+ ]
2677
+ },
2678
+ "to": {
2679
+ "type": "object",
2680
+ "additionalProperties": false,
2681
+ "properties": {
2682
+ "side": {
2683
+ "enum": [
2684
+ "top",
2685
+ "right",
2686
+ "bottom",
2687
+ "left"
2688
+ ]
2689
+ },
2690
+ "offset": {
2691
+ "type": "number",
2692
+ "minimum": 0,
2693
+ "maximum": 1
2694
+ }
2695
+ },
2696
+ "required": [
2697
+ "side",
2698
+ "offset"
2699
+ ]
2700
+ },
2701
+ "points": {
2702
+ "type": "array",
2703
+ "items": {
2704
+ "type": "object",
2705
+ "additionalProperties": false,
2706
+ "properties": {
2707
+ "x": {
2708
+ "type": "number",
2709
+ "minimum": -1000000,
2710
+ "maximum": 1000000
2711
+ },
2712
+ "y": {
2713
+ "type": "number",
2714
+ "minimum": -1000000,
2715
+ "maximum": 1000000
2716
+ }
2717
+ },
2718
+ "required": [
2719
+ "x",
2720
+ "y"
2721
+ ]
2722
+ },
2723
+ "minItems": 0,
2724
+ "maxItems": 256
2725
+ }
2726
+ },
2727
+ "required": [
2728
+ "mode",
2729
+ "strategy",
2730
+ "from",
2731
+ "to",
2732
+ "points"
2733
+ ]
2734
+ }
2735
+ ]
2736
+ },
2737
+ "label": {
2738
+ "anyOf": [
2739
+ {
2740
+ "type": "null"
2741
+ },
2742
+ {
2743
+ "type": "object",
2744
+ "additionalProperties": false,
2745
+ "properties": {
2746
+ "x": {
2747
+ "type": "number",
2748
+ "minimum": -1000000,
2749
+ "maximum": 1000000
2750
+ },
2751
+ "y": {
2752
+ "type": "number",
2753
+ "minimum": -1000000,
2754
+ "maximum": 1000000
2755
+ },
2756
+ "width": {
2757
+ "type": "number",
2758
+ "minimum": 0.01,
2759
+ "maximum": 1000000
2760
+ }
2761
+ },
2762
+ "required": [
2763
+ "x",
2764
+ "y",
2765
+ "width"
2766
+ ]
2767
+ }
2768
+ ]
2769
+ },
2770
+ "zIndex": {
2771
+ "type": "integer",
2772
+ "minimum": 0,
2773
+ "maximum": 10000
2774
+ }
2775
+ },
2776
+ "required": [
2777
+ "bounds",
2778
+ "route",
2779
+ "label",
2780
+ "zIndex"
2781
+ ]
2782
+ },
2783
+ "after": {
2784
+ "type": "object",
2785
+ "additionalProperties": false,
2786
+ "properties": {
2787
+ "bounds": {
2788
+ "anyOf": [
2789
+ {
2790
+ "type": "null"
2791
+ },
2792
+ {
2793
+ "type": "object",
2794
+ "additionalProperties": false,
2795
+ "properties": {
2796
+ "x": {
2797
+ "type": "number",
2798
+ "minimum": -1000000,
2799
+ "maximum": 1000000
2800
+ },
2801
+ "y": {
2802
+ "type": "number",
2803
+ "minimum": -1000000,
2804
+ "maximum": 1000000
2805
+ },
2806
+ "width": {
2807
+ "type": "number",
2808
+ "minimum": 0.01,
2809
+ "maximum": 1000000
2810
+ },
2811
+ "height": {
2812
+ "type": "number",
2813
+ "minimum": 0.01,
2814
+ "maximum": 1000000
2815
+ }
2816
+ },
2817
+ "required": [
2818
+ "x",
2819
+ "y",
2820
+ "width",
2821
+ "height"
2822
+ ]
2823
+ }
2824
+ ]
2825
+ },
2826
+ "route": {
2827
+ "anyOf": [
2828
+ {
2829
+ "type": "null"
2830
+ },
2831
+ {
2832
+ "type": "object",
2833
+ "additionalProperties": false,
2834
+ "properties": {
2835
+ "mode": {
2836
+ "enum": [
2837
+ "automatic",
2838
+ "manual"
2839
+ ]
2840
+ },
2841
+ "strategy": {
2842
+ "enum": [
2843
+ "straight",
2844
+ "orthogonal"
2845
+ ]
2846
+ },
2847
+ "from": {
2848
+ "type": "object",
2849
+ "additionalProperties": false,
2850
+ "properties": {
2851
+ "side": {
2852
+ "enum": [
2853
+ "top",
2854
+ "right",
2855
+ "bottom",
2856
+ "left"
2857
+ ]
2858
+ },
2859
+ "offset": {
2860
+ "type": "number",
2861
+ "minimum": 0,
2862
+ "maximum": 1
2863
+ }
2864
+ },
2865
+ "required": [
2866
+ "side",
2867
+ "offset"
2868
+ ]
2869
+ },
2870
+ "to": {
2871
+ "type": "object",
2872
+ "additionalProperties": false,
2873
+ "properties": {
2874
+ "side": {
2875
+ "enum": [
2876
+ "top",
2877
+ "right",
2878
+ "bottom",
2879
+ "left"
2880
+ ]
2881
+ },
2882
+ "offset": {
2883
+ "type": "number",
2884
+ "minimum": 0,
2885
+ "maximum": 1
2886
+ }
2887
+ },
2888
+ "required": [
2889
+ "side",
2890
+ "offset"
2891
+ ]
2892
+ },
2893
+ "points": {
2894
+ "type": "array",
2895
+ "items": {
2896
+ "type": "object",
2897
+ "additionalProperties": false,
2898
+ "properties": {
2899
+ "x": {
2900
+ "type": "number",
2901
+ "minimum": -1000000,
2902
+ "maximum": 1000000
2903
+ },
2904
+ "y": {
2905
+ "type": "number",
2906
+ "minimum": -1000000,
2907
+ "maximum": 1000000
2908
+ }
2909
+ },
2910
+ "required": [
2911
+ "x",
2912
+ "y"
2913
+ ]
2914
+ },
2915
+ "minItems": 0,
2916
+ "maxItems": 256
2917
+ }
2918
+ },
2919
+ "required": [
2920
+ "mode",
2921
+ "strategy",
2922
+ "from",
2923
+ "to",
2924
+ "points"
2925
+ ]
2926
+ }
2927
+ ]
2928
+ },
2929
+ "label": {
2930
+ "anyOf": [
2931
+ {
2932
+ "type": "null"
2933
+ },
2934
+ {
2935
+ "type": "object",
2936
+ "additionalProperties": false,
2937
+ "properties": {
2938
+ "x": {
2939
+ "type": "number",
2940
+ "minimum": -1000000,
2941
+ "maximum": 1000000
2942
+ },
2943
+ "y": {
2944
+ "type": "number",
2945
+ "minimum": -1000000,
2946
+ "maximum": 1000000
2947
+ },
2948
+ "width": {
2949
+ "type": "number",
2950
+ "minimum": 0.01,
2951
+ "maximum": 1000000
2952
+ }
2953
+ },
2954
+ "required": [
2955
+ "x",
2956
+ "y",
2957
+ "width"
2958
+ ]
2959
+ }
2960
+ ]
2961
+ },
2962
+ "zIndex": {
2963
+ "type": "integer",
2964
+ "minimum": 0,
2965
+ "maximum": 10000
2966
+ }
2967
+ },
2968
+ "required": [
2969
+ "bounds",
2970
+ "route",
2971
+ "label",
2972
+ "zIndex"
2973
+ ]
2974
+ }
2975
+ },
2976
+ "required": [
2977
+ "elementId",
2978
+ "before",
2979
+ "after"
2980
+ ]
2981
+ },
2982
+ "minItems": 1,
2983
+ "maxItems": 10000
2984
+ }
2985
+ },
2986
+ "required": [
2987
+ "type",
2988
+ "changes"
2989
+ ]
2990
+ },
2991
+ {
2992
+ "type": "object",
2993
+ "additionalProperties": false,
2994
+ "properties": {
2995
+ "type": {
2996
+ "const": "set-appearance-locks"
2997
+ },
2998
+ "changes": {
2999
+ "type": "array",
3000
+ "items": {
3001
+ "type": "object",
3002
+ "additionalProperties": false,
3003
+ "properties": {
3004
+ "elementId": {
3005
+ "type": "string",
3006
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
3007
+ "minLength": 1,
3008
+ "maxLength": 128
3009
+ },
3010
+ "before": {
3011
+ "type": "object",
3012
+ "additionalProperties": false,
3013
+ "properties": {
3014
+ "appearance": {
3015
+ "type": "object",
3016
+ "additionalProperties": false,
3017
+ "properties": {
3018
+ "shape": {
3019
+ "enum": [
3020
+ "rectangle",
3021
+ "rounded-rectangle",
3022
+ "ellipse",
3023
+ "diamond",
3024
+ "cylinder",
3025
+ "text",
3026
+ "container",
3027
+ "connector"
3028
+ ]
3029
+ },
3030
+ "fill": {
3031
+ "enum": [
3032
+ "surface",
3033
+ "accent",
3034
+ "success",
3035
+ "warning",
3036
+ "danger",
3037
+ "transparent"
3038
+ ]
3039
+ },
3040
+ "stroke": {
3041
+ "enum": [
3042
+ "default",
3043
+ "accent",
3044
+ "muted",
3045
+ "danger",
3046
+ "none"
3047
+ ]
3048
+ },
3049
+ "strokeWidth": {
3050
+ "type": "number",
3051
+ "minimum": 0,
3052
+ "maximum": 16
3053
+ },
3054
+ "strokeStyle": {
3055
+ "enum": [
3056
+ "solid",
3057
+ "dashed",
3058
+ "dotted"
3059
+ ]
3060
+ },
3061
+ "fontSize": {
3062
+ "type": "integer",
3063
+ "minimum": 8,
3064
+ "maximum": 72
3065
+ },
3066
+ "textAlign": {
3067
+ "enum": [
3068
+ "left",
3069
+ "center",
3070
+ "right"
3071
+ ]
3072
+ },
3073
+ "shapeRef": {
3074
+ "type": "object",
3075
+ "additionalProperties": false,
3076
+ "required": [
3077
+ "packId",
3078
+ "packVersion",
3079
+ "shapeId",
3080
+ "definitionDigest"
3081
+ ],
3082
+ "properties": {
3083
+ "packId": {
3084
+ "type": "string",
3085
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
3086
+ "maxLength": 128
3087
+ },
3088
+ "packVersion": {
3089
+ "type": "string",
3090
+ "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$",
3091
+ "maxLength": 32
3092
+ },
3093
+ "shapeId": {
3094
+ "type": "string",
3095
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
3096
+ "maxLength": 128
3097
+ },
3098
+ "definitionDigest": {
3099
+ "type": "string",
3100
+ "pattern": "^sha256:[a-f0-9]{64}$"
3101
+ }
3102
+ }
3103
+ }
3104
+ },
3105
+ "required": [
3106
+ "shape",
3107
+ "fill",
3108
+ "stroke",
3109
+ "strokeWidth",
3110
+ "strokeStyle",
3111
+ "fontSize",
3112
+ "textAlign"
3113
+ ]
3114
+ },
3115
+ "locks": {
3116
+ "type": "object",
3117
+ "additionalProperties": false,
3118
+ "properties": {
3119
+ "position": {
3120
+ "type": "boolean"
3121
+ },
3122
+ "size": {
3123
+ "type": "boolean"
3124
+ },
3125
+ "route": {
3126
+ "type": "boolean"
3127
+ }
3128
+ },
3129
+ "required": [
3130
+ "position",
3131
+ "size",
3132
+ "route"
3133
+ ]
3134
+ }
3135
+ },
3136
+ "required": [
3137
+ "appearance",
3138
+ "locks"
3139
+ ]
3140
+ },
3141
+ "after": {
3142
+ "type": "object",
3143
+ "additionalProperties": false,
3144
+ "properties": {
3145
+ "appearance": {
3146
+ "type": "object",
3147
+ "additionalProperties": false,
3148
+ "properties": {
3149
+ "shape": {
3150
+ "enum": [
3151
+ "rectangle",
3152
+ "rounded-rectangle",
3153
+ "ellipse",
3154
+ "diamond",
3155
+ "cylinder",
3156
+ "text",
3157
+ "container",
3158
+ "connector"
3159
+ ]
3160
+ },
3161
+ "fill": {
3162
+ "enum": [
3163
+ "surface",
3164
+ "accent",
3165
+ "success",
3166
+ "warning",
3167
+ "danger",
3168
+ "transparent"
3169
+ ]
3170
+ },
3171
+ "stroke": {
3172
+ "enum": [
3173
+ "default",
3174
+ "accent",
3175
+ "muted",
3176
+ "danger",
3177
+ "none"
3178
+ ]
3179
+ },
3180
+ "strokeWidth": {
3181
+ "type": "number",
3182
+ "minimum": 0,
3183
+ "maximum": 16
3184
+ },
3185
+ "strokeStyle": {
3186
+ "enum": [
3187
+ "solid",
3188
+ "dashed",
3189
+ "dotted"
3190
+ ]
3191
+ },
3192
+ "fontSize": {
3193
+ "type": "integer",
3194
+ "minimum": 8,
3195
+ "maximum": 72
3196
+ },
3197
+ "textAlign": {
3198
+ "enum": [
3199
+ "left",
3200
+ "center",
3201
+ "right"
3202
+ ]
3203
+ },
3204
+ "shapeRef": {
3205
+ "type": "object",
3206
+ "additionalProperties": false,
3207
+ "required": [
3208
+ "packId",
3209
+ "packVersion",
3210
+ "shapeId",
3211
+ "definitionDigest"
3212
+ ],
3213
+ "properties": {
3214
+ "packId": {
3215
+ "type": "string",
3216
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
3217
+ "maxLength": 128
3218
+ },
3219
+ "packVersion": {
3220
+ "type": "string",
3221
+ "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$",
3222
+ "maxLength": 32
3223
+ },
3224
+ "shapeId": {
3225
+ "type": "string",
3226
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
3227
+ "maxLength": 128
3228
+ },
3229
+ "definitionDigest": {
3230
+ "type": "string",
3231
+ "pattern": "^sha256:[a-f0-9]{64}$"
3232
+ }
3233
+ }
3234
+ }
3235
+ },
3236
+ "required": [
3237
+ "shape",
3238
+ "fill",
3239
+ "stroke",
3240
+ "strokeWidth",
3241
+ "strokeStyle",
3242
+ "fontSize",
3243
+ "textAlign"
3244
+ ]
3245
+ },
3246
+ "locks": {
3247
+ "type": "object",
3248
+ "additionalProperties": false,
3249
+ "properties": {
3250
+ "position": {
3251
+ "type": "boolean"
3252
+ },
3253
+ "size": {
3254
+ "type": "boolean"
3255
+ },
3256
+ "route": {
3257
+ "type": "boolean"
3258
+ }
3259
+ },
3260
+ "required": [
3261
+ "position",
3262
+ "size",
3263
+ "route"
3264
+ ]
3265
+ }
3266
+ },
3267
+ "required": [
3268
+ "appearance",
3269
+ "locks"
3270
+ ]
3271
+ }
3272
+ },
3273
+ "required": [
3274
+ "elementId",
3275
+ "before",
3276
+ "after"
3277
+ ]
3278
+ },
3279
+ "minItems": 1,
3280
+ "maxItems": 10000
3281
+ }
3282
+ },
3283
+ "required": [
3284
+ "type",
3285
+ "changes"
3286
+ ]
3287
+ },
3288
+ {
3289
+ "type": "object",
3290
+ "additionalProperties": false,
3291
+ "required": [
3292
+ "type",
3293
+ "before",
3294
+ "after"
3295
+ ],
3296
+ "properties": {
3297
+ "type": {
3298
+ "const": "set-studio-presentation"
3299
+ },
3300
+ "before": {
3301
+ "anyOf": [
3302
+ {
3303
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3304
+ "$id": "https://openplanr.dev/schemas/v1.17.0/diagram-presentation.schema.json",
3305
+ "x-openplanr-contract": {
3306
+ "id": "diagram-presentation",
3307
+ "version": "1.17.0"
3308
+ },
3309
+ "type": "object",
3310
+ "additionalProperties": false,
3311
+ "required": [
3312
+ "kind",
3313
+ "schemaVersion",
3314
+ "palette",
3315
+ "theme",
3316
+ "fontFamily"
3317
+ ],
3318
+ "properties": {
3319
+ "kind": {
3320
+ "const": "openplanr-diagram-presentation"
3321
+ },
3322
+ "schemaVersion": {
3323
+ "const": "2.0.0"
3324
+ },
3325
+ "palette": {
3326
+ "const": "openplanr-brand-v2"
3327
+ },
3328
+ "theme": {
3329
+ "enum": [
3330
+ "light",
3331
+ "dark"
3332
+ ]
3333
+ },
3334
+ "fontFamily": {
3335
+ "const": "Inter"
3336
+ }
3337
+ }
3338
+ },
3339
+ {
3340
+ "type": "null"
3341
+ }
3342
+ ]
3343
+ },
3344
+ "after": {
3345
+ "anyOf": [
3346
+ {
3347
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3348
+ "$id": "https://openplanr.dev/schemas/v1.17.0/diagram-presentation.schema.json",
3349
+ "x-openplanr-contract": {
3350
+ "id": "diagram-presentation",
3351
+ "version": "1.17.0"
3352
+ },
3353
+ "type": "object",
3354
+ "additionalProperties": false,
3355
+ "required": [
3356
+ "kind",
3357
+ "schemaVersion",
3358
+ "palette",
3359
+ "theme",
3360
+ "fontFamily"
3361
+ ],
3362
+ "properties": {
3363
+ "kind": {
3364
+ "const": "openplanr-diagram-presentation"
3365
+ },
3366
+ "schemaVersion": {
3367
+ "const": "2.0.0"
3368
+ },
3369
+ "palette": {
3370
+ "const": "openplanr-brand-v2"
3371
+ },
3372
+ "theme": {
3373
+ "enum": [
3374
+ "light",
3375
+ "dark"
3376
+ ]
3377
+ },
3378
+ "fontFamily": {
3379
+ "const": "Inter"
3380
+ }
3381
+ }
3382
+ },
3383
+ {
3384
+ "type": "null"
3385
+ }
3386
+ ]
3387
+ }
3388
+ }
3389
+ },
3390
+ {
3391
+ "type": "object",
3392
+ "additionalProperties": false,
3393
+ "required": [
3394
+ "type",
3395
+ "before",
3396
+ "after"
3397
+ ],
3398
+ "properties": {
3399
+ "type": {
3400
+ "const": "set-shape-library"
3401
+ },
3402
+ "before": {
3403
+ "anyOf": [
3404
+ {
3405
+ "type": "array",
3406
+ "maxItems": 512,
3407
+ "items": {
3408
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3409
+ "$id": "https://openplanr.dev/schemas/v1.21.0/diagram-shape-definition.schema.json",
3410
+ "x-openplanr-contract": {
3411
+ "id": "diagram-shape-definition",
3412
+ "version": "1.21.0"
3413
+ },
3414
+ "type": "object",
3415
+ "additionalProperties": false,
3416
+ "required": [
3417
+ "packId",
3418
+ "packVersion",
3419
+ "shapeId",
3420
+ "definitionDigest",
3421
+ "name",
3422
+ "description",
3423
+ "tags",
3424
+ "primitives",
3425
+ "attachment",
3426
+ "textRegion",
3427
+ "sizing"
3428
+ ],
3429
+ "properties": {
3430
+ "packId": {
3431
+ "type": "string",
3432
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
3433
+ "maxLength": 128
3434
+ },
3435
+ "packVersion": {
3436
+ "type": "string",
3437
+ "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$",
3438
+ "maxLength": 32
3439
+ },
3440
+ "shapeId": {
3441
+ "type": "string",
3442
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
3443
+ "maxLength": 128
3444
+ },
3445
+ "definitionDigest": {
3446
+ "type": "string",
3447
+ "pattern": "^sha256:[a-f0-9]{64}$"
3448
+ },
3449
+ "name": {
3450
+ "type": "string",
3451
+ "minLength": 1,
3452
+ "maxLength": 128
3453
+ },
3454
+ "description": {
3455
+ "type": "string",
3456
+ "maxLength": 1024
3457
+ },
3458
+ "tags": {
3459
+ "type": "array",
3460
+ "maxItems": 16,
3461
+ "uniqueItems": true,
3462
+ "items": {
3463
+ "type": "string",
3464
+ "minLength": 1,
3465
+ "maxLength": 64
3466
+ }
3467
+ },
3468
+ "primitives": {
3469
+ "type": "array",
3470
+ "minItems": 1,
3471
+ "maxItems": 32,
3472
+ "items": {
3473
+ "oneOf": [
3474
+ {
3475
+ "type": "object",
3476
+ "additionalProperties": false,
3477
+ "required": [
3478
+ "type",
3479
+ "x",
3480
+ "y",
3481
+ "width",
3482
+ "height",
3483
+ "radius",
3484
+ "fill",
3485
+ "stroke"
3486
+ ],
3487
+ "properties": {
3488
+ "type": {
3489
+ "const": "rect"
3490
+ },
3491
+ "x": {
3492
+ "type": "number",
3493
+ "minimum": 0,
3494
+ "maximum": 1
3495
+ },
3496
+ "y": {
3497
+ "type": "number",
3498
+ "minimum": 0,
3499
+ "maximum": 1
3500
+ },
3501
+ "width": {
3502
+ "type": "number",
3503
+ "exclusiveMinimum": 0,
3504
+ "maximum": 1
3505
+ },
3506
+ "height": {
3507
+ "type": "number",
3508
+ "exclusiveMinimum": 0,
3509
+ "maximum": 1
3510
+ },
3511
+ "radius": {
3512
+ "type": "number",
3513
+ "minimum": 0,
3514
+ "maximum": 1
3515
+ },
3516
+ "fill": {
3517
+ "enum": [
3518
+ "fill",
3519
+ "none"
3520
+ ]
3521
+ },
3522
+ "stroke": {
3523
+ "enum": [
3524
+ "stroke",
3525
+ "none"
3526
+ ]
3527
+ }
3528
+ }
3529
+ },
3530
+ {
3531
+ "type": "object",
3532
+ "additionalProperties": false,
3533
+ "required": [
3534
+ "type",
3535
+ "cx",
3536
+ "cy",
3537
+ "rx",
3538
+ "ry",
3539
+ "fill",
3540
+ "stroke"
3541
+ ],
3542
+ "properties": {
3543
+ "type": {
3544
+ "const": "ellipse"
3545
+ },
3546
+ "cx": {
3547
+ "type": "number",
3548
+ "minimum": 0,
3549
+ "maximum": 1
3550
+ },
3551
+ "cy": {
3552
+ "type": "number",
3553
+ "minimum": 0,
3554
+ "maximum": 1
3555
+ },
3556
+ "rx": {
3557
+ "type": "number",
3558
+ "exclusiveMinimum": 0,
3559
+ "maximum": 1
3560
+ },
3561
+ "ry": {
3562
+ "type": "number",
3563
+ "exclusiveMinimum": 0,
3564
+ "maximum": 1
3565
+ },
3566
+ "fill": {
3567
+ "enum": [
3568
+ "fill",
3569
+ "none"
3570
+ ]
3571
+ },
3572
+ "stroke": {
3573
+ "enum": [
3574
+ "stroke",
3575
+ "none"
3576
+ ]
3577
+ }
3578
+ }
3579
+ },
3580
+ {
3581
+ "type": "object",
3582
+ "additionalProperties": false,
3583
+ "required": [
3584
+ "type",
3585
+ "points",
3586
+ "fill",
3587
+ "stroke"
3588
+ ],
3589
+ "properties": {
3590
+ "type": {
3591
+ "const": "polygon"
3592
+ },
3593
+ "points": {
3594
+ "type": "array",
3595
+ "minItems": 3,
3596
+ "maxItems": 32,
3597
+ "items": {
3598
+ "type": "object",
3599
+ "additionalProperties": false,
3600
+ "required": [
3601
+ "x",
3602
+ "y"
3603
+ ],
3604
+ "properties": {
3605
+ "x": {
3606
+ "type": "number",
3607
+ "minimum": 0,
3608
+ "maximum": 1
3609
+ },
3610
+ "y": {
3611
+ "type": "number",
3612
+ "minimum": 0,
3613
+ "maximum": 1
3614
+ }
3615
+ }
3616
+ }
3617
+ },
3618
+ "fill": {
3619
+ "enum": [
3620
+ "fill",
3621
+ "none"
3622
+ ]
3623
+ },
3624
+ "stroke": {
3625
+ "enum": [
3626
+ "stroke",
3627
+ "none"
3628
+ ]
3629
+ }
3630
+ }
3631
+ },
3632
+ {
3633
+ "type": "object",
3634
+ "additionalProperties": false,
3635
+ "required": [
3636
+ "type",
3637
+ "x1",
3638
+ "y1",
3639
+ "x2",
3640
+ "y2",
3641
+ "stroke"
3642
+ ],
3643
+ "properties": {
3644
+ "type": {
3645
+ "const": "line"
3646
+ },
3647
+ "x1": {
3648
+ "type": "number",
3649
+ "minimum": 0,
3650
+ "maximum": 1
3651
+ },
3652
+ "y1": {
3653
+ "type": "number",
3654
+ "minimum": 0,
3655
+ "maximum": 1
3656
+ },
3657
+ "x2": {
3658
+ "type": "number",
3659
+ "minimum": 0,
3660
+ "maximum": 1
3661
+ },
3662
+ "y2": {
3663
+ "type": "number",
3664
+ "minimum": 0,
3665
+ "maximum": 1
3666
+ },
3667
+ "stroke": {
3668
+ "enum": [
3669
+ "stroke",
3670
+ "none"
3671
+ ]
3672
+ }
3673
+ }
3674
+ }
3675
+ ]
3676
+ }
3677
+ },
3678
+ "attachment": {
3679
+ "oneOf": [
3680
+ {
3681
+ "type": "object",
3682
+ "additionalProperties": false,
3683
+ "required": [
3684
+ "type",
3685
+ "x",
3686
+ "y",
3687
+ "width",
3688
+ "height",
3689
+ "radius"
3690
+ ],
3691
+ "properties": {
3692
+ "type": {
3693
+ "const": "rect"
3694
+ },
3695
+ "x": {
3696
+ "type": "number",
3697
+ "minimum": 0,
3698
+ "maximum": 1
3699
+ },
3700
+ "y": {
3701
+ "type": "number",
3702
+ "minimum": 0,
3703
+ "maximum": 1
3704
+ },
3705
+ "width": {
3706
+ "type": "number",
3707
+ "exclusiveMinimum": 0,
3708
+ "maximum": 1
3709
+ },
3710
+ "height": {
3711
+ "type": "number",
3712
+ "exclusiveMinimum": 0,
3713
+ "maximum": 1
3714
+ },
3715
+ "radius": {
3716
+ "type": "number",
3717
+ "minimum": 0,
3718
+ "maximum": 1
3719
+ }
3720
+ }
3721
+ },
3722
+ {
3723
+ "type": "object",
3724
+ "additionalProperties": false,
3725
+ "required": [
3726
+ "type",
3727
+ "cx",
3728
+ "cy",
3729
+ "rx",
3730
+ "ry"
3731
+ ],
3732
+ "properties": {
3733
+ "type": {
3734
+ "const": "ellipse"
3735
+ },
3736
+ "cx": {
3737
+ "type": "number",
3738
+ "minimum": 0,
3739
+ "maximum": 1
3740
+ },
3741
+ "cy": {
3742
+ "type": "number",
3743
+ "minimum": 0,
3744
+ "maximum": 1
3745
+ },
3746
+ "rx": {
3747
+ "type": "number",
3748
+ "exclusiveMinimum": 0,
3749
+ "maximum": 1
3750
+ },
3751
+ "ry": {
3752
+ "type": "number",
3753
+ "exclusiveMinimum": 0,
3754
+ "maximum": 1
3755
+ }
3756
+ }
3757
+ },
3758
+ {
3759
+ "type": "object",
3760
+ "additionalProperties": false,
3761
+ "required": [
3762
+ "type",
3763
+ "points"
3764
+ ],
3765
+ "properties": {
3766
+ "type": {
3767
+ "const": "polygon"
3768
+ },
3769
+ "points": {
3770
+ "type": "array",
3771
+ "minItems": 3,
3772
+ "maxItems": 32,
3773
+ "items": {
3774
+ "type": "object",
3775
+ "additionalProperties": false,
3776
+ "required": [
3777
+ "x",
3778
+ "y"
3779
+ ],
3780
+ "properties": {
3781
+ "x": {
3782
+ "type": "number",
3783
+ "minimum": 0,
3784
+ "maximum": 1
3785
+ },
3786
+ "y": {
3787
+ "type": "number",
3788
+ "minimum": 0,
3789
+ "maximum": 1
3790
+ }
3791
+ }
3792
+ }
3793
+ }
3794
+ }
3795
+ }
3796
+ ]
3797
+ },
3798
+ "textRegion": {
3799
+ "type": "object",
3800
+ "additionalProperties": false,
3801
+ "required": [
3802
+ "x",
3803
+ "y",
3804
+ "width",
3805
+ "height"
3806
+ ],
3807
+ "properties": {
3808
+ "x": {
3809
+ "type": "number",
3810
+ "minimum": 0,
3811
+ "maximum": 1
3812
+ },
3813
+ "y": {
3814
+ "type": "number",
3815
+ "minimum": 0,
3816
+ "maximum": 1
3817
+ },
3818
+ "width": {
3819
+ "type": "number",
3820
+ "exclusiveMinimum": 0,
3821
+ "maximum": 1
3822
+ },
3823
+ "height": {
3824
+ "type": "number",
3825
+ "exclusiveMinimum": 0,
3826
+ "maximum": 1
3827
+ }
3828
+ }
3829
+ },
3830
+ "sizing": {
3831
+ "type": "object",
3832
+ "additionalProperties": false,
3833
+ "required": [
3834
+ "width",
3835
+ "height",
3836
+ "minWidth",
3837
+ "minHeight"
3838
+ ],
3839
+ "properties": {
3840
+ "width": {
3841
+ "type": "number",
3842
+ "minimum": 1,
3843
+ "maximum": 10000
3844
+ },
3845
+ "height": {
3846
+ "type": "number",
3847
+ "minimum": 1,
3848
+ "maximum": 10000
3849
+ },
3850
+ "minWidth": {
3851
+ "type": "number",
3852
+ "minimum": 1,
3853
+ "maximum": 10000
3854
+ },
3855
+ "minHeight": {
3856
+ "type": "number",
3857
+ "minimum": 1,
3858
+ "maximum": 10000
3859
+ }
3860
+ }
3861
+ }
3862
+ }
3863
+ }
3864
+ },
3865
+ {
3866
+ "type": "null"
3867
+ }
3868
+ ]
3869
+ },
3870
+ "after": {
3871
+ "anyOf": [
3872
+ {
3873
+ "type": "array",
3874
+ "maxItems": 512,
3875
+ "items": {
3876
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3877
+ "$id": "https://openplanr.dev/schemas/v1.21.0/diagram-shape-definition.schema.json",
3878
+ "x-openplanr-contract": {
3879
+ "id": "diagram-shape-definition",
3880
+ "version": "1.21.0"
3881
+ },
3882
+ "type": "object",
3883
+ "additionalProperties": false,
3884
+ "required": [
3885
+ "packId",
3886
+ "packVersion",
3887
+ "shapeId",
3888
+ "definitionDigest",
3889
+ "name",
3890
+ "description",
3891
+ "tags",
3892
+ "primitives",
3893
+ "attachment",
3894
+ "textRegion",
3895
+ "sizing"
3896
+ ],
3897
+ "properties": {
3898
+ "packId": {
3899
+ "type": "string",
3900
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
3901
+ "maxLength": 128
3902
+ },
3903
+ "packVersion": {
3904
+ "type": "string",
3905
+ "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$",
3906
+ "maxLength": 32
3907
+ },
3908
+ "shapeId": {
3909
+ "type": "string",
3910
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
3911
+ "maxLength": 128
3912
+ },
3913
+ "definitionDigest": {
3914
+ "type": "string",
3915
+ "pattern": "^sha256:[a-f0-9]{64}$"
3916
+ },
3917
+ "name": {
3918
+ "type": "string",
3919
+ "minLength": 1,
3920
+ "maxLength": 128
3921
+ },
3922
+ "description": {
3923
+ "type": "string",
3924
+ "maxLength": 1024
3925
+ },
3926
+ "tags": {
3927
+ "type": "array",
3928
+ "maxItems": 16,
3929
+ "uniqueItems": true,
3930
+ "items": {
3931
+ "type": "string",
3932
+ "minLength": 1,
3933
+ "maxLength": 64
3934
+ }
3935
+ },
3936
+ "primitives": {
3937
+ "type": "array",
3938
+ "minItems": 1,
3939
+ "maxItems": 32,
3940
+ "items": {
3941
+ "oneOf": [
3942
+ {
3943
+ "type": "object",
3944
+ "additionalProperties": false,
3945
+ "required": [
3946
+ "type",
3947
+ "x",
3948
+ "y",
3949
+ "width",
3950
+ "height",
3951
+ "radius",
3952
+ "fill",
3953
+ "stroke"
3954
+ ],
3955
+ "properties": {
3956
+ "type": {
3957
+ "const": "rect"
3958
+ },
3959
+ "x": {
3960
+ "type": "number",
3961
+ "minimum": 0,
3962
+ "maximum": 1
3963
+ },
3964
+ "y": {
3965
+ "type": "number",
3966
+ "minimum": 0,
3967
+ "maximum": 1
3968
+ },
3969
+ "width": {
3970
+ "type": "number",
3971
+ "exclusiveMinimum": 0,
3972
+ "maximum": 1
3973
+ },
3974
+ "height": {
3975
+ "type": "number",
3976
+ "exclusiveMinimum": 0,
3977
+ "maximum": 1
3978
+ },
3979
+ "radius": {
3980
+ "type": "number",
3981
+ "minimum": 0,
3982
+ "maximum": 1
3983
+ },
3984
+ "fill": {
3985
+ "enum": [
3986
+ "fill",
3987
+ "none"
3988
+ ]
3989
+ },
3990
+ "stroke": {
3991
+ "enum": [
3992
+ "stroke",
3993
+ "none"
3994
+ ]
3995
+ }
3996
+ }
3997
+ },
3998
+ {
3999
+ "type": "object",
4000
+ "additionalProperties": false,
4001
+ "required": [
4002
+ "type",
4003
+ "cx",
4004
+ "cy",
4005
+ "rx",
4006
+ "ry",
4007
+ "fill",
4008
+ "stroke"
4009
+ ],
4010
+ "properties": {
4011
+ "type": {
4012
+ "const": "ellipse"
4013
+ },
4014
+ "cx": {
4015
+ "type": "number",
4016
+ "minimum": 0,
4017
+ "maximum": 1
4018
+ },
4019
+ "cy": {
4020
+ "type": "number",
4021
+ "minimum": 0,
4022
+ "maximum": 1
4023
+ },
4024
+ "rx": {
4025
+ "type": "number",
4026
+ "exclusiveMinimum": 0,
4027
+ "maximum": 1
4028
+ },
4029
+ "ry": {
4030
+ "type": "number",
4031
+ "exclusiveMinimum": 0,
4032
+ "maximum": 1
4033
+ },
4034
+ "fill": {
4035
+ "enum": [
4036
+ "fill",
4037
+ "none"
4038
+ ]
4039
+ },
4040
+ "stroke": {
4041
+ "enum": [
4042
+ "stroke",
4043
+ "none"
4044
+ ]
4045
+ }
4046
+ }
4047
+ },
4048
+ {
4049
+ "type": "object",
4050
+ "additionalProperties": false,
4051
+ "required": [
4052
+ "type",
4053
+ "points",
4054
+ "fill",
4055
+ "stroke"
4056
+ ],
4057
+ "properties": {
4058
+ "type": {
4059
+ "const": "polygon"
4060
+ },
4061
+ "points": {
4062
+ "type": "array",
4063
+ "minItems": 3,
4064
+ "maxItems": 32,
4065
+ "items": {
4066
+ "type": "object",
4067
+ "additionalProperties": false,
4068
+ "required": [
4069
+ "x",
4070
+ "y"
4071
+ ],
4072
+ "properties": {
4073
+ "x": {
4074
+ "type": "number",
4075
+ "minimum": 0,
4076
+ "maximum": 1
4077
+ },
4078
+ "y": {
4079
+ "type": "number",
4080
+ "minimum": 0,
4081
+ "maximum": 1
4082
+ }
4083
+ }
4084
+ }
4085
+ },
4086
+ "fill": {
4087
+ "enum": [
4088
+ "fill",
4089
+ "none"
4090
+ ]
4091
+ },
4092
+ "stroke": {
4093
+ "enum": [
4094
+ "stroke",
4095
+ "none"
4096
+ ]
4097
+ }
4098
+ }
4099
+ },
4100
+ {
4101
+ "type": "object",
4102
+ "additionalProperties": false,
4103
+ "required": [
4104
+ "type",
4105
+ "x1",
4106
+ "y1",
4107
+ "x2",
4108
+ "y2",
4109
+ "stroke"
4110
+ ],
4111
+ "properties": {
4112
+ "type": {
4113
+ "const": "line"
4114
+ },
4115
+ "x1": {
4116
+ "type": "number",
4117
+ "minimum": 0,
4118
+ "maximum": 1
4119
+ },
4120
+ "y1": {
4121
+ "type": "number",
4122
+ "minimum": 0,
4123
+ "maximum": 1
4124
+ },
4125
+ "x2": {
4126
+ "type": "number",
4127
+ "minimum": 0,
4128
+ "maximum": 1
4129
+ },
4130
+ "y2": {
4131
+ "type": "number",
4132
+ "minimum": 0,
4133
+ "maximum": 1
4134
+ },
4135
+ "stroke": {
4136
+ "enum": [
4137
+ "stroke",
4138
+ "none"
4139
+ ]
4140
+ }
4141
+ }
4142
+ }
4143
+ ]
4144
+ }
4145
+ },
4146
+ "attachment": {
4147
+ "oneOf": [
4148
+ {
4149
+ "type": "object",
4150
+ "additionalProperties": false,
4151
+ "required": [
4152
+ "type",
4153
+ "x",
4154
+ "y",
4155
+ "width",
4156
+ "height",
4157
+ "radius"
4158
+ ],
4159
+ "properties": {
4160
+ "type": {
4161
+ "const": "rect"
4162
+ },
4163
+ "x": {
4164
+ "type": "number",
4165
+ "minimum": 0,
4166
+ "maximum": 1
4167
+ },
4168
+ "y": {
4169
+ "type": "number",
4170
+ "minimum": 0,
4171
+ "maximum": 1
4172
+ },
4173
+ "width": {
4174
+ "type": "number",
4175
+ "exclusiveMinimum": 0,
4176
+ "maximum": 1
4177
+ },
4178
+ "height": {
4179
+ "type": "number",
4180
+ "exclusiveMinimum": 0,
4181
+ "maximum": 1
4182
+ },
4183
+ "radius": {
4184
+ "type": "number",
4185
+ "minimum": 0,
4186
+ "maximum": 1
4187
+ }
4188
+ }
4189
+ },
4190
+ {
4191
+ "type": "object",
4192
+ "additionalProperties": false,
4193
+ "required": [
4194
+ "type",
4195
+ "cx",
4196
+ "cy",
4197
+ "rx",
4198
+ "ry"
4199
+ ],
4200
+ "properties": {
4201
+ "type": {
4202
+ "const": "ellipse"
4203
+ },
4204
+ "cx": {
4205
+ "type": "number",
4206
+ "minimum": 0,
4207
+ "maximum": 1
4208
+ },
4209
+ "cy": {
4210
+ "type": "number",
4211
+ "minimum": 0,
4212
+ "maximum": 1
4213
+ },
4214
+ "rx": {
4215
+ "type": "number",
4216
+ "exclusiveMinimum": 0,
4217
+ "maximum": 1
4218
+ },
4219
+ "ry": {
4220
+ "type": "number",
4221
+ "exclusiveMinimum": 0,
4222
+ "maximum": 1
4223
+ }
4224
+ }
4225
+ },
4226
+ {
4227
+ "type": "object",
4228
+ "additionalProperties": false,
4229
+ "required": [
4230
+ "type",
4231
+ "points"
4232
+ ],
4233
+ "properties": {
4234
+ "type": {
4235
+ "const": "polygon"
4236
+ },
4237
+ "points": {
4238
+ "type": "array",
4239
+ "minItems": 3,
4240
+ "maxItems": 32,
4241
+ "items": {
4242
+ "type": "object",
4243
+ "additionalProperties": false,
4244
+ "required": [
4245
+ "x",
4246
+ "y"
4247
+ ],
4248
+ "properties": {
4249
+ "x": {
4250
+ "type": "number",
4251
+ "minimum": 0,
4252
+ "maximum": 1
4253
+ },
4254
+ "y": {
4255
+ "type": "number",
4256
+ "minimum": 0,
4257
+ "maximum": 1
4258
+ }
4259
+ }
4260
+ }
4261
+ }
4262
+ }
4263
+ }
4264
+ ]
4265
+ },
4266
+ "textRegion": {
4267
+ "type": "object",
4268
+ "additionalProperties": false,
4269
+ "required": [
4270
+ "x",
4271
+ "y",
4272
+ "width",
4273
+ "height"
4274
+ ],
4275
+ "properties": {
4276
+ "x": {
4277
+ "type": "number",
4278
+ "minimum": 0,
4279
+ "maximum": 1
4280
+ },
4281
+ "y": {
4282
+ "type": "number",
4283
+ "minimum": 0,
4284
+ "maximum": 1
4285
+ },
4286
+ "width": {
4287
+ "type": "number",
4288
+ "exclusiveMinimum": 0,
4289
+ "maximum": 1
4290
+ },
4291
+ "height": {
4292
+ "type": "number",
4293
+ "exclusiveMinimum": 0,
4294
+ "maximum": 1
4295
+ }
4296
+ }
4297
+ },
4298
+ "sizing": {
4299
+ "type": "object",
4300
+ "additionalProperties": false,
4301
+ "required": [
4302
+ "width",
4303
+ "height",
4304
+ "minWidth",
4305
+ "minHeight"
4306
+ ],
4307
+ "properties": {
4308
+ "width": {
4309
+ "type": "number",
4310
+ "minimum": 1,
4311
+ "maximum": 10000
4312
+ },
4313
+ "height": {
4314
+ "type": "number",
4315
+ "minimum": 1,
4316
+ "maximum": 10000
4317
+ },
4318
+ "minWidth": {
4319
+ "type": "number",
4320
+ "minimum": 1,
4321
+ "maximum": 10000
4322
+ },
4323
+ "minHeight": {
4324
+ "type": "number",
4325
+ "minimum": 1,
4326
+ "maximum": 10000
4327
+ }
4328
+ }
4329
+ }
4330
+ }
4331
+ }
4332
+ },
4333
+ {
4334
+ "type": "null"
4335
+ }
4336
+ ]
4337
+ }
4338
+ }
4339
+ }
4340
+ ]
4341
+ },
4342
+ "minItems": 1,
4343
+ "maxItems": 256
4344
+ },
4345
+ "undoOf": {
4346
+ "anyOf": [
4347
+ {
4348
+ "type": "null"
4349
+ },
4350
+ {
4351
+ "type": "string",
4352
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
4353
+ "minLength": 1,
4354
+ "maxLength": 128
4355
+ }
4356
+ ]
4357
+ }
4358
+ },
4359
+ "required": [
4360
+ "kind",
4361
+ "schemaVersion",
4362
+ "protocolVersion",
4363
+ "transactionId",
4364
+ "diagramId",
4365
+ "base",
4366
+ "operations",
4367
+ "undoOf"
4368
+ ]
4369
+ }