@camstack/addon-provider-dreo 0.2.132 → 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 +37 -52
- package/dist/addon.mjs +37 -52
- package/package.json +1 -1
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-
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
16674
|
-
|
|
16675
|
-
|
|
16676
|
-
|
|
16677
|
-
|
|
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" })
|
|
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
|
|
@@ -60385,9 +60373,24 @@ var NpuInfoSchema = object({
|
|
|
60385
60373
|
name: string().optional(),
|
|
60386
60374
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
60387
60375
|
});
|
|
60376
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
60388
60377
|
var CoralInfoSchema = object({
|
|
60389
60378
|
type: literal("coral-edgetpu"),
|
|
60390
|
-
bus
|
|
60379
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
60380
|
+
bus: string().optional(),
|
|
60381
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
60382
|
+
count: number().int().nonnegative().optional(),
|
|
60383
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
60384
|
+
units: array(object({
|
|
60385
|
+
bus: CoralBusSchema,
|
|
60386
|
+
count: number().int().nonnegative()
|
|
60387
|
+
})).readonly().optional(),
|
|
60388
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
60389
|
+
unavailable: array(object({
|
|
60390
|
+
bus: CoralBusSchema,
|
|
60391
|
+
count: number().int().nonnegative(),
|
|
60392
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
60393
|
+
})).readonly().optional()
|
|
60391
60394
|
});
|
|
60392
60395
|
var HardwareInfoSchema = object({
|
|
60393
60396
|
platform: HardwarePlatformSchema,
|
|
@@ -69134,6 +69137,12 @@ Object.freeze({
|
|
|
69134
69137
|
addonId: null,
|
|
69135
69138
|
access: "view"
|
|
69136
69139
|
},
|
|
69140
|
+
"deviceHistory.queryMany": {
|
|
69141
|
+
capName: "device-history",
|
|
69142
|
+
capScope: "system",
|
|
69143
|
+
addonId: null,
|
|
69144
|
+
access: "view"
|
|
69145
|
+
},
|
|
69137
69146
|
"deviceHistory.queryNode": {
|
|
69138
69147
|
capName: "device-history",
|
|
69139
69148
|
capScope: "system",
|
|
@@ -74354,24 +74363,12 @@ Object.freeze({
|
|
|
74354
74363
|
addonId: null,
|
|
74355
74364
|
access: "create"
|
|
74356
74365
|
},
|
|
74357
|
-
"storageAdmin.adoptRecords": {
|
|
74358
|
-
capName: "storage-admin",
|
|
74359
|
-
capScope: "system",
|
|
74360
|
-
addonId: null,
|
|
74361
|
-
access: "create"
|
|
74362
|
-
},
|
|
74363
74366
|
"storageAdmin.dropCollection": {
|
|
74364
74367
|
capName: "storage-admin",
|
|
74365
74368
|
capScope: "system",
|
|
74366
74369
|
addonId: null,
|
|
74367
74370
|
access: "delete"
|
|
74368
74371
|
},
|
|
74369
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
74370
|
-
capName: "storage-admin",
|
|
74371
|
-
capScope: "system",
|
|
74372
|
-
addonId: null,
|
|
74373
|
-
access: "view"
|
|
74374
|
-
},
|
|
74375
74372
|
"storageAdmin.listKinds": {
|
|
74376
74373
|
capName: "storage-admin",
|
|
74377
74374
|
capScope: "system",
|
|
@@ -74384,12 +74381,6 @@ Object.freeze({
|
|
|
74384
74381
|
addonId: null,
|
|
74385
74382
|
access: "view"
|
|
74386
74383
|
},
|
|
74387
|
-
"storageAdmin.readLegacyCollection": {
|
|
74388
|
-
capName: "storage-admin",
|
|
74389
|
-
capScope: "system",
|
|
74390
|
-
addonId: null,
|
|
74391
|
-
access: "view"
|
|
74392
|
-
},
|
|
74393
74384
|
"storageAdmin.readRecords": {
|
|
74394
74385
|
capName: "storage-admin",
|
|
74395
74386
|
capScope: "system",
|
|
@@ -78204,12 +78195,6 @@ Object.freeze({
|
|
|
78204
78195
|
form: "single",
|
|
78205
78196
|
optional: false
|
|
78206
78197
|
}],
|
|
78207
|
-
"storageAdmin.adoptRecords": [{
|
|
78208
|
-
name: "records",
|
|
78209
|
-
form: "object-array",
|
|
78210
|
-
optional: false,
|
|
78211
|
-
itemField: "deviceId"
|
|
78212
|
-
}],
|
|
78213
78198
|
"storageAdmin.readRecords": [{
|
|
78214
78199
|
name: "deviceId",
|
|
78215
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-
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
16675
|
-
|
|
16676
|
-
|
|
16677
|
-
|
|
16678
|
-
|
|
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" })
|
|
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
|
|
@@ -60386,9 +60374,24 @@ var NpuInfoSchema = object({
|
|
|
60386
60374
|
name: string().optional(),
|
|
60387
60375
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
60388
60376
|
});
|
|
60377
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
60389
60378
|
var CoralInfoSchema = object({
|
|
60390
60379
|
type: literal("coral-edgetpu"),
|
|
60391
|
-
bus
|
|
60380
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
60381
|
+
bus: string().optional(),
|
|
60382
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
60383
|
+
count: number().int().nonnegative().optional(),
|
|
60384
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
60385
|
+
units: array(object({
|
|
60386
|
+
bus: CoralBusSchema,
|
|
60387
|
+
count: number().int().nonnegative()
|
|
60388
|
+
})).readonly().optional(),
|
|
60389
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
60390
|
+
unavailable: array(object({
|
|
60391
|
+
bus: CoralBusSchema,
|
|
60392
|
+
count: number().int().nonnegative(),
|
|
60393
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
60394
|
+
})).readonly().optional()
|
|
60392
60395
|
});
|
|
60393
60396
|
var HardwareInfoSchema = object({
|
|
60394
60397
|
platform: HardwarePlatformSchema,
|
|
@@ -69135,6 +69138,12 @@ Object.freeze({
|
|
|
69135
69138
|
addonId: null,
|
|
69136
69139
|
access: "view"
|
|
69137
69140
|
},
|
|
69141
|
+
"deviceHistory.queryMany": {
|
|
69142
|
+
capName: "device-history",
|
|
69143
|
+
capScope: "system",
|
|
69144
|
+
addonId: null,
|
|
69145
|
+
access: "view"
|
|
69146
|
+
},
|
|
69138
69147
|
"deviceHistory.queryNode": {
|
|
69139
69148
|
capName: "device-history",
|
|
69140
69149
|
capScope: "system",
|
|
@@ -74355,24 +74364,12 @@ Object.freeze({
|
|
|
74355
74364
|
addonId: null,
|
|
74356
74365
|
access: "create"
|
|
74357
74366
|
},
|
|
74358
|
-
"storageAdmin.adoptRecords": {
|
|
74359
|
-
capName: "storage-admin",
|
|
74360
|
-
capScope: "system",
|
|
74361
|
-
addonId: null,
|
|
74362
|
-
access: "create"
|
|
74363
|
-
},
|
|
74364
74367
|
"storageAdmin.dropCollection": {
|
|
74365
74368
|
capName: "storage-admin",
|
|
74366
74369
|
capScope: "system",
|
|
74367
74370
|
addonId: null,
|
|
74368
74371
|
access: "delete"
|
|
74369
74372
|
},
|
|
74370
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
74371
|
-
capName: "storage-admin",
|
|
74372
|
-
capScope: "system",
|
|
74373
|
-
addonId: null,
|
|
74374
|
-
access: "view"
|
|
74375
|
-
},
|
|
74376
74373
|
"storageAdmin.listKinds": {
|
|
74377
74374
|
capName: "storage-admin",
|
|
74378
74375
|
capScope: "system",
|
|
@@ -74385,12 +74382,6 @@ Object.freeze({
|
|
|
74385
74382
|
addonId: null,
|
|
74386
74383
|
access: "view"
|
|
74387
74384
|
},
|
|
74388
|
-
"storageAdmin.readLegacyCollection": {
|
|
74389
|
-
capName: "storage-admin",
|
|
74390
|
-
capScope: "system",
|
|
74391
|
-
addonId: null,
|
|
74392
|
-
access: "view"
|
|
74393
|
-
},
|
|
74394
74385
|
"storageAdmin.readRecords": {
|
|
74395
74386
|
capName: "storage-admin",
|
|
74396
74387
|
capScope: "system",
|
|
@@ -78205,12 +78196,6 @@ Object.freeze({
|
|
|
78205
78196
|
form: "single",
|
|
78206
78197
|
optional: false
|
|
78207
78198
|
}],
|
|
78208
|
-
"storageAdmin.adoptRecords": [{
|
|
78209
|
-
name: "records",
|
|
78210
|
-
form: "object-array",
|
|
78211
|
-
optional: false,
|
|
78212
|
-
itemField: "deviceId"
|
|
78213
|
-
}],
|
|
78214
78199
|
"storageAdmin.readRecords": [{
|
|
78215
78200
|
name: "deviceId",
|
|
78216
78201
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-dreo",
|
|
3
|
-
"version": "0.2.
|
|
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",
|