@standarx/graph 0.0.0-stage → 1.0.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 (127) hide show
  1. package/LICENSE +21 -0
  2. package/README.fr.md +436 -0
  3. package/README.md +435 -2
  4. package/THIRD_PARTY_NOTICES.md +22 -0
  5. package/assets/fonts/Inter-Regular.ttf +0 -0
  6. package/assets/fonts/Inter-SemiBold.ttf +0 -0
  7. package/assets/fonts/OFL.txt +92 -0
  8. package/dist/adapter-0bggwh8x.js +393 -0
  9. package/dist/cli-4m00785g.js +20 -0
  10. package/dist/cli-5v9761s9.js +330 -0
  11. package/dist/cli-9f1pdw5q.js +462 -0
  12. package/dist/cli-a4ax1vkc.js +172 -0
  13. package/dist/cli-b4n941t8.js +1439 -0
  14. package/dist/cli-eqq7a3wz.js +1144 -0
  15. package/dist/cli-gh5166k6.js +1565 -0
  16. package/dist/cli-kzp16pt5.js +207 -0
  17. package/dist/cli-mzmjkk5v.js +11 -0
  18. package/dist/cli-njgyf690.js +1060 -0
  19. package/dist/cli-nkm2j980.js +141 -0
  20. package/dist/cli-nyckgf1t.js +4 -0
  21. package/dist/cli-sfdqkbd1.js +433 -0
  22. package/dist/cli-txrzzr2q.js +0 -0
  23. package/dist/cli-vecew2na.js +709 -0
  24. package/dist/cli-wt9dmbhm.js +560 -0
  25. package/dist/cli-xhdxp3cj.js +387 -0
  26. package/dist/cli-ywgtv1cg.js +39 -0
  27. package/dist/cli.d.ts +2 -0
  28. package/dist/cli.js +415 -0
  29. package/dist/core/index.d.ts +6 -0
  30. package/dist/core/index.js +93 -0
  31. package/dist/core/spatial.d.ts +16 -0
  32. package/dist/core/threshold.d.ts +1 -0
  33. package/dist/core/view.d.ts +80 -0
  34. package/dist/export/index.d.ts +18 -0
  35. package/dist/export/index.js +172 -0
  36. package/dist/export/pdf.d.ts +5 -0
  37. package/dist/export/png.d.ts +4 -0
  38. package/dist/format/index.d.ts +4 -0
  39. package/dist/format/index.js +71 -0
  40. package/dist/format/json-schema.d.ts +2 -0
  41. package/dist/format/schema.d.ts +787 -0
  42. package/dist/format/semantic/er.d.ts +3 -0
  43. package/dist/format/semantic/graph.d.ts +3 -0
  44. package/dist/format/semantic/sequence.d.ts +3 -0
  45. package/dist/format/semantic/shared.d.ts +14 -0
  46. package/dist/format/semantic/state.d.ts +3 -0
  47. package/dist/format/semantic/tree.d.ts +3 -0
  48. package/dist/format/transition-label.d.ts +2 -0
  49. package/dist/format/validate.d.ts +11 -0
  50. package/dist/html/index.d.ts +3 -0
  51. package/dist/html/index.js +127 -0
  52. package/dist/html/layout-worker.d.ts +1 -0
  53. package/dist/html/layout-worker.generated.d.ts +1 -0
  54. package/dist/html/mount.d.ts +12 -0
  55. package/dist/html/page.d.ts +14 -0
  56. package/dist/html/render.d.ts +7 -0
  57. package/dist/html/runtime.d.ts +1 -0
  58. package/dist/html/runtime.generated.d.ts +1 -0
  59. package/dist/html/shell.d.ts +10 -0
  60. package/dist/html/svg-adapter.d.ts +8 -0
  61. package/dist/html/ui.d.ts +34 -0
  62. package/dist/language/analysis.d.ts +38 -0
  63. package/dist/language/complete.d.ts +3 -0
  64. package/dist/language/docs.d.ts +11 -0
  65. package/dist/language/format.d.ts +17 -0
  66. package/dist/language/hover.d.ts +3 -0
  67. package/dist/language/index.d.ts +6 -0
  68. package/dist/language/index.js +1385 -0
  69. package/dist/language/navigation.d.ts +9 -0
  70. package/dist/language/positions.d.ts +7 -0
  71. package/dist/language/symbols.d.ts +3 -0
  72. package/dist/language/types.d.ts +34 -0
  73. package/dist/layout/elk.d.ts +35 -0
  74. package/dist/layout/er.d.ts +3 -0
  75. package/dist/layout/font-metrics.d.ts +9 -0
  76. package/dist/layout/graph.d.ts +3 -0
  77. package/dist/layout/index.d.ts +5 -0
  78. package/dist/layout/index.js +17 -0
  79. package/dist/layout/measure.d.ts +10 -0
  80. package/dist/layout/sequence.d.ts +3 -0
  81. package/dist/layout/shapes.d.ts +16 -0
  82. package/dist/layout/shared.d.ts +31 -0
  83. package/dist/layout/state.d.ts +3 -0
  84. package/dist/layout/tree.d.ts +3 -0
  85. package/dist/layout/types.d.ts +198 -0
  86. package/dist/layout-worker.generated-emmvgfb1.js +34 -0
  87. package/dist/mermaid/common.d.ts +36 -0
  88. package/dist/mermaid/er.d.ts +3 -0
  89. package/dist/mermaid/graph.d.ts +4 -0
  90. package/dist/mermaid/index.d.ts +6 -0
  91. package/dist/mermaid/index.js +6 -0
  92. package/dist/mermaid/mindmap.d.ts +3 -0
  93. package/dist/mermaid/sequence.d.ts +3 -0
  94. package/dist/mermaid/state.d.ts +3 -0
  95. package/dist/remark/index.d.ts +9 -0
  96. package/dist/remark/index.js +104 -0
  97. package/dist/shared/errors.d.ts +6 -0
  98. package/dist/shared/package-root.d.ts +5 -0
  99. package/dist/svg/escape.d.ts +1 -0
  100. package/dist/svg/index.d.ts +3 -0
  101. package/dist/svg/index.js +25 -0
  102. package/dist/svg/render.d.ts +9 -0
  103. package/dist/svg/theme.d.ts +62 -0
  104. package/dist/svg-adapter-gq5vmp6q.js +227 -0
  105. package/dist/text/build.d.ts +10 -0
  106. package/dist/text/canonical.d.ts +10 -0
  107. package/dist/text/errors.d.ts +33 -0
  108. package/dist/text/highlight.d.ts +13 -0
  109. package/dist/text/index.d.ts +33 -0
  110. package/dist/text/index.js +27 -0
  111. package/dist/text/lexer.d.ts +29 -0
  112. package/dist/text/parser.d.ts +160 -0
  113. package/dist/text/print.d.ts +6 -0
  114. package/dist/text/slug.d.ts +1 -0
  115. package/dist/text/syntax.d.ts +8 -0
  116. package/dist/version.d.ts +1 -0
  117. package/dist/webgl/adapter.d.ts +4 -0
  118. package/dist/webgl/index.d.ts +7 -0
  119. package/dist/webgl/index.js +15 -0
  120. package/dist/webgl/runtime.d.ts +1 -0
  121. package/dist/webgl/runtime.generated.d.ts +1 -0
  122. package/grammars/standargraph.tmLanguage.json +599 -0
  123. package/language-configuration.json +35 -0
  124. package/licenses/EPL-2.0.txt +277 -0
  125. package/licenses/MPL-2.0.txt +373 -0
  126. package/package.json +133 -4
  127. package/schema/graph-document.v1.json +1737 -0
