@camstack/addon-provider-unifi 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
|
@@ -5414,7 +5414,7 @@ var ZodIssueCode = {
|
|
|
5414
5414
|
var ZodFirstPartyTypeKind;
|
|
5415
5415
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5416
5416
|
//#endregion
|
|
5417
|
-
//#region ../types/dist/sleep-
|
|
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).
|
|
@@ -7962,7 +7962,13 @@ var RecordKindDeclarationSchema = object({
|
|
|
7962
7962
|
secretPaths: array(string().min(1)).default([]),
|
|
7963
7963
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7964
7964
|
secretArrayKeys: record(string(), string()).default({}),
|
|
7965
|
-
/**
|
|
7965
|
+
/**
|
|
7966
|
+
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
7967
|
+
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
7968
|
+
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
7969
|
+
* (an orphaned kind is never redeclared) and an addon built before the
|
|
7970
|
+
* removal still sends it. Never set it.
|
|
7971
|
+
*/
|
|
7966
7972
|
adoptsFrom: string().min(1).optional(),
|
|
7967
7973
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
7968
7974
|
transactFamily: string().min(1).optional(),
|
|
@@ -16648,11 +16654,12 @@ var DeclareKindResultSchema = object({
|
|
|
16648
16654
|
kindId: number().int(),
|
|
16649
16655
|
state: RecordKindStateSchema,
|
|
16650
16656
|
createdIndexes: array(string()),
|
|
16651
|
-
/**
|
|
16652
|
-
|
|
16653
|
-
|
|
16654
|
-
|
|
16655
|
-
|
|
16657
|
+
/**
|
|
16658
|
+
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
16659
|
+
* it stays on the wire, null, because an addon built before the removal reads
|
|
16660
|
+
* an ABSENT field as "adoption pending" and refuses to start.
|
|
16661
|
+
*/
|
|
16662
|
+
adoptionPending: _null()
|
|
16656
16663
|
});
|
|
16657
16664
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16658
16665
|
var SecretRefsList = array(string());
|
|
@@ -16825,26 +16832,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
|
|
|
16825
16832
|
}), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
|
|
16826
16833
|
owner: string().min(1),
|
|
16827
16834
|
kind: RecordKindNameSchema
|
|
16828
|
-
}), RecordQueryResultSchema, { auth: "admin" })
|
|
16829
|
-
owner: string().min(1),
|
|
16830
|
-
kind: RecordKindNameSchema,
|
|
16831
|
-
records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
16832
|
-
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
16833
|
-
complete: boolean().optional()
|
|
16834
|
-
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
|
|
16835
|
-
kind: "mutation",
|
|
16836
|
-
auth: "admin"
|
|
16837
|
-
}), method(object({
|
|
16838
|
-
collection: string().min(1),
|
|
16839
|
-
cursor: string().optional(),
|
|
16840
|
-
limit: number().int().min(1).max(1e3).optional()
|
|
16841
|
-
}), object({
|
|
16842
|
-
rows: array(object({
|
|
16843
|
-
id: string(),
|
|
16844
|
-
data: record(string(), unknown())
|
|
16845
|
-
})),
|
|
16846
|
-
nextCursor: string().nullable()
|
|
16847
|
-
}), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
|
|
16835
|
+
}), RecordQueryResultSchema, { auth: "admin" });
|
|
16848
16836
|
/**
|
|
16849
16837
|
* record-entries - the ONE admin surface for every list of user-created entries
|
|
16850
16838
|
* (D881): notification targets, brokers, LLM profiles, anything an addon
|
|
@@ -60468,9 +60456,24 @@ var NpuInfoSchema = object({
|
|
|
60468
60456
|
name: string().optional(),
|
|
60469
60457
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
60470
60458
|
});
|
|
60459
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
60471
60460
|
var CoralInfoSchema = object({
|
|
60472
60461
|
type: literal("coral-edgetpu"),
|
|
60473
|
-
bus
|
|
60462
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
60463
|
+
bus: string().optional(),
|
|
60464
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
60465
|
+
count: number().int().nonnegative().optional(),
|
|
60466
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
60467
|
+
units: array(object({
|
|
60468
|
+
bus: CoralBusSchema,
|
|
60469
|
+
count: number().int().nonnegative()
|
|
60470
|
+
})).readonly().optional(),
|
|
60471
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
60472
|
+
unavailable: array(object({
|
|
60473
|
+
bus: CoralBusSchema,
|
|
60474
|
+
count: number().int().nonnegative(),
|
|
60475
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
60476
|
+
})).readonly().optional()
|
|
60474
60477
|
});
|
|
60475
60478
|
var HardwareInfoSchema = object({
|
|
60476
60479
|
platform: HardwarePlatformSchema,
|
|
@@ -69217,6 +69220,12 @@ Object.freeze({
|
|
|
69217
69220
|
addonId: null,
|
|
69218
69221
|
access: "view"
|
|
69219
69222
|
},
|
|
69223
|
+
"deviceHistory.queryMany": {
|
|
69224
|
+
capName: "device-history",
|
|
69225
|
+
capScope: "system",
|
|
69226
|
+
addonId: null,
|
|
69227
|
+
access: "view"
|
|
69228
|
+
},
|
|
69220
69229
|
"deviceHistory.queryNode": {
|
|
69221
69230
|
capName: "device-history",
|
|
69222
69231
|
capScope: "system",
|
|
@@ -74437,24 +74446,12 @@ Object.freeze({
|
|
|
74437
74446
|
addonId: null,
|
|
74438
74447
|
access: "create"
|
|
74439
74448
|
},
|
|
74440
|
-
"storageAdmin.adoptRecords": {
|
|
74441
|
-
capName: "storage-admin",
|
|
74442
|
-
capScope: "system",
|
|
74443
|
-
addonId: null,
|
|
74444
|
-
access: "create"
|
|
74445
|
-
},
|
|
74446
74449
|
"storageAdmin.dropCollection": {
|
|
74447
74450
|
capName: "storage-admin",
|
|
74448
74451
|
capScope: "system",
|
|
74449
74452
|
addonId: null,
|
|
74450
74453
|
access: "delete"
|
|
74451
74454
|
},
|
|
74452
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
74453
|
-
capName: "storage-admin",
|
|
74454
|
-
capScope: "system",
|
|
74455
|
-
addonId: null,
|
|
74456
|
-
access: "view"
|
|
74457
|
-
},
|
|
74458
74455
|
"storageAdmin.listKinds": {
|
|
74459
74456
|
capName: "storage-admin",
|
|
74460
74457
|
capScope: "system",
|
|
@@ -74467,12 +74464,6 @@ Object.freeze({
|
|
|
74467
74464
|
addonId: null,
|
|
74468
74465
|
access: "view"
|
|
74469
74466
|
},
|
|
74470
|
-
"storageAdmin.readLegacyCollection": {
|
|
74471
|
-
capName: "storage-admin",
|
|
74472
|
-
capScope: "system",
|
|
74473
|
-
addonId: null,
|
|
74474
|
-
access: "view"
|
|
74475
|
-
},
|
|
74476
74467
|
"storageAdmin.readRecords": {
|
|
74477
74468
|
capName: "storage-admin",
|
|
74478
74469
|
capScope: "system",
|
|
@@ -78287,12 +78278,6 @@ Object.freeze({
|
|
|
78287
78278
|
form: "single",
|
|
78288
78279
|
optional: false
|
|
78289
78280
|
}],
|
|
78290
|
-
"storageAdmin.adoptRecords": [{
|
|
78291
|
-
name: "records",
|
|
78292
|
-
form: "object-array",
|
|
78293
|
-
optional: false,
|
|
78294
|
-
itemField: "deviceId"
|
|
78295
|
-
}],
|
|
78296
78281
|
"storageAdmin.readRecords": [{
|
|
78297
78282
|
name: "deviceId",
|
|
78298
78283
|
form: "single",
|
package/dist/addon.mjs
CHANGED
|
@@ -5413,7 +5413,7 @@ var ZodIssueCode = {
|
|
|
5413
5413
|
var ZodFirstPartyTypeKind;
|
|
5414
5414
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5415
5415
|
//#endregion
|
|
5416
|
-
//#region ../types/dist/sleep-
|
|
5416
|
+
//#region ../types/dist/sleep-CSuN0thG.mjs
|
|
5417
5417
|
/**
|
|
5418
5418
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5419
5419
|
* window to float samples (D455).
|
|
@@ -7961,7 +7961,13 @@ var RecordKindDeclarationSchema = object({
|
|
|
7961
7961
|
secretPaths: array(string().min(1)).default([]),
|
|
7962
7962
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7963
7963
|
secretArrayKeys: record(string(), string()).default({}),
|
|
7964
|
-
/**
|
|
7964
|
+
/**
|
|
7965
|
+
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
7966
|
+
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
7967
|
+
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
7968
|
+
* (an orphaned kind is never redeclared) and an addon built before the
|
|
7969
|
+
* removal still sends it. Never set it.
|
|
7970
|
+
*/
|
|
7965
7971
|
adoptsFrom: string().min(1).optional(),
|
|
7966
7972
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
7967
7973
|
transactFamily: string().min(1).optional(),
|
|
@@ -16647,11 +16653,12 @@ var DeclareKindResultSchema = object({
|
|
|
16647
16653
|
kindId: number().int(),
|
|
16648
16654
|
state: RecordKindStateSchema,
|
|
16649
16655
|
createdIndexes: array(string()),
|
|
16650
|
-
/**
|
|
16651
|
-
|
|
16652
|
-
|
|
16653
|
-
|
|
16654
|
-
|
|
16656
|
+
/**
|
|
16657
|
+
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
16658
|
+
* it stays on the wire, null, because an addon built before the removal reads
|
|
16659
|
+
* an ABSENT field as "adoption pending" and refuses to start.
|
|
16660
|
+
*/
|
|
16661
|
+
adoptionPending: _null()
|
|
16655
16662
|
});
|
|
16656
16663
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16657
16664
|
var SecretRefsList = array(string());
|
|
@@ -16824,26 +16831,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
|
|
|
16824
16831
|
}), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
|
|
16825
16832
|
owner: string().min(1),
|
|
16826
16833
|
kind: RecordKindNameSchema
|
|
16827
|
-
}), RecordQueryResultSchema, { auth: "admin" })
|
|
16828
|
-
owner: string().min(1),
|
|
16829
|
-
kind: RecordKindNameSchema,
|
|
16830
|
-
records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
16831
|
-
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
16832
|
-
complete: boolean().optional()
|
|
16833
|
-
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
|
|
16834
|
-
kind: "mutation",
|
|
16835
|
-
auth: "admin"
|
|
16836
|
-
}), method(object({
|
|
16837
|
-
collection: string().min(1),
|
|
16838
|
-
cursor: string().optional(),
|
|
16839
|
-
limit: number().int().min(1).max(1e3).optional()
|
|
16840
|
-
}), object({
|
|
16841
|
-
rows: array(object({
|
|
16842
|
-
id: string(),
|
|
16843
|
-
data: record(string(), unknown())
|
|
16844
|
-
})),
|
|
16845
|
-
nextCursor: string().nullable()
|
|
16846
|
-
}), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
|
|
16834
|
+
}), RecordQueryResultSchema, { auth: "admin" });
|
|
16847
16835
|
/**
|
|
16848
16836
|
* record-entries - the ONE admin surface for every list of user-created entries
|
|
16849
16837
|
* (D881): notification targets, brokers, LLM profiles, anything an addon
|
|
@@ -60467,9 +60455,24 @@ var NpuInfoSchema = object({
|
|
|
60467
60455
|
name: string().optional(),
|
|
60468
60456
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
60469
60457
|
});
|
|
60458
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
60470
60459
|
var CoralInfoSchema = object({
|
|
60471
60460
|
type: literal("coral-edgetpu"),
|
|
60472
|
-
bus
|
|
60461
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
60462
|
+
bus: string().optional(),
|
|
60463
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
60464
|
+
count: number().int().nonnegative().optional(),
|
|
60465
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
60466
|
+
units: array(object({
|
|
60467
|
+
bus: CoralBusSchema,
|
|
60468
|
+
count: number().int().nonnegative()
|
|
60469
|
+
})).readonly().optional(),
|
|
60470
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
60471
|
+
unavailable: array(object({
|
|
60472
|
+
bus: CoralBusSchema,
|
|
60473
|
+
count: number().int().nonnegative(),
|
|
60474
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
60475
|
+
})).readonly().optional()
|
|
60473
60476
|
});
|
|
60474
60477
|
var HardwareInfoSchema = object({
|
|
60475
60478
|
platform: HardwarePlatformSchema,
|
|
@@ -69216,6 +69219,12 @@ Object.freeze({
|
|
|
69216
69219
|
addonId: null,
|
|
69217
69220
|
access: "view"
|
|
69218
69221
|
},
|
|
69222
|
+
"deviceHistory.queryMany": {
|
|
69223
|
+
capName: "device-history",
|
|
69224
|
+
capScope: "system",
|
|
69225
|
+
addonId: null,
|
|
69226
|
+
access: "view"
|
|
69227
|
+
},
|
|
69219
69228
|
"deviceHistory.queryNode": {
|
|
69220
69229
|
capName: "device-history",
|
|
69221
69230
|
capScope: "system",
|
|
@@ -74436,24 +74445,12 @@ Object.freeze({
|
|
|
74436
74445
|
addonId: null,
|
|
74437
74446
|
access: "create"
|
|
74438
74447
|
},
|
|
74439
|
-
"storageAdmin.adoptRecords": {
|
|
74440
|
-
capName: "storage-admin",
|
|
74441
|
-
capScope: "system",
|
|
74442
|
-
addonId: null,
|
|
74443
|
-
access: "create"
|
|
74444
|
-
},
|
|
74445
74448
|
"storageAdmin.dropCollection": {
|
|
74446
74449
|
capName: "storage-admin",
|
|
74447
74450
|
capScope: "system",
|
|
74448
74451
|
addonId: null,
|
|
74449
74452
|
access: "delete"
|
|
74450
74453
|
},
|
|
74451
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
74452
|
-
capName: "storage-admin",
|
|
74453
|
-
capScope: "system",
|
|
74454
|
-
addonId: null,
|
|
74455
|
-
access: "view"
|
|
74456
|
-
},
|
|
74457
74454
|
"storageAdmin.listKinds": {
|
|
74458
74455
|
capName: "storage-admin",
|
|
74459
74456
|
capScope: "system",
|
|
@@ -74466,12 +74463,6 @@ Object.freeze({
|
|
|
74466
74463
|
addonId: null,
|
|
74467
74464
|
access: "view"
|
|
74468
74465
|
},
|
|
74469
|
-
"storageAdmin.readLegacyCollection": {
|
|
74470
|
-
capName: "storage-admin",
|
|
74471
|
-
capScope: "system",
|
|
74472
|
-
addonId: null,
|
|
74473
|
-
access: "view"
|
|
74474
|
-
},
|
|
74475
74466
|
"storageAdmin.readRecords": {
|
|
74476
74467
|
capName: "storage-admin",
|
|
74477
74468
|
capScope: "system",
|
|
@@ -78286,12 +78277,6 @@ Object.freeze({
|
|
|
78286
78277
|
form: "single",
|
|
78287
78278
|
optional: false
|
|
78288
78279
|
}],
|
|
78289
|
-
"storageAdmin.adoptRecords": [{
|
|
78290
|
-
name: "records",
|
|
78291
|
-
form: "object-array",
|
|
78292
|
-
optional: false,
|
|
78293
|
-
itemField: "deviceId"
|
|
78294
|
-
}],
|
|
78295
78280
|
"storageAdmin.readRecords": [{
|
|
78296
78281
|
name: "deviceId",
|
|
78297
78282
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-unifi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.134",
|
|
4
4
|
"description": "UniFi Network controller device-provider addon for CamStack — local-controller infra switches/APs (as containers) + network-client presence. NO cameras/Protect.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|