@openplanr/protocol 0.7.3 → 0.8.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,1280 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v1.15.0/diagram-review-bundle.schema.json",
4
+ "x-openplanr-contract": {
5
+ "id": "diagram-review-bundle",
6
+ "version": "1.15.0"
7
+ },
8
+ "type": "object",
9
+ "properties": {
10
+ "kind": {
11
+ "const": "openplanr-diagram-review-bundle"
12
+ },
13
+ "schemaVersion": {
14
+ "const": "1.0.0"
15
+ },
16
+ "diagramId": {
17
+ "type": "string",
18
+ "minLength": 1,
19
+ "maxLength": 160
20
+ },
21
+ "title": {
22
+ "type": "string",
23
+ "maxLength": 8192
24
+ },
25
+ "source": {
26
+ "type": "object",
27
+ "properties": {
28
+ "kind": {
29
+ "enum": [
30
+ "manifest",
31
+ "authoring"
32
+ ]
33
+ },
34
+ "digest": {
35
+ "type": "string",
36
+ "pattern": "^sha256:[a-f0-9]{64}$"
37
+ }
38
+ },
39
+ "required": [
40
+ "kind",
41
+ "digest"
42
+ ],
43
+ "additionalProperties": false
44
+ },
45
+ "rendering": {
46
+ "type": "object",
47
+ "properties": {
48
+ "id": {
49
+ "type": "string",
50
+ "minLength": 1,
51
+ "maxLength": 160
52
+ },
53
+ "version": {
54
+ "type": "string",
55
+ "minLength": 1,
56
+ "maxLength": 160
57
+ },
58
+ "fontFamily": {
59
+ "const": "Inter"
60
+ }
61
+ },
62
+ "required": [
63
+ "id",
64
+ "version",
65
+ "fontFamily"
66
+ ],
67
+ "additionalProperties": false
68
+ },
69
+ "summary": {
70
+ "type": "string",
71
+ "maxLength": 8192
72
+ },
73
+ "grammar": {
74
+ "type": "string",
75
+ "minLength": 1,
76
+ "maxLength": 160
77
+ },
78
+ "colorScheme": {
79
+ "enum": [
80
+ "light",
81
+ "dark"
82
+ ]
83
+ },
84
+ "scene": {
85
+ "type": "object",
86
+ "properties": {
87
+ "svg": {
88
+ "type": "string",
89
+ "minLength": 1,
90
+ "maxLength": 5242880
91
+ },
92
+ "width": {
93
+ "type": "number",
94
+ "exclusiveMinimum": 0,
95
+ "maximum": 16384
96
+ },
97
+ "height": {
98
+ "type": "number",
99
+ "exclusiveMinimum": 0,
100
+ "maximum": 16384
101
+ },
102
+ "items": {
103
+ "type": "array",
104
+ "items": {
105
+ "type": "object",
106
+ "properties": {
107
+ "id": {
108
+ "type": "string",
109
+ "minLength": 1,
110
+ "maxLength": 160
111
+ },
112
+ "label": {
113
+ "type": "string",
114
+ "maxLength": 8192
115
+ },
116
+ "kind": {
117
+ "type": "string",
118
+ "minLength": 1,
119
+ "maxLength": 160
120
+ },
121
+ "x": {
122
+ "type": "number"
123
+ },
124
+ "y": {
125
+ "type": "number"
126
+ }
127
+ },
128
+ "required": [
129
+ "id",
130
+ "label",
131
+ "kind",
132
+ "x",
133
+ "y"
134
+ ],
135
+ "additionalProperties": false
136
+ },
137
+ "maxItems": 10000
138
+ },
139
+ "relations": {
140
+ "type": "array",
141
+ "items": {
142
+ "type": "object",
143
+ "properties": {
144
+ "id": {
145
+ "type": "string",
146
+ "minLength": 1,
147
+ "maxLength": 160
148
+ },
149
+ "from": {
150
+ "type": "string",
151
+ "minLength": 1,
152
+ "maxLength": 160
153
+ },
154
+ "to": {
155
+ "type": "string",
156
+ "minLength": 1,
157
+ "maxLength": 160
158
+ },
159
+ "label": {
160
+ "type": "string",
161
+ "maxLength": 8192
162
+ },
163
+ "kind": {
164
+ "type": "string",
165
+ "minLength": 1,
166
+ "maxLength": 160
167
+ }
168
+ },
169
+ "required": [
170
+ "id",
171
+ "from",
172
+ "to",
173
+ "label",
174
+ "kind"
175
+ ],
176
+ "additionalProperties": false
177
+ },
178
+ "maxItems": 10000
179
+ }
180
+ },
181
+ "required": [
182
+ "svg",
183
+ "width",
184
+ "height",
185
+ "items",
186
+ "relations"
187
+ ],
188
+ "additionalProperties": false
189
+ },
190
+ "authored": {
191
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
192
+ "$id": "https://openplanr.dev/schemas/v1.13.0/diagram-authoring-bundle.schema.json",
193
+ "x-openplanr-contract": {
194
+ "id": "diagram-authoring-bundle",
195
+ "version": "1.13.0"
196
+ },
197
+ "type": "object",
198
+ "additionalProperties": false,
199
+ "properties": {
200
+ "kind": {
201
+ "const": "diagram-authoring-bundle"
202
+ },
203
+ "schemaVersion": {
204
+ "const": "1.0.0"
205
+ },
206
+ "protocolVersion": {
207
+ "const": "1.13.0"
208
+ },
209
+ "diagramId": {
210
+ "type": "string",
211
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
212
+ "minLength": 1,
213
+ "maxLength": 128
214
+ },
215
+ "document": {
216
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
217
+ "$id": "https://openplanr.dev/schemas/v1.13.0/diagram-document.schema.json",
218
+ "x-openplanr-contract": {
219
+ "id": "diagram-document",
220
+ "version": "1.13.0"
221
+ },
222
+ "type": "object",
223
+ "additionalProperties": false,
224
+ "properties": {
225
+ "kind": {
226
+ "const": "planr-diagram"
227
+ },
228
+ "schemaVersion": {
229
+ "const": "1.0.0"
230
+ },
231
+ "protocolVersion": {
232
+ "const": "1.13.0"
233
+ },
234
+ "diagramId": {
235
+ "type": "string",
236
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
237
+ "minLength": 1,
238
+ "maxLength": 128
239
+ },
240
+ "title": {
241
+ "type": "string",
242
+ "minLength": 0,
243
+ "maxLength": 4096
244
+ },
245
+ "summary": {
246
+ "type": "string",
247
+ "minLength": 0,
248
+ "maxLength": 4096
249
+ },
250
+ "audience": {
251
+ "enum": [
252
+ "engineer",
253
+ "executive",
254
+ "mixed"
255
+ ]
256
+ },
257
+ "grammar": {
258
+ "type": "object",
259
+ "additionalProperties": false,
260
+ "properties": {
261
+ "id": {
262
+ "enum": [
263
+ "flowchart",
264
+ "process",
265
+ "swimlane",
266
+ "architecture"
267
+ ]
268
+ },
269
+ "version": {
270
+ "const": "1.0.0"
271
+ }
272
+ },
273
+ "required": [
274
+ "id",
275
+ "version"
276
+ ]
277
+ },
278
+ "nodes": {
279
+ "type": "array",
280
+ "items": {
281
+ "type": "object",
282
+ "additionalProperties": false,
283
+ "properties": {
284
+ "id": {
285
+ "type": "string",
286
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
287
+ "minLength": 1,
288
+ "maxLength": 128
289
+ },
290
+ "label": {
291
+ "type": "string",
292
+ "minLength": 0,
293
+ "maxLength": 4096
294
+ },
295
+ "kind": {
296
+ "enum": [
297
+ "process",
298
+ "start",
299
+ "end",
300
+ "decision",
301
+ "data-store",
302
+ "component"
303
+ ]
304
+ },
305
+ "description": {
306
+ "anyOf": [
307
+ {
308
+ "type": "null"
309
+ },
310
+ {
311
+ "type": "string",
312
+ "minLength": 0,
313
+ "maxLength": 4096
314
+ }
315
+ ]
316
+ }
317
+ },
318
+ "required": [
319
+ "id",
320
+ "label",
321
+ "kind",
322
+ "description"
323
+ ]
324
+ },
325
+ "minItems": 0,
326
+ "maxItems": 4096
327
+ },
328
+ "relations": {
329
+ "type": "array",
330
+ "items": {
331
+ "type": "object",
332
+ "additionalProperties": false,
333
+ "properties": {
334
+ "id": {
335
+ "type": "string",
336
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
337
+ "minLength": 1,
338
+ "maxLength": 128
339
+ },
340
+ "from": {
341
+ "type": "string",
342
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
343
+ "minLength": 1,
344
+ "maxLength": 128
345
+ },
346
+ "to": {
347
+ "type": "string",
348
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
349
+ "minLength": 1,
350
+ "maxLength": 128
351
+ },
352
+ "kind": {
353
+ "enum": [
354
+ "association",
355
+ "dependency",
356
+ "flow",
357
+ "message",
358
+ "transition"
359
+ ]
360
+ },
361
+ "direction": {
362
+ "enum": [
363
+ "forward",
364
+ "both",
365
+ "none"
366
+ ]
367
+ },
368
+ "label": {
369
+ "anyOf": [
370
+ {
371
+ "type": "null"
372
+ },
373
+ {
374
+ "type": "string",
375
+ "minLength": 0,
376
+ "maxLength": 4096
377
+ }
378
+ ]
379
+ },
380
+ "weight": {
381
+ "anyOf": [
382
+ {
383
+ "type": "null"
384
+ },
385
+ {
386
+ "type": "number",
387
+ "minimum": 0,
388
+ "maximum": 1000000
389
+ }
390
+ ]
391
+ }
392
+ },
393
+ "required": [
394
+ "id",
395
+ "from",
396
+ "to",
397
+ "kind",
398
+ "direction",
399
+ "label",
400
+ "weight"
401
+ ]
402
+ },
403
+ "minItems": 0,
404
+ "maxItems": 8192
405
+ },
406
+ "groups": {
407
+ "type": "array",
408
+ "items": {
409
+ "type": "object",
410
+ "additionalProperties": false,
411
+ "properties": {
412
+ "id": {
413
+ "type": "string",
414
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
415
+ "minLength": 1,
416
+ "maxLength": 128
417
+ },
418
+ "label": {
419
+ "type": "string",
420
+ "minLength": 0,
421
+ "maxLength": 4096
422
+ },
423
+ "members": {
424
+ "type": "array",
425
+ "items": {
426
+ "type": "string",
427
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
428
+ "minLength": 1,
429
+ "maxLength": 128
430
+ },
431
+ "minItems": 0,
432
+ "maxItems": 10000,
433
+ "uniqueItems": true
434
+ }
435
+ },
436
+ "required": [
437
+ "id",
438
+ "label",
439
+ "members"
440
+ ]
441
+ },
442
+ "minItems": 0,
443
+ "maxItems": 1024
444
+ },
445
+ "lanes": {
446
+ "type": "array",
447
+ "items": {
448
+ "type": "object",
449
+ "additionalProperties": false,
450
+ "properties": {
451
+ "id": {
452
+ "type": "string",
453
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
454
+ "minLength": 1,
455
+ "maxLength": 128
456
+ },
457
+ "label": {
458
+ "type": "string",
459
+ "minLength": 0,
460
+ "maxLength": 4096
461
+ },
462
+ "members": {
463
+ "type": "array",
464
+ "items": {
465
+ "type": "string",
466
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
467
+ "minLength": 1,
468
+ "maxLength": 128
469
+ },
470
+ "minItems": 0,
471
+ "maxItems": 10000,
472
+ "uniqueItems": true
473
+ }
474
+ },
475
+ "required": [
476
+ "id",
477
+ "label",
478
+ "members"
479
+ ]
480
+ },
481
+ "minItems": 0,
482
+ "maxItems": 256
483
+ },
484
+ "events": {
485
+ "type": "array",
486
+ "items": false,
487
+ "minItems": 0,
488
+ "maxItems": 0
489
+ },
490
+ "series": {
491
+ "type": "array",
492
+ "items": false,
493
+ "minItems": 0,
494
+ "maxItems": 0
495
+ },
496
+ "axes": {
497
+ "type": "array",
498
+ "items": false,
499
+ "minItems": 0,
500
+ "maxItems": 0
501
+ },
502
+ "sets": {
503
+ "type": "array",
504
+ "items": false,
505
+ "minItems": 0,
506
+ "maxItems": 0
507
+ },
508
+ "annotations": {
509
+ "type": "array",
510
+ "items": {
511
+ "type": "object",
512
+ "additionalProperties": false,
513
+ "properties": {
514
+ "id": {
515
+ "type": "string",
516
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
517
+ "minLength": 1,
518
+ "maxLength": 128
519
+ },
520
+ "text": {
521
+ "type": "string",
522
+ "minLength": 0,
523
+ "maxLength": 4096
524
+ },
525
+ "targetId": {
526
+ "anyOf": [
527
+ {
528
+ "type": "null"
529
+ },
530
+ {
531
+ "type": "string",
532
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
533
+ "minLength": 1,
534
+ "maxLength": 128
535
+ }
536
+ ]
537
+ }
538
+ },
539
+ "required": [
540
+ "id",
541
+ "text",
542
+ "targetId"
543
+ ]
544
+ },
545
+ "minItems": 0,
546
+ "maxItems": 1024
547
+ },
548
+ "emphasis": {
549
+ "type": "array",
550
+ "items": {
551
+ "type": "object",
552
+ "additionalProperties": false,
553
+ "properties": {
554
+ "targetId": {
555
+ "type": "string",
556
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
557
+ "minLength": 1,
558
+ "maxLength": 128
559
+ },
560
+ "level": {
561
+ "enum": [
562
+ "primary",
563
+ "secondary",
564
+ "muted"
565
+ ]
566
+ }
567
+ },
568
+ "required": [
569
+ "targetId",
570
+ "level"
571
+ ]
572
+ },
573
+ "minItems": 0,
574
+ "maxItems": 1024
575
+ },
576
+ "laneOrder": {
577
+ "type": "array",
578
+ "items": {
579
+ "type": "string",
580
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
581
+ "minLength": 1,
582
+ "maxLength": 128
583
+ },
584
+ "minItems": 0,
585
+ "maxItems": 10000,
586
+ "uniqueItems": true
587
+ },
588
+ "accessibility": {
589
+ "type": "object",
590
+ "additionalProperties": false,
591
+ "properties": {
592
+ "title": {
593
+ "type": "string",
594
+ "minLength": 0,
595
+ "maxLength": 4096
596
+ },
597
+ "description": {
598
+ "type": "string",
599
+ "minLength": 0,
600
+ "maxLength": 4096
601
+ },
602
+ "readingOrder": {
603
+ "type": "array",
604
+ "items": {
605
+ "type": "string",
606
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
607
+ "minLength": 1,
608
+ "maxLength": 128
609
+ },
610
+ "minItems": 0,
611
+ "maxItems": 10000,
612
+ "uniqueItems": true
613
+ }
614
+ },
615
+ "required": [
616
+ "title",
617
+ "description",
618
+ "readingOrder"
619
+ ]
620
+ },
621
+ "documentDigest": {
622
+ "type": "string",
623
+ "pattern": "^sha256:[a-f0-9]{64}$"
624
+ }
625
+ },
626
+ "required": [
627
+ "kind",
628
+ "schemaVersion",
629
+ "protocolVersion",
630
+ "diagramId",
631
+ "title",
632
+ "summary",
633
+ "audience",
634
+ "grammar",
635
+ "nodes",
636
+ "relations",
637
+ "groups",
638
+ "lanes",
639
+ "events",
640
+ "series",
641
+ "axes",
642
+ "sets",
643
+ "annotations",
644
+ "emphasis",
645
+ "laneOrder",
646
+ "accessibility",
647
+ "documentDigest"
648
+ ]
649
+ },
650
+ "presentation": {
651
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
652
+ "$id": "https://openplanr.dev/schemas/v1.13.0/diagram-presentation.schema.json",
653
+ "x-openplanr-contract": {
654
+ "id": "diagram-presentation",
655
+ "version": "1.13.0"
656
+ },
657
+ "type": "object",
658
+ "additionalProperties": false,
659
+ "properties": {
660
+ "kind": {
661
+ "const": "diagram-presentation"
662
+ },
663
+ "schemaVersion": {
664
+ "const": "1.0.0"
665
+ },
666
+ "protocolVersion": {
667
+ "const": "1.13.0"
668
+ },
669
+ "diagramId": {
670
+ "type": "string",
671
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
672
+ "minLength": 1,
673
+ "maxLength": 128
674
+ },
675
+ "semanticDigest": {
676
+ "type": "string",
677
+ "pattern": "^sha256:[a-f0-9]{64}$"
678
+ },
679
+ "coordinateSystem": {
680
+ "const": "global-canvas"
681
+ },
682
+ "layout": {
683
+ "type": "object",
684
+ "additionalProperties": false,
685
+ "properties": {
686
+ "direction": {
687
+ "enum": [
688
+ "top-down",
689
+ "left-right",
690
+ "right-left",
691
+ "bottom-up"
692
+ ]
693
+ },
694
+ "detailTier": {
695
+ "enum": [
696
+ "simplified",
697
+ "balanced",
698
+ "faithful"
699
+ ]
700
+ }
701
+ },
702
+ "required": [
703
+ "direction",
704
+ "detailTier"
705
+ ]
706
+ },
707
+ "theme": {
708
+ "type": "object",
709
+ "additionalProperties": false,
710
+ "properties": {
711
+ "themeId": {
712
+ "enum": [
713
+ "paper",
714
+ "slate",
715
+ "midnight"
716
+ ]
717
+ },
718
+ "mode": {
719
+ "enum": [
720
+ "light",
721
+ "dark",
722
+ "auto"
723
+ ]
724
+ }
725
+ },
726
+ "required": [
727
+ "themeId",
728
+ "mode"
729
+ ]
730
+ },
731
+ "elements": {
732
+ "type": "array",
733
+ "items": {
734
+ "type": "object",
735
+ "additionalProperties": false,
736
+ "properties": {
737
+ "elementId": {
738
+ "type": "string",
739
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
740
+ "minLength": 1,
741
+ "maxLength": 128
742
+ },
743
+ "bounds": {
744
+ "anyOf": [
745
+ {
746
+ "type": "null"
747
+ },
748
+ {
749
+ "type": "object",
750
+ "additionalProperties": false,
751
+ "properties": {
752
+ "x": {
753
+ "type": "number",
754
+ "minimum": -1000000,
755
+ "maximum": 1000000
756
+ },
757
+ "y": {
758
+ "type": "number",
759
+ "minimum": -1000000,
760
+ "maximum": 1000000
761
+ },
762
+ "width": {
763
+ "type": "number",
764
+ "minimum": 0.01,
765
+ "maximum": 1000000
766
+ },
767
+ "height": {
768
+ "type": "number",
769
+ "minimum": 0.01,
770
+ "maximum": 1000000
771
+ }
772
+ },
773
+ "required": [
774
+ "x",
775
+ "y",
776
+ "width",
777
+ "height"
778
+ ]
779
+ }
780
+ ]
781
+ },
782
+ "route": {
783
+ "anyOf": [
784
+ {
785
+ "type": "null"
786
+ },
787
+ {
788
+ "type": "object",
789
+ "additionalProperties": false,
790
+ "properties": {
791
+ "mode": {
792
+ "enum": [
793
+ "automatic",
794
+ "manual"
795
+ ]
796
+ },
797
+ "strategy": {
798
+ "enum": [
799
+ "straight",
800
+ "orthogonal"
801
+ ]
802
+ },
803
+ "from": {
804
+ "type": "object",
805
+ "additionalProperties": false,
806
+ "properties": {
807
+ "side": {
808
+ "enum": [
809
+ "top",
810
+ "right",
811
+ "bottom",
812
+ "left"
813
+ ]
814
+ },
815
+ "offset": {
816
+ "type": "number",
817
+ "minimum": 0,
818
+ "maximum": 1
819
+ }
820
+ },
821
+ "required": [
822
+ "side",
823
+ "offset"
824
+ ]
825
+ },
826
+ "to": {
827
+ "type": "object",
828
+ "additionalProperties": false,
829
+ "properties": {
830
+ "side": {
831
+ "enum": [
832
+ "top",
833
+ "right",
834
+ "bottom",
835
+ "left"
836
+ ]
837
+ },
838
+ "offset": {
839
+ "type": "number",
840
+ "minimum": 0,
841
+ "maximum": 1
842
+ }
843
+ },
844
+ "required": [
845
+ "side",
846
+ "offset"
847
+ ]
848
+ },
849
+ "points": {
850
+ "type": "array",
851
+ "items": {
852
+ "type": "object",
853
+ "additionalProperties": false,
854
+ "properties": {
855
+ "x": {
856
+ "type": "number",
857
+ "minimum": -1000000,
858
+ "maximum": 1000000
859
+ },
860
+ "y": {
861
+ "type": "number",
862
+ "minimum": -1000000,
863
+ "maximum": 1000000
864
+ }
865
+ },
866
+ "required": [
867
+ "x",
868
+ "y"
869
+ ]
870
+ },
871
+ "minItems": 0,
872
+ "maxItems": 256
873
+ }
874
+ },
875
+ "required": [
876
+ "mode",
877
+ "strategy",
878
+ "from",
879
+ "to",
880
+ "points"
881
+ ]
882
+ }
883
+ ]
884
+ },
885
+ "label": {
886
+ "anyOf": [
887
+ {
888
+ "type": "null"
889
+ },
890
+ {
891
+ "type": "object",
892
+ "additionalProperties": false,
893
+ "properties": {
894
+ "x": {
895
+ "type": "number",
896
+ "minimum": -1000000,
897
+ "maximum": 1000000
898
+ },
899
+ "y": {
900
+ "type": "number",
901
+ "minimum": -1000000,
902
+ "maximum": 1000000
903
+ },
904
+ "width": {
905
+ "type": "number",
906
+ "minimum": 0.01,
907
+ "maximum": 1000000
908
+ }
909
+ },
910
+ "required": [
911
+ "x",
912
+ "y",
913
+ "width"
914
+ ]
915
+ }
916
+ ]
917
+ },
918
+ "zIndex": {
919
+ "type": "integer",
920
+ "minimum": 0,
921
+ "maximum": 10000
922
+ },
923
+ "appearance": {
924
+ "type": "object",
925
+ "additionalProperties": false,
926
+ "properties": {
927
+ "shape": {
928
+ "enum": [
929
+ "rectangle",
930
+ "rounded-rectangle",
931
+ "ellipse",
932
+ "diamond",
933
+ "cylinder",
934
+ "text",
935
+ "container",
936
+ "connector"
937
+ ]
938
+ },
939
+ "fill": {
940
+ "enum": [
941
+ "surface",
942
+ "accent",
943
+ "success",
944
+ "warning",
945
+ "danger",
946
+ "transparent"
947
+ ]
948
+ },
949
+ "stroke": {
950
+ "enum": [
951
+ "default",
952
+ "accent",
953
+ "muted",
954
+ "danger",
955
+ "none"
956
+ ]
957
+ },
958
+ "strokeWidth": {
959
+ "type": "number",
960
+ "minimum": 0,
961
+ "maximum": 16
962
+ },
963
+ "strokeStyle": {
964
+ "enum": [
965
+ "solid",
966
+ "dashed",
967
+ "dotted"
968
+ ]
969
+ },
970
+ "fontSize": {
971
+ "type": "integer",
972
+ "minimum": 8,
973
+ "maximum": 72
974
+ },
975
+ "textAlign": {
976
+ "enum": [
977
+ "left",
978
+ "center",
979
+ "right"
980
+ ]
981
+ }
982
+ },
983
+ "required": [
984
+ "shape",
985
+ "fill",
986
+ "stroke",
987
+ "strokeWidth",
988
+ "strokeStyle",
989
+ "fontSize",
990
+ "textAlign"
991
+ ]
992
+ },
993
+ "locks": {
994
+ "type": "object",
995
+ "additionalProperties": false,
996
+ "properties": {
997
+ "position": {
998
+ "type": "boolean"
999
+ },
1000
+ "size": {
1001
+ "type": "boolean"
1002
+ },
1003
+ "route": {
1004
+ "type": "boolean"
1005
+ }
1006
+ },
1007
+ "required": [
1008
+ "position",
1009
+ "size",
1010
+ "route"
1011
+ ]
1012
+ }
1013
+ },
1014
+ "required": [
1015
+ "elementId",
1016
+ "bounds",
1017
+ "route",
1018
+ "label",
1019
+ "zIndex",
1020
+ "appearance",
1021
+ "locks"
1022
+ ]
1023
+ },
1024
+ "minItems": 0,
1025
+ "maxItems": 10000
1026
+ },
1027
+ "presentationDigest": {
1028
+ "type": "string",
1029
+ "pattern": "^sha256:[a-f0-9]{64}$"
1030
+ }
1031
+ },
1032
+ "required": [
1033
+ "kind",
1034
+ "schemaVersion",
1035
+ "protocolVersion",
1036
+ "diagramId",
1037
+ "semanticDigest",
1038
+ "coordinateSystem",
1039
+ "layout",
1040
+ "theme",
1041
+ "elements",
1042
+ "presentationDigest"
1043
+ ]
1044
+ },
1045
+ "originalSource": {
1046
+ "anyOf": [
1047
+ {
1048
+ "type": "null"
1049
+ },
1050
+ {
1051
+ "type": "object",
1052
+ "additionalProperties": false,
1053
+ "properties": {
1054
+ "format": {
1055
+ "const": "mermaid"
1056
+ },
1057
+ "text": {
1058
+ "type": "string",
1059
+ "minLength": 0,
1060
+ "maxLength": 1048576
1061
+ },
1062
+ "sourceDigest": {
1063
+ "type": "string",
1064
+ "pattern": "^sha256:[a-f0-9]{64}$"
1065
+ }
1066
+ },
1067
+ "required": [
1068
+ "format",
1069
+ "text",
1070
+ "sourceDigest"
1071
+ ]
1072
+ }
1073
+ ]
1074
+ },
1075
+ "sourceMap": {
1076
+ "anyOf": [
1077
+ {
1078
+ "type": "null"
1079
+ },
1080
+ {
1081
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1082
+ "$id": "https://openplanr.dev/schemas/v1.13.0/diagram-source-map.schema.json",
1083
+ "x-openplanr-contract": {
1084
+ "id": "diagram-source-map",
1085
+ "version": "1.13.0"
1086
+ },
1087
+ "type": "object",
1088
+ "additionalProperties": false,
1089
+ "properties": {
1090
+ "kind": {
1091
+ "const": "diagram-source-map"
1092
+ },
1093
+ "schemaVersion": {
1094
+ "const": "1.0.0"
1095
+ },
1096
+ "protocolVersion": {
1097
+ "const": "1.13.0"
1098
+ },
1099
+ "diagramId": {
1100
+ "type": "string",
1101
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1102
+ "minLength": 1,
1103
+ "maxLength": 128
1104
+ },
1105
+ "semanticDigest": {
1106
+ "type": "string",
1107
+ "pattern": "^sha256:[a-f0-9]{64}$"
1108
+ },
1109
+ "sourceDigest": {
1110
+ "type": "string",
1111
+ "pattern": "^sha256:[a-f0-9]{64}$"
1112
+ },
1113
+ "sourceByteLength": {
1114
+ "type": "integer",
1115
+ "minimum": 0,
1116
+ "maximum": 1048576
1117
+ },
1118
+ "encoding": {
1119
+ "const": "utf-8"
1120
+ },
1121
+ "parser": {
1122
+ "type": "object",
1123
+ "additionalProperties": false,
1124
+ "properties": {
1125
+ "id": {
1126
+ "type": "string",
1127
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1128
+ "maxLength": 64
1129
+ },
1130
+ "version": {
1131
+ "type": "string",
1132
+ "minLength": 1,
1133
+ "maxLength": 64
1134
+ }
1135
+ },
1136
+ "required": [
1137
+ "id",
1138
+ "version"
1139
+ ]
1140
+ },
1141
+ "certificationVersion": {
1142
+ "const": "flowchart-copy-v1"
1143
+ },
1144
+ "entries": {
1145
+ "type": "array",
1146
+ "items": {
1147
+ "type": "object",
1148
+ "additionalProperties": false,
1149
+ "properties": {
1150
+ "sourceId": {
1151
+ "anyOf": [
1152
+ {
1153
+ "type": "null"
1154
+ },
1155
+ {
1156
+ "type": "string",
1157
+ "minLength": 1,
1158
+ "maxLength": 128
1159
+ }
1160
+ ]
1161
+ },
1162
+ "elementIds": {
1163
+ "type": "array",
1164
+ "items": {
1165
+ "type": "string",
1166
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1167
+ "minLength": 1,
1168
+ "maxLength": 128
1169
+ },
1170
+ "minItems": 0,
1171
+ "maxItems": 10000,
1172
+ "uniqueItems": true
1173
+ },
1174
+ "range": {
1175
+ "anyOf": [
1176
+ {
1177
+ "type": "null"
1178
+ },
1179
+ {
1180
+ "type": "object",
1181
+ "additionalProperties": false,
1182
+ "properties": {
1183
+ "startByte": {
1184
+ "type": "integer",
1185
+ "minimum": 0,
1186
+ "maximum": 1048576
1187
+ },
1188
+ "endByte": {
1189
+ "type": "integer",
1190
+ "minimum": 0,
1191
+ "maximum": 1048576
1192
+ }
1193
+ },
1194
+ "required": [
1195
+ "startByte",
1196
+ "endByte"
1197
+ ]
1198
+ }
1199
+ ]
1200
+ },
1201
+ "construct": {
1202
+ "type": "string",
1203
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
1204
+ "maxLength": 64
1205
+ },
1206
+ "confidence": {
1207
+ "enum": [
1208
+ "exact",
1209
+ "ambiguous"
1210
+ ]
1211
+ },
1212
+ "losses": {
1213
+ "type": "array",
1214
+ "items": {
1215
+ "type": "string",
1216
+ "minLength": 1,
1217
+ "maxLength": 512
1218
+ },
1219
+ "minItems": 0,
1220
+ "maxItems": 64
1221
+ }
1222
+ },
1223
+ "required": [
1224
+ "sourceId",
1225
+ "elementIds",
1226
+ "range",
1227
+ "construct",
1228
+ "confidence",
1229
+ "losses"
1230
+ ]
1231
+ },
1232
+ "minItems": 0,
1233
+ "maxItems": 10000
1234
+ }
1235
+ },
1236
+ "required": [
1237
+ "kind",
1238
+ "schemaVersion",
1239
+ "protocolVersion",
1240
+ "diagramId",
1241
+ "semanticDigest",
1242
+ "sourceDigest",
1243
+ "sourceByteLength",
1244
+ "encoding",
1245
+ "parser",
1246
+ "certificationVersion",
1247
+ "entries"
1248
+ ]
1249
+ }
1250
+ ]
1251
+ },
1252
+ "bundleDigest": {
1253
+ "type": "string",
1254
+ "pattern": "^sha256:[a-f0-9]{64}$"
1255
+ }
1256
+ },
1257
+ "required": [
1258
+ "kind",
1259
+ "schemaVersion",
1260
+ "protocolVersion",
1261
+ "diagramId",
1262
+ "document",
1263
+ "presentation",
1264
+ "originalSource",
1265
+ "sourceMap",
1266
+ "bundleDigest"
1267
+ ]
1268
+ }
1269
+ },
1270
+ "required": [
1271
+ "kind",
1272
+ "schemaVersion",
1273
+ "diagramId",
1274
+ "title",
1275
+ "source",
1276
+ "rendering",
1277
+ "scene"
1278
+ ],
1279
+ "additionalProperties": false
1280
+ }