@camstack/addon-mqtt-broker 1.1.9 → 1.1.11
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 +90 -5
- package/dist/mqtt-broker.addon.mjs +90 -5
- package/package.json +1 -1
|
@@ -4673,7 +4673,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4673
4673
|
return inst;
|
|
4674
4674
|
}
|
|
4675
4675
|
//#endregion
|
|
4676
|
-
//#region ../types/dist/sleep-
|
|
4676
|
+
//#region ../types/dist/sleep-C2M2zF7x.mjs
|
|
4677
4677
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4678
4678
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4679
4679
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -6241,6 +6241,12 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
6241
6241
|
DeviceType["Switch"] = "switch";
|
|
6242
6242
|
DeviceType["Sensor"] = "sensor";
|
|
6243
6243
|
DeviceType["Thermostat"] = "thermostat";
|
|
6244
|
+
/** Air-conditioner / heat-pump climate device (HVAC) — shares the
|
|
6245
|
+
* `climate-control` cap surface with `Thermostat` but renders a
|
|
6246
|
+
* dedicated AC-appropriate control UI (mode chips, fan speed,
|
|
6247
|
+
* independent vertical/horizontal swing). Sources: native Gree, and
|
|
6248
|
+
* reusable by other AC integrations. */
|
|
6249
|
+
DeviceType["Climate"] = "climate";
|
|
6244
6250
|
DeviceType["Button"] = "button";
|
|
6245
6251
|
/** Generic stateless event emitter — carries a device's EXACT declared
|
|
6246
6252
|
* event vocabulary verbatim (no normalization). Installed with the
|
|
@@ -8395,7 +8401,7 @@ object({
|
|
|
8395
8401
|
/** Ms epoch when the slice was last updated (push or command). */
|
|
8396
8402
|
lastFetchedAt: number()
|
|
8397
8403
|
});
|
|
8398
|
-
DeviceType.Thermostat, method(object({
|
|
8404
|
+
DeviceType.Thermostat, DeviceType.Climate, method(object({
|
|
8399
8405
|
deviceId: number().int().nonnegative(),
|
|
8400
8406
|
mode: HvacModeSchema
|
|
8401
8407
|
}), _void(), {
|
|
@@ -11080,10 +11086,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
11080
11086
|
id: string(),
|
|
11081
11087
|
name: string(),
|
|
11082
11088
|
type: string()
|
|
11083
|
-
}))), method(object({}), boolean()), method(object({}), array(DiscoveryCandidateSchema), {
|
|
11089
|
+
}))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
|
|
11084
11090
|
kind: "mutation",
|
|
11085
11091
|
auth: "admin"
|
|
11086
|
-
}), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
|
|
11092
|
+
}), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
|
|
11087
11093
|
kind: "mutation",
|
|
11088
11094
|
auth: "admin"
|
|
11089
11095
|
}), method(object({}), boolean()), method(object({ type: _enum(DeviceType) }), CreationSchemaOutputSchema), method(object({
|
|
@@ -12853,7 +12859,10 @@ method(object({
|
|
|
12853
12859
|
}), FieldProbeResultSchema, {
|
|
12854
12860
|
kind: "mutation",
|
|
12855
12861
|
auth: "admin"
|
|
12856
|
-
}), method(
|
|
12862
|
+
}), method(object({
|
|
12863
|
+
addonId: string(),
|
|
12864
|
+
integrationId: string()
|
|
12865
|
+
}), object({ filters: array(AdoptionFilterSchema) }), { auth: "admin" }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
|
|
12857
12866
|
addonId: string(),
|
|
12858
12867
|
integrationId: string()
|
|
12859
12868
|
}), AdoptionStatusSchema, {
|
|
@@ -12868,7 +12877,24 @@ method(object({
|
|
|
12868
12877
|
}), method(ResyncInputSchema, ResyncResultSchema, {
|
|
12869
12878
|
kind: "mutation",
|
|
12870
12879
|
auth: "admin"
|
|
12880
|
+
}), method(object({}), object({ providers: array(object({
|
|
12881
|
+
addonId: string(),
|
|
12882
|
+
label: string()
|
|
12883
|
+
})).readonly() }), { auth: "admin" }), method(object({}), object({ groups: array(object({
|
|
12884
|
+
addonId: string(),
|
|
12885
|
+
label: string(),
|
|
12886
|
+
candidates: array(DiscoveryCandidateSchema).readonly(),
|
|
12887
|
+
error: string().nullable()
|
|
12888
|
+
})).readonly() }), {
|
|
12889
|
+
kind: "mutation",
|
|
12890
|
+
auth: "admin"
|
|
12871
12891
|
}), method(object({
|
|
12892
|
+
addonId: string(),
|
|
12893
|
+
params: record(string(), unknown()).optional()
|
|
12894
|
+
}), object({ candidates: array(DiscoveryCandidateSchema).readonly() }), {
|
|
12895
|
+
kind: "mutation",
|
|
12896
|
+
auth: "admin"
|
|
12897
|
+
}), method(object({ addonId: string() }), object({ deviceType: _enum(DeviceType).nullable() }), { auth: "admin" }), method(object({ addonId: string() }), unknown(), { auth: "admin" }), method(object({
|
|
12872
12898
|
deviceId: number(),
|
|
12873
12899
|
key: string(),
|
|
12874
12900
|
value: unknown()
|
|
@@ -15539,6 +15565,17 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
15539
15565
|
iconUrl: string().nullable(),
|
|
15540
15566
|
color: string(),
|
|
15541
15567
|
instanceMode: string(),
|
|
15568
|
+
/**
|
|
15569
|
+
* Integration wizard `mode` (LOCKED MODEL): `standalone` (create
|
|
15570
|
+
* immediately then add devices, no config step/button), `account` (config
|
|
15571
|
+
* step), or `broker` (broker step). Derived server-side by
|
|
15572
|
+
* `getAvailableTypes` when the addon manifest omits an explicit `mode`.
|
|
15573
|
+
*/
|
|
15574
|
+
mode: _enum([
|
|
15575
|
+
"standalone",
|
|
15576
|
+
"account",
|
|
15577
|
+
"broker"
|
|
15578
|
+
]),
|
|
15542
15579
|
discoveryMode: string(),
|
|
15543
15580
|
/**
|
|
15544
15581
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
@@ -17999,6 +18036,12 @@ Object.freeze({
|
|
|
17999
18036
|
addonId: null,
|
|
18000
18037
|
access: "create"
|
|
18001
18038
|
},
|
|
18039
|
+
"deviceManager.adoptionListCandidateFilters": {
|
|
18040
|
+
capName: "device-manager",
|
|
18041
|
+
capScope: "system",
|
|
18042
|
+
addonId: null,
|
|
18043
|
+
access: "view"
|
|
18044
|
+
},
|
|
18002
18045
|
"deviceManager.adoptionListCandidates": {
|
|
18003
18046
|
capName: "device-manager",
|
|
18004
18047
|
capScope: "system",
|
|
@@ -18047,12 +18090,30 @@ Object.freeze({
|
|
|
18047
18090
|
addonId: null,
|
|
18048
18091
|
access: "create"
|
|
18049
18092
|
},
|
|
18093
|
+
"deviceManager.discoverAllProviders": {
|
|
18094
|
+
capName: "device-manager",
|
|
18095
|
+
capScope: "system",
|
|
18096
|
+
addonId: null,
|
|
18097
|
+
access: "create"
|
|
18098
|
+
},
|
|
18050
18099
|
"deviceManager.discoverDevices": {
|
|
18051
18100
|
capName: "device-manager",
|
|
18052
18101
|
capScope: "system",
|
|
18053
18102
|
addonId: null,
|
|
18054
18103
|
access: "create"
|
|
18055
18104
|
},
|
|
18105
|
+
"deviceManager.discoverProvider": {
|
|
18106
|
+
capName: "device-manager",
|
|
18107
|
+
capScope: "system",
|
|
18108
|
+
addonId: null,
|
|
18109
|
+
access: "create"
|
|
18110
|
+
},
|
|
18111
|
+
"deviceManager.discoveryProviders": {
|
|
18112
|
+
capName: "device-manager",
|
|
18113
|
+
capScope: "system",
|
|
18114
|
+
addonId: null,
|
|
18115
|
+
access: "view"
|
|
18116
|
+
},
|
|
18056
18117
|
"deviceManager.enable": {
|
|
18057
18118
|
capName: "device-manager",
|
|
18058
18119
|
capScope: "system",
|
|
@@ -18203,6 +18264,18 @@ Object.freeze({
|
|
|
18203
18264
|
addonId: null,
|
|
18204
18265
|
access: "create"
|
|
18205
18266
|
},
|
|
18267
|
+
"deviceManager.providerCreationType": {
|
|
18268
|
+
capName: "device-manager",
|
|
18269
|
+
capScope: "system",
|
|
18270
|
+
addonId: null,
|
|
18271
|
+
access: "view"
|
|
18272
|
+
},
|
|
18273
|
+
"deviceManager.providerDiscoveryParamsSchema": {
|
|
18274
|
+
capName: "device-manager",
|
|
18275
|
+
capScope: "system",
|
|
18276
|
+
addonId: null,
|
|
18277
|
+
access: "view"
|
|
18278
|
+
},
|
|
18206
18279
|
"deviceManager.registerDevice": {
|
|
18207
18280
|
capName: "device-manager",
|
|
18208
18281
|
capScope: "system",
|
|
@@ -18419,6 +18492,18 @@ Object.freeze({
|
|
|
18419
18492
|
addonId: null,
|
|
18420
18493
|
access: "view"
|
|
18421
18494
|
},
|
|
18495
|
+
"deviceProvider.getDiscoveryParamsSchema": {
|
|
18496
|
+
capName: "device-provider",
|
|
18497
|
+
capScope: "system",
|
|
18498
|
+
addonId: null,
|
|
18499
|
+
access: "view"
|
|
18500
|
+
},
|
|
18501
|
+
"deviceProvider.getManualCreationType": {
|
|
18502
|
+
capName: "device-provider",
|
|
18503
|
+
capScope: "system",
|
|
18504
|
+
addonId: null,
|
|
18505
|
+
access: "view"
|
|
18506
|
+
},
|
|
18422
18507
|
"deviceProvider.getStatus": {
|
|
18423
18508
|
capName: "device-provider",
|
|
18424
18509
|
capScope: "system",
|
|
@@ -4668,7 +4668,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4668
4668
|
return inst;
|
|
4669
4669
|
}
|
|
4670
4670
|
//#endregion
|
|
4671
|
-
//#region ../types/dist/sleep-
|
|
4671
|
+
//#region ../types/dist/sleep-C2M2zF7x.mjs
|
|
4672
4672
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4673
4673
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4674
4674
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -6236,6 +6236,12 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
6236
6236
|
DeviceType["Switch"] = "switch";
|
|
6237
6237
|
DeviceType["Sensor"] = "sensor";
|
|
6238
6238
|
DeviceType["Thermostat"] = "thermostat";
|
|
6239
|
+
/** Air-conditioner / heat-pump climate device (HVAC) — shares the
|
|
6240
|
+
* `climate-control` cap surface with `Thermostat` but renders a
|
|
6241
|
+
* dedicated AC-appropriate control UI (mode chips, fan speed,
|
|
6242
|
+
* independent vertical/horizontal swing). Sources: native Gree, and
|
|
6243
|
+
* reusable by other AC integrations. */
|
|
6244
|
+
DeviceType["Climate"] = "climate";
|
|
6239
6245
|
DeviceType["Button"] = "button";
|
|
6240
6246
|
/** Generic stateless event emitter — carries a device's EXACT declared
|
|
6241
6247
|
* event vocabulary verbatim (no normalization). Installed with the
|
|
@@ -8390,7 +8396,7 @@ object({
|
|
|
8390
8396
|
/** Ms epoch when the slice was last updated (push or command). */
|
|
8391
8397
|
lastFetchedAt: number()
|
|
8392
8398
|
});
|
|
8393
|
-
DeviceType.Thermostat, method(object({
|
|
8399
|
+
DeviceType.Thermostat, DeviceType.Climate, method(object({
|
|
8394
8400
|
deviceId: number().int().nonnegative(),
|
|
8395
8401
|
mode: HvacModeSchema
|
|
8396
8402
|
}), _void(), {
|
|
@@ -11075,10 +11081,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
11075
11081
|
id: string(),
|
|
11076
11082
|
name: string(),
|
|
11077
11083
|
type: string()
|
|
11078
|
-
}))), method(object({}), boolean()), method(object({}), array(DiscoveryCandidateSchema), {
|
|
11084
|
+
}))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
|
|
11079
11085
|
kind: "mutation",
|
|
11080
11086
|
auth: "admin"
|
|
11081
|
-
}), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
|
|
11087
|
+
}), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
|
|
11082
11088
|
kind: "mutation",
|
|
11083
11089
|
auth: "admin"
|
|
11084
11090
|
}), method(object({}), boolean()), method(object({ type: _enum(DeviceType) }), CreationSchemaOutputSchema), method(object({
|
|
@@ -12848,7 +12854,10 @@ method(object({
|
|
|
12848
12854
|
}), FieldProbeResultSchema, {
|
|
12849
12855
|
kind: "mutation",
|
|
12850
12856
|
auth: "admin"
|
|
12851
|
-
}), method(
|
|
12857
|
+
}), method(object({
|
|
12858
|
+
addonId: string(),
|
|
12859
|
+
integrationId: string()
|
|
12860
|
+
}), object({ filters: array(AdoptionFilterSchema) }), { auth: "admin" }), method(ListCandidatesInputSchema.extend({ addonId: string() }), ListCandidatesOutputSchema, { auth: "admin" }), method(object({
|
|
12852
12861
|
addonId: string(),
|
|
12853
12862
|
integrationId: string()
|
|
12854
12863
|
}), AdoptionStatusSchema, {
|
|
@@ -12863,7 +12872,24 @@ method(object({
|
|
|
12863
12872
|
}), method(ResyncInputSchema, ResyncResultSchema, {
|
|
12864
12873
|
kind: "mutation",
|
|
12865
12874
|
auth: "admin"
|
|
12875
|
+
}), method(object({}), object({ providers: array(object({
|
|
12876
|
+
addonId: string(),
|
|
12877
|
+
label: string()
|
|
12878
|
+
})).readonly() }), { auth: "admin" }), method(object({}), object({ groups: array(object({
|
|
12879
|
+
addonId: string(),
|
|
12880
|
+
label: string(),
|
|
12881
|
+
candidates: array(DiscoveryCandidateSchema).readonly(),
|
|
12882
|
+
error: string().nullable()
|
|
12883
|
+
})).readonly() }), {
|
|
12884
|
+
kind: "mutation",
|
|
12885
|
+
auth: "admin"
|
|
12866
12886
|
}), method(object({
|
|
12887
|
+
addonId: string(),
|
|
12888
|
+
params: record(string(), unknown()).optional()
|
|
12889
|
+
}), object({ candidates: array(DiscoveryCandidateSchema).readonly() }), {
|
|
12890
|
+
kind: "mutation",
|
|
12891
|
+
auth: "admin"
|
|
12892
|
+
}), method(object({ addonId: string() }), object({ deviceType: _enum(DeviceType).nullable() }), { auth: "admin" }), method(object({ addonId: string() }), unknown(), { auth: "admin" }), method(object({
|
|
12867
12893
|
deviceId: number(),
|
|
12868
12894
|
key: string(),
|
|
12869
12895
|
value: unknown()
|
|
@@ -15534,6 +15560,17 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
15534
15560
|
iconUrl: string().nullable(),
|
|
15535
15561
|
color: string(),
|
|
15536
15562
|
instanceMode: string(),
|
|
15563
|
+
/**
|
|
15564
|
+
* Integration wizard `mode` (LOCKED MODEL): `standalone` (create
|
|
15565
|
+
* immediately then add devices, no config step/button), `account` (config
|
|
15566
|
+
* step), or `broker` (broker step). Derived server-side by
|
|
15567
|
+
* `getAvailableTypes` when the addon manifest omits an explicit `mode`.
|
|
15568
|
+
*/
|
|
15569
|
+
mode: _enum([
|
|
15570
|
+
"standalone",
|
|
15571
|
+
"account",
|
|
15572
|
+
"broker"
|
|
15573
|
+
]),
|
|
15537
15574
|
discoveryMode: string(),
|
|
15538
15575
|
/**
|
|
15539
15576
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
@@ -17994,6 +18031,12 @@ Object.freeze({
|
|
|
17994
18031
|
addonId: null,
|
|
17995
18032
|
access: "create"
|
|
17996
18033
|
},
|
|
18034
|
+
"deviceManager.adoptionListCandidateFilters": {
|
|
18035
|
+
capName: "device-manager",
|
|
18036
|
+
capScope: "system",
|
|
18037
|
+
addonId: null,
|
|
18038
|
+
access: "view"
|
|
18039
|
+
},
|
|
17997
18040
|
"deviceManager.adoptionListCandidates": {
|
|
17998
18041
|
capName: "device-manager",
|
|
17999
18042
|
capScope: "system",
|
|
@@ -18042,12 +18085,30 @@ Object.freeze({
|
|
|
18042
18085
|
addonId: null,
|
|
18043
18086
|
access: "create"
|
|
18044
18087
|
},
|
|
18088
|
+
"deviceManager.discoverAllProviders": {
|
|
18089
|
+
capName: "device-manager",
|
|
18090
|
+
capScope: "system",
|
|
18091
|
+
addonId: null,
|
|
18092
|
+
access: "create"
|
|
18093
|
+
},
|
|
18045
18094
|
"deviceManager.discoverDevices": {
|
|
18046
18095
|
capName: "device-manager",
|
|
18047
18096
|
capScope: "system",
|
|
18048
18097
|
addonId: null,
|
|
18049
18098
|
access: "create"
|
|
18050
18099
|
},
|
|
18100
|
+
"deviceManager.discoverProvider": {
|
|
18101
|
+
capName: "device-manager",
|
|
18102
|
+
capScope: "system",
|
|
18103
|
+
addonId: null,
|
|
18104
|
+
access: "create"
|
|
18105
|
+
},
|
|
18106
|
+
"deviceManager.discoveryProviders": {
|
|
18107
|
+
capName: "device-manager",
|
|
18108
|
+
capScope: "system",
|
|
18109
|
+
addonId: null,
|
|
18110
|
+
access: "view"
|
|
18111
|
+
},
|
|
18051
18112
|
"deviceManager.enable": {
|
|
18052
18113
|
capName: "device-manager",
|
|
18053
18114
|
capScope: "system",
|
|
@@ -18198,6 +18259,18 @@ Object.freeze({
|
|
|
18198
18259
|
addonId: null,
|
|
18199
18260
|
access: "create"
|
|
18200
18261
|
},
|
|
18262
|
+
"deviceManager.providerCreationType": {
|
|
18263
|
+
capName: "device-manager",
|
|
18264
|
+
capScope: "system",
|
|
18265
|
+
addonId: null,
|
|
18266
|
+
access: "view"
|
|
18267
|
+
},
|
|
18268
|
+
"deviceManager.providerDiscoveryParamsSchema": {
|
|
18269
|
+
capName: "device-manager",
|
|
18270
|
+
capScope: "system",
|
|
18271
|
+
addonId: null,
|
|
18272
|
+
access: "view"
|
|
18273
|
+
},
|
|
18201
18274
|
"deviceManager.registerDevice": {
|
|
18202
18275
|
capName: "device-manager",
|
|
18203
18276
|
capScope: "system",
|
|
@@ -18414,6 +18487,18 @@ Object.freeze({
|
|
|
18414
18487
|
addonId: null,
|
|
18415
18488
|
access: "view"
|
|
18416
18489
|
},
|
|
18490
|
+
"deviceProvider.getDiscoveryParamsSchema": {
|
|
18491
|
+
capName: "device-provider",
|
|
18492
|
+
capScope: "system",
|
|
18493
|
+
addonId: null,
|
|
18494
|
+
access: "view"
|
|
18495
|
+
},
|
|
18496
|
+
"deviceProvider.getManualCreationType": {
|
|
18497
|
+
capName: "device-provider",
|
|
18498
|
+
capScope: "system",
|
|
18499
|
+
addonId: null,
|
|
18500
|
+
access: "view"
|
|
18501
|
+
},
|
|
18417
18502
|
"deviceProvider.getStatus": {
|
|
18418
18503
|
capName: "device-provider",
|
|
18419
18504
|
capScope: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-mqtt-broker",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
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",
|