@eventcatalog/core 4.12.3 → 5.0.0-beta.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 (267) hide show
  1. package/LICENSE +226 -95
  2. package/NOTICE +30 -0
  3. package/README.md +3 -2
  4. package/dist/analytics/analytics.cjs +1 -1
  5. package/dist/analytics/analytics.js +2 -2
  6. package/dist/analytics/log-build.cjs +43 -16
  7. package/dist/analytics/log-build.d.cts +6 -5
  8. package/dist/analytics/log-build.d.ts +6 -5
  9. package/dist/analytics/log-build.js +4 -3
  10. package/dist/{chunk-U4YJSTGV.js → chunk-AYNZXUB5.js} +2 -10
  11. package/dist/{chunk-TV3YAWKQ.js → chunk-CR6AK5LR.js} +1 -1
  12. package/dist/{chunk-M577VUOX.js → chunk-LR7AGRHN.js} +13 -16
  13. package/dist/chunk-TQLRG35T.js +203 -0
  14. package/dist/{chunk-HPC6KUDQ.js → chunk-TWN43V4T.js} +1 -1
  15. package/dist/{chunk-ZYTCBNB3.js → chunk-WAIADKQE.js} +1 -1
  16. package/dist/{chunk-5BPN6QEC.js → chunk-ZHKEARLJ.js} +1 -1
  17. package/dist/constants.cjs +1 -1
  18. package/dist/constants.js +1 -1
  19. package/dist/eventcatalog.cjs +407 -291
  20. package/dist/eventcatalog.config.d.cts +2 -3
  21. package/dist/eventcatalog.config.d.ts +2 -3
  22. package/dist/eventcatalog.js +35 -98
  23. package/dist/federation/content-cache.d.cts +0 -5
  24. package/dist/federation/content-cache.d.ts +0 -5
  25. package/dist/federation/diagnostics.d.cts +0 -5
  26. package/dist/federation/diagnostics.d.ts +0 -5
  27. package/dist/federation/federate.cjs +0 -9
  28. package/dist/federation/federate.d.cts +0 -5
  29. package/dist/federation/federate.d.ts +0 -5
  30. package/dist/federation/federate.js +4 -5
  31. package/dist/federation/filesystem-source-provider.d.cts +0 -5
  32. package/dist/federation/filesystem-source-provider.d.ts +0 -5
  33. package/dist/federation/github-source-provider.d.cts +0 -5
  34. package/dist/federation/github-source-provider.d.ts +0 -5
  35. package/dist/federation/output-transaction.d.cts +0 -4
  36. package/dist/federation/output-transaction.d.ts +0 -4
  37. package/dist/federation/public-assets.d.cts +0 -5
  38. package/dist/federation/public-assets.d.ts +0 -5
  39. package/dist/federation/source-provider.d.cts +0 -5
  40. package/dist/federation/source-provider.d.ts +0 -5
  41. package/dist/federation/types.d.cts +0 -5
  42. package/dist/federation/types.d.ts +0 -5
  43. package/dist/generate.cjs +1 -1
  44. package/dist/generate.js +3 -3
  45. package/dist/license-C1y-56bb.d.cts +23 -0
  46. package/dist/license-C1y-56bb.d.ts +23 -0
  47. package/dist/runtime-dependencies/@eventcatalog__visualiser__layout.mjs +3 -0
  48. package/dist/runtime-dependencies/@modelcontextprotocol__ext-apps.mjs +3 -0
  49. package/dist/runtime-dependencies/@modelcontextprotocol__ext-apps__react.mjs +3 -0
  50. package/dist/runtime-dependencies/@modelcontextprotocol__ext-apps__server.mjs +3 -0
  51. package/dist/runtime-dependencies/@modelcontextprotocol__sdk__types.js.mjs +3 -0
  52. package/dist/runtime-dependencies/manifest.json +12 -1
  53. package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__languages__prism__graphql.mjs +3 -0
  54. package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__languages__prism__json.mjs +3 -0
  55. package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__languages__prism__markup.mjs +3 -0
  56. package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__languages__prism__protobuf.mjs +3 -0
  57. package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__languages__prism__yaml.mjs +3 -0
  58. package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__styles__prism__one-dark.mjs +3 -0
  59. package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__styles__prism__one-light.mjs +3 -0
  60. package/dist/utils/cli-logger.cjs +1 -1
  61. package/dist/utils/cli-logger.js +2 -2
  62. package/dist/utils/license-status.cjs +240 -0
  63. package/dist/utils/license-status.d.cts +28 -0
  64. package/dist/utils/license-status.d.ts +28 -0
  65. package/dist/utils/license-status.js +12 -0
  66. package/eventcatalog/astro.config.mjs +1 -1
  67. package/eventcatalog/integrations/eventcatalog-runtime.mjs +1 -1
  68. package/eventcatalog/src/components/ChatPanel/ChatPanel.tsx +29 -19
  69. package/eventcatalog/src/components/ChatPanel/OfflineReply.tsx +74 -0
  70. package/eventcatalog/src/components/FieldsExplorer/FieldFilters.tsx +24 -28
  71. package/eventcatalog/src/components/FieldsExplorer/FieldNodeGraph.tsx +16 -11
  72. package/eventcatalog/src/components/FieldsExplorer/FieldsExplorer.tsx +4 -218
  73. package/eventcatalog/src/components/FieldsExplorer/FieldsTable.tsx +27 -36
  74. package/eventcatalog/src/components/Header.astro +43 -58
  75. package/eventcatalog/src/components/Lists/PillListFlat.styles.css +17 -17
  76. package/eventcatalog/src/components/MDX/EntityMap/EntityMap.astro +1 -1
  77. package/eventcatalog/src/components/MDX/Flow/Flow.astro +4 -0
  78. package/eventcatalog/src/components/MDX/NodeGraph/AstroNodeGraph.tsx +14 -0
  79. package/eventcatalog/src/components/MDX/NodeGraph/NodeGraph.astro +49 -18
  80. package/eventcatalog/src/components/MDX/RemoteFile.astro +2 -24
  81. package/eventcatalog/src/components/SchemaExplorer/ApiAccessSection.tsx +59 -93
  82. package/eventcatalog/src/components/SchemaExplorer/ApiContentViewer.tsx +1 -32
  83. package/eventcatalog/src/components/SchemaExplorer/DiffViewer.tsx +20 -67
  84. package/eventcatalog/src/components/SchemaExplorer/SchemaContentViewer.tsx +2 -11
  85. package/eventcatalog/src/components/SchemaExplorer/SchemaDetailsPanel.tsx +11 -60
  86. package/eventcatalog/src/components/SchemaExplorer/SchemaExplorer.tsx +1 -3
  87. package/eventcatalog/src/components/SchemaExplorer/SchemaPageViewer.tsx +0 -3
  88. package/eventcatalog/src/components/SchemaExplorer/VersionHistoryModal.tsx +2 -9
  89. package/eventcatalog/src/components/SchemaExplorer/parse-schema.ts +46 -0
  90. package/eventcatalog/src/components/SchemaExplorer/utils.ts +11 -0
  91. package/eventcatalog/src/components/Settings/AssistantSettingsForm.tsx +2 -9
  92. package/eventcatalog/src/components/Settings/LicenseSettings.tsx +288 -0
  93. package/eventcatalog/src/components/Settings/LlmAccessSettingsForm.tsx +3 -19
  94. package/eventcatalog/src/components/Settings/McpSettingsForm.tsx +85 -30
  95. package/eventcatalog/src/components/Settings/SettingsShared.tsx +7 -75
  96. package/eventcatalog/src/components/SideNav/CustomDocsNav.astro +2 -2
  97. package/eventcatalog/src/components/TrialBadge.astro +82 -0
  98. package/eventcatalog/src/content.config.ts +9 -96
  99. package/eventcatalog/src/{enterprise → features}/ai/chat-api.ts +22 -34
  100. package/eventcatalog/src/{enterprise → features}/analytics/adapters/ga4.ts +0 -5
  101. package/eventcatalog/src/{enterprise → features}/analytics/adapters/gtm.ts +0 -5
  102. package/eventcatalog/src/{enterprise → features}/analytics/adapters/posthog.ts +0 -5
  103. package/eventcatalog/src/{enterprise → features}/analytics/components/AnalyticsHead.astro +2 -4
  104. package/eventcatalog/src/{enterprise → features}/analytics/components/AnalyticsTracker.astro +2 -4
  105. package/eventcatalog/src/{enterprise → features}/analytics/tracker.ts +0 -5
  106. package/eventcatalog/src/{enterprise → features}/api/catalog.ts +0 -5
  107. package/eventcatalog/src/{enterprise → features}/auth/[...auth].ts +0 -5
  108. package/eventcatalog/src/{enterprise → features}/auth/middleware/middleware-auth.ts +0 -5
  109. package/eventcatalog/src/{enterprise → features}/auth/middleware/middleware.ts +0 -5
  110. package/eventcatalog/src/{enterprise → features}/collections/custom-pages.ts +0 -5
  111. package/eventcatalog/src/{enterprise → features}/collections/index.ts +0 -5
  112. package/eventcatalog/src/{enterprise → features}/collections/resource-docs.ts +0 -5
  113. package/eventcatalog/src/{enterprise → features}/custom-documentation/collection.ts +0 -5
  114. package/eventcatalog/src/features/custom-documentation/components/CustomDocsNav/CustomDocsNav.astro +9 -0
  115. package/eventcatalog/src/{enterprise → features}/custom-documentation/components/CustomDocsNav/CustomDocsNavWrapper.tsx +0 -5
  116. package/eventcatalog/src/{enterprise → features}/custom-documentation/components/CustomDocsNav/components/NestedItem.tsx +1 -6
  117. package/eventcatalog/src/{enterprise → features}/custom-documentation/components/CustomDocsNav/components/NoResultsFound.tsx +0 -5
  118. package/eventcatalog/src/{enterprise → features}/custom-documentation/components/CustomDocsNav/index.tsx +1 -6
  119. package/eventcatalog/src/{enterprise → features}/custom-documentation/components/CustomDocsNav/types.ts +0 -5
  120. package/eventcatalog/src/{enterprise/custom-documentation/pages/docs/custom/index.astro → features/custom-documentation/components/CustomDocumentationPage.astro} +5 -5
  121. package/eventcatalog/src/{enterprise → features}/custom-documentation/utils/badge-styles.ts +0 -5
  122. package/eventcatalog/src/{enterprise → features}/custom-documentation/utils/custom-docs.ts +1 -6
  123. package/eventcatalog/src/{enterprise → features}/custom-documentation/utils/docs-search.ts +0 -5
  124. package/eventcatalog/src/{enterprise → features}/custom-pages/routes.ts +0 -5
  125. package/eventcatalog/src/{enterprise → features}/directory/user-team-directory.ts +0 -5
  126. package/eventcatalog/src/{enterprise → features}/fields/field-extractor.ts +0 -5
  127. package/eventcatalog/src/{enterprise → features}/fields/field-indexer.ts +0 -5
  128. package/eventcatalog/src/{enterprise → features}/fields/fields-db.ts +0 -5
  129. package/eventcatalog/src/{enterprise → features}/fields/pages/api/fields.ts +1 -6
  130. package/eventcatalog/src/{enterprise → features}/fields/pages/fields.astro +1 -2
  131. package/eventcatalog/src/{enterprise → features}/integrations/eventcatalog-features.ts +17 -75
  132. package/eventcatalog/src/features/mcp/apps/architecture-diagram/links.ts +59 -0
  133. package/eventcatalog/src/features/mcp/apps/architecture-diagram/node-chat.tsx +299 -0
  134. package/eventcatalog/src/features/mcp/apps/architecture-diagram/shared.ts +14 -0
  135. package/eventcatalog/src/features/mcp/apps/architecture-diagram/view.tsx +454 -0
  136. package/eventcatalog/src/features/mcp/apps/generated/viewer.html +432 -0
  137. package/eventcatalog/src/features/mcp/apps/mermaid-stub.ts +10 -0
  138. package/eventcatalog/src/features/mcp/apps/schema-viewer/schema-code.tsx +65 -0
  139. package/eventcatalog/src/features/mcp/apps/schema-viewer/shared.ts +23 -0
  140. package/eventcatalog/src/features/mcp/apps/schema-viewer/view.tsx +170 -0
  141. package/eventcatalog/src/features/mcp/apps/shared/app-view.tsx +98 -0
  142. package/eventcatalog/src/features/mcp/apps/shared/resource-types.ts +15 -0
  143. package/eventcatalog/src/features/mcp/apps/viewer/shared.ts +24 -0
  144. package/eventcatalog/src/features/mcp/apps/viewer/styles.css +25 -0
  145. package/eventcatalog/src/features/mcp/apps/viewer/view.tsx +59 -0
  146. package/eventcatalog/src/features/mcp/mcp-app-icons.ts +63 -0
  147. package/eventcatalog/src/features/mcp/mcp-apps.ts +160 -0
  148. package/eventcatalog/src/{enterprise → features}/mcp/mcp-auth.ts +0 -5
  149. package/eventcatalog/src/{enterprise → features}/mcp/mcp-scope.ts +7 -7
  150. package/eventcatalog/src/{enterprise → features}/mcp/mcp-scoped-tools.ts +47 -40
  151. package/eventcatalog/src/{enterprise → features}/mcp/mcp-server.ts +347 -34
  152. package/eventcatalog/src/{enterprise → features}/mcp/oauth-protected-resource.ts +0 -5
  153. package/eventcatalog/src/features/mcp/schema-viewer.ts +24 -0
  154. package/eventcatalog/src/{enterprise → features}/tools/catalog-tools.ts +133 -102
  155. package/eventcatalog/src/features/tools/index.ts +5 -0
  156. package/eventcatalog/src/{enterprise → features}/visualizer-layout/reset.ts +0 -5
  157. package/eventcatalog/src/{enterprise → features}/visualizer-layout/save.ts +0 -5
  158. package/eventcatalog/src/layouts/BaseLayout.astro +2 -2
  159. package/eventcatalog/src/layouts/Footer.astro +31 -39
  160. package/eventcatalog/src/layouts/SettingsLayout.astro +6 -6
  161. package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +7 -37
  162. package/eventcatalog/src/{enterprise → pages}/api/schemas/[collection]/[id]/[version]/index.ts +0 -22
  163. package/eventcatalog/src/{enterprise → pages}/api/schemas/services/[id]/[version]/[specification]/index.ts +0 -19
  164. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/[docVersion]/_index.data.ts +2 -6
  165. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/[docVersion]/index.astro +1 -5
  166. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/_index.data.ts +2 -6
  167. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/index.astro +1 -5
  168. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId].md.ts +2 -6
  169. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId].mdx.ts +2 -6
  170. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/index.astro +9 -5
  171. package/eventcatalog/src/pages/docs/custom/[...path]/index.astro +12 -0
  172. package/eventcatalog/src/{enterprise/custom-documentation/pages/docs/custom/root-index.astro → pages/docs/custom/index.astro} +1 -23
  173. package/eventcatalog/src/pages/docs/llm/llms-full.txt.ts +4 -9
  174. package/eventcatalog/src/pages/docs/llm/llms.txt.ts +4 -4
  175. package/eventcatalog/src/pages/docs/llm/schemas.txt.ts +0 -11
  176. package/eventcatalog/src/pages/docs/services/[id]/[docType]/[docId]/index.astro +2 -2
  177. package/eventcatalog/src/pages/index.astro +2 -2
  178. package/eventcatalog/src/pages/schemas/[type]/[id]/[version]/index.astro +0 -3
  179. package/eventcatalog/src/pages/schemas/explorer/index.astro +1 -4
  180. package/eventcatalog/src/pages/settings/assistant.astro +2 -4
  181. package/eventcatalog/src/pages/settings/license.astro +18 -0
  182. package/eventcatalog/src/pages/settings/llm-access.astro +1 -4
  183. package/eventcatalog/src/pages/settings/mcp.astro +33 -4
  184. package/eventcatalog/src/pages/visualiser/[type]/[id]/[version]/_index.data.ts +1 -2
  185. package/eventcatalog/src/pages/visualiser/[type]/[id]/[version]/data/index.astro +2 -45
  186. package/eventcatalog/src/pages/visualiser/[type]/[id]/[version]/entity-map/index.astro +1 -1
  187. package/eventcatalog/src/pages/visualiser/[type]/[id]/[version].mermaid.ts +7 -109
  188. package/eventcatalog/src/pages/visualiser/_mermaid-route.ts +78 -0
  189. package/eventcatalog/src/pages/visualiser/domains/[id]/[version]/_index.data.ts +44 -0
  190. package/eventcatalog/src/pages/visualiser/domains/[id]/[version]/entity-map/index.astro +1 -1
  191. package/eventcatalog/src/pages/visualiser/domains/[id]/[version]/index.astro +56 -0
  192. package/eventcatalog/src/pages/visualiser/domains/[id]/[version]/systems-context/index.astro +3 -40
  193. package/eventcatalog/src/pages/visualiser/domains/[id]/[version].mermaid.ts +20 -0
  194. package/eventcatalog/src/pages/visualiser/systems/[id]/[version]/_index.data.ts +29 -0
  195. package/eventcatalog/src/pages/visualiser/systems/[id]/[version]/context/index.astro +3 -38
  196. package/eventcatalog/src/pages/visualiser/systems/[id]/[version]/index.astro +56 -0
  197. package/eventcatalog/src/pages/visualiser/systems/[id]/[version].mermaid.ts +20 -0
  198. package/eventcatalog/src/stores/sidebar-store/builders/agent.ts +1 -1
  199. package/eventcatalog/src/stores/sidebar-store/builders/container.ts +1 -1
  200. package/eventcatalog/src/stores/sidebar-store/builders/data-product.ts +1 -1
  201. package/eventcatalog/src/stores/sidebar-store/builders/domain.ts +7 -32
  202. package/eventcatalog/src/stores/sidebar-store/builders/entity.ts +1 -1
  203. package/eventcatalog/src/stores/sidebar-store/builders/message.ts +1 -1
  204. package/eventcatalog/src/stores/sidebar-store/builders/service.ts +2 -8
  205. package/eventcatalog/src/stores/sidebar-store/builders/system.ts +2 -12
  206. package/eventcatalog/src/stores/sidebar-store/custom-sidebar.ts +0 -10
  207. package/eventcatalog/src/stores/sidebar-store/state.ts +4 -6
  208. package/eventcatalog/src/styles/theme.css +22 -18
  209. package/eventcatalog/src/styles/themes/forest.css +8 -8
  210. package/eventcatalog/src/styles/themes/ocean.css +8 -8
  211. package/eventcatalog/src/styles/themes/sapphire.css +8 -8
  212. package/eventcatalog/src/styles/themes/sunset.css +8 -8
  213. package/eventcatalog/src/utils/clipboard.ts +4 -4
  214. package/eventcatalog/src/utils/collections/flow-step-schema.ts +117 -0
  215. package/eventcatalog/src/utils/collections/pointer-schema.ts +7 -0
  216. package/eventcatalog/src/utils/collections/resource-docs.ts +677 -14
  217. package/eventcatalog/src/utils/collections/schema-loader.ts +0 -5
  218. package/eventcatalog/src/utils/feature.ts +14 -23
  219. package/eventcatalog/src/utils/license.ts +114 -0
  220. package/eventcatalog/src/utils/node-graphs/architecture-diagram-types.ts +32 -0
  221. package/eventcatalog/src/utils/node-graphs/architecture-diagram.ts +84 -0
  222. package/eventcatalog/src/utils/node-graphs/channel-node-graph.ts +4 -25
  223. package/eventcatalog/src/utils/node-graphs/container-node-graph.ts +12 -39
  224. package/eventcatalog/src/utils/node-graphs/data-products-node-graph.ts +11 -27
  225. package/eventcatalog/src/utils/node-graphs/domain-levels-node-graph.ts +679 -0
  226. package/eventcatalog/src/utils/node-graphs/domains-node-graph.ts +3 -20
  227. package/eventcatalog/src/utils/node-graphs/export-mermaid.ts +51 -4
  228. package/eventcatalog/src/utils/node-graphs/field-node-graph.ts +8 -23
  229. package/eventcatalog/src/utils/node-graphs/flow-lanes.ts +119 -0
  230. package/eventcatalog/src/utils/node-graphs/flows-node-graph.ts +133 -47
  231. package/eventcatalog/src/utils/node-graphs/layout-node-graph.ts +28 -0
  232. package/eventcatalog/src/utils/node-graphs/layout-persistence.ts +3 -3
  233. package/eventcatalog/src/utils/node-graphs/message-node-graph.ts +16 -34
  234. package/eventcatalog/src/utils/node-graphs/services-node-graph.ts +11 -25
  235. package/eventcatalog/src/utils/node-graphs/system-context-node-graph.ts +18 -54
  236. package/eventcatalog/src/utils/node-graphs/system-levels-node-graph.ts +59 -0
  237. package/eventcatalog/src/utils/node-graphs/systems-node-graph.ts +20 -80
  238. package/eventcatalog/src/utils/node-graphs/utils/utils.ts +1 -78
  239. package/eventcatalog/src/utils/trial.ts +36 -0
  240. package/eventcatalog/tsconfig.json +1 -1
  241. package/package.json +11 -11
  242. package/dist/chunk-FV56YFM4.js +0 -7
  243. package/dist/federation/entitlement.cjs +0 -31
  244. package/dist/federation/entitlement.d.cts +0 -12
  245. package/dist/federation/entitlement.d.ts +0 -12
  246. package/dist/federation/entitlement.js +0 -6
  247. package/dist/runtime-dependencies/dagre.mjs +0 -3
  248. package/eventcatalog/src/components/Settings/BillingSettingsForm.tsx +0 -265
  249. package/eventcatalog/src/enterprise/LICENSE +0 -57
  250. package/eventcatalog/src/enterprise/README.md +0 -5
  251. package/eventcatalog/src/enterprise/collections/resource-docs-utils.ts +0 -691
  252. package/eventcatalog/src/enterprise/custom-documentation/components/CustomDocsNav/CustomDocsNav.astro +0 -9
  253. package/eventcatalog/src/enterprise/custom-documentation/pages/docs/custom/[...path]/index.astro +0 -18
  254. package/eventcatalog/src/enterprise/custom-documentation/pages/docs/custom/feature.astro +0 -171
  255. package/eventcatalog/src/enterprise/feature.ts +0 -75
  256. package/eventcatalog/src/enterprise/tools/index.ts +0 -10
  257. package/eventcatalog/src/hooks/eventcatalog-visualizer.ts +0 -126
  258. package/eventcatalog/src/pages/settings/billing.astro +0 -17
  259. package/eventcatalog/src/pages/visualiser/domain-integrations/index.astro +0 -26
  260. package/eventcatalog/src/types/mcp-modules.d.ts +0 -67
  261. package/eventcatalog/src/utils/node-graphs/domains-canvas.ts +0 -261
  262. package/eventcatalog/src/utils/node-graphs/export-node-graph.ts +0 -91
  263. /package/eventcatalog/src/{enterprise → features}/auth/error.astro +0 -0
  264. /package/eventcatalog/src/{enterprise → features}/auth/login.astro +0 -0
  265. /package/eventcatalog/src/{enterprise → features}/auth/unauthorized.astro +0 -0
  266. /package/eventcatalog/src/{enterprise/custom-documentation/pages → pages}/docs/custom/[...path]/_index.data.ts +0 -0
  267. /package/eventcatalog/src/{enterprise/custom-documentation/pages → pages}/docs/custom/[...path].mdx.ts +0 -0