@@ -0,0 +1,1737 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "urn:standargraph:graph-document:v1",
4
+ "title": "Standargraph document v1",
5
+ "anyOf": [
6
+ {
7
+ "additionalProperties": false,
8
+ "type": "object",
9
+ "required": [
10
+ "version",
11
+ "kind",
12
+ "nodes"
13
+ ],
14
+ "properties": {
15
+ "$schema": {
16
+ "type": "string"
17
+ },
18
+ "version": {
19
+ "const": 1,
20
+ "type": "number"
21
+ },
22
+ "kind": {
23
+ "const": "graph",
24
+ "type": "string"
25
+ },
26
+ "title": {
27
+ "type": "string"
28
+ },
29
+ "direction": {
30
+ "anyOf": [
31
+ {
32
+ "const": "down",
33
+ "type": "string"
34
+ },
35
+ {
36
+ "const": "right",
37
+ "type": "string"
38
+ },
39
+ {
40
+ "const": "up",
41
+ "type": "string"
42
+ },
43
+ {
44
+ "const": "left",
45
+ "type": "string"
46
+ }
47
+ ]
48
+ },
49
+ "nodes": {
50
+ "type": "array",
51
+ "items": {
52
+ "additionalProperties": false,
53
+ "type": "object",
54
+ "required": [
55
+ "id"
56
+ ],
57
+ "properties": {
58
+ "id": {
59
+ "minLength": 1,
60
+ "type": "string"
61
+ },
62
+ "label": {
63
+ "type": "string"
64
+ },
65
+ "type": {
66
+ "type": "string"
67
+ },
68
+ "shape": {
69
+ "anyOf": [
70
+ {
71
+ "const": "box",
72
+ "type": "string"
73
+ },
74
+ {
75
+ "const": "rect",
76
+ "type": "string"
77
+ },
78
+ {
79
+ "const": "pill",
80
+ "type": "string"
81
+ },
82
+ {
83
+ "const": "diamond",
84
+ "type": "string"
85
+ },
86
+ {
87
+ "const": "circle",
88
+ "type": "string"
89
+ },
90
+ {
91
+ "const": "ellipse",
92
+ "type": "string"
93
+ },
94
+ {
95
+ "const": "hexagon",
96
+ "type": "string"
97
+ },
98
+ {
99
+ "const": "parallelogram",
100
+ "type": "string"
101
+ },
102
+ {
103
+ "const": "cylinder",
104
+ "type": "string"
105
+ },
106
+ {
107
+ "const": "document",
108
+ "type": "string"
109
+ },
110
+ {
111
+ "const": "subroutine",
112
+ "type": "string"
113
+ }
114
+ ]
115
+ },
116
+ "group": {
117
+ "type": "string"
118
+ },
119
+ "description": {
120
+ "type": "string"
121
+ },
122
+ "link": {
123
+ "type": "string"
124
+ },
125
+ "position": {
126
+ "additionalProperties": false,
127
+ "type": "object",
128
+ "required": [
129
+ "x",
130
+ "y"
131
+ ],
132
+ "properties": {
133
+ "x": {
134
+ "type": "number"
135
+ },
136
+ "y": {
137
+ "type": "number"
138
+ }
139
+ }
140
+ },
141
+ "meta": {
142
+ "additionalProperties": false,
143
+ "type": "object",
144
+ "properties": {
145
+ "provenance": {
146
+ "additionalProperties": false,
147
+ "type": "object",
148
+ "required": [
149
+ "source"
150
+ ],
151
+ "properties": {
152
+ "source": {
153
+ "minLength": 1,
154
+ "type": "string"
155
+ },
156
+ "confidence": {
157
+ "anyOf": [
158
+ {
159
+ "const": "confirmed",
160
+ "type": "string"
161
+ },
162
+ {
163
+ "const": "inferred",
164
+ "type": "string"
165
+ },
166
+ {
167
+ "const": "unknown",
168
+ "type": "string"
169
+ }
170
+ ]
171
+ },
172
+ "tool": {
173
+ "type": "string"
174
+ }
175
+ }
176
+ },
177
+ "coverage": {
178
+ "minimum": 0,
179
+ "maximum": 1,
180
+ "type": "number"
181
+ },
182
+ "freshness": {
183
+ "format": "date-time",
184
+ "type": "string"
185
+ },
186
+ "data": {
187
+ "type": "object",
188
+ "patternProperties": {
189
+ "^(.*)$": {
190
+ "anyOf": [
191
+ {
192
+ "type": "string"
193
+ },
194
+ {
195
+ "type": "number"
196
+ },
197
+ {
198
+ "type": "boolean"
199
+ }
200
+ ]
201
+ }
202
+ }
203
+ }
204
+ }
205
+ }
206
+ }
207
+ }
208
+ },
209
+ "edges": {
210
+ "type": "array",
211
+ "items": {
212
+ "additionalProperties": false,
213
+ "type": "object",
214
+ "required": [
215
+ "from",
216
+ "to"
217
+ ],
218
+ "properties": {
219
+ "id": {
220
+ "minLength": 1,
221
+ "type": "string"
222
+ },
223
+ "from": {
224
+ "type": "string"
225
+ },
226
+ "to": {
227
+ "type": "string"
228
+ },
229
+ "label": {
230
+ "type": "string"
231
+ },
232
+ "type": {
233
+ "type": "string"
234
+ },
235
+ "directed": {
236
+ "type": "boolean"
237
+ },
238
+ "meta": {
239
+ "additionalProperties": false,
240
+ "type": "object",
241
+ "properties": {
242
+ "provenance": {
243
+ "additionalProperties": false,
244
+ "type": "object",
245
+ "required": [
246
+ "source"
247
+ ],
248
+ "properties": {
249
+ "source": {
250
+ "minLength": 1,
251
+ "type": "string"
252
+ },
253
+ "confidence": {
254
+ "anyOf": [
255
+ {
256
+ "const": "confirmed",
257
+ "type": "string"
258
+ },
259
+ {
260
+ "const": "inferred",
261
+ "type": "string"
262
+ },
263
+ {
264
+ "const": "unknown",
265
+ "type": "string"
266
+ }
267
+ ]
268
+ },
269
+ "tool": {
270
+ "type": "string"
271
+ }
272
+ }
273
+ },
274
+ "coverage": {
275
+ "minimum": 0,
276
+ "maximum": 1,
277
+ "type": "number"
278
+ },
279
+ "freshness": {
280
+ "format": "date-time",
281
+ "type": "string"
282
+ },
283
+ "data": {
284
+ "type": "object",
285
+ "patternProperties": {
286
+ "^(.*)$": {
287
+ "anyOf": [
288
+ {
289
+ "type": "string"
290
+ },
291
+ {
292
+ "type": "number"
293
+ },
294
+ {
295
+ "type": "boolean"
296
+ }
297
+ ]
298
+ }
299
+ }
300
+ }
301
+ }
302
+ }
303
+ }
304
+ }
305
+ },
306
+ "groups": {
307
+ "type": "array",
308
+ "items": {
309
+ "additionalProperties": false,
310
+ "type": "object",
311
+ "required": [
312
+ "id"
313
+ ],
314
+ "properties": {
315
+ "id": {
316
+ "minLength": 1,
317
+ "type": "string"
318
+ },
319
+ "label": {
320
+ "type": "string"
321
+ },
322
+ "parent": {
323
+ "type": "string"
324
+ },
325
+ "meta": {
326
+ "additionalProperties": false,
327
+ "type": "object",
328
+ "properties": {
329
+ "provenance": {
330
+ "additionalProperties": false,
331
+ "type": "object",
332
+ "required": [
333
+ "source"
334
+ ],
335
+ "properties": {
336
+ "source": {
337
+ "minLength": 1,
338
+ "type": "string"
339
+ },
340
+ "confidence": {
341
+ "anyOf": [
342
+ {
343
+ "const": "confirmed",
344
+ "type": "string"
345
+ },
346
+ {
347
+ "const": "inferred",
348
+ "type": "string"
349
+ },
350
+ {
351
+ "const": "unknown",
352
+ "type": "string"
353
+ }
354
+ ]
355
+ },
356
+ "tool": {
357
+ "type": "string"
358
+ }
359
+ }
360
+ },
361
+ "coverage": {
362
+ "minimum": 0,
363
+ "maximum": 1,
364
+ "type": "number"
365
+ },
366
+ "freshness": {
367
+ "format": "date-time",
368
+ "type": "string"
369
+ },
370
+ "data": {
371
+ "type": "object",
372
+ "patternProperties": {
373
+ "^(.*)$": {
374
+ "anyOf": [
375
+ {
376
+ "type": "string"
377
+ },
378
+ {
379
+ "type": "number"
380
+ },
381
+ {
382
+ "type": "boolean"
383
+ }
384
+ ]
385
+ }
386
+ }
387
+ }
388
+ }
389
+ }
390
+ }
391
+ }
392
+ },
393
+ "meta": {
394
+ "additionalProperties": false,
395
+ "type": "object",
396
+ "properties": {
397
+ "provenance": {
398
+ "additionalProperties": false,
399
+ "type": "object",
400
+ "required": [
401
+ "source"
402
+ ],
403
+ "properties": {
404
+ "source": {
405
+ "minLength": 1,
406
+ "type": "string"
407
+ },
408
+ "confidence": {
409
+ "anyOf": [
410
+ {
411
+ "const": "confirmed",
412
+ "type": "string"
413
+ },
414
+ {
415
+ "const": "inferred",
416
+ "type": "string"
417
+ },
418
+ {
419
+ "const": "unknown",
420
+ "type": "string"
421
+ }
422
+ ]
423
+ },
424
+ "tool": {
425
+ "type": "string"
426
+ }
427
+ }
428
+ },
429
+ "coverage": {
430
+ "minimum": 0,
431
+ "maximum": 1,
432
+ "type": "number"
433
+ },
434
+ "freshness": {
435
+ "format": "date-time",
436
+ "type": "string"
437
+ },
438
+ "data": {
439
+ "type": "object",
440
+ "patternProperties": {
441
+ "^(.*)$": {
442
+ "anyOf": [
443
+ {
444
+ "type": "string"
445
+ },
446
+ {
447
+ "type": "number"
448
+ },
449
+ {
450
+ "type": "boolean"
451
+ }
452
+ ]
453
+ }
454
+ }
455
+ }
456
+ }
457
+ }
458
+ }
459
+ },
460
+ {
461
+ "additionalProperties": false,
462
+ "type": "object",
463
+ "required": [
464
+ "version",
465
+ "kind",
466
+ "participants",
467
+ "messages"
468
+ ],
469
+ "properties": {
470
+ "$schema": {
471
+ "type": "string"
472
+ },
473
+ "version": {
474
+ "const": 1,
475
+ "type": "number"
476
+ },
477
+ "kind": {
478
+ "const": "sequence",
479
+ "type": "string"
480
+ },
481
+ "title": {
482
+ "type": "string"
483
+ },
484
+ "participants": {
485
+ "minItems": 1,
486
+ "type": "array",
487
+ "items": {
488
+ "additionalProperties": false,
489
+ "type": "object",
490
+ "required": [
491
+ "id"
492
+ ],
493
+ "properties": {
494
+ "id": {
495
+ "minLength": 1,
496
+ "type": "string"
497
+ },
498
+ "label": {
499
+ "type": "string"
500
+ },
501
+ "type": {
502
+ "type": "string"
503
+ },
504
+ "meta": {
505
+ "additionalProperties": false,
506
+ "type": "object",
507
+ "properties": {
508
+ "provenance": {
509
+ "additionalProperties": false,
510
+ "type": "object",
511
+ "required": [
512
+ "source"
513
+ ],
514
+ "properties": {
515
+ "source": {
516
+ "minLength": 1,
517
+ "type": "string"
518
+ },
519
+ "confidence": {
520
+ "anyOf": [
521
+ {
522
+ "const": "confirmed",
523
+ "type": "string"
524
+ },
525
+ {
526
+ "const": "inferred",
527
+ "type": "string"
528
+ },
529
+ {
530
+ "const": "unknown",
531
+ "type": "string"
532
+ }
533
+ ]
534
+ },
535
+ "tool": {
536
+ "type": "string"
537
+ }
538
+ }
539
+ },
540
+ "coverage": {
541
+ "minimum": 0,
542
+ "maximum": 1,
543
+ "type": "number"
544
+ },
545
+ "freshness": {
546
+ "format": "date-time",
547
+ "type": "string"
548
+ },
549
+ "data": {
550
+ "type": "object",
551
+ "patternProperties": {
552
+ "^(.*)$": {
553
+ "anyOf": [
554
+ {
555
+ "type": "string"
556
+ },
557
+ {
558
+ "type": "number"
559
+ },
560
+ {
561
+ "type": "boolean"
562
+ }
563
+ ]
564
+ }
565
+ }
566
+ }
567
+ }
568
+ }
569
+ }
570
+ }
571
+ },
572
+ "messages": {
573
+ "type": "array",
574
+ "items": {
575
+ "additionalProperties": false,
576
+ "type": "object",
577
+ "required": [
578
+ "from",
579
+ "to"
580
+ ],
581
+ "properties": {
582
+ "from": {
583
+ "type": "string"
584
+ },
585
+ "to": {
586
+ "type": "string"
587
+ },
588
+ "label": {
589
+ "type": "string"
590
+ },
591
+ "style": {
592
+ "anyOf": [
593
+ {
594
+ "const": "sync",
595
+ "type": "string"
596
+ },
597
+ {
598
+ "const": "async",
599
+ "type": "string"
600
+ },
601
+ {
602
+ "const": "reply",
603
+ "type": "string"
604
+ }
605
+ ]
606
+ },
607
+ "meta": {
608
+ "additionalProperties": false,
609
+ "type": "object",
610
+ "properties": {
611
+ "provenance": {
612
+ "additionalProperties": false,
613
+ "type": "object",
614
+ "required": [
615
+ "source"
616
+ ],
617
+ "properties": {
618
+ "source": {
619
+ "minLength": 1,
620
+ "type": "string"
621
+ },
622
+ "confidence": {
623
+ "anyOf": [
624
+ {
625
+ "const": "confirmed",
626
+ "type": "string"
627
+ },
628
+ {
629
+ "const": "inferred",
630
+ "type": "string"
631
+ },
632
+ {
633
+ "const": "unknown",
634
+ "type": "string"
635
+ }
636
+ ]
637
+ },
638
+ "tool": {
639
+ "type": "string"
640
+ }
641
+ }
642
+ },
643
+ "coverage": {
644
+ "minimum": 0,
645
+ "maximum": 1,
646
+ "type": "number"
647
+ },
648
+ "freshness": {
649
+ "format": "date-time",
650
+ "type": "string"
651
+ },
652
+ "data": {
653
+ "type": "object",
654
+ "patternProperties": {
655
+ "^(.*)$": {
656
+ "anyOf": [
657
+ {
658
+ "type": "string"
659
+ },
660
+ {
661
+ "type": "number"
662
+ },
663
+ {
664
+ "type": "boolean"
665
+ }
666
+ ]
667
+ }
668
+ }
669
+ }
670
+ }
671
+ }
672
+ }
673
+ }
674
+ },
675
+ "meta": {
676
+ "additionalProperties": false,
677
+ "type": "object",
678
+ "properties": {
679
+ "provenance": {
680
+ "additionalProperties": false,
681
+ "type": "object",
682
+ "required": [
683
+ "source"
684
+ ],
685
+ "properties": {
686
+ "source": {
687
+ "minLength": 1,
688
+ "type": "string"
689
+ },
690
+ "confidence": {
691
+ "anyOf": [
692
+ {
693
+ "const": "confirmed",
694
+ "type": "string"
695
+ },
696
+ {
697
+ "const": "inferred",
698
+ "type": "string"
699
+ },
700
+ {
701
+ "const": "unknown",
702
+ "type": "string"
703
+ }
704
+ ]
705
+ },
706
+ "tool": {
707
+ "type": "string"
708
+ }
709
+ }
710
+ },
711
+ "coverage": {
712
+ "minimum": 0,
713
+ "maximum": 1,
714
+ "type": "number"
715
+ },
716
+ "freshness": {
717
+ "format": "date-time",
718
+ "type": "string"
719
+ },
720
+ "data": {
721
+ "type": "object",
722
+ "patternProperties": {
723
+ "^(.*)$": {
724
+ "anyOf": [
725
+ {
726
+ "type": "string"
727
+ },
728
+ {
729
+ "type": "number"
730
+ },
731
+ {
732
+ "type": "boolean"
733
+ }
734
+ ]
735
+ }
736
+ }
737
+ }
738
+ }
739
+ }
740
+ }
741
+ },
742
+ {
743
+ "additionalProperties": false,
744
+ "type": "object",
745
+ "required": [
746
+ "version",
747
+ "kind",
748
+ "states"
749
+ ],
750
+ "properties": {
751
+ "$schema": {
752
+ "type": "string"
753
+ },
754
+ "version": {
755
+ "const": 1,
756
+ "type": "number"
757
+ },
758
+ "kind": {
759
+ "const": "state",
760
+ "type": "string"
761
+ },
762
+ "title": {
763
+ "type": "string"
764
+ },
765
+ "direction": {
766
+ "anyOf": [
767
+ {
768
+ "const": "down",
769
+ "type": "string"
770
+ },
771
+ {
772
+ "const": "right",
773
+ "type": "string"
774
+ },
775
+ {
776
+ "const": "up",
777
+ "type": "string"
778
+ },
779
+ {
780
+ "const": "left",
781
+ "type": "string"
782
+ }
783
+ ]
784
+ },
785
+ "states": {
786
+ "minItems": 1,
787
+ "type": "array",
788
+ "items": {
789
+ "additionalProperties": false,
790
+ "type": "object",
791
+ "required": [
792
+ "id"
793
+ ],
794
+ "properties": {
795
+ "id": {
796
+ "minLength": 1,
797
+ "type": "string"
798
+ },
799
+ "label": {
800
+ "type": "string"
801
+ },
802
+ "type": {
803
+ "type": "string"
804
+ },
805
+ "pseudo": {
806
+ "anyOf": [
807
+ {
808
+ "const": "initial",
809
+ "type": "string"
810
+ },
811
+ {
812
+ "const": "final",
813
+ "type": "string"
814
+ },
815
+ {
816
+ "const": "choice",
817
+ "type": "string"
818
+ },
819
+ {
820
+ "const": "fork",
821
+ "type": "string"
822
+ },
823
+ {
824
+ "const": "join",
825
+ "type": "string"
826
+ },
827
+ {
828
+ "const": "history",
829
+ "type": "string"
830
+ }
831
+ ]
832
+ },
833
+ "parent": {
834
+ "type": "string"
835
+ },
836
+ "actions": {
837
+ "type": "array",
838
+ "items": {
839
+ "type": "string"
840
+ }
841
+ },
842
+ "description": {
843
+ "type": "string"
844
+ },
845
+ "link": {
846
+ "type": "string"
847
+ },
848
+ "meta": {
849
+ "additionalProperties": false,
850
+ "type": "object",
851
+ "properties": {
852
+ "provenance": {
853
+ "additionalProperties": false,
854
+ "type": "object",
855
+ "required": [
856
+ "source"
857
+ ],
858
+ "properties": {
859
+ "source": {
860
+ "minLength": 1,
861
+ "type": "string"
862
+ },
863
+ "confidence": {
864
+ "anyOf": [
865
+ {
866
+ "const": "confirmed",
867
+ "type": "string"
868
+ },
869
+ {
870
+ "const": "inferred",
871
+ "type": "string"
872
+ },
873
+ {
874
+ "const": "unknown",
875
+ "type": "string"
876
+ }
877
+ ]
878
+ },
879
+ "tool": {
880
+ "type": "string"
881
+ }
882
+ }
883
+ },
884
+ "coverage": {
885
+ "minimum": 0,
886
+ "maximum": 1,
887
+ "type": "number"
888
+ },
889
+ "freshness": {
890
+ "format": "date-time",
891
+ "type": "string"
892
+ },
893
+ "data": {
894
+ "type": "object",
895
+ "patternProperties": {
896
+ "^(.*)$": {
897
+ "anyOf": [
898
+ {
899
+ "type": "string"
900
+ },
901
+ {
902
+ "type": "number"
903
+ },
904
+ {
905
+ "type": "boolean"
906
+ }
907
+ ]
908
+ }
909
+ }
910
+ }
911
+ }
912
+ }
913
+ }
914
+ }
915
+ },
916
+ "transitions": {
917
+ "type": "array",
918
+ "items": {
919
+ "additionalProperties": false,
920
+ "type": "object",
921
+ "required": [
922
+ "from",
923
+ "to"
924
+ ],
925
+ "properties": {
926
+ "id": {
927
+ "minLength": 1,
928
+ "type": "string"
929
+ },
930
+ "from": {
931
+ "type": "string"
932
+ },
933
+ "to": {
934
+ "type": "string"
935
+ },
936
+ "event": {
937
+ "type": "string"
938
+ },
939
+ "guard": {
940
+ "type": "string"
941
+ },
942
+ "action": {
943
+ "type": "string"
944
+ },
945
+ "type": {
946
+ "type": "string"
947
+ },
948
+ "meta": {
949
+ "additionalProperties": false,
950
+ "type": "object",
951
+ "properties": {
952
+ "provenance": {
953
+ "additionalProperties": false,
954
+ "type": "object",
955
+ "required": [
956
+ "source"
957
+ ],
958
+ "properties": {
959
+ "source": {
960
+ "minLength": 1,
961
+ "type": "string"
962
+ },
963
+ "confidence": {
964
+ "anyOf": [
965
+ {
966
+ "const": "confirmed",
967
+ "type": "string"
968
+ },
969
+ {
970
+ "const": "inferred",
971
+ "type": "string"
972
+ },
973
+ {
974
+ "const": "unknown",
975
+ "type": "string"
976
+ }
977
+ ]
978
+ },
979
+ "tool": {
980
+ "type": "string"
981
+ }
982
+ }
983
+ },
984
+ "coverage": {
985
+ "minimum": 0,
986
+ "maximum": 1,
987
+ "type": "number"
988
+ },
989
+ "freshness": {
990
+ "format": "date-time",
991
+ "type": "string"
992
+ },
993
+ "data": {
994
+ "type": "object",
995
+ "patternProperties": {
996
+ "^(.*)$": {
997
+ "anyOf": [
998
+ {
999
+ "type": "string"
1000
+ },
1001
+ {
1002
+ "type": "number"
1003
+ },
1004
+ {
1005
+ "type": "boolean"
1006
+ }
1007
+ ]
1008
+ }
1009
+ }
1010
+ }
1011
+ }
1012
+ }
1013
+ }
1014
+ }
1015
+ },
1016
+ "meta": {
1017
+ "additionalProperties": false,
1018
+ "type": "object",
1019
+ "properties": {
1020
+ "provenance": {
1021
+ "additionalProperties": false,
1022
+ "type": "object",
1023
+ "required": [
1024
+ "source"
1025
+ ],
1026
+ "properties": {
1027
+ "source": {
1028
+ "minLength": 1,
1029
+ "type": "string"
1030
+ },
1031
+ "confidence": {
1032
+ "anyOf": [
1033
+ {
1034
+ "const": "confirmed",
1035
+ "type": "string"
1036
+ },
1037
+ {
1038
+ "const": "inferred",
1039
+ "type": "string"
1040
+ },
1041
+ {
1042
+ "const": "unknown",
1043
+ "type": "string"
1044
+ }
1045
+ ]
1046
+ },
1047
+ "tool": {
1048
+ "type": "string"
1049
+ }
1050
+ }
1051
+ },
1052
+ "coverage": {
1053
+ "minimum": 0,
1054
+ "maximum": 1,
1055
+ "type": "number"
1056
+ },
1057
+ "freshness": {
1058
+ "format": "date-time",
1059
+ "type": "string"
1060
+ },
1061
+ "data": {
1062
+ "type": "object",
1063
+ "patternProperties": {
1064
+ "^(.*)$": {
1065
+ "anyOf": [
1066
+ {
1067
+ "type": "string"
1068
+ },
1069
+ {
1070
+ "type": "number"
1071
+ },
1072
+ {
1073
+ "type": "boolean"
1074
+ }
1075
+ ]
1076
+ }
1077
+ }
1078
+ }
1079
+ }
1080
+ }
1081
+ }
1082
+ },
1083
+ {
1084
+ "additionalProperties": false,
1085
+ "type": "object",
1086
+ "required": [
1087
+ "version",
1088
+ "kind",
1089
+ "entities"
1090
+ ],
1091
+ "properties": {
1092
+ "$schema": {
1093
+ "type": "string"
1094
+ },
1095
+ "version": {
1096
+ "const": 1,
1097
+ "type": "number"
1098
+ },
1099
+ "kind": {
1100
+ "const": "er",
1101
+ "type": "string"
1102
+ },
1103
+ "title": {
1104
+ "type": "string"
1105
+ },
1106
+ "direction": {
1107
+ "anyOf": [
1108
+ {
1109
+ "const": "down",
1110
+ "type": "string"
1111
+ },
1112
+ {
1113
+ "const": "right",
1114
+ "type": "string"
1115
+ },
1116
+ {
1117
+ "const": "up",
1118
+ "type": "string"
1119
+ },
1120
+ {
1121
+ "const": "left",
1122
+ "type": "string"
1123
+ }
1124
+ ]
1125
+ },
1126
+ "entities": {
1127
+ "minItems": 1,
1128
+ "type": "array",
1129
+ "items": {
1130
+ "additionalProperties": false,
1131
+ "type": "object",
1132
+ "required": [
1133
+ "id"
1134
+ ],
1135
+ "properties": {
1136
+ "id": {
1137
+ "minLength": 1,
1138
+ "type": "string"
1139
+ },
1140
+ "label": {
1141
+ "type": "string"
1142
+ },
1143
+ "type": {
1144
+ "type": "string"
1145
+ },
1146
+ "description": {
1147
+ "type": "string"
1148
+ },
1149
+ "link": {
1150
+ "type": "string"
1151
+ },
1152
+ "attributes": {
1153
+ "type": "array",
1154
+ "items": {
1155
+ "additionalProperties": false,
1156
+ "type": "object",
1157
+ "required": [
1158
+ "name"
1159
+ ],
1160
+ "properties": {
1161
+ "name": {
1162
+ "minLength": 1,
1163
+ "type": "string"
1164
+ },
1165
+ "type": {
1166
+ "type": "string"
1167
+ },
1168
+ "keys": {
1169
+ "type": "array",
1170
+ "items": {
1171
+ "anyOf": [
1172
+ {
1173
+ "const": "pk",
1174
+ "type": "string"
1175
+ },
1176
+ {
1177
+ "const": "fk",
1178
+ "type": "string"
1179
+ },
1180
+ {
1181
+ "const": "uk",
1182
+ "type": "string"
1183
+ }
1184
+ ]
1185
+ }
1186
+ },
1187
+ "nullable": {
1188
+ "type": "boolean"
1189
+ },
1190
+ "note": {
1191
+ "type": "string"
1192
+ }
1193
+ }
1194
+ }
1195
+ },
1196
+ "meta": {
1197
+ "additionalProperties": false,
1198
+ "type": "object",
1199
+ "properties": {
1200
+ "provenance": {
1201
+ "additionalProperties": false,
1202
+ "type": "object",
1203
+ "required": [
1204
+ "source"
1205
+ ],
1206
+ "properties": {
1207
+ "source": {
1208
+ "minLength": 1,
1209
+ "type": "string"
1210
+ },
1211
+ "confidence": {
1212
+ "anyOf": [
1213
+ {
1214
+ "const": "confirmed",
1215
+ "type": "string"
1216
+ },
1217
+ {
1218
+ "const": "inferred",
1219
+ "type": "string"
1220
+ },
1221
+ {
1222
+ "const": "unknown",
1223
+ "type": "string"
1224
+ }
1225
+ ]
1226
+ },
1227
+ "tool": {
1228
+ "type": "string"
1229
+ }
1230
+ }
1231
+ },
1232
+ "coverage": {
1233
+ "minimum": 0,
1234
+ "maximum": 1,
1235
+ "type": "number"
1236
+ },
1237
+ "freshness": {
1238
+ "format": "date-time",
1239
+ "type": "string"
1240
+ },
1241
+ "data": {
1242
+ "type": "object",
1243
+ "patternProperties": {
1244
+ "^(.*)$": {
1245
+ "anyOf": [
1246
+ {
1247
+ "type": "string"
1248
+ },
1249
+ {
1250
+ "type": "number"
1251
+ },
1252
+ {
1253
+ "type": "boolean"
1254
+ }
1255
+ ]
1256
+ }
1257
+ }
1258
+ }
1259
+ }
1260
+ }
1261
+ }
1262
+ }
1263
+ },
1264
+ "relations": {
1265
+ "type": "array",
1266
+ "items": {
1267
+ "additionalProperties": false,
1268
+ "type": "object",
1269
+ "required": [
1270
+ "from",
1271
+ "to"
1272
+ ],
1273
+ "properties": {
1274
+ "id": {
1275
+ "minLength": 1,
1276
+ "type": "string"
1277
+ },
1278
+ "from": {
1279
+ "type": "string"
1280
+ },
1281
+ "to": {
1282
+ "type": "string"
1283
+ },
1284
+ "fromCardinality": {
1285
+ "anyOf": [
1286
+ {
1287
+ "const": "one",
1288
+ "type": "string"
1289
+ },
1290
+ {
1291
+ "const": "zero-or-one",
1292
+ "type": "string"
1293
+ },
1294
+ {
1295
+ "const": "one-or-more",
1296
+ "type": "string"
1297
+ },
1298
+ {
1299
+ "const": "zero-or-more",
1300
+ "type": "string"
1301
+ }
1302
+ ]
1303
+ },
1304
+ "toCardinality": {
1305
+ "anyOf": [
1306
+ {
1307
+ "const": "one",
1308
+ "type": "string"
1309
+ },
1310
+ {
1311
+ "const": "zero-or-one",
1312
+ "type": "string"
1313
+ },
1314
+ {
1315
+ "const": "one-or-more",
1316
+ "type": "string"
1317
+ },
1318
+ {
1319
+ "const": "zero-or-more",
1320
+ "type": "string"
1321
+ }
1322
+ ]
1323
+ },
1324
+ "label": {
1325
+ "type": "string"
1326
+ },
1327
+ "identifying": {
1328
+ "type": "boolean"
1329
+ },
1330
+ "type": {
1331
+ "type": "string"
1332
+ },
1333
+ "meta": {
1334
+ "additionalProperties": false,
1335
+ "type": "object",
1336
+ "properties": {
1337
+ "provenance": {
1338
+ "additionalProperties": false,
1339
+ "type": "object",
1340
+ "required": [
1341
+ "source"
1342
+ ],
1343
+ "properties": {
1344
+ "source": {
1345
+ "minLength": 1,
1346
+ "type": "string"
1347
+ },
1348
+ "confidence": {
1349
+ "anyOf": [
1350
+ {
1351
+ "const": "confirmed",
1352
+ "type": "string"
1353
+ },
1354
+ {
1355
+ "const": "inferred",
1356
+ "type": "string"
1357
+ },
1358
+ {
1359
+ "const": "unknown",
1360
+ "type": "string"
1361
+ }
1362
+ ]
1363
+ },
1364
+ "tool": {
1365
+ "type": "string"
1366
+ }
1367
+ }
1368
+ },
1369
+ "coverage": {
1370
+ "minimum": 0,
1371
+ "maximum": 1,
1372
+ "type": "number"
1373
+ },
1374
+ "freshness": {
1375
+ "format": "date-time",
1376
+ "type": "string"
1377
+ },
1378
+ "data": {
1379
+ "type": "object",
1380
+ "patternProperties": {
1381
+ "^(.*)$": {
1382
+ "anyOf": [
1383
+ {
1384
+ "type": "string"
1385
+ },
1386
+ {
1387
+ "type": "number"
1388
+ },
1389
+ {
1390
+ "type": "boolean"
1391
+ }
1392
+ ]
1393
+ }
1394
+ }
1395
+ }
1396
+ }
1397
+ }
1398
+ }
1399
+ }
1400
+ },
1401
+ "meta": {
1402
+ "additionalProperties": false,
1403
+ "type": "object",
1404
+ "properties": {
1405
+ "provenance": {
1406
+ "additionalProperties": false,
1407
+ "type": "object",
1408
+ "required": [
1409
+ "source"
1410
+ ],
1411
+ "properties": {
1412
+ "source": {
1413
+ "minLength": 1,
1414
+ "type": "string"
1415
+ },
1416
+ "confidence": {
1417
+ "anyOf": [
1418
+ {
1419
+ "const": "confirmed",
1420
+ "type": "string"
1421
+ },
1422
+ {
1423
+ "const": "inferred",
1424
+ "type": "string"
1425
+ },
1426
+ {
1427
+ "const": "unknown",
1428
+ "type": "string"
1429
+ }
1430
+ ]
1431
+ },
1432
+ "tool": {
1433
+ "type": "string"
1434
+ }
1435
+ }
1436
+ },
1437
+ "coverage": {
1438
+ "minimum": 0,
1439
+ "maximum": 1,
1440
+ "type": "number"
1441
+ },
1442
+ "freshness": {
1443
+ "format": "date-time",
1444
+ "type": "string"
1445
+ },
1446
+ "data": {
1447
+ "type": "object",
1448
+ "patternProperties": {
1449
+ "^(.*)$": {
1450
+ "anyOf": [
1451
+ {
1452
+ "type": "string"
1453
+ },
1454
+ {
1455
+ "type": "number"
1456
+ },
1457
+ {
1458
+ "type": "boolean"
1459
+ }
1460
+ ]
1461
+ }
1462
+ }
1463
+ }
1464
+ }
1465
+ }
1466
+ }
1467
+ },
1468
+ {
1469
+ "additionalProperties": false,
1470
+ "type": "object",
1471
+ "required": [
1472
+ "version",
1473
+ "kind",
1474
+ "nodes"
1475
+ ],
1476
+ "properties": {
1477
+ "$schema": {
1478
+ "type": "string"
1479
+ },
1480
+ "version": {
1481
+ "const": 1,
1482
+ "type": "number"
1483
+ },
1484
+ "kind": {
1485
+ "const": "tree",
1486
+ "type": "string"
1487
+ },
1488
+ "title": {
1489
+ "type": "string"
1490
+ },
1491
+ "layout": {
1492
+ "anyOf": [
1493
+ {
1494
+ "const": "tree",
1495
+ "type": "string"
1496
+ },
1497
+ {
1498
+ "const": "mindmap",
1499
+ "type": "string"
1500
+ }
1501
+ ]
1502
+ },
1503
+ "direction": {
1504
+ "anyOf": [
1505
+ {
1506
+ "const": "down",
1507
+ "type": "string"
1508
+ },
1509
+ {
1510
+ "const": "right",
1511
+ "type": "string"
1512
+ },
1513
+ {
1514
+ "const": "up",
1515
+ "type": "string"
1516
+ },
1517
+ {
1518
+ "const": "left",
1519
+ "type": "string"
1520
+ }
1521
+ ]
1522
+ },
1523
+ "nodes": {
1524
+ "minItems": 1,
1525
+ "type": "array",
1526
+ "items": {
1527
+ "additionalProperties": false,
1528
+ "type": "object",
1529
+ "required": [
1530
+ "id",
1531
+ "label"
1532
+ ],
1533
+ "properties": {
1534
+ "id": {
1535
+ "minLength": 1,
1536
+ "type": "string"
1537
+ },
1538
+ "label": {
1539
+ "type": "string"
1540
+ },
1541
+ "parent": {
1542
+ "type": "string"
1543
+ },
1544
+ "type": {
1545
+ "type": "string"
1546
+ },
1547
+ "shape": {
1548
+ "anyOf": [
1549
+ {
1550
+ "const": "box",
1551
+ "type": "string"
1552
+ },
1553
+ {
1554
+ "const": "rect",
1555
+ "type": "string"
1556
+ },
1557
+ {
1558
+ "const": "pill",
1559
+ "type": "string"
1560
+ },
1561
+ {
1562
+ "const": "diamond",
1563
+ "type": "string"
1564
+ },
1565
+ {
1566
+ "const": "circle",
1567
+ "type": "string"
1568
+ },
1569
+ {
1570
+ "const": "ellipse",
1571
+ "type": "string"
1572
+ },
1573
+ {
1574
+ "const": "hexagon",
1575
+ "type": "string"
1576
+ },
1577
+ {
1578
+ "const": "parallelogram",
1579
+ "type": "string"
1580
+ },
1581
+ {
1582
+ "const": "cylinder",
1583
+ "type": "string"
1584
+ },
1585
+ {
1586
+ "const": "document",
1587
+ "type": "string"
1588
+ },
1589
+ {
1590
+ "const": "subroutine",
1591
+ "type": "string"
1592
+ }
1593
+ ]
1594
+ },
1595
+ "description": {
1596
+ "type": "string"
1597
+ },
1598
+ "link": {
1599
+ "type": "string"
1600
+ },
1601
+ "meta": {
1602
+ "additionalProperties": false,
1603
+ "type": "object",
1604
+ "properties": {
1605
+ "provenance": {
1606
+ "additionalProperties": false,
1607
+ "type": "object",
1608
+ "required": [
1609
+ "source"
1610
+ ],
1611
+ "properties": {
1612
+ "source": {
1613
+ "minLength": 1,
1614
+ "type": "string"
1615
+ },
1616
+ "confidence": {
1617
+ "anyOf": [
1618
+ {
1619
+ "const": "confirmed",
1620
+ "type": "string"
1621
+ },
1622
+ {
1623
+ "const": "inferred",
1624
+ "type": "string"
1625
+ },
1626
+ {
1627
+ "const": "unknown",
1628
+ "type": "string"
1629
+ }
1630
+ ]
1631
+ },
1632
+ "tool": {
1633
+ "type": "string"
1634
+ }
1635
+ }
1636
+ },
1637
+ "coverage": {
1638
+ "minimum": 0,
1639
+ "maximum": 1,
1640
+ "type": "number"
1641
+ },
1642
+ "freshness": {
1643
+ "format": "date-time",
1644
+ "type": "string"
1645
+ },
1646
+ "data": {
1647
+ "type": "object",
1648
+ "patternProperties": {
1649
+ "^(.*)$": {
1650
+ "anyOf": [
1651
+ {
1652
+ "type": "string"
1653
+ },
1654
+ {
1655
+ "type": "number"
1656
+ },
1657
+ {
1658
+ "type": "boolean"
1659
+ }
1660
+ ]
1661
+ }
1662
+ }
1663
+ }
1664
+ }
1665
+ }
1666
+ }
1667
+ }
1668
+ },
1669
+ "meta": {
1670
+ "additionalProperties": false,
1671
+ "type": "object",
1672
+ "properties": {
1673
+ "provenance": {
1674
+ "additionalProperties": false,
1675
+ "type": "object",
1676
+ "required": [
1677
+ "source"
1678
+ ],
1679
+ "properties": {
1680
+ "source": {
1681
+ "minLength": 1,
1682
+ "type": "string"
1683
+ },
1684
+ "confidence": {
1685
+ "anyOf": [
1686
+ {
1687
+ "const": "confirmed",
1688
+ "type": "string"
1689
+ },
1690
+ {
1691
+ "const": "inferred",
1692
+ "type": "string"
1693
+ },
1694
+ {
1695
+ "const": "unknown",
1696
+ "type": "string"
1697
+ }
1698
+ ]
1699
+ },
1700
+ "tool": {
1701
+ "type": "string"
1702
+ }
1703
+ }
1704
+ },
1705
+ "coverage": {
1706
+ "minimum": 0,
1707
+ "maximum": 1,
1708
+ "type": "number"
1709
+ },
1710
+ "freshness": {
1711
+ "format": "date-time",
1712
+ "type": "string"
1713
+ },
1714
+ "data": {
1715
+ "type": "object",
1716
+ "patternProperties": {
1717
+ "^(.*)$": {
1718
+ "anyOf": [
1719
+ {
1720
+ "type": "string"
1721
+ },
1722
+ {
1723
+ "type": "number"
1724
+ },
1725
+ {
1726
+ "type": "boolean"
1727
+ }
1728
+ ]
1729
+ }
1730
+ }
1731
+ }
1732
+ }
1733
+ }
1734
+ }
1735
+ }
1736
+ ]
1737
+ }