@kosdev-code/kos-ui-sdk 0.1.0-next.944 → 0.1.0-next.948

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 (281) hide show
  1. package/common/events/async-event-bus.d.ts +2 -11
  2. package/common/events/async-event-bus.d.ts.map +1 -1
  3. package/common/events/eventBus.d.ts +1 -18
  4. package/common/events/eventBus.d.ts.map +1 -1
  5. package/core/core/decorators/kos-child.d.ts +2 -3
  6. package/core/core/decorators/kos-child.d.ts.map +1 -1
  7. package/core/core/decorators/kos-companion.d.ts +25 -87
  8. package/core/core/decorators/kos-companion.d.ts.map +1 -1
  9. package/core/core/decorators/kos-container-aware.d.ts +67 -358
  10. package/core/core/decorators/kos-container-aware.d.ts.map +1 -1
  11. package/core/core/decorators/kos-execute-service-request.d.ts +7 -11
  12. package/core/core/decorators/kos-execute-service-request.d.ts.map +1 -1
  13. package/core/core/decorators/kos-execution-context.d.ts +14 -31
  14. package/core/core/decorators/kos-execution-context.d.ts.map +1 -1
  15. package/core/core/decorators/kos-future-aware.d.ts +21 -74
  16. package/core/core/decorators/kos-future-aware.d.ts.map +1 -1
  17. package/core/core/decorators/kos-http-decorators.d.ts +18 -62
  18. package/core/core/decorators/kos-http-decorators.d.ts.map +1 -1
  19. package/core/core/decorators/kos-logger-aware.d.ts +10 -60
  20. package/core/core/decorators/kos-logger-aware.d.ts.map +1 -1
  21. package/core/core/decorators/kos-model-effect.d.ts +10 -9
  22. package/core/core/decorators/kos-model-effect.d.ts.map +1 -1
  23. package/core/core/decorators/kos-multiple-future-aware.d.ts +21 -94
  24. package/core/core/decorators/kos-multiple-future-aware.d.ts.map +1 -1
  25. package/core/core/decorators/kos-reload-aware.d.ts +12 -16
  26. package/core/core/decorators/kos-reload-aware.d.ts.map +1 -1
  27. package/core/core/decorators/kos-service-request.d.ts +80 -238
  28. package/core/core/decorators/kos-service-request.d.ts.map +1 -1
  29. package/core/core/decorators/kos-state-machine.d.ts +35 -275
  30. package/core/core/decorators/kos-state-machine.d.ts.map +1 -1
  31. package/core/core/decorators/kos-trouble-aware.d.ts +9 -43
  32. package/core/core/decorators/kos-trouble-aware.d.ts.map +1 -1
  33. package/core/core/decorators/kos-view-model.d.ts +20 -100
  34. package/core/core/decorators/kos-view-model.d.ts.map +1 -1
  35. package/core/core/decorators/kosTopicHandler.d.ts +28 -89
  36. package/core/core/decorators/kosTopicHandler.d.ts.map +1 -1
  37. package/core/core/indexing/index.d.ts +2 -4
  38. package/core/core/indexing/index.d.ts.map +1 -1
  39. package/core/core/indexing/kos-container-index-aware.d.ts +17 -48
  40. package/core/core/indexing/kos-container-index-aware.d.ts.map +1 -1
  41. package/core/core/indexing/kos-index-aware.d.ts +11 -37
  42. package/core/core/indexing/kos-index-aware.d.ts.map +1 -1
  43. package/core/core/kos-container-model.d.ts +11 -32
  44. package/core/core/kos-container-model.d.ts.map +1 -1
  45. package/core/core/kos-data-container.d.ts +6 -6
  46. package/core/core/kos-data-container.d.ts.map +1 -1
  47. package/core/core/kosCore.d.ts +3 -3
  48. package/core/core/kosModelManager.d.ts +2 -3
  49. package/core/core/kosModelManager.d.ts.map +1 -1
  50. package/core/core/model/kos-offline-queue.d.ts +1 -1
  51. package/core/core/model/service-response-store.d.ts +2 -15
  52. package/core/core/model/service-response-store.d.ts.map +1 -1
  53. package/core/core/services/app-startup-service.d.ts +5 -13
  54. package/core/core/services/app-startup-service.d.ts.map +1 -1
  55. package/core/core/services/intent-service.d.ts +3 -12
  56. package/core/core/services/intent-service.d.ts.map +1 -1
  57. package/core/core/transport/mock/mock-frames.d.ts +3 -3
  58. package/core/types/model.d.ts +4 -8
  59. package/core/types/model.d.ts.map +1 -1
  60. package/core/types/service-response-store.d.ts +3 -11
  61. package/core/types/service-response-store.d.ts.map +1 -1
  62. package/core/types/utils/kos-fetch.d.ts +25 -37
  63. package/core/types/utils/kos-fetch.d.ts.map +1 -1
  64. package/core/util/abortable-when.d.ts +5 -6
  65. package/core/util/abortable-when.d.ts.map +1 -1
  66. package/core/util/ancestor-path-visitor.d.ts +14 -20
  67. package/core/util/ancestor-path-visitor.d.ts.map +1 -1
  68. package/core/util/container-utils.d.ts +26 -159
  69. package/core/util/container-utils.d.ts.map +1 -1
  70. package/core/util/date-utils.d.ts +9 -58
  71. package/core/util/date-utils.d.ts.map +1 -1
  72. package/core/util/debounce.d.ts +1 -8
  73. package/core/util/debounce.d.ts.map +1 -1
  74. package/core/util/kos-fetch.d.ts +1 -1
  75. package/core/util/kos-fetch.d.ts.map +1 -1
  76. package/core/util/kos-model-utils.d.ts +10 -11
  77. package/core/util/kos-model-utils.d.ts.map +1 -1
  78. package/core/util/model-attribute-utils.d.ts +5 -22
  79. package/core/util/model-attribute-utils.d.ts.map +1 -1
  80. package/core/util/promise-utils.d.ts +1 -26
  81. package/core/util/promise-utils.d.ts.map +1 -1
  82. package/core/util/service-factory.d.ts +5 -23
  83. package/core/util/service-factory.d.ts.map +1 -1
  84. package/core/util/service-request-error.d.ts +3 -5
  85. package/core/util/service-request-error.d.ts.map +1 -1
  86. package/core/util/service-response.d.ts +12 -67
  87. package/core/util/service-response.d.ts.map +1 -1
  88. package/core/util/transport-not-ready-error.d.ts +11 -13
  89. package/core/util/transport-not-ready-error.d.ts.map +1 -1
  90. package/core/util/when-ready.d.ts +1 -8
  91. package/core/util/when-ready.d.ts.map +1 -1
  92. package/index.cjs +12 -21
  93. package/index.cjs.map +1 -1
  94. package/index.js +13 -22
  95. package/index.js.map +1 -1
  96. package/models/decorators/future-service.d.ts +7 -7
  97. package/models/models/browser-router/browser-router-model.d.ts +10 -39
  98. package/models/models/browser-router/browser-router-model.d.ts.map +1 -1
  99. package/models/models/browser-router/browser-router-registration.d.ts +5 -77
  100. package/models/models/browser-router/browser-router-registration.d.ts.map +1 -1
  101. package/models/models/browser-router/types/index.d.ts +2 -16
  102. package/models/models/canvas-dispatcher/canvas-dispatcher-registration.d.ts +5 -77
  103. package/models/models/canvas-dispatcher/canvas-dispatcher-registration.d.ts.map +1 -1
  104. package/models/models/canvas-renderer/canvas-renderer-registration.d.ts +5 -75
  105. package/models/models/canvas-renderer/canvas-renderer-registration.d.ts.map +1 -1
  106. package/models/models/config-bean/config-bean-model-builder.d.ts +4 -11
  107. package/models/models/config-bean/config-bean-model-builder.d.ts.map +1 -1
  108. package/models/models/config-bean/config-bean-model.d.ts +14 -66
  109. package/models/models/config-bean/config-bean-model.d.ts.map +1 -1
  110. package/models/models/config-bean-prop/config-bean-prop-model.d.ts +15 -62
  111. package/models/models/config-bean-prop/config-bean-prop-model.d.ts.map +1 -1
  112. package/models/models/config-bean-prop/types/index.d.ts +34 -215
  113. package/models/models/device/device-model.d.ts +20 -199
  114. package/models/models/device/device-model.d.ts.map +1 -1
  115. package/models/models/device/device-registration.d.ts +7 -87
  116. package/models/models/device/device-registration.d.ts.map +1 -1
  117. package/models/models/device/types/index.d.ts +5 -34
  118. package/models/models/future/future-aware.d.ts +7 -71
  119. package/models/models/future/future-aware.d.ts.map +1 -1
  120. package/models/models/future/future-model-builder.d.ts +2 -2
  121. package/models/models/future/future-model.d.ts +3 -23
  122. package/models/models/future/future-model.d.ts.map +1 -1
  123. package/models/models/future/future-types.d.ts +28 -145
  124. package/models/models/future/future-types.d.ts.map +1 -1
  125. package/models/models/key-value/key-value-model.d.ts +12 -72
  126. package/models/models/key-value/key-value-model.d.ts.map +1 -1
  127. package/models/models/key-value/key-value-registration.d.ts +5 -77
  128. package/models/models/key-value/key-value-registration.d.ts.map +1 -1
  129. package/models/models/key-value/services/key-value-services.d.ts +13 -72
  130. package/models/models/key-value/services/key-value-services.d.ts.map +1 -1
  131. package/models/models/key-value/types/index.d.ts +3 -46
  132. package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts +32 -99
  133. package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts.map +1 -1
  134. package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts +2 -12
  135. package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts.map +1 -1
  136. package/models/models/kos-log-manager/kos-log-manager-model.d.ts +7 -46
  137. package/models/models/kos-log-manager/kos-log-manager-model.d.ts.map +1 -1
  138. package/models/models/kos-log-manager/kos-log-manager-registration.d.ts +5 -80
  139. package/models/models/kos-log-manager/kos-log-manager-registration.d.ts.map +1 -1
  140. package/models/models/kos-log-manager/types/index.d.ts +13 -156
  141. package/models/models/kos-time/kos-time-model.d.ts +8 -39
  142. package/models/models/kos-time/kos-time-model.d.ts.map +1 -1
  143. package/models/models/kos-time/kos-time-registration.d.ts +6 -73
  144. package/models/models/kos-time/kos-time-registration.d.ts.map +1 -1
  145. package/models/models/kos-time/types/index.d.ts +3 -58
  146. package/models/models/log-block/log-block-container-model.d.ts +2 -118
  147. package/models/models/log-block/log-block-container-model.d.ts.map +1 -1
  148. package/models/models/log-block/log-block-container-registration.d.ts +5 -75
  149. package/models/models/log-block/log-block-container-registration.d.ts.map +1 -1
  150. package/models/models/log-block/log-block-model.d.ts +5 -168
  151. package/models/models/log-block/log-block-model.d.ts.map +1 -1
  152. package/models/models/log-block/log-block-registration.d.ts +5 -75
  153. package/models/models/log-block/log-block-registration.d.ts.map +1 -1
  154. package/models/models/log-block/types/index.d.ts +14 -81
  155. package/models/models/log-stream/log-stream-container-model.d.ts +8 -35
  156. package/models/models/log-stream/log-stream-container-model.d.ts.map +1 -1
  157. package/models/models/log-stream/log-stream-container-registration.d.ts +5 -75
  158. package/models/models/log-stream/log-stream-container-registration.d.ts.map +1 -1
  159. package/models/models/log-stream/log-stream-model.d.ts +8 -29
  160. package/models/models/log-stream/log-stream-model.d.ts.map +1 -1
  161. package/models/models/log-stream/log-stream-registration.d.ts +5 -75
  162. package/models/models/log-stream/log-stream-registration.d.ts.map +1 -1
  163. package/models/models/log-stream/types/index.d.ts +5 -60
  164. package/models/models/network-interface/network-interface-container-model.d.ts +6 -35
  165. package/models/models/network-interface/network-interface-container-model.d.ts.map +1 -1
  166. package/models/models/network-interface/network-interface-container-registration.d.ts +5 -73
  167. package/models/models/network-interface/network-interface-container-registration.d.ts.map +1 -1
  168. package/models/models/network-interface/network-interface-model.d.ts +5 -43
  169. package/models/models/network-interface/network-interface-model.d.ts.map +1 -1
  170. package/models/models/network-interface/network-interface-registration.d.ts +5 -73
  171. package/models/models/network-interface/network-interface-registration.d.ts.map +1 -1
  172. package/models/models/network-interface/types/index.d.ts +2 -16
  173. package/models/models/ota/ota-model.d.ts +11 -39
  174. package/models/models/ota/ota-model.d.ts.map +1 -1
  175. package/models/models/ota/ota-registration.d.ts +5 -77
  176. package/models/models/ota/ota-registration.d.ts.map +1 -1
  177. package/models/models/ota/types/index.d.ts +2 -141
  178. package/models/models/region-info/types/index.d.ts +19 -99
  179. package/models/models/region-info/types/index.d.ts.map +1 -1
  180. package/models/models/software-info/services/software-info-services.d.ts +2 -14
  181. package/models/models/software-info/services/software-info-services.d.ts.map +1 -1
  182. package/models/models/software-info/software-info-model.d.ts +3 -39
  183. package/models/models/software-info/software-info-model.d.ts.map +1 -1
  184. package/models/models/software-info/software-info-registration.d.ts +6 -73
  185. package/models/models/software-info/software-info-registration.d.ts.map +1 -1
  186. package/models/models/software-info/types/index.d.ts +6 -20
  187. package/models/models/state-bean/state-bean-model.d.ts +10 -41
  188. package/models/models/state-bean/state-bean-model.d.ts.map +1 -1
  189. package/models/models/state-bean/state-bean-registration.d.ts +6 -73
  190. package/models/models/state-bean/state-bean-registration.d.ts.map +1 -1
  191. package/models/models/state-bean/types/index.d.ts +4 -84
  192. package/models/models/state-prop/state-prop-model.d.ts +6 -40
  193. package/models/models/state-prop/state-prop-model.d.ts.map +1 -1
  194. package/models/models/state-prop/state-prop-registration.d.ts +6 -73
  195. package/models/models/state-prop/state-prop-registration.d.ts.map +1 -1
  196. package/models/models/state-prop/types/index.d.ts +5 -37
  197. package/models/models/storage-device/storage-device-container-model.d.ts +7 -273
  198. package/models/models/storage-device/storage-device-container-model.d.ts.map +1 -1
  199. package/models/models/storage-device/storage-device-container-registration.d.ts +5 -75
  200. package/models/models/storage-device/storage-device-container-registration.d.ts.map +1 -1
  201. package/models/models/storage-device/storage-device-model.d.ts +3 -49
  202. package/models/models/storage-device/storage-device-model.d.ts.map +1 -1
  203. package/models/models/storage-device/storage-device-registration.d.ts +5 -75
  204. package/models/models/storage-device/storage-device-registration.d.ts.map +1 -1
  205. package/models/models/storage-device/types/index.d.ts +13 -82
  206. package/models/models/studio-properties/studio-properties-model.d.ts +13 -36
  207. package/models/models/studio-properties/studio-properties-model.d.ts.map +1 -1
  208. package/models/models/studio-properties/studio-properties-registration.d.ts +5 -75
  209. package/models/models/studio-properties/studio-properties-registration.d.ts.map +1 -1
  210. package/models/models/studio-properties/types/index.d.ts +2 -24
  211. package/models/models/translation/descriptor-merge.d.ts +13 -17
  212. package/models/models/translation/descriptor-merge.d.ts.map +1 -1
  213. package/models/models/translation/services/translation-services.d.ts +19 -77
  214. package/models/models/translation/services/translation-services.d.ts.map +1 -1
  215. package/models/models/translation/test-harness.d.ts +6 -8
  216. package/models/models/translation/test-harness.d.ts.map +1 -1
  217. package/models/models/translation/translation-container-model.d.ts +7 -59
  218. package/models/models/translation/translation-container-model.d.ts.map +1 -1
  219. package/models/models/translation/translation-container-registration.d.ts +6 -73
  220. package/models/models/translation/translation-container-registration.d.ts.map +1 -1
  221. package/models/models/translation/translation-model.d.ts +17 -50
  222. package/models/models/translation/translation-model.d.ts.map +1 -1
  223. package/models/models/translation/translation-registration.d.ts +6 -73
  224. package/models/models/translation/translation-registration.d.ts.map +1 -1
  225. package/models/models/translation/types/index.d.ts +51 -276
  226. package/models/models/trouble/trouble-registration.d.ts +6 -73
  227. package/models/models/trouble/trouble-registration.d.ts.map +1 -1
  228. package/models/models/trouble/types/index.d.ts +17 -188
  229. package/models/models/trouble/utils/is-trouble-aware.d.ts +4 -85
  230. package/models/models/trouble/utils/is-trouble-aware.d.ts.map +1 -1
  231. package/models/models/usb-update/usb-update-container-registration.d.ts +5 -75
  232. package/models/models/usb-update/usb-update-container-registration.d.ts.map +1 -1
  233. package/models/models/usb-update/usb-update-registration.d.ts +5 -75
  234. package/models/models/usb-update/usb-update-registration.d.ts.map +1 -1
  235. package/models/types/cancellable-promise.d.ts +6 -9
  236. package/models/types/cancellable-promise.d.ts.map +1 -1
  237. package/models/utils/await-future-call.d.ts +9 -21
  238. package/models/utils/await-future-call.d.ts.map +1 -1
  239. package/models/utils/cancellable-future-call.d.ts +8 -19
  240. package/models/utils/cancellable-future-call.d.ts.map +1 -1
  241. package/models/utils/cancellable-service.d.ts +14 -23
  242. package/models/utils/cancellable-service.d.ts.map +1 -1
  243. package/models/utils/conversion-utils.d.ts +8 -48
  244. package/models/utils/conversion-utils.d.ts.map +1 -1
  245. package/models/utils/persistence-store.d.ts +1 -1
  246. package/models/utils/service.d.ts +14 -48
  247. package/models/utils/service.d.ts.map +1 -1
  248. package/models/utils/services/kos/daily/service.d.ts +4 -4
  249. package/models/utils/services/vfs/daily/service.d.ts +4 -4
  250. package/models/utils/timer-manager.d.ts.map +1 -1
  251. package/package.json +3 -3
  252. package/{software-info-registration-GUbTY4KD.cjs → software-info-registration-CY_E6Rw7.cjs} +85 -368
  253. package/software-info-registration-CY_E6Rw7.cjs.map +1 -0
  254. package/{software-info-registration-CKlTQPet.js → software-info-registration-CuuEsH8v.js} +85 -368
  255. package/software-info-registration-CuuEsH8v.js.map +1 -0
  256. package/testing/index.d.ts +28 -33
  257. package/testing/index.d.ts.map +1 -1
  258. package/testing.cjs +1 -1
  259. package/testing.cjs.map +1 -1
  260. package/testing.js +1 -1
  261. package/testing.js.map +1 -1
  262. package/ui/features/canvas/hooks/use-image-renderer.d.ts +5 -4
  263. package/ui/features/canvas/hooks/use-image-renderer.d.ts.map +1 -1
  264. package/ui/hooks/use-function-warmup.d.ts +4 -14
  265. package/ui/hooks/use-function-warmup.d.ts.map +1 -1
  266. package/ui/hooks/use-kos-date-formats.d.ts +15 -29
  267. package/ui/hooks/use-kos-date-formats.d.ts.map +1 -1
  268. package/ui/hooks/use-kos-region-timezones.d.ts +4 -55
  269. package/ui/hooks/use-kos-region-timezones.d.ts.map +1 -1
  270. package/ui/hooks/use-kos-regions.d.ts +11 -23
  271. package/ui/hooks/use-kos-regions.d.ts.map +1 -1
  272. package/ui/hooks/use-kos-time-formats.d.ts +16 -31
  273. package/ui/hooks/use-kos-time-formats.d.ts.map +1 -1
  274. package/ui/hooks/use-kos-unit-systems.d.ts +13 -27
  275. package/ui/hooks/use-kos-unit-systems.d.ts.map +1 -1
  276. package/ui/hooks/view-model/use-view-model.d.ts +6 -31
  277. package/ui/hooks/view-model/use-view-model.d.ts.map +1 -1
  278. package/ui/policies/reload-on-disconnect-policy.d.ts +5 -6
  279. package/ui/policies/reload-on-disconnect-policy.d.ts.map +1 -1
  280. package/software-info-registration-CKlTQPet.js.map +0 -1
  281. package/software-info-registration-GUbTY4KD.cjs.map +0 -1
