@kosdev-code/kos-ui-sdk 2.0.44 → 2.0.45

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 (449) hide show
  1. package/common/events/eventBus.d.ts +30 -0
  2. package/common/events/eventBus.d.ts.map +1 -1
  3. package/common/events/eventBus.functional.d.ts +48 -0
  4. package/common/events/eventBus.functional.d.ts.map +1 -1
  5. package/common/events/eventBus.state.d.ts +33 -0
  6. package/common/events/eventBus.state.d.ts.map +1 -1
  7. package/core/constants/model-constants.d.ts +9 -0
  8. package/core/constants/model-constants.d.ts.map +1 -0
  9. package/core/core/companion-instantiator.d.ts +71 -0
  10. package/core/core/companion-instantiator.d.ts.map +1 -0
  11. package/core/core/decorators/fsm-injection-utils.d.ts +16 -0
  12. package/core/core/decorators/fsm-injection-utils.d.ts.map +1 -0
  13. package/core/core/decorators/index.d.ts +11 -0
  14. package/core/core/decorators/index.d.ts.map +1 -1
  15. package/core/core/decorators/kos-child.d.ts +2 -0
  16. package/core/core/decorators/kos-child.d.ts.map +1 -1
  17. package/core/core/decorators/kos-companion.d.ts +158 -8
  18. package/core/core/decorators/kos-companion.d.ts.map +1 -1
  19. package/core/core/decorators/kos-container-aware.d.ts +619 -0
  20. package/core/core/decorators/kos-container-aware.d.ts.map +1 -0
  21. package/core/core/decorators/kos-context.d.ts +6 -0
  22. package/core/core/decorators/kos-context.d.ts.map +1 -1
  23. package/core/core/decorators/kos-execution-context.d.ts +63 -0
  24. package/core/core/decorators/kos-execution-context.d.ts.map +1 -0
  25. package/core/core/decorators/kos-future-aware.d.ts +162 -0
  26. package/core/core/decorators/kos-future-aware.d.ts.map +1 -0
  27. package/core/core/decorators/kos-http-decorators.d.ts +15 -0
  28. package/core/core/decorators/kos-http-decorators.d.ts.map +1 -1
  29. package/core/core/decorators/kos-log.d.ts +4 -0
  30. package/core/core/decorators/kos-log.d.ts.map +1 -1
  31. package/core/core/decorators/kos-logger-aware.d.ts +105 -0
  32. package/core/core/decorators/kos-logger-aware.d.ts.map +1 -0
  33. package/core/core/decorators/kos-model-effect.d.ts +9 -0
  34. package/core/core/decorators/kos-model-effect.d.ts.map +1 -1
  35. package/core/core/decorators/kos-multiple-future-aware.d.ts +217 -0
  36. package/core/core/decorators/kos-multiple-future-aware.d.ts.map +1 -0
  37. package/core/core/decorators/kos-parent.d.ts +4 -0
  38. package/core/core/decorators/kos-parent.d.ts.map +1 -1
  39. package/core/core/decorators/kos-reference.d.ts +9 -0
  40. package/core/core/decorators/kos-reference.d.ts.map +1 -1
  41. package/core/core/decorators/kos-service-request-helpers.d.ts +60 -0
  42. package/core/core/decorators/kos-service-request-helpers.d.ts.map +1 -0
  43. package/core/core/decorators/kos-service-request.d.ts +498 -0
  44. package/core/core/decorators/kos-service-request.d.ts.map +1 -0
  45. package/core/core/decorators/kos-state-machine.d.ts +534 -0
  46. package/core/core/decorators/kos-state-machine.d.ts.map +1 -0
  47. package/core/core/decorators/kos-topic-handler-flow-control.d.ts +17 -1
  48. package/core/core/decorators/kos-topic-handler-flow-control.d.ts.map +1 -1
  49. package/core/core/decorators/kos-trouble-aware.d.ts +77 -0
  50. package/core/core/decorators/kos-trouble-aware.d.ts.map +1 -0
  51. package/core/core/decorators/kos-view-model.d.ts +176 -0
  52. package/core/core/decorators/kos-view-model.d.ts.map +1 -0
  53. package/core/core/decorators/kosDependency.d.ts +4 -1
  54. package/core/core/decorators/kosDependency.d.ts.map +1 -1
  55. package/core/core/decorators/kosModel.d.ts +17 -2
  56. package/core/core/decorators/kosModel.d.ts.map +1 -1
  57. package/core/core/decorators/kosSubscribe.d.ts +9 -0
  58. package/core/core/decorators/kosSubscribe.d.ts.map +1 -1
  59. package/core/core/decorators/kosTopicHandler.d.ts +87 -5
  60. package/core/core/decorators/kosTopicHandler.d.ts.map +1 -1
  61. package/core/core/decorators/propKeys.d.ts +14 -0
  62. package/core/core/decorators/propKeys.d.ts.map +1 -1
  63. package/core/core/decorators/resolve-parameters.d.ts.map +1 -1
  64. package/core/core/extension/extension-manager.d.ts +64 -4
  65. package/core/core/extension/extension-manager.d.ts.map +1 -1
  66. package/core/core/extension/initialize-extension.d.ts +24 -0
  67. package/core/core/extension/initialize-extension.d.ts.map +1 -1
  68. package/core/core/extension/plugin-extension-manager.d.ts +11 -0
  69. package/core/core/extension/plugin-extension-manager.d.ts.map +1 -1
  70. package/core/core/kos-container-model.d.ts +188 -0
  71. package/core/core/kos-container-model.d.ts.map +1 -1
  72. package/core/core/kos-data-container.d.ts +93 -1
  73. package/core/core/kos-data-container.d.ts.map +1 -1
  74. package/core/core/kos-registration.d.ts.map +1 -1
  75. package/core/core/kos-singleton-registration.d.ts.map +1 -1
  76. package/core/core/kosCore.d.ts.map +1 -1
  77. package/core/core/kosModel.d.ts +55 -2
  78. package/core/core/kosModel.d.ts.map +1 -1
  79. package/core/core/kosModelManager.d.ts +11 -1
  80. package/core/core/kosModelManager.d.ts.map +1 -1
  81. package/core/core/log/log.d.ts.map +1 -1
  82. package/core/core/model/apply-kos-dev-tool-support.d.ts.map +1 -1
  83. package/core/core/model/kos-fsm-manager.d.ts +1 -4
  84. package/core/core/model/kos-fsm-manager.d.ts.map +1 -1
  85. package/core/core/model/kos-model-component-factory.d.ts +4 -0
  86. package/core/core/model/kos-model-component-factory.d.ts.map +1 -1
  87. package/core/core/model/kos-offline-queue.d.ts +78 -1
  88. package/core/core/model/kos-offline-queue.d.ts.map +1 -1
  89. package/core/core/model/kos-online-lifecycle-manager.d.ts.map +1 -1
  90. package/core/core/model/kos-service-request-manager.d.ts +102 -0
  91. package/core/core/model/kos-service-request-manager.d.ts.map +1 -0
  92. package/core/core/model/kos-subscription-manager.d.ts +20 -0
  93. package/core/core/model/kos-subscription-manager.d.ts.map +1 -1
  94. package/core/core/model/model-introspection-utils.d.ts +1 -0
  95. package/core/core/model/model-introspection-utils.d.ts.map +1 -1
  96. package/core/core/model/service-response-store.d.ts +164 -0
  97. package/core/core/model/service-response-store.d.ts.map +1 -0
  98. package/core/core/model-instantiator.d.ts +19 -0
  99. package/core/core/model-instantiator.d.ts.map +1 -1
  100. package/core/core/registration/index.d.ts +1 -0
  101. package/core/core/registration/index.d.ts.map +1 -1
  102. package/core/core/services/browser-router.d.ts.map +1 -1
  103. package/core/core/transport/webSocketTransport.d.ts +2 -1
  104. package/core/core/transport/webSocketTransport.d.ts.map +1 -1
  105. package/core/core/types/registration.d.ts +7 -0
  106. package/core/core/types/registration.d.ts.map +1 -1
  107. package/core/index.d.ts +2 -1
  108. package/core/index.d.ts.map +1 -1
  109. package/core/types/index.d.ts +1 -0
  110. package/core/types/index.d.ts.map +1 -1
  111. package/core/types/kos-dependency.d.ts +48 -1
  112. package/core/types/kos-dependency.d.ts.map +1 -1
  113. package/core/types/service-response-store.d.ts +162 -0
  114. package/core/types/service-response-store.d.ts.map +1 -0
  115. package/core/types/utils/kos-fetch.d.ts +121 -0
  116. package/core/types/utils/kos-fetch.d.ts.map +1 -1
  117. package/core/util/ancestor-path-visitor.d.ts +60 -0
  118. package/core/util/ancestor-path-visitor.d.ts.map +1 -0
  119. package/core/util/api-request-id.d.ts +4 -0
  120. package/core/util/api-request-id.d.ts.map +1 -1
  121. package/core/util/apply-mixins.d.ts +4 -0
  122. package/core/util/apply-mixins.d.ts.map +1 -1
  123. package/core/util/array-utils.d.ts +4 -0
  124. package/core/util/array-utils.d.ts.map +1 -1
  125. package/core/util/container-utils.d.ts +264 -11
  126. package/core/util/container-utils.d.ts.map +1 -1
  127. package/core/util/date-utils.d.ts +29 -0
  128. package/core/util/date-utils.d.ts.map +1 -1
  129. package/core/util/debounce.d.ts +3 -0
  130. package/core/util/debounce.d.ts.map +1 -1
  131. package/core/util/error-logger.d.ts +16 -0
  132. package/core/util/error-logger.d.ts.map +1 -0
  133. package/core/util/feature-flags.d.ts +19 -0
  134. package/core/util/feature-flags.d.ts.map +1 -1
  135. package/core/util/get-query-params.d.ts +4 -0
  136. package/core/util/get-query-params.d.ts.map +1 -1
  137. package/core/util/hsl-to-hex.d.ts +16 -0
  138. package/core/util/hsl-to-hex.d.ts.map +1 -1
  139. package/core/util/index.d.ts +3 -0
  140. package/core/util/index.d.ts.map +1 -1
  141. package/core/util/kos-config-init.d.ts +37 -0
  142. package/core/util/kos-config-init.d.ts.map +1 -1
  143. package/core/util/kos-data-mapper-utils.d.ts +9 -0
  144. package/core/util/kos-data-mapper-utils.d.ts.map +1 -1
  145. package/core/util/kos-fetch.d.ts +12 -0
  146. package/core/util/kos-fetch.d.ts.map +1 -1
  147. package/core/util/kos-message-utils.d.ts +88 -0
  148. package/core/util/kos-message-utils.d.ts.map +1 -1
  149. package/core/util/kos-model-utils.d.ts +46 -0
  150. package/core/util/kos-model-utils.d.ts.map +1 -1
  151. package/core/util/kos-model-visitor.d.ts +2 -0
  152. package/core/util/kos-model-visitor.d.ts.map +1 -1
  153. package/core/util/kos-service-request.d.ts +43 -3
  154. package/core/util/kos-service-request.d.ts.map +1 -1
  155. package/core/util/log-utils.d.ts +12 -0
  156. package/core/util/log-utils.d.ts.map +1 -1
  157. package/core/util/middleware.d.ts +15 -0
  158. package/core/util/middleware.d.ts.map +1 -1
  159. package/core/util/model-attribute-utils.d.ts +7 -0
  160. package/core/util/model-attribute-utils.d.ts.map +1 -1
  161. package/core/util/model-error-utils.d.ts +61 -0
  162. package/core/util/model-error-utils.d.ts.map +1 -0
  163. package/core/util/model-factory.d.ts +4 -0
  164. package/core/util/model-factory.d.ts.map +1 -1
  165. package/core/util/model-registration-utils.d.ts +8 -0
  166. package/core/util/model-registration-utils.d.ts.map +1 -1
  167. package/core/util/model-transition-utils.d.ts +41 -0
  168. package/core/util/model-transition-utils.d.ts.map +1 -0
  169. package/core/util/model-type-guards.d.ts +26 -0
  170. package/core/util/model-type-guards.d.ts.map +1 -0
  171. package/core/util/model-utils.d.ts +40 -29
  172. package/core/util/model-utils.d.ts.map +1 -1
  173. package/core/util/observable-proxy-map.d.ts +11 -0
  174. package/core/util/observable-proxy-map.d.ts.map +1 -1
  175. package/core/util/paired-client-heartbeat.d.ts +2 -0
  176. package/core/util/paired-client-heartbeat.d.ts.map +1 -1
  177. package/core/util/pipe.d.ts +4 -0
  178. package/core/util/pipe.d.ts.map +1 -1
  179. package/core/util/promise-utils.d.ts +58 -0
  180. package/core/util/promise-utils.d.ts.map +1 -0
  181. package/core/util/retry-with-exponential-backoff.d.ts +3 -0
  182. package/core/util/retry-with-exponential-backoff.d.ts.map +1 -1
  183. package/core/util/service-factory.d.ts +10 -0
  184. package/core/util/service-factory.d.ts.map +1 -1
  185. package/core/util/service-request-error.d.ts +60 -0
  186. package/core/util/service-request-error.d.ts.map +1 -0
  187. package/core/util/service-response.d.ts +125 -0
  188. package/core/util/service-response.d.ts.map +1 -0
  189. package/core/util/session-utils.d.ts +8 -0
  190. package/core/util/session-utils.d.ts.map +1 -1
  191. package/core/util/wait-for-request.d.ts +16 -0
  192. package/core/util/wait-for-request.d.ts.map +1 -1
  193. package/core/util/when-ready.d.ts +3 -0
  194. package/core/util/when-ready.d.ts.map +1 -1
  195. package/index.cjs +26904 -118
  196. package/index.cjs.map +1 -1
  197. package/index.d.cts +6 -3
  198. package/index.d.ts +6 -3
  199. package/index.d.ts.map +1 -1
  200. package/index.js +25305 -13476
  201. package/index.js.map +1 -1
  202. package/kos-models.json +426 -0
  203. package/models/constants/index.d.ts +3 -1
  204. package/models/constants/index.d.ts.map +1 -1
  205. package/models/decorators/future-service.d.ts +27 -2
  206. package/models/decorators/future-service.d.ts.map +1 -1
  207. package/models/models/browser-router/browser-router-model.d.ts +80 -1
  208. package/models/models/browser-router/browser-router-model.d.ts.map +1 -1
  209. package/models/models/browser-router/types/index.d.ts +26 -1
  210. package/models/models/canvas-dispatcher/types/index.d.ts +5 -0
  211. package/models/models/canvas-renderer/types/index.d.ts +5 -0
  212. package/models/models/config-bean/config-bean-model-builder.d.ts +4 -2
  213. package/models/models/config-bean/config-bean-model-builder.d.ts.map +1 -1
  214. package/models/models/config-bean/config-bean-model.d.ts +117 -13
  215. package/models/models/config-bean/config-bean-model.d.ts.map +1 -1
  216. package/models/models/config-bean/config-bean-types.d.ts +6 -3
  217. package/models/models/config-bean/config-bean-types.d.ts.map +1 -1
  218. package/models/models/config-bean/types/index.d.ts +34 -0
  219. package/models/models/config-bean-prop/config-bean-prop-model.d.ts +112 -1
  220. package/models/models/config-bean-prop/config-bean-prop-model.d.ts.map +1 -1
  221. package/models/models/config-bean-prop/types/index.d.ts +301 -19
  222. package/models/models/device/device-model.d.ts +219 -9
  223. package/models/models/device/device-model.d.ts.map +1 -1
  224. package/models/models/device/device-registration.d.ts +61 -48
  225. package/models/models/device/device-registration.d.ts.map +1 -1
  226. package/models/models/device/types/index.d.ts +42 -0
  227. package/models/models/future/future-aware.d.ts +82 -0
  228. package/models/models/future/future-aware.d.ts.map +1 -1
  229. package/models/models/future/future-model.d.ts +34 -5
  230. package/models/models/future/future-model.d.ts.map +1 -1
  231. package/models/models/future/future-types.d.ts +202 -9
  232. package/models/models/future/future-types.d.ts.map +1 -1
  233. package/models/models/future-container/future-container-model.d.ts +2 -2
  234. package/models/models/gpio-chip/gpio-chip-container-model.d.ts +25 -0
  235. package/models/models/gpio-chip/gpio-chip-container-model.d.ts.map +1 -0
  236. package/models/models/gpio-chip/gpio-chip-model.d.ts +30 -0
  237. package/models/models/gpio-chip/gpio-chip-model.d.ts.map +1 -0
  238. package/models/models/gpio-chip/index.d.ts +7 -0
  239. package/models/models/gpio-chip/index.d.ts.map +1 -0
  240. package/models/models/gpio-chip/services/gpio-chip-services.d.ts +86 -0
  241. package/models/models/gpio-chip/services/gpio-chip-services.d.ts.map +1 -0
  242. package/models/models/gpio-chip/services/index.d.ts +2 -0
  243. package/models/models/gpio-chip/services/index.d.ts.map +1 -0
  244. package/models/models/gpio-chip/types/index.d.ts +24 -0
  245. package/models/models/gpio-pin/gpio-pin-container-model.d.ts +23 -0
  246. package/models/models/gpio-pin/gpio-pin-container-model.d.ts.map +1 -0
  247. package/models/models/gpio-pin/gpio-pin-model.d.ts +26 -0
  248. package/models/models/gpio-pin/gpio-pin-model.d.ts.map +1 -0
  249. package/models/models/gpio-pin/index.d.ts +6 -0
  250. package/models/models/gpio-pin/index.d.ts.map +1 -0
  251. package/models/models/gpio-pin/types/index.d.ts +23 -0
  252. package/models/models/index.d.ts +1 -0
  253. package/models/models/index.d.ts.map +1 -1
  254. package/models/models/key-value/index.d.ts +4 -0
  255. package/models/models/key-value/index.d.ts.map +1 -1
  256. package/models/models/key-value/key-value-model.d.ts +111 -0
  257. package/models/models/key-value/key-value-model.d.ts.map +1 -1
  258. package/models/models/key-value/services/key-value-services.d.ts +124 -2
  259. package/models/models/key-value/services/key-value-services.d.ts.map +1 -1
  260. package/models/models/key-value/types/index.d.ts +57 -0
  261. package/models/models/kos-expression-evaluator/index.d.ts +4 -0
  262. package/models/models/kos-expression-evaluator/index.d.ts.map +1 -0
  263. package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts +209 -0
  264. package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts.map +1 -0
  265. package/models/models/kos-expression-evaluator/services/index.d.ts +6 -0
  266. package/models/models/kos-expression-evaluator/services/index.d.ts.map +1 -0
  267. package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts +15 -0
  268. package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts.map +1 -0
  269. package/models/models/kos-expression-evaluator/types/index.d.ts +6 -0
  270. package/models/models/kos-log-manager/kos-log-manager-model.d.ts +61 -14
  271. package/models/models/kos-log-manager/kos-log-manager-model.d.ts.map +1 -1
  272. package/models/models/kos-log-manager/types/index.d.ts +191 -0
  273. package/models/models/kos-time/kos-time-model.d.ts +64 -0
  274. package/models/models/kos-time/kos-time-model.d.ts.map +1 -1
  275. package/models/models/kos-time/types/index.d.ts +83 -0
  276. package/models/models/log-block/log-block-container-model.d.ts +132 -0
  277. package/models/models/log-block/log-block-container-model.d.ts.map +1 -1
  278. package/models/models/log-block/log-block-model.d.ts +185 -0
  279. package/models/models/log-block/log-block-model.d.ts.map +1 -1
  280. package/models/models/log-block/types/index.d.ts +133 -0
  281. package/models/models/log-stream/index.d.ts +6 -2
  282. package/models/models/log-stream/index.d.ts.map +1 -1
  283. package/models/models/log-stream/log-stream-container-model.d.ts +62 -0
  284. package/models/models/log-stream/log-stream-container-model.d.ts.map +1 -1
  285. package/models/models/log-stream/log-stream-model.d.ts +55 -0
  286. package/models/models/log-stream/log-stream-model.d.ts.map +1 -1
  287. package/models/models/log-stream/services/log-stream-services.d.ts +2 -1
  288. package/models/models/log-stream/services/log-stream-services.d.ts.map +1 -1
  289. package/models/models/log-stream/types/index.d.ts +79 -0
  290. package/models/models/network-interface/index.d.ts +6 -2
  291. package/models/models/network-interface/index.d.ts.map +1 -1
  292. package/models/models/network-interface/network-interface-container-model.d.ts +62 -0
  293. package/models/models/network-interface/network-interface-container-model.d.ts.map +1 -1
  294. package/models/models/network-interface/network-interface-container-registration.d.ts +2 -1
  295. package/models/models/network-interface/network-interface-container-registration.d.ts.map +1 -1
  296. package/models/models/network-interface/network-interface-model.d.ts +77 -0
  297. package/models/models/network-interface/network-interface-model.d.ts.map +1 -1
  298. package/models/models/network-interface/network-interface-registration.d.ts +2 -1
  299. package/models/models/network-interface/network-interface-registration.d.ts.map +1 -1
  300. package/models/models/network-interface/services/network-interface-services.d.ts +54 -0
  301. package/models/models/network-interface/services/network-interface-services.d.ts.map +1 -1
  302. package/models/models/network-interface/types/index.d.ts +22 -0
  303. package/models/models/ota/ota-model.d.ts +82 -3
  304. package/models/models/ota/ota-model.d.ts.map +1 -1
  305. package/models/models/ota/types/index.d.ts +177 -0
  306. package/models/models/region-info/region-info-model.d.ts +8 -3
  307. package/models/models/region-info/region-info-model.d.ts.map +1 -1
  308. package/models/models/region-info/services/region-info-services.d.ts +2 -2
  309. package/models/models/region-info/services/region-info-services.d.ts.map +1 -1
  310. package/models/models/region-info/types/index.d.ts +191 -13
  311. package/models/models/region-info/types/index.d.ts.map +1 -1
  312. package/models/models/region-info/utils/unit-system-utils.d.ts.map +1 -1
  313. package/models/models/software-info/services/software-info-services.d.ts.map +1 -1
  314. package/models/models/software-info/software-info-model.d.ts +74 -2
  315. package/models/models/software-info/software-info-model.d.ts.map +1 -1
  316. package/models/models/software-info/types/index.d.ts +52 -17
  317. package/models/models/state-bean/state-bean-model.d.ts +86 -9
  318. package/models/models/state-bean/state-bean-model.d.ts.map +1 -1
  319. package/models/models/state-bean/types/index.d.ts +117 -6
  320. package/models/models/state-prop/state-prop-model.d.ts +78 -1
  321. package/models/models/state-prop/state-prop-model.d.ts.map +1 -1
  322. package/models/models/state-prop/types/index.d.ts +57 -7
  323. package/models/models/storage-device/services/storage-device-services.d.ts +1 -0
  324. package/models/models/storage-device/services/storage-device-services.d.ts.map +1 -1
  325. package/models/models/storage-device/storage-device-container-model.d.ts +289 -2
  326. package/models/models/storage-device/storage-device-container-model.d.ts.map +1 -1
  327. package/models/models/storage-device/storage-device-model.d.ts +84 -2
  328. package/models/models/storage-device/storage-device-model.d.ts.map +1 -1
  329. package/models/models/storage-device/types/index.d.ts +114 -0
  330. package/models/models/studio-properties/studio-properties-model.d.ts +75 -0
  331. package/models/models/studio-properties/studio-properties-model.d.ts.map +1 -1
  332. package/models/models/studio-properties/types/index.d.ts +29 -0
  333. package/models/models/translation/services/translation-services.d.ts +128 -2
  334. package/models/models/translation/services/translation-services.d.ts.map +1 -1
  335. package/models/models/translation/translation-container-model.d.ts +100 -10
  336. package/models/models/translation/translation-container-model.d.ts.map +1 -1
  337. package/models/models/translation/translation-container-registration.d.ts +2 -1
  338. package/models/models/translation/translation-container-registration.d.ts.map +1 -1
  339. package/models/models/translation/translation-context.d.ts +1 -16
  340. package/models/models/translation/translation-context.d.ts.map +1 -1
  341. package/models/models/translation/translation-model.d.ts +113 -1
  342. package/models/models/translation/translation-model.d.ts.map +1 -1
  343. package/models/models/translation/types/index.d.ts +343 -0
  344. package/models/models/trouble/index.d.ts +2 -1
  345. package/models/models/trouble/index.d.ts.map +1 -1
  346. package/models/models/trouble/services/trouble-services.d.ts +6 -4
  347. package/models/models/trouble/services/trouble-services.d.ts.map +1 -1
  348. package/models/models/trouble/trouble-model.d.ts +4 -1
  349. package/models/models/trouble/trouble-model.d.ts.map +1 -1
  350. package/models/models/trouble/types/index.d.ts +34 -93
  351. package/models/models/trouble/utils/is-trouble-aware.d.ts +2 -2
  352. package/models/models/trouble/utils/is-trouble-aware.d.ts.map +1 -1
  353. package/models/models/trouble-container/index.d.ts +4 -3
  354. package/models/models/trouble-container/index.d.ts.map +1 -1
  355. package/models/models/trouble-container/trouble-container-model.d.ts +10 -5
  356. package/models/models/trouble-container/trouble-container-model.d.ts.map +1 -1
  357. package/models/models/trouble-container/types/index.d.ts +6 -14
  358. package/models/models/usb-update/types/index.d.ts +10 -0
  359. package/models/services/config-bean/index.d.ts +2 -2
  360. package/models/services/config-bean/index.d.ts.map +1 -1
  361. package/models/utils/client.d.ts +16 -12
  362. package/models/utils/client.d.ts.map +1 -1
  363. package/models/utils/core-registration-manager.d.ts +1 -1
  364. package/models/utils/core-registration-manager.d.ts.map +1 -1
  365. package/models/utils/extension-manager.d.ts +54 -13
  366. package/models/utils/extension-manager.d.ts.map +1 -1
  367. package/models/utils/get-kos-connection-id.d.ts +2 -0
  368. package/models/utils/get-kos-connection-id.d.ts.map +1 -0
  369. package/models/utils/index.d.ts +3 -2
  370. package/models/utils/index.d.ts.map +1 -1
  371. package/models/utils/openapi-index.d.ts +3 -0
  372. package/models/utils/openapi-index.d.ts.map +1 -0
  373. package/models/utils/service-accessor.d.ts +86 -0
  374. package/models/utils/service-accessor.d.ts.map +1 -0
  375. package/models/utils/service.d.ts +91 -13
  376. package/models/utils/service.d.ts.map +1 -1
  377. package/models/utils/services/kos/1.6.5/openapi.d.ts +3809 -0
  378. package/models/utils/services/kos/1.6.5/service.d.ts +124 -0
  379. package/models/utils/services/kos/1.6.5/service.d.ts.map +1 -0
  380. package/models/utils/services/kos/1.8.1/openapi.d.ts +4344 -0
  381. package/models/utils/services/kos/1.8.1/service.d.ts +124 -0
  382. package/models/utils/services/kos/1.8.1/service.d.ts.map +1 -0
  383. package/models/utils/services/kos/1.9.x/openapi.d.ts +4597 -0
  384. package/models/utils/services/kos/1.9.x/service.d.ts +124 -0
  385. package/models/utils/services/kos/1.9.x/service.d.ts.map +1 -0
  386. package/models/utils/services/kos/daily/openapi.d.ts +4349 -0
  387. package/models/utils/services/kos/daily/service.d.ts +124 -0
  388. package/models/utils/services/kos/daily/service.d.ts.map +1 -0
  389. package/models/utils/services/vfs/1.6.5/openapi.d.ts +51 -0
  390. package/models/utils/services/vfs/1.6.5/service.d.ts +124 -0
  391. package/models/utils/services/vfs/1.6.5/service.d.ts.map +1 -0
  392. package/models/utils/services/vfs/1.8.1/openapi.d.ts +51 -0
  393. package/models/utils/services/vfs/1.8.1/service.d.ts +124 -0
  394. package/models/utils/services/vfs/1.8.1/service.d.ts.map +1 -0
  395. package/models/utils/services/vfs/1.9.x/openapi.d.ts +51 -0
  396. package/models/utils/services/vfs/1.9.x/service.d.ts +124 -0
  397. package/models/utils/services/vfs/1.9.x/service.d.ts.map +1 -0
  398. package/models/utils/services/vfs/daily/openapi.d.ts +51 -0
  399. package/models/utils/services/vfs/daily/service.d.ts +124 -0
  400. package/models/utils/services/vfs/daily/service.d.ts.map +1 -0
  401. package/models/utils/services-index.d.ts +9 -0
  402. package/models/utils/services-index.d.ts.map +1 -0
  403. package/package.json +16 -2
  404. package/ui/contexts/kos-core-context.d.ts.map +1 -1
  405. package/ui/contexts/state-bean/state-bean-provider.d.ts.map +1 -1
  406. package/ui/hooks/device/use-device.d.ts +6 -0
  407. package/ui/hooks/device/use-device.d.ts.map +1 -1
  408. package/ui/hooks/index.d.ts +1 -0
  409. package/ui/hooks/index.d.ts.map +1 -1
  410. package/ui/hooks/kos-time/use-kos-time.d.ts +6 -0
  411. package/ui/hooks/kos-time/use-kos-time.d.ts.map +1 -1
  412. package/ui/hooks/network-interface-container/use-network-interface-container.d.ts +6 -0
  413. package/ui/hooks/network-interface-container/use-network-interface-container.d.ts.map +1 -1
  414. package/ui/hooks/ota/use-ota.d.ts +6 -0
  415. package/ui/hooks/ota/use-ota.d.ts.map +1 -1
  416. package/ui/hooks/software-info/use-software-info.d.ts +6 -0
  417. package/ui/hooks/software-info/use-software-info.d.ts.map +1 -1
  418. package/ui/hooks/state-bean/use-state-bean.d.ts +2 -2
  419. package/ui/hooks/state-bean/use-state-bean.d.ts.map +1 -1
  420. package/ui/hooks/state-bean/with-state-bean.d.ts.map +1 -1
  421. package/ui/hooks/storage-device-container/use-storage-device-container.d.ts +6 -0
  422. package/ui/hooks/storage-device-container/use-storage-device-container.d.ts.map +1 -1
  423. package/ui/hooks/translation-container/trans.d.ts +6 -0
  424. package/ui/hooks/translation-container/trans.d.ts.map +1 -1
  425. package/ui/hooks/translation-container/use-translation-container.d.ts +10 -33
  426. package/ui/hooks/translation-container/use-translation-container.d.ts.map +1 -1
  427. package/ui/hooks/translation-container/use-translation.d.ts +7 -0
  428. package/ui/hooks/translation-container/use-translation.d.ts.map +1 -1
  429. package/ui/hooks/translation-container/with-translation-container.d.ts +6 -0
  430. package/ui/hooks/translation-container/with-translation-container.d.ts.map +1 -1
  431. package/ui/hooks/usb-update-container/use-usb-update-container.d.ts +6 -0
  432. package/ui/hooks/usb-update-container/use-usb-update-container.d.ts.map +1 -1
  433. package/ui/hooks/use-config-bean.d.ts +6 -0
  434. package/ui/hooks/use-config-bean.d.ts.map +1 -1
  435. package/ui/hooks/use-config-property.d.ts +6 -0
  436. package/ui/hooks/use-config-property.d.ts.map +1 -1
  437. package/ui/hooks/use-kos-model.d.ts +7 -0
  438. package/ui/hooks/use-kos-model.d.ts.map +1 -1
  439. package/ui/hooks/use-kos-regions.d.ts.map +1 -1
  440. package/ui/hooks/view-model/index.d.ts +2 -0
  441. package/ui/hooks/view-model/index.d.ts.map +1 -0
  442. package/ui/hooks/view-model/use-view-model.d.ts +80 -0
  443. package/ui/hooks/view-model/use-view-model.d.ts.map +1 -0
  444. package/models/models/trouble-container/trouble-container-registration.d.ts +0 -5
  445. package/models/models/trouble-container/trouble-container-registration.d.ts.map +0 -1
  446. package/models/utils/kosmodel-compatible-future-mixin.d.ts +0 -142
  447. package/models/utils/kosmodel-compatible-future-mixin.d.ts.map +0 -1
  448. package/models/utils/kosmodel-interface-companion-mixin.d.ts +0 -83
  449. package/models/utils/kosmodel-interface-companion-mixin.d.ts.map +0 -1
