@camstack/addon-provider-dreo 0.2.133 → 0.2.134

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/dist/addon.js CHANGED
@@ -5450,7 +5450,7 @@ var ZodIssueCode = {
5450
5450
  var ZodFirstPartyTypeKind;
5451
5451
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5452
5452
  //#endregion
5453
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5453
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5454
5454
  /**
5455
5455
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5456
5456
  * window to float samples (D455).
@@ -7998,7 +7998,13 @@ var RecordKindDeclarationSchema = object({
7998
7998
  secretPaths: array(string().min(1)).default([]),
7999
7999
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
8000
8000
  secretArrayKeys: record(string(), string()).default({}),
8001
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
8001
+ /**
8002
+ * RETIRED (D900): the legacy table a kind adopted from during the records
8003
+ * migration. Nothing declares it any more and nothing reads it; the schema
8004
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
8005
+ * (an orphaned kind is never redeclared) and an addon built before the
8006
+ * removal still sends it. Never set it.
8007
+ */
8002
8008
  adoptsFrom: string().min(1).optional(),
8003
8009
  /** Kinds that must agree through `transact` sit in one file under one family name. */
8004
8010
  transactFamily: string().min(1).optional(),
@@ -16670,11 +16676,12 @@ var DeclareKindResultSchema = object({
16670
16676
  kindId: number().int(),
16671
16677
  state: RecordKindStateSchema,
16672
16678
  createdIndexes: array(string()),
16673
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
16674
- adoptionPending: object({
16675
- legacyTable: string(),
16676
- legacyRows: number().int()
16677
- }).nullable()
16679
+ /**
16680
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
16681
+ * it stays on the wire, null, because an addon built before the removal reads
16682
+ * an ABSENT field as "adoption pending" and refuses to start.
16683
+ */
16684
+ adoptionPending: _null()
16678
16685
  });
16679
16686
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
16680
16687
  var SecretRefsList = array(string());
@@ -16847,26 +16854,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
16847
16854
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
16848
16855
  owner: string().min(1),
16849
16856
  kind: RecordKindNameSchema
16850
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
16851
- owner: string().min(1),
16852
- kind: RecordKindNameSchema,
16853
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
16854
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
16855
- complete: boolean().optional()
16856
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
16857
- kind: "mutation",
16858
- auth: "admin"
16859
- }), method(object({
16860
- collection: string().min(1),
16861
- cursor: string().optional(),
16862
- limit: number().int().min(1).max(1e3).optional()
16863
- }), object({
16864
- rows: array(object({
16865
- id: string(),
16866
- data: record(string(), unknown())
16867
- })),
16868
- nextCursor: string().nullable()
16869
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
16857
+ }), RecordQueryResultSchema, { auth: "admin" });
16870
16858
  /**
16871
16859
  * record-entries - the ONE admin surface for every list of user-created entries
16872
16860
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -69149,6 +69137,12 @@ Object.freeze({
69149
69137
  addonId: null,
69150
69138
  access: "view"
69151
69139
  },
69140
+ "deviceHistory.queryMany": {
69141
+ capName: "device-history",
69142
+ capScope: "system",
69143
+ addonId: null,
69144
+ access: "view"
69145
+ },
69152
69146
  "deviceHistory.queryNode": {
69153
69147
  capName: "device-history",
69154
69148
  capScope: "system",
@@ -74369,24 +74363,12 @@ Object.freeze({
74369
74363
  addonId: null,
74370
74364
  access: "create"
74371
74365
  },
74372
- "storageAdmin.adoptRecords": {
74373
- capName: "storage-admin",
74374
- capScope: "system",
74375
- addonId: null,
74376
- access: "create"
74377
- },
74378
74366
  "storageAdmin.dropCollection": {
74379
74367
  capName: "storage-admin",
74380
74368
  capScope: "system",
74381
74369
  addonId: null,
74382
74370
  access: "delete"
74383
74371
  },
74384
- "storageAdmin.isAdoptedLegacyTable": {
74385
- capName: "storage-admin",
74386
- capScope: "system",
74387
- addonId: null,
74388
- access: "view"
74389
- },
74390
74372
  "storageAdmin.listKinds": {
74391
74373
  capName: "storage-admin",
74392
74374
  capScope: "system",
@@ -74399,12 +74381,6 @@ Object.freeze({
74399
74381
  addonId: null,
74400
74382
  access: "view"
74401
74383
  },
74402
- "storageAdmin.readLegacyCollection": {
74403
- capName: "storage-admin",
74404
- capScope: "system",
74405
- addonId: null,
74406
- access: "view"
74407
- },
74408
74384
  "storageAdmin.readRecords": {
74409
74385
  capName: "storage-admin",
74410
74386
  capScope: "system",
@@ -78219,12 +78195,6 @@ Object.freeze({
78219
78195
  form: "single",
78220
78196
  optional: false
78221
78197
  }],
78222
- "storageAdmin.adoptRecords": [{
78223
- name: "records",
78224
- form: "object-array",
78225
- optional: false,
78226
- itemField: "deviceId"
78227
- }],
78228
78198
  "storageAdmin.readRecords": [{
78229
78199
  name: "deviceId",
78230
78200
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5451,7 +5451,7 @@ var ZodIssueCode = {
5451
5451
  var ZodFirstPartyTypeKind;
5452
5452
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5453
5453
  //#endregion
5454
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5454
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5455
5455
  /**
5456
5456
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5457
5457
  * window to float samples (D455).
@@ -7999,7 +7999,13 @@ var RecordKindDeclarationSchema = object({
7999
7999
  secretPaths: array(string().min(1)).default([]),
8000
8000
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
8001
8001
  secretArrayKeys: record(string(), string()).default({}),
8002
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
8002
+ /**
8003
+ * RETIRED (D900): the legacy table a kind adopted from during the records
8004
+ * migration. Nothing declares it any more and nothing reads it; the schema
8005
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
8006
+ * (an orphaned kind is never redeclared) and an addon built before the
8007
+ * removal still sends it. Never set it.
8008
+ */
8003
8009
  adoptsFrom: string().min(1).optional(),
