@camstack/types 1.1.11 → 1.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 +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/addons.cap.d.ts +3 -3
- package/dist/capabilities/climate-control.cap.d.ts +9 -9
- package/dist/capabilities/control.cap.d.ts +4 -4
- package/dist/capabilities/device-manager.cap.d.ts +70 -0
- package/dist/capabilities/device-provider.cap.d.ts +27 -3
- package/dist/capabilities/local-network.cap.d.ts +1 -1
- package/dist/capabilities/media-player.cap.d.ts +4 -4
- package/dist/capabilities/mesh-network.cap.d.ts +3 -3
- package/dist/capabilities/network-access.cap.d.ts +7 -7
- package/dist/capabilities/stream-broker.cap.d.ts +5 -5
- package/dist/capabilities/toast.cap.d.ts +2 -2
- package/dist/capabilities/webrtc-session.cap.d.ts +2 -2
- package/dist/device/base-device-provider.d.ts +17 -5
- package/dist/device/device-type.d.ts +6 -0
- package/dist/generated/addon-api.d.ts +220 -2
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +2 -2
- package/dist/index.js +131 -5
- package/dist/index.mjs +131 -5
- package/dist/interfaces/capability.d.ts +11 -11
- package/dist/lifecycle/job.d.ts +3 -3
- package/dist/{sleep-CKc4LLbD.js → sleep-BQzZ7joF.js} +6 -0
- package/dist/{sleep-B3AOslwX.mjs → sleep-C2M2zF7x.mjs} +6 -0
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_sleep = require("./sleep-BQzZ7joF.js");
|
|
3
3
|
const require_err_msg = require("./err-msg-COpsHMw2.js");
|
|
4
4
|
exports.BaseAddon = require_sleep.BaseAddon;
|
|
5
5
|
exports.DATAPLANE_SECRET_HEADER = require_sleep.DATAPLANE_SECRET_HEADER;
|
package/dist/addon.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as ReadinessRegistry, C as asJsonObject, O as parseJsonUnknown, P as scopeKey, T as asString, a as adminUiCapability, b as DeviceType, gt as DisposerChain, ht as EventCategory, i as deviceOpsCapability, j as ReadinessTimeoutError, k as DATAPLANE_SECRET_HEADER, o as createDeviceProxy, ot as BaseAddon, p as expandCapMethods, st as normalizeAddonInitResult, t as sleep, ut as emitReadiness } from "./sleep-
|
|
1
|
+
import { A as ReadinessRegistry, C as asJsonObject, O as parseJsonUnknown, P as scopeKey, T as asString, a as adminUiCapability, b as DeviceType, gt as DisposerChain, ht as EventCategory, i as deviceOpsCapability, j as ReadinessTimeoutError, k as DATAPLANE_SECRET_HEADER, o as createDeviceProxy, ot as BaseAddon, p as expandCapMethods, st as normalizeAddonInitResult, t as sleep, ut as emitReadiness } from "./sleep-C2M2zF7x.mjs";
|
|
2
2
|
import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
|
|
3
3
|
export { BaseAddon, DATAPLANE_SECRET_HEADER, DeviceType, DisposerChain, EventCategory, ReadinessRegistry, ReadinessTimeoutError, adminUiCapability, asJsonObject, asString, createDeviceProxy, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods, normalizeAddonInitResult, parseJsonUnknown, scopeKey, sleep };
|
|
@@ -409,8 +409,8 @@ export declare const addonsCapability: {
|
|
|
409
409
|
readonly getLastRestart: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodNullable<z.ZodObject<{
|
|
410
410
|
kind: z.ZodEnum<{
|
|
411
411
|
system: "system";
|
|
412
|
-
manual: "manual";
|
|
413
412
|
"framework-update": "framework-update";
|
|
413
|
+
manual: "manual";
|
|
414
414
|
"framework-bulk-update": "framework-bulk-update";
|
|
415
415
|
}>;
|
|
416
416
|
packageName: z.ZodOptional<z.ZodString>;
|
|
@@ -631,8 +631,8 @@ export declare const addonsCapability: {
|
|
|
631
631
|
fromVersion: z.ZodNullable<z.ZodString>;
|
|
632
632
|
toVersion: z.ZodString;
|
|
633
633
|
target: z.ZodEnum<{
|
|
634
|
-
addon: "addon";
|
|
635
634
|
framework: "framework";
|
|
635
|
+
addon: "addon";
|
|
636
636
|
}>;
|
|
637
637
|
phase: z.ZodEnum<{
|
|
638
638
|
failed: "failed";
|
|
@@ -707,8 +707,8 @@ export declare const addonsCapability: {
|
|
|
707
707
|
fromVersion: z.ZodNullable<z.ZodString>;
|
|
708
708
|
toVersion: z.ZodString;
|
|
709
709
|
target: z.ZodEnum<{
|
|
710
|
-
addon: "addon";
|
|
711
710
|
framework: "framework";
|
|
711
|
+
addon: "addon";
|
|
712
712
|
}>;
|
|
713
713
|
phase: z.ZodEnum<{
|
|
714
714
|
failed: "failed";
|
|
@@ -33,8 +33,8 @@ import { DeviceType } from '../device/device-type.js';
|
|
|
33
33
|
* — any climate device (not just Gree) can advertise either / both axes.
|
|
34
34
|
*/
|
|
35
35
|
export declare const HvacModeSchema: z.ZodEnum<{
|
|
36
|
-
auto: "auto";
|
|
37
36
|
off: "off";
|
|
37
|
+
auto: "auto";
|
|
38
38
|
heat: "heat";
|
|
39
39
|
cool: "cool";
|
|
40
40
|
heat_cool: "heat_cool";
|
|
@@ -44,8 +44,8 @@ export declare const HvacModeSchema: z.ZodEnum<{
|
|
|
44
44
|
export type HvacMode = z.infer<typeof HvacModeSchema>;
|
|
45
45
|
export declare const ClimateControlStatusSchema: z.ZodObject<{
|
|
46
46
|
mode: z.ZodEnum<{
|
|
47
|
-
auto: "auto";
|
|
48
47
|
off: "off";
|
|
48
|
+
auto: "auto";
|
|
49
49
|
heat: "heat";
|
|
50
50
|
cool: "cool";
|
|
51
51
|
heat_cool: "heat_cool";
|
|
@@ -53,8 +53,8 @@ export declare const ClimateControlStatusSchema: z.ZodObject<{
|
|
|
53
53
|
dry: "dry";
|
|
54
54
|
}>;
|
|
55
55
|
availableModes: z.ZodArray<z.ZodEnum<{
|
|
56
|
-
auto: "auto";
|
|
57
56
|
off: "off";
|
|
57
|
+
auto: "auto";
|
|
58
58
|
heat: "heat";
|
|
59
59
|
cool: "cool";
|
|
60
60
|
heat_cool: "heat_cool";
|
|
@@ -81,13 +81,13 @@ export declare const climateControlCapability: {
|
|
|
81
81
|
readonly scope: "device";
|
|
82
82
|
readonly deviceNative: true;
|
|
83
83
|
readonly mode: "singleton";
|
|
84
|
-
readonly deviceTypes: readonly [DeviceType.Thermostat];
|
|
84
|
+
readonly deviceTypes: readonly [DeviceType.Thermostat, DeviceType.Climate];
|
|
85
85
|
readonly methods: {
|
|
86
86
|
readonly setMode: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
87
87
|
deviceId: z.ZodNumber;
|
|
88
88
|
mode: z.ZodEnum<{
|
|
89
|
-
auto: "auto";
|
|
90
89
|
off: "off";
|
|
90
|
+
auto: "auto";
|
|
91
91
|
heat: "heat";
|
|
92
92
|
cool: "cool";
|
|
93
93
|
heat_cool: "heat_cool";
|
|
@@ -128,8 +128,8 @@ export declare const climateControlCapability: {
|
|
|
128
128
|
readonly status: {
|
|
129
129
|
readonly schema: z.ZodObject<{
|
|
130
130
|
mode: z.ZodEnum<{
|
|
131
|
-
auto: "auto";
|
|
132
131
|
off: "off";
|
|
132
|
+
auto: "auto";
|
|
133
133
|
heat: "heat";
|
|
134
134
|
cool: "cool";
|
|
135
135
|
heat_cool: "heat_cool";
|
|
@@ -137,8 +137,8 @@ export declare const climateControlCapability: {
|
|
|
137
137
|
dry: "dry";
|
|
138
138
|
}>;
|
|
139
139
|
availableModes: z.ZodArray<z.ZodEnum<{
|
|
140
|
-
auto: "auto";
|
|
141
140
|
off: "off";
|
|
141
|
+
auto: "auto";
|
|
142
142
|
heat: "heat";
|
|
143
143
|
cool: "cool";
|
|
144
144
|
heat_cool: "heat_cool";
|
|
@@ -168,8 +168,8 @@ export declare const climateControlCapability: {
|
|
|
168
168
|
*/
|
|
169
169
|
readonly runtimeState: z.ZodObject<{
|
|
170
170
|
mode: z.ZodEnum<{
|
|
171
|
-
auto: "auto";
|
|
172
171
|
off: "off";
|
|
172
|
+
auto: "auto";
|
|
173
173
|
heat: "heat";
|
|
174
174
|
cool: "cool";
|
|
175
175
|
heat_cool: "heat_cool";
|
|
@@ -177,8 +177,8 @@ export declare const climateControlCapability: {
|
|
|
177
177
|
dry: "dry";
|
|
178
178
|
}>;
|
|
179
179
|
availableModes: z.ZodArray<z.ZodEnum<{
|
|
180
|
-
auto: "auto";
|
|
181
180
|
off: "off";
|
|
181
|
+
auto: "auto";
|
|
182
182
|
heat: "heat";
|
|
183
183
|
cool: "cool";
|
|
184
184
|
heat_cool: "heat_cool";
|
|
@@ -27,8 +27,8 @@ import { DeviceType } from '../device/device-type.js';
|
|
|
27
27
|
export declare const ControlKindSchema: z.ZodEnum<{
|
|
28
28
|
text: "text";
|
|
29
29
|
select: "select";
|
|
30
|
-
datetime: "datetime";
|
|
31
30
|
numeric: "numeric";
|
|
31
|
+
datetime: "datetime";
|
|
32
32
|
}>;
|
|
33
33
|
export type ControlKind = z.infer<typeof ControlKindSchema>;
|
|
34
34
|
/**
|
|
@@ -55,8 +55,8 @@ export declare const ControlStatusSchema: z.ZodObject<{
|
|
|
55
55
|
kind: z.ZodEnum<{
|
|
56
56
|
text: "text";
|
|
57
57
|
select: "select";
|
|
58
|
-
datetime: "datetime";
|
|
59
58
|
numeric: "numeric";
|
|
59
|
+
datetime: "datetime";
|
|
60
60
|
}>;
|
|
61
61
|
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
62
62
|
options: z.ZodArray<z.ZodString>;
|
|
@@ -116,8 +116,8 @@ export declare const controlCapability: {
|
|
|
116
116
|
kind: z.ZodEnum<{
|
|
117
117
|
text: "text";
|
|
118
118
|
select: "select";
|
|
119
|
-
datetime: "datetime";
|
|
120
119
|
numeric: "numeric";
|
|
120
|
+
datetime: "datetime";
|
|
121
121
|
}>;
|
|
122
122
|
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
123
123
|
options: z.ZodArray<z.ZodString>;
|
|
@@ -144,8 +144,8 @@ export declare const controlCapability: {
|
|
|
144
144
|
kind: z.ZodEnum<{
|
|
145
145
|
text: "text";
|
|
146
146
|
select: "select";
|
|
147
|
-
datetime: "datetime";
|
|
148
147
|
numeric: "numeric";
|
|
148
|
+
datetime: "datetime";
|
|
149
149
|
}>;
|
|
150
150
|
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
151
151
|
options: z.ZodArray<z.ZodString>;
|
|
@@ -1075,6 +1075,18 @@ export declare const deviceManagerCapability: {
|
|
|
1075
1075
|
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1076
1076
|
error: z.ZodOptional<z.ZodString>;
|
|
1077
1077
|
}, z.core.$strip>, "mutation">;
|
|
1078
|
+
/** List candidate filter chips for an integration via its device-adoption
|
|
1079
|
+
* provider — addonId-routed so it never hits the singleton shadow. */
|
|
1080
|
+
readonly adoptionListCandidateFilters: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1081
|
+
addonId: z.ZodString;
|
|
1082
|
+
integrationId: z.ZodString;
|
|
1083
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1084
|
+
filters: z.ZodArray<z.ZodObject<{
|
|
1085
|
+
id: z.ZodString;
|
|
1086
|
+
label: z.ZodString;
|
|
1087
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
1088
|
+
}, z.core.$strip>>;
|
|
1089
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
1078
1090
|
/** List adoption candidates for an integration via its device-adoption provider. */
|
|
1079
1091
|
readonly adoptionListCandidates: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1080
1092
|
integrationId: z.ZodString;
|
|
@@ -1143,6 +1155,64 @@ export declare const deviceManagerCapability: {
|
|
|
1143
1155
|
rebuiltChildren: z.ZodNumber;
|
|
1144
1156
|
removedChildren: z.ZodOptional<z.ZodNumber>;
|
|
1145
1157
|
}, z.core.$strip>, "mutation">;
|
|
1158
|
+
/** Addons whose device-provider reports `supportsDiscovery` (for the modal). */
|
|
1159
|
+
readonly discoveryProviders: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
1160
|
+
providers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1161
|
+
addonId: z.ZodString;
|
|
1162
|
+
label: z.ZodString;
|
|
1163
|
+
}, z.core.$strip>>>;
|
|
1164
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
1165
|
+
/** Scan EVERY discovery-capable provider; returns candidates grouped by addon. */
|
|
1166
|
+
readonly discoverAllProviders: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
1167
|
+
groups: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1168
|
+
addonId: z.ZodString;
|
|
1169
|
+
label: z.ZodString;
|
|
1170
|
+
candidates: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1171
|
+
stableId: z.ZodString;
|
|
1172
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
1173
|
+
suggestedName: z.ZodString;
|
|
1174
|
+
prefilledConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1175
|
+
sourceInfo: z.ZodOptional<z.ZodObject<{
|
|
1176
|
+
id: z.ZodString;
|
|
1177
|
+
system: z.ZodString;
|
|
1178
|
+
uniqueId: z.ZodOptional<z.ZodString>;
|
|
1179
|
+
raw: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1180
|
+
}, z.core.$strip>>;
|
|
1181
|
+
}, z.core.$strip>>>;
|
|
1182
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1183
|
+
}, z.core.$strip>>>;
|
|
1184
|
+
}, z.core.$strip>, "mutation">;
|
|
1185
|
+
/** Scan ONE provider with optional provider-specific params (subnet /
|
|
1186
|
+
* broadcast addr) — the per-integration "Scan network" surface. */
|
|
1187
|
+
readonly discoverProvider: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1188
|
+
addonId: z.ZodString;
|
|
1189
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1191
|
+
candidates: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1192
|
+
stableId: z.ZodString;
|
|
1193
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
1194
|
+
suggestedName: z.ZodString;
|
|
1195
|
+
prefilledConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1196
|
+
sourceInfo: z.ZodOptional<z.ZodObject<{
|
|
1197
|
+
id: z.ZodString;
|
|
1198
|
+
system: z.ZodString;
|
|
1199
|
+
uniqueId: z.ZodOptional<z.ZodString>;
|
|
1200
|
+
raw: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1201
|
+
}, z.core.$strip>>;
|
|
1202
|
+
}, z.core.$strip>>>;
|
|
1203
|
+
}, z.core.$strip>, "mutation">;
|
|
1204
|
+
/** The device type a provider creates via manual add (Camera/Container/Hub),
|
|
1205
|
+
* so the Add-Device dialog uses the right type instead of assuming Camera. */
|
|
1206
|
+
readonly providerCreationType: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1207
|
+
addonId: z.ZodString;
|
|
1208
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1209
|
+
deviceType: z.ZodNullable<z.ZodEnum<typeof DeviceType>>;
|
|
1210
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
1211
|
+
/** A provider's extra per-scan param form (ConfigUISchema) for the
|
|
1212
|
+
* per-integration scan, or null when it takes none. */
|
|
1213
|
+
readonly providerDiscoveryParamsSchema: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1214
|
+
addonId: z.ZodString;
|
|
1215
|
+
}, z.core.$strip>, z.ZodUnknown, import("./capability-definition.js").CapabilityMethodKind>;
|
|
1146
1216
|
/**
|
|
1147
1217
|
* Test a field value on an existing device (e.g. probe an RTSP URL).
|
|
1148
1218
|
* Routes through the device-provider for the owning addon.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { type InferProvider } from './capability-definition.js';
|
|
3
2
|
import { DeviceType } from '../device/device-type.js';
|
|
3
|
+
import { type InferProvider } from './capability-definition.js';
|
|
4
4
|
declare const ProviderStatusSchema: z.ZodObject<{
|
|
5
5
|
connected: z.ZodBoolean;
|
|
6
6
|
deviceCount: z.ZodNumber;
|
|
@@ -83,7 +83,15 @@ export declare const deviceProviderCapability: {
|
|
|
83
83
|
type: z.ZodString;
|
|
84
84
|
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
85
85
|
readonly supportsDiscovery: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodBoolean, import("./capability-definition.js").CapabilityMethodKind>;
|
|
86
|
-
|
|
86
|
+
/**
|
|
87
|
+
* Run a network scan. `params` carries optional provider-specific scan
|
|
88
|
+
* inputs (e.g. a broadcast address / subnet for cross-subnet discovery),
|
|
89
|
+
* shaped by `getDiscoveryParamsSchema`. Omitted for the generic scan
|
|
90
|
+
* (provider uses its local-network default).
|
|
91
|
+
*/
|
|
92
|
+
readonly discoverDevices: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
93
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
94
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
87
95
|
stableId: z.ZodString;
|
|
88
96
|
type: z.ZodEnum<typeof DeviceType>;
|
|
89
97
|
suggestedName: z.ZodString;
|
|
@@ -95,6 +103,22 @@ export declare const deviceProviderCapability: {
|
|
|
95
103
|
raw: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
96
104
|
}, z.core.$strip>>;
|
|
97
105
|
}, z.core.$strip>>, "mutation">;
|
|
106
|
+
/**
|
|
107
|
+
* Optional form schema (`ConfigUISchema`) for the EXTRA per-scan inputs a
|
|
108
|
+
* provider accepts (e.g. Gree's broadcast address for a different subnet).
|
|
109
|
+
* `null` when the provider takes no extra scan params — the generic
|
|
110
|
+
* aggregated scan never renders this; the per-integration scan does.
|
|
111
|
+
*/
|
|
112
|
+
readonly getDiscoveryParamsSchema: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodUnknown, import("./capability-definition.js").CapabilityMethodKind>;
|
|
113
|
+
/**
|
|
114
|
+
* The DeviceType this provider creates via manual add (Camera for
|
|
115
|
+
* Reolink/ONVIF, Container for Gree, Hub for Ecowitt). `null` when the
|
|
116
|
+
* provider does not support manual creation. Lets the Add-Device dialog
|
|
117
|
+
* pick the right type instead of assuming Camera.
|
|
118
|
+
*/
|
|
119
|
+
readonly getManualCreationType: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
120
|
+
deviceType: z.ZodNullable<z.ZodEnum<typeof DeviceType>>;
|
|
121
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
98
122
|
readonly adoptDiscoveredDevice: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
99
123
|
candidate: z.ZodObject<{
|
|
100
124
|
stableId: z.ZodString;
|
|
@@ -183,4 +207,4 @@ export declare const deviceProviderCapability: {
|
|
|
183
207
|
};
|
|
184
208
|
};
|
|
185
209
|
export type IDeviceProvider = InferProvider<typeof deviceProviderCapability>;
|
|
186
|
-
export {
|
|
210
|
+
export { DeviceSummarySchema, DiscoveredDeviceSchema, DiscoveryCandidateSchema, FieldProbeResultSchema, ProviderStatusSchema, };
|
|
@@ -153,8 +153,8 @@ export declare const localNetworkCapability: {
|
|
|
153
153
|
includeLoopback: z.ZodOptional<z.ZodBoolean>;
|
|
154
154
|
ipv4Only: z.ZodOptional<z.ZodBoolean>;
|
|
155
155
|
scheme: z.ZodOptional<z.ZodEnum<{
|
|
156
|
-
http: "http";
|
|
157
156
|
https: "https";
|
|
157
|
+
http: "http";
|
|
158
158
|
}>>;
|
|
159
159
|
}, z.core.$strip>, z.ZodObject<{
|
|
160
160
|
endpoints: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -17,8 +17,8 @@ export declare const MediaPlayerStateSchema: z.ZodEnum<{
|
|
|
17
17
|
idle: "idle";
|
|
18
18
|
playing: "playing";
|
|
19
19
|
off: "off";
|
|
20
|
-
paused: "paused";
|
|
21
20
|
on: "on";
|
|
21
|
+
paused: "paused";
|
|
22
22
|
buffering: "buffering";
|
|
23
23
|
standby: "standby";
|
|
24
24
|
}>;
|
|
@@ -42,8 +42,8 @@ export declare const MediaPlayerStatusSchema: z.ZodObject<{
|
|
|
42
42
|
idle: "idle";
|
|
43
43
|
playing: "playing";
|
|
44
44
|
off: "off";
|
|
45
|
-
paused: "paused";
|
|
46
45
|
on: "on";
|
|
46
|
+
paused: "paused";
|
|
47
47
|
buffering: "buffering";
|
|
48
48
|
standby: "standby";
|
|
49
49
|
}>;
|
|
@@ -131,8 +131,8 @@ export declare const mediaPlayerCapability: {
|
|
|
131
131
|
idle: "idle";
|
|
132
132
|
playing: "playing";
|
|
133
133
|
off: "off";
|
|
134
|
-
paused: "paused";
|
|
135
134
|
on: "on";
|
|
135
|
+
paused: "paused";
|
|
136
136
|
buffering: "buffering";
|
|
137
137
|
standby: "standby";
|
|
138
138
|
}>;
|
|
@@ -169,8 +169,8 @@ export declare const mediaPlayerCapability: {
|
|
|
169
169
|
idle: "idle";
|
|
170
170
|
playing: "playing";
|
|
171
171
|
off: "off";
|
|
172
|
-
paused: "paused";
|
|
173
172
|
on: "on";
|
|
173
|
+
paused: "paused";
|
|
174
174
|
buffering: "buffering";
|
|
175
175
|
standby: "standby";
|
|
176
176
|
}>;
|
|
@@ -34,8 +34,8 @@ declare const MeshEndpointSchema: z.ZodObject<{
|
|
|
34
34
|
hostname: z.ZodString;
|
|
35
35
|
port: z.ZodNumber;
|
|
36
36
|
protocol: z.ZodEnum<{
|
|
37
|
-
http: "http";
|
|
38
37
|
https: "https";
|
|
38
|
+
http: "http";
|
|
39
39
|
}>;
|
|
40
40
|
}, z.core.$strip>;
|
|
41
41
|
export type MeshEndpoint = z.infer<typeof MeshEndpointSchema>;
|
|
@@ -80,8 +80,8 @@ export declare const MeshStatusSchema: z.ZodObject<{
|
|
|
80
80
|
hostname: z.ZodString;
|
|
81
81
|
port: z.ZodNumber;
|
|
82
82
|
protocol: z.ZodEnum<{
|
|
83
|
-
http: "http";
|
|
84
83
|
https: "https";
|
|
84
|
+
http: "http";
|
|
85
85
|
}>;
|
|
86
86
|
}, z.core.$strip>>>;
|
|
87
87
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -123,8 +123,8 @@ export declare const meshNetworkCapability: {
|
|
|
123
123
|
hostname: z.ZodString;
|
|
124
124
|
port: z.ZodNumber;
|
|
125
125
|
protocol: z.ZodEnum<{
|
|
126
|
-
http: "http";
|
|
127
126
|
https: "https";
|
|
127
|
+
http: "http";
|
|
128
128
|
}>;
|
|
129
129
|
}, z.core.$strip>>>;
|
|
130
130
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -5,8 +5,8 @@ declare const NetworkEndpointSchema: z.ZodObject<{
|
|
|
5
5
|
hostname: z.ZodString;
|
|
6
6
|
port: z.ZodNumber;
|
|
7
7
|
protocol: z.ZodEnum<{
|
|
8
|
-
http: "http";
|
|
9
8
|
https: "https";
|
|
9
|
+
http: "http";
|
|
10
10
|
}>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
declare const NetworkAccessStatusSchema: z.ZodObject<{
|
|
@@ -16,8 +16,8 @@ declare const NetworkAccessStatusSchema: z.ZodObject<{
|
|
|
16
16
|
hostname: z.ZodString;
|
|
17
17
|
port: z.ZodNumber;
|
|
18
18
|
protocol: z.ZodEnum<{
|
|
19
|
-
http: "http";
|
|
20
19
|
https: "https";
|
|
20
|
+
http: "http";
|
|
21
21
|
}>;
|
|
22
22
|
}, z.core.$strip>>;
|
|
23
23
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -37,8 +37,8 @@ declare const NetworkEndpointEntrySchema: z.ZodObject<{
|
|
|
37
37
|
hostname: z.ZodString;
|
|
38
38
|
port: z.ZodNumber;
|
|
39
39
|
protocol: z.ZodEnum<{
|
|
40
|
-
http: "http";
|
|
41
40
|
https: "https";
|
|
41
|
+
http: "http";
|
|
42
42
|
}>;
|
|
43
43
|
id: z.ZodString;
|
|
44
44
|
label: z.ZodString;
|
|
@@ -56,8 +56,8 @@ export declare const networkAccessCapability: {
|
|
|
56
56
|
hostname: z.ZodString;
|
|
57
57
|
port: z.ZodNumber;
|
|
58
58
|
protocol: z.ZodEnum<{
|
|
59
|
-
http: "http";
|
|
60
59
|
https: "https";
|
|
60
|
+
http: "http";
|
|
61
61
|
}>;
|
|
62
62
|
}, z.core.$strip>, "mutation">;
|
|
63
63
|
readonly stop: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodVoid, "mutation">;
|
|
@@ -66,8 +66,8 @@ export declare const networkAccessCapability: {
|
|
|
66
66
|
hostname: z.ZodString;
|
|
67
67
|
port: z.ZodNumber;
|
|
68
68
|
protocol: z.ZodEnum<{
|
|
69
|
-
http: "http";
|
|
70
69
|
https: "https";
|
|
70
|
+
http: "http";
|
|
71
71
|
}>;
|
|
72
72
|
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
73
73
|
readonly getStatus: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
@@ -77,8 +77,8 @@ export declare const networkAccessCapability: {
|
|
|
77
77
|
hostname: z.ZodString;
|
|
78
78
|
port: z.ZodNumber;
|
|
79
79
|
protocol: z.ZodEnum<{
|
|
80
|
-
http: "http";
|
|
81
80
|
https: "https";
|
|
81
|
+
http: "http";
|
|
82
82
|
}>;
|
|
83
83
|
}, z.core.$strip>>;
|
|
84
84
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -93,8 +93,8 @@ export declare const networkAccessCapability: {
|
|
|
93
93
|
hostname: z.ZodString;
|
|
94
94
|
port: z.ZodNumber;
|
|
95
95
|
protocol: z.ZodEnum<{
|
|
96
|
-
http: "http";
|
|
97
96
|
https: "https";
|
|
97
|
+
http: "http";
|
|
98
98
|
}>;
|
|
99
99
|
id: z.ZodString;
|
|
100
100
|
label: z.ZodString;
|
|
@@ -41,6 +41,7 @@ export declare const BrokerAudioClientSchema: z.ZodObject<{
|
|
|
41
41
|
*/
|
|
42
42
|
export declare const BrokerConsumerKindSchema: z.ZodEnum<{
|
|
43
43
|
unknown: "unknown";
|
|
44
|
+
snapshot: "snapshot";
|
|
44
45
|
alexa: "alexa";
|
|
45
46
|
homekit: "homekit";
|
|
46
47
|
"webrtc-browser": "webrtc-browser";
|
|
@@ -50,13 +51,13 @@ export declare const BrokerConsumerKindSchema: z.ZodEnum<{
|
|
|
50
51
|
"derived-broker": "derived-broker";
|
|
51
52
|
recording: "recording";
|
|
52
53
|
pipeline: "pipeline";
|
|
53
|
-
snapshot: "snapshot";
|
|
54
54
|
warmup: "warmup";
|
|
55
55
|
}>;
|
|
56
56
|
export type BrokerConsumerKind = z.infer<typeof BrokerConsumerKindSchema>;
|
|
57
57
|
export declare const BrokerConsumerAttributionSchema: z.ZodReadonly<z.ZodObject<{
|
|
58
58
|
kind: z.ZodEnum<{
|
|
59
59
|
unknown: "unknown";
|
|
60
|
+
snapshot: "snapshot";
|
|
60
61
|
alexa: "alexa";
|
|
61
62
|
homekit: "homekit";
|
|
62
63
|
"webrtc-browser": "webrtc-browser";
|
|
@@ -66,7 +67,6 @@ export declare const BrokerConsumerAttributionSchema: z.ZodReadonly<z.ZodObject<
|
|
|
66
67
|
"derived-broker": "derived-broker";
|
|
67
68
|
recording: "recording";
|
|
68
69
|
pipeline: "pipeline";
|
|
69
|
-
snapshot: "snapshot";
|
|
70
70
|
warmup: "warmup";
|
|
71
71
|
}>;
|
|
72
72
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -97,6 +97,7 @@ export declare const BrokerEncodedClientSchema: z.ZodObject<{
|
|
|
97
97
|
attribution: z.ZodReadonly<z.ZodObject<{
|
|
98
98
|
kind: z.ZodEnum<{
|
|
99
99
|
unknown: "unknown";
|
|
100
|
+
snapshot: "snapshot";
|
|
100
101
|
alexa: "alexa";
|
|
101
102
|
homekit: "homekit";
|
|
102
103
|
"webrtc-browser": "webrtc-browser";
|
|
@@ -106,7 +107,6 @@ export declare const BrokerEncodedClientSchema: z.ZodObject<{
|
|
|
106
107
|
"derived-broker": "derived-broker";
|
|
107
108
|
recording: "recording";
|
|
108
109
|
pipeline: "pipeline";
|
|
109
|
-
snapshot: "snapshot";
|
|
110
110
|
warmup: "warmup";
|
|
111
111
|
}>;
|
|
112
112
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -162,6 +162,7 @@ export declare const BrokerClientsSchema: z.ZodObject<{
|
|
|
162
162
|
attribution: z.ZodReadonly<z.ZodObject<{
|
|
163
163
|
kind: z.ZodEnum<{
|
|
164
164
|
unknown: "unknown";
|
|
165
|
+
snapshot: "snapshot";
|
|
165
166
|
alexa: "alexa";
|
|
166
167
|
homekit: "homekit";
|
|
167
168
|
"webrtc-browser": "webrtc-browser";
|
|
@@ -171,7 +172,6 @@ export declare const BrokerClientsSchema: z.ZodObject<{
|
|
|
171
172
|
"derived-broker": "derived-broker";
|
|
172
173
|
recording: "recording";
|
|
173
174
|
pipeline: "pipeline";
|
|
174
|
-
snapshot: "snapshot";
|
|
175
175
|
warmup: "warmup";
|
|
176
176
|
}>;
|
|
177
177
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -502,6 +502,7 @@ export declare const streamBrokerCapability: {
|
|
|
502
502
|
attribution: z.ZodReadonly<z.ZodObject<{
|
|
503
503
|
kind: z.ZodEnum<{
|
|
504
504
|
unknown: "unknown";
|
|
505
|
+
snapshot: "snapshot";
|
|
505
506
|
alexa: "alexa";
|
|
506
507
|
homekit: "homekit";
|
|
507
508
|
"webrtc-browser": "webrtc-browser";
|
|
@@ -511,7 +512,6 @@ export declare const streamBrokerCapability: {
|
|
|
511
512
|
"derived-broker": "derived-broker";
|
|
512
513
|
recording: "recording";
|
|
513
514
|
pipeline: "pipeline";
|
|
514
|
-
snapshot: "snapshot";
|
|
515
515
|
warmup: "warmup";
|
|
516
516
|
}>;
|
|
517
517
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -21,8 +21,8 @@ declare const ToastSchema: z.ZodObject<{
|
|
|
21
21
|
message: z.ZodString;
|
|
22
22
|
severity: z.ZodEnum<{
|
|
23
23
|
info: "info";
|
|
24
|
-
warning: "warning";
|
|
25
24
|
critical: "critical";
|
|
25
|
+
warning: "warning";
|
|
26
26
|
}>;
|
|
27
27
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
28
28
|
action: z.ZodOptional<z.ZodObject<{
|
|
@@ -40,8 +40,8 @@ export declare const toastCapability: {
|
|
|
40
40
|
message: z.ZodString;
|
|
41
41
|
severity: z.ZodEnum<{
|
|
42
42
|
info: "info";
|
|
43
|
-
warning: "warning";
|
|
44
43
|
critical: "critical";
|
|
44
|
+
warning: "warning";
|
|
45
45
|
}>;
|
|
46
46
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
47
47
|
action: z.ZodOptional<z.ZodObject<{
|
|
@@ -160,6 +160,7 @@ export declare const webrtcSessionCapability: {
|
|
|
160
160
|
consumerAttribution: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
161
161
|
kind: z.ZodEnum<{
|
|
162
162
|
unknown: "unknown";
|
|
163
|
+
snapshot: "snapshot";
|
|
163
164
|
alexa: "alexa";
|
|
164
165
|
homekit: "homekit";
|
|
165
166
|
"webrtc-browser": "webrtc-browser";
|
|
@@ -169,7 +170,6 @@ export declare const webrtcSessionCapability: {
|
|
|
169
170
|
"derived-broker": "derived-broker";
|
|
170
171
|
recording: "recording";
|
|
171
172
|
pipeline: "pipeline";
|
|
172
|
-
snapshot: "snapshot";
|
|
173
173
|
warmup: "warmup";
|
|
174
174
|
}>;
|
|
175
175
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -231,6 +231,7 @@ export declare const webrtcSessionCapability: {
|
|
|
231
231
|
consumerAttribution: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
232
232
|
kind: z.ZodEnum<{
|
|
233
233
|
unknown: "unknown";
|
|
234
|
+
snapshot: "snapshot";
|
|
234
235
|
alexa: "alexa";
|
|
235
236
|
homekit: "homekit";
|
|
236
237
|
"webrtc-browser": "webrtc-browser";
|
|
@@ -240,7 +241,6 @@ export declare const webrtcSessionCapability: {
|
|
|
240
241
|
"derived-broker": "derived-broker";
|
|
241
242
|
recording: "recording";
|
|
242
243
|
pipeline: "pipeline";
|
|
243
|
-
snapshot: "snapshot";
|
|
244
244
|
warmup: "warmup";
|
|
245
245
|
}>;
|
|
246
246
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
import { BaseAddon } from '../addon/base-addon.js';
|
|
1
2
|
import type { ProviderRegistration } from '../interfaces/addon.js';
|
|
2
3
|
import type { ConfigUISchema } from '../interfaces/config-ui.js';
|
|
3
|
-
import type { SavedDevice } from './device-management.js';
|
|
4
4
|
import type { IDevice } from './device.js';
|
|
5
|
-
import { BaseAddon } from '../addon/base-addon.js';
|
|
6
|
-
import { DeviceType } from './device-type.js';
|
|
7
|
-
import type { CreateDeviceSpec } from './device-management.js';
|
|
8
5
|
import type { DeviceConstructor } from './device-context.js';
|
|
6
|
+
import type { CreateDeviceSpec, SavedDevice } from './device-management.js';
|
|
7
|
+
import { DeviceType } from './device-type.js';
|
|
9
8
|
import type { SourceInfo } from './source-info.js';
|
|
10
9
|
export interface DiscoveryCandidate {
|
|
11
10
|
readonly stableId: string;
|
|
@@ -93,7 +92,20 @@ export declare abstract class BaseDeviceProvider<TConfig extends object = Record
|
|
|
93
92
|
type: string;
|
|
94
93
|
}>>;
|
|
95
94
|
supportsDiscovery(): Promise<boolean>;
|
|
96
|
-
discoverDevices(
|
|
95
|
+
discoverDevices(_input?: {
|
|
96
|
+
params?: Record<string, unknown>;
|
|
97
|
+
}): Promise<readonly DiscoveryCandidate[]>;
|
|
98
|
+
/** Extra per-scan input form (e.g. a broadcast address for another subnet).
|
|
99
|
+
* Null = no extra params. Override in providers that support scoped scans. */
|
|
100
|
+
getDiscoveryParamsSchema(): Promise<ConfigUISchema | null>;
|
|
101
|
+
/**
|
|
102
|
+
* The DeviceType this provider creates via manual add — derived from the
|
|
103
|
+
* `deviceClasses` map (first registered type). `null` when manual creation is
|
|
104
|
+
* unsupported. Lets the Add-Device dialog pick the right type per provider.
|
|
105
|
+
*/
|
|
106
|
+
getManualCreationType(): Promise<{
|
|
107
|
+
deviceType: DeviceType | null;
|
|
108
|
+
}>;
|
|
97
109
|
adoptDiscoveredDevice(_input: {
|
|
98
110
|
candidate: DiscoveryCandidate;
|
|
99
111
|
}): Promise<DeviceSummary>;
|
|
@@ -6,6 +6,12 @@ export declare enum DeviceType {
|
|
|
6
6
|
Switch = "switch",
|
|
7
7
|
Sensor = "sensor",
|
|
8
8
|
Thermostat = "thermostat",
|
|
9
|
+
/** Air-conditioner / heat-pump climate device (HVAC) — shares the
|
|
10
|
+
* `climate-control` cap surface with `Thermostat` but renders a
|
|
11
|
+
* dedicated AC-appropriate control UI (mode chips, fan speed,
|
|
12
|
+
* independent vertical/horizontal swing). Sources: native Gree, and
|
|
13
|
+
* reusable by other AC integrations. */
|
|
14
|
+
Climate = "climate",
|
|
9
15
|
Button = "button",
|
|
10
16
|
/** Generic stateless event emitter — carries a device's EXACT declared
|
|
11
17
|
* event vocabulary verbatim (no normalization). Installed with the
|