@@ -61,35 +61,24 @@ export interface FieldMapping {
61
61
  /**
62
62
  * Configuration for error handling in service requests.
63
63
  *
64
- * Provides multiple strategies for handling request failures, enabling soft failures
65
- * with cached default values and error-first parameter patterns.
66
- *
67
- * @remarks
68
- * All strategies except 'throw' cache defaultValue in the response store, ensuring
69
- * consistency across model lifecycle. Lifecycle-triggered handlers receive error-first
70
- * parameters: (error, data), while method-driven requests use $request executor
71
- * returning tuple: [error, data].
64
+ * Every strategy except 'throw' allows a soft failure: the request's `defaultValue`
65
+ * stands in for the response. A lifecycle-driven handler is then called with
66
+ * `(error, defaultValue)`; a method-driven `$request` resolves to `[null, defaultValue]`.
72
67
  *
73
68
  * @example
74
69
  * ```typescript
75
- * // Soft failure with logging
76
70
  * @kosServiceRequest({
77
- * path: '/api/data',
78
- * errorHandler: {
79
- * strategy: 'log',
80
- * defaultValue: []
81
- * }
71
+ * path: PATH_DATA,
72
+ * lifecycle: DependencyLifecycle.LOAD,
73
+ * errorHandler: { strategy: 'log', defaultValue: [] }
82
74
  * })
83
- * async loadData(error: string | null, data: DataType[]): Promise<void> {
84
- * if (error) {
85
- * this.logger.error(`Load failed: ${error}`);
86
- * }
87
- * this.processData(data); // Either real data or defaultValue
75
+ * onDataLoaded(error: string | null, data: DataType[]): void {
76
+ * this.items = data;
88
77
  * }
89
78
  * ```
90
79
  *
91
80
  * @category Service Request
92
- * @see {@link KosServiceRequestConfig} for complete decorator configuration
81
+ * @see {@link IKosServiceRequestParams} for complete decorator configuration
93
82
  * @kosService core.service-request
94
83
  * @kosApiLevel 15
95
84
  */
@@ -97,48 +86,28 @@ export interface ErrorHandlerConfig {
97
86
  /**
98
87
  * How to handle errors:
99
88
  *
100
- * - 'throw': Re-throw error (default) - handler not called, no caching
101
- *
102
- * - 'log': Log error, cache defaultValue, and call handler with (error, defaultValue)
103
- * Enables soft failure - log the error but continue processing with default data
104
- *
105
- * - 'ignore': Cache defaultValue and call handler with (error, defaultValue)
106
- * Soft failure without logging - silent recovery
107
- *
108
- * - 'default': Same as 'ignore' - cache defaultValue and call handler
109
- * (Kept for backward compatibility, behaves identically to 'ignore')
89
+ * - 'throw' (default): the failure propagates. A lifecycle handler is not called and
90
+ * nothing is cached; a method-driven `$request` resolves to `[error, null]`.
91
+ * - 'log': logs the error, then behaves like 'ignore'.
92
+ * - 'ignore': caches `defaultValue` and hands it to the handler (lifecycle) or
93
+ * returns it (method-driven).
94
+ * - 'default': same as 'ignore'.
110
95
  *
111
- * All strategies except 'throw' cache defaultValue in response store for consistency.
112
- *
113
- * Note: For lifecycle requests, handler receives error-first parameters: (error, data)
114
- * For method-driven requests, $request executor returns tuple: [error, data]
96
+ * A lifecycle handler is only called on failure when `defaultValue` is set.
115
97
  */
116
98
  strategy: "throw" | "log" | "ignore" | "default";
117
99
  /**
118
- * Default value to use when an error occurs.
119
- * Used with 'log', 'ignore', or 'default' strategies.
120
- * - Stored in response cache for subsequent access
121
- * - Passed to handler as second parameter: handler(errorMessage, defaultValue)
100
+ * Value used in place of the response when a request fails under the 'log',
101
+ * 'ignore' or 'default' strategy. It is stored in the response cache and passed to
102
+ * the handler as its second parameter.
122
103
  */
123
104
  defaultValue?: any;
124
105
  /**
125
- * Custom error handler function called when a request fails.
126
- *
127
- * When the failure is an HTTP error response, `error` will be a
128
- * {@link ServiceRequestError} instance with `status`, `statusText`,
129
- * `responseBody`, and `responseHeaders` properties.
106
+ * Called when a request fails.
130
107
  *
131
- * For non-HTTP failures (network errors, timeouts), `error` is a
132
- * plain `Error`.
133
- *
134
- * @example
135
- * ```typescript
136
- * onError: (error, model) => {
137
- * if (error instanceof ServiceRequestError) {
138
- * console.error(`HTTP ${error.status}`, error.responseBody, error.responseHeaders);
139
- * }
140
- * }
141
- * ```
108
+ * For an HTTP error response, `error` is a {@link ServiceRequestError} carrying
109
+ * `status`, `statusText`, `responseBody` and `responseHeaders`. For network errors
110
+ * and timeouts it is a plain `Error`.
142
111
  */
143
112
  onError?: (error: Error | ServiceRequestError, model: IKosDataModel) => void;
144
113
  }
@@ -157,11 +126,8 @@ export interface ErrorHandlerConfig {
157
126
  */
158
127
  export interface IKosServiceRequestParams<Paths extends Record<string, any> = Record<string, any>, Path extends keyof Paths = string, Method extends HttpMethod = "get", Response = any, TransformedResponse = Response> {
159
128
  /**
160
- * API path to request
161
- *
162
- * @example
163
- * path: '/api/kos/ingredients'
164
- * path: `/api/devices/${PROP_DEVICE_ID}/status` // with PropKey
129
+ * API path to request. May contain property keys from `createPropKey`, which are
130
+ * resolved against the model.
165
131
  */
166
132
  path: Path;
167
133
  /**
@@ -171,39 +137,25 @@ export interface IKosServiceRequestParams<Paths extends Record<string, any> = Re
171
137
  */
172
138
  method?: Method;
173
139
  /**
174
- * When to execute this request during model lifecycle
175
- *
176
- * If omitted, the request executes when the decorated method is called (method-driven).
177
- * If specified, the request executes automatically during the given lifecycle phase (lifecycle-driven).
140
+ * When to execute this request during model lifecycle.
178
141
  *
179
- * @example
180
- * // Lifecycle-driven (auto-execute during LOAD phase)
181
- * lifecycle: DependencyLifecycle.LOAD
182
- *
183
- * @example
184
- * // Method-driven (execute when method is called)
185
- * lifecycle: undefined // or omit entirely
142
+ * When set, the request runs automatically in that phase and the decorated method is
143
+ * called with `(error, data)` (lifecycle-driven). When omitted, the request runs when
144
+ * the method calls `ctx.$request()` on the execution context passed as its last
145
+ * parameter (method-driven).
186
146
  */
187
147
  lifecycle?: DependencyLifecycle;
188
148
  /**
189
- * Path parameters to expand in the URL
190
- * Strongly typed from OpenAPI schema
191
- * Can be static values, PropKey references, or a function. A function is
192
- * called with the model followed by the decorated method's call arguments;
193
- * a lifecycle-driven request has no call arguments, so it receives only the
194
- * model.
195
- *
196
- * @example
197
- * // Static value
198
- * pathParams: { deviceId: 'device-123' }
199
- *
200
- * @example
201
- * // PropKey reference (use PROP_ prefix)
202
- * pathParams: { deviceId: PROP_DEVICE_ID }
149
+ * Path parameters to expand in the URL, typed from the OpenAPI schema.
150
+ * Values may be static, property keys from `createPropKey`, or a function. A function
151
+ * is called with the model followed by the decorated method's call arguments; a
152
+ * lifecycle-driven request has no call arguments, so it receives only the model.
203
153
  *
204
154
  * @example
205
- * // From the method's call arguments: setStatus(deviceId, status)
206
- * pathParams: (model, deviceId, status) => ({ deviceId })
155
+ * ```typescript
156
+ * // setStatus(deviceId, status)
157
+ * pathParams: (model, deviceId) => ({ deviceId })
158
+ * ```
207
159
  */
208
160
  pathParams?: (ClientParams<Paths, Path, Method> extends {
209
161
  path?: infer P;
@@ -211,18 +163,9 @@ export interface IKosServiceRequestParams<Paths extends Record<string, any> = Re
211
163
  path?: infer P;
212
164
  } ? P : never);
213
165
  /**
214
- * Query parameters
215
- * Strongly typed from OpenAPI schema
166
+ * Query parameters, typed from the OpenAPI schema.
216
167
  * A function is called with the model followed by the decorated method's
217
168
  * call arguments; a lifecycle-driven request receives only the model.
218
- *
219
- * @example
220
- * // Static
221
- * queryParams: { includeMetadata: true, format: 'json' }
222
- *
223
- * @example
224
- * // From the method's call arguments: inspect(deviceId, debug)
225
- * queryParams: (model, deviceId, debug) => ({ debug })
226
169
  */
227
170
  queryParams?: (ClientParams<Paths, Path, Method> extends {
228
171
  query?: infer Q;
@@ -230,123 +173,64 @@ export interface IKosServiceRequestParams<Paths extends Record<string, any> = Re
230
173
  query?: infer Q;
231
174
  } ? Q : never);
232
175
  /**
233
- * Request body (for POST/PUT/DELETE)
234
- * Strongly typed from OpenAPI schema
176
+ * Request body (for POST/PUT/DELETE), typed from the OpenAPI schema.
235
177
  * A function is called with the model followed by the decorated method's
236
178
  * call arguments; a lifecycle-driven request receives only the model.
237
- *
238
- * @example
239
- * // Static body
240
- * body: { action: 'start' }
241
- *
242
- * @example
243
- * // From the method's call arguments: drive(vehicleType, speed)
244
- * body: (model, vehicleType, speed) => ({ vehicleType, speed })
245
179
  */
246
180
  body?: ClientBody<Paths, Path, Method> | ((model: IKosDataModel, ...args: any[]) => ClientBody<Paths, Path, Method>);
247
181
  /**
248
- * JSON path to iterate over in response
249
- * Creates models for each item in the array
250
- *
251
- * @example
252
- * iterateOver: 'data.ingredients' // Iterates response.data.ingredients array
182
+ * Dot path to an array in the response (for example `'data.ingredients'`). Each item
183
+ * is mapped and, with `modelFactory`, turned into a model.
253
184
  */
254
185
  iterateOver?: string;
255
186
  /**
256
- * Model registration object for creating instances from array items
257
- * Used with iterateOver to create child models using the builder pattern
258
- *
259
- * @example
260
- * modelFactory: IngredientModel // The registration object itself
261
- *
262
- * deprecated The old curried function signature is deprecated:
263
- * modelFactory?: (id: string) => (options: any) => IKosDataModel
187
+ * Model registration used with `iterateOver` to build a model for each array item
188
+ * (`registration.instance(id).options(item).build()`). The curried
189
+ * `(id) => (options) => model` form is deprecated.
264
190
  */
265
191
  modelFactory?: KosModelRegistrationType<IKosDataModel, any> | ((id: string) => (options: any) => IKosDataModel);
266
192
  /**
267
- * Function to extract the model ID from response data items
268
- * Required when using modelFactory if items don't have an 'id' field
269
- *
270
- * @example
271
- * idExtractor: (item) => item.ingredientId
272
- * idExtractor: (item) => `${item.type}-${item.index}`
193
+ * Returns the model ID for a (mapped) response item. Required with `modelFactory`
194
+ * when items have no `id` field.
273
195
  */
274
196
  idExtractor?: (item: any) => string;
275
197
  /**
276
- * Field mappings for data transformation
277
- * Same format as @kosTopicHandler mappings
198
+ * Field mappings applied to the response after `transform`. With `iterateOver` they
199
+ * apply to each item.
278
200
  *
279
201
  * @example
202
+ * ```typescript
280
203
  * mappings: [
281
204
  * { from: 'id', to: 'id' },
282
- * { from: 'ingredientId', to: 'ingredientId' },
283
205
  * { from: 'metadata.calories', to: 'calories', transform: 'number' }
284
206
  * ]
207
+ * ```
285
208
  */
286
209
  mappings?: FieldMapping[];
287
210
  /**
288
- * Transformation function for response data
289
- * Applied before mappings
290
- *
291
- * @example
292
- * transform: (response) => response.data
211
+ * Transformation function for response data, applied before mappings.
293
212
  */
294
213
  transform?: (response: Response) => TransformedResponse;
295
214
  /**
296
- * Condition to determine if request should execute
297
- *
298
- * @example
299
- * condition: (model) => model.isInitialized
215
+ * Condition to determine if the request should execute.
300
216
  */
301
217
  condition?: (model: IKosDataModel) => boolean;
302
218
  /**
303
- * Error handling strategy
304
- *
305
- * @example
306
- * errorHandler: {
307
- * strategy: 'default',
308
- * defaultValue: [],
309
- * onError: (error, model) => model.logger.error('Failed to load', error)
310
- * }
219
+ * Error handling strategy. See {@link ErrorHandlerConfig}.
311
220
  */
312
221
  errorHandler?: ErrorHandlerConfig;
313
222
  /**
314
- * Response caching configuration
315
- * Controls how long responses are stored and when they're cleaned up
223
+ * How long the response stays in the model's response store (read with
224
+ * `getServiceResponse`).
316
225
  *
317
226
  * @default { retention: ResponseRetention.SINGLE }
318
- *
319
- * @example
320
- * // No caching - clear immediately after handler
321
- * cache: { retention: ResponseRetention.IMMEDIATE }
322
- *
323
- * @example
324
- * // Cache for 5 minutes
325
- * cache: { retention: ResponseRetention.TTL, ttl: 5 * 60 * 1000 }
326
- *
327
- * @example
328
- * // Keep for model lifetime
329
- * cache: { retention: ResponseRetention.PERMANENT }
330
227
  */
331
228
  cache?: ResponseCacheConfig;
332
229
  /**
333
- * Request options for controlling fetch behavior
334
- * These are merged with runtime options passed to ctx.$request()
335
- * Runtime options take precedence over decorator options
336
- *
337
- * @example
338
- * // Set default timeout and destination for all requests
339
- * requestOptions: {
340
- * destinationAddress: 'device-123',
341
- * timeout: 10000
342
- * }
230
+ * Fetch options for the request (timeout, headers, destinationAddress, ...). A
231
+ * function is called with the model followed by the method's call arguments. Options
232
+ * passed to `ctx.$request()` at runtime take precedence.
343
233
  *
344
- * @example
345
- * // Dynamic from method arguments
346
- * requestOptions: (model, ...args) => ({
347
- * destinationAddress: model.deviceId,
348
- * headers: { 'X-Session': model.sessionId }
349
- * })
350
234
  * @kosApiLevel 18
351
235
  */
352
236
  requestOptions?: RequestOptions | ((model: IKosDataModel, ...args: any[]) => RequestOptions);
@@ -366,8 +250,9 @@ export interface ServiceRequestMetadata<Paths extends Record<string, any> = Reco
366
250
  originalHandler: Function;
367
251
  }
368
252
  /**
369
- * Runtime service request executor injected into method context
370
- * Allows imperative execution of the service request defined by the decorator
253
+ * Executor injected as `$request` on the execution context of a method-driven
254
+ * @kosServiceRequest. Runtime params are merged over the decorator's, and it resolves
255
+ * to an error-first `[error, data]` tuple.
371
256
  *
372
257
  * @kosService core.service-request
373
258
  */
@@ -384,86 +269,43 @@ export interface ServiceRequestExecutor<Paths extends Record<string, any> = Reco
384
269
  }): Promise<[string | null, any]>;
