@camstack/addon-provider-bosch 0.1.7 → 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-DabGJIyi.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-Bq7pq5mZ.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
@@ -69139,6 +69127,12 @@ Object.freeze({
69139
69127
  addonId: null,
69140
69128
  access: "view"
69141
69129
  },
69130
+ "deviceHistory.queryMany": {
69131
+ capName: "device-history",
69132
+ capScope: "system",
69133
+ addonId: null,
69134
+ access: "view"
69135
+ },
69142
69136
  "deviceHistory.queryNode": {
69143
69137
  capName: "device-history",
69144
69138
  capScope: "system",
@@ -74359,24 +74353,12 @@ Object.freeze({
74359
74353
  addonId: null,
74360
74354
  access: "create"
74361
74355
  },
74362
- "storageAdmin.adoptRecords": {
74363
- capName: "storage-admin",
74364
- capScope: "system",
74365
- addonId: null,
74366
- access: "create"
74367
- },
74368
74356
  "storageAdmin.dropCollection": {
74369
74357
  capName: "storage-admin",
74370
74358
  capScope: "system",
74371
74359
  addonId: null,
74372
74360
  access: "delete"
74373
74361
  },
74374
- "storageAdmin.isAdoptedLegacyTable": {
74375
- capName: "storage-admin",
74376
- capScope: "system",
74377
- addonId: null,
74378
- access: "view"
74379
- },
74380
74362
  "storageAdmin.listKinds": {
74381
74363
  capName: "storage-admin",
74382
74364
  capScope: "system",
@@ -74389,12 +74371,6 @@ Object.freeze({
74389
74371
  addonId: null,
74390
74372
  access: "view"
74391
74373
  },
74392
- "storageAdmin.readLegacyCollection": {
74393
- capName: "storage-admin",
74394
- capScope: "system",
74395
- addonId: null,
74396
- access: "view"
74397
- },
74398
74374
  "storageAdmin.readRecords": {
74399
74375
  capName: "storage-admin",
74400
74376
  capScope: "system",
@@ -78209,12 +78185,6 @@ Object.freeze({
78209
78185
  form: "single",
78210
78186
  optional: false
78211
78187
  }],
78212
- "storageAdmin.adoptRecords": [{
78213
- name: "records",
78214
- form: "object-array",
78215
- optional: false,
78216
- itemField: "deviceId"
78217
- }],
78218
78188
  "storageAdmin.readRecords": [{
78219
78189
  name: "deviceId",
78220
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
@@ -69139,6 +69127,12 @@ Object.freeze({
69139
69127
  addonId: null,
69140
69128
  access: "view"
69141
69129
  },
69130
+ "deviceHistory.queryMany": {
69131
+ capName: "device-history",
69132
+ capScope: "system",
69133
+ addonId: null,
69134
+ access: "view"
69135
+ },
69142
69136
  "deviceHistory.queryNode": {
69143
69137
  capName: "device-history",
69144
69138
  capScope: "system",
@@ -74359,24 +74353,12 @@ Object.freeze({
74359
74353
  addonId: null,
74360
74354
  access: "create"
74361
74355
  },
74362
- "storageAdmin.adoptRecords": {
74363
- capName: "storage-admin",
74364
- capScope: "system",
74365
- addonId: null,
74366
- access: "create"
74367
- },
74368
74356
  "storageAdmin.dropCollection": {
74369
74357
  capName: "storage-admin",
74370
74358
  capScope: "system",
74371
74359
  addonId: null,
74372
74360
  access: "delete"
74373
74361
  },
74374
- "storageAdmin.isAdoptedLegacyTable": {
74375
- capName: "storage-admin",
74376
- capScope: "system",
74377
- addonId: null,
74378
- access: "view"
74379
- },
74380
74362
  "storageAdmin.listKinds": {
74381
74363
  capName: "storage-admin",
74382
74364
  capScope: "system",
@@ -74389,12 +74371,6 @@ Object.freeze({
74389
74371
  addonId: null,
74390
74372
  access: "view"
74391
74373
  },
74392
- "storageAdmin.readLegacyCollection": {
74393
- capName: "storage-admin",
74394
- capScope: "system",
74395
- addonId: null,
74396
- access: "view"
74397
- },
74398
74374
  "storageAdmin.readRecords": {
74399
74375
  capName: "storage-admin",
74400
74376
  capScope: "system",
@@ -78209,12 +78185,6 @@ Object.freeze({
78209
78185
  form: "single",
78210
78186
  optional: false
78211
78187
  }],
78212
- "storageAdmin.adoptRecords": [{
78213
- name: "records",
78214
- form: "object-array",
78215
- optional: false,
78216
- itemField: "deviceId"
78217
- }],
78218
78188
  "storageAdmin.readRecords": [{
78219
78189
  name: "deviceId",
78220
78190
  form: "single",
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("../dist-DabGJIyi.js");
3
- const require_account_integration_offline = require("../account-integration-offline-DphhJEuL.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-Bq7pq5mZ.mjs";
2
- import { n as cascadeRemoveDevicesForIntegration, r as parseOAuthCallback, t as setIntegrationDevicesOnline } from "../account-integration-offline-CzuH3BBe.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-DabGJIyi.js");
3
- const require_account_integration_offline = require("../account-integration-offline-DphhJEuL.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-Bq7pq5mZ.mjs";
2
- import { n as cascadeRemoveDevicesForIntegration, r as parseOAuthCallback, t as setIntegrationDevicesOnline } from "../account-integration-offline-CzuH3BBe.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-DabGJIyi.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-Bq7pq5mZ.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.7",
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",