archidocs 0.0.0-stage → 1.2.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 (167) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +181 -2
  3. package/dist/cli/commands.d.ts +322 -0
  4. package/dist/cli/commands.js +174 -0
  5. package/dist/cli/dev.d.ts +31 -0
  6. package/dist/cli/dev.js +156 -0
  7. package/dist/cli/diff-format.d.ts +9 -0
  8. package/dist/cli/diff-format.js +50 -0
  9. package/dist/cli/format.d.ts +15 -0
  10. package/dist/cli/format.js +64 -0
  11. package/dist/cli/init.d.ts +17 -0
  12. package/dist/cli/init.js +82 -0
  13. package/dist/cli/main.d.ts +2 -0
  14. package/dist/cli/main.js +330 -0
  15. package/dist/core/adr.d.ts +28 -0
  16. package/dist/core/adr.js +88 -0
  17. package/dist/core/adrs.d.ts +20 -0
  18. package/dist/core/adrs.js +86 -0
  19. package/dist/core/catalogue.d.ts +7 -0
  20. package/dist/core/catalogue.js +35 -0
  21. package/dist/core/compare.d.ts +21 -0
  22. package/dist/core/compare.js +62 -0
  23. package/dist/core/deployment-views.d.ts +28 -0
  24. package/dist/core/deployment-views.js +108 -0
  25. package/dist/core/deployments.d.ts +18 -0
  26. package/dist/core/deployments.js +21 -0
  27. package/dist/core/diff.d.ts +44 -0
  28. package/dist/core/diff.js +138 -0
  29. package/dist/core/dynamic-views.d.ts +73 -0
  30. package/dist/core/dynamic-views.js +162 -0
  31. package/dist/core/files.d.ts +2 -0
  32. package/dist/core/files.js +1 -0
  33. package/dist/core/fs.d.ts +19 -0
  34. package/dist/core/fs.js +21 -0
  35. package/dist/core/history-scope.d.ts +40 -0
  36. package/dist/core/history-scope.js +63 -0
  37. package/dist/core/impact.d.ts +34 -0
  38. package/dist/core/impact.js +62 -0
  39. package/dist/core/index.d.ts +20 -0
  40. package/dist/core/index.js +18 -0
  41. package/dist/core/load.d.ts +32 -0
  42. package/dist/core/load.js +465 -0
  43. package/dist/core/model.d.ts +150 -0
  44. package/dist/core/model.js +1 -0
  45. package/dist/core/ownership.d.ts +34 -0
  46. package/dist/core/ownership.js +65 -0
  47. package/dist/core/paths.d.ts +47 -0
  48. package/dist/core/paths.js +115 -0
  49. package/dist/core/query.d.ts +51 -0
  50. package/dist/core/query.js +77 -0
  51. package/dist/core/refs.d.ts +31 -0
  52. package/dist/core/refs.js +50 -0
  53. package/dist/core/rules.d.ts +41 -0
  54. package/dist/core/rules.js +1033 -0
  55. package/dist/core/save-as-view.d.ts +45 -0
  56. package/dist/core/save-as-view.js +114 -0
  57. package/dist/core/saved-views.d.ts +48 -0
  58. package/dist/core/saved-views.js +243 -0
  59. package/dist/core/schema-check.d.ts +13 -0
  60. package/dist/core/schema-check.js +79 -0
  61. package/dist/core/search.d.ts +27 -0
  62. package/dist/core/search.js +63 -0
  63. package/dist/core/suggest.d.ts +3 -0
  64. package/dist/core/suggest.js +30 -0
  65. package/dist/core/views.d.ts +126 -0
  66. package/dist/core/views.js +217 -0
  67. package/dist/core/yaml.d.ts +16 -0
  68. package/dist/core/yaml.js +52 -0
  69. package/dist/git.d.ts +7 -0
  70. package/dist/git.js +23 -0
  71. package/dist/guide/index.d.ts +53 -0
  72. package/dist/guide/index.js +57 -0
  73. package/dist/history/git.d.ts +39 -0
  74. package/dist/history/git.js +126 -0
  75. package/dist/history/index.d.ts +118 -0
  76. package/dist/history/index.js +223 -0
  77. package/dist/history/migrate.d.ts +16 -0
  78. package/dist/history/migrate.js +30 -0
  79. package/dist/mcp/history.d.ts +36 -0
  80. package/dist/mcp/history.js +175 -0
  81. package/dist/mcp/http.d.ts +23 -0
  82. package/dist/mcp/http.js +85 -0
  83. package/dist/mcp/index.d.ts +3 -0
  84. package/dist/mcp/index.js +3 -0
  85. package/dist/mcp/server.d.ts +54 -0
  86. package/dist/mcp/server.js +824 -0
  87. package/dist/mcp/source.d.ts +50 -0
  88. package/dist/mcp/source.js +132 -0
  89. package/dist/mcp/writes.d.ts +10 -0
  90. package/dist/mcp/writes.js +267 -0
  91. package/dist/render/font.d.ts +14 -0
  92. package/dist/render/font.js +11 -0
  93. package/dist/render/index.d.ts +8 -0
  94. package/dist/render/index.js +8 -0
  95. package/dist/render/layout.d.ts +53 -0
  96. package/dist/render/layout.js +199 -0
  97. package/dist/render/node.d.ts +3 -0
  98. package/dist/render/node.js +8 -0
  99. package/dist/render/png.d.ts +11 -0
  100. package/dist/render/png.js +29 -0
  101. package/dist/render/sequence-svg.d.ts +33 -0
  102. package/dist/render/sequence-svg.js +98 -0
  103. package/dist/render/sequence.d.ts +103 -0
  104. package/dist/render/sequence.js +142 -0
  105. package/dist/render/svg.d.ts +36 -0
  106. package/dist/render/svg.js +222 -0
  107. package/dist/render/teams.d.ts +12 -0
  108. package/dist/render/teams.js +31 -0
  109. package/dist/render/text.d.ts +15 -0
  110. package/dist/render/text.js +29 -0
  111. package/dist/render/tokens.d.ts +53 -0
  112. package/dist/render/tokens.js +71 -0
  113. package/dist/schema/adr.d.ts +36 -0
  114. package/dist/schema/adr.js +27 -0
  115. package/dist/schema/bundle.d.ts +726 -0
  116. package/dist/schema/bundle.js +171 -0
  117. package/dist/schema/index.d.ts +4 -0
  118. package/dist/schema/index.js +4 -0
  119. package/dist/schema/json-schema.d.ts +8 -0
  120. package/dist/schema/json-schema.js +19 -0
  121. package/dist/schema/workspace.d.ts +1066 -0
  122. package/dist/schema/workspace.js +271 -0
  123. package/dist/viewer/assets/index-DvKgCpBr.css +1 -0
  124. package/dist/viewer/assets/index-gucix3xm.js +113 -0
  125. package/dist/viewer/assets/index_bg-Blvrv-U2.wasm +0 -0
  126. package/dist/viewer/assets/index_bg-D3t31u3-.js +1 -0
  127. package/dist/viewer/assets/layout.worker-Bg-OaLVN.js +26 -0
  128. package/dist/viewer/assets/overpass-latin-QyaMbcmi.woff2 +0 -0
  129. package/dist/viewer/assets/overpass-latin-ext-DSRhPfzW.woff2 +0 -0
  130. package/dist/viewer/assets/overpass-mono-latin-BTquVRaO.woff2 +0 -0
  131. package/dist/viewer/assets/overpass-mono-latin-ext-D47EiU4_.woff2 +0 -0
  132. package/dist/viewer/assets/png-BDKIXtm5.js +1 -0
  133. package/dist/viewer/assets/svg-Bulv5YWn.js +2 -0
  134. package/dist/viewer/favicon.svg +1 -0
  135. package/dist/viewer/index.html +53 -0
  136. package/dist/writer/adrs.d.ts +21 -0
  137. package/dist/writer/adrs.js +72 -0
  138. package/dist/writer/deployments.d.ts +51 -0
  139. package/dist/writer/deployments.js +145 -0
  140. package/dist/writer/diff.d.ts +6 -0
  141. package/dist/writer/diff.js +77 -0
  142. package/dist/writer/document.d.ts +25 -0
  143. package/dist/writer/document.js +79 -0
  144. package/dist/writer/edit.d.ts +78 -0
  145. package/dist/writer/edit.js +63 -0
  146. package/dist/writer/index.d.ts +67 -0
  147. package/dist/writer/index.js +310 -0
  148. package/dist/writer/overlay.d.ts +7 -0
  149. package/dist/writer/overlay.js +26 -0
  150. package/dist/writer/views.d.ts +29 -0
  151. package/dist/writer/views.js +78 -0
  152. package/dist/writer/workspace.d.ts +25 -0
  153. package/dist/writer/workspace.js +56 -0
  154. package/guide/SKILL.md +36 -0
  155. package/guide/topics/add-service.md +30 -0
  156. package/guide/topics/bootstrap.md +28 -0
  157. package/guide/topics/change.md +32 -0
  158. package/guide/topics/deployments.md +36 -0
  159. package/guide/topics/dynamic-view.md +39 -0
  160. package/guide/topics/propose-adr.md +12 -0
  161. package/guide/topics/relationships.md +39 -0
  162. package/guide/topics/saved-view.md +36 -0
  163. package/package.json +75 -4
  164. package/schemas/adr.schema.json +82 -0
  165. package/schemas/model.schema.json +1381 -0
  166. package/schemas/project.schema.json +24 -0
  167. package/schemas/workspace.schema.json +72 -0