@@ -1,12 +1,27 @@
1
+ /**
2
+ * @kosService core.event-bus
3
+ * @kosApiLevel 2
4
+ */
1
5
  export interface ApiCallback<T = string> {
2
6
  headers: Record<string, string>;
3
7
  body: T;
4
8
  }
9
+ /**
10
+ * @kosService core.event-bus
11
+ */
5
12
  export type EventCallback<T = ApiCallback> = (msg?: T) => void;
13
+ /**
14
+ * @kosService core.event-bus
15
+ * @kosApiLevel 2
16
+ */
6
17
  export interface PublishResponse {
7
18
  eventType: string;
8
19
  subscribers: number;
9
20
  }
21
+ /**
22
+ * @kosService core.event-bus
23
+ * @kosApiLevel 7
24
+ */
10
25
  export declare function hasEventSubscriptions(eventType: string): boolean;
11
26
  /**
12
27
  * Subscribes to a specific event type with a callback function.
@@ -19,6 +34,9 @@ export declare function hasEventSubscriptions(eventType: string): boolean;
19
34
  * @returns An object containing:
20
35
  * - `count`: The number of active subscriptions for the event type.
21
36
  * - `unsubscribe`: A function to unsubscribe from the event, which also returns the updated subscription count.
37
+ *
38
+ * @kosService core.event-bus
39
+ * @kosApiLevel 2
22
40
  */
