@kosdev-code/kos-ui-sdk 0.1.0-next.868 → 0.1.0-next.871

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.
package/index.js CHANGED
@@ -10346,10 +10346,10 @@ let CanvasDispatcherModelImpl = class {
10346
10346
  }
10347
10347
  async handlePatternApplication(req, res) {
10348
10348
  const pattern = req.params.pattern;
10349
- const endpoint = req.params.endpoint;
10350
- const rendererModel = this._endpointRenderers.getModel(endpoint);
10349
+ const endpoint2 = req.params.endpoint;
10350
+ const rendererModel = this._endpointRenderers.getModel(endpoint2);
10351
10351
  if (!rendererModel) {
10352
- res.status?.(404).send({ error: `Endpoint "${endpoint}" not found` });
10352
+ res.status?.(404).send({ error: `Endpoint "${endpoint2}" not found` });
10353
10353
  return;
10354
10354
  }
10355
10355
  if (!this._patterns.has(pattern)) {
@@ -10379,10 +10379,10 @@ let CanvasDispatcherModelImpl = class {
10379
10379
  res.status?.(400).send({ error: "Invalid color format" });
10380
10380
  return;
10381
10381
  }
10382
- const endpoint = req.params.endpoint;
10383
- const rendererModel = this._endpointRenderers.getModel(endpoint);
10382
+ const endpoint2 = req.params.endpoint;
10383
+ const rendererModel = this._endpointRenderers.getModel(endpoint2);
10384
10384
  if (!rendererModel) {
10385
- res.status?.(404).send({ error: `Endpoint "${endpoint}" not found` });
10385
+ res.status?.(404).send({ error: `Endpoint "${endpoint2}" not found` });
10386
10386
  return;
10387
10387
  }
10388
10388
  const { r, b, g } = rgb;
@@ -12183,12 +12183,25 @@ async function getKosServiceApi() {
12183
12183
  function kosServiceRequest$7(params2) {
12184
12184
  return kosServiceRequest$8(params2);
12185
12185
  }
12186
+ function endpoint$1(path, method) {
12187
+ return { path, method };
12188
+ }
12189
+ function serviceRequest$1(ep, opts) {
12190
+ return kosServiceRequest$7({
12191
+ path: ep.path,
12192
+ method: ep.method,
12193
+ errorHandler: { strategy: "log", defaultValue: null },
12194
+ ...opts
12195
+ });
12196
+ }
12186
12197
  const api$7 = createClient();
12187
12198
  const service$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12188
12199
  __proto__: null,
12189
12200
  api: api$7,
12190
12201
  default: api$7,
12191
- kosServiceRequest: kosServiceRequest$7
12202
+ endpoint: endpoint$1,
12203
+ kosServiceRequest: kosServiceRequest$7,
12204
+ serviceRequest: serviceRequest$1
12192
12205
  }, Symbol.toStringTag, { value: "Module" }));
12193
12206
  function kosServiceRequest$6(params2) {
12194
12207
  return kosServiceRequest$8(params2);
@@ -12223,12 +12236,25 @@ const service$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePro
12223
12236
  function kosServiceRequest$3(params2) {
12224
12237
  return kosServiceRequest$8(params2);
12225
12238
  }
12239
+ function endpoint(path, method) {
12240
+ return { path, method };
12241
+ }
12242
+ function serviceRequest(ep, opts) {
12243
+ return kosServiceRequest$3({
12244
+ path: ep.path,
12245
+ method: ep.method,
12246
+ errorHandler: { strategy: "log", defaultValue: null },
12247
+ ...opts
12248
+ });
12249
+ }
12226
12250
  const api$3 = createClient();
12227
12251
  const service$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12228
12252
  __proto__: null,
12229
12253
  api: api$3,
12230
12254
  default: api$3,
12231
- kosServiceRequest: kosServiceRequest$3
12255
+ endpoint,
12256
+ kosServiceRequest: kosServiceRequest$3,
12257
+ serviceRequest
12232
12258
  }, Symbol.toStringTag, { value: "Module" }));
12233
12259
  function kosServiceRequest$2(params2) {
12234
12260
  return kosServiceRequest$8(params2);
@@ -12903,8 +12929,8 @@ GpioChipModelImpl = __decorateClass$2([
12903
12929
  const GpioChip = GpioChipModelImpl.Registration;
12904
12930
  const GPIO_CHIP_PATH = "/api/kos/gpio/chips";
12905
12931
  const GPIO_PIN_PATH = "/api/kos/gpio/pins";
12906
- const gpioServiceRequest = kosServiceRequest$5;
12907
- const gpioApi = api$5;
12932
+ const gpioServiceRequest = kosServiceRequest$4;
12933
+ const gpioApi = api$4;
12908
12934
  const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12909
12935
  __proto__: null,
12910
12936
  GPIO_CHIP_PATH,
@@ -15838,10 +15864,10 @@ export {
15838
15864
  KOS_EXECUTION_CONTEXT,
15839
15865
  KOS_MODEL_ID,
15840
15866
  KOS_RECOVERING_SESSION_KEY,
15841
- service$4 as KOS_SERVICE,
15842
- service$7 as KOS_SERVICE_1_6_5,
15843
- service$6 as KOS_SERVICE_1_8_1,
15844
- service$5 as KOS_SERVICE_1_9_X,
15867
+ service$7 as KOS_SERVICE,
15868
+ service$6 as KOS_SERVICE_1_6_5,
15869
+ service$5 as KOS_SERVICE_1_8_1,
15870
+ service$4 as KOS_SERVICE_1_9_X,
15845
15871
  KeyValue,
15846
15872
  index$c as KeyValueServices,
15847
15873
  Kos,
@@ -15988,10 +16014,10 @@ export {
15988
16014
  UsbUpdate,
15989
16015
  UsbUpdateContainer,
15990
16016
  index$3 as UsbUpdateServices,
15991
- service as VFS_SERVICE,
15992
- service$3 as VFS_SERVICE_1_6_5,
15993
- service$2 as VFS_SERVICE_1_8_1,
15994
- service$1 as VFS_SERVICE_1_9_X,
16017
+ service$3 as VFS_SERVICE,
16018
+ service$2 as VFS_SERVICE_1_6_5,
16019
+ service$1 as VFS_SERVICE_1_8_1,
16020
+ service as VFS_SERVICE_1_9_X,
15995
16021
  ViewModelConfig,
15996
16022
  WS_EVENT_TYPE,
15997
16023
  WebSocketEvents,