@documentation-robotics/cli 0.1.0 → 0.1.7

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 (510) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +466 -693
  3. package/dist/analysis/data-model-analyzer.js +189 -0
  4. package/dist/analysis/data-model-analyzer.js.map +7 -0
  5. package/dist/analysis/index.js +3 -0
  6. package/dist/analysis/index.js.map +7 -0
  7. package/dist/analysis/relationship-classifier.js +181 -0
  8. package/dist/analysis/relationship-classifier.js.map +7 -0
  9. package/dist/analyzers/base-analyzer.js +1 -0
  10. package/dist/analyzers/base-analyzer.js.map +7 -0
  11. package/dist/analyzers/call-graph-utils.js +39 -0
  12. package/dist/analyzers/call-graph-utils.js.map +7 -0
  13. package/dist/analyzers/cbm-analyzer.js +1205 -0
  14. package/dist/analyzers/cbm-analyzer.js.map +7 -0
  15. package/dist/analyzers/heuristic-utils.js +55 -0
  16. package/dist/analyzers/heuristic-utils.js.map +7 -0
  17. package/dist/analyzers/mapping-loader.js +146 -0
  18. package/dist/analyzers/mapping-loader.js.map +7 -0
  19. package/dist/analyzers/registry.js +124 -0
  20. package/dist/analyzers/registry.js.map +7 -0
  21. package/dist/analyzers/session-state.js +176 -0
  22. package/dist/analyzers/session-state.js.map +7 -0
  23. package/dist/analyzers/stdio-client.js +208 -0
  24. package/dist/analyzers/stdio-client.js.map +7 -0
  25. package/dist/analyzers/types.js +15 -0
  26. package/dist/analyzers/types.js.map +7 -0
  27. package/dist/analyzers/verify-engine.js +209 -0
  28. package/dist/analyzers/verify-engine.js.map +7 -0
  29. package/dist/analyzers/verify-ignore.js +130 -0
  30. package/dist/analyzers/verify-ignore.js.map +7 -0
  31. package/dist/analyzers/version.js +8 -0
  32. package/dist/analyzers/version.js.map +7 -0
  33. package/dist/audit/ai/runner.js +41 -0
  34. package/dist/audit/ai/runner.js.map +7 -0
  35. package/dist/audit/differential-analyzer.js +183 -0
  36. package/dist/audit/differential-analyzer.js.map +7 -0
  37. package/dist/audit/index.js +32 -0
  38. package/dist/audit/index.js.map +7 -0
  39. package/dist/audit/nodes/ai/evaluator.js +49 -0
  40. package/dist/audit/nodes/ai/evaluator.js.map +7 -0
  41. package/dist/audit/nodes/ai/parser.js +55 -0
  42. package/dist/audit/nodes/ai/parser.js.map +7 -0
  43. package/dist/audit/nodes/ai/prompts.js +103 -0
  44. package/dist/audit/nodes/ai/prompts.js.map +7 -0
  45. package/dist/audit/nodes/analysis/node-completeness-checker.js +32 -0
  46. package/dist/audit/nodes/analysis/node-completeness-checker.js.map +7 -0
  47. package/dist/audit/nodes/analysis/node-definition-analyzer.js +47 -0
  48. package/dist/audit/nodes/analysis/node-definition-analyzer.js.map +7 -0
  49. package/dist/audit/nodes/analysis/node-overlap-detector.js +79 -0
  50. package/dist/audit/nodes/analysis/node-overlap-detector.js.map +7 -0
  51. package/dist/audit/nodes/model/orchestrator.js +82 -0
  52. package/dist/audit/nodes/model/orchestrator.js.map +7 -0
  53. package/dist/audit/nodes/spec/loader.js +116 -0
  54. package/dist/audit/nodes/spec/loader.js.map +7 -0
  55. package/dist/audit/nodes/spec/orchestrator.js +68 -0
  56. package/dist/audit/nodes/spec/orchestrator.js.map +7 -0
  57. package/dist/audit/nodes/types.js +1 -0
  58. package/dist/audit/nodes/types.js.map +7 -0
  59. package/dist/audit/pipeline/index.js +5 -0
  60. package/dist/audit/pipeline/index.js.map +7 -0
  61. package/dist/audit/pipeline/pipeline-orchestrator.js +218 -0
  62. package/dist/audit/pipeline/pipeline-orchestrator.js.map +7 -0
  63. package/dist/audit/relationships/ai/evaluator.js +235 -0
  64. package/dist/audit/relationships/ai/evaluator.js.map +7 -0
  65. package/dist/audit/relationships/ai/parser.js +197 -0
  66. package/dist/audit/relationships/ai/parser.js.map +7 -0
  67. package/dist/audit/relationships/ai/prompts.js +274 -0
  68. package/dist/audit/relationships/ai/prompts.js.map +7 -0
  69. package/dist/audit/relationships/analysis/balance-assessor.js +115 -0
  70. package/dist/audit/relationships/analysis/balance-assessor.js.map +7 -0
  71. package/dist/audit/relationships/analysis/coverage-analyzer.js +99 -0
  72. package/dist/audit/relationships/analysis/coverage-analyzer.js.map +7 -0
  73. package/dist/audit/relationships/analysis/duplicate-detector.js +95 -0
  74. package/dist/audit/relationships/analysis/duplicate-detector.js.map +7 -0
  75. package/dist/audit/relationships/analysis/gap-analyzer.js +99 -0
  76. package/dist/audit/relationships/analysis/gap-analyzer.js.map +7 -0
  77. package/dist/audit/relationships/analysis/layer-templates.js +294 -0
  78. package/dist/audit/relationships/analysis/layer-templates.js.map +7 -0
  79. package/dist/audit/relationships/graph/connectivity.js +129 -0
  80. package/dist/audit/relationships/graph/connectivity.js.map +7 -0
  81. package/dist/audit/relationships/graph/relationship-graph.js +179 -0
  82. package/dist/audit/relationships/graph/relationship-graph.js.map +7 -0
  83. package/dist/audit/relationships/model/balance-assessor.js +49 -0
  84. package/dist/audit/relationships/model/balance-assessor.js.map +7 -0
  85. package/dist/audit/relationships/model/coverage-analyzer.js +34 -0
  86. package/dist/audit/relationships/model/coverage-analyzer.js.map +7 -0
  87. package/dist/audit/relationships/model/duplicate-detector.js +68 -0
  88. package/dist/audit/relationships/model/duplicate-detector.js.map +7 -0
  89. package/dist/audit/relationships/model/gap-analyzer.js +41 -0
  90. package/dist/audit/relationships/model/gap-analyzer.js.map +7 -0
  91. package/dist/audit/relationships/model/orchestrator.js +126 -0
  92. package/dist/audit/relationships/model/orchestrator.js.map +7 -0
  93. package/dist/audit/relationships/spec/orchestrator.js +157 -0
  94. package/dist/audit/relationships/spec/orchestrator.js.map +7 -0
  95. package/dist/audit/reports/index.js +5 -0
  96. package/dist/audit/reports/index.js.map +7 -0
  97. package/dist/audit/reports/report-generator.js +118 -0
  98. package/dist/audit/reports/report-generator.js.map +7 -0
  99. package/dist/audit/snapshot-storage.js +163 -0
  100. package/dist/audit/snapshot-storage.js.map +7 -0
  101. package/dist/audit/types.js +21 -0
  102. package/dist/audit/types.js.map +7 -0
  103. package/dist/cli.js +223 -92
  104. package/dist/cli.js.map +3 -3
  105. package/dist/coding-agents/agents/claude-code.js +147 -0
  106. package/dist/coding-agents/agents/claude-code.js.map +7 -0
  107. package/dist/coding-agents/agents/index.js +5 -0
  108. package/dist/coding-agents/agents/index.js.map +7 -0
  109. package/dist/coding-agents/agents/types.js +1 -0
  110. package/dist/coding-agents/agents/types.js.map +7 -0
  111. package/dist/coding-agents/base-chat-client.js +45 -0
  112. package/dist/coding-agents/base-chat-client.js.map +7 -0
  113. package/dist/coding-agents/chat-utils.js +23 -0
  114. package/dist/coding-agents/chat-utils.js.map +7 -0
  115. package/dist/coding-agents/claude-code-client.js +246 -0
  116. package/dist/coding-agents/claude-code-client.js.map +7 -0
  117. package/dist/coding-agents/copilot-client.js +209 -0
  118. package/dist/coding-agents/copilot-client.js.map +7 -0
  119. package/dist/commands/add.js +95 -33
  120. package/dist/commands/add.js.map +2 -2
  121. package/dist/commands/analyzer.js +511 -0
  122. package/dist/commands/analyzer.js.map +7 -0
  123. package/dist/commands/audit-diff.js +49 -0
  124. package/dist/commands/audit-diff.js.map +7 -0
  125. package/dist/commands/audit-snapshots.js +62 -0
  126. package/dist/commands/audit-snapshots.js.map +7 -0
  127. package/dist/commands/audit.js +81 -0
  128. package/dist/commands/audit.js.map +7 -0
  129. package/dist/commands/catalog.js +248 -0
  130. package/dist/commands/catalog.js.map +7 -0
  131. package/dist/commands/changeset.js +577 -66
  132. package/dist/commands/changeset.js.map +2 -2
  133. package/dist/commands/chat.js +106 -83
  134. package/dist/commands/chat.js.map +2 -2
  135. package/dist/commands/claude.js +74 -0
  136. package/dist/commands/claude.js.map +7 -0
  137. package/dist/commands/conformance.js +71 -68
  138. package/dist/commands/conformance.js.map +2 -2
  139. package/dist/commands/copilot.js +75 -0
  140. package/dist/commands/copilot.js.map +7 -0
  141. package/dist/commands/delete.js +125 -11
  142. package/dist/commands/delete.js.map +3 -3
  143. package/dist/commands/discover-logic.js +44 -0
  144. package/dist/commands/discover-logic.js.map +7 -0
  145. package/dist/commands/docs.js +87 -0
  146. package/dist/commands/docs.js.map +7 -0
  147. package/dist/commands/element.js +14 -20
  148. package/dist/commands/element.js.map +2 -2
  149. package/dist/commands/export.js +13 -3
  150. package/dist/commands/export.js.map +2 -2
  151. package/dist/commands/import.js +51 -0
  152. package/dist/commands/import.js.map +7 -0
  153. package/dist/commands/info.js +30 -24
  154. package/dist/commands/info.js.map +2 -2
  155. package/dist/commands/init.js +27 -11
  156. package/dist/commands/init.js.map +2 -2
  157. package/dist/commands/list.js +63 -13
  158. package/dist/commands/list.js.map +3 -3
  159. package/dist/commands/relationship.js +225 -37
  160. package/dist/commands/relationship.js.map +2 -2
  161. package/dist/commands/report.js +54 -0
  162. package/dist/commands/report.js.map +7 -0
  163. package/dist/commands/reports.js +45 -0
  164. package/dist/commands/reports.js.map +7 -0
  165. package/dist/commands/schema.js +135 -0
  166. package/dist/commands/schema.js.map +7 -0
  167. package/dist/commands/search.js +40 -12
  168. package/dist/commands/search.js.map +2 -2
  169. package/dist/commands/show.js +58 -27
  170. package/dist/commands/show.js.map +2 -2
  171. package/dist/commands/stats.js +35 -0
  172. package/dist/commands/stats.js.map +7 -0
  173. package/dist/commands/trace.js +39 -16
  174. package/dist/commands/trace.js.map +2 -2
  175. package/dist/commands/update.js +141 -14
  176. package/dist/commands/update.js.map +2 -2
  177. package/dist/commands/upgrade.js +210 -46
  178. package/dist/commands/upgrade.js.map +3 -3
  179. package/dist/commands/validate.js +142 -23
  180. package/dist/commands/validate.js.map +3 -3
  181. package/dist/commands/version.js +8 -12
  182. package/dist/commands/version.js.map +2 -2
  183. package/dist/commands/visualize.js +162 -25
  184. package/dist/commands/visualize.js.map +2 -2
  185. package/dist/core/base-snapshot-manager.js +84 -0
  186. package/dist/core/base-snapshot-manager.js.map +7 -0
  187. package/dist/core/changeset-exporter.js +305 -0
  188. package/dist/core/changeset-exporter.js.map +7 -0
  189. package/dist/core/changeset-validator.js +41 -0
  190. package/dist/core/changeset-validator.js.map +7 -0
  191. package/dist/core/changeset.js +88 -173
  192. package/dist/core/changeset.js.map +2 -2
  193. package/dist/core/dependency-tracker.js +4 -2
  194. package/dist/core/dependency-tracker.js.map +2 -2
  195. package/dist/core/element.js +98 -27
  196. package/dist/core/element.js.map +2 -2
  197. package/dist/core/golden-copy-cache.js +290 -0
  198. package/dist/core/golden-copy-cache.js.map +7 -0
  199. package/dist/core/graph-model.js +266 -0
  200. package/dist/core/graph-model.js.map +7 -0
  201. package/dist/core/layer.js +159 -16
  202. package/dist/core/layer.js.map +2 -2
  203. package/dist/core/layers.js +32 -0
  204. package/dist/core/layers.js.map +7 -0
  205. package/dist/core/manifest.js +32 -11
  206. package/dist/core/manifest.js.map +2 -2
  207. package/dist/core/migration-registry.js +56 -1
  208. package/dist/core/migration-registry.js.map +2 -2
  209. package/dist/core/model.js +424 -217
  210. package/dist/core/model.js.map +3 -3
  211. package/dist/core/mutation-handler.js +179 -0
  212. package/dist/core/mutation-handler.js.map +7 -0
  213. package/dist/core/reference-registry.js +29 -21
  214. package/dist/core/reference-registry.js.map +2 -2
  215. package/dist/core/relationship-catalog.js +189 -0
  216. package/dist/core/relationship-catalog.js.map +7 -0
  217. package/dist/core/relationship-registry.js.map +2 -2
  218. package/dist/core/relationships.js.map +1 -1
  219. package/dist/core/report-data-model.js +285 -0
  220. package/dist/core/report-data-model.js.map +7 -0
  221. package/dist/core/spec-data-service.js +185 -0
  222. package/dist/core/spec-data-service.js.map +7 -0
  223. package/dist/core/spec-loader-types.js +1 -0
  224. package/dist/core/spec-loader-types.js.map +7 -0
  225. package/dist/core/spec-loader.js +234 -0
  226. package/dist/core/spec-loader.js.map +7 -0
  227. package/dist/core/staged-changeset-storage.js +282 -0
  228. package/dist/core/staged-changeset-storage.js.map +7 -0
  229. package/dist/core/staging-area.js +1002 -0
  230. package/dist/core/staging-area.js.map +7 -0
  231. package/dist/core/stats-collector.js +169 -0
  232. package/dist/core/stats-collector.js.map +7 -0
  233. package/dist/core/virtual-projection.js +443 -0
  234. package/dist/core/virtual-projection.js.map +7 -0
  235. package/dist/export/archimate-exporter.js +99 -60
  236. package/dist/export/archimate-exporter.js.map +2 -2
  237. package/dist/export/audit-formatters.js +479 -0
  238. package/dist/export/audit-formatters.js.map +7 -0
  239. package/dist/export/diff-formatters.js +99 -0
  240. package/dist/export/diff-formatters.js.map +7 -0
  241. package/dist/export/export-manager.js.map +2 -2
  242. package/dist/export/graphml-exporter.js +44 -27
  243. package/dist/export/graphml-exporter.js.map +2 -2
  244. package/dist/export/index.js +4 -0
  245. package/dist/export/index.js.map +2 -2
  246. package/dist/export/json-schema-exporter.js +55 -42
  247. package/dist/export/json-schema-exporter.js.map +2 -2
  248. package/dist/export/markdown-exporter.js +92 -70
  249. package/dist/export/markdown-exporter.js.map +2 -2
  250. package/dist/export/markdown-generator.js +248 -0
  251. package/dist/export/markdown-generator.js.map +7 -0
  252. package/dist/export/markdown-utils.js +30 -0
  253. package/dist/export/markdown-utils.js.map +7 -0
  254. package/dist/export/mermaid-markdown-exporter.js +37 -0
  255. package/dist/export/mermaid-markdown-exporter.js.map +7 -0
  256. package/dist/export/openapi-exporter.js +119 -71
  257. package/dist/export/openapi-exporter.js.map +2 -2
  258. package/dist/export/plantuml-exporter.js +104 -39
  259. package/dist/export/plantuml-exporter.js.map +2 -2
  260. package/dist/export/report-formatters.js +111 -0
  261. package/dist/export/report-formatters.js.map +7 -0
  262. package/dist/export/stats-formatters.js +98 -0
  263. package/dist/export/stats-formatters.js.map +7 -0
  264. package/dist/export/types.js +2 -14
  265. package/dist/export/types.js.map +2 -2
  266. package/dist/export/verify-formatters.js +153 -0
  267. package/dist/export/verify-formatters.js.map +7 -0
  268. package/dist/generated/compiled-validators.js +17 -0
  269. package/dist/generated/compiled-validators.js.map +7 -0
  270. package/dist/generated/index.js +31 -0
  271. package/dist/generated/index.js.map +7 -0
  272. package/dist/generated/layer-registry.js +190 -0
  273. package/dist/generated/layer-registry.js.map +7 -0
  274. package/dist/generated/layer-types.js +7 -0
  275. package/dist/generated/layer-types.js.map +7 -0
  276. package/dist/generated/node-types.js +1719 -0
  277. package/dist/generated/node-types.js.map +7 -0
  278. package/dist/generated/relationship-index.js +14552 -0
  279. package/dist/generated/relationship-index.js.map +7 -0
  280. package/dist/import/archimate-importer.js +166 -0
  281. package/dist/import/archimate-importer.js.map +7 -0
  282. package/dist/import/index.js +47 -0
  283. package/dist/import/index.js.map +7 -0
  284. package/dist/import/openapi-importer.js +143 -0
  285. package/dist/import/openapi-importer.js.map +7 -0
  286. package/dist/import/types.js +1 -0
  287. package/dist/import/types.js.map +7 -0
  288. package/dist/integrations/base-manager.js +311 -0
  289. package/dist/integrations/base-manager.js.map +7 -0
  290. package/dist/integrations/claude-manager.js +360 -0
  291. package/dist/integrations/claude-manager.js.map +7 -0
  292. package/dist/integrations/claude_code/agents/dr-advisor.md +253 -0
  293. package/dist/integrations/claude_code/agents/dr-architect.md +278 -0
  294. package/dist/integrations/claude_code/agents/dr-extractor.md +286 -0
  295. package/dist/integrations/claude_code/commands/dr-changeset.md +657 -0
  296. package/dist/integrations/claude_code/commands/dr-design.md +373 -0
  297. package/dist/integrations/claude_code/commands/dr-info.md +132 -0
  298. package/dist/integrations/claude_code/commands/dr-init.md +251 -0
  299. package/dist/integrations/claude_code/commands/dr-map.md +936 -0
  300. package/dist/integrations/claude_code/commands/dr-model.md +493 -0
  301. package/dist/integrations/claude_code/commands/dr-relate.md +814 -0
  302. package/dist/integrations/claude_code/commands/dr-sync.md +279 -0
  303. package/dist/integrations/claude_code/commands/dr-validate.md +654 -0
  304. package/dist/integrations/claude_code/commands/dr-verify.md +559 -0
  305. package/dist/integrations/claude_code/docs/END_TO_END_WALKTHROUGH.md +903 -0
  306. package/dist/integrations/claude_code/docs/QUICK_START.md +271 -0
  307. package/dist/integrations/claude_code/docs/README.md +347 -0
  308. package/dist/integrations/claude_code/skills/dr_01_motivation_layer/SKILL.md +550 -0
  309. package/dist/integrations/claude_code/skills/dr_02_business_layer/SKILL.md +620 -0
  310. package/dist/integrations/claude_code/skills/dr_03_security_layer/SKILL.md +642 -0
  311. package/dist/integrations/claude_code/skills/dr_04_application_layer/SKILL.md +911 -0
  312. package/dist/integrations/claude_code/skills/dr_05_technology_layer/SKILL.md +836 -0
  313. package/dist/integrations/claude_code/skills/dr_06_api_layer/SKILL.md +933 -0
  314. package/dist/integrations/claude_code/skills/dr_07_data_model_layer/SKILL.md +210 -0
  315. package/dist/integrations/claude_code/skills/dr_08_dataset_layer/SKILL.md +319 -0
  316. package/dist/integrations/claude_code/skills/dr_09_ux_layer/SKILL.md +319 -0
  317. package/dist/integrations/claude_code/skills/dr_10_navigation_layer/SKILL.md +318 -0
  318. package/dist/integrations/claude_code/skills/dr_11_apm_layer/SKILL.md +273 -0
  319. package/dist/integrations/claude_code/skills/dr_12_testing_layer/SKILL.md +273 -0
  320. package/dist/integrations/claude_code/skills/dr_changeset_reviewer/SKILL.md +187 -0
  321. package/dist/integrations/claude_code/skills/dr_codebase_memory/SKILL.md +590 -0
  322. package/dist/integrations/claude_code/skills/dr_engineering_guide/SKILL.md +295 -0
  323. package/dist/integrations/copilot-manager.js +328 -0
  324. package/dist/integrations/copilot-manager.js.map +7 -0
  325. package/dist/integrations/github_copilot/agents/dr-advisor.md +243 -0
  326. package/dist/integrations/github_copilot/agents/dr-architect.md +1567 -0
  327. package/dist/integrations/github_copilot/skills/dr_01_motivation_layer/SKILL.md +491 -0
  328. package/dist/integrations/github_copilot/skills/dr_02_business_layer/SKILL.md +539 -0
  329. package/dist/integrations/github_copilot/skills/dr_03_security_layer/SKILL.md +667 -0
  330. package/dist/integrations/github_copilot/skills/dr_04_application_layer/SKILL.md +670 -0
  331. package/dist/integrations/github_copilot/skills/dr_05_technology_layer/SKILL.md +660 -0
  332. package/dist/integrations/github_copilot/skills/dr_06_api_layer/SKILL.md +855 -0
  333. package/dist/integrations/github_copilot/skills/dr_07_data_model_layer/SKILL.md +171 -0
  334. package/dist/integrations/github_copilot/skills/dr_08_dataset_layer/SKILL.md +216 -0
  335. package/dist/integrations/github_copilot/skills/dr_09_ux_layer/SKILL.md +230 -0
  336. package/dist/integrations/github_copilot/skills/dr_10_navigation_layer/SKILL.md +228 -0
  337. package/dist/integrations/github_copilot/skills/dr_11_apm_layer/SKILL.md +234 -0
  338. package/dist/integrations/github_copilot/skills/dr_12_testing_layer/SKILL.md +230 -0
  339. package/dist/integrations/github_copilot/skills/dr_changeset_reviewer/SKILL.md +187 -0
  340. package/dist/integrations/hash-utils.js +51 -0
  341. package/dist/integrations/hash-utils.js.map +7 -0
  342. package/dist/integrations/types.js +16 -0
  343. package/dist/integrations/types.js.map +7 -0
  344. package/dist/reports/model-layer-report-generator.js +278 -0
  345. package/dist/reports/model-layer-report-generator.js.map +7 -0
  346. package/dist/reports/model-report-data.js +57 -0
  347. package/dist/reports/model-report-data.js.map +7 -0
  348. package/dist/reports/model-report-orchestrator.js +103 -0
  349. package/dist/reports/model-report-orchestrator.js.map +7 -0
  350. package/dist/schemas/bundled/analyzers/cbm.json +595 -0
  351. package/dist/schemas/bundled/analyzers/manifest.json +9 -0
  352. package/dist/schemas/bundled/api.json +3411 -0
  353. package/dist/schemas/bundled/apm.json +2371 -0
  354. package/dist/schemas/bundled/application.json +1253 -0
  355. package/dist/schemas/bundled/base.json +1622 -0
  356. package/dist/schemas/bundled/business.json +1279 -0
  357. package/dist/schemas/bundled/data-model.json +1298 -0
  358. package/dist/schemas/bundled/data-store.json +2025 -0
  359. package/dist/schemas/bundled/manifest.json +93 -0
  360. package/dist/schemas/bundled/motivation.json +1360 -0
  361. package/dist/schemas/bundled/navigation.json +1874 -0
  362. package/dist/schemas/bundled/security.json +3488 -0
  363. package/dist/schemas/bundled/technology.json +2067 -0
  364. package/dist/schemas/bundled/testing.json +3120 -0
  365. package/dist/schemas/bundled/ux.json +3592 -0
  366. package/dist/server/schemas.js +202 -0
  367. package/dist/server/schemas.js.map +7 -0
  368. package/dist/server/server.js +1336 -252
  369. package/dist/server/server.js.map +3 -3
  370. package/dist/server/telemetry-middleware.js +22 -15
  371. package/dist/server/telemetry-middleware.js.map +2 -2
  372. package/dist/server-entry.js +65 -0
  373. package/dist/server-entry.js.map +7 -0
  374. package/dist/telemetry/config.js +89 -0
  375. package/dist/telemetry/config.js.map +7 -0
  376. package/dist/telemetry/console-interceptor.js.map +1 -1
  377. package/dist/telemetry/detect.js +24 -0
  378. package/dist/telemetry/detect.js.map +7 -0
  379. package/dist/telemetry/fetch-otlp-exporter.js +112 -0
  380. package/dist/telemetry/fetch-otlp-exporter.js.map +7 -0
  381. package/dist/telemetry/index.js +153 -3
  382. package/dist/telemetry/index.js.map +2 -2
  383. package/dist/telemetry/resilient-exporter.js +22 -8
  384. package/dist/telemetry/resilient-exporter.js.map +2 -2
  385. package/dist/telemetry/resilient-log-exporter.js +17 -8
  386. package/dist/telemetry/resilient-log-exporter.js.map +2 -2
  387. package/dist/telemetry/test-instrumentation.js.map +2 -2
  388. package/dist/types/index.js +84 -0
  389. package/dist/types/index.js.map +3 -3
  390. package/dist/types/source-reference.js +1 -0
  391. package/dist/types/source-reference.js.map +7 -0
  392. package/dist/utils/chat-logger.js +292 -0
  393. package/dist/utils/chat-logger.js.map +7 -0
  394. package/dist/utils/claude-stream.js +8 -0
  395. package/dist/utils/claude-stream.js.map +7 -0
  396. package/dist/utils/date-utils.js +7 -0
  397. package/dist/utils/date-utils.js.map +7 -0
  398. package/dist/utils/element-utils.js.map +1 -1
  399. package/dist/utils/errors.js +88 -15
  400. package/dist/utils/errors.js.map +3 -3
  401. package/dist/utils/export-python-annotations.js +82 -0
  402. package/dist/utils/export-python-annotations.js.map +7 -0
  403. package/dist/utils/file-io.js +7 -2
  404. package/dist/utils/file-io.js.map +2 -2
  405. package/dist/utils/file-lock.js +156 -0
  406. package/dist/utils/file-lock.js.map +7 -0
  407. package/dist/utils/id-generator.js +18 -0
  408. package/dist/utils/id-generator.js.map +7 -0
  409. package/dist/utils/layer-name-formatter.js +16 -0
  410. package/dist/utils/layer-name-formatter.js.map +7 -0
  411. package/dist/utils/markdown-anchor.js +7 -0
  412. package/dist/utils/markdown-anchor.js.map +7 -0
  413. package/dist/utils/markdown-link.js +12 -0
  414. package/dist/utils/markdown-link.js.map +7 -0
  415. package/dist/utils/markdown-table.js +17 -0
  416. package/dist/utils/markdown-table.js.map +7 -0
  417. package/dist/utils/mermaid-utils.js +11 -0
  418. package/dist/utils/mermaid-utils.js.map +7 -0
  419. package/dist/utils/project-paths.js.map +2 -2
  420. package/dist/utils/source-reference.js +52 -0
  421. package/dist/utils/source-reference.js.map +7 -0
  422. package/dist/utils/spec-installer.js +40 -53
  423. package/dist/utils/spec-installer.js.map +2 -2
  424. package/dist/utils/spec-version.js +5 -1
  425. package/dist/utils/spec-version.js.map +2 -2
  426. package/dist/utils/string-utils.js +12 -0
  427. package/dist/utils/string-utils.js.map +7 -0
  428. package/dist/utils/table-formatting.js +19 -0
  429. package/dist/utils/table-formatting.js.map +7 -0
  430. package/dist/validators/index.js +4 -0
  431. package/dist/validators/index.js.map +2 -2
  432. package/dist/validators/naming-validator.js +20 -23
  433. package/dist/validators/naming-validator.js.map +2 -2
  434. package/dist/validators/reference-validator.js +23 -38
  435. package/dist/validators/reference-validator.js.map +2 -2
  436. package/dist/validators/relationship-schema-validator.js +243 -0
  437. package/dist/validators/relationship-schema-validator.js.map +7 -0
  438. package/dist/validators/schema-validator.js +168 -68
  439. package/dist/validators/schema-validator.js.map +2 -2
  440. package/dist/validators/semantic-validator.js +36 -60
  441. package/dist/validators/semantic-validator.js.map +2 -2
  442. package/dist/validators/types.js.map +2 -2
  443. package/dist/validators/validation-formatter.js +159 -0
  444. package/dist/validators/validation-formatter.js.map +7 -0
  445. package/dist/validators/validator.js +24 -38
  446. package/dist/validators/validator.js.map +2 -2
  447. package/dist/viewer/README.md +139 -0
  448. package/dist/viewer/assets/main-CY0Xufuj.css +1 -0
  449. package/dist/viewer/assets/main-DtgErnwF.js +81 -0
  450. package/dist/viewer/assets/vendor-CxKvDp2x.js +17 -0
  451. package/dist/viewer/favicon.svg +11 -0
  452. package/dist/viewer/fonts/inter/Inter-Black.woff2 +0 -0
  453. package/dist/viewer/fonts/inter/Inter-Bold.woff2 +0 -0
  454. package/dist/viewer/fonts/inter/Inter-ExtraBold.woff2 +0 -0
  455. package/dist/viewer/fonts/inter/Inter-Light.woff2 +0 -0
  456. package/dist/viewer/fonts/inter/Inter-Medium.woff2 +0 -0
  457. package/dist/viewer/fonts/inter/Inter-Regular.woff2 +0 -0
  458. package/dist/viewer/fonts/inter/Inter-SemiBold.woff2 +0 -0
  459. package/dist/viewer/fonts/jetbrains-mono/JetBrainsMono-Medium.woff2 +0 -0
  460. package/dist/viewer/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2 +0 -0
  461. package/dist/viewer/fonts/jetbrains-mono/JetBrainsMono-SemiBold.woff2 +0 -0
  462. package/dist/viewer/index.html +15 -0
  463. package/dist/viewer/manifest.json +99 -0
  464. package/dist/viewer/version.json +1 -0
  465. package/package.json +42 -16
  466. package/PYTHON_CLI_PARITY.md +0 -265
  467. package/PYTHON_CLI_STRUCTURE_UPDATE.md +0 -246
  468. package/biome.json +0 -42
  469. package/bunfig.toml +0 -3
  470. package/dist/ai/claude-client.js +0 -71
  471. package/dist/ai/claude-client.js.map +0 -7
  472. package/dist/ai/context-provider.js +0 -129
  473. package/dist/ai/context-provider.js.map +0 -7
  474. package/dist/ai/tools.js +0 -231
  475. package/dist/ai/tools.js.map +0 -7
  476. package/dist/commands/migrate.js +0 -36
  477. package/dist/commands/migrate.js.map +0 -7
  478. package/dist/commands/project.js +0 -74
  479. package/dist/commands/project.js.map +0 -7
  480. package/dist/core/active-changeset.js +0 -52
  481. package/dist/core/active-changeset.js.map +0 -7
  482. package/dist/core/projection-engine.js +0 -288
  483. package/dist/core/projection-engine.js.map +0 -7
  484. package/dist/schemas/bundled/01-motivation-layer.schema.json +0 -942
  485. package/dist/schemas/bundled/02-business-layer.schema.json +0 -1293
  486. package/dist/schemas/bundled/03-security-layer.schema.json +0 -2177
  487. package/dist/schemas/bundled/04-application-layer.schema.json +0 -1328
  488. package/dist/schemas/bundled/05-technology-layer.schema.json +0 -1465
  489. package/dist/schemas/bundled/06-api-layer.schema.json +0 -1743
  490. package/dist/schemas/bundled/07-data-model-layer.schema.json +0 -1253
  491. package/dist/schemas/bundled/08-datastore-layer.schema.json +0 -892
  492. package/dist/schemas/bundled/09-ux-layer.schema.json +0 -1506
  493. package/dist/schemas/bundled/10-navigation-layer.schema.json +0 -843
  494. package/dist/schemas/bundled/11-apm-observability-layer.schema.json +0 -1430
  495. package/dist/schemas/bundled/12-testing-layer.schema.json +0 -1091
  496. package/dist/schemas/bundled/common/layer-extensions.schema.json +0 -266
  497. package/dist/schemas/bundled/common/predicates.schema.json +0 -493
  498. package/dist/schemas/bundled/common/relationships.schema.json +0 -791
  499. package/dist/schemas/bundled/common/source-references.schema.json +0 -71
  500. package/dist/schemas/bundled/link-registry.json +0 -1839
  501. package/dist/schemas/bundled/link-registry.schema.json +0 -339
  502. package/dist/schemas/bundled/relationship-catalog.json +0 -1302
  503. package/dist/schemas/bundled/relationship-type.schema.json +0 -221
  504. package/dist/utils/model-path.js +0 -22
  505. package/dist/utils/model-path.js.map +0 -7
  506. package/docs/TEST-INSTRUMENTATION.md +0 -405
  507. package/docs/telemetry.md +0 -427
  508. package/test-debug.js +0 -33
  509. package/test-special.mjs +0 -46
  510. package/test_runner.ts +0 -7