385
270
  }
386
271
  /**
387
- * Type alias for the service request executor function signature.
388
- * This executor is automatically passed as the last parameter to methods
389
- * decorated with @kosServiceRequest (without lifecycle).
390
- *
391
- * @example
392
- * ```typescript
393
- * type CreateReleaseExecutor = ServiceRequestExecutor<paths, typeof PATH_VM_INSTALL, 'post'>;
394
- * ```
272
+ * Alias of {@link ServiceRequestExecutor}.
395
273
  *
396
274
  * @kosService core.service-request
397
275
  */
398
276
  export type ServiceRequestExecutorFn<Paths extends Record<string, any> = Record<string, any>, Path extends keyof Paths = string, Method extends HttpMethod = "get"> = ServiceRequestExecutor<Paths, Path, Method>;
399
277
  /**
400
- * Decorator for lifecycle-driven service requests within KOS models
278
+ * Method decorator that binds an HTTP request to a KOS model method.
401
279
  *
402
- * Eliminates service boilerplate by integrating HTTP requests directly into
403
- * the model lifecycle. Responses are cached in ServiceResponseStore for access
404
- * via utility functions, avoiding "magic last parameter" patterns.
280
+ * - **Lifecycle-driven** (`lifecycle` set): the request runs in that lifecycle phase.
281
+ * The response (after `transform`, `mappings` and `iterateOver`) is stored in the
282
+ * model's response store and the method is called with `(error, data)`.
283
+ * - **Method-driven** (no `lifecycle`): calling the method passes a
284
+ * {@link KosExecutionContext} as its last parameter; `ctx.$request()` runs the
285
+ * request and resolves to `[error, data]`. `executeServiceRequest` wraps the common
286
+ * error handling.
405
287
  *
406
288
  * @param params - Configuration for the service request
407
289
  * @returns Method decorator
408
290
  *
409
- * @example Basic GET request during LOAD
291
+ * @example
410
292
  * ```typescript
411
293
  * @kosServiceRequest({
412
294
  * path: PATH_DEVICE_STATUS,
413
- * method: 'get',
414
295
  * lifecycle: DependencyLifecycle.LOAD,
415
- * cache: { retention: ResponseRetention.SINGLE }
416
296
  * })
417
- * private onStatusLoaded(): void {
418
- * const response = getServiceResponse(this, PATH_DEVICE_STATUS, 'get');
419
- * this.status = response?.status;
297
+ * onStatusLoaded(error: string | null, data?: DeviceStatus): void {
298
+ * if (data) this.status = data.status;
420
299
  * }
421
- * ```
422
300
  *
423
- * @example Method-driven request with execution context
424
- * ```typescript
425
- * @kosServiceRequest({
426
- * path: PATH_VM_INSTALL,
427
- * method: 'post',
428
- * requestOptions: {
429
- * timeout: 10000 // Decorator-level default timeout
430
- * }
431
- * })
432
- * async createRelease(
301
+ * @kosServiceRequest({ path: PATH_VM_INSTALL, method: 'post' })
302
+ * async install(
433
303
  * path: string,
434
- * keysetId?: string,
435
- * ctx: KosExecutionContext<paths, typeof PATH_VM_INSTALL, 'post'>
304
+ * ctx?: KosExecutionContext<paths, typeof PATH_VM_INSTALL, 'post'>
436
305
  * ): Promise<void> {
437
- * const [error, response] = await ctx.$request({
438
- * queryParams: { keySetId: keysetId },
439
- * body: { path },
440
- * requestOptions: {
441
- * destinationAddress: 'device-123', // Runtime options merged with decorator options
442
- * headers: { 'X-Custom-Header': 'value' }
443
- * }
444
- * });
445
- * if (error) throw new Error(error);
446
- * return response?.data;
447
- * }
448
- * ```
449
- *
450
- * @example Container model with iteration
451
- * ```typescript
452
- * @kosServiceRequest({
453
- * path: PATH_INGREDIENTS,
454
- * method: 'get',
455
- * lifecycle: DependencyLifecycle.LOAD,
456
- * iterateOver: 'data.ingredients',
457
- * modelFactory: Ingredient.factory,
458
- * mappings: [
459
- * { from: 'id', to: 'id' },
460
- * { from: 'name', to: 'name' }
461
- * ]
462
- * })
463
- * private onIngredientsLoaded(): void {
464
- * const response = getServiceResponse(this, PATH_INGREDIENTS, 'get');
465
- * // Mappings already applied to response data
466
- * response?.forEach(i => this.ingredients.addModel(i));
306
+ * const data = await executeServiceRequest(this, ctx, { body: { path } });
307
+ * if (!data) return;
308
+ * this.lastInstall = data;
467
309
  * }
468
310
  * ```
469
311
  *
@@ -1 +1 @@
1
- {"version":3,"file":"kos-service-request.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/core/core/decorators/kos-service-request.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EACL,KAAK,mBAAmB,EAGzB,MAAM,yBAAyB,CAAC;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACvD,IAAI,SAAS,MAAM,KAAK,GAAG,MAAM,EACjC,MAAM,SAAS,UAAU,GAAG,KAAK,EACjC,QAAQ,GAAG,GAAG,EACd,mBAAmB,GAAG,QAAQ,EAE9B,MAAM,EAAE,wBAAwB,CAC9B,KAAK,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,mBAAmB,CACpB,IAEO,QAAQ,GAAG,EAAE,aAAa,MAAM,EAAE,YAAY,kBAAkB,wBAiHzE"}
1
+ {"version":3,"file":"kos-service-request.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/core/core/decorators/kos-service-request.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EACL,KAAK,mBAAmB,EAGzB,MAAM,yBAAyB,CAAC;AAOjC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,MAAM,CAAC,CAAC;AAGtE,YAAY,EAAE,mBAAmB,EAAE,CAAC;AAEpC;;;GAGG;A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