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