@@ -1,1506 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://example.com/schemas/09-ux-layer.schema.json",
4
- "title": "UX Layer Layer Schema",
5
- "description": "Defines user experience specifications including state management, component composition, and multi-channel interaction patterns for visual, voice, and chat interfaces.",
6
- "layerMetadata": {
7
- "layerId": "09-ux-layer",
8
- "layerName": "UX Layer",
9
- "intraLayerRelationshipSupport": true,
10
- "crossLayerRelationshipSupport": true,
11
- "relationshipCatalogVersion": "2.1.0"
12
- },
13
- "intraLayerRelationships": {
14
- "$comment": "Relationships between entities within this layer. References relationship-catalog.json by ID.",
15
- "allowed": [
16
- {
17
- "relationshipTypeId": "specialization",
18
- "sourceTypes": ["PremiumAccount", "Schema"],
19
- "targetTypes": ["Account", "Schema"],
20
- "examples": [
21
- {
22
- "source": "PremiumAccount",
23
- "target": "Account",
24
- "description": "Premium account specializes the general account concept"
25
- },
26
- {
27
- "source": "Schema",
28
- "target": "Schema",
29
- "description": "API schema specializes another via allOf/oneOf/anyOf composition",
30
- "layer": "06-api"
31
- }
32
- ]
33
- },
34
- {
35
- "relationshipTypeId": "flow",
36
- "sourceTypes": ["BusinessProcess", "CoverageRequirement", "TestCoverageTarget"],
37
- "targetTypes": ["BusinessProcess", "CoverageRequirement", "TestCaseSketch"],
38
- "examples": [
39
- {
40
- "source": "BusinessProcess",
41
- "target": "BusinessProcess",
42
- "description": "One business process flows to the next in sequence"
43
- },
44
- {
45
- "source": "TestCoverageTarget",
46
- "target": "CoverageRequirement",
47
- "description": "Target flows to requirements that specify its coverage",
48
- "layer": "12-testing"
49
- },
50
- {
51
- "source": "CoverageRequirement",
52
- "target": "TestCaseSketch",
53
- "description": "Requirement flows to sketches that implement it",
54
- "layer": "12-testing"
55
- }
56
- ]
57
- },
58
- {
59
- "relationshipTypeId": "uses",
60
- "sourceTypes": ["ApplicationComponent"],
61
- "targetTypes": ["TechnologyService"],
62
- "examples": [
63
- {
64
- "source": "ApplicationComponent",
65
- "target": "TechnologyService",
66
- "description": "Application component uses technology service"
67
- }
68
- ]
69
- },
70
- {
71
- "relationshipTypeId": "reference",
72
- "sourceTypes": ["CoverageRequirement", "DataObject", "TestCaseSketch"],
73
- "targetTypes": ["CoverageRequirement", "Schema", "TestCoverageTarget"],
74
- "examples": [
75
- {
76
- "source": "DataObject",
77
- "target": "Schema",
78
- "description": "Data object references JSON schema"
79
- },
80
- {
81
- "source": "TestCaseSketch",
82
- "target": "CoverageRequirement",
83
- "description": "Test case sketch references coverage requirement it satisfies",
84
- "layer": "12-testing"
85
- },
86
- {
87
- "source": "CoverageRequirement",
88
- "target": "TestCoverageTarget",
89
- "description": "Coverage requirement references target it covers",
90
- "layer": "12-testing"
91
- }
92
- ]
93
- },
94
- {
95
- "relationshipTypeId": "depends-on",
96
- "sourceTypes": ["ApplicationService", "TestCaseSketch"],
97
- "targetTypes": ["ContextVariation", "DataObject", "OutcomeCategory"],
98
- "examples": [
99
- {
100
- "source": "ApplicationService",
101
- "target": "DataObject",
102
- "description": "Application service depends on data object"
103
- },
104
- {
105
- "source": "TestCaseSketch",
106
- "target": "ContextVariation",
107
- "description": "Test sketch depends on context for execution environment",
108
- "layer": "12-testing"
109
- },
110
- {
111
- "source": "TestCaseSketch",
112
- "target": "OutcomeCategory",
113
- "description": "Test sketch depends on expected outcome category",
114
- "layer": "12-testing"
115
- }
116
- ]
117
- },
118
- {
119
- "relationshipTypeId": "renders",
120
- "sourceTypes": ["UIComponent"],
121
- "targetTypes": ["UIView"],
122
- "examples": [
123
- {
124
- "source": "UIComponent",
125
- "target": "UIView",
126
- "description": "Layout component renders view content"
127
- }
128
- ]
129
- },
130
- {
131
- "relationshipTypeId": "binds-to",
132
- "sourceTypes": ["UIComponent"],
133
- "targetTypes": ["DataObject"],
134
- "examples": [
135
- {
136
- "source": "UIComponent",
137
- "target": "DataObject",
138
- "description": "Form component binds to user data object"
139
- }
140
- ]
141
- },
142
- {
143
- "relationshipTypeId": "navigates-to",
144
- "sourceTypes": ["UIView"],
145
- "targetTypes": ["UIView"],
146
- "examples": [
147
- {
148
- "source": "UIView",
149
- "target": "UIView",
150
- "description": "Login view navigates to dashboard view"
151
- }
152
- ]
153
- }
154
- ]
155
- },
156
- "crossLayerRelationships": {
157
- "$comment": "Relationships to/from entities in other layers",
158
- "outgoing": [
159
- {
160
- "id": "motivation-governed-by-principles",
161
- "predicate": "governed-by-principles",
162
- "inversePredicate": "governs",
163
- "targetLayer": "01-motivation",
164
- "targetTypes": ["GovernedByPrinciple"],
165
- "sourceTypes": ["BusinessService"],
166
- "fieldPath": "motivation.governed-by-principles",
167
- "cardinality": "array",
168
- "format": "reference",
169
- "strength": "high",
170
- "required": false,
171
- "description": "BusinessService governed by Principles",
172
- "examples": [
173
- {
174
- "elementType": "BusinessService",
175
- "elementId": "order-service",
176
- "elementName": "Order Processing Service",
177
- "fieldPath": "motivation.governed-by-principles",
178
- "value": "principle-customer-first,principle-automation",
179
- "layer": "02-business"
180
- },
181
- {
182
- "elementType": "ApplicationService",
183
- "elementId": "product-service",
184
- "elementName": "product-service",
185
- "fieldPath": "motivation.governed-by-principles",
186
- "value": "principle-api-first,principle-cloud-native",
187
- "layer": "04-application"
188
- }
189
- ]
190
- },
191
- {
192
- "id": "motivation-supports-goals",
193
- "predicate": "supports-goals",
194
- "inversePredicate": "supported-by",
195
- "targetLayer": "01-motivation",
196
- "targetTypes": ["SupportsGoal"],
197
- "sourceTypes": ["BusinessService"],
198
- "fieldPath": "motivation.supports-goals",
199
- "cardinality": "array",
200
- "format": "reference",
201
- "strength": "high",
202
- "required": false,
203
- "description": "BusinessService supports Goals",
204
- "examples": [
205
- {
206
- "elementType": "BusinessService",
207
- "elementId": "order-service",
208
- "elementName": "Order Processing Service",
209
- "fieldPath": "motivation.supports-goals",
210
- "value": "goal-customer-satisfaction,goal-revenue-growth",
211
- "layer": "02-business"
212
- },
213
- {
214
- "elementType": "ApplicationService",
215
- "elementId": "product-service",
216
- "elementName": "product-service",
217
- "fieldPath": "motivation.supports-goals",
218
- "value": "goal-product-catalog-accuracy,goal-customer-satisfaction",
219
- "layer": "04-application"
220
- }
221
- ]
222
- },
223
- {
224
- "id": "security-classification",
225
- "predicate": "classification",
226
- "inversePredicate": "referenced-by",
227
- "targetLayer": "03-security",
228
- "targetTypes": ["Classification"],
229
- "sourceTypes": ["Artifact"],
230
- "fieldPath": "security.classification",
231
- "cardinality": "single",
232
- "format": "string",
233
- "strength": "low",
234
- "required": false,
235
- "description": "Links to Classification in target layer",
236
- "examples": [
237
- {
238
- "elementType": "Artifact",
239
- "elementId": "product-db",
240
- "elementName": "product-db",
241
- "fieldPath": "security.classification",
242
- "value": "internal",
243
- "layer": "05-technology"
244
- },
245
- {
246
- "elementType": "Artifact",
247
- "elementId": "customer-db",
248
- "elementName": "customer-db",
249
- "fieldPath": "security.classification",
250
- "value": "restricted",
251
- "layer": "05-technology"
252
- }
253
- ]
254
- }
255
- ],
256
- "incoming": []
257
- },
258
- "type": "object",
259
- "properties": {
260
- "ux-libraries": {
261
- "type": "array",
262
- "description": "Collection of UXLibrary entities",
263
- "items": {
264
- "$ref": "#/definitions/UXLibrary"
265
- }
266
- },
267
- "library-components": {
268
- "type": "array",
269
- "description": "Collection of LibraryComponent entities",
270
- "items": {
271
- "$ref": "#/definitions/LibraryComponent"
272
- }
273
- },
274
- "library-sub-views": {
275
- "type": "array",
276
- "description": "Collection of LibrarySubView entities",
277
- "items": {
278
- "$ref": "#/definitions/LibrarySubView"
279
- }
280
- },
281
- "state-patterns": {
282
- "type": "array",
283
- "description": "Collection of StatePattern entities",
284
- "items": {
285
- "$ref": "#/definitions/StatePattern"
286
- }
287
- },
288
- "action-patterns": {
289
- "type": "array",
290
- "description": "Collection of ActionPattern entities",
291
- "items": {
292
- "$ref": "#/definitions/ActionPattern"
293
- }
294
- },
295
- "ux-applications": {
296
- "type": "array",
297
- "description": "Collection of UXApplication entities",
298
- "items": {
299
- "$ref": "#/definitions/UXApplication"
300
- }
301
- },
302
- "ux-specs": {
303
- "type": "array",
304
- "description": "Collection of UXSpec entities",
305
- "items": {
306
- "$ref": "#/definitions/UXSpec"
307
- }
308
- },
309
- "experience-states": {
310
- "type": "array",
311
- "description": "Collection of ExperienceState entities",
312
- "items": {
313
- "$ref": "#/definitions/ExperienceState"
314
- }
315
- },
316
- "state-actions": {
317
- "type": "array",
318
- "description": "Collection of StateAction entities",
319
- "items": {
320
- "$ref": "#/definitions/StateAction"
321
- }
322
- },
323
- "state-transitions": {
324
- "type": "array",
325
- "description": "Collection of StateTransition entities",
326
- "items": {
327
- "$ref": "#/definitions/StateTransition"
328
- }
329
- },
330
- "conditions": {
331
- "type": "array",
332
- "description": "Collection of Condition entities",
333
- "items": {
334
- "$ref": "#/definitions/Condition"
335
- }
336
- },
337
- "views": {
338
- "type": "array",
339
- "description": "Collection of View entities",
340
- "items": {
341
- "$ref": "#/definitions/View"
342
- }
343
- },
344
- "sub-views": {
345
- "type": "array",
346
- "description": "Collection of SubView entities",
347
- "items": {
348
- "$ref": "#/definitions/SubView"
349
- }
350
- },
351
- "component-instances": {
352
- "type": "array",
353
- "description": "Collection of ComponentInstance entities",
354
- "items": {
355
- "$ref": "#/definitions/ComponentInstance"
356
- }
357
- },
358
- "action-components": {
359
- "type": "array",
360
- "description": "Collection of ActionComponent entities",
361
- "items": {
362
- "$ref": "#/definitions/ActionComponent"
363
- }
364
- },
365
- "validation-rules": {
366
- "type": "array",
367
- "description": "Collection of ValidationRule entities",
368
- "items": {
369
- "$ref": "#/definitions/ValidationRule"
370
- }
371
- },
372
- "layout-configs": {
373
- "type": "array",
374
- "description": "Collection of LayoutConfig entities",
375
- "items": {
376
- "$ref": "#/definitions/LayoutConfig"
377
- }
378
- },
379
- "error-configs": {
380
- "type": "array",
381
- "description": "Collection of ErrorConfig entities",
382
- "items": {
383
- "$ref": "#/definitions/ErrorConfig"
384
- }
385
- },
386
- "api-configs": {
387
- "type": "array",
388
- "description": "Collection of ApiConfig entities",
389
- "items": {
390
- "$ref": "#/definitions/ApiConfig"
391
- }
392
- },
393
- "data-configs": {
394
- "type": "array",
395
- "description": "Collection of DataConfig entities",
396
- "items": {
397
- "$ref": "#/definitions/DataConfig"
398
- }
399
- },
400
- "performance-targetses": {
401
- "type": "array",
402
- "description": "Collection of PerformanceTargets entities",
403
- "items": {
404
- "$ref": "#/definitions/PerformanceTargets"
405
- }
406
- },
407
- "component-references": {
408
- "type": "array",
409
- "description": "Collection of ComponentReference entities",
410
- "items": {
411
- "$ref": "#/definitions/ComponentReference"
412
- }
413
- },
414
- "transition-templates": {
415
- "type": "array",
416
- "description": "Collection of TransitionTemplate entities",
417
- "items": {
418
- "$ref": "#/definitions/TransitionTemplate"
419
- }
420
- },
421
- "state-action-templates": {
422
- "type": "array",
423
- "description": "Collection of StateActionTemplate entities",
424
- "items": {
425
- "$ref": "#/definitions/StateActionTemplate"
426
- }
427
- },
428
- "table-columns": {
429
- "type": "array",
430
- "description": "Collection of TableColumn entities",
431
- "items": {
432
- "$ref": "#/definitions/TableColumn"
433
- }
434
- },
435
- "chart-serieses": {
436
- "type": "array",
437
- "description": "Collection of ChartSeries entities",
438
- "items": {
439
- "$ref": "#/definitions/ChartSeries"
440
- }
441
- }
442
- },
443
- "definitions": {
444
- "ComponentType": {
445
- "type": "string",
446
- "enum": [
447
- "form-field",
448
- "table",
449
- "chart",
450
- "card",
451
- "list",
452
- "text",
453
- "image",
454
- "video",
455
- "audio",
456
- "map",
457
- "calendar",
458
- "timeline",
459
- "tree",
460
- "custom"
461
- ]
462
- },
463
- "LayoutStyle": {
464
- "type": "string",
465
- "enum": ["grid", "flex", "stack", "flow", "custom"]
466
- },
467
- "ActionType": {
468
- "type": "string",
469
- "enum": [
470
- "fetchData",
471
- "saveData",
472
- "deleteData",
473
- "validateForm",
474
- "clearForm",
475
- "showNotification",
476
- "navigateTo",
477
- "callAPI",
478
- "updateState",
479
- "computeValue"
480
- ]
481
- },
482
- "ChannelType": {
483
- "type": "string",
484
- "enum": ["visual", "voice", "chat", "sms", "multimodal"]
485
- },
486
- "DataSource": {
487
- "type": "string",
488
- "enum": [
489
- "api-response",
490
- "form-data",
491
- "route-params",
492
- "query-params",
493
- "local-storage",
494
- "constant",
495
- "computed"
496
- ]
497
- },
498
- "TriggerType": {
499
- "type": "string",
500
- "enum": ["success", "failure", "submit", "cancel", "click", "timeout", "dataReady", "custom"]
501
- },
502
- "ViewType": {
503
- "type": "string",
504
- "enum": ["form", "list", "detail", "dashboard", "wizard", "split", "conversational", "custom"]
505
- },
506
- "ActionComponentType": {
507
- "type": "string",
508
- "enum": [
509
- "button",
510
- "menu-item",
511
- "link",
512
- "voice-command",
513
- "chat-button",
514
- "sms-keyword",
515
- "custom"
516
- ]
517
- },
518
- "ButtonStyle": {
519
- "type": "string",
520
- "enum": ["primary", "secondary", "danger", "success", "warning", "ghost", "icon"]
521
- },
522
- "ValidationType": {
523
- "type": "string",
524
- "enum": [
525
- "required",
526
- "minLength",
527
- "maxLength",
528
- "pattern",
529
- "email",
530
- "url",
531
- "min",
532
- "max",
533
- "custom"
534
- ]
535
- },
536
- "LayoutType": {
537
- "type": "string",
538
- "enum": ["grid", "flex", "stack", "flow", "fixed", "absolute", "custom"]
539
- },
540
- "JustifyContent": {
541
- "type": "string",
542
- "enum": ["start", "end", "center", "space-between", "space-around", "space-evenly"]
543
- },
544
- "AlignItems": {
545
- "type": "string",
546
- "enum": ["start", "end", "center", "stretch", "baseline"]
547
- },
548
- "JustifyItems": {
549
- "type": "string",
550
- "enum": ["start", "end", "center", "stretch"]
551
- },
552
- "AlignContent": {
553
- "type": "string",
554
- "enum": ["start", "end", "center", "stretch", "space-between", "space-around"]
555
- },
556
- "NotificationType": {
557
- "type": "string",
558
- "enum": ["toast", "alert", "inline", "banner", "none"]
559
- },
560
- "HttpMethod": {
561
- "type": "string",
562
- "enum": ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]
563
- },
564
- "CacheStrategy": {
565
- "type": "string",
566
- "enum": ["no-cache", "cache-first", "network-first", "stale-while-revalidate"]
567
- },
568
- "AnimationType": {
569
- "type": "string",
570
- "enum": ["fade", "slide", "scale", "none"]
571
- },
572
- "ColumnDisplayType": {
573
- "type": "string",
574
- "enum": [
575
- "text",
576
- "number",
577
- "currency",
578
- "date",
579
- "datetime",
580
- "boolean",
581
- "badge",
582
- "link",
583
- "image",
584
- "avatar",
585
- "actions",
586
- "custom"
587
- ]
588
- },
589
- "TextAlign": {
590
- "type": "string",
591
- "enum": ["left", "center", "right"]
592
- },
593
- "SortDirection": {
594
- "type": "string",
595
- "enum": ["asc", "desc"]
596
- },
597
- "FilterType": {
598
- "type": "string",
599
- "enum": ["text", "select", "multiselect", "date", "daterange", "number", "boolean"]
600
- },
601
- "StickyPosition": {
602
- "type": "string",
603
- "enum": ["left", "right", "none"]
604
- },
605
- "SeriesType": {
606
- "type": "string",
607
- "enum": [
608
- "line",
609
- "area",
610
- "bar",
611
- "column",
612
- "pie",
613
- "donut",
614
- "scatter",
615
- "bubble",
616
- "radar",
617
- "heatmap"
618
- ]
619
- },
620
- "LineStyle": {
621
- "type": "string",
622
- "enum": ["solid", "dashed", "dotted"]
623
- },
624
- "LabelPosition": {
625
- "type": "string",
626
- "enum": ["inside", "outside", "center", "top", "bottom"]
627
- },
628
- "UXLibrary": {
629
- "type": "object",
630
- "description": "Collection of reusable UI components and sub-views that can be shared across applications",
631
- "required": ["id", "name", "version"],
632
- "properties": {
633
- "id": {
634
- "type": "string",
635
- "format": "uuid",
636
- "minLength": 1
637
- },
638
- "name": {
639
- "type": "string",
640
- "minLength": 1
641
- },
642
- "version": {
643
- "type": "string",
644
- "minLength": 1
645
- },
646
- "description": {
647
- "type": "string",
648
- "minLength": 1
649
- },
650
- "author": {
651
- "type": "string",
652
- "minLength": 1
653
- },
654
- "license": {
655
- "type": "string",
656
- "minLength": 1
657
- },
658
- "components": {
659
- "type": "array",
660
- "description": "Contains relationship",
661
- "items": {
662
- "type": "string"
663
- }
664
- },
665
- "subViews": {
666
- "type": "array",
667
- "description": "Contains relationship",
668
- "items": {
669
- "type": "string"
670
- }
671
- },
672
- "statePatterns": {
673
- "type": "array",
674
- "description": "Contains relationship",
675
- "items": {
676
- "type": "string"
677
- }
678
- },
679
- "actionPatterns": {
680
- "type": "array",
681
- "description": "Contains relationship",
682
- "items": {
683
- "type": "string"
684
- }
685
- }
686
- }
687
- },
688
- "LibraryComponent": {
689
- "type": "object",
690
- "description": "Reusable UI component definition that can be instantiated in multiple UXSpecs",
691
- "required": ["id", "name", "type"],
692
- "properties": {
693
- "id": {
694
- "type": "string",
695
- "format": "uuid",
696
- "minLength": 1
697
- },
698
- "name": {
699
- "type": "string",
700
- "minLength": 1
701
- },
702
- "type": {
703
- "$ref": "#/definitions/ComponentType"
704
- },
705
- "label": {
706
- "type": "string",
707
- "minLength": 1
708
- },
709
- "description": {
710
- "type": "string",
711
- "minLength": 1
712
- },
713
- "category": {
714
- "type": "string",
715
- "minLength": 1
716
- },
717
- "source": {
718
- "type": "object",
719
- "description": "Source code reference",
720
- "properties": {
721
- "reference": {
722
- "$ref": "common/source-references.schema.json#/definitions/SourceReference"
723
- }
724
- }
725
- }
726
- }
727
- },
728
- "LibrarySubView": {
729
- "type": "object",
730
- "description": "Reusable grouping of components that can be composed into views",
731
- "required": ["id", "name"],
732
- "properties": {
733
- "id": {
734
- "type": "string",
735
- "format": "uuid",
736
- "minLength": 1
737
- },
738
- "name": {
739
- "type": "string",
740
- "minLength": 1
741
- },
742
- "title": {
743
- "type": "string",
744
- "minLength": 1
745
- },
746
- "description": {
747
- "type": "string",
748
- "minLength": 1
749
- },
750
- "category": {
751
- "type": "string",
752
- "minLength": 1
753
- }
754
- }
755
- },
756
- "StatePattern": {
757
- "type": "object",
758
- "description": "Reusable state machine pattern for common UX flows",
759
- "required": ["id", "name"],
760
- "properties": {
761
- "id": {
762
- "type": "string",
763
- "format": "uuid",
764
- "minLength": 1
765
- },
766
- "name": {
767
- "type": "string",
768
- "minLength": 1
769
- },
770
- "description": {
771
- "type": "string",
772
- "minLength": 1
773
- },
774
- "category": {
775
- "type": "string",
776
- "minLength": 1
777
- }
778
- }
779
- },
780
- "ActionPattern": {
781
- "type": "object",
782
- "description": "Reusable action configuration for common user interactions",
783
- "required": ["id", "name"],
784
- "properties": {
785
- "id": {
786
- "type": "string",
787
- "format": "uuid",
788
- "minLength": 1
789
- },
790
- "name": {
791
- "type": "string",
792
- "minLength": 1
793
- },
794
- "description": {
795
- "type": "string",
796
- "minLength": 1
797
- },
798
- "category": {
799
- "type": "string",
800
- "minLength": 1
801
- }
802
- }
803
- },
804
- "UXApplication": {
805
- "type": "object",
806
- "description": "Application-level UX configuration that groups UXSpecs and defines shared settings",
807
- "required": ["id", "name", "channel"],
808
- "properties": {
809
- "id": {
810
- "type": "string",
811
- "format": "uuid",
812
- "minLength": 1
813
- },
814
- "name": {
815
- "type": "string",
816
- "minLength": 1
817
- },
818
- "version": {
819
- "type": "string",
820
- "minLength": 1
821
- },
822
- "description": {
823
- "type": "string",
824
- "minLength": 1
825
- },
826
- "channel": {
827
- "$ref": "#/definitions/ChannelType"
828
- },
829
- "experiences": {
830
- "type": "array",
831
- "description": "Contains relationship",
832
- "items": {
833
- "type": "string"
834
- }
835
- }
836
- }
837
- },
838
- "UXSpec": {
839
- "type": "object",
840
- "description": "Complete UX specification for a single experience (visual, voice, chat, SMS)",
841
- "required": ["id", "name"],
842
- "properties": {
843
- "id": {
844
- "type": "string",
845
- "format": "uuid",
846
- "minLength": 1
847
- },
848
- "name": {
849
- "type": "string",
850
- "minLength": 1
851
- },
852
- "version": {
853
- "type": "string",
854
- "minLength": 1
855
- },
856
- "experience": {
857
- "type": "string",
858
- "minLength": 1
859
- },
860
- "title": {
861
- "type": "string",
862
- "minLength": 1
863
- },
864
- "description": {
865
- "type": "string",
866
- "minLength": 1
867
- },
868
- "source": {
869
- "type": "object",
870
- "description": "Source code reference",
871
- "properties": {
872
- "reference": {
873
- "$ref": "common/source-references.schema.json#/definitions/SourceReference"
874
- }
875
- }
876
- }
877
- }
878
- },
879
- "ExperienceState": {
880
- "type": "object",
881
- "description": "Distinct state that the experience can be in (works across all channels)",
882
- "required": ["id", "name"],
883
- "properties": {
884
- "id": {
885
- "type": "string",
886
- "format": "uuid",
887
- "minLength": 1
888
- },
889
- "name": {
890
- "type": "string",
891
- "minLength": 1
892
- },
893
- "initial": {
894
- "type": "boolean"
895
- },
896
- "description": {
897
- "type": "string",
898
- "minLength": 1
899
- },
900
- "channel": {
901
- "type": "string",
902
- "minLength": 1
903
- },
904
- "onEnter": {
905
- "type": "array",
906
- "description": "Contains relationship",
907
- "items": {
908
- "type": "string"
909
- }
910
- },
911
- "onExit": {
912
- "type": "array",
913
- "description": "Contains relationship",
914
- "items": {
915
- "type": "string"
916
- }
917
- },
918
- "transitions": {
919
- "type": "array",
920
- "description": "Contains relationship",
921
- "items": {
922
- "type": "string"
923
- }
924
- },
925
- "enabledComponents": {
926
- "type": "array",
927
- "description": "Contains relationship",
928
- "items": {
929
- "type": "string"
930
- }
931
- },
932
- "disabledComponents": {
933
- "type": "array",
934
- "description": "Contains relationship",
935
- "items": {
936
- "type": "string"
937
- }
938
- },
939
- "hiddenComponents": {
940
- "type": "array",
941
- "description": "Contains relationship",
942
- "items": {
943
- "type": "string"
944
- }
945
- }
946
- }
947
- },
948
- "StateAction": {
949
- "type": "object",
950
- "description": "Action executed during state lifecycle",
951
- "required": ["id", "name", "action"],
952
- "properties": {
953
- "id": {
954
- "type": "string",
955
- "format": "uuid",
956
- "minLength": 1
957
- },
958
- "name": {
959
- "type": "string",
960
- "minLength": 1
961
- },
962
- "action": {
963
- "$ref": "#/definitions/ActionType"
964
- },
965
- "description": {
966
- "type": "string",
967
- "minLength": 1
968
- }
969
- }
970
- },
971
- "StateTransition": {
972
- "type": "object",
973
- "description": "Transition from current state to another state",
974
- "required": ["id", "name", "trigger"],
975
- "properties": {
976
- "id": {
977
- "type": "string",
978
- "format": "uuid",
979
- "minLength": 1
980
- },
981
- "name": {
982
- "type": "string",
983
- "minLength": 1
984
- },
985
- "to": {
986
- "type": "string",
987
- "minLength": 1
988
- },
989
- "trigger": {
990
- "$ref": "#/definitions/TriggerType"
991
- },
992
- "description": {
993
- "type": "string",
994
- "minLength": 1
995
- },
996
- "actions": {
997
- "type": "array",
998
- "description": "Contains relationship",
999
- "items": {
1000
- "type": "string"
1001
- }
1002
- }
1003
- }
1004
- },
1005
- "Condition": {
1006
- "type": "object",
1007
- "description": "Boolean expression for guard conditions",
1008
- "required": ["id", "name"],
1009
- "properties": {
1010
- "id": {
1011
- "type": "string",
1012
- "format": "uuid",
1013
- "minLength": 1
1014
- },
1015
- "name": {
1016
- "type": "string",
1017
- "minLength": 1
1018
- },
1019
- "expression": {
1020
- "type": "string",
1021
- "minLength": 1
1022
- }
1023
- }
1024
- },
1025
- "View": {
1026
- "type": "object",
1027
- "description": "Routable grouping of components (a complete user experience)",
1028
- "required": ["id", "name", "type"],
1029
- "properties": {
1030
- "id": {
1031
- "type": "string",
1032
- "format": "uuid",
1033
- "minLength": 1
1034
- },
1035
- "name": {
1036
- "type": "string",
1037
- "minLength": 1
1038
- },
1039
- "type": {
1040
- "$ref": "#/definitions/ViewType"
1041
- },
1042
- "title": {
1043
- "type": "string",
1044
- "minLength": 1
1045
- },
1046
- "description": {
1047
- "type": "string",
1048
- "minLength": 1
1049
- },
1050
- "routable": {
1051
- "type": "boolean"
1052
- },
1053
- "layout": {
1054
- "type": "string",
1055
- "minLength": 1
1056
- },
1057
- "subViews": {
1058
- "type": "array",
1059
- "description": "Contains relationship",
1060
- "items": {
1061
- "type": "string"
1062
- }
1063
- },
1064
- "components": {
1065
- "type": "array",
1066
- "description": "Contains relationship",
1067
- "items": {
1068
- "type": "string"
1069
- }
1070
- },
1071
- "actions": {
1072
- "type": "array",
1073
- "description": "Contains relationship",
1074
- "items": {
1075
- "type": "string"
1076
- }
1077
- },
1078
- "source": {
1079
- "type": "object",
1080
- "description": "Source code reference",
1081
- "properties": {
1082
- "reference": {
1083
- "$ref": "common/source-references.schema.json#/definitions/SourceReference"
1084
- }
1085
- }
1086
- }
1087
- }
1088
- },
1089
- "SubView": {
1090
- "type": "object",
1091
- "description": "Instance of a LibrarySubView or custom sub-view definition",
1092
- "required": ["id", "name"],
1093
- "properties": {
1094
- "id": {
1095
- "type": "string",
1096
- "format": "uuid",
1097
- "minLength": 1
1098
- },
1099
- "name": {
1100
- "type": "string",
1101
- "minLength": 1
1102
- },
1103
- "title": {
1104
- "type": "string",
1105
- "minLength": 1
1106
- },
1107
- "description": {
1108
- "type": "string",
1109
- "minLength": 1
1110
- },
1111
- "order": {
1112
- "type": "integer"
1113
- }
1114
- }
1115
- },
1116
- "ComponentInstance": {
1117
- "type": "object",
1118
- "description": "Instance of a LibraryComponent with application-specific configuration",
1119
- "required": ["id", "name"],
1120
- "properties": {
1121
- "id": {
1122
- "type": "string",
1123
- "format": "uuid",
1124
- "minLength": 1
1125
- },
1126
- "name": {
1127
- "type": "string",
1128
- "minLength": 1
1129
- },
1130
- "order": {
1131
- "type": "integer"
1132
- }
1133
- }
1134
- },
1135
- "ActionComponent": {
1136
- "type": "object",
1137
- "description": "Interactive element that triggers actions (button, menu, link, voice command)",
1138
- "required": ["id", "name", "type"],
1139
- "properties": {
1140
- "id": {
1141
- "type": "string",
1142
- "format": "uuid",
1143
- "minLength": 1
1144
- },
1145
- "name": {
1146
- "type": "string",
1147
- "minLength": 1
1148
- },
1149
- "label": {
1150
- "type": "string",
1151
- "minLength": 1
1152
- },
1153
- "type": {
1154
- "$ref": "#/definitions/ActionComponentType"
1155
- },
1156
- "icon": {
1157
- "type": "string",
1158
- "minLength": 1
1159
- },
1160
- "disabled": {
1161
- "type": "boolean"
1162
- },
1163
- "tooltip": {
1164
- "type": "string",
1165
- "minLength": 1
1166
- },
1167
- "channel": {
1168
- "type": "string",
1169
- "minLength": 1
1170
- },
1171
- "children": {
1172
- "type": "array",
1173
- "description": "Contains relationship",
1174
- "items": {
1175
- "type": "string"
1176
- }
1177
- }
1178
- }
1179
- },
1180
- "ValidationRule": {
1181
- "type": "object",
1182
- "description": "Client-side validation rule for a field",
1183
- "required": ["id", "name", "type"],
1184
- "properties": {
1185
- "id": {
1186
- "type": "string",
1187
- "format": "uuid",
1188
- "minLength": 1
1189
- },
1190
- "name": {
1191
- "type": "string",
1192
- "minLength": 1
1193
- },
1194
- "type": {
1195
- "$ref": "#/definitions/ValidationType"
1196
- },
1197
- "message": {
1198
- "type": "string",
1199
- "minLength": 1
1200
- },
1201
- "value": {
1202
- "type": "string",
1203
- "minLength": 1
1204
- }
1205
- }
1206
- },
1207
- "LayoutConfig": {
1208
- "type": "object",
1209
- "description": "Configuration for UI layout structure, defining grid systems, responsive breakpoints, spacing rules, and component arrangement patterns. Controls visual organization of the interface.",
1210
- "required": ["id", "name", "type"],
1211
- "properties": {
1212
- "id": {
1213
- "type": "string",
1214
- "format": "uuid",
1215
- "minLength": 1
1216
- },
1217
- "name": {
1218
- "type": "string",
1219
- "minLength": 1
1220
- },
1221
- "type": {
1222
- "$ref": "#/definitions/LayoutType"
1223
- },
1224
- "columns": {
1225
- "type": "integer"
1226
- },
1227
- "rows": {
1228
- "type": "integer"
1229
- },
1230
- "gap": {
1231
- "type": "string",
1232
- "minLength": 1
1233
- },
1234
- "rowGap": {
1235
- "type": "string",
1236
- "minLength": 1
1237
- },
1238
- "columnGap": {
1239
- "type": "string",
1240
- "minLength": 1
1241
- },
1242
- "padding": {
1243
- "type": "string",
1244
- "minLength": 1
1245
- },
1246
- "margin": {
1247
- "type": "string",
1248
- "minLength": 1
1249
- },
1250
- "maxWidth": {
1251
- "type": "string",
1252
- "minLength": 1
1253
- }
1254
- }
1255
- },
1256
- "ErrorConfig": {
1257
- "type": "object",
1258
- "description": "Configuration for error handling and display within UI components, specifying error message formats, retry behavior, fallback content, and user guidance. Ensures consistent error UX.",
1259
- "required": ["id", "name"],
1260
- "properties": {
1261
- "id": {
1262
- "type": "string",
1263
- "format": "uuid",
1264
- "minLength": 1
1265
- },
1266
- "name": {
1267
- "type": "string",
1268
- "minLength": 1
1269
- },
1270
- "showNotification": {
1271
- "type": "boolean"
1272
- },
1273
- "notificationType": {
1274
- "$ref": "#/definitions/NotificationType"
1275
- },
1276
- "errorMessage": {
1277
- "type": "string",
1278
- "minLength": 1
1279
- },
1280
- "defaultErrorMessage": {
1281
- "type": "string",
1282
- "minLength": 1
1283
- }
1284
- }
1285
- },
1286
- "ApiConfig": {
1287
- "type": "object",
1288
- "description": "Configuration for API integration within UI components, specifying endpoints, request/response mapping, authentication, and caching strategies. Connects UI to backend services.",
1289
- "required": ["id", "name", "operationId", "method", "endpoint", "baseUrl"],
1290
- "properties": {
1291
- "id": {
1292
- "type": "string",
1293
- "format": "uuid",
1294
- "minLength": 1
1295
- },
1296
- "name": {
1297
- "type": "string",
1298
- "minLength": 1
1299
- },
1300
- "operationId": {
1301
- "type": "string",
1302
- "minLength": 1
1303
- },
1304
- "method": {
1305
- "$ref": "#/definitions/HttpMethod"
1306
- },
1307
- "endpoint": {
1308
- "type": "string",
1309
- "minLength": 1
1310
- },
1311
- "baseUrl": {
1312
- "type": "string",
1313
- "minLength": 1
1314
- }
1315
- }
1316
- },
1317
- "DataConfig": {
1318
- "type": "object",
1319
- "description": "Configuration for data binding and state management within UI components, defining data sources, transformation pipelines, and update triggers. Manages component data flow.",
1320
- "required": ["id", "name", "source", "target"],
1321
- "properties": {
1322
- "id": {
1323
- "type": "string",
1324
- "format": "uuid",
1325
- "minLength": 1
1326
- },
1327
- "name": {
1328
- "type": "string",
1329
- "minLength": 1
1330
- },
1331
- "source": {
1332
- "$ref": "#/definitions/DataSource"
1333
- },
1334
- "target": {
1335
- "type": "string",
1336
- "minLength": 1
1337
- },
1338
- "path": {
1339
- "type": "string",
1340
- "minLength": 1
1341
- }
1342
- }
1343
- },
1344
- "PerformanceTargets": {
1345
- "type": "object",
1346
- "description": "Defines performance SLAs for UI components including load time, interaction responsiveness, and rendering thresholds. Enables performance monitoring and optimization.",
1347
- "required": ["id", "name"],
1348
- "properties": {
1349
- "id": {
1350
- "type": "string",
1351
- "format": "uuid",
1352
- "minLength": 1
1353
- },
1354
- "name": {
1355
- "type": "string",
1356
- "minLength": 1
1357
- }
1358
- }
1359
- },
1360
- "ComponentReference": {
1361
- "type": "object",
1362
- "description": "A reference to another UI component that can be embedded or composed within a parent component. Enables component reuse and modular UI architecture.",
1363
- "required": ["id", "name", "ref"],
1364
- "properties": {
1365
- "id": {
1366
- "type": "string",
1367
- "format": "uuid",
1368
- "minLength": 1
1369
- },
1370
- "name": {
1371
- "type": "string",
1372
- "minLength": 1
1373
- },
1374
- "ref": {
1375
- "type": "string",
1376
- "minLength": 1
1377
- },
1378
- "variant": {
1379
- "type": "string",
1380
- "minLength": 1
1381
- },
1382
- "slot": {
1383
- "type": "string",
1384
- "minLength": 1
1385
- }
1386
- }
1387
- },
1388
- "TransitionTemplate": {
1389
- "type": "object",
1390
- "description": "Defines reusable animation and transition patterns for state changes, page navigation, or component lifecycle events. Ensures consistent motion design across the application.",
1391
- "required": ["id", "name", "to", "trigger"],
1392
- "properties": {
1393
- "id": {
1394
- "type": "string",
1395
- "format": "uuid",
1396
- "minLength": 1
1397
- },
1398
- "name": {
1399
- "type": "string",
1400
- "minLength": 1
1401
- },
1402
- "to": {
1403
- "type": "string",
1404
- "minLength": 1
1405
- },
1406
- "trigger": {
1407
- "$ref": "#/definitions/TriggerType"
1408
- },
1409
- "description": {
1410
- "type": "string",
1411
- "minLength": 1
1412
- }
1413
- }
1414
- },
1415
- "StateActionTemplate": {
1416
- "type": "object",
1417
- "description": "A reusable template defining actions to execute during component state transitions. Enables standardized behavior patterns for common state changes.",
1418
- "required": ["id", "name", "action"],
1419
- "properties": {
1420
- "id": {
1421
- "type": "string",
1422
- "format": "uuid",
1423
- "minLength": 1
1424
- },
1425
- "name": {
1426
- "type": "string",
1427
- "minLength": 1
1428
- },
1429
- "action": {
1430
- "$ref": "#/definitions/ActionType"
1431
- },
1432
- "description": {
1433
- "type": "string",
1434
- "minLength": 1
1435
- }
1436
- }
1437
- },
1438
- "TableColumn": {
1439
- "type": "object",
1440
- "description": "Configuration for a single column within a data table component, specifying header, data binding, sorting, filtering, and rendering options. Defines table structure and behavior.",
1441
- "required": ["id", "name", "header", "field"],
1442
- "properties": {
1443
- "id": {
1444
- "type": "string",
1445
- "format": "uuid",
1446
- "minLength": 1
1447
- },
1448
- "name": {
1449
- "type": "string",
1450
- "minLength": 1
1451
- },
1452
- "header": {
1453
- "type": "string",
1454
- "minLength": 1
1455
- },
1456
- "field": {
1457
- "type": "string",
1458
- "minLength": 1
1459
- },
1460
- "width": {
1461
- "type": "string",
1462
- "minLength": 1
1463
- },
1464
- "minWidth": {
1465
- "type": "string",
1466
- "minLength": 1
1467
- },
1468
- "maxWidth": {
1469
- "type": "string",
1470
- "minLength": 1
1471
- }
1472
- }
1473
- },
1474
- "ChartSeries": {
1475
- "type": "object",
1476
- "description": "Configuration for a data series within a chart component, specifying data source, visualization type, colors, and legend properties. Defines how data is visualized in charts.",
1477
- "required": ["id", "name", "label", "dataField"],
1478
- "properties": {
1479
- "id": {
1480
- "type": "string",
1481
- "format": "uuid",
1482
- "minLength": 1
1483
- },
1484
- "name": {
1485
- "type": "string",
1486
- "minLength": 1
1487
- },
1488
- "label": {
1489
- "type": "string",
1490
- "minLength": 1
1491
- },
1492
- "type": {
1493
- "$ref": "#/definitions/SeriesType"
1494
- },
1495
- "dataField": {
1496
- "type": "string",
1497
- "minLength": 1
1498
- },
1499
- "categoryField": {
1500
- "type": "string",
1501
- "minLength": 1
1502
- }
1503
- }
1504
- }
1505
- }
1506
- }