@camstack/addon-provider-bosch 0.1.6 → 0.1.8

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.
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-CWtMn1_5.js");
1
+ const require_dist = require("./dist-Dwa_n1ZO.js");
2
2
  //#region src/shared/oauth-callback.ts
3
3
  /** A code on its own: no scheme, no query, no separators. */
4
4
  var BARE_CODE = /^[A-Za-z0-9._~-]+$/;
@@ -1,4 +1,4 @@
1
- import { b as errMsg } from "./dist-CWrnWIxD.mjs";
1
+ import { b as errMsg } from "./dist-EaW3D8xD.mjs";
2
2
  //#region src/shared/oauth-callback.ts
3
3
  /** A code on its own: no scheme, no query, no separators. */
4
4
  var BARE_CODE = /^[A-Za-z0-9._~-]+$/;
@@ -5414,7 +5414,7 @@ var ZodIssueCode = {
5414
5414
  var ZodFirstPartyTypeKind;
5415
5415
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5416
5416
  //#endregion
5417
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5417
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5418
5418
  /**
5419
5419
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5420
5420
  * window to float samples (D455).
@@ -7966,7 +7966,13 @@ var RecordKindDeclarationSchema = object({
7966
7966
  secretPaths: array(string().min(1)).default([]),
7967
7967
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
7968
7968
  secretArrayKeys: record(string(), string()).default({}),
7969
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
7969
+ /**
7970
+ * RETIRED (D900): the legacy table a kind adopted from during the records
7971
+ * migration. Nothing declares it any more and nothing reads it; the schema
7972
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
7973
+ * (an orphaned kind is never redeclared) and an addon built before the
7974
+ * removal still sends it. Never set it.
7975
+ */
7970
7976
  adoptsFrom: string().min(1).optional(),
7971
7977
  /** Kinds that must agree through `transact` sit in one file under one family name. */
7972
7978
  transactFamily: string().min(1).optional(),
@@ -16660,11 +16666,12 @@ var DeclareKindResultSchema = object({
16660
16666
  kindId: number().int(),
16661
16667
  state: RecordKindStateSchema,
16662
16668
  createdIndexes: array(string()),
16663
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
16664
- adoptionPending: object({
16665
- legacyTable: string(),
16666
- legacyRows: number().int()
16667
- }).nullable()
16669
+ /**
16670
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
16671
+ * it stays on the wire, null, because an addon built before the removal reads
16672
+ * an ABSENT field as "adoption pending" and refuses to start.
16673
+ */
16674
+ adoptionPending: _null()
16668
16675
  });
16669
16676
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
16670
16677
  var SecretRefsList = array(string());
@@ -16837,26 +16844,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
16837
16844
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
16838
16845
  owner: string().min(1),
16839
16846
  kind: RecordKindNameSchema
16840
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
16841
- owner: string().min(1),
16842
- kind: RecordKindNameSchema,
16843
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
16844
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
16845
- complete: boolean().optional()
16846
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
16847
- kind: "mutation",
16848
- auth: "admin"
16849
- }), method(object({
16850
- collection: string().min(1),
16851
- cursor: string().optional(),
16852
- limit: number().int().min(1).max(1e3).optional()
16853
- }), object({
16854
- rows: array(object({
16855
- id: string(),
16856
- data: record(string(), unknown())
16857
- })),
16858
- nextCursor: string().nullable()
16859
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
16847
+ }), RecordQueryResultSchema, { auth: "admin" });
16860
16848
  /**
16861
16849
  * record-entries - the ONE admin surface for every list of user-created entries
16862
16850
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -60375,9 +60363,24 @@ var NpuInfoSchema = object({
60375
60363
  name: string().optional(),
60376
60364
  generation: _enum(["xdna1", "xdna2"]).optional()
60377
60365
  });
60366
+ var CoralBusSchema = _enum(["usb", "pci"]);
60378
60367
  var CoralInfoSchema = object({
60379
60368
  type: literal("coral-edgetpu"),
60380
- bus: string().optional()
60369
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
60370
+ bus: string().optional(),
60371
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
60372
+ count: number().int().nonnegative().optional(),
60373
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
60374
+ units: array(object({
60375
+ bus: CoralBusSchema,
60376
+ count: number().int().nonnegative()
60377
+ })).readonly().optional(),
60378
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
60379
+ unavailable: array(object({
60380
+ bus: CoralBusSchema,
60381
+ count: number().int().nonnegative(),
60382
+ reason: _enum(["driver-missing", "device-not-accessible"])
60383
+ })).readonly().optional()
60381
60384
  });
60382
60385
  var HardwareInfoSchema = object({
60383
60386
  platform: HardwarePlatformSchema,
@@ -69124,6 +69127,12 @@ Object.freeze({
69124
69127
  addonId: null,
69125
69128
  access: "view"
69126
69129
  },
69130
+ "deviceHistory.queryMany": {
69131
+ capName: "device-history",
69132
+ capScope: "system",
69133
+ addonId: null,
69134
+ access: "view"
69135
+ },
69127
69136
  "deviceHistory.queryNode": {
69128
69137
  capName: "device-history",
69129
69138
  capScope: "system",
@@ -74344,24 +74353,12 @@ Object.freeze({
74344
74353
  addonId: null,
74345
74354
  access: "create"
74346
74355
  },
74347
- "storageAdmin.adoptRecords": {
74348
- capName: "storage-admin",
74349
- capScope: "system",
74350
- addonId: null,
74351
- access: "create"
74352
- },
74353
74356
  "storageAdmin.dropCollection": {
74354
74357
  capName: "storage-admin",
74355
74358
  capScope: "system",
74356
74359
  addonId: null,
74357
74360
  access: "delete"
74358
74361
  },
74359
- "storageAdmin.isAdoptedLegacyTable": {
74360
- capName: "storage-admin",
74361
- capScope: "system",
74362
- addonId: null,
74363
- access: "view"
74364
- },
74365
74362
  "storageAdmin.listKinds": {
74366
74363
  capName: "storage-admin",
74367
74364
  capScope: "system",
@@ -74374,12 +74371,6 @@ Object.freeze({
74374
74371
  addonId: null,
74375
74372
  access: "view"
74376
74373
  },
74377
- "storageAdmin.readLegacyCollection": {
74378
- capName: "storage-admin",
74379
- capScope: "system",
74380
- addonId: null,
74381
- access: "view"
74382
- },
74383
74374
  "storageAdmin.readRecords": {
74384
74375
  capName: "storage-admin",
74385
74376
  capScope: "system",
@@ -78194,12 +78185,6 @@ Object.freeze({
78194
78185
  form: "single",
78195
78186
  optional: false
78196
78187
  }],
78197
- "storageAdmin.adoptRecords": [{
78198
- name: "records",
78199
- form: "object-array",
78200
- optional: false,
78201
- itemField: "deviceId"
78202
- }],
78203
78188
  "storageAdmin.readRecords": [{
78204
78189
  name: "deviceId",
78205
78190
  form: "single",
@@ -5414,7 +5414,7 @@ var ZodIssueCode = {
5414
5414
  var ZodFirstPartyTypeKind;
5415
5415
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5416
5416
  //#endregion
5417
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5417
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5418
5418
  /**
5419
5419
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5420
5420
  * window to float samples (D455).
@@ -7966,7 +7966,13 @@ var RecordKindDeclarationSchema = object({
7966
7966
  secretPaths: array(string().min(1)).default([]),
7967
7967
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
7968
7968
  secretArrayKeys: record(string(), string()).default({}),
7969
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
7969
+ /**
7970
+ * RETIRED (D900): the legacy table a kind adopted from during the records
7971
+ * migration. Nothing declares it any more and nothing reads it; the schema
7972
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
7973
+ * (an orphaned kind is never redeclared) and an addon built before the
7974
+ * removal still sends it. Never set it.
7975
+ */
7970
7976
  adoptsFrom: string().min(1).optional(),