@@ -133,7 +133,6 @@ type SchemaSource = {
133
133
  type DirectoryConfig = {
134
134
  /**
135
135
  * External sources that sync users and teams into EventCatalog.
136
- * Requires EventCatalog Scale.
137
136
  */
138
137
  sources?: DirectorySource[];
139
138
  /**
@@ -192,7 +191,7 @@ type McpAuthConfig = {
192
191
  };
193
192
  type McpConfig = {
194
193
  /**
195
- * Enables the built-in MCP server when EventCatalog is running in server mode with a Scale license.
194
+ * Enables the built-in MCP server when EventCatalog is running in server mode.
196
195
  * @default true
197
196
  */
198
197
  enabled?: boolean;
@@ -415,7 +414,7 @@ interface Config {
415
414
  integrations?: IntegrationsConfig;
416
415
  scalarConfiguration?: ScalarConfiguration;
417
416
  generators?: GeneratorConfig[];
418
- /** Catalogs composed into this catalog by `eventcatalog federate`. Requires an offline EventCatalog Enterprise license. */
417
+ /** Catalogs composed into this catalog by `eventcatalog federate`. */
419
418
  federation?: FederationConfig;
420
419
  }
421
420
 
@@ -133,7 +133,6 @@ type SchemaSource = {
133
133
  type DirectoryConfig = {
134
134
  /**
135
135
  * External sources that sync users and teams into EventCatalog.
136
- * Requires EventCatalog Scale.
137
136
  */
138
137
  sources?: DirectorySource[];
139
138
  /**
@@ -192,7 +191,7 @@ type McpAuthConfig = {
192
191
  };
193
192
  type McpConfig = {
194
193
  /**
195
- * Enables the built-in MCP server when EventCatalog is running in server mode with a Scale license.
194
+ * Enables the built-in MCP server when EventCatalog is running in server mode.
196
195
  * @default true
197
196
  */
198
197
  enabled?: boolean;
@@ -415,7 +414,7 @@ interface Config {
415
414
  integrations?: IntegrationsConfig;
416
415
  scalarConfiguration?: ScalarConfiguration;
417
416
  generators?: GeneratorConfig[];
418
- /** Catalogs composed into this catalog by `eventcatalog federate`. Requires an offline EventCatalog Enterprise license. */
417
+ /** Catalogs composed into this catalog by `eventcatalog federate`. */
419
418
  federation?: FederationConfig;
420
419
  }
421
420
 
@@ -1,27 +1,30 @@
1
- import {
2
- log_build_default
3
- } from "./chunk-M577VUOX.js";
4
- import "./chunk-ZAZHAVKB.js";
5
1
  import {
6
2
  runMigrations
7
3
  } from "./chunk-XUAF2H54.js";
8
4
  import "./chunk-CA4U2JP7.js";
5
+ import {
6
+ log_build_default
7
+ } from "./chunk-LR7AGRHN.js";
8
+ import {
9
+ getLicenseStatus,
10
+ printLicenseStatus
11
+ } from "./chunk-TQLRG35T.js";
12
+ import "./chunk-ZAZHAVKB.js";
9
13
  import {
10
14
  FederationConflictError,
11
15
  FederationDiagnosticError,
12
16
  federateCatalog
13
- } from "./chunk-U4YJSTGV.js";
14
- import "./chunk-WRNH5C3U.js";
17
+ } from "./chunk-AYNZXUB5.js";
15
18
  import "./chunk-5EPNFDT5.js";
16
19
  import "./chunk-A2RZR3U4.js";
17
- import "./chunk-SDZQJTJW.js";
18
- import "./chunk-352FGP6W.js";
19
20
  import "./chunk-R7Z5ALYI.js";
20
21
  import {
21
22
  getFederationDiagnosticCounts,
22
23
  getVisibleFederationDiagnostics
23
24
  } from "./chunk-JJPB6EOZ.js";
24
- import "./chunk-FV56YFM4.js";
25
+ import "./chunk-SDZQJTJW.js";
26
+ import "./chunk-352FGP6W.js";
27
+ import "./chunk-WRNH5C3U.js";
25
28
  import {
26
29
  getProjectOutDir,
27
30
  isAuthEnabled,
@@ -30,10 +33,10 @@ import {
30
33
  } from "./chunk-MDWB5HLO.js";
31
34
  import {
32
35
  generate
33
- } from "./chunk-TV3YAWKQ.js";
36
+ } from "./chunk-CR6AK5LR.js";
34
37
  import {
35
38
  logger
36
- } from "./chunk-5BPN6QEC.js";
39
+ } from "./chunk-ZHKEARLJ.js";
37
40
  import {
38
41
  resolve_catalog_dependencies_default
39
42
  } from "./chunk-36RYTYT5.js";
@@ -47,7 +50,7 @@ import {
47
50
  import {
48
51
  watch
49
52
  } from "./chunk-U63GDPPY.js";
50
- import "./chunk-ZYTCBNB3.js";
53
+ import "./chunk-WAIADKQE.js";
51
54
  import {
52
55
  getAstroConfigPath
53
56
  } from "./chunk-VIJJ7JKH.js";
@@ -63,7 +66,7 @@ import {
63
66
  } from "./chunk-LFQJXLHG.js";
64
67
  import {
65
68
  VERSION
66
- } from "./chunk-HPC6KUDQ.js";
69
+ } from "./chunk-TWN43V4T.js";
67
70
  import {
68
71
  getEventCatalogConfigFile,
69
72
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -82,11 +85,11 @@ import boxen from "boxen";
82
85
  import updateNotifier from "update-notifier";
83
86
  import dotenv from "dotenv";
84
87
 
85
- // eventcatalog/src/enterprise/fields/field-indexer.ts
88
+ // eventcatalog/src/features/fields/field-indexer.ts
86
89
  import path from "path";
87
90
  import fs2 from "fs";
88
91
 
89
- // eventcatalog/src/enterprise/fields/fields-db.ts
92
+ // eventcatalog/src/features/fields/fields-db.ts
90
93
  import initSqlJs from "sql.js";
91
94
  import fs from "fs";
92
95
  var SCHEMA_SQL = `
@@ -393,7 +396,7 @@ function decodeCursor(cursor) {
393
396
  return parseInt(Buffer.from(cursor, "base64url").toString(), 10);
394
397
  }
395
398
 
396
- // eventcatalog/src/enterprise/fields/field-extractor.ts
399
+ // eventcatalog/src/features/fields/field-extractor.ts
397
400
  function extractSchemaFieldsDeep(content, format) {
398
401
  if (!content) return [];
399
402
  if (format === "json-schema") {
@@ -536,7 +539,7 @@ function resolveLocalRef(ref, rootSchema) {
536
539
  return current;
537
540
  }
538
541
 
539
- // eventcatalog/src/enterprise/fields/field-indexer.ts
542
+ // eventcatalog/src/features/fields/field-indexer.ts
540
543
  function detectFormat(fileName) {
541
544
  const ext = path.extname(fileName).toLowerCase();
542
545
  if (ext === ".proto") return "proto";
@@ -632,7 +635,6 @@ async function buildFieldsIndex(catalogDir, outputDir) {
632
635
  }
633
636
 
634
637
  // src/eventcatalog.ts
635
- import { isEventCatalogStarterEnabled, isEventCatalogScaleEnabled, isFeatureEnabled } from "@eventcatalog/license";
636
638
  var currentDir = path2.dirname(fileURLToPath(import.meta.url));
637
639
  var astroCli = path2.join(path2.dirname(createRequire(import.meta.url).resolve("astro/package.json")), "bin/astro.mjs");
638
640
  var program = new Command().version(VERSION);
@@ -903,18 +905,9 @@ program.command("dev").description("Run development server of EventCatalog").opt
903
905
  await resolve_catalog_dependencies_default(dir, core);
904
906
  await runMigrations(dir);
905
907
  const config = await getEventCatalogConfigFile(dir);
906
- const canEmbedPages = await isFeatureEnabled(
907
- "@eventcatalog/backstage-plugin-eventcatalog",
908
- process.env.EVENTCATALOG_LICENSE_KEY_BACKSTAGE
909
- );
910
- const isEventCatalogStarter = await isEventCatalogStarterEnabled();
911
- const isEventCatalogScale = await isEventCatalogScaleEnabled();
912
- void log_build_default(dir, {
913
- isEventCatalogStarterEnabled: isEventCatalogStarter,
914
- isEventCatalogScaleEnabled: isEventCatalogScale,
915
- isBackstagePluginEnabled: canEmbedPages || isEventCatalogScale,
916
- command: "dev"
917
- });
908
+ const license = await getLicenseStatus(dir);
909
+ printLicenseStatus(license, config?.tsd);
910
+ void log_build_default(dir, { command: "dev", license });
918
911
  if (isServer) {
919
912
  try {
920
913
  logger.info("Building fields index...", "fields");
@@ -956,9 +949,6 @@ program.command("dev").description("Run development server of EventCatalog").opt
956
949
  env: {
957
950
  PROJECT_DIR: dir,
958
951
  CATALOG_DIR: core,
959
- ENABLE_EMBED: String(canEmbedPages || isEventCatalogScale),
960
- EVENTCATALOG_STARTER: String(isEventCatalogStarter),
961
- EVENTCATALOG_SCALE: String(isEventCatalogScale),
962
952
  EVENTCATALOG_DEV_MODE: "true",
963
953
  IGNORE_BUILD_ARTIFACTS: "true",
964
954
  NODE_NO_WARNINGS: "1"
@@ -981,20 +971,11 @@ program.command("build").description("Run build of EventCatalog").action(async (
981
971
  dotenv.config({ path: path2.join(dir, ".env") });
982
972
  }
983
973
  await verifyRequiredFieldsAreInCatalogConfigFile(dir);
974
+ const config = await getEventCatalogConfigFile(dir);
975
+ const license = await getLicenseStatus(dir);
976
+ printLicenseStatus(license, config?.tsd);
984
977
  prepareCore();
985
- const isBackstagePluginEnabled = await isFeatureEnabled(
986
- "@eventcatalog/backstage-plugin-eventcatalog",
987
- process.env.EVENTCATALOG_LICENSE_KEY_BACKSTAGE
988
- );
989
- const isEventCatalogStarter = await isEventCatalogStarterEnabled();
990
- const isEventCatalogScale = await isEventCatalogScaleEnabled();
991
- const canEmbedPages = isBackstagePluginEnabled || isEventCatalogScale;
992
- await log_build_default(dir, {
993
- isEventCatalogStarterEnabled: isEventCatalogStarter,
994
- isEventCatalogScaleEnabled: isEventCatalogScale,
995
- isBackstagePluginEnabled: canEmbedPages || isEventCatalogScale,
996
- command: "build"
997
- });
978
+ await log_build_default(dir, { command: "build", license });
998
979
  await resolve_catalog_dependencies_default(dir, core);
999
980
  await runMigrations(dir);
1000
981
  if (isServer) {
@@ -1018,16 +999,12 @@ program.command("build").description("Run build of EventCatalog").action(async (
1018
999
  env: {
1019
1000
  PROJECT_DIR: dir,
1020
1001
  CATALOG_DIR: core,
1021
- ENABLE_EMBED: String(canEmbedPages),
1022
- EVENTCATALOG_STARTER: String(isEventCatalogStarter),
1023
- EVENTCATALOG_SCALE: String(isEventCatalogScale),
1024
1002
  IGNORE_BUILD_ARTIFACTS: "true"
1025
1003
  },
1026
1004
  shouldFilterLine: createAstroLineFilter()
1027
1005
  });
1028
1006
  if (await isIndexedSearchEnabled()) {
1029
1007
  await warnIfIndexedSearchUsesAuth();
1030
- const config = await getEventCatalogConfigFile(dir);
1031
1008
  const outDir = path2.resolve(dir, await getProjectOutDir());
1032
1009
  logger.info("Building indexed search...", "search");
1033
1010
  const result = await buildSearchIndex({
@@ -1039,31 +1016,19 @@ program.command("build").description("Run build of EventCatalog").action(async (
1039
1016
  logger.info(`Indexed ${result.records} page(s) into ${path2.relative(dir, result.outputPath)}`, "search");
1040
1017
  }
1041
1018
  });
1042
- var previewCatalog = async ({
1043
- command,
1044
- canEmbedPages = false,
1045
- isEventCatalogStarter = false,
1046
- isEventCatalogScale = false
1047
- }) => {
1019
+ var previewCatalog = async ({ command }) => {
1048
1020
  await runCommandWithFilteredOutput({
1049
1021
  command: process.execPath,
1050
1022
  args: [astroCli, "preview", "--config", astroConfigPath(), ...command.args],
1051
1023
  cwd: dir,
1052
1024
  env: {
1053
1025
  PROJECT_DIR: dir,
1054
- CATALOG_DIR: core,
1055
- ENABLE_EMBED: String(canEmbedPages),
1056
- EVENTCATALOG_STARTER: String(isEventCatalogStarter),
1057
- EVENTCATALOG_SCALE: String(isEventCatalogScale)
1026
+ CATALOG_DIR: core
1058
1027
  },
1059
1028
  shouldFilterLine: createAstroLineFilter()
1060
1029
  });
1061
1030
  };
1062
- var startServerCatalog = async ({
1063
- canEmbedPages = false,
1064
- isEventCatalogStarter = false,
1065
- isEventCatalogScale = false
1066
- }) => {
1031
+ var startServerCatalog = async () => {
1067
1032
  const serverEntryPath = path2.join(dir, "dist", "server", "entry.mjs");
1068
1033
  await runCommandWithFilteredOutput({
1069
1034
  command: process.execPath,
@@ -1071,10 +1036,7 @@ var startServerCatalog = async ({
1071
1036
  cwd: dir,
1072
1037
  env: {
1073
1038
  PROJECT_DIR: dir,
1074
- CATALOG_DIR: core,
1075
- ENABLE_EMBED: String(canEmbedPages),
1076
- EVENTCATALOG_STARTER: String(isEventCatalogStarter),
1077
- EVENTCATALOG_SCALE: String(isEventCatalogScale)
1039
+ CATALOG_DIR: core
1078
1040
  },
1079
1041
  shouldFilterLine: createAstroLineFilter()
1080
1042
  });
@@ -1085,18 +1047,7 @@ program.command("preview").description("Serves the contents of your eventcatalog
1085
1047
  if (fs3.existsSync(path2.join(dir, ".env"))) {
1086
1048
  dotenv.config({ path: path2.join(dir, ".env") });
1087
1049
  }
1088
- const canEmbedPages = await isFeatureEnabled(
1089
- "@eventcatalog/backstage-plugin-eventcatalog",
1090
- process.env.EVENTCATALOG_LICENSE_KEY_BACKSTAGE
1091
- );
1092
- const isEventCatalogStarter = await isEventCatalogStarterEnabled();
1093
- const isEventCatalogScale = await isEventCatalogScaleEnabled();
1094
- await previewCatalog({
1095
- command,
1096
- canEmbedPages: canEmbedPages || isEventCatalogScale,
1097
- isEventCatalogStarter,
1098
- isEventCatalogScale
1099
- });
1050
+ await previewCatalog({ command });
1100
1051
  });
1101
1052
  program.command("start").description("Serves the contents of your eventcatalog build directory").action(async (options, command) => {
1102
1053
  logger.welcome();
@@ -1104,26 +1055,12 @@ program.command("start").description("Serves the contents of your eventcatalog b
1104
1055
  if (fs3.existsSync(path2.join(dir, ".env"))) {
1105
1056
  dotenv.config({ path: path2.join(dir, ".env") });
1106
1057
  }
1107
- const canEmbedPages = await isFeatureEnabled(
1108
- "@eventcatalog/backstage-plugin-eventcatalog",
1109
- process.env.EVENTCATALOG_LICENSE_KEY_BACKSTAGE
1110
- );
1111
- const isEventCatalogStarter = await isEventCatalogStarterEnabled();
1112
- const isEventCatalogScale = await isEventCatalogScaleEnabled();
1113
1058
  const isServerOutput = await isOutputServer();
1114
1059
  if (isServerOutput) {
1115
- await startServerCatalog({
1116
- canEmbedPages: canEmbedPages || isEventCatalogScale,
1117
- isEventCatalogStarter,
1118
- isEventCatalogScale
1119
- });
1060
+ await getLicenseStatus(dir);
1061
+ await startServerCatalog();
1120
1062
  } else {
1121
- await previewCatalog({
1122
- command,
1123
- canEmbedPages: canEmbedPages || isEventCatalogScale,
1124
- isEventCatalogStarter,
1125
- isEventCatalogScale
1126
- });
1063
+ await previewCatalog({ command });
1127
1064
  }
1128
1065
  });
1129
1066
  program.command("export").description("Export your EventCatalog using the SDK dumpCatalog function").option("--include-markdown", "Include markdown content in the export", false).action(async (options) => {
@@ -1,10 +1,5 @@
1
1
  import { Cache } from '@eventcatalog/sdk';
2
2
 
3
- /**
4
- * Licensed under the EventCatalog Commercial License.
5
- * See /packages/core/src/federation/LICENSE
6
- */
7
-
8
3
  type FederationContentCacheOptions = {
9
4
  read?: boolean;
10
5
  onHit?: (key: string) => void;
@@ -1,10 +1,5 @@
1
1
  import { Cache } from '@eventcatalog/sdk';
2
2
 
3
- /**
4
- * Licensed under the EventCatalog Commercial License.
5
- * See /packages/core/src/federation/LICENSE
6
- */
7
-
8
3
  type FederationContentCacheOptions = {
9
4
  read?: boolean;
10
5
  onHit?: (key: string) => void;
@@ -1,11 +1,6 @@
1
1
  import { ResolvedGraph } from '@eventcatalog/sdk';
2
2
  import { FederationRuleId, FederationRuleLevel, FederationRulesConfig } from '../eventcatalog.config.cjs';
3
3
 
4
- /**
5
- * Licensed under the EventCatalog Commercial License.
6
- * See /packages/core/src/federation/LICENSE
7
- */
8
-
9
4
  type FederationDiagnostic = {
10
5
  severity: 'error' | 'warning';
11
6
  message: string;
@@ -1,11 +1,6 @@
1
1
  import { ResolvedGraph } from '@eventcatalog/sdk';
2
2
  import { FederationRuleId, FederationRuleLevel, FederationRulesConfig } from '../eventcatalog.config.js';
3
3
 
4
- /**
5
- * Licensed under the EventCatalog Commercial License.
6
- * See /packages/core/src/federation/LICENSE
7
- */
8
-
9
4
  type FederationDiagnostic = {
10
5
  severity: 'error' | 'warning';
11
6
  message: string;
@@ -298,10 +298,6 @@ var getFederationDiagnostics = (graph, rules = {}) => {
298
298
  );
299
299
  };
300
300
 
301
- // src/federation/entitlement.ts
302
- var import_license = require("@eventcatalog/license");
303
- var isFederationEnabled = () => (0, import_license.isEventCatalogEnterpriseEnabled)();
304
-
305
301
  // src/federation/output-transaction.ts
306
302
  var import_promises4 = __toESM(require("fs/promises"), 1);
307
303
  var import_node_path4 = __toESM(require("path"), 1);
@@ -893,11 +889,6 @@ var federateCatalog = async (projectDirectory, options = {}) => {
893
889
  await cleanupPreviousFederation(projectDirectory, options.onProgress);
894
890
  return null;
895
891
  }
896
- if (!await isFederationEnabled()) {
897
- throw new Error(
898
- "Cannot federate catalogs: EventCatalog federation is an Enterprise feature. Visit https://www.eventcatalog.dev/pricing to enable federation."
899
- );
900
- }
901
892
  validateSources(sources);
902
893
  const rules = resolveFederationRules(config.federation?.rules);
903
894
  if (options.useCache === false) options.onProgress?.({ type: "cache:disabled" });
@@ -4,11 +4,6 @@ import { FederationDiagnostic } from './diagnostics.cjs';
4
4
  import { PublicAssetCompositionResult } from './public-assets.cjs';
5
5
  import { FederationSourceProvider } from './types.cjs';
6
6
 
7
- /**
8
- * Licensed under the EventCatalog Commercial License.
9
- * See /packages/core/src/federation/LICENSE
10
- */
11
-
12
7
  type FederationProgressEvent = {
13
8
  type: 'configured';
14
9
  sources: number;
@@ -4,11 +4,6 @@ import { FederationDiagnostic } from './diagnostics.js';
4
4
  import { PublicAssetCompositionResult } from './public-assets.js';
5
5
  import { FederationSourceProvider } from './types.js';
6
6
 
7
- /**
8
- * Licensed under the EventCatalog Commercial License.
9
- * See /packages/core/src/federation/LICENSE
10
- */
11
-
12
7
  type FederationProgressEvent = {
13
8
  type: 'configured';
14
9
  sources: number;
@@ -2,15 +2,14 @@ import {
2
2
  FederationConflictError,
3
3
  FederationDiagnosticError,
4
4
  federateCatalog
5
- } from "../chunk-U4YJSTGV.js";
6
- import "../chunk-WRNH5C3U.js";
5
+ } from "../chunk-AYNZXUB5.js";
7
6
  import "../chunk-5EPNFDT5.js";
8
7
  import "../chunk-A2RZR3U4.js";
9
- import "../chunk-SDZQJTJW.js";
10
- import "../chunk-352FGP6W.js";
11
8
  import "../chunk-R7Z5ALYI.js";
12
9
  import "../chunk-JJPB6EOZ.js";
13
- import "../chunk-FV56YFM4.js";
10
+ import "../chunk-SDZQJTJW.js";
11
+ import "../chunk-352FGP6W.js";
12
+ import "../chunk-WRNH5C3U.js";
14
13
  import "../chunk-RFIXKATC.js";
15
14
  export {
16
15
  FederationConflictError,
@@ -2,11 +2,6 @@ import { FederationSourceProvider } from './types.cjs';
2
2
  import '@eventcatalog/sdk';
3
3
  import '../eventcatalog.config.cjs';
4
4
 
5
- /**
6
- * Licensed under the EventCatalog Commercial License.
7
- * See /packages/core/src/federation/LICENSE
8
- */
9
-
10
5
  declare const createFileSystemSourceProvider: (projectDirectory: string) => FederationSourceProvider;
11
6
 
12
7
  export { createFileSystemSourceProvider };
@@ -2,11 +2,6 @@ import { FederationSourceProvider } from './types.js';
2
2
  import '@eventcatalog/sdk';
3
3
  import '../eventcatalog.config.js';
4
4
 
5
- /**
6
- * Licensed under the EventCatalog Commercial License.
7
- * See /packages/core/src/federation/LICENSE
8
- */
9
-
10
5
  declare const createFileSystemSourceProvider: (projectDirectory: string) => FederationSourceProvider;
11
6
 
12
7
  export { createFileSystemSourceProvider };
@@ -2,11 +2,6 @@ import { FederationSourceConfig } from '../eventcatalog.config.cjs';
2
2
  import { FederationSourceProvider } from './types.cjs';
3
3
  import '@eventcatalog/sdk';
4
4
 
5
- /**
6
- * Licensed under the EventCatalog Commercial License.
7
- * See /packages/core/src/federation/LICENSE
8
- */
9
-
10
5
  type FetchResponse = Pick<Response, 'status' | 'statusText' | 'ok' | 'arrayBuffer'>;
11
6
  type FetchFunction = (url: string, init?: RequestInit) => Promise<FetchResponse>;
12
7
  type ExecFileFunction = (file: string, args: string[], options: {
@@ -2,11 +2,6 @@ import { FederationSourceConfig } from '../eventcatalog.config.js';
2
2
  import { FederationSourceProvider } from './types.js';
3
3
  import '@eventcatalog/sdk';
4
4
 
5
- /**
6
- * Licensed under the EventCatalog Commercial License.
7
- * See /packages/core/src/federation/LICENSE
8
- */
9
-
10
5
  type FetchResponse = Pick<Response, 'status' | 'statusText' | 'ok' | 'arrayBuffer'>;
11
6
  type FetchFunction = (url: string, init?: RequestInit) => Promise<FetchResponse>;
12
7
  type ExecFileFunction = (file: string, args: string[], options: {
@@ -1,7 +1,3 @@
1
- /**
2
- * Licensed under the EventCatalog Commercial License.
3
- * See /packages/core/src/federation/LICENSE
4
- */
5
1
  declare const withFederationOutputTransaction: <Result>(projectDirectory: string, outDir: string, relativePublicPaths: Iterable<string>, update: () => Promise<Result>) => Promise<Result>;
6
2
 
7
3
  export { withFederationOutputTransaction };
@@ -1,7 +1,3 @@
1
- /**
2
- * Licensed under the EventCatalog Commercial License.
3
- * See /packages/core/src/federation/LICENSE
4
- */
5
1
  declare const withFederationOutputTransaction: <Result>(projectDirectory: string, outDir: string, relativePublicPaths: Iterable<string>, update: () => Promise<Result>) => Promise<Result>;
6
2
 
7
3
  export { withFederationOutputTransaction };
@@ -1,10 +1,5 @@
1
1
  import { ResolvedAsset } from '@eventcatalog/sdk';
2
2
 
3
- /**
4
- * Licensed under the EventCatalog Commercial License.
5
- * See /packages/core/src/federation/LICENSE
6
- */
7
-
8
3
  type FederatedPublicFile = {
9
4
  source: string;
10
5
  hash: string;
@@ -1,10 +1,5 @@
1
1
  import { ResolvedAsset } from '@eventcatalog/sdk';
2
2
 
3
- /**
4
- * Licensed under the EventCatalog Commercial License.
5
- * See /packages/core/src/federation/LICENSE
6
- */
7
-
8
3
  type FederatedPublicFile = {
9
4
  source: string;
10
5
  hash: string;
@@ -2,11 +2,6 @@ import { FederationSourceProvider } from './types.cjs';
2
2
  import '@eventcatalog/sdk';
3
3
  import '../eventcatalog.config.cjs';
4
4
 
5
- /**
6
- * Licensed under the EventCatalog Commercial License.
7
- * See /packages/core/src/federation/LICENSE
8
- */
9
-
10
5
  type FederationSourceProviders = {
11
6
  github?: FederationSourceProvider;
12
7
  filesystem?: FederationSourceProvider;
@@ -2,11 +2,6 @@ import { FederationSourceProvider } from './types.js';
2
2
  import '@eventcatalog/sdk';
3
3
  import '../eventcatalog.config.js';
4
4
 
5
- /**
6
- * Licensed under the EventCatalog Commercial License.
7
- * See /packages/core/src/federation/LICENSE
8
- */
9
-
10
5
  type FederationSourceProviders = {
11
6
  github?: FederationSourceProvider;
12
7
  filesystem?: FederationSourceProvider;
@@ -1,11 +1,6 @@
1
1
  import { Index } from '@eventcatalog/sdk';
2
2
  import { FederationSourceConfig } from '../eventcatalog.config.cjs';
3
3
 
4
- /**
5
- * Licensed under the EventCatalog Commercial License.
6
- * See /packages/core/src/federation/LICENSE
7
- */
8
-
9
4
  type ResolvedFederationSource = {
10
5
  bytes: Buffer;
11
6
  index: Index;
@@ -1,11 +1,6 @@
1
1
  import { Index } from '@eventcatalog/sdk';
2
2
  import { FederationSourceConfig } from '../eventcatalog.config.js';
3
3
 
4
- /**
5
- * Licensed under the EventCatalog Commercial License.
6
- * See /packages/core/src/federation/LICENSE
7
- */
8
-
9
4
  type ResolvedFederationSource = {
10
5
  bytes: Buffer;
11
6
  index: Index;
package/dist/generate.cjs CHANGED
@@ -112,7 +112,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
112
112
  var import_picocolors = __toESM(require("picocolors"), 1);
113
113
 
114
114
  // package.json
115
- var version = "4.12.3";
115
+ var version = "5.0.0-beta.0";
116
116
 
117
117
  // src/constants.ts
118
118
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-TV3YAWKQ.js";
4
- import "./chunk-5BPN6QEC.js";
5
- import "./chunk-HPC6KUDQ.js";
3
+ } from "./chunk-CR6AK5LR.js";
4
+ import "./chunk-ZHKEARLJ.js";
5
+ import "./chunk-TWN43V4T.js";
6
6
  import "./chunk-RFIXKATC.js";
7
7
  export {
8
8
  generate
@@ -0,0 +1,23 @@
1
+ type LicenseDetails = {
2
+ org?: string;
3
+ licenseId?: string;
4
+ issuedAt?: Date;
5
+ };
6
+ type LicensePlan = 'scale' | 'starter';
7
+ type LicenseStatus = {
8
+ state: 'none';
9
+ } | ({
10
+ state: 'licensed';
11
+ expiresAt: Date;
12
+ } & LicenseDetails) | {
13
+ state: 'plan';
14
+ plan: LicensePlan;
15
+ } | ({
16
+ state: 'expired';
17
+ expiresAt?: Date;
18
+ } & LicenseDetails) | {
19
+ state: 'invalid';
20
+ reason: string;
21
+ };
22
+
23
+ export type { LicenseStatus as L };
@@ -0,0 +1,23 @@
1
+ type LicenseDetails = {
2
+ org?: string;
3
+ licenseId?: string;
4
+ issuedAt?: Date;
5
+ };
6
+ type LicensePlan = 'scale' | 'starter';
7
+ type LicenseStatus = {
8
+ state: 'none';
9
+ } | ({
10
+ state: 'licensed';
11
+ expiresAt: Date;
12
+ } & LicenseDetails) | {
13
+ state: 'plan';
14
+ plan: LicensePlan;
15
+ } | ({
16
+ state: 'expired';
17
+ expiresAt?: Date;
18
+ } & LicenseDetails) | {
19
+ state: 'invalid';
20
+ reason: string;
21
+ };
22
+
23
+ export type { LicenseStatus as L };