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