@@ -0,0 +1,1381 @@
1
+ {
2
+ "title": "Archidocs model file (any other *.yaml in a Project)",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "people": {
7
+ "type": "object",
8
+ "propertyNames": {
9
+ "type": "string",
10
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
11
+ },
12
+ "additionalProperties": {
13
+ "type": "object",
14
+ "properties": {
15
+ "name": {
16
+ "type": "string"
17
+ },
18
+ "description": {
19
+ "type": "string"
20
+ },
21
+ "owner": {
22
+ "type": "string",
23
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
24
+ },
25
+ "tags": {
26
+ "type": "array",
27
+ "items": {
28
+ "type": "string"
29
+ }
30
+ },
31
+ "links": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "object",
35
+ "properties": {
36
+ "label": {
37
+ "type": "string"
38
+ },
39
+ "url": {
40
+ "type": "string",
41
+ "format": "uri"
42
+ }
43
+ },
44
+ "required": [
45
+ "label",
46
+ "url"
47
+ ],
48
+ "additionalProperties": false
49
+ }
50
+ },
51
+ "relationships": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "object",
55
+ "properties": {
56
+ "to": {
57
+ "type": "string",
58
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
59
+ "description": "An id in this Project, or `project:id` for one in another Project"
60
+ },
61
+ "id": {
62
+ "type": "string",
63
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
64
+ },
65
+ "description": {
66
+ "type": "string"
67
+ },
68
+ "technology": {
69
+ "type": "string"
70
+ },
71
+ "interaction": {
72
+ "type": "string",
73
+ "enum": [
74
+ "sync",
75
+ "async"
76
+ ]
77
+ },
78
+ "via": {
79
+ "type": "string",
80
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
81
+ "description": "An id in this Project, or `project:id` for one in another Project"
82
+ },
83
+ "channel": {
84
+ "type": "string"
85
+ },
86
+ "tags": {
87
+ "type": "array",
88
+ "items": {
89
+ "type": "string"
90
+ }
91
+ }
92
+ },
93
+ "required": [
94
+ "to"
95
+ ],
96
+ "additionalProperties": false
97
+ }
98
+ }
99
+ },
100
+ "required": [
101
+ "name"
102
+ ],
103
+ "additionalProperties": false
104
+ }
105
+ },
106
+ "systems": {
107
+ "type": "object",
108
+ "propertyNames": {
109
+ "type": "string",
110
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
111
+ },
112
+ "additionalProperties": {
113
+ "type": "object",
114
+ "properties": {
115
+ "name": {
116
+ "type": "string"
117
+ },
118
+ "description": {
119
+ "type": "string"
120
+ },
121
+ "owner": {
122
+ "type": "string",
123
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
124
+ },
125
+ "tags": {
126
+ "type": "array",
127
+ "items": {
128
+ "type": "string"
129
+ }
130
+ },
131
+ "links": {
132
+ "type": "array",
133
+ "items": {
134
+ "type": "object",
135
+ "properties": {
136
+ "label": {
137
+ "type": "string"
138
+ },
139
+ "url": {
140
+ "type": "string",
141
+ "format": "uri"
142
+ }
143
+ },
144
+ "required": [
145
+ "label",
146
+ "url"
147
+ ],
148
+ "additionalProperties": false
149
+ }
150
+ },
151
+ "relationships": {
152
+ "type": "array",
153
+ "items": {
154
+ "type": "object",
155
+ "properties": {
156
+ "to": {
157
+ "type": "string",
158
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
159
+ "description": "An id in this Project, or `project:id` for one in another Project"
160
+ },
161
+ "id": {
162
+ "type": "string",
163
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
164
+ },
165
+ "description": {
166
+ "type": "string"
167
+ },
168
+ "technology": {
169
+ "type": "string"
170
+ },
171
+ "interaction": {
172
+ "type": "string",
173
+ "enum": [
174
+ "sync",
175
+ "async"
176
+ ]
177
+ },
178
+ "via": {
179
+ "type": "string",
180
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
181
+ "description": "An id in this Project, or `project:id` for one in another Project"
182
+ },
183
+ "channel": {
184
+ "type": "string"
185
+ },
186
+ "tags": {
187
+ "type": "array",
188
+ "items": {
189
+ "type": "string"
190
+ }
191
+ }
192
+ },
193
+ "required": [
194
+ "to"
195
+ ],
196
+ "additionalProperties": false
197
+ }
198
+ },
199
+ "external": {
200
+ "type": "boolean"
201
+ },
202
+ "services": {
203
+ "type": "object",
204
+ "propertyNames": {
205
+ "type": "string",
206
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
207
+ },
208
+ "additionalProperties": {
209
+ "type": "object",
210
+ "properties": {
211
+ "name": {
212
+ "type": "string"
213
+ },
214
+ "description": {
215
+ "type": "string"
216
+ },
217
+ "owner": {
218
+ "type": "string",
219
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
220
+ },
221
+ "tags": {
222
+ "type": "array",
223
+ "items": {
224
+ "type": "string"
225
+ }
226
+ },
227
+ "links": {
228
+ "type": "array",
229
+ "items": {
230
+ "type": "object",
231
+ "properties": {
232
+ "label": {
233
+ "type": "string"
234
+ },
235
+ "url": {
236
+ "type": "string",
237
+ "format": "uri"
238
+ }
239
+ },
240
+ "required": [
241
+ "label",
242
+ "url"
243
+ ],
244
+ "additionalProperties": false
245
+ }
246
+ },
247
+ "relationships": {
248
+ "type": "array",
249
+ "items": {
250
+ "type": "object",
251
+ "properties": {
252
+ "to": {
253
+ "type": "string",
254
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
255
+ "description": "An id in this Project, or `project:id` for one in another Project"
256
+ },
257
+ "id": {
258
+ "type": "string",
259
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
260
+ },
261
+ "description": {
262
+ "type": "string"
263
+ },
264
+ "technology": {
265
+ "type": "string"
266
+ },
267
+ "interaction": {
268
+ "type": "string",
269
+ "enum": [
270
+ "sync",
271
+ "async"
272
+ ]
273
+ },
274
+ "via": {
275
+ "type": "string",
276
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
277
+ "description": "An id in this Project, or `project:id` for one in another Project"
278
+ },
279
+ "channel": {
280
+ "type": "string"
281
+ },
282
+ "tags": {
283
+ "type": "array",
284
+ "items": {
285
+ "type": "string"
286
+ }
287
+ }
288
+ },
289
+ "required": [
290
+ "to"
291
+ ],
292
+ "additionalProperties": false
293
+ }
294
+ },
295
+ "type": {
296
+ "type": "string",
297
+ "enum": [
298
+ "app",
299
+ "datastore",
300
+ "broker"
301
+ ]
302
+ },
303
+ "technology": {
304
+ "type": "string"
305
+ },
306
+ "external": {
307
+ "type": "boolean"
308
+ },
309
+ "in": {
310
+ "type": "string",
311
+ "pattern": "^[a-z0-9][a-z0-9-]*$",
312
+ "description": "Id of the parent declared in another file of this Project"
313
+ },
314
+ "components": {
315
+ "type": "object",
316
+ "propertyNames": {
317
+ "type": "string",
318
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
319
+ },
320
+ "additionalProperties": {
321
+ "type": "object",
322
+ "properties": {
323
+ "name": {
324
+ "type": "string"
325
+ },
326
+ "description": {
327
+ "type": "string"
328
+ },
329
+ "owner": {
330
+ "type": "string",
331
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
332
+ },
333
+ "tags": {
334
+ "type": "array",
335
+ "items": {
336
+ "type": "string"
337
+ }
338
+ },
339
+ "links": {
340
+ "type": "array",
341
+ "items": {
342
+ "type": "object",
343
+ "properties": {
344
+ "label": {
345
+ "type": "string"
346
+ },
347
+ "url": {
348
+ "type": "string",
349
+ "format": "uri"
350
+ }
351
+ },
352
+ "required": [
353
+ "label",
354
+ "url"
355
+ ],
356
+ "additionalProperties": false
357
+ }
358
+ },
359
+ "relationships": {
360
+ "type": "array",
361
+ "items": {
362
+ "type": "object",
363
+ "properties": {
364
+ "to": {
365
+ "type": "string",
366
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
367
+ "description": "An id in this Project, or `project:id` for one in another Project"
368
+ },
369
+ "id": {
370
+ "type": "string",
371
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
372
+ },
373
+ "description": {
374
+ "type": "string"
375
+ },
376
+ "technology": {
377
+ "type": "string"
378
+ },
379
+ "interaction": {
380
+ "type": "string",
381
+ "enum": [
382
+ "sync",
383
+ "async"
384
+ ]
385
+ },
386
+ "via": {
387
+ "type": "string",
388
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
389
+ "description": "An id in this Project, or `project:id` for one in another Project"
390
+ },
391
+ "channel": {
392
+ "type": "string"
393
+ },
394
+ "tags": {
395
+ "type": "array",
396
+ "items": {
397
+ "type": "string"
398
+ }
399
+ }
400
+ },
401
+ "required": [
402
+ "to"
403
+ ],
404
+ "additionalProperties": false
405
+ }
406
+ },
407
+ "technology": {
408
+ "type": "string"
409
+ },
410
+ "in": {
411
+ "type": "string",
412
+ "pattern": "^[a-z0-9][a-z0-9-]*$",
413
+ "description": "Id of the parent declared in another file of this Project"
414
+ }
415
+ },
416
+ "required": [
417
+ "name"
418
+ ],
419
+ "additionalProperties": false
420
+ }
421
+ }
422
+ },
423
+ "required": [
424
+ "name"
425
+ ],
426
+ "additionalProperties": false
427
+ }
428
+ }
429
+ },
430
+ "required": [
431
+ "name"
432
+ ],
433
+ "additionalProperties": false
434
+ }
435
+ },
436
+ "services": {
437
+ "type": "object",
438
+ "propertyNames": {
439
+ "type": "string",
440
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
441
+ },
442
+ "additionalProperties": {
443
+ "type": "object",
444
+ "properties": {
445
+ "name": {
446
+ "type": "string"
447
+ },
448
+ "description": {
449
+ "type": "string"
450
+ },
451
+ "owner": {
452
+ "type": "string",
453
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
454
+ },
455
+ "tags": {
456
+ "type": "array",
457
+ "items": {
458
+ "type": "string"
459
+ }
460
+ },
461
+ "links": {
462
+ "type": "array",
463
+ "items": {
464
+ "type": "object",
465
+ "properties": {
466
+ "label": {
467
+ "type": "string"
468
+ },
469
+ "url": {
470
+ "type": "string",
471
+ "format": "uri"
472
+ }
473
+ },
474
+ "required": [
475
+ "label",
476
+ "url"
477
+ ],
478
+ "additionalProperties": false
479
+ }
480
+ },
481
+ "relationships": {
482
+ "type": "array",
483
+ "items": {
484
+ "type": "object",
485
+ "properties": {
486
+ "to": {
487
+ "type": "string",
488
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
489
+ "description": "An id in this Project, or `project:id` for one in another Project"
490
+ },
491
+ "id": {
492
+ "type": "string",
493
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
494
+ },
495
+ "description": {
496
+ "type": "string"
497
+ },
498
+ "technology": {
499
+ "type": "string"
500
+ },
501
+ "interaction": {
502
+ "type": "string",
503
+ "enum": [
504
+ "sync",
505
+ "async"
506
+ ]
507
+ },
508
+ "via": {
509
+ "type": "string",
510
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
511
+ "description": "An id in this Project, or `project:id` for one in another Project"
512
+ },
513
+ "channel": {
514
+ "type": "string"
515
+ },
516
+ "tags": {
517
+ "type": "array",
518
+ "items": {
519
+ "type": "string"
520
+ }
521
+ }
522
+ },
523
+ "required": [
524
+ "to"
525
+ ],
526
+ "additionalProperties": false
527
+ }
528
+ },
529
+ "type": {
530
+ "type": "string",
531
+ "enum": [
532
+ "app",
533
+ "datastore",
534
+ "broker"
535
+ ]
536
+ },
537
+ "technology": {
538
+ "type": "string"
539
+ },
540
+ "external": {
541
+ "type": "boolean"
542
+ },
543
+ "in": {
544
+ "type": "string",
545
+ "pattern": "^[a-z0-9][a-z0-9-]*$",
546
+ "description": "Id of the parent declared in another file of this Project"
547
+ },
548
+ "components": {
549
+ "type": "object",
550
+ "propertyNames": {
551
+ "type": "string",
552
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
553
+ },
554
+ "additionalProperties": {
555
+ "type": "object",
556
+ "properties": {
557
+ "name": {
558
+ "type": "string"
559
+ },
560
+ "description": {
561
+ "type": "string"
562
+ },
563
+ "owner": {
564
+ "type": "string",
565
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
566
+ },
567
+ "tags": {
568
+ "type": "array",
569
+ "items": {
570
+ "type": "string"
571
+ }
572
+ },
573
+ "links": {
574
+ "type": "array",
575
+ "items": {
576
+ "type": "object",
577
+ "properties": {
578
+ "label": {
579
+ "type": "string"
580
+ },
581
+ "url": {
582
+ "type": "string",
583
+ "format": "uri"
584
+ }
585
+ },
586
+ "required": [
587
+ "label",
588
+ "url"
589
+ ],
590
+ "additionalProperties": false
591
+ }
592
+ },
593
+ "relationships": {
594
+ "type": "array",
595
+ "items": {
596
+ "type": "object",
597
+ "properties": {
598
+ "to": {
599
+ "type": "string",
600
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
601
+ "description": "An id in this Project, or `project:id` for one in another Project"
602
+ },
603
+ "id": {
604
+ "type": "string",
605
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
606
+ },
607
+ "description": {
608
+ "type": "string"
609
+ },
610
+ "technology": {
611
+ "type": "string"
612
+ },
613
+ "interaction": {
614
+ "type": "string",
615
+ "enum": [
616
+ "sync",
617
+ "async"
618
+ ]
619
+ },
620
+ "via": {
621
+ "type": "string",
622
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
623
+ "description": "An id in this Project, or `project:id` for one in another Project"
624
+ },
625
+ "channel": {
626
+ "type": "string"
627
+ },
628
+ "tags": {
629
+ "type": "array",
630
+ "items": {
631
+ "type": "string"
632
+ }
633
+ }
634
+ },
635
+ "required": [
636
+ "to"
637
+ ],
638
+ "additionalProperties": false
639
+ }
640
+ },
641
+ "technology": {
642
+ "type": "string"
643
+ },
644
+ "in": {
645
+ "type": "string",
646
+ "pattern": "^[a-z0-9][a-z0-9-]*$",
647
+ "description": "Id of the parent declared in another file of this Project"
648
+ }
649
+ },
650
+ "required": [
651
+ "name"
652
+ ],
653
+ "additionalProperties": false
654
+ }
655
+ }
656
+ },
657
+ "required": [
658
+ "name"
659
+ ],
660
+ "additionalProperties": false
661
+ }
662
+ },
663
+ "components": {
664
+ "type": "object",
665
+ "propertyNames": {
666
+ "type": "string",
667
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
668
+ },
669
+ "additionalProperties": {
670
+ "type": "object",
671
+ "properties": {
672
+ "name": {
673
+ "type": "string"
674
+ },
675
+ "description": {
676
+ "type": "string"
677
+ },
678
+ "owner": {
679
+ "type": "string",
680
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
681
+ },
682
+ "tags": {
683
+ "type": "array",
684
+ "items": {
685
+ "type": "string"
686
+ }
687
+ },
688
+ "links": {
689
+ "type": "array",
690
+ "items": {
691
+ "type": "object",
692
+ "properties": {
693
+ "label": {
694
+ "type": "string"
695
+ },
696
+ "url": {
697
+ "type": "string",
698
+ "format": "uri"
699
+ }
700
+ },
701
+ "required": [
702
+ "label",
703
+ "url"
704
+ ],
705
+ "additionalProperties": false
706
+ }
707
+ },
708
+ "relationships": {
709
+ "type": "array",
710
+ "items": {
711
+ "type": "object",
712
+ "properties": {
713
+ "to": {
714
+ "type": "string",
715
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
716
+ "description": "An id in this Project, or `project:id` for one in another Project"
717
+ },
718
+ "id": {
719
+ "type": "string",
720
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
721
+ },
722
+ "description": {
723
+ "type": "string"
724
+ },
725
+ "technology": {
726
+ "type": "string"
727
+ },
728
+ "interaction": {
729
+ "type": "string",
730
+ "enum": [
731
+ "sync",
732
+ "async"
733
+ ]
734
+ },
735
+ "via": {
736
+ "type": "string",
737
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
738
+ "description": "An id in this Project, or `project:id` for one in another Project"
739
+ },
740
+ "channel": {
741
+ "type": "string"
742
+ },
743
+ "tags": {
744
+ "type": "array",
745
+ "items": {
746
+ "type": "string"
747
+ }
748
+ }
749
+ },
750
+ "required": [
751
+ "to"
752
+ ],
753
+ "additionalProperties": false
754
+ }
755
+ },
756
+ "technology": {
757
+ "type": "string"
758
+ },
759
+ "in": {
760
+ "type": "string",
761
+ "pattern": "^[a-z0-9][a-z0-9-]*$",
762
+ "description": "Id of the parent declared in another file of this Project"
763
+ }
764
+ },
765
+ "required": [
766
+ "name"
767
+ ],
768
+ "additionalProperties": false
769
+ }
770
+ },
771
+ "targets": {
772
+ "type": "object",
773
+ "propertyNames": {
774
+ "type": "string",
775
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
776
+ },
777
+ "additionalProperties": {
778
+ "$ref": "#/$defs/Target"
779
+ }
780
+ },
781
+ "deployments": {
782
+ "type": "array",
783
+ "items": {
784
+ "type": "object",
785
+ "properties": {
786
+ "service": {
787
+ "type": "string",
788
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
789
+ "description": "An id in this Project, or `project:id` for one in another Project"
790
+ },
791
+ "environment": {
792
+ "type": "string",
793
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
794
+ },
795
+ "target": {
796
+ "type": "string",
797
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
798
+ "description": "An id in this Project, or `project:id` for one in another Project"
799
+ },
800
+ "url": {
801
+ "type": "string",
802
+ "format": "uri"
803
+ },
804
+ "endpoints": {
805
+ "type": "array",
806
+ "items": {
807
+ "type": "object",
808
+ "properties": {
809
+ "name": {
810
+ "type": "string"
811
+ },
812
+ "url": {
813
+ "type": "string",
814
+ "format": "uri"
815
+ }
816
+ },
817
+ "required": [
818
+ "name",
819
+ "url"
820
+ ],
821
+ "additionalProperties": false
822
+ }
823
+ }
824
+ },
825
+ "required": [
826
+ "service",
827
+ "environment",
828
+ "target"
829
+ ],
830
+ "additionalProperties": false
831
+ }
832
+ },
833
+ "views": {
834
+ "type": "object",
835
+ "properties": {
836
+ "structural": {
837
+ "type": "object",
838
+ "propertyNames": {
839
+ "type": "string",
840
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
841
+ },
842
+ "additionalProperties": {
843
+ "type": "object",
844
+ "properties": {
845
+ "title": {
846
+ "type": "string"
847
+ },
848
+ "description": {
849
+ "type": "string"
850
+ },
851
+ "tags": {
852
+ "type": "array",
853
+ "items": {
854
+ "type": "string"
855
+ }
856
+ },
857
+ "level": {
858
+ "type": "string",
859
+ "enum": [
860
+ "c1",
861
+ "c2",
862
+ "c3",
863
+ "deployment"
864
+ ]
865
+ },
866
+ "expand": {
867
+ "description": "Elements opened one level deeper than `level`",
868
+ "type": "array",
869
+ "items": {
870
+ "type": "string",
871
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
872
+ "description": "An id in this Project, or `project:id` for one in another Project"
873
+ }
874
+ },
875
+ "collapse": {
876
+ "description": "Elements closed, hiding everything inside them",
877
+ "type": "array",
878
+ "items": {
879
+ "type": "string",
880
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
881
+ "description": "An id in this Project, or `project:id` for one in another Project"
882
+ }
883
+ },
884
+ "direction": {
885
+ "type": "string",
886
+ "enum": [
887
+ "TB",
888
+ "BT",
889
+ "LR",
890
+ "RL"
891
+ ]
892
+ },
893
+ "environment": {
894
+ "description": "For `level: deployment`: the Environment shown",
895
+ "type": "string",
896
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
897
+ },
898
+ "targets": {
899
+ "description": "For `level: deployment`: only these Deployment Target subtrees",
900
+ "type": "array",
901
+ "items": {
902
+ "type": "string",
903
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
904
+ "description": "An id in this Project, or `project:id` for one in another Project"
905
+ }
906
+ },
907
+ "include": {
908
+ "description": "Selectors to show; every Element when absent",
909
+ "type": "array",
910
+ "items": {
911
+ "anyOf": [
912
+ {
913
+ "type": "string",
914
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
915
+ "description": "An id in this Project, or `project:id` for one in another Project"
916
+ },
917
+ {
918
+ "type": "object",
919
+ "properties": {
920
+ "element": {
921
+ "type": "string",
922
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
923
+ "description": "An id in this Project, or `project:id` for one in another Project"
924
+ },
925
+ "with": {
926
+ "type": "string",
927
+ "enum": [
928
+ "children",
929
+ "descendants"
930
+ ]
931
+ },
932
+ "upstream": {
933
+ "anyOf": [
934
+ {
935
+ "type": "integer",
936
+ "minimum": 0,
937
+ "maximum": 9007199254740991
938
+ },
939
+ {
940
+ "type": "string",
941
+ "const": "all"
942
+ }
943
+ ],
944
+ "description": "A number of hops, or `all`"
945
+ },
946
+ "downstream": {
947
+ "anyOf": [
948
+ {
949
+ "type": "integer",
950
+ "minimum": 0,
951
+ "maximum": 9007199254740991
952
+ },
953
+ {
954
+ "type": "string",
955
+ "const": "all"
956
+ }
957
+ ],
958
+ "description": "A number of hops, or `all`"
959
+ }
960
+ },
961
+ "required": [
962
+ "element"
963
+ ],
964
+ "additionalProperties": false
965
+ },
966
+ {
967
+ "type": "object",
968
+ "properties": {
969
+ "team": {
970
+ "type": "string",
971
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
972
+ }
973
+ },
974
+ "required": [
975
+ "team"
976
+ ],
977
+ "additionalProperties": false
978
+ },
979
+ {
980
+ "type": "object",
981
+ "properties": {
982
+ "tag": {
983
+ "type": "string"
984
+ }
985
+ },
986
+ "required": [
987
+ "tag"
988
+ ],
989
+ "additionalProperties": false
990
+ },
991
+ {
992
+ "type": "object",
993
+ "properties": {
994
+ "from": {
995
+ "type": "string",
996
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
997
+ "description": "An id in this Project, or `project:id` for one in another Project"
998
+ },
999
+ "to": {
1000
+ "type": "string",
1001
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
1002
+ "description": "An id in this Project, or `project:id` for one in another Project"
1003
+ },
1004
+ "paths": {
1005
+ "anyOf": [
1006
+ {
1007
+ "type": "string",
1008
+ "const": "shortest"
1009
+ },
1010
+ {
1011
+ "type": "integer",
1012
+ "minimum": 1,
1013
+ "maximum": 9007199254740991
1014
+ }
1015
+ ],
1016
+ "description": "`shortest` (the default), or n for every path of at most n hops"
1017
+ }
1018
+ },
1019
+ "required": [
1020
+ "from",
1021
+ "to"
1022
+ ],
1023
+ "additionalProperties": false
1024
+ }
1025
+ ]
1026
+ }
1027
+ },
1028
+ "exclude": {
1029
+ "type": "array",
1030
+ "items": {
1031
+ "anyOf": [
1032
+ {
1033
+ "type": "string",
1034
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
1035
+ "description": "An id in this Project, or `project:id` for one in another Project"
1036
+ },
1037
+ {
1038
+ "type": "object",
1039
+ "properties": {
1040
+ "element": {
1041
+ "type": "string",
1042
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
1043
+ "description": "An id in this Project, or `project:id` for one in another Project"
1044
+ },
1045
+ "with": {
1046
+ "type": "string",
1047
+ "enum": [
1048
+ "children",
1049
+ "descendants"
1050
+ ]
1051
+ },
1052
+ "upstream": {
1053
+ "anyOf": [
1054
+ {
1055
+ "type": "integer",
1056
+ "minimum": 0,
1057
+ "maximum": 9007199254740991
1058
+ },
1059
+ {
1060
+ "type": "string",
1061
+ "const": "all"
1062
+ }
1063
+ ],
1064
+ "description": "A number of hops, or `all`"
1065
+ },
1066
+ "downstream": {
1067
+ "anyOf": [
1068
+ {
1069
+ "type": "integer",
1070
+ "minimum": 0,
1071
+ "maximum": 9007199254740991
1072
+ },
1073
+ {
1074
+ "type": "string",
1075
+ "const": "all"
1076
+ }
1077
+ ],
1078
+ "description": "A number of hops, or `all`"
1079
+ }
1080
+ },
1081
+ "required": [
1082
+ "element"
1083
+ ],
1084
+ "additionalProperties": false
1085
+ },
1086
+ {
1087
+ "type": "object",
1088
+ "properties": {
1089
+ "team": {
1090
+ "type": "string",
1091
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
1092
+ }
1093
+ },
1094
+ "required": [
1095
+ "team"
1096
+ ],
1097
+ "additionalProperties": false
1098
+ },
1099
+ {
1100
+ "type": "object",
1101
+ "properties": {
1102
+ "tag": {
1103
+ "type": "string"
1104
+ }
1105
+ },
1106
+ "required": [
1107
+ "tag"
1108
+ ],
1109
+ "additionalProperties": false
1110
+ },
1111
+ {
1112
+ "type": "object",
1113
+ "properties": {
1114
+ "from": {
1115
+ "type": "string",
1116
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
1117
+ "description": "An id in this Project, or `project:id` for one in another Project"
1118
+ },
1119
+ "to": {
1120
+ "type": "string",
1121
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
1122
+ "description": "An id in this Project, or `project:id` for one in another Project"
1123
+ },
1124
+ "paths": {
1125
+ "anyOf": [
1126
+ {
1127
+ "type": "string",
1128
+ "const": "shortest"
1129
+ },
1130
+ {
1131
+ "type": "integer",
1132
+ "minimum": 1,
1133
+ "maximum": 9007199254740991
1134
+ }
1135
+ ],
1136
+ "description": "`shortest` (the default), or n for every path of at most n hops"
1137
+ }
1138
+ },
1139
+ "required": [
1140
+ "from",
1141
+ "to"
1142
+ ],
1143
+ "additionalProperties": false
1144
+ }
1145
+ ]
1146
+ }
1147
+ },
1148
+ "lens": {
1149
+ "anyOf": [
1150
+ {
1151
+ "type": "object",
1152
+ "properties": {
1153
+ "impact": {
1154
+ "type": "string",
1155
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
1156
+ "description": "An id in this Project, or `project:id` for one in another Project"
1157
+ },
1158
+ "direction": {
1159
+ "type": "string",
1160
+ "enum": [
1161
+ "upstream",
1162
+ "downstream",
1163
+ "both"
1164
+ ]
1165
+ }
1166
+ },
1167
+ "required": [
1168
+ "impact"
1169
+ ],
1170
+ "additionalProperties": false
1171
+ },
1172
+ {
1173
+ "type": "object",
1174
+ "properties": {
1175
+ "team": {
1176
+ "type": "string",
1177
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
1178
+ }
1179
+ },
1180
+ "required": [
1181
+ "team"
1182
+ ],
1183
+ "additionalProperties": false
1184
+ },
1185
+ {
1186
+ "type": "object",
1187
+ "properties": {
1188
+ "path": {
1189
+ "type": "object",
1190
+ "properties": {
1191
+ "from": {
1192
+ "type": "string",
1193
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
1194
+ "description": "An id in this Project, or `project:id` for one in another Project"
1195
+ },
1196
+ "to": {
1197
+ "type": "string",
1198
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
1199
+ "description": "An id in this Project, or `project:id` for one in another Project"
1200
+ },
1201
+ "paths": {
1202
+ "anyOf": [
1203
+ {
1204
+ "type": "string",
1205
+ "const": "shortest"
1206
+ },
1207
+ {
1208
+ "type": "integer",
1209
+ "minimum": 1,
1210
+ "maximum": 9007199254740991
1211
+ }
1212
+ ],
1213
+ "description": "`shortest` (the default), or n for every path of at most n hops"
1214
+ }
1215
+ },
1216
+ "required": [
1217
+ "from",
1218
+ "to"
1219
+ ],
1220
+ "additionalProperties": false
1221
+ }
1222
+ },
1223
+ "required": [
1224
+ "path"
1225
+ ],
1226
+ "additionalProperties": false
1227
+ }
1228
+ ]
1229
+ }
1230
+ },
1231
+ "required": [
1232
+ "title",
1233
+ "level"
1234
+ ],
1235
+ "additionalProperties": false
1236
+ }
1237
+ },
1238
+ "dynamic": {
1239
+ "type": "object",
1240
+ "propertyNames": {
1241
+ "type": "string",
1242
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
1243
+ },
1244
+ "additionalProperties": {
1245
+ "type": "object",
1246
+ "properties": {
1247
+ "title": {
1248
+ "type": "string"
1249
+ },
1250
+ "description": {
1251
+ "type": "string"
1252
+ },
1253
+ "tags": {
1254
+ "type": "array",
1255
+ "items": {
1256
+ "type": "string"
1257
+ }
1258
+ },
1259
+ "participants": {
1260
+ "description": "Fixes the participants' order; otherwise they are ordered by first appearance",
1261
+ "type": "array",
1262
+ "items": {
1263
+ "type": "string",
1264
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
1265
+ "description": "An id in this Project, or `project:id` for one in another Project"
1266
+ }
1267
+ },
1268
+ "steps": {
1269
+ "type": "array",
1270
+ "items": {
1271
+ "type": "object",
1272
+ "properties": {
1273
+ "from": {
1274
+ "type": "string",
1275
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
1276
+ "description": "An id in this Project, or `project:id` for one in another Project"
1277
+ },
1278
+ "to": {
1279
+ "type": "string",
1280
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$",
1281
+ "description": "An id in this Project, or `project:id` for one in another Project"
1282
+ },
1283
+ "relationship": {
1284
+ "description": "The id of the Relationship the Step takes, when several connect the pair",
1285
+ "type": "string",
1286
+ "pattern": "^([a-z0-9][a-z0-9-]*:)?[a-z0-9][a-z0-9-]*$"
1287
+ },
1288
+ "description": {
1289
+ "type": "string"
1290
+ },
1291
+ "note": {
1292
+ "type": "string"
1293
+ },
1294
+ "return": {
1295
+ "description": "The reply to a sync Relationship from `to` to `from`",
1296
+ "type": "boolean"
1297
+ }
1298
+ },
1299
+ "required": [
1300
+ "from",
1301
+ "to"
1302
+ ],
1303
+ "additionalProperties": false
1304
+ }
1305
+ }
1306
+ },
1307
+ "required": [
1308
+ "title",
1309
+ "steps"
1310
+ ],
1311
+ "additionalProperties": false
1312
+ }
1313
+ }
1314
+ },
1315
+ "additionalProperties": false
1316
+ }
1317
+ },
1318
+ "additionalProperties": false,
1319
+ "$defs": {
1320
+ "Target": {
1321
+ "type": "object",
1322
+ "properties": {
1323
+ "name": {
1324
+ "type": "string"
1325
+ },
1326
+ "kind": {
1327
+ "type": "string",
1328
+ "description": "What the Target is, such as region, cluster, namespace or platform"
1329
+ },
1330
+ "description": {
1331
+ "type": "string"
1332
+ },
1333
+ "owner": {
1334
+ "type": "string",
1335
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
1336
+ },
1337
+ "tags": {
1338
+ "type": "array",
1339
+ "items": {
1340
+ "type": "string"
1341
+ }
1342
+ },
1343
+ "links": {
1344
+ "type": "array",
1345
+ "items": {
1346
+ "type": "object",
1347
+ "properties": {
1348
+ "label": {
1349
+ "type": "string"
1350
+ },
1351
+ "url": {
1352
+ "type": "string",
1353
+ "format": "uri"
1354
+ }
1355
+ },
1356
+ "required": [
1357
+ "label",
1358
+ "url"
1359
+ ],
1360
+ "additionalProperties": false
1361
+ }
1362
+ },
1363
+ "targets": {
1364
+ "type": "object",
1365
+ "propertyNames": {
1366
+ "type": "string",
1367
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
1368
+ },
1369
+ "additionalProperties": {
1370
+ "$ref": "#/$defs/Target"
1371
+ }
1372
+ }
1373
+ },
1374
+ "required": [
1375
+ "name",
1376
+ "kind"
1377
+ ],
1378
+ "additionalProperties": false
1379
+ }
1380
+ }
1381
+ }