23
41
  export declare function subscribe<T = ApiCallback>(eventType: string, callback: EventCallback<T>): {
24
42
  count: number;
@@ -42,6 +60,9 @@ export declare function subscribe<T = ApiCallback>(eventType: string, callback:
42
60
  * - If the "sync" header is present, the function waits for a response from the subscriber and
43
61
  * publishes the response back to the source using the sync ID.
44
62
  * - If the "sync" header is not present, the event is published asynchronously in a fire-and-forget manner.
63
+ *
64
+ * @kosService core.event-bus
65
+ * @kosApiLevel 2
45
66
  */
46
67
  export declare function publish(eventType: string, msg: unknown, headers?: Record<string, string>): PublishResponse;
47
68
  /**
@@ -56,6 +77,9 @@ export declare function publish(eventType: string, msg: unknown, headers?: Recor
56
77
  * ```typescript
57
78
  * reset(); // Clears all event subscriptions and logs a warning.
58
79
  * ```
80
+ *
81
+ * @kosService core.event-bus
82
+ * @kosApiLevel 2
59
83
  */
60
84
  export declare function reset(): void;
61
85
  /**
@@ -64,6 +88,9 @@ export declare function reset(): void;
64
88
  * @param eventType - The event type to listen for
65
89
  * @param callback - The callback to execute once
66
90
  * @returns Unsubscribe function
91
+ *
92
+ * @kosService core.event-bus
93
+ * @kosApiLevel 11
67
94
  */
68
95
  export declare function once<T = ApiCallback>(eventType: string, callback: EventCallback<T>): () => void;
69
96
  /**
@@ -72,6 +99,9 @@ export declare function once<T = ApiCallback>(eventType: string, callback: Event
72
99
  * @param eventType - The event type to wait for
73
100
  * @param timeout - Optional timeout in milliseconds
74
101
  * @returns Promise that resolves with the event data
102
+ *
103
+ * @kosService core.event-bus
104
+ * @kosApiLevel 11
75
105
  */
76
106
  export declare function waitFor<T = ApiCallback>(eventType: string, timeout?: number): Promise<T>;
77
107
  //# sourceMappingURL=eventBus.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eventBus.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,MAAM;IACrC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC;CACT;AACD,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,WAAW,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;AAE/D,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAKhE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,CAAC,GAAG,WAAW,EACvC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC;;;;;EAmC3B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,OAAO,CACrB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,OAAO,EACZ,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACnC,eAAe,CAuCjB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,SAGpB;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,CAAC,GAAG,WAAW,EAClC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GACzB,MAAM,IAAI,CAQZ;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,CAAC,GAAG,WAAW,EACrC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,CAAC,CAAC,CAkBZ"}
1
+ {"version":3,"file":"eventBus.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,MAAM;IACrC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC;CACT;AACD;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,WAAW,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;AAE/D;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAKhE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,CAAC,GAAG,WAAW,EACvC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC;;;;;EAmC3B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,OAAO,CACrB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,OAAO,EACZ,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACnC,eAAe,CAuCjB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,KAAK,SAGpB;AAED;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAAC,CAAC,GAAG,WAAW,EAClC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GACzB,MAAM,IAAI,CAQZ;AAED;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,CAAC,GAAG,WAAW,EACrC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,CAAC,CAAC,CAkBZ"}
@@ -6,6 +6,9 @@ import { ApiCallback, EventCallback } from './eventBus';
6
6
  * @param eventType - The event type to listen for
7
7
  * @param callback - The callback to execute once
8
8
  * @returns Unsubscribe function
9
+ *
10
+ * @kosService core.event-bus
11
+ * @kosApiLevel 11
9
12
  */
10
13
  export declare function once<T = ApiCallback>(eventType: string, callback: EventCallback<T>): () => void;
11
14
  /**
@@ -14,6 +17,9 @@ export declare function once<T = ApiCallback>(eventType: string, callback: Event
14
17
  * @param eventType - The event type to wait for
15
18
  * @param timeout - Optional timeout in milliseconds
16
19
  * @returns Promise that resolves with the event data
20
+ *
21
+ * @kosService core.event-bus
22
+ * @kosApiLevel 11
17
23
  */
18
24
  export declare function waitFor<T = ApiCallback>(eventType: string, timeout?: number): Promise<T>;
19
25
  /**
@@ -22,6 +28,9 @@ export declare function waitFor<T = ApiCallback>(eventType: string, timeout?: nu
22
28
  * @param eventTypes - Array of event types to wait for
23
29
  * @param timeout - Optional timeout in milliseconds
24
30
  * @returns Promise that resolves when all events have occurred
31
+ *
32
+ * @kosService core.event-bus
33
+ * @kosApiLevel 11
25
34
  */
26
35
  export declare function waitForAll<T = ApiCallback>(eventTypes: string[], timeout?: number): Promise<T[]>;
27
36
  /**
@@ -30,6 +39,9 @@ export declare function waitForAll<T = ApiCallback>(eventTypes: string[], timeou
30
39
  * @param eventTypes - Array of event types to race
31
40
  * @param timeout - Optional timeout in milliseconds
32
41
  * @returns Promise that resolves with the first event
42
+ *
43
+ * @kosService core.event-bus
44
+ * @kosApiLevel 11
33
45
  */
34
46
  export declare function race<T = ApiCallback>(eventTypes: string[], timeout?: number): Promise<{
35
47
  eventType: string;
@@ -42,6 +54,9 @@ export declare function race<T = ApiCallback>(eventTypes: string[], timeout?: nu
42
54
  * @param predicate - Function to test each event
43
55
  * @param callback - Callback for events that pass the filter
44
56
  * @returns Unsubscribe function
57
+ *
58
+ * @kosService core.event-bus
59
+ * @kosApiLevel 11
45
60
  */
46
61
  export declare function filter<T = ApiCallback>(eventType: string, predicate: (msg: T) => boolean, callback: EventCallback<T>): () => void;
47
62
  /**
@@ -51,6 +66,9 @@ export declare function filter<T = ApiCallback>(eventType: string, predicate: (m
51
66
  * @param transform - Function to transform the event data
52
67
  * @param callback - Callback for transformed events
53
68
  * @returns Unsubscribe function
69
+ *
70
+ * @kosService core.event-bus
71
+ * @kosApiLevel 11
54
72
  */
55
73
  export declare function map<T = ApiCallback, R = any>(eventType: string, transform: (msg: T) => R, callback: (msg: R) => void): () => void;
56
74
  /**
@@ -60,6 +78,9 @@ export declare function map<T = ApiCallback, R = any>(eventType: string, transfo
60
78
  * @param delay - Delay in milliseconds
61
79
  * @param callback - Callback for debounced events
62
80
  * @returns Unsubscribe function
81
+ *
82
+ * @kosService core.event-bus
83
+ * @kosApiLevel 11
63
84
  */
64
85
  export declare function debounce<T = ApiCallback>(eventType: string, delay: number, callback: EventCallback<T>): () => void;
65
86
  /**
@@ -69,6 +90,9 @@ export declare function debounce<T = ApiCallback>(eventType: string, delay: numb
69
90
  * @param interval - Minimum interval between emissions in milliseconds
70
91
  * @param callback - Callback for throttled events
71
92
  * @returns Unsubscribe function
93
+ *
94
+ * @kosService core.event-bus
95
+ * @kosApiLevel 11
72
96
  */
73
97
  export declare function throttle<T = ApiCallback>(eventType: string, interval: number, callback: EventCallback<T>): () => void;
74
98
  /**
@@ -78,6 +102,9 @@ export declare function throttle<T = ApiCallback>(eventType: string, interval: n
78
102
  * @param bufferTime - Time window to collect events in milliseconds
79
103
  * @param callback - Callback for buffered events
80
104
  * @returns Unsubscribe function
105
+ *
106
+ * @kosService core.event-bus
107
+ * @kosApiLevel 11
81
108
  */
82
109
  export declare function buffer<T = ApiCallback>(eventType: string, bufferTime: number, callback: (events: T[]) => void): () => void;
83
110
  /**
@@ -86,6 +113,9 @@ export declare function buffer<T = ApiCallback>(eventType: string, bufferTime: n
86
113
  * @param eventType - The event type to replay
87
114
  * @param bufferSize - Number of events to remember
88
115
  * @returns Object with subscribe method that replays buffered events
116
+ *
117
+ * @kosService core.event-bus
118
+ * @kosApiLevel 11
89
119
  */
90
120
  export declare function replay<T = ApiCallback>(eventType: string, bufferSize?: number): {
91
121
  subscribe: (callback: EventCallback<T>) => {
@@ -101,6 +131,9 @@ export declare function replay<T = ApiCallback>(eventType: string, bufferSize?:
101
131
  * @param eventTypes - Array of event types to merge
102
132
  * @param callback - Callback for all merged events
103
133
  * @returns Unsubscribe function for all subscriptions
134
+ *
135
+ * @kosService core.event-bus
136
+ * @kosApiLevel 11
104
137
  */
105
138
  export declare function merge<T = ApiCallback>(eventTypes: string[], callback: (eventType: string, msg: T) => void): () => void;
106
139
  /**
@@ -109,6 +142,9 @@ export declare function merge<T = ApiCallback>(eventTypes: string[], callback: (
109
142
  * @param initialState - The initial state
110
143
  * @param transitions - Object mapping states to event handlers
111
144
  * @returns Object with current state and unsubscribe function
145
+ *
146
+ * @kosService core.event-bus
147
+ * @kosApiLevel 11
112
148
  */
113
149
  export declare function stateMachine<TState extends string, T = ApiCallback>(initialState: TState, transitions: Record<TState, Record<string, (msg: T) => TState>>): {
114
150
  readonly state: TState;
@@ -122,6 +158,9 @@ export declare function stateMachine<TState extends string, T = ApiCallback>(ini
122
158
  * @param request - The request data to publish
123
159
  * @param timeout - Optional timeout in milliseconds
124
160
  * @returns Promise that resolves with the response
161
+ *
162
+ * @kosService core.event-bus
163
+ * @kosApiLevel 11
125
164
  */
126
165
  export declare function request<TRequest = any, TResponse = ApiCallback>(requestEvent: string, responseEvent: string, request: TRequest, timeout?: number): Promise<TResponse>;
127
166
  /**
@@ -129,8 +168,17 @@ export declare function request<TRequest = any, TResponse = ApiCallback>(request
129
168
  *
130
169
  * @param eventType - The event type to iterate
131
170
  * @returns Async iterator for use with for-await-of
171
+ *
172
+ * @kosService core.event-bus
173
+ * @kosApiLevel 11
132
174
  */
133
175
  export declare function eventIterator<T = ApiCallback>(eventType: string): AsyncIterableIterator<T>;
176
+ /**
177
+ * Namespace collecting all functional event bus utilities.
178
+ *
179
+ * @kosService core.event-bus
180
+ * @kosApiLevel 11
181
+ */
134
182
  export declare const EventBusFunctional: {
135
183
  once: typeof once;
136
184
  waitFor: typeof waitFor;
@@ -1 +1 @@
1
- {"version":3,"file":"eventBus.functional.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.functional.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAsB,MAAM,YAAY,CAAC;AAE5E;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,CAAC,GAAG,WAAW,EAClC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GACzB,MAAM,IAAI,CAQZ;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,CAAC,GAA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,CAAC"}
1
+ {"version":3,"file":"eventBus.functional.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.functional.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAsB,MAAM,YAAY,CAAC;AAE5E;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAAC,CAAC,GAAG,WAAW,EAClC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GACzB,MAAM,IAAI,CAQZ;AAED;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,CAAC,GAAG,WAAW,EACrC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,CAAC,CAAC,CAkBZ;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,CAAC,GAAG,WAAW,EACxC,UAAU,EAAE,MAAM,EAAE,EACpB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,CAAC,EAAE,CAAC,CAKd;AAED;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAAC,CAAC,GAAG,WAAW,EAClC,UAAU,EAAE,MAAM,EAAE,EACpB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,CAAC,CAAA;CAAE,CAAC,CAoCzC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,CAAC,GAAG,WAAW,EACpC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,OAAO,EAC9B,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GACzB,MAAM,IAAI,CAQZ;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,GAAG,CAAC,CAAC,GAAG,WAAW,EAAE,CAAC,GAAG,GAAG,EAC1C,SAAS,EAAE,MAAM,EACjB,SAAS,E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C,KAAK,MAAM,CAAC,CAAC;;;EAgChE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,QAAQ,GAAG,GAAG,EAAE,SAAS,GAAG,WAAW,EAC7D,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,QAAQ,EACjB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,SAAS,CAAC,CAIpB;AAED;;;;;;;;GAQG;AACH,wBAAuB,aAAa,CAAC,CAAC,GAAG,WAAW,EAClD,SAAS,EAAE,MAAM,GAChB,qBAAqB,CAAC,CAAC,CAAC,CA4B1B;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;CAe9B,CAAC"}
@@ -2,6 +2,9 @@ import { ApiCallback, EventCallback } from './eventBus';
2
2
 
3
3
  /**
4
4
  * Options for state-aware event subscriptions
5
+ *
6
+ * @kosService core.event-bus
7
+ * @kosApiLevel 11
5
8
  */
6
9
  export interface StateAwareOptions<T> {
7
10
  /** Function to fetch the current state */
@@ -20,6 +23,9 @@ export interface StateAwareOptions<T> {
20
23
  * @param eventType - The event type to wait for
21
24
  * @param options - Options for state fetching and transformation
22
25
  * @returns Promise that resolves with either the event data or current state
26
+ *
27
+ * @kosService core.event-bus
28
+ * @kosApiLevel 11
23
29
  */
24
30
  export declare function waitForOrGetState<T = ApiCallback>(eventType: string, options: StateAwareOptions<T>): Promise<T>;
25
31
  /**
@@ -29,6 +35,9 @@ export declare function waitForOrGetState<T = ApiCallback>(eventType: string, op
29
35
  * @param callback - Callback for state updates
30
36
  * @param options - Options for initial state fetching
31
37
  * @returns Unsubscribe function
38
+ *
39
+ * @kosService core.event-bus
40
+ * @kosApiLevel 11
32
41
  */
33
42
  export declare function subscribeWithInitialState<T = ApiCallback>(eventType: string, callback: EventCallback<T>, options: StateAwareOptions<T>): () => void;
34
43
  /**
@@ -37,6 +46,9 @@ export declare function subscribeWithInitialState<T = ApiCallback>(eventType: st
37
46
  * @param eventType - The event type for updates
38
47
  * @param stateApi - API endpoint or function to fetch current state
39
48
  * @returns Object with subscribe method and current state getter
49
+ *
50
+ * @kosService core.event-bus
51
+ * @kosApiLevel 11
40
52
  */
41
53
  export declare function createStatefulEventStream<T = any>(eventType: string, stateApi: string | (() => Promise<T>)): {
42
54
  /** Get current state synchronously (may be undefined if not loaded) */
@@ -55,6 +67,9 @@ export declare function createStatefulEventStream<T = any>(eventType: string, st
55
67
  * @param eventTypes - Array of event types to wait for
56
68
  * @param options - Shared state checking options
57
69
  * @returns Promise that resolves when all events have occurred or state is ready
70
+ *
71
+ * @kosService core.event-bus
72
+ * @kosApiLevel 11
58
73
  */
59
74
  export declare function waitForAllWithState<T = ApiCallback>(eventTypes: string[], options: StateAwareOptions<T>): Promise<T>;
60
75
  /**
@@ -63,6 +78,9 @@ export declare function waitForAllWithState<T = ApiCallback>(eventTypes: string[
63
78
  * @param eventType - Single event type to wait for
64
79
  * @param options - State checking options
65
80
  * @returns Promise that resolves when event occurs or state is ready
81
+ *
82
+ * @kosService core.event-bus
83
+ * @kosApiLevel 11
66
84
  */
67
85
  export declare function waitForAllWithState<T = ApiCallback>(eventType: string, options: StateAwareOptions<T>): Promise<T>;
68
86
  /**
@@ -71,6 +89,9 @@ export declare function waitForAllWithState<T = ApiCallback>(eventType: string,
71
89
  * @param eventType - Event type to handle
72
90
  * @param handler - Event handler function
73
91
  * @param recoveryStrategy - Strategy for recovering missed events
92
+ *
93
+ * @kosService core.event-bus
94
+ * @kosApiLevel 11
74
95
  */
75
96
  export declare function createResilientEventHandler<T = ApiCallback>(eventType: string, handler: (data: T) => void | Promise<void>, recoveryStrategy: {
76
97
  /** API to fetch missed events or current state */
@@ -83,6 +104,9 @@ export declare function createResilientEventHandler<T = ApiCallback>(eventType:
83
104
  /**
84
105
  * Pattern for handling connection state with events
85
106
  * Useful for WebSocket connections, plugin loading, etc.
107
+ *
108
+ * @kosService core.event-bus
109
+ * @kosApiLevel 11
86
110
  */
87
111
  export interface ConnectionStateManager<T = any> {
88
112
  /** Current connection state */
@@ -98,6 +122,9 @@ export interface ConnectionStateManager<T = any> {
98
122
  }
99
123
  /**
100
124
  * Create a connection state manager that handles online/offline scenarios
125
+ *
126
+ * @kosService core.event-bus
127
+ * @kosApiLevel 11
101
128
  */
102
129
  export declare function createConnectionStateManager<T = any>(config: {
103
130
  connectEvent: string;
@@ -107,6 +134,12 @@ export declare function createConnectionStateManager<T = any>(config: {
107
134
  fetchInitialState: () => Promise<T>;
108
135
  reconnectDelay?: number;
109
136
  }): ConnectionStateManager<T>;
137
+ /**
138
+ * Namespace collecting all state-aware event bus utilities.
139
+ *
140
+ * @kosService core.event-bus
141
+ * @kosApiLevel 11
142
+ */
110
143
  export declare const EventBusState: {
111
144
  waitForOrGetState: typeof waitForOrGetState;
112
145
  subscribeWithInitialState: typeof subscribeWithInitialState;
@@ -1 +1 @@
1
- {"version":3,"file":"eventBus.state.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.state.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAsB,MAAM,YAAY,CAAC;AAE5E;;GAEG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,0CAA0C;IAC1C,eAAe,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACtC,4EAA4E;IAC5E,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,CAAC,CAAC;IACnC,wEAAwE;IACxE,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC;IAC9C,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CAAC,CAAC,GAAG,WAAW,EACrD,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC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AC,CAAC;IACnD,gDAAgD;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0CAA0C;IAC1C,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC;CACxC,cAyDF;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB,CAAC,CAAC,GAAG,GAAG;IAC7C,+BAA+B;IAC/B,KAAK,EAAE,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CAAC;IAC7D,kCAAkC;IAClC,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,4CAA4C;IAC5C,iBAAiB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAChD,iCAAiC;IACjC,SAAS,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;IAC5E,oCAAoC;IACpC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,CAAC,GAAG,GAAG,EAAE,MAAM,EAAE;IAC5D,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAgH5B;AAGD,eAAO,MAAM,aAAa;;;;;;;CAOzB,CAAC"}
1
+ {"version":3,"file":"eventBus.state.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.state.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAsB,MAAM,YAAY,CAAC;AAE5E;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AC5D,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAgH5B;AAED;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;;;;;;CAOzB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Constants for KOS model lifecycle and operations
3
+ */
4
+ /**
5
+ * Timeout in milliseconds for model lifecycle transitions.
6
+ * Models that don't complete their transition within this time will reject.
7
+ */
8
+ export declare const MODEL_PROMISE_TIMEOUT_MS = 5000;
9
+ //# sourceMappingURL=model-constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/constants/model-constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,eAAO,MAAM,wBAAwB,OAAO,CAAC"}
@@ -0,0 +1,71 @@
1
+ import { IKosRegistry } from './types';
2
+ import { KosModelCacheHandler } from './model-cache';
3
+ import { IKosModel } from './kosModel';
4
+ import { DependencyLifecycle } from '../types';
5
+
6
+ /**
7
+ * Handles creation and lifecycle management of companion models.
8
+ * Companions are models that extend or enhance parent models and can be
9
+ * created at specific lifecycle phases based on decorator configuration.
10
+ */
11
+ export declare class KosCompanionInstantiator {
12
+ private registry;
13
+ private cache;
14
+ private createModel;
15
+ constructor(registry: IKosRegistry, cache: KosModelCacheHandler, createModel: (typeId: string, id: string, options: Record<string, any>) => any);
16
+ /**
17
+ * Creates companion models for a parent model, optionally filtered by lifecycle phase.
18
+ * Called automatically during instantiation for companions without lifecycle specified.
19
+ * Can be called from lifecycle hooks to create lifecycle-deferred companions.
20
+ *
21
+ * @param model The parent model
22
+ * @param options Options to pass to companion constructors
23
+ * @param lifecycle Optional lifecycle filter - only create companions matching this phase
24
+ */
25
+ createCompanionModels(model: IKosModel, options: Record<string, any>, lifecycle?: DependencyLifecycle): void;
26
+ /**
27
+ * Get companion definitions for a parent model type
28
+ */
29
+ private getCompanionDefinitions;
30
+ /**
31
+ * Resolve companion type from definition and extract lifecycle metadata
32
+ */
33
+ private resolveCompanionType;
34
+ /**
35
+ * Resolve factory companion by calling factory and extracting lifecycle
36
+ */
37
+ private resolveFactoryCompanion;
38
+ /**
39
+ * Resolve string companion using pre-extracted lifecycle from registration
40
+ */
41
+ private resolveStringCompanion;
42
+ /**
43
+ * Extract lifecycle metadata from companion model decorator
44
+ */
45
+ private extractLifecycleFromType;
46
+ /**
47
+ * Determine if companion should be created based on lifecycle filtering
48
+ */
49
+ private shouldCreateCompanion;
50
+ /**
51
+ * Instantiate and attach companion to parent model
52
+ */
53
+ private instantiateCompanion;
54
+ /**
55
+ * Generate unique companion ID
56
+ */
57
+ private generateCompanionId;
58
+ /**
59
+ * Check if companion already exists in cache
60
+ */
61
+ private companionAlreadyExists;
62
+ /**
63
+ * Create companion model instance with parent context
64
+ */
65
+ private createCompanionInstance;
66
+ /**
67
+ * Attach companion to parent model
68
+ */
69
+ private attachCompanionToParent;
70
+ }
71
+ //# sourceMappingURL=companion-instantiator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"companion-instantiator.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/core/companion-instantiator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAA6B,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAIvE;;;;GAIG;AACH,qBAAa,wBAAwB;IAEjC,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,WAAW;gBAFX,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,oBAAoB,EAC3B,WAAW,EAAE,CACnB,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KACzB,GAAG;IAGV;;;;;;;;OAQG;IACH,qBAAqB,CACnB,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5B,SAAS,CAAC,EAAE,mBAAmB;IAyBjC;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAI/B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAkB5B;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAqB/B;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAU9B;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAWhC;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAa7B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAsC5B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAI3B;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAc9B;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAe/B;;OAEG;IACH,OAAO,CAAC,uBAAuB;CAOhC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Main coordinator for injecting FSM support into a model instance.
3
+ * Delegates to Zone 3 functions for actual implementation.
4
+ *
5
+ * @param modelInstance The model instance to inject FSM support into
6
+ */
7
+ export declare function injectStateMachineSupport(modelInstance: any): void;
8
+ /**
9
+ * Initialize the state machine at a specific lifecycle phase.
10
+ * Called from KosModel lifecycle hooks.
11
+ *
12
+ * @param modelInstance The model instance
13
+ * @param lifecycle The current lifecycle phase
14
+ */
15
+ export declare function initializeStateMachine(modelInstance: any, lifecycle: string): void;
16
+ //# sourceMappingURL=fsm-injection-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fsm-injection-utils.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/fsm-injection-utils.ts"],"names":[],"mappings":"AAeA;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,aAAa,EAAE,GAAG,QAoB3D;AA0dD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,QA0B3E"}
@@ -1,14 +1,25 @@
1
+ export * from './fsm-injection-utils';
1
2
  export * from './kos-child';
2
3
  export * from './kos-companion';
4
+ export * from './kos-container-aware';
3
5
  export * from './kos-context';
6
+ export * from './kos-execution-context';
7
+ export * from './kos-future-aware';
8
+ export * from './kos-multiple-future-aware';
4
9
  export * from './kos-http-decorators';
5
10
  export * from './kos-log';
11
+ export * from './kos-logger-aware';
6
12
  export * from './kos-model-effect';
7
13
  export * from './kos-parent';
8
14
  export * from './kos-reference';
15
+ export * from './kos-service-request';
16
+ export * from './kos-service-request-helpers';
17
+ export * from './kos-state-machine';
18
+ export * from './kos-trouble-aware';
9
19
  export * from './kosDependency';
10
20
  export * from './kosModel';
11
21
  export * from './kosSubscribe';
12
22
  export * from './kosTopicHandler';
23
+ export * from './kos-view-model';
13
24
  export * from './propKeys';
14
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC"}
@@ -14,6 +14,8 @@
14
14
  * @param name - The name of the property to be marked as a child model.
15
15
  * @returns A decorator function that marks the property as a child model.
16
16
  * @category KOS Model Decorator
17
+ * @kosService core.child
18
+ * @kosApiLevel 2
17
19
  */
18
20
  export declare const kosChild: (target: {} | any, name: PropertyKey) => any;
19
21
  //# sourceMappingURL=kos-child.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kos-child.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-child.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,QAAQ,WAAY,EAAE,GAAG,GAAG,QAAQ,WAAW,KAAG,GAG9D,CAAC"}
1
+ {"version":3,"file":"kos-child.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-child.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,QAAQ,WAAY,EAAE,GAAG,GAAG,QAAQ,WAAW,KAAG,GAG9D,CAAC"}