@camstack/addon-provider-mqtt-ha 0.1.10 → 0.1.12
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
|
@@ -5448,7 +5448,7 @@ var ZodIssueCode = {
|
|
|
5448
5448
|
var ZodFirstPartyTypeKind;
|
|
5449
5449
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5450
5450
|
//#endregion
|
|
5451
|
-
//#region ../types/dist/sleep-
|
|
5451
|
+
//#region ../types/dist/sleep-CSuN0thG.mjs
|
|
5452
5452
|
/**
|
|
5453
5453
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5454
5454
|
* window to float samples (D455).
|
|
@@ -7996,7 +7996,13 @@ var RecordKindDeclarationSchema = object({
|
|
|
7996
7996
|
secretPaths: array(string().min(1)).default([]),
|
|
7997
7997
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7998
7998
|
secretArrayKeys: record(string(), string()).default({}),
|
|
7999
|
-
/**
|
|
7999
|
+
/**
|
|
8000
|
+
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
8001
|
+
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
8002
|
+
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
8003
|
+
* (an orphaned kind is never redeclared) and an addon built before the
|
|
8004
|
+
* removal still sends it. Never set it.
|
|
8005
|
+
*/
|
|
8000
8006
|
adoptsFrom: string().min(1).optional(),
|
|
8001
8007
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
8002
8008
|
transactFamily: string().min(1).optional(),
|
|
@@ -16668,11 +16674,12 @@ var DeclareKindResultSchema = object({
|
|
|
16668
16674
|
kindId: number().int(),
|
|
16669
16675
|
state: RecordKindStateSchema,
|
|
16670
16676
|
createdIndexes: array(string()),
|
|
16671
|
-
/**
|
|
16672
|
-
|
|
16673
|
-
|
|
16674
|
-
|
|
16675
|
-
|
|
16677
|
+
/**
|
|
16678
|
+
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
16679
|
+
* it stays on the wire, null, because an addon built before the removal reads
|
|
16680
|
+
* an ABSENT field as "adoption pending" and refuses to start.
|
|
16681
|
+
*/
|
|
16682
|
+
adoptionPending: _null()
|
|
16676
16683
|
});
|
|
16677
16684
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16678
16685
|
var SecretRefsList = array(string());
|
|
@@ -16845,26 +16852,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
|
|
|
16845
16852
|
}), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
|
|
16846
16853
|
owner: string().min(1),
|
|
16847
16854
|
kind: RecordKindNameSchema
|
|
16848
|
-
}), RecordQueryResultSchema, { auth: "admin" })
|
|
16849
|
-
owner: string().min(1),
|
|
16850
|
-
kind: RecordKindNameSchema,
|
|
16851
|
-
records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
16852
|
-
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
16853
|
-
complete: boolean().optional()
|
|
16854
|
-
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
|
|
16855
|
-
kind: "mutation",
|
|
16856
|
-
auth: "admin"
|
|
16857
|
-
}), method(object({
|
|
16858
|
-
collection: string().min(1),
|
|
16859
|
-
cursor: string().optional(),
|
|
16860
|
-
limit: number().int().min(1).max(1e3).optional()
|
|
16861
|
-
}), object({
|
|
16862
|
-
rows: array(object({
|
|
16863
|
-
id: string(),
|
|
16864
|
-
data: record(string(), unknown())
|
|
16865
|
-
})),
|
|
16866
|
-
nextCursor: string().nullable()
|
|
16867
|
-
}), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
|
|
16855
|
+
}), RecordQueryResultSchema, { auth: "admin" });
|
|
16868
16856
|
/**
|
|
16869
16857
|
* record-entries - the ONE admin surface for every list of user-created entries
|
|
16870
16858
|
* (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
|
|
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",
|
package/dist/addon.mjs
CHANGED
|
@@ -5449,7 +5449,7 @@ var ZodIssueCode = {
|
|
|
5449
5449
|
var ZodFirstPartyTypeKind;
|
|
5450
5450
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5451
5451
|
//#endregion
|
|
5452
|
-
//#region ../types/dist/sleep-
|
|
5452
|
+
//#region ../types/dist/sleep-CSuN0thG.mjs
|
|
5453
5453
|
/**
|
|
5454
5454
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5455
5455
|
* window to float samples (D455).
|
|
@@ -7997,7 +7997,13 @@ var RecordKindDeclarationSchema = object({
|
|
|
7997
7997
|
secretPaths: array(string().min(1)).default([]),
|
|
7998
7998
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7999
7999
|
secretArrayKeys: record(string(), string()).default({}),
|
|
8000
|
-
/**
|
|
8000
|
+
/**
|
|
8001
|
+
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
8002
|
+
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
8003
|
+
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
8004
|
+
* (an orphaned kind is never redeclared) and an addon built before the
|
|
8005
|
+
* removal still sends it. Never set it.
|
|
8006
|
+
*/
|
|
8001
8007
|
adoptsFrom: string().min(1).optional(),
|
|
8002
8008
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
8003
8009
|
transactFamily: string().min(1).optional(),
|
|
@@ -16669,11 +16675,12 @@ var DeclareKindResultSchema = object({
|
|
|
16669
16675
|
kindId: number().int(),
|
|
16670
16676
|
state: RecordKindStateSchema,
|
|
16671
16677
|
createdIndexes: array(string()),
|
|
16672
|
-
/**
|
|
16673
|
-
|
|
16674
|
-
|
|
16675
|
-
|
|
16676
|
-
|
|
16678
|
+
/**
|
|
16679
|
+
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
16680
|
+
* it stays on the wire, null, because an addon built before the removal reads
|
|
16681
|
+
* an ABSENT field as "adoption pending" and refuses to start.
|
|
16682
|
+
*/
|
|
16683
|
+
adoptionPending: _null()
|
|
16677
16684
|
});
|
|
16678
16685
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16679
16686
|
var SecretRefsList = array(string());
|
|
@@ -16846,26 +16853,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
|
|
|
16846
16853
|
}), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
|
|
16847
16854
|
owner: string().min(1),
|
|
16848
16855
|
kind: RecordKindNameSchema
|
|
16849
|
-
}), RecordQueryResultSchema, { auth: "admin" })
|
|
16850
|
-
owner: string().min(1),
|
|
16851
|
-
kind: RecordKindNameSchema,
|
|
16852
|
-
records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
16853
|
-
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
16854
|
-
complete: boolean().optional()
|
|
16855
|
-
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
|
|
16856
|
-
kind: "mutation",
|
|
16857
|
-
auth: "admin"
|
|
16858
|
-
}), method(object({
|
|
16859
|
-
collection: string().min(1),
|
|
16860
|
-
cursor: string().optional(),
|
|
16861
|
-
limit: number().int().min(1).max(1e3).optional()
|
|
16862
|
-
}), object({
|
|
16863
|
-
rows: array(object({
|
|
16864
|
-
id: string(),
|
|
16865
|
-
data: record(string(), unknown())
|
|
16866
|
-
})),
|
|
16867
|
-
nextCursor: string().nullable()
|
|
16868
|
-
}), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
|
|
16856
|
+
}), RecordQueryResultSchema, { auth: "admin" });
|
|
16869
16857
|
/**
|
|
16870
16858
|
* record-entries - the ONE admin surface for every list of user-created entries
|
|
16871
16859
|
* (D881): notification targets, brokers, LLM profiles, anything an addon
|
|
@@ -60376,9 +60364,24 @@ var NpuInfoSchema = object({
|
|
|
60376
60364
|
name: string().optional(),
|
|
60377
60365
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
60378
60366
|
});
|
|
60367
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
60379
60368
|
var CoralInfoSchema = object({
|
|
60380
60369
|
type: literal("coral-edgetpu"),
|
|
60381
|
-
bus
|
|
60370
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
60371
|
+
bus: string().optional(),
|
|
60372
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
60373
|
+
count: number().int().nonnegative().optional(),
|
|
60374
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
60375
|
+
units: array(object({
|
|
60376
|
+
bus: CoralBusSchema,
|
|
60377
|
+
count: number().int().nonnegative()
|
|
60378
|
+
})).readonly().optional(),
|
|
60379
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
60380
|
+
unavailable: array(object({
|
|
60381
|
+
bus: CoralBusSchema,
|
|
60382
|
+
count: number().int().nonnegative(),
|
|
60383
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
60384
|
+
})).readonly().optional()
|
|
60382
60385
|
});
|
|
60383
60386
|
var HardwareInfoSchema = object({
|
|
60384
60387
|
platform: HardwarePlatformSchema,
|
|
@@ -69125,6 +69128,12 @@ Object.freeze({
|
|
|
69125
69128
|
addonId: null,
|
|
69126
69129
|
access: "view"
|
|
69127
69130
|
},
|
|
69131
|
+
"deviceHistory.queryMany": {
|
|
69132
|
+
capName: "device-history",
|
|
69133
|
+
capScope: "system",
|
|
69134
|
+
addonId: null,
|
|
69135
|
+
access: "view"
|
|
69136
|
+
},
|
|
69128
69137
|
"deviceHistory.queryNode": {
|
|
69129
69138
|
capName: "device-history",
|
|
69130
69139
|
capScope: "system",
|
|
@@ -74345,24 +74354,12 @@ Object.freeze({
|
|
|
74345
74354
|
addonId: null,
|
|
74346
74355
|
access: "create"
|
|
74347
74356
|
},
|
|
74348
|
-
"storageAdmin.adoptRecords": {
|
|
74349
|
-
capName: "storage-admin",
|
|
74350
|
-
capScope: "system",
|
|
74351
|
-
addonId: null,
|
|
74352
|
-
access: "create"
|
|
74353
|
-
},
|
|
74354
74357
|
"storageAdmin.dropCollection": {
|
|
74355
74358
|
capName: "storage-admin",
|
|
74356
74359
|
capScope: "system",
|
|
74357
74360
|
addonId: null,
|
|
74358
74361
|
access: "delete"
|
|
74359
74362
|
},
|
|
74360
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
74361
|
-
capName: "storage-admin",
|
|
74362
|
-
capScope: "system",
|
|
74363
|
-
addonId: null,
|
|
74364
|
-
access: "view"
|
|
74365
|
-
},
|
|
74366
74363
|
"storageAdmin.listKinds": {
|
|
74367
74364
|
capName: "storage-admin",
|
|
74368
74365
|
capScope: "system",
|
|
@@ -74375,12 +74372,6 @@ Object.freeze({
|
|
|
74375
74372
|
addonId: null,
|
|
74376
74373
|
access: "view"
|
|
74377
74374
|
},
|
|
74378
|
-
"storageAdmin.readLegacyCollection": {
|
|
74379
|
-
capName: "storage-admin",
|
|
74380
|
-
capScope: "system",
|
|
74381
|
-
addonId: null,
|
|
74382
|
-
access: "view"
|
|
74383
|
-
},
|
|
74384
74375
|
"storageAdmin.readRecords": {
|
|
74385
74376
|
capName: "storage-admin",
|
|
74386
74377
|
capScope: "system",
|
|
@@ -78195,12 +78186,6 @@ Object.freeze({
|
|
|
78195
78186
|
form: "single",
|
|
78196
78187
|
optional: false
|
|
78197
78188
|
}],
|
|
78198
|
-
"storageAdmin.adoptRecords": [{
|
|
78199
|
-
name: "records",
|
|
78200
|
-
form: "object-array",
|
|
78201
|
-
optional: false,
|
|
78202
|
-
itemField: "deviceId"
|
|
78203
|
-
}],
|
|
78204
78189
|
"storageAdmin.readRecords": [{
|
|
78205
78190
|
name: "deviceId",
|
|
78206
78191
|
form: "single",
|
package/package.json
CHANGED