@camstack/addon-mqtt-broker 1.2.131 → 1.2.133
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/mqtt-broker.addon.js +40 -79
- package/dist/mqtt-broker.addon.mjs +40 -79
- package/package.json +1 -1
|
@@ -5594,7 +5594,7 @@ var ZodIssueCode = {
|
|
|
5594
5594
|
var ZodFirstPartyTypeKind;
|
|
5595
5595
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5596
5596
|
//#endregion
|
|
5597
|
-
//#region ../types/dist/sleep-
|
|
5597
|
+
//#region ../types/dist/sleep-CSuN0thG.mjs
|
|
5598
5598
|
/**
|
|
5599
5599
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5600
5600
|
* window to float samples (D455).
|
|
@@ -8212,7 +8212,13 @@ var RecordKindDeclarationSchema = object({
|
|
|
8212
8212
|
secretPaths: array(string().min(1)).default([]),
|
|
8213
8213
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
8214
8214
|
secretArrayKeys: record(string(), string()).default({}),
|
|
8215
|
-
/**
|
|
8215
|
+
/**
|
|
8216
|
+
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
8217
|
+
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
8218
|
+
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
8219
|
+
* (an orphaned kind is never redeclared) and an addon built before the
|
|
8220
|
+
* removal still sends it. Never set it.
|
|
8221
|
+
*/
|
|
8216
8222
|
adoptsFrom: string().min(1).optional(),
|
|
8217
8223
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
8218
8224
|
transactFamily: string().min(1).optional(),
|
|
@@ -8287,7 +8293,6 @@ function defineRecordKinds(specs) {
|
|
|
8287
8293
|
maxDataBytes: spec.maxDataBytes,
|
|
8288
8294
|
secretPaths: [...secretPaths],
|
|
8289
8295
|
secretArrayKeys: spec.secretArrayKeys === void 0 ? void 0 : { ...spec.secretArrayKeys },
|
|
8290
|
-
adoptsFrom: spec.adoptsFrom,
|
|
8291
8296
|
transactFamily: spec.transactFamily,
|
|
8292
8297
|
entry: spec.entry === void 0 ? void 0 : {
|
|
8293
8298
|
title: spec.entry.title,
|
|
@@ -8331,7 +8336,6 @@ function defineEntryKind(name, spec) {
|
|
|
8331
8336
|
...spec.database === void 0 ? {} : { database: spec.database },
|
|
8332
8337
|
...spec.indexes === void 0 ? {} : { indexes: spec.indexes },
|
|
8333
8338
|
...spec.secretArrayKeys === void 0 ? {} : { secretArrayKeys: spec.secretArrayKeys },
|
|
8334
|
-
...spec.adoptsFrom === void 0 ? {} : { adoptsFrom: spec.adoptsFrom },
|
|
8335
8339
|
entry: {
|
|
8336
8340
|
title: spec.title,
|
|
8337
8341
|
...spec.nameField === void 0 ? {} : { nameField: spec.nameField }
|
|
@@ -8340,25 +8344,6 @@ function defineEntryKind(name, spec) {
|
|
|
8340
8344
|
if (defined === void 0) throw new DeclarationRefusedError(`entry kind "${name}" was not built`);
|
|
8341
8345
|
return defined;
|
|
8342
8346
|
}
|
|
8343
|
-
/**
|
|
8344
|
-
* Legacy source for broker entry adoption (B2): brokers live in addon-settings
|
|
8345
|
-
* as one row `<addonId>.brokers` whose value is an array until records-adopt
|
|
8346
|
-
* copies them into the entry kind.
|
|
8347
|
-
*/
|
|
8348
|
-
var SETTINGS_BROKERS_ADOPTS_PREFIX = "@settings-brokers/";
|
|
8349
|
-
/** The `adoptsFrom` value for an addon's broker entry kind. */
|
|
8350
|
-
function settingsBrokersAdoptsFrom(addonId) {
|
|
8351
|
-
return `${SETTINGS_BROKERS_ADOPTS_PREFIX}${addonId}`;
|
|
8352
|
-
}
|
|
8353
|
-
/**
|
|
8354
|
-
* Legacy source for entry adoption (B3): a list stored under addon-settings
|
|
8355
|
-
* `<addonId>.<key>` until records-adopt copies rows into the entry kind.
|
|
8356
|
-
*/
|
|
8357
|
-
var SETTINGS_ARRAY_ADOPTS_PREFIX = "@settings-array/";
|
|
8358
|
-
/** The `adoptsFrom` value for an addon-settings array field. */
|
|
8359
|
-
function settingsArrayAdoptsFrom(addonId, settingsKey) {
|
|
8360
|
-
return `${SETTINGS_ARRAY_ADOPTS_PREFIX}${addonId}/${settingsKey}`;
|
|
8361
|
-
}
|
|
8362
8347
|
/** Shared Zod schemas used across streaming capabilities. */
|
|
8363
8348
|
var CamProfileSchema = _enum([
|
|
8364
8349
|
"high",
|
|
@@ -16952,11 +16937,12 @@ var DeclareKindResultSchema = object({
|
|
|
16952
16937
|
kindId: number().int(),
|
|
16953
16938
|
state: RecordKindStateSchema,
|
|
16954
16939
|
createdIndexes: array(string()),
|
|
16955
|
-
/**
|
|
16956
|
-
|
|
16957
|
-
|
|
16958
|
-
|
|
16959
|
-
|
|
16940
|
+
/**
|
|
16941
|
+
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
16942
|
+
* it stays on the wire, null, because an addon built before the removal reads
|
|
16943
|
+
* an ABSENT field as "adoption pending" and refuses to start.
|
|
16944
|
+
*/
|
|
16945
|
+
adoptionPending: _null()
|
|
16960
16946
|
});
|
|
16961
16947
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16962
16948
|
var SecretRefsList = array(string());
|
|
@@ -17129,26 +17115,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
|
|
|
17129
17115
|
}), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
|
|
17130
17116
|
owner: string().min(1),
|
|
17131
17117
|
kind: RecordKindNameSchema
|
|
17132
|
-
}), RecordQueryResultSchema, { auth: "admin" })
|
|
17133
|
-
owner: string().min(1),
|
|
17134
|
-
kind: RecordKindNameSchema,
|
|
17135
|
-
records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
17136
|
-
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
17137
|
-
complete: boolean().optional()
|
|
17138
|
-
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
|
|
17139
|
-
kind: "mutation",
|
|
17140
|
-
auth: "admin"
|
|
17141
|
-
}), method(object({
|
|
17142
|
-
collection: string().min(1),
|
|
17143
|
-
cursor: string().optional(),
|
|
17144
|
-
limit: number().int().min(1).max(1e3).optional()
|
|
17145
|
-
}), object({
|
|
17146
|
-
rows: array(object({
|
|
17147
|
-
id: string(),
|
|
17148
|
-
data: record(string(), unknown())
|
|
17149
|
-
})),
|
|
17150
|
-
nextCursor: string().nullable()
|
|
17151
|
-
}), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
|
|
17118
|
+
}), RecordQueryResultSchema, { auth: "admin" });
|
|
17152
17119
|
/**
|
|
17153
17120
|
* record-entries - the ONE admin surface for every list of user-created entries
|
|
17154
17121
|
* (D881): notification targets, brokers, LLM profiles, anything an addon
|
|
@@ -58329,9 +58296,24 @@ var NpuInfoSchema = object({
|
|
|
58329
58296
|
name: string().optional(),
|
|
58330
58297
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
58331
58298
|
});
|
|
58299
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
58332
58300
|
var CoralInfoSchema = object({
|
|
58333
58301
|
type: literal("coral-edgetpu"),
|
|
58334
|
-
bus
|
|
58302
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
58303
|
+
bus: string().optional(),
|
|
58304
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
58305
|
+
count: number().int().nonnegative().optional(),
|
|
58306
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
58307
|
+
units: array(object({
|
|
58308
|
+
bus: CoralBusSchema,
|
|
58309
|
+
count: number().int().nonnegative()
|
|
58310
|
+
})).readonly().optional(),
|
|
58311
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
58312
|
+
unavailable: array(object({
|
|
58313
|
+
bus: CoralBusSchema,
|
|
58314
|
+
count: number().int().nonnegative(),
|
|
58315
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
58316
|
+
})).readonly().optional()
|
|
58335
58317
|
});
|
|
58336
58318
|
var HardwareInfoSchema = object({
|
|
58337
58319
|
platform: HardwarePlatformSchema,
|
|
@@ -64331,6 +64313,12 @@ Object.freeze({
|
|
|
64331
64313
|
addonId: null,
|
|
64332
64314
|
access: "view"
|
|
64333
64315
|
},
|
|
64316
|
+
"deviceHistory.queryMany": {
|
|
64317
|
+
capName: "device-history",
|
|
64318
|
+
capScope: "system",
|
|
64319
|
+
addonId: null,
|
|
64320
|
+
access: "view"
|
|
64321
|
+
},
|
|
64334
64322
|
"deviceHistory.queryNode": {
|
|
64335
64323
|
capName: "device-history",
|
|
64336
64324
|
capScope: "system",
|
|
@@ -69551,24 +69539,12 @@ Object.freeze({
|
|
|
69551
69539
|
addonId: null,
|
|
69552
69540
|
access: "create"
|
|
69553
69541
|
},
|
|
69554
|
-
"storageAdmin.adoptRecords": {
|
|
69555
|
-
capName: "storage-admin",
|
|
69556
|
-
capScope: "system",
|
|
69557
|
-
addonId: null,
|
|
69558
|
-
access: "create"
|
|
69559
|
-
},
|
|
69560
69542
|
"storageAdmin.dropCollection": {
|
|
69561
69543
|
capName: "storage-admin",
|
|
69562
69544
|
capScope: "system",
|
|
69563
69545
|
addonId: null,
|
|
69564
69546
|
access: "delete"
|
|
69565
69547
|
},
|
|
69566
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
69567
|
-
capName: "storage-admin",
|
|
69568
|
-
capScope: "system",
|
|
69569
|
-
addonId: null,
|
|
69570
|
-
access: "view"
|
|
69571
|
-
},
|
|
69572
69548
|
"storageAdmin.listKinds": {
|
|
69573
69549
|
capName: "storage-admin",
|
|
69574
69550
|
capScope: "system",
|
|
@@ -69581,12 +69557,6 @@ Object.freeze({
|
|
|
69581
69557
|
addonId: null,
|
|
69582
69558
|
access: "view"
|
|
69583
69559
|
},
|
|
69584
|
-
"storageAdmin.readLegacyCollection": {
|
|
69585
|
-
capName: "storage-admin",
|
|
69586
|
-
capScope: "system",
|
|
69587
|
-
addonId: null,
|
|
69588
|
-
access: "view"
|
|
69589
|
-
},
|
|
69590
69560
|
"storageAdmin.readRecords": {
|
|
69591
69561
|
capName: "storage-admin",
|
|
69592
69562
|
capScope: "system",
|
|
@@ -73401,12 +73371,6 @@ Object.freeze({
|
|
|
73401
73371
|
form: "single",
|
|
73402
73372
|
optional: false
|
|
73403
73373
|
}],
|
|
73404
|
-
"storageAdmin.adoptRecords": [{
|
|
73405
|
-
name: "records",
|
|
73406
|
-
form: "object-array",
|
|
73407
|
-
optional: false,
|
|
73408
|
-
itemField: "deviceId"
|
|
73409
|
-
}],
|
|
73410
73374
|
"storageAdmin.readRecords": [{
|
|
73411
73375
|
name: "deviceId",
|
|
73412
73376
|
form: "single",
|
|
@@ -107055,8 +107019,7 @@ var mqttBrokersEntryKind = defineEntryKind("brokers", {
|
|
|
107055
107019
|
clientIdPrefix: string().optional(),
|
|
107056
107020
|
onboard: mqttOnboardDescriptorSchema.optional()
|
|
107057
107021
|
}),
|
|
107058
|
-
writeTrigger: "an operator adds or removes an external MQTT broker entry"
|
|
107059
|
-
adoptsFrom: settingsBrokersAdoptsFrom("mqtt-broker")
|
|
107022
|
+
writeTrigger: "an operator adds or removes an external MQTT broker entry"
|
|
107060
107023
|
});
|
|
107061
107024
|
//#endregion
|
|
107062
107025
|
//#region src/mqtt-entry-record-kinds.ts
|
|
@@ -107069,8 +107032,7 @@ var MqttClientBodySchema = entryBody({ passwordHash: string() });
|
|
|
107069
107032
|
var mqttClientEntryKind = defineEntryKind("mqtt-client", {
|
|
107070
107033
|
title: "MQTT embedded clients",
|
|
107071
107034
|
schema: MqttClientBodySchema,
|
|
107072
|
-
writeTrigger: "an operator adds or removes an embedded MQTT client credential"
|
|
107073
|
-
adoptsFrom: settingsArrayAdoptsFrom("mqtt-broker", "embeddedClients")
|
|
107035
|
+
writeTrigger: "an operator adds or removes an embedded MQTT client credential"
|
|
107074
107036
|
});
|
|
107075
107037
|
var MqttAclBodySchema = entryBody({
|
|
107076
107038
|
username: string().min(1),
|
|
@@ -107080,8 +107042,7 @@ var MqttAclBodySchema = entryBody({
|
|
|
107080
107042
|
var mqttAclEntryKind = defineEntryKind("mqtt-acl-rule", {
|
|
107081
107043
|
title: "MQTT ACL rules",
|
|
107082
107044
|
schema: MqttAclBodySchema,
|
|
107083
|
-
writeTrigger: "an operator edits embedded broker ACL rules"
|
|
107084
|
-
adoptsFrom: settingsArrayAdoptsFrom("mqtt-broker", "embeddedAcl")
|
|
107045
|
+
writeTrigger: "an operator edits embedded broker ACL rules"
|
|
107085
107046
|
});
|
|
107086
107047
|
//#endregion
|
|
107087
107048
|
//#region src/mqtt-broker-store.ts
|
|
@@ -5587,7 +5587,7 @@ var ZodIssueCode = {
|
|
|
5587
5587
|
var ZodFirstPartyTypeKind;
|
|
5588
5588
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5589
5589
|
//#endregion
|
|
5590
|
-
//#region ../types/dist/sleep-
|
|
5590
|
+
//#region ../types/dist/sleep-CSuN0thG.mjs
|
|
5591
5591
|
/**
|
|
5592
5592
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5593
5593
|
* window to float samples (D455).
|
|
@@ -8205,7 +8205,13 @@ var RecordKindDeclarationSchema = object({
|
|
|
8205
8205
|
secretPaths: array(string().min(1)).default([]),
|
|
8206
8206
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
8207
8207
|
secretArrayKeys: record(string(), string()).default({}),
|
|
8208
|
-
/**
|
|
8208
|
+
/**
|
|
8209
|
+
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
8210
|
+
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
8211
|
+
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
8212
|
+
* (an orphaned kind is never redeclared) and an addon built before the
|
|
8213
|
+
* removal still sends it. Never set it.
|
|
8214
|
+
*/
|
|
8209
8215
|
adoptsFrom: string().min(1).optional(),
|
|
8210
8216
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
8211
8217
|
transactFamily: string().min(1).optional(),
|
|
@@ -8280,7 +8286,6 @@ function defineRecordKinds(specs) {
|
|
|
8280
8286
|
maxDataBytes: spec.maxDataBytes,
|
|
8281
8287
|
secretPaths: [...secretPaths],
|
|
8282
8288
|
secretArrayKeys: spec.secretArrayKeys === void 0 ? void 0 : { ...spec.secretArrayKeys },
|
|
8283
|
-
adoptsFrom: spec.adoptsFrom,
|
|
8284
8289
|
transactFamily: spec.transactFamily,
|
|
8285
8290
|
entry: spec.entry === void 0 ? void 0 : {
|
|
8286
8291
|
title: spec.entry.title,
|
|
@@ -8324,7 +8329,6 @@ function defineEntryKind(name, spec) {
|
|
|
8324
8329
|
...spec.database === void 0 ? {} : { database: spec.database },
|
|
8325
8330
|
...spec.indexes === void 0 ? {} : { indexes: spec.indexes },
|
|
8326
8331
|
...spec.secretArrayKeys === void 0 ? {} : { secretArrayKeys: spec.secretArrayKeys },
|
|
8327
|
-
...spec.adoptsFrom === void 0 ? {} : { adoptsFrom: spec.adoptsFrom },
|
|
8328
8332
|
entry: {
|
|
8329
8333
|
title: spec.title,
|
|
8330
8334
|
...spec.nameField === void 0 ? {} : { nameField: spec.nameField }
|
|
@@ -8333,25 +8337,6 @@ function defineEntryKind(name, spec) {
|
|
|
8333
8337
|
if (defined === void 0) throw new DeclarationRefusedError(`entry kind "${name}" was not built`);
|
|
8334
8338
|
return defined;
|
|
8335
8339
|
}
|
|
8336
|
-
/**
|
|
8337
|
-
* Legacy source for broker entry adoption (B2): brokers live in addon-settings
|
|
8338
|
-
* as one row `<addonId>.brokers` whose value is an array until records-adopt
|
|
8339
|
-
* copies them into the entry kind.
|
|
8340
|
-
*/
|
|
8341
|
-
var SETTINGS_BROKERS_ADOPTS_PREFIX = "@settings-brokers/";
|
|
8342
|
-
/** The `adoptsFrom` value for an addon's broker entry kind. */
|
|
8343
|
-
function settingsBrokersAdoptsFrom(addonId) {
|
|
8344
|
-
return `${SETTINGS_BROKERS_ADOPTS_PREFIX}${addonId}`;
|
|
8345
|
-
}
|
|
8346
|
-
/**
|
|
8347
|
-
* Legacy source for entry adoption (B3): a list stored under addon-settings
|
|
8348
|
-
* `<addonId>.<key>` until records-adopt copies rows into the entry kind.
|
|
8349
|
-
*/
|
|
8350
|
-
var SETTINGS_ARRAY_ADOPTS_PREFIX = "@settings-array/";
|
|
8351
|
-
/** The `adoptsFrom` value for an addon-settings array field. */
|
|
8352
|
-
function settingsArrayAdoptsFrom(addonId, settingsKey) {
|
|
8353
|
-
return `${SETTINGS_ARRAY_ADOPTS_PREFIX}${addonId}/${settingsKey}`;
|
|
8354
|
-
}
|
|
8355
8340
|
/** Shared Zod schemas used across streaming capabilities. */
|
|
8356
8341
|
var CamProfileSchema = _enum([
|
|
8357
8342
|
"high",
|
|
@@ -16945,11 +16930,12 @@ var DeclareKindResultSchema = object({
|
|
|
16945
16930
|
kindId: number().int(),
|
|
16946
16931
|
state: RecordKindStateSchema,
|
|
16947
16932
|
createdIndexes: array(string()),
|
|
16948
|
-
/**
|
|
16949
|
-
|
|
16950
|
-
|
|
16951
|
-
|
|
16952
|
-
|
|
16933
|
+
/**
|
|
16934
|
+
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
16935
|
+
* it stays on the wire, null, because an addon built before the removal reads
|
|
16936
|
+
* an ABSENT field as "adoption pending" and refuses to start.
|
|
16937
|
+
*/
|
|
16938
|
+
adoptionPending: _null()
|
|
16953
16939
|
});
|
|
16954
16940
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16955
16941
|
var SecretRefsList = array(string());
|
|
@@ -17122,26 +17108,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
|
|
|
17122
17108
|
}), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
|
|
17123
17109
|
owner: string().min(1),
|
|
17124
17110
|
kind: RecordKindNameSchema
|
|
17125
|
-
}), RecordQueryResultSchema, { auth: "admin" })
|
|
17126
|
-
owner: string().min(1),
|
|
17127
|
-
kind: RecordKindNameSchema,
|
|
17128
|
-
records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
17129
|
-
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
17130
|
-
complete: boolean().optional()
|
|
17131
|
-
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
|
|
17132
|
-
kind: "mutation",
|
|
17133
|
-
auth: "admin"
|
|
17134
|
-
}), method(object({
|
|
17135
|
-
collection: string().min(1),
|
|
17136
|
-
cursor: string().optional(),
|
|
17137
|
-
limit: number().int().min(1).max(1e3).optional()
|
|
17138
|
-
}), object({
|
|
17139
|
-
rows: array(object({
|
|
17140
|
-
id: string(),
|
|
17141
|
-
data: record(string(), unknown())
|
|
17142
|
-
})),
|
|
17143
|
-
nextCursor: string().nullable()
|
|
17144
|
-
}), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
|
|
17111
|
+
}), RecordQueryResultSchema, { auth: "admin" });
|
|
17145
17112
|
/**
|
|
17146
17113
|
* record-entries - the ONE admin surface for every list of user-created entries
|
|
17147
17114
|
* (D881): notification targets, brokers, LLM profiles, anything an addon
|
|
@@ -58322,9 +58289,24 @@ var NpuInfoSchema = object({
|
|
|
58322
58289
|
name: string().optional(),
|
|
58323
58290
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
58324
58291
|
});
|
|
58292
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
58325
58293
|
var CoralInfoSchema = object({
|
|
58326
58294
|
type: literal("coral-edgetpu"),
|
|
58327
|
-
bus
|
|
58295
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
58296
|
+
bus: string().optional(),
|
|
58297
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
58298
|
+
count: number().int().nonnegative().optional(),
|
|
58299
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
58300
|
+
units: array(object({
|
|
58301
|
+
bus: CoralBusSchema,
|
|
58302
|
+
count: number().int().nonnegative()
|
|
58303
|
+
})).readonly().optional(),
|
|
58304
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
58305
|
+
unavailable: array(object({
|
|
58306
|
+
bus: CoralBusSchema,
|
|
58307
|
+
count: number().int().nonnegative(),
|
|
58308
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
58309
|
+
})).readonly().optional()
|
|
58328
58310
|
});
|
|
58329
58311
|
var HardwareInfoSchema = object({
|
|
58330
58312
|
platform: HardwarePlatformSchema,
|
|
@@ -64324,6 +64306,12 @@ Object.freeze({
|
|
|
64324
64306
|
addonId: null,
|
|
64325
64307
|
access: "view"
|
|
64326
64308
|
},
|
|
64309
|
+
"deviceHistory.queryMany": {
|
|
64310
|
+
capName: "device-history",
|
|
64311
|
+
capScope: "system",
|
|
64312
|
+
addonId: null,
|
|
64313
|
+
access: "view"
|
|
64314
|
+
},
|
|
64327
64315
|
"deviceHistory.queryNode": {
|
|
64328
64316
|
capName: "device-history",
|
|
64329
64317
|
capScope: "system",
|
|
@@ -69544,24 +69532,12 @@ Object.freeze({
|
|
|
69544
69532
|
addonId: null,
|
|
69545
69533
|
access: "create"
|
|
69546
69534
|
},
|
|
69547
|
-
"storageAdmin.adoptRecords": {
|
|
69548
|
-
capName: "storage-admin",
|
|
69549
|
-
capScope: "system",
|
|
69550
|
-
addonId: null,
|
|
69551
|
-
access: "create"
|
|
69552
|
-
},
|
|
69553
69535
|
"storageAdmin.dropCollection": {
|
|
69554
69536
|
capName: "storage-admin",
|
|
69555
69537
|
capScope: "system",
|
|
69556
69538
|
addonId: null,
|
|
69557
69539
|
access: "delete"
|
|
69558
69540
|
},
|
|
69559
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
69560
|
-
capName: "storage-admin",
|
|
69561
|
-
capScope: "system",
|
|
69562
|
-
addonId: null,
|
|
69563
|
-
access: "view"
|
|
69564
|
-
},
|
|
69565
69541
|
"storageAdmin.listKinds": {
|
|
69566
69542
|
capName: "storage-admin",
|
|
69567
69543
|
capScope: "system",
|
|
@@ -69574,12 +69550,6 @@ Object.freeze({
|
|
|
69574
69550
|
addonId: null,
|
|
69575
69551
|
access: "view"
|
|
69576
69552
|
},
|
|
69577
|
-
"storageAdmin.readLegacyCollection": {
|
|
69578
|
-
capName: "storage-admin",
|
|
69579
|
-
capScope: "system",
|
|
69580
|
-
addonId: null,
|
|
69581
|
-
access: "view"
|
|
69582
|
-
},
|
|
69583
69553
|
"storageAdmin.readRecords": {
|
|
69584
69554
|
capName: "storage-admin",
|
|
69585
69555
|
capScope: "system",
|
|
@@ -73394,12 +73364,6 @@ Object.freeze({
|
|
|
73394
73364
|
form: "single",
|
|
73395
73365
|
optional: false
|
|
73396
73366
|
}],
|
|
73397
|
-
"storageAdmin.adoptRecords": [{
|
|
73398
|
-
name: "records",
|
|
73399
|
-
form: "object-array",
|
|
73400
|
-
optional: false,
|
|
73401
|
-
itemField: "deviceId"
|
|
73402
|
-
}],
|
|
73403
73367
|
"storageAdmin.readRecords": [{
|
|
73404
73368
|
name: "deviceId",
|
|
73405
73369
|
form: "single",
|
|
@@ -107048,8 +107012,7 @@ var mqttBrokersEntryKind = defineEntryKind("brokers", {
|
|
|
107048
107012
|
clientIdPrefix: string().optional(),
|
|
107049
107013
|
onboard: mqttOnboardDescriptorSchema.optional()
|
|
107050
107014
|
}),
|
|
107051
|
-
writeTrigger: "an operator adds or removes an external MQTT broker entry"
|
|
107052
|
-
adoptsFrom: settingsBrokersAdoptsFrom("mqtt-broker")
|
|
107015
|
+
writeTrigger: "an operator adds or removes an external MQTT broker entry"
|
|
107053
107016
|
});
|
|
107054
107017
|
//#endregion
|
|
107055
107018
|
//#region src/mqtt-entry-record-kinds.ts
|
|
@@ -107062,8 +107025,7 @@ var MqttClientBodySchema = entryBody({ passwordHash: string() });
|
|
|
107062
107025
|
var mqttClientEntryKind = defineEntryKind("mqtt-client", {
|
|
107063
107026
|
title: "MQTT embedded clients",
|
|
107064
107027
|
schema: MqttClientBodySchema,
|
|
107065
|
-
writeTrigger: "an operator adds or removes an embedded MQTT client credential"
|
|
107066
|
-
adoptsFrom: settingsArrayAdoptsFrom("mqtt-broker", "embeddedClients")
|
|
107028
|
+
writeTrigger: "an operator adds or removes an embedded MQTT client credential"
|
|
107067
107029
|
});
|
|
107068
107030
|
var MqttAclBodySchema = entryBody({
|
|
107069
107031
|
username: string().min(1),
|
|
@@ -107073,8 +107035,7 @@ var MqttAclBodySchema = entryBody({
|
|
|
107073
107035
|
var mqttAclEntryKind = defineEntryKind("mqtt-acl-rule", {
|
|
107074
107036
|
title: "MQTT ACL rules",
|
|
107075
107037
|
schema: MqttAclBodySchema,
|
|
107076
|
-
writeTrigger: "an operator edits embedded broker ACL rules"
|
|
107077
|
-
adoptsFrom: settingsArrayAdoptsFrom("mqtt-broker", "embeddedAcl")
|
|
107038
|
+
writeTrigger: "an operator edits embedded broker ACL rules"
|
|
107078
107039
|
});
|
|
107079
107040
|
//#endregion
|
|
107080
107041
|
//#region src/mqtt-broker-store.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-mqtt-broker",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.133",
|
|
4
4
|
"description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|