8004
8010
  /** Kinds that must agree through `transact` sit in one file under one family name. */
8005
8011
  transactFamily: string().min(1).optional(),
@@ -16671,11 +16677,12 @@ var DeclareKindResultSchema = object({
16671
16677
  kindId: number().int(),
16672
16678
  state: RecordKindStateSchema,
16673
16679
  createdIndexes: array(string()),
16674
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
16675
- adoptionPending: object({
16676
- legacyTable: string(),
16677
- legacyRows: number().int()
16678
- }).nullable()
16680
+ /**
16681
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
16682
+ * it stays on the wire, null, because an addon built before the removal reads
16683
+ * an ABSENT field as "adoption pending" and refuses to start.
16684
+ */
16685
+ adoptionPending: _null()
16679
16686
  });
16680
16687
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
16681
16688
  var SecretRefsList = array(string());
@@ -16848,26 +16855,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
16848
16855
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
16849
16856
  owner: string().min(1),
16850
16857
  kind: RecordKindNameSchema
16851
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
16852
- owner: string().min(1),
16853
- kind: RecordKindNameSchema,
16854
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
16855
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
16856
- complete: boolean().optional()
16857
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
16858
- kind: "mutation",
16859
- auth: "admin"
16860
- }), method(object({
16861
- collection: string().min(1),
16862
- cursor: string().optional(),
16863
- limit: number().int().min(1).max(1e3).optional()
16864
- }), object({
16865
- rows: array(object({
16866
- id: string(),
16867
- data: record(string(), unknown())
16868
- })),
16869
- nextCursor: string().nullable()
16870
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
16858
+ }), RecordQueryResultSchema, { auth: "admin" });
16871
16859
  /**
16872
16860
  * record-entries - the ONE admin surface for every list of user-created entries
16873
16861
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -69150,6 +69138,12 @@ Object.freeze({
69150
69138
  addonId: null,
69151
69139
  access: "view"
69152
69140
  },
69141
+ "deviceHistory.queryMany": {
69142
+ capName: "device-history",
69143
+ capScope: "system",
69144
+ addonId: null,
69145
+ access: "view"
69146
+ },
69153
69147
  "deviceHistory.queryNode": {
69154
69148
  capName: "device-history",
69155
69149
  capScope: "system",
@@ -74370,24 +74364,12 @@ Object.freeze({
74370
74364
  addonId: null,
74371
74365
  access: "create"
74372
74366
  },
74373
- "storageAdmin.adoptRecords": {
74374
- capName: "storage-admin",
74375
- capScope: "system",
74376
- addonId: null,
74377
- access: "create"
74378
- },
74379
74367
  "storageAdmin.dropCollection": {
74380
74368
  capName: "storage-admin",
74381
74369
  capScope: "system",
74382
74370
  addonId: null,
74383
74371
  access: "delete"
74384
74372
  },
74385
- "storageAdmin.isAdoptedLegacyTable": {
74386
- capName: "storage-admin",
74387
- capScope: "system",
74388
- addonId: null,
74389
- access: "view"
74390
- },
74391
74373
  "storageAdmin.listKinds": {
74392
74374
  capName: "storage-admin",
74393
74375
  capScope: "system",
@@ -74400,12 +74382,6 @@ Object.freeze({
74400
74382
  addonId: null,
74401
74383
  access: "view"
74402
74384
  },
74403
- "storageAdmin.readLegacyCollection": {
74404
- capName: "storage-admin",
74405
- capScope: "system",
74406
- addonId: null,
74407
- access: "view"
74408
- },
74409
74385
  "storageAdmin.readRecords": {
74410
74386
  capName: "storage-admin",
74411
74387
  capScope: "system",
@@ -78220,12 +78196,6 @@ Object.freeze({
78220
78196
  form: "single",
78221
78197
  optional: false
78222
78198
  }],
78223
- "storageAdmin.adoptRecords": [{
78224
- name: "records",
78225
- form: "object-array",
78226
- optional: false,
78227
- itemField: "deviceId"
78228
- }],
78229
78199
  "storageAdmin.readRecords": [{
78230
78200
  name: "deviceId",
78231
78201
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-dreo",
3
- "version": "0.2.133",
3
+ "version": "0.2.134",
4
4
  "description": "Dreo smart-device (fan / air-circulator / purifier / heater / humidifier) device-provider addon for CamStack — wraps the @apocaliss92/nodedreo Dreo cloud client (REST + WebSocket)",
5
5
  "keywords": [
6
6
  "camstack",