7971
7977
  /** Kinds that must agree through `transact` sit in one file under one family name. */
7972
7978
  transactFamily: string().min(1).optional(),
@@ -16660,11 +16666,12 @@ var DeclareKindResultSchema = object({
16660
16666
  kindId: number().int(),
16661
16667
  state: RecordKindStateSchema,
16662
16668
  createdIndexes: array(string()),
16663
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
16664
- adoptionPending: object({
16665
- legacyTable: string(),
16666
- legacyRows: number().int()
16667
- }).nullable()
16669
+ /**
16670
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
16671
+ * it stays on the wire, null, because an addon built before the removal reads
16672
+ * an ABSENT field as "adoption pending" and refuses to start.
16673
+ */
16674
+ adoptionPending: _null()
16668
16675
  });
16669
16676
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
16670
16677
  var SecretRefsList = array(string());
@@ -16837,26 +16844,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
16837
16844
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
16838
16845
  owner: string().min(1),
16839
16846
  kind: RecordKindNameSchema
16840
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
16841
- owner: string().min(1),
16842
- kind: RecordKindNameSchema,
16843
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
16844
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
16845
- complete: boolean().optional()
16846
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
16847
- kind: "mutation",
16848
- auth: "admin"
16849
- }), method(object({
16850
- collection: string().min(1),
16851
- cursor: string().optional(),
16852
- limit: number().int().min(1).max(1e3).optional()
16853
- }), object({
16854
- rows: array(object({
16855
- id: string(),
16856
- data: record(string(), unknown())
16857
- })),
16858
- nextCursor: string().nullable()
16859
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
16847
+ }), RecordQueryResultSchema, { auth: "admin" });
16860
16848
  /**
16861
16849
  * record-entries - the ONE admin surface for every list of user-created entries
16862
16850
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -60375,9 +60363,24 @@ var NpuInfoSchema = object({
60375
60363
  name: string().optional(),
60376
60364
  generation: _enum(["xdna1", "xdna2"]).optional()
60377
60365
  });
60366
+ var CoralBusSchema = _enum(["usb", "pci"]);
60378
60367
  var CoralInfoSchema = object({
60379
60368
  type: literal("coral-edgetpu"),
60380
- bus: string().optional()
60369
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
60370
+ bus: string().optional(),
60371
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
60372
+ count: number().int().nonnegative().optional(),
60373
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
60374
+ units: array(object({
60375
+ bus: CoralBusSchema,
60376
+ count: number().int().nonnegative()
60377
+ })).readonly().optional(),
60378
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
60379
+ unavailable: array(object({
60380
+ bus: CoralBusSchema,
60381
+ count: number().int().nonnegative(),
60382
+ reason: _enum(["driver-missing", "device-not-accessible"])
60383
+ })).readonly().optional()
60381
60384
  });
60382
60385
  var HardwareInfoSchema = object({
60383
60386
  platform: HardwarePlatformSchema,
@@ -69124,6 +69127,12 @@ Object.freeze({
69124
69127
  addonId: null,
69125
69128
  access: "view"
69126
69129
  },
69130
+ "deviceHistory.queryMany": {
69131
+ capName: "device-history",
69132
+ capScope: "system",
69133
+ addonId: null,
69134
+ access: "view"
69135
+ },
69127
69136
  "deviceHistory.queryNode": {
69128
69137
  capName: "device-history",
69129
69138
  capScope: "system",
@@ -74344,24 +74353,12 @@ Object.freeze({
74344
74353
  addonId: null,
74345
74354
  access: "create"
74346
74355
  },
74347
- "storageAdmin.adoptRecords": {
74348
- capName: "storage-admin",
74349
- capScope: "system",
74350
- addonId: null,
74351
- access: "create"
74352
- },
74353
74356
  "storageAdmin.dropCollection": {
74354
74357
  capName: "storage-admin",
74355
74358
  capScope: "system",
74356
74359
  addonId: null,
74357
74360
  access: "delete"
74358
74361
  },
74359
- "storageAdmin.isAdoptedLegacyTable": {
74360
- capName: "storage-admin",
74361
- capScope: "system",
74362
- addonId: null,
74363
- access: "view"
74364
- },
74365
74362
  "storageAdmin.listKinds": {
74366
74363
  capName: "storage-admin",
74367
74364
  capScope: "system",
@@ -74374,12 +74371,6 @@ Object.freeze({
74374
74371
  addonId: null,
74375
74372
  access: "view"
74376
74373
  },
74377
- "storageAdmin.readLegacyCollection": {
74378
- capName: "storage-admin",
74379
- capScope: "system",
74380
- addonId: null,
74381
- access: "view"
74382
- },
74383
74374
  "storageAdmin.readRecords": {
74384
74375
  capName: "storage-admin",
74385
74376
  capScope: "system",
@@ -78194,12 +78185,6 @@ Object.freeze({
78194
78185
  form: "single",
78195
78186
  optional: false
78196
78187
  }],
78197
- "storageAdmin.adoptRecords": [{
78198
- name: "records",
78199
- form: "object-array",
78200
- optional: false,
78201
- itemField: "deviceId"
78202
- }],
78203
78188
  "storageAdmin.readRecords": [{
78204
78189
  name: "deviceId",
78205
78190
  form: "single",
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("../dist-CWtMn1_5.js");
3
- const require_account_integration_offline = require("../account-integration-offline-Bba0sEkT.js");
2
+ const require_dist = require("../dist-Dwa_n1ZO.js");
3
+ const require_account_integration_offline = require("../account-integration-offline-BDOU9UIQ.js");
4
4
  let node_crypto = require("node:crypto");
5
5
  let node_tls = require("node:tls");
6
6
  let node_zlib = require("node:zlib");
@@ -1,5 +1,5 @@
1
- import { A as object, C as defineCustomActions, D as array, E as _enum, F as EventCategory, M as string, N as union, O as literal, P as unknown, S as customAction, T as isSecretMarkerLike, a as binaryCapability, b as errMsg, c as deviceAdoptionCapability, d as eventEmitterCapability, j as record, l as dishwasherCapability, m as powerMeterCapability, n as BaseDeviceProvider, p as numericSensorCapability, r as DishwasherOperationStateSchema, s as connectionTestCapability, t as BaseDevice, u as enumSensorCapability, v as DeviceRole, w as isSecretMarker, x as createEvent, y as DeviceType } from "../dist-CWrnWIxD.mjs";
2
- import { n as cascadeRemoveDevicesForIntegration, r as parseOAuthCallback, t as setIntegrationDevicesOnline } from "../account-integration-offline-BTR3H0Hn.mjs";
1
+ import { A as object, C as defineCustomActions, D as array, E as _enum, F as EventCategory, M as string, N as union, O as literal, P as unknown, S as customAction, T as isSecretMarkerLike, a as binaryCapability, b as errMsg, c as deviceAdoptionCapability, d as eventEmitterCapability, j as record, l as dishwasherCapability, m as powerMeterCapability, n as BaseDeviceProvider, p as numericSensorCapability, r as DishwasherOperationStateSchema, s as connectionTestCapability, t as BaseDevice, u as enumSensorCapability, v as DeviceRole, w as isSecretMarker, x as createEvent, y as DeviceType } from "../dist-EaW3D8xD.mjs";
2
+ import { n as cascadeRemoveDevicesForIntegration, r as parseOAuthCallback, t as setIntegrationDevicesOnline } from "../account-integration-offline-CifBq3c2.mjs";
3
3
  import { createHash, randomBytes } from "node:crypto";
4
4
  import { connect } from "node:tls";
5
5
  import { inflateRawSync } from "node:zlib";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("../dist-CWtMn1_5.js");
3
- const require_account_integration_offline = require("../account-integration-offline-Bba0sEkT.js");
2
+ const require_dist = require("../dist-Dwa_n1ZO.js");
3
+ const require_account_integration_offline = require("../account-integration-offline-BDOU9UIQ.js");
4
4
  let node_crypto = require("node:crypto");
5
5
  //#region src/homecom/custom-actions.ts
6
6
  var homeComActions = require_dist.defineCustomActions({
@@ -1,5 +1,5 @@
1
- import { A as object, C as defineCustomActions, E as _enum, F as EventCategory, M as string, O as literal, S as customAction, T as isSecretMarkerLike, _ as waterHeaterCapability, b as errMsg, c as deviceAdoptionCapability, n as BaseDeviceProvider, o as climateControlCapability, s as connectionTestCapability, t as BaseDevice, w as isSecretMarker, y as DeviceType } from "../dist-CWrnWIxD.mjs";
2
- import { n as cascadeRemoveDevicesForIntegration, r as parseOAuthCallback, t as setIntegrationDevicesOnline } from "../account-integration-offline-BTR3H0Hn.mjs";
1
+ import { A as object, C as defineCustomActions, E as _enum, F as EventCategory, M as string, O as literal, S as customAction, T as isSecretMarkerLike, _ as waterHeaterCapability, b as errMsg, c as deviceAdoptionCapability, n as BaseDeviceProvider, o as climateControlCapability, s as connectionTestCapability, t as BaseDevice, w as isSecretMarker, y as DeviceType } from "../dist-EaW3D8xD.mjs";
2
+ import { n as cascadeRemoveDevicesForIntegration, r as parseOAuthCallback, t as setIntegrationDevicesOnline } from "../account-integration-offline-CifBq3c2.mjs";
3
3
  import { createHash, randomBytes } from "node:crypto";
4
4
  //#region src/homecom/custom-actions.ts
5
5
  var homeComActions = defineCustomActions({
package/dist/shc/addon.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  //#region \0rolldown/runtime.js
3
3
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
4
4
  //#endregion
5
- const require_dist = require("../dist-CWtMn1_5.js");
5
+ const require_dist = require("../dist-Dwa_n1ZO.js");
6
6
  let node_crypto = require("node:crypto");
7
7
  let node_https = require("node:https");
8
8
  let node_child_process = require("node:child_process");
@@ -1,4 +1,4 @@
1
- import { A as object, C as defineCustomActions, D as array, E as _enum, F as EventCategory, M as string, O as literal, S as customAction, b as errMsg, c as deviceAdoptionCapability, f as heatingValveCapability, g as temperatureSensorCapability, h as switchCapability, i as batteryCapability, k as number, n as BaseDeviceProvider, o as climateControlCapability, s as connectionTestCapability, t as BaseDevice, y as DeviceType } from "../dist-CWrnWIxD.mjs";
1
+ import { A as object, C as defineCustomActions, D as array, E as _enum, F as EventCategory, M as string, O as literal, S as customAction, b as errMsg, c as deviceAdoptionCapability, f as heatingValveCapability, g as temperatureSensorCapability, h as switchCapability, i as batteryCapability, k as number, n as BaseDeviceProvider, o as climateControlCapability, s as connectionTestCapability, t as BaseDevice, y as DeviceType } from "../dist-EaW3D8xD.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import { randomUUID } from "node:crypto";
4
4
  import { request } from "node:https";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-bosch",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Bosch smart-home device-provider addons for CamStack — SHC, Home Connect, and HomeCom cloud integrations (scaffold)",
5
5
  "keywords": [
6
6
  "camstack",