@endge/core 1.2.9 → 1.2.11

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 (273) hide show
  1. package/ReadMe.md +0 -21
  2. package/dist/core.cjs +300 -288
  3. package/dist/core.js +79723 -84427
  4. package/dist/domain/entities/diagnostics/DiagnosticsRecordStore.d.ts +1 -1
  5. package/dist/domain/entities/diagnostics/DiagnosticsSpan.d.ts +1 -1
  6. package/dist/domain/entities/endge/EndgeFederation.d.ts +4 -2
  7. package/dist/domain/entities/reflect/RAuthProfile.d.ts +0 -1
  8. package/dist/domain/entities/reflect/RComponentSFC.d.ts +1 -1
  9. package/dist/domain/entities/reflect/RComputation.d.ts +1 -2
  10. package/dist/domain/entities/reflect/RConverter.d.ts +1 -1
  11. package/dist/domain/entities/reflect/REntity.d.ts +1 -1
  12. package/dist/domain/entities/reflect/REnvironment.d.ts +1 -1
  13. package/dist/domain/entities/reflect/RFilter.d.ts +0 -1
  14. package/dist/domain/entities/reflect/RFolder.d.ts +1 -3
  15. package/dist/domain/entities/reflect/RI18nBundle.d.ts +2 -3
  16. package/dist/domain/entities/reflect/RIntegration.d.ts +1 -1
  17. package/dist/domain/entities/reflect/RMock.d.ts +3 -5
  18. package/dist/domain/entities/reflect/RNavigation.d.ts +1 -1
  19. package/dist/domain/entities/reflect/RPage.d.ts +1 -1
  20. package/dist/domain/entities/reflect/RPageTemplate.d.ts +1 -1
  21. package/dist/domain/entities/reflect/RParameter.d.ts +0 -1
  22. package/dist/domain/entities/reflect/RProject.d.ts +4 -5
  23. package/dist/domain/entities/reflect/RStyle.d.ts +0 -1
  24. package/dist/domain/entities/reflect/RTenant.d.ts +1 -1
  25. package/dist/domain/entities/reflect/RVersion.d.ts +3 -4
  26. package/dist/domain/entities/reflect/RVocabs.d.ts +2 -3
  27. package/dist/domain/entities/reflect/RWorkspace.d.ts +1 -2
  28. package/dist/domain/entities/runtime/ComponentSFCEventBoundary.d.ts +12 -4
  29. package/dist/domain/entities/runtime/RuntimeHostBase.d.ts +3 -4
  30. package/dist/domain/entities/runtime/RuntimeHostRegistry.d.ts +8 -4
  31. package/dist/domain/entities/runtime/RuntimeScopeRegistry.d.ts +1 -1
  32. package/dist/domain/entities/runtime/hosts/ComponentSFCRuntimeHost.d.ts +25 -3
  33. package/dist/domain/entities/runtime/hosts/CompositionRuntimeHost.d.ts +2 -0
  34. package/dist/domain/entities/runtime/hosts/FilterRuntimeHost.d.ts +1 -2
  35. package/dist/domain/entities/runtime/hosts/QueryRuntimeHost.d.ts +5 -1
  36. package/dist/domain/types/auth/auth-profile.types.d.ts +69 -13
  37. package/dist/domain/types/auth/auth-runtime.types.d.ts +35 -0
  38. package/dist/domain/types/component/component-core.types.d.ts +2 -0
  39. package/dist/domain/types/component/sfc/ir.types.d.ts +70 -3
  40. package/dist/domain/types/component/sfc/ports.types.d.ts +21 -2
  41. package/dist/domain/types/component/sfc/visual-projection.types.d.ts +57 -1
  42. package/dist/domain/types/configuration/configuration.type.d.ts +3 -9
  43. package/dist/domain/types/document/document-create.type.d.ts +2 -2
  44. package/dist/domain/types/document/domain-export.type.d.ts +42 -9
  45. package/dist/domain/types/document/domain-provider.type.d.ts +59 -0
  46. package/dist/domain/types/document/domain-snapshot.type.d.ts +37 -0
  47. package/dist/domain/types/document/query.types.d.ts +3 -10
  48. package/dist/domain/types/document/workspace.types.d.ts +1 -1
  49. package/dist/domain/types/kernel/bootstrap.types.d.ts +19 -12
  50. package/dist/domain/types/kernel/events.types.d.ts +14 -0
  51. package/dist/domain/types/kernel/federation.types.d.ts +0 -1
  52. package/dist/domain/types/program/program.types.d.ts +8 -4
  53. package/dist/domain/types/runtime/action.types.d.ts +12 -0
  54. package/dist/domain/types/runtime/context-persistence.types.d.ts +12 -0
  55. package/dist/domain/types/runtime/execution-context.types.d.ts +20 -0
  56. package/dist/domain/types/runtime/runtime-host.types.d.ts +21 -1
  57. package/dist/domain/types/runtime/runtime-registry.types.d.ts +7 -5
  58. package/dist/domain/types/runtime/sfc-render-inspection.type.d.ts +1 -1
  59. package/dist/domain/types/source/composition-source.types.d.ts +40 -2
  60. package/dist/domain/types/source/store-source.types.d.ts +1 -1
  61. package/dist/main.d.ts +126 -85
  62. package/dist/model/adapters/diagnostics/ConsoleDiagnosticsAdapter.d.ts +2 -1
  63. package/dist/model/adapters/diagnostics/DiagnosticsAdapterRegistry.d.ts +2 -1
  64. package/dist/model/adapters/diagnostics/SentryDiagnosticsAdapter.d.ts +2 -1
  65. package/dist/model/adapters/diagnostics/SentryDiagnosticsAdapter.types.d.ts +1 -1
  66. package/dist/model/config/{diagnostics.d.ts → diagnostics.config.d.ts} +1 -1
  67. package/dist/model/config/domain.config.d.ts +6 -0
  68. package/dist/model/config/kernel.config.d.ts +44 -0
  69. package/dist/model/config/{endge-modules.d.ts → modules.config.d.ts} +1 -0
  70. package/dist/model/config/{ui-composition-defaults.d.ts → ui-composition.config.d.ts} +1 -0
  71. package/dist/model/{endge/kernel → kernel}/endge.d.ts +52 -53
  72. package/dist/model/{endge → modules}/context/endge-configuration.d.ts +2 -2
  73. package/dist/model/{endge → modules}/context/endge-context.d.ts +13 -34
  74. package/dist/model/{endge → modules}/context/endge-vars.d.ts +1 -2
  75. package/dist/model/{endge → modules}/context/endge-workspace.d.ts +2 -2
  76. package/dist/model/{endge → modules}/diagnostics/endge-diagnostics.d.ts +3 -2
  77. package/dist/model/{endge → modules}/diagnostics/endge-problems.d.ts +1 -1
  78. package/dist/model/{endge → modules}/diagnostics/endge-telemetry.d.ts +2 -1
  79. package/dist/model/modules/domain/endge-domain-repository.d.ts +60 -0
  80. package/dist/model/{endge → modules}/domain/endge-domain.d.ts +10 -25
  81. package/dist/model/{endge → modules}/domain/resolved/resolved-entity-index.d.ts +2 -2
  82. package/dist/model/{endge/kernel → modules/events}/endge-events.d.ts +1 -2
  83. package/dist/model/{endge → modules}/mock/EndgeMock.d.ts +1 -1
  84. package/dist/model/{endge → modules}/program/endge-compiler.d.ts +2 -0
  85. package/dist/model/{endge → modules}/runtime/core/endge-bind.d.ts +1 -1
  86. package/dist/model/{endge → modules}/runtime/core/endge-runtime.d.ts +11 -6
  87. package/dist/model/{endge → modules}/runtime/execution/computation/ComputationGraphExecutor.d.ts +2 -1
  88. package/dist/model/{endge → modules}/runtime/execution/computation/ComputationResource.d.ts +2 -2
  89. package/dist/model/{endge → modules}/runtime/execution/computation/ComputationResourceRegistry.d.ts +1 -1
  90. package/dist/model/{endge → modules}/runtime/execution/computation/EndgeComputation.d.ts +2 -1
  91. package/dist/model/{endge → modules}/runtime/execution/endge-composition.d.ts +2 -1
  92. package/dist/model/{endge → modules}/runtime/execution/endge-query.d.ts +2 -1
  93. package/dist/model/{endge → modules}/runtime/input/endge-sse.d.ts +1 -10
  94. package/dist/model/modules/security/auth/AuthAdapterRegistry.d.ts +13 -0
  95. package/dist/model/modules/security/auth/AuthProfileRegistry.d.ts +32 -0
  96. package/dist/model/modules/security/auth/AuthRequestResolver.d.ts +11 -0
  97. package/dist/model/modules/security/auth/AuthSessionManager.d.ts +63 -0
  98. package/dist/model/modules/security/auth/AuthSessionStore.d.ts +20 -0
  99. package/dist/model/modules/security/auth/adapters/BearerAuthAdapter.d.ts +10 -0
  100. package/dist/model/modules/security/auth/adapters/KeycloakAuthAdapter.d.ts +25 -0
  101. package/dist/model/modules/security/endge-auth.d.ts +29 -0
  102. package/dist/model/{endge → modules}/ui/endge-styles.d.ts +1 -1
  103. package/dist/model/{endge → modules}/ui/registry/UIAdapterRegistry.d.ts +2 -0
  104. package/dist/model/services/auth/KeycloakAuthClient.d.ts +19 -15
  105. package/dist/model/services/compiler/component-sfc/component-sfc-built-in-tags.d.ts +1 -1
  106. package/dist/model/services/compiler/component-sfc/component-sfc-compile.d.ts +7 -1
  107. package/dist/model/services/compiler/component-sfc/component-sfc-dependencies.d.ts +2 -1
  108. package/dist/model/services/compiler/component-sfc/component-sfc-expression.d.ts +1 -1
  109. package/dist/model/services/compiler/component-sfc/component-sfc-forward.d.ts +2 -1
  110. package/dist/model/services/compiler/component-sfc/component-sfc-parse.d.ts +2 -1
  111. package/dist/model/services/compiler/component-sfc/component-sfc-ports.d.ts +2 -1
  112. package/dist/model/services/compiler/component-sfc/component-sfc-script.d.ts +2 -1
  113. package/dist/model/services/compiler/component-sfc/component-sfc-source-parts.d.ts +1 -1
  114. package/dist/model/services/compiler/component-sfc/component-sfc-style.d.ts +2 -1
  115. package/dist/model/services/compiler/component-sfc/component-sfc-table-menu.d.ts +9 -10
  116. package/dist/model/services/compiler/component-sfc/component-sfc-table-pin.d.ts +1 -1
  117. package/dist/model/services/compiler/component-sfc/component-sfc-table-sort.d.ts +1 -1
  118. package/dist/model/services/compiler/component-sfc/component-sfc-table-visibility.d.ts +2 -1
  119. package/dist/model/services/compiler/component-sfc/component-sfc-template.d.ts +7 -3
  120. package/dist/model/services/compiler/computation/computation-compile.d.ts +1 -1
  121. package/dist/model/services/configuration/endge-configuration.d.ts +1 -1
  122. package/dist/model/services/document/domain-provider.d.ts +10 -0
  123. package/dist/model/services/document/endge-service-document-serializer.d.ts +5 -0
  124. package/dist/model/services/source-engine/component-sfc/component-sfc-metadata-source-patch.d.ts +1 -1
  125. package/dist/model/services/source-engine/component-sfc/component-sfc-ports-source-patch.d.ts +1 -1
  126. package/dist/model/services/source-engine/component-sfc/component-sfc-props-source-patch.d.ts +2 -1
  127. package/dist/model/services/source-engine/component-sfc/component-sfc-table-source-patch.d.ts +1 -1
  128. package/dist/model/services/source-engine/component-sfc/component-sfc-visual-projection.d.ts +1 -1
  129. package/dist/model/services/source-engine/migrations/query-source-v1-migration.d.ts +17 -0
  130. package/dist/model/services/source-engine/source-document-reference.d.ts +5 -1
  131. package/dist/model/services/source-engine/strategies/CompositionSourceLanguageStrategy.d.ts +1 -0
  132. package/dist/model/services/source-engine/strategies/ComputationSourceLanguageStrategy.d.ts +1 -0
  133. package/dist/model/services/source-engine/strategies/DataViewSourceLanguageStrategy.d.ts +1 -0
  134. package/dist/model/services/source-engine/strategies/FilterSourceLanguageStrategy.d.ts +1 -0
  135. package/dist/model/services/source-engine/strategies/QuerySourceLanguageStrategy.d.ts +1 -0
  136. package/dist/model/services/source-engine/strategies/StoreSourceLanguageStrategy.d.ts +1 -0
  137. package/dist/model/services/source-engine/strategies/TypeSourceLanguageStrategy.d.ts +1 -9
  138. package/dist/model/services/style/endgecss-compile.d.ts +1 -1
  139. package/dist/model/services/style/endgecss-match.d.ts +1 -1
  140. package/dist/test/security/auth-session-manager.test.d.ts +1 -0
  141. package/dist/test/security/auth-session-store.test.d.ts +1 -0
  142. package/dist/test/security/auth-sse.test.d.ts +1 -0
  143. package/dist/test/security/auth-test-helpers.d.ts +13 -0
  144. package/package.json +14 -15
  145. package/dist/domain/types/auth/auth.types.d.ts +0 -78
  146. package/dist/domain/types/auth/index.d.ts +0 -2
  147. package/dist/domain/types/component/index.d.ts +0 -3
  148. package/dist/domain/types/component/sfc/index.d.ts +0 -14
  149. package/dist/domain/types/computation/index.d.ts +0 -1
  150. package/dist/domain/types/configuration/index.d.ts +0 -1
  151. package/dist/domain/types/diagnostics/index.d.ts +0 -2
  152. package/dist/domain/types/document/index.d.ts +0 -11
  153. package/dist/domain/types/document/schema.types.d.ts +0 -108
  154. package/dist/domain/types/flow/index.d.ts +0 -4
  155. package/dist/domain/types/kernel/index.d.ts +0 -4
  156. package/dist/domain/types/mock/index.d.ts +0 -1
  157. package/dist/domain/types/program/index.d.ts +0 -2
  158. package/dist/domain/types/runtime/index.d.ts +0 -17
  159. package/dist/domain/types/source/index.d.ts +0 -10
  160. package/dist/domain/types/style/index.d.ts +0 -1
  161. package/dist/domain/types/ui/index.d.ts +0 -6
  162. package/dist/model/adapters/diagnostics/index.d.ts +0 -4
  163. package/dist/model/config/compiler.d.ts +0 -11
  164. package/dist/model/config/computation.d.ts +0 -3
  165. package/dist/model/config/endge-workspace.d.ts +0 -9
  166. package/dist/model/config/events.d.ts +0 -16
  167. package/dist/model/config/index.d.ts +0 -7
  168. package/dist/model/config/mock-providers.d.ts +0 -3
  169. package/dist/model/config/persistance_config.d.ts +0 -6
  170. package/dist/model/config/storage_config.d.ts +0 -4
  171. package/dist/model/db/repositories/Actions_Repository.d.ts +0 -34
  172. package/dist/model/db/repositories/AuthProfiles_Repository.d.ts +0 -28
  173. package/dist/model/db/repositories/ComponentSFCs_Repository.d.ts +0 -31
  174. package/dist/model/db/repositories/Components_Repository.d.ts +0 -64
  175. package/dist/model/db/repositories/Compositions_Repository.d.ts +0 -30
  176. package/dist/model/db/repositories/Computations_Repository.d.ts +0 -28
  177. package/dist/model/db/repositories/Converters_Repository.d.ts +0 -49
  178. package/dist/model/db/repositories/DataViews_Repository.d.ts +0 -30
  179. package/dist/model/db/repositories/Environments_Repository.d.ts +0 -48
  180. package/dist/model/db/repositories/Filters_Repository.d.ts +0 -61
  181. package/dist/model/db/repositories/Folders_Repository.d.ts +0 -36
  182. package/dist/model/db/repositories/I18nBundles_Repository.d.ts +0 -51
  183. package/dist/model/db/repositories/Integrations_Repository.d.ts +0 -42
  184. package/dist/model/db/repositories/Mocks_Repository.d.ts +0 -39
  185. package/dist/model/db/repositories/Navigations_Repository.d.ts +0 -41
  186. package/dist/model/db/repositories/PageTemplates_Repository.d.ts +0 -62
  187. package/dist/model/db/repositories/Pages_Repository.d.ts +0 -95
  188. package/dist/model/db/repositories/Parameters_Repository.d.ts +0 -60
  189. package/dist/model/db/repositories/Policies_Repository.d.ts +0 -39
  190. package/dist/model/db/repositories/Projects_Repository.d.ts +0 -38
  191. package/dist/model/db/repositories/Queries_Repository.d.ts +0 -32
  192. package/dist/model/db/repositories/Stores_Repository.d.ts +0 -27
  193. package/dist/model/db/repositories/Streams_Repository.d.ts +0 -27
  194. package/dist/model/db/repositories/Styles_Repository.d.ts +0 -34
  195. package/dist/model/db/repositories/Tenants_Repository.d.ts +0 -47
  196. package/dist/model/db/repositories/Types_Repository.d.ts +0 -55
  197. package/dist/model/db/repositories/Updates_Repository.d.ts +0 -26
  198. package/dist/model/db/repositories/Versions_Repository.d.ts +0 -15
  199. package/dist/model/db/repositories/Vocabs_Repository.d.ts +0 -67
  200. package/dist/model/db/repositories/Workspaces_Repository.d.ts +0 -24
  201. package/dist/model/db/repositories/payload-api.d.ts +0 -10
  202. package/dist/model/db/schema-database/BaseSchemaRepositoriy.d.ts +0 -19
  203. package/dist/model/db/schema-database/PayloadSchemaAdapter.d.ts +0 -34
  204. package/dist/model/db/schema-database/SchemaStorageAdapter.d.ts +0 -40
  205. package/dist/model/endge/context/index.d.ts +0 -8
  206. package/dist/model/endge/diagnostics/index.d.ts +0 -4
  207. package/dist/model/endge/domain/index.d.ts +0 -2
  208. package/dist/model/endge/kernel/index.d.ts +0 -2
  209. package/dist/model/endge/program/index.d.ts +0 -3
  210. package/dist/model/endge/runtime/core/index.d.ts +0 -4
  211. package/dist/model/endge/runtime/execution/index.d.ts +0 -3
  212. package/dist/model/endge/runtime/flow/index.d.ts +0 -2
  213. package/dist/model/endge/runtime/index.d.ts +0 -4
  214. package/dist/model/endge/runtime/input/index.d.ts +0 -1
  215. package/dist/model/endge/schema/endge-schema-database.d.ts +0 -268
  216. package/dist/model/endge/schema/index.d.ts +0 -1
  217. package/dist/model/endge/security/endge-auth-profiles.d.ts +0 -70
  218. package/dist/model/endge/security/endge-auth.d.ts +0 -143
  219. package/dist/model/endge/security/index.d.ts +0 -2
  220. package/dist/model/endge/ui/index.d.ts +0 -4
  221. package/dist/model/services/auth/AuthTokenService.d.ts +0 -25
  222. package/dist/model/services/configuration/index.d.ts +0 -1
  223. package/dist/model/services/style/index.d.ts +0 -2
  224. /package/dist/model/{endge → modules}/context/endge-i18n.d.ts +0 -0
  225. /package/dist/model/{endge → modules}/context/persistence/EndgeStorageAdapterRegistry.d.ts +0 -0
  226. /package/dist/model/{endge → modules}/context/persistence/RuntimeStateController.d.ts +0 -0
  227. /package/dist/model/{endge → modules}/context/persistence/adapters/DisabledContextAdapter.d.ts +0 -0
  228. /package/dist/model/{endge → modules}/context/persistence/adapters/LocalStorageContextAdapter.d.ts +0 -0
  229. /package/dist/model/{endge → modules}/diagnostics/endge-runtime-debugger.d.ts +0 -0
  230. /package/dist/model/{endge → modules}/domain/endge-types.d.ts +0 -0
  231. /package/dist/model/{endge → modules}/domain/endge-vocabs.d.ts +0 -0
  232. /package/dist/model/{endge → modules}/program/endge-program.d.ts +0 -0
  233. /package/dist/model/{endge → modules}/program/endge-source.d.ts +0 -0
  234. /package/dist/model/{endge → modules}/runtime/core/endge-actions.d.ts +0 -0
  235. /package/dist/model/{endge → modules}/runtime/core/endge-updates.d.ts +0 -0
  236. /package/dist/model/{endge → modules}/runtime/execution/endge-computation.d.ts +0 -0
  237. /package/dist/model/{endge → modules}/runtime/execution/endge-data-view.d.ts +0 -0
  238. /package/dist/model/{endge → modules}/runtime/execution/endge-project.d.ts +0 -0
  239. /package/dist/model/{endge → modules}/runtime/flow/endge-flow-registry.d.ts +0 -0
  240. /package/dist/model/{endge → modules}/runtime/flow/endge-flow.d.ts +0 -0
  241. /package/dist/model/{endge → modules}/runtime/implementation/endge-implementations.d.ts +0 -0
  242. /package/dist/model/{endge → modules}/runtime/implementation/implementation-binding-registry.d.ts +0 -0
  243. /package/dist/model/{endge → modules}/runtime/implementation/implementation-provider-registry.d.ts +0 -0
  244. /package/dist/model/{endge → modules}/ui/endge-ui-registry.d.ts +0 -0
  245. /package/dist/model/{endge → modules}/ui/endge-ui.d.ts +0 -0
  246. /package/dist/test/{model/db/repositories/types-repository.test.d.ts → domain/entities/runtime/runtime-memory-lifecycle.test.d.ts} +0 -0
  247. /package/dist/test/model/{endge → modules}/context/endge-context.test.d.ts +0 -0
  248. /package/dist/test/model/{endge → modules}/context/endge-workspace.test.d.ts +0 -0
  249. /package/dist/test/model/{endge → modules}/context/workspace-variables.test.d.ts +0 -0
  250. /package/dist/test/model/{endge → modules}/domain/endge-domain-export.test.d.ts +0 -0
  251. /package/dist/test/model/{endge/domain/type-identity-index.test.d.ts → modules/domain/service-backend-snapshot.test.d.ts} +0 -0
  252. /package/dist/test/model/{endge/mock/EndgeMock.test.d.ts → modules/domain/type-identity-index.test.d.ts} +0 -0
  253. /package/dist/test/model/{endge/program/endge-compiler-component-tags.test.d.ts → modules/mock/EndgeMock.test.d.ts} +0 -0
  254. /package/dist/test/model/{endge/program/endge-compiler-composition.test.d.ts → modules/program/endge-compiler-component-tags.test.d.ts} +0 -0
  255. /package/dist/test/model/{endge/program/endge-compiler-computation.test.d.ts → modules/program/endge-compiler-composition.test.d.ts} +0 -0
  256. /package/dist/test/model/{endge/program/endge-compiler-metadata.test.d.ts → modules/program/endge-compiler-computation.test.d.ts} +0 -0
  257. /package/dist/test/model/{endge/program/endge-compiler-ports.test.d.ts → modules/program/endge-compiler-metadata.test.d.ts} +0 -0
  258. /package/dist/test/model/{endge/program/endge-compiler-query-auth.test.d.ts → modules/program/endge-compiler-ports.test.d.ts} +0 -0
  259. /package/dist/test/model/{endge/program/endge-compiler-store-mock.test.d.ts → modules/program/endge-compiler-query-auth.test.d.ts} +0 -0
  260. /package/dist/test/model/{endge/program/endge-compiler-type.test.d.ts → modules/program/endge-compiler-store-mock.test.d.ts} +0 -0
  261. /package/dist/test/model/{endge/program/endge-program.test.d.ts → modules/program/endge-compiler-type.test.d.ts} +0 -0
  262. /package/dist/test/model/{endge/program/endge-source.test.d.ts → modules/program/endge-program.test.d.ts} +0 -0
  263. /package/dist/test/model/{endge/runtime/computation-resource.test.d.ts → modules/program/endge-source.test.d.ts} +0 -0
  264. /package/dist/test/model/{endge/runtime/computation-source-preview.test.d.ts → modules/runtime/computation-resource.test.d.ts} +0 -0
  265. /package/dist/test/model/{endge/runtime/endge-project.test.d.ts → modules/runtime/computation-source-preview.test.d.ts} +0 -0
  266. /package/dist/test/model/{endge/runtime/execution/endge-data-view-converter.test.d.ts → modules/runtime/endge-project.test.d.ts} +0 -0
  267. /package/dist/test/model/{endge/runtime/execution/endge-data-view.test.d.ts → modules/runtime/execution/endge-data-view-converter.test.d.ts} +0 -0
  268. /package/dist/test/model/{endge/schema/component-sfc-payload.test.d.ts → modules/runtime/execution/endge-data-view.test.d.ts} +0 -0
  269. /package/dist/test/model/{endge/schema/computation-payload.test.d.ts → services/compiler/component-sfc/component-sfc-editable.test.d.ts} +0 -0
  270. /package/dist/test/model/{endge/schema/document-create.test.d.ts → services/compiler/type/type-program-validation.test.d.ts} +0 -0
  271. /package/dist/test/model/{endge/schema/endge-schema-workspace.test.d.ts → services/source-engine/composition-component-events.test.d.ts} +0 -0
  272. /package/dist/test/model/{endge/schema/style-payload.test.d.ts → services/source-engine/query-source-v1-migration.test.d.ts} +0 -0
  273. /package/dist/test/{model/endge/schema/type-payload.test.d.ts → security/auth-adapters-and-profiles.test.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { ComputationResource as ComputationResourceContract, ComputationRuntimeErrorShape } from '../../../../../domain/types/computation';
1
+ import { ComputationResource as ComputationResourceContract, ComputationRuntimeErrorShape } from '../../../../../domain/types/computation/computation-runtime.types';
2
2
  type AsyncRunner<T> = (input: unknown) => Promise<T>;
3
3
  type SyncRunner<T> = (input: unknown) => T;
4
4
  /** Renderer-neutral latest-wins state for one computation consumer. */
@@ -13,7 +13,7 @@ export declare class ComputationResourceState<T = unknown> implements Computatio
13
13
  private _disposed;
14
14
  private _input;
15
15
  constructor(input: unknown, asyncRunner: AsyncRunner<T>, syncRunner?: SyncRunner<T> | null);
16
- get status(): import('../../../../../domain/types/computation').ComputationResourceStatus;
16
+ get status(): import('../../../../../domain/types/computation/computation-runtime.types').ComputationResourceStatus;
17
17
  get loading(): boolean;
18
18
  get value(): T | undefined;
19
19
  get error(): ComputationRuntimeErrorShape | null;
@@ -1,4 +1,4 @@
1
- import { ComputationResource as ComputationResourceContract } from '../../../../../domain/types/computation';
1
+ import { ComputationResource as ComputationResourceContract } from '../../../../../domain/types/computation/computation-runtime.types';
2
2
  import { ComputationResourceState } from './ComputationResource';
3
3
  /** Host-owned registry that isolates resources by call site and row consumer key. */
4
4
  export declare class ComputationResourceRegistry {
@@ -1,4 +1,5 @@
1
- import { ComputationProgramPayload, ComputationSandboxAdapter, ComputationSandboxRequest } from '../../../../../domain/types/computation';
1
+ import { ComputationSandboxAdapter, ComputationSandboxRequest } from '../../../../../domain/types/computation/computation-runtime.types';
2
+ import { ComputationProgramPayload } from '../../../../../domain/types/computation/computation-program.types';
2
3
  import { ProgramArtifact } from '../../../../../domain/types/program/program.types';
3
4
  import { ComputationResourceState } from './ComputationResource';
4
5
  /** Executes compiled computation graphs and creates renderer-neutral resources. */
@@ -1,8 +1,9 @@
1
1
  import { CompositionMountOptions, CompositionPreviewProps, CompositionSession } from '../../../../domain/types/source/composition-source.types';
2
+ import { EndgeDataMode } from '../../../../domain/types/document/workspace.types';
2
3
  /** Публичный facade монтирования Composition runtime sessions. */
3
4
  export declare class EndgeComposition {
4
5
  /** Монтирует Composition runtime и возвращает управляемую session. */
5
6
  mount(identity: string, options?: CompositionMountOptions): Promise<CompositionSession>;
6
7
  }
7
8
  /** Materializes preview-only literals and RMock references into regular Composition props. */
8
- export declare function materializeCompositionPreviewProps(previewProps: CompositionPreviewProps | null | undefined): Record<string, unknown>;
9
+ export declare function materializeCompositionPreviewProps(previewProps: CompositionPreviewProps | null | undefined, dataMode?: EndgeDataMode): Record<string, unknown>;
@@ -1,6 +1,7 @@
1
1
  import { RQuery } from '../../../../domain/entities/reflect/RQuery';
2
2
  import { AxiosInstance } from 'axios';
3
3
  import { QueryProgramPayload } from '../../../../domain/types/program/program.types';
4
+ import { RuntimeParentRef } from '../../../../domain/types/runtime/runtime-execute.type';
4
5
  /**
5
6
  * Модуль выполнения доменных query: custom executor, mock data и REST.
6
7
  */
@@ -14,7 +15,7 @@ export declare class EndgeQuery {
14
15
  /**
15
16
  * Выполняет query через compiled artifact и сохраняет результат в Raph.
16
17
  */
17
- run(query: RQuery, params?: Record<string, unknown>): Promise<any>;
18
+ run(query: RQuery, params?: Record<string, unknown>, parent?: RuntimeParentRef | null): Promise<any>;
18
19
  /** Выполняет artifact для QueryRuntimeHost без преждевременной записи stores. */
19
20
  executeArtifact(input: {
20
21
  payload: QueryProgramPayload;
@@ -6,8 +6,7 @@ export declare class EndgeSSE extends EndgeModule {
6
6
  private _sseManager;
7
7
  private readonly _delayExecutor;
8
8
  private readonly _upsMeter;
9
- private _tokenCached;
10
- private _tokenRefreshTimer;
9
+ private _forceRefreshOnReconnect;
11
10
  /**
12
11
  * Создает SSE-модуль и delayed executor для пакетного уведомления подписчиков.
13
12
  */
@@ -44,12 +43,4 @@ export declare class EndgeSSE extends EndgeModule {
44
43
  * Показывает, активно ли SSE-подключение.
45
44
  */
46
45
  get isSSEActive(): boolean;
47
- /**
48
- * Запускает Token Refresh Timer.
49
- */
50
- private startTokenRefreshTimer;
51
- /**
52
- * Внутренний helper модуля: refresh Token Cached.
53
- */
54
- private refreshTokenCached;
55
46
  }
@@ -0,0 +1,13 @@
1
+ import { AuthProfileAdapter, AuthProfileSchema } from '../../../../domain/types/auth/auth-profile.types';
2
+ /** Registry встроенных и plugin auth adapters. */
3
+ export declare class AuthAdapterRegistry {
4
+ private readonly _adapters;
5
+ /** Регистрирует adapter и запрещает неявную замену существующего id. */
6
+ register(adapter: AuthProfileAdapter): void;
7
+ /** Возвращает adapter по id. */
8
+ get(id: string): AuthProfileAdapter | null;
9
+ /** Требует зарегистрированный adapter для profile. */
10
+ require(profile: AuthProfileSchema): AuthProfileAdapter;
11
+ /** Проверяет profile его adapter-ом. */
12
+ validate(profile: AuthProfileSchema): void;
13
+ }
@@ -0,0 +1,32 @@
1
+ import { RAuthProfile } from '../../../../domain/entities/reflect/RAuthProfile';
2
+ import { AuthAdapterContext, AuthProfileSchema, AuthProfileTestOptions, AuthProfileTestResult, EndgeAuthCredentialResolver } from '../../../../domain/types/auth/auth-profile.types';
3
+ import { AuthAdapterRegistry } from './AuthAdapterRegistry';
4
+ interface AuthProfileRegistryDependencies {
5
+ listProfiles: () => RAuthProfile[];
6
+ getDefaultIdentity: () => string | null;
7
+ getCredentialResolver: () => EndgeAuthCredentialResolver | undefined;
8
+ getSignal: () => AbortSignal | undefined;
9
+ }
10
+ /** Читает persisted AuthProfile и проверяет adapter-specific contracts. */
11
+ export declare class AuthProfileRegistry {
12
+ private readonly _adapters;
13
+ private readonly _dependencies;
14
+ constructor(_adapters: AuthAdapterRegistry, _dependencies: AuthProfileRegistryDependencies);
15
+ /** Возвращает все persisted profiles. */
16
+ list(): AuthProfileSchema[];
17
+ /** Возвращает profile по identity. */
18
+ get(identity: string): AuthProfileSchema | null;
19
+ /** Возвращает активный default profile или сообщает о повреждённой configuration. */
20
+ getDefault(): AuthProfileSchema | null;
21
+ /** Проверяет все не удалённые profiles текущего Domain. */
22
+ validateAll(): void;
23
+ /** Проверяет profile в изолированной session без записи token в storage. */
24
+ test(profile: AuthProfileSchema, options?: AuthProfileTestOptions): Promise<AuthProfileTestResult>;
25
+ /** Требует существующий активный profile. */
26
+ requireActive(profileOrIdentity: AuthProfileSchema | string): AuthProfileSchema;
27
+ /** Создаёт adapter context с opaque host credential resolver. */
28
+ createAdapterContext(profile: AuthProfileSchema, credentials?: Record<string, string>): AuthAdapterContext;
29
+ private _adapterContext;
30
+ private _validateCommon;
31
+ }
32
+ export {};
@@ -0,0 +1,11 @@
1
+ import { AuthRequestPolicy, AuthResolvedSession, AuthResolveOptions } from '../../../../domain/types/auth/auth-profile.types';
2
+ import { AuthProfileRegistry } from './AuthProfileRegistry';
3
+ import { AuthSessionManager } from './AuthSessionManager';
4
+ /** Разрешает auth policy запроса без изменения application session identity. */
5
+ export declare class AuthRequestResolver {
6
+ private readonly _profiles;
7
+ private readonly _sessions;
8
+ constructor(_profiles: AuthProfileRegistry, _sessions: AuthSessionManager);
9
+ /** Возвращает transport-neutral credentials для none/inherit/profile policy. */
10
+ resolve(policy: AuthRequestPolicy, options?: AuthResolveOptions): Promise<AuthResolvedSession>;
11
+ }
@@ -0,0 +1,63 @@
1
+ import { AuthEnsureOptions, AuthLoginCredentials, AuthProfileSchema, AuthResolvedSession, AuthTokenSet, EndgeAuthContext } from '../../../../domain/types/auth/auth-profile.types';
2
+ import { AuthAdapterRegistry } from './AuthAdapterRegistry';
3
+ import { AuthProfileRegistry } from './AuthProfileRegistry';
4
+ import { AuthSessionStore } from './AuthSessionStore';
5
+ interface AuthSessionManagerDependencies {
6
+ getWorkspaceIdentity: () => string;
7
+ onApplicationSessionChange: () => void;
8
+ now?: () => number;
9
+ }
10
+ /** Владеет application session и изолированными sessions профильных запросов. */
11
+ export declare class AuthSessionManager {
12
+ private readonly _profiles;
13
+ private readonly _adapters;
14
+ private readonly _store;
15
+ private readonly _dependencies;
16
+ private readonly _states;
17
+ private readonly _operations;
18
+ private readonly _now;
19
+ private _applicationProfile;
20
+ constructor(_profiles: AuthProfileRegistry, _adapters: AuthAdapterRegistry, _store: AuthSessionStore, _dependencies: AuthSessionManagerDependencies);
21
+ /** Identity текущего application profile. */
22
+ get profileIdentity(): string | null;
23
+ /** Возвращает выбранный application profile для request mode=inherit. */
24
+ getApplicationProfile(): AuthProfileSchema | null;
25
+ /** Показывает наличие действующей application session. */
26
+ get isAuthenticated(): boolean;
27
+ /** Безопасный actor/session context без tokens. */
28
+ get context(): EndgeAuthContext;
29
+ /** Claims application session только для presentation, не для authorization decisions. */
30
+ get claims(): Record<string, unknown>;
31
+ /** Загруженный OIDC userinfo application session. */
32
+ get userInfo(): Record<string, unknown> | null;
33
+ /** Выбирает default application profile и восстанавливает его snapshot. */
34
+ configureDefault(profile: AuthProfileSchema | null): void;
35
+ /** Выполняет interactive login application profile. */
36
+ login(credentials: AuthLoginCredentials): Promise<void>;
37
+ /** Входит в указанный Keycloak profile по переданным credentials и делает его application session. */
38
+ loginWithProfile(profileIdentity: string, credentials: AuthLoginCredentials): Promise<void>;
39
+ private _loginWithProfile;
40
+ /** Гарантирует действующую application session. */
41
+ ensureValid(options?: AuthEnsureOptions): Promise<boolean>;
42
+ /** Загружает userinfo для действующей application session. */
43
+ ensureUserInfo(): Promise<Record<string, unknown> | null>;
44
+ /** Завершает application session и всегда очищает local snapshot. */
45
+ logout(): Promise<void>;
46
+ /** Гарантирует session указанного profile, не меняя application context. */
47
+ ensureProfile(profileInput: AuthProfileSchema, options?: AuthEnsureOptions): Promise<AuthTokenSet | null>;
48
+ /** Преобразует token set в transport-neutral request session. */
49
+ toResolvedSession(profile: AuthProfileSchema, token: AuthTokenSet): AuthResolvedSession;
50
+ /** Сбрасывает runtime state, сохраняя local/sessionStorage snapshots. */
51
+ resetRuntime(): void;
52
+ private _authenticateWhenAllowed;
53
+ private _authenticate;
54
+ private _setState;
55
+ private _clearState;
56
+ private _applicationState;
57
+ private _isAccessTokenUsable;
58
+ private _isAccessTokenFresh;
59
+ private _isRefreshExpired;
60
+ private _workspaceIdentity;
61
+ private _singleFlight;
62
+ }
63
+ export {};
@@ -0,0 +1,20 @@
1
+ import { AuthProfileSchema } from '../../../../domain/types/auth/auth-profile.types';
2
+ import { AuthSessionSnapshot } from '../../../../domain/types/auth/auth-runtime.types';
3
+ /** Хранит versioned token snapshots согласно profile persistence policy. */
4
+ export declare class AuthSessionStore {
5
+ private readonly _memory;
6
+ private _namespace;
7
+ /** Устанавливает namespace, предоставленный host-приложением до restore/build. */
8
+ setNamespace(namespace: string | undefined): void;
9
+ /** Возвращает namespaced storage key для workspace/profile. */
10
+ getKey(workspaceIdentity: string, profileIdentity: string): string;
11
+ /** Восстанавливает snapshot и удаляет повреждённое значение. */
12
+ read(workspaceIdentity: string, profile: AuthProfileSchema): AuthSessionSnapshot | null;
13
+ /** Сохраняет token snapshot без credentials и userinfo. */
14
+ write(workspaceIdentity: string, profile: AuthProfileSchema, snapshot: AuthSessionSnapshot): void;
15
+ /** Удаляет session из всех поддерживаемых storage. */
16
+ remove(workspaceIdentity: string, profileIdentity: string): void;
17
+ /** Очищает только memory sessions при reset lifecycle. */
18
+ resetRuntime(): void;
19
+ private _storage;
20
+ }
@@ -0,0 +1,10 @@
1
+ import { AuthAdapterContext, AuthProfileAdapter, AuthProfileSchema, AuthTokenSet } from '../../../../../domain/types/auth/auth-profile.types';
2
+ /** Разрешает opaque bearer token исключительно через host credential resolver. */
3
+ export declare class BearerAuthAdapter implements AuthProfileAdapter {
4
+ readonly id = "bearer";
5
+ readonly label = "Bearer token";
6
+ /** Проверяет строгий persisted contract bearer profile. */
7
+ validate(profile: AuthProfileSchema): void;
8
+ /** Получает token у host и не сохраняет его в browser storage. */
9
+ authenticate(context: AuthAdapterContext): Promise<AuthTokenSet>;
10
+ }
@@ -0,0 +1,25 @@
1
+ import { AuthAdapterContext, AuthProfileAdapter, AuthProfileSchema, AuthTokenSet } from '../../../../../domain/types/auth/auth-profile.types';
2
+ import { KeycloakAuthTransportFactory } from '../../../../../domain/types/auth/auth-runtime.types';
3
+ /** Keycloak password-grant adapter без владения storage или application state. */
4
+ export declare class KeycloakAuthAdapter implements AuthProfileAdapter {
5
+ private readonly _resolvePublicValue;
6
+ private readonly _createTransport;
7
+ private readonly _now;
8
+ readonly id = "keycloak";
9
+ readonly label = "Keycloak";
10
+ constructor(_resolvePublicValue: (raw: unknown) => string, _createTransport?: KeycloakAuthTransportFactory, _now?: () => number);
11
+ /** Проверяет строгий persisted contract Keycloak profile. */
12
+ validate(profile: AuthProfileSchema): void;
13
+ /** Выполняет interactive или service password grant. */
14
+ authenticate(context: AuthAdapterContext): Promise<AuthTokenSet>;
15
+ /** Обновляет Keycloak session. */
16
+ refresh(context: AuthAdapterContext): Promise<AuthTokenSet>;
17
+ /** Завершает Keycloak session при наличии refresh token. */
18
+ logout(context: AuthAdapterContext): Promise<void>;
19
+ /** Загружает OIDC userinfo. */
20
+ loadUserInfo(context: AuthAdapterContext): Promise<Record<string, unknown> | null>;
21
+ /** Собирает resolved public config без чтения credential material. */
22
+ private _config;
23
+ private _transport;
24
+ private _requireToken;
25
+ }
@@ -0,0 +1,29 @@
1
+ import { EndgeBootContext } from '../../../domain/types/kernel/bootstrap.types';
2
+ import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
3
+ import { AuthAdapterRegistry } from './auth/AuthAdapterRegistry';
4
+ import { AuthProfileRegistry } from './auth/AuthProfileRegistry';
5
+ import { AuthRequestResolver } from './auth/AuthRequestResolver';
6
+ import { AuthSessionManager } from './auth/AuthSessionManager';
7
+ /** Единый lifecycle owner application session и request authentication. */
8
+ export declare class EndgeAuth extends EndgeModule {
9
+ readonly adapters: AuthAdapterRegistry;
10
+ readonly profiles: AuthProfileRegistry;
11
+ readonly session: AuthSessionManager;
12
+ readonly requests: AuthRequestResolver;
13
+ private _credentialResolver;
14
+ private _signal;
15
+ private _abortController;
16
+ private _detachHostAbort;
17
+ private _unregisterDiagnosticsContext;
18
+ private readonly _store;
19
+ /** Собирает auth subsystem и регистрирует встроенные adapters один раз. */
20
+ constructor();
21
+ /** Подключает host credential port и безопасные context providers. */
22
+ setup(ctx: EndgeBootContext): void;
23
+ /** Валидирует Domain profiles и восстанавливает default application session. */
24
+ build(): void;
25
+ /** Сбрасывает runtime state, не удаляя persisted browser session. */
26
+ reset(): void;
27
+ private _resolvePublicValue;
28
+ private _diagnosticsAttributes;
29
+ }
@@ -1,4 +1,4 @@
1
- import { EndgeStyleMatchNode, AcquireEndgeStyleOptions, EndgeStyleLease, EndgeStylePlacement, EndgeStyleResolvedDeclaration, EndgeStyleSheetArtifact, EndgeStyleTargetProfile } from '../../../domain/types/style';
1
+ import { EndgeStyleMatchNode, AcquireEndgeStyleOptions, EndgeStyleLease, EndgeStylePlacement, EndgeStyleResolvedDeclaration, EndgeStyleSheetArtifact, EndgeStyleTargetProfile } from '../../../domain/types/style/style.types';
2
2
  import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
3
3
  export interface EndgeStyleResolver {
4
4
  readonly target: EndgeStyleTargetProfile;
@@ -11,6 +11,8 @@ export declare class UIAdapterRegistry {
11
11
  has(id: string | null | undefined): boolean;
12
12
  /** Возвращает adapter по id без проверки его контракта. */
13
13
  get<TImplementation = unknown>(id: string | null | undefined): UIRenderAdapter<TImplementation> | null;
14
+ /** Возвращает configured adapter либо первый зарегистрированный fallback в заданном порядке. */
15
+ resolveAvailable<TImplementation = unknown>(preferredId: string | null | undefined, fallbackIds?: readonly string[]): UIRenderAdapter<TImplementation> | null;
14
16
  /** Возвращает adapter и проверяет его protocol, renderer и обязательные renderer keys. */
15
17
  require<TImplementation = unknown>(requirement: UIRenderAdapterRequirement): UIRenderAdapter<TImplementation>;
16
18
  /** Проверяет и делает adapter активным для текущего workspace runtime. */
@@ -1,17 +1,21 @@
1
- import { KeycloakTokenResponse, StoredAuthToken } from '../../../domain/types/auth/auth.types';
1
+ import { AuthTokenSet } from '../../../domain/types/auth/auth-profile.types';
2
+ import { KeycloakAuthTransport, KeycloakTokenResponse, KeycloakTransportConfig } from '../../../domain/types/auth/auth-runtime.types';
2
3
  import { AxiosInstance } from 'axios';
3
- export declare function mapTokenResponseToStored(data: KeycloakTokenResponse, now?: Date): StoredAuthToken;
4
- export declare class KeycloakAuthClient {
5
- private readonly http;
6
- private readonly tokenPath;
7
- private readonly logoutPath;
8
- constructor(baseUrl: string, tokenPath: string, logoutPath: string);
9
- passwordGrant(payload: Record<string, string>): Promise<KeycloakTokenResponse>;
10
- refreshGrant(payload: Record<string, string>): Promise<KeycloakTokenResponse>;
11
- logout(payload: Record<string, string>): Promise<void>;
12
- /**
13
- * Получить userinfo для текущего токена.
14
- * ВАЖНО: сюда нужно передавать axios-инстанс с уже выставленным Authorization.
15
- */
16
- getUserInfo(authorizedHttp: AxiosInstance): Promise<any>;
4
+ /** Преобразует transport response Keycloak в runtime token set. */
5
+ export declare function mapKeycloakTokenResponse(data: KeycloakTokenResponse, now?: number, previous?: AuthTokenSet): AuthTokenSet;
6
+ /** Axios transport для стандартных Keycloak OIDC endpoints. */
7
+ export declare class KeycloakAuthClient implements KeycloakAuthTransport {
8
+ private readonly _http;
9
+ private readonly _tokenPath;
10
+ private readonly _logoutPath;
11
+ private readonly _userinfoPath;
12
+ constructor(config: KeycloakTransportConfig, http?: AxiosInstance);
13
+ /** Выполняет password grant. */
14
+ passwordGrant(payload: Record<string, string>, signal?: AbortSignal): Promise<KeycloakTokenResponse>;
15
+ /** Обновляет access token через refresh token. */
16
+ refreshGrant(payload: Record<string, string>, signal?: AbortSignal): Promise<KeycloakTokenResponse>;
17
+ /** Завершает Keycloak session. */
18
+ logout(payload: Record<string, string>, signal?: AbortSignal): Promise<void>;
19
+ /** Загружает OIDC userinfo текущей session. */
20
+ getUserInfo(accessToken: string, signal?: AbortSignal): Promise<Record<string, unknown>>;
17
21
  }
@@ -1,4 +1,4 @@
1
- import { RComponentSFC_IR_Tag } from '../../../../domain/types/component/sfc';
1
+ import { RComponentSFC_IR_Tag } from '../../../../domain/types/component/sfc/ir.types';
2
2
  export declare const ENDGE_SFC_BUILT_IN_TAGS: Set<RComponentSFC_IR_Tag>;
3
3
  /** Проверяет, является ли tag встроенным renderer-neutral SFC primitive. */
4
4
  export declare function isComponentSFCBuiltInTag(tag: string): tag is RComponentSFC_IR_Tag;
@@ -1,6 +1,10 @@
1
1
  import { RComponentContract, RComponentDependencies, RComponentDiagnostic } from '../../../../domain/types/component/component-core.types';
2
2
  import { ComponentSFCPreviewOptions, ComponentSFCPreviewProps } from '../../../../domain/types/program/program.types';
3
- import { RComponentSFCSource_Parts, RComponentSFC_AST, RComponentSFC_IR, RComponentSFC_RuntimeDependencies, ComponentSFCPortManifest, ComponentSFCPortProviderDescriptor } from '../../../../domain/types/component/sfc';
3
+ import { RComponentSFCSource_Parts } from '../../../../domain/types/component/sfc/source.types';
4
+ import { RComponentSFC_AST } from '../../../../domain/types/component/sfc/ast.types';
5
+ import { RComponentSFC_IR } from '../../../../domain/types/component/sfc/ir.types';
6
+ import { RComponentSFC_RuntimeDependencies } from '../../../../domain/types/component/sfc/dependencies.types';
7
+ import { ComponentSFCPortManifest, ComponentSFCPortProviderDescriptor } from '../../../../domain/types/component/sfc/ports.types';
4
8
  import { ProgramMetadata } from '../../../../domain/types/program/program-metadata.types';
5
9
  import { TypeSourceDefinition } from '../../../../domain/types/source/type-source.types';
6
10
  /** Результат полного SFC compiler pipeline в core. */
@@ -40,6 +44,8 @@ export interface ComponentSFCCompileOptions {
40
44
  resolvePortProvider?: (identity: string, expectedKind: 'computation' | 'component' | 'action') => ComponentSFCPortProviderDescriptor | null;
41
45
  /** Resolves the compiled public port manifest of a nested SFC component. */
42
46
  resolveComponentPortManifest?: (identity: string) => ComponentSFCPortManifest | null;
47
+ /** Resolves explicit root variants of one nested custom component. */
48
+ resolveComponentVariants?: (identity: string) => string[] | null;
43
49
  /** Resolves an external Type Registry definition used by a named SFC contract. */
44
50
  resolveTypeDefinition?: (identity: string) => TypeSourceDefinition | null;
45
51
  }
@@ -1,3 +1,4 @@
1
- import { RComponentSFC_IR, RComponentSFC_RuntimeDependencies } from '../../../../domain/types/component/sfc';
1
+ import { RComponentSFC_IR } from '../../../../domain/types/component/sfc/ir.types';
2
+ import { RComponentSFC_RuntimeDependencies } from '../../../../domain/types/component/sfc/dependencies.types';
2
3
  /** Анализирует SFC IR и собирает runtime-зависимости от входных props. */
3
4
  export declare function analyzeComponentSFCRuntimeDependencies(ir: RComponentSFC_IR | null): RComponentSFC_RuntimeDependencies;
@@ -1,5 +1,5 @@
1
1
  import { RComponentDiagnostic } from '../../../../domain/types/component/component-core.types';
2
- import { RComponentSFC_IR_Value } from '../../../../domain/types/component/sfc';
2
+ import { RComponentSFC_IR_Value } from '../../../../domain/types/component/sfc/ir.types';
3
3
  /** Контекст анализа выражения SFC template/script. */
4
4
  export interface ComponentSFCExpressionContext {
5
5
  /** Имена props, доступные выражению. */
@@ -1,5 +1,6 @@
1
1
  import { RComponentDependencies, RComponentDiagnostic } from '../../../../domain/types/component/component-core.types';
2
- import { ComponentSFCPortManifest, RComponentSFC_IR_Template } from '../../../../domain/types/component/sfc';
2
+ import { ComponentSFCPortManifest } from '../../../../domain/types/component/sfc/ports.types';
3
+ import { RComponentSFC_IR_Template } from '../../../../domain/types/component/sfc/ir.types';
3
4
  export interface ComponentSFCPortForwardOptions {
4
5
  resolveComponentPortManifest?: (identity: string) => ComponentSFCPortManifest | null;
5
6
  }
@@ -1,5 +1,6 @@
1
1
  import { RComponentDiagnostic } from '../../../../domain/types/component/component-core.types';
2
- import { RComponentSFCSource_Parts, RComponentSFC_AST } from '../../../../domain/types/component/sfc';
2
+ import { RComponentSFCSource_Parts } from '../../../../domain/types/component/sfc/source.types';
3
+ import { RComponentSFC_AST } from '../../../../domain/types/component/sfc/ast.types';
3
4
  /** Результат parser pass для SFC-компонента. */
4
5
  export interface ComponentSFCParseResult {
5
6
  /** Разложенный source для editor/debug UI. */
@@ -1,6 +1,7 @@
1
1
  import { RComponentDependencies, RComponentDiagnostic } from '../../../../domain/types/component/component-core.types';
2
2
  import { TypeSourceDefinition } from '../../../../domain/types/source/type-source.types';
3
- import { ComponentSFCEventAction, ComponentSFCPortManifest, ComponentSFCPortProviderDescriptor, RComponentSFC_AST_Script, RComponentSFC_IR_PortCall } from '../../../../domain/types/component/sfc';
3
+ import { ComponentSFCEventAction, ComponentSFCPortManifest, ComponentSFCPortProviderDescriptor, RComponentSFC_IR_PortCall } from '../../../../domain/types/component/sfc/ports.types';
4
+ import { RComponentSFC_AST_Script } from '../../../../domain/types/component/sfc/ast.types';
4
5
  export interface ComponentSFCPortAnalysisOptions {
5
6
  resolveProvider?: (identity: string, expectedKind: 'computation' | 'component' | 'action') => ComponentSFCPortProviderDescriptor | null;
6
7
  resolveTypeDefinition?: (identity: string) => TypeSourceDefinition | null;
@@ -1,6 +1,7 @@
1
1
  import { RComponentContract, RComponentDiagnostic } from '../../../../domain/types/component/component-core.types';
2
2
  import { ComponentSFCPreviewOptions, ComponentSFCPreviewProps } from '../../../../domain/types/program/program.types';
3
- import { RComponentSFC_AST_Script, RComponentSFC_IR_LocalBinding, RComponentSFC_IR_Prop } from '../../../../domain/types/component/sfc';
3
+ import { RComponentSFC_AST_Script } from '../../../../domain/types/component/sfc/ast.types';
4
+ import { RComponentSFC_IR_LocalBinding, RComponentSFC_IR_Prop } from '../../../../domain/types/component/sfc/ir.types';
4
5
  import { ProgramMetadataMap } from '../../../../domain/types/program/program-metadata.types';
5
6
  import { TypeSourceDefinition } from '../../../../domain/types/source/type-source.types';
6
7
  export interface ComponentSFCTypeResolutionOptions {
@@ -1,4 +1,4 @@
1
- import { RComponentSFCSource_Parts } from '../../../../domain/types/component/sfc';
1
+ import { RComponentSFCSource_Parts } from '../../../../domain/types/component/sfc/source.types';
2
2
  /** Создает пустые sourceParts для нового компонента. */
3
3
  export declare function createEmptySFCSourceParts(): RComponentSFCSource_Parts;
4
4
  /** Создает глубокую копию вкладок source без привязки к редакторскому объекту. */
@@ -1,5 +1,6 @@
1
1
  import { RComponentDiagnostic } from '../../../../domain/types/component/component-core.types';
2
- import { RComponentSFC_AST_Style, RComponentSFC_IR_Style } from '../../../../domain/types/component/sfc';
2
+ import { RComponentSFC_AST_Style } from '../../../../domain/types/component/sfc/ast.types';
3
+ import { RComponentSFC_IR_Style } from '../../../../domain/types/component/sfc/ir.types';
3
4
  export interface ComponentSFCStyleCompileResult {
4
5
  style: RComponentSFC_IR_Style | null;
5
6
  diagnostics: RComponentDiagnostic[];
@@ -1,12 +1,11 @@
1
- import { RComponentDiagnostic } from '../../../../domain/types/component/component-core.types';
2
- import { ComponentSFCActionPort, RComponentSFC_IR_ElementNode } from '../../../../domain/types/component/sfc';
3
- import { ContextMenuDescriptor } from '../../../../domain/types/ui/context-menu.types';
1
+ import { ComponentSFCTableColumnMenuDescriptor, ComponentSFCTableRowMenuDescriptor, RComponentSFC_IR_ElementNode } from '../../../../domain/types/component/sfc/ir.types';
2
+ import { ComponentSFCActionPort } from '../../../../domain/types/component/sfc/ports.types';
4
3
  export declare const SFC_TABLE_COLUMN_MENU_MODES: readonly ["default", "disabled"];
5
- export type ComponentSFCTableColumnMenuMode = typeof SFC_TABLE_COLUMN_MENU_MODES[number] | 'inline';
6
- export interface ComponentSFCTableColumnMenuDescriptor {
7
- mode: ComponentSFCTableColumnMenuMode;
8
- menu: ContextMenuDescriptor | null;
9
- diagnostics: RComponentDiagnostic[];
4
+ export type { ComponentSFCTableColumnMenuDescriptor, ComponentSFCTableColumnMenuMode, ComponentSFCTableMenuDescriptor, ComponentSFCTableMenuItemDescriptor, ComponentSFCTableMenuNodeDescriptor, ComponentSFCTableMenuSeparatorDescriptor, ComponentSFCTableRowMenuDescriptor, ComponentSFCTableRowMenuMode, } from '../../../../domain/types/component/sfc/ir.types';
5
+ interface NormalizeMenuOptions {
6
+ availableActions?: ComponentSFCActionPort[];
10
7
  }
11
- /** Нормализует declarative column context menu для SFC Table без renderer-specific деталей. */
12
- export declare function normalizeComponentSFCTableColumnMenu(tableNode: RComponentSFC_IR_ElementNode, providedActions?: ComponentSFCActionPort[]): ComponentSFCTableColumnMenuDescriptor;
8
+ /** Normalizes declarative column context menu without evaluating SFC expressions. */
9
+ export declare function normalizeComponentSFCTableColumnMenu(tableNode: RComponentSFC_IR_ElementNode, actionsOrOptions?: ComponentSFCActionPort[] | NormalizeMenuOptions): ComponentSFCTableColumnMenuDescriptor;
10
+ /** Normalizes one optional row menu. Cell-aware values remain expressions until a right click occurs. */
11
+ export declare function normalizeComponentSFCTableRowMenu(tableNode: RComponentSFC_IR_ElementNode, actionsOrOptions?: ComponentSFCActionPort[] | NormalizeMenuOptions): ComponentSFCTableRowMenuDescriptor;
@@ -1,5 +1,5 @@
1
1
  import { RComponentDiagnostic } from '../../../../domain/types/component/component-core.types';
2
- import { RComponentSFC_IR_ElementNode } from '../../../../domain/types/component/sfc';
2
+ import { RComponentSFC_IR_ElementNode } from '../../../../domain/types/component/sfc/ir.types';
3
3
  import { TableColumnPinSide } from '../../../../domain/types/runtime/action.types';
4
4
  export declare const SFC_TABLE_COLUMN_PIN_MODES: readonly ["enabled", "disabled"];
5
5
  export declare const SFC_TABLE_COLUMN_PIN_SIDES: readonly ["left", "right"];
@@ -1,5 +1,5 @@
1
1
  import { RComponentDiagnostic } from '../../../../domain/types/component/component-core.types';
2
- import { RComponentSFC_IR_ElementNode } from '../../../../domain/types/component/sfc';
2
+ import { RComponentSFC_IR_ElementNode } from '../../../../domain/types/component/sfc/ir.types';
3
3
  export declare const SFC_TABLE_SORT_MODES: readonly ["multiple", "single", "fixed", "disabled"];
4
4
  export declare const SFC_TABLE_SORT_COMPARATORS: readonly ["natural", "text", "number", "date", "time", "boolean"];
5
5
  export declare const SFC_TABLE_SORT_DIRECTIONS: readonly ["asc", "desc"];
@@ -1,3 +1,4 @@
1
- import { ComponentSFCTableColumnVisibilityDescriptor, RComponentSFC_IR_ElementNode } from '../../../../domain/types/component/sfc';
1
+ import { ComponentSFCTableColumnVisibilityDescriptor } from '../../../../domain/types/component/sfc/table-visibility.types';
2
+ import { RComponentSFC_IR_ElementNode } from '../../../../domain/types/component/sfc/ir.types';
2
3
  /** Нормализует authored default-hidden без renderer-specific visibility state. */
3
4
  export declare function normalizeComponentSFCTableColumnVisibility(tableNode: RComponentSFC_IR_ElementNode): ComponentSFCTableColumnVisibilityDescriptor;
@@ -1,5 +1,7 @@
1
1
  import { RComponentDependencies, RComponentDiagnostic } from '../../../../domain/types/component/component-core.types';
2
- import { RComponentSFC_AST_Template, RComponentSFC_IR_Template, ComponentSFCComponentPort, ComponentSFCActionPort, ComponentSFCPortManifest } from '../../../../domain/types/component/sfc';
2
+ import { RComponentSFC_AST_Template } from '../../../../domain/types/component/sfc/ast.types';
3
+ import { RComponentSFC_IR_Template } from '../../../../domain/types/component/sfc/ir.types';
4
+ import { ComponentSFCComponentPort, ComponentSFCPortManifest } from '../../../../domain/types/component/sfc/ports.types';
3
5
  import { ProgramNodeMetadata } from '../../../../domain/types/program/program-metadata.types';
4
6
  /** Контекст компиляции template в IR. */
5
7
  export interface ComponentSFCTemplateCompileContext {
@@ -9,14 +11,14 @@ export interface ComponentSFCTemplateCompileContext {
9
11
  locals: string[];
10
12
  /** Local component ports have priority over the global user tag registry. */
11
13
  componentPorts?: ComponentSFCComponentPort[];
12
- /** Actions exposed by this component and available to declarative handlers. */
13
- providedActions?: ComponentSFCActionPort[];
14
14
  /** Разрешает зарегистрированный пользовательский tag в identity компонента. */
15
15
  resolveComponentTag?: (tag: string) => string | null;
16
16
  /** Проверяет статическую identity из Component is. */
17
17
  hasComponentIdentity?: (identity: string) => boolean;
18
18
  /** Resolves public Events of a nested user Component for local `@event` bindings. */
19
19
  resolveComponentPortManifest?: (identity: string) => ComponentSFCPortManifest | null;
20
+ /** Resolves explicit root Variant names of a nested custom component. */
21
+ resolveComponentVariants?: (identity: string) => string[] | null;
20
22
  }
21
23
  /** Результат компиляции template в IR. */
22
24
  export interface ComponentSFCTemplateCompileResult {
@@ -28,6 +30,8 @@ export interface ComponentSFCTemplateCompileResult {
28
30
  diagnostics: RComponentDiagnostic[];
29
31
  /** Публичная metadata внутренних template-узлов. */
30
32
  metadata: ProgramNodeMetadata[];
33
+ /** Events emitted by declarative template reactions or editable behavior. */
34
+ emittedEvents: string[];
31
35
  }
32
36
  export { isComponentSFCBuiltInTag } from './component-sfc-built-in-tags';
33
37
  /** Компилирует AST template в renderer-neutral Endge SFC IR. */
@@ -1,4 +1,4 @@
1
- import { ComputationProgramPayload } from '../../../../domain/types/computation';
1
+ import { ComputationProgramPayload } from '../../../../domain/types/computation/computation-program.types';
2
2
  import { ProgramDiagnostic } from '../../../../domain/types/program/program.types';
3
3
  type DiagnosticDraft = Omit<ProgramDiagnostic, 'entityRef'>;
4
4
  export interface ComputationCompileInput {
@@ -1,4 +1,4 @@
1
- import { EndgeConfiguration, EndgeConfigurationContribution } from '../../../domain/types/configuration';
1
+ import { EndgeConfiguration, EndgeConfigurationContribution } from '../../../domain/types/configuration/configuration.type';
2
2
  export declare const DEFAULT_ENDGE_CONFIGURATION: Readonly<EndgeConfiguration>;
3
3
  /** Создаёт независимую полную конфигурацию с системными defaults. */
4
4
  export declare function createDefaultEndgeConfiguration(): EndgeConfiguration;
@@ -0,0 +1,10 @@
1
+ import { DomainDocumentType } from '../../../domain/types/document/document.types';
2
+ import { EndgeDomainCollection } from '../../../domain/types/document/domain-provider.type';
3
+ export declare class EndgeProviderCollectionUnsupportedError extends Error {
4
+ readonly documentType: DomainDocumentType;
5
+ readonly code = "provider_collection_unsupported";
6
+ constructor(documentType: DomainDocumentType);
7
+ }
8
+ export declare function resolveEndgeServiceCollection(documentType: DomainDocumentType): EndgeDomainCollection;
9
+ /** Принимает canonical collection либо Core document type для server-state lookup. */
10
+ export declare function resolveEndgeServiceStateCollection(value: string): EndgeDomainCollection;
@@ -0,0 +1,5 @@
1
+ import { DomainDocumentType } from '../../../domain/types/document/document.types';
2
+ /** Преобразует persisted-модель Core в строгий write DTO service-backend. */
3
+ export declare function serializeServiceDocument(documentType: DomainDocumentType, source: unknown): Record<string, unknown>;
4
+ /** Преобразует RFolder в write DTO service-backend. */
5
+ export declare function serializeServiceFolder(source: unknown): Record<string, unknown>;
@@ -1,4 +1,4 @@
1
- import { ComponentSFCMetadataSourcePatchResult, ComponentSFCMetadataVisualProjection } from '../../../../domain/types/component/sfc';
1
+ import { ComponentSFCMetadataSourcePatchResult, ComponentSFCMetadataVisualProjection } from '../../../../domain/types/component/sfc/metadata-visual.types';
2
2
  import { ProgramMetadataMap } from '../../../../domain/types/program/program-metadata.types';
3
3
  /** Reads component-level defineMetadata as strict JSON for the visual editor. */
4
4
  export declare function inspectComponentSFCMetadata(source: string): ComponentSFCMetadataVisualProjection;
@@ -1,4 +1,4 @@
1
- import { ComponentSFCPortsSourcePatch, ComponentSFCPortsSourcePatchResult, ComponentSFCPortsSourceProjection } from '../../../../domain/types/component/sfc';
1
+ import { ComponentSFCPortsSourcePatch, ComponentSFCPortsSourcePatchResult, ComponentSFCPortsSourceProjection } from '../../../../domain/types/component/sfc/ports-source.types';
2
2
  import { ComponentSFCCompileOptions } from '../../compiler/component-sfc/component-sfc-compile';
3
3
  export declare function inspectComponentSFCPortsSource(source: string, options?: ComponentSFCCompileOptions): ComponentSFCPortsSourceProjection;
4
4
  export declare function patchComponentSFCPortsSource(source: string, patch: ComponentSFCPortsSourcePatch, options?: ComponentSFCCompileOptions): ComponentSFCPortsSourcePatchResult;