@camstack/addon-export-google 0.1.131 → 0.1.132
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/CHANGELOG.md +6 -0
- package/dist/export-google.addon.js +30 -10
- package/dist/export-google.addon.mjs +30 -10
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.132] - 2026-11-08
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Its integration-instances provider declares its instance kind and stamps it on every instance.
|
|
15
|
+
|
|
10
16
|
## [0.1.131] - 2026-11-08
|
|
11
17
|
|
|
12
18
|
### Changed
|
|
@@ -6084,7 +6084,7 @@ var ZodIssueCode = {
|
|
|
6084
6084
|
var ZodFirstPartyTypeKind;
|
|
6085
6085
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6086
6086
|
//#endregion
|
|
6087
|
-
//#region ../types/dist/sleep-
|
|
6087
|
+
//#region ../types/dist/sleep-CGPZyzB5.mjs
|
|
6088
6088
|
/**
|
|
6089
6089
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6090
6090
|
* window to float samples (D455).
|
|
@@ -7300,6 +7300,7 @@ var RecordIntegrationInstances = class {
|
|
|
7300
7300
|
this.secretKeys = topLevelSecretKeys(kind.declaration.secretPaths);
|
|
7301
7301
|
this.secretMaps = secretMapKeys(kind.declaration.secretPaths);
|
|
7302
7302
|
this.nameField = kind.declaration.entry?.nameField ?? "name";
|
|
7303
|
+
if (hooks.kindOf === void 0 && hooks.description.kinds.length !== 1) throw new Error(`record kind '${kind.name}': describe().kinds has ${hooks.description.kinds.length} entries, so kindOf is required to say which one an instance is`);
|
|
7303
7304
|
}
|
|
7304
7305
|
/**
|
|
7305
7306
|
* One instance read for the addon's own runtime; null when absent. When the keychain is
|
|
@@ -7341,10 +7342,21 @@ var RecordIntegrationInstances = class {
|
|
|
7341
7342
|
}
|
|
7342
7343
|
return out;
|
|
7343
7344
|
}
|
|
7345
|
+
/** The kind an instance body is of: the provider's `kindOf`, else its one declared kind. */
|
|
7346
|
+
kindOfBody(body) {
|
|
7347
|
+
if (this.hooks.kindOf !== void 0) {
|
|
7348
|
+
const id = this.hooks.kindOf(body);
|
|
7349
|
+
if (!this.hooks.description.kinds.some((declared) => declared.id === id)) throw new Error(`record kind '${this.kind.name}': kindOf returned '${id}', which describe().kinds does not declare (D1013)`);
|
|
7350
|
+
return id;
|
|
7351
|
+
}
|
|
7352
|
+
const only = this.hooks.description.kinds[0];
|
|
7353
|
+
if (only === void 0) throw new Error(`record kind '${this.kind.name}' declares no kinds`);
|
|
7354
|
+
return only.id;
|
|
7355
|
+
}
|
|
7344
7356
|
viewOf(record) {
|
|
7345
7357
|
const shown = secretViewsOf(this.records.owner, this.kind.name, record.id, this.kind.declaration, record.data);
|
|
7346
7358
|
const rawName = record.data[this.nameField];
|
|
7347
|
-
const kind = this.
|
|
7359
|
+
const kind = this.kindOfBody(record.data);
|
|
7348
7360
|
const health = this.hooks.health?.(record.data, record.id);
|
|
7349
7361
|
return {
|
|
7350
7362
|
id: record.id,
|
|
@@ -7352,7 +7364,7 @@ var RecordIntegrationInstances = class {
|
|
|
7352
7364
|
configured: this.hooks.configured(record.data),
|
|
7353
7365
|
enabled: isInstanceEnabled(record.data),
|
|
7354
7366
|
formValues: shown,
|
|
7355
|
-
|
|
7367
|
+
kind,
|
|
7356
7368
|
...health?.status !== void 0 ? { status: health.status } : {},
|
|
7357
7369
|
...health?.lastCheckedAt !== void 0 ? { lastCheckedAt: health.lastCheckedAt } : {}
|
|
7358
7370
|
};
|
|
@@ -49062,7 +49074,7 @@ DeviceType.MediaPlayer, method(deviceOnly, _void(), {
|
|
|
49062
49074
|
kind: "mutation",
|
|
49063
49075
|
auth: "protected"
|
|
49064
49076
|
});
|
|
49065
|
-
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Heater, DeviceType.Dryer, DeviceType.Gateway, DeviceType.Camera, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Gateway, DeviceType.Hub, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder, DeviceType.Heater;
|
|
49077
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Heater, DeviceType.Dryer, DeviceType.Gateway, DeviceType.Camera, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Gateway, DeviceType.Hub, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.MediaPlayer;
|
|
49066
49078
|
var NUMBER = {
|
|
49067
49079
|
kind: "fixed",
|
|
49068
49080
|
result: ["number"]
|
|
@@ -54841,10 +54853,11 @@ var IntegrationInstanceDescriptionSchema = object({
|
|
|
54841
54853
|
/** True when `testInstance` really probes the remote. */
|
|
54842
54854
|
canTest: boolean(),
|
|
54843
54855
|
/**
|
|
54844
|
-
* The kinds an instance can be of
|
|
54845
|
-
* Add flow asks which first and sends it as
|
|
54856
|
+
* The kinds an instance can be of (D1013 rule 1), each naming its `functionCap`. One entry:
|
|
54857
|
+
* nothing to choose; more than one: the Add flow asks which first and sends it as
|
|
54858
|
+
* `createInstance.kind`. Never empty: every instance belongs to exactly one kind.
|
|
54846
54859
|
*/
|
|
54847
|
-
kinds: array(IntegrationInstanceKindSchema).
|
|
54860
|
+
kinds: array(IntegrationInstanceKindSchema).min(1),
|
|
54848
54861
|
/**
|
|
54849
54862
|
* The provider accepts `createInstance.id` for an id that once existed (an adopted id, because
|
|
54850
54863
|
* devices carry it). The UI then offers "restore under its old id" on Add. Absent means no.
|
|
@@ -54880,8 +54893,8 @@ var IntegrationInstanceSchema = object({
|
|
|
54880
54893
|
* the body is the one store, `setInstanceEnabled` the one writer (epic #440, step 3).
|
|
54881
54894
|
*/
|
|
54882
54895
|
enabled: boolean().optional(),
|
|
54883
|
-
/** The kind of this instance
|
|
54884
|
-
kind: string().
|
|
54896
|
+
/** The kind of this instance: exactly one of `describe().kinds[].id` (D1013 rule 2). */
|
|
54897
|
+
kind: string().min(1),
|
|
54885
54898
|
/** Values for the instance form; a secret is a `SecretFieldView`, never text. */
|
|
54886
54899
|
formValues: record(string(), unknown()),
|
|
54887
54900
|
status: IntegrationInstanceStatusSchema.optional(),
|
|
@@ -71834,6 +71847,7 @@ var RemoteLayoutComponentSchema = object({
|
|
|
71834
71847
|
});
|
|
71835
71848
|
});
|
|
71836
71849
|
method(object({}), array(RemoteLayoutComponentSchema), { auth: "protected" });
|
|
71850
|
+
DeviceType.MediaPlayer;
|
|
71837
71851
|
var RunningStateSourceSchema = _enum(["native", "assigned"]);
|
|
71838
71852
|
object({
|
|
71839
71853
|
/** null = unknown — never coerced to false (D393). */
|
|
@@ -93155,7 +93169,13 @@ var ExportGoogleAddon = class extends BaseAddon {
|
|
|
93155
93169
|
role: "services",
|
|
93156
93170
|
instanceMode: "multiple",
|
|
93157
93171
|
kind: "homes",
|
|
93158
|
-
canTest: false
|
|
93172
|
+
canTest: false,
|
|
93173
|
+
kinds: [{
|
|
93174
|
+
id: "homes",
|
|
93175
|
+
label: "Google Home",
|
|
93176
|
+
functionCap: "device-export",
|
|
93177
|
+
role: "services"
|
|
93178
|
+
}]
|
|
93159
93179
|
},
|
|
93160
93180
|
formSchema: (id) => this.homeForm(id),
|
|
93161
93181
|
initialBody: (name) => ({ name }),
|
|
@@ -6080,7 +6080,7 @@ var ZodIssueCode = {
|
|
|
6080
6080
|
var ZodFirstPartyTypeKind;
|
|
6081
6081
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6082
6082
|
//#endregion
|
|
6083
|
-
//#region ../types/dist/sleep-
|
|
6083
|
+
//#region ../types/dist/sleep-CGPZyzB5.mjs
|
|
6084
6084
|
/**
|
|
6085
6085
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6086
6086
|
* window to float samples (D455).
|
|
@@ -7296,6 +7296,7 @@ var RecordIntegrationInstances = class {
|
|
|
7296
7296
|
this.secretKeys = topLevelSecretKeys(kind.declaration.secretPaths);
|
|
7297
7297
|
this.secretMaps = secretMapKeys(kind.declaration.secretPaths);
|
|
7298
7298
|
this.nameField = kind.declaration.entry?.nameField ?? "name";
|
|
7299
|
+
if (hooks.kindOf === void 0 && hooks.description.kinds.length !== 1) throw new Error(`record kind '${kind.name}': describe().kinds has ${hooks.description.kinds.length} entries, so kindOf is required to say which one an instance is`);
|
|
7299
7300
|
}
|
|
7300
7301
|
/**
|
|
7301
7302
|
* One instance read for the addon's own runtime; null when absent. When the keychain is
|
|
@@ -7337,10 +7338,21 @@ var RecordIntegrationInstances = class {
|
|
|
7337
7338
|
}
|
|
7338
7339
|
return out;
|
|
7339
7340
|
}
|
|
7341
|
+
/** The kind an instance body is of: the provider's `kindOf`, else its one declared kind. */
|
|
7342
|
+
kindOfBody(body) {
|
|
7343
|
+
if (this.hooks.kindOf !== void 0) {
|
|
7344
|
+
const id = this.hooks.kindOf(body);
|
|
7345
|
+
if (!this.hooks.description.kinds.some((declared) => declared.id === id)) throw new Error(`record kind '${this.kind.name}': kindOf returned '${id}', which describe().kinds does not declare (D1013)`);
|
|
7346
|
+
return id;
|
|
7347
|
+
}
|
|
7348
|
+
const only = this.hooks.description.kinds[0];
|
|
7349
|
+
if (only === void 0) throw new Error(`record kind '${this.kind.name}' declares no kinds`);
|
|
7350
|
+
return only.id;
|
|
7351
|
+
}
|
|
7340
7352
|
viewOf(record) {
|
|
7341
7353
|
const shown = secretViewsOf(this.records.owner, this.kind.name, record.id, this.kind.declaration, record.data);
|
|
7342
7354
|
const rawName = record.data[this.nameField];
|
|
7343
|
-
const kind = this.
|
|
7355
|
+
const kind = this.kindOfBody(record.data);
|
|
7344
7356
|
const health = this.hooks.health?.(record.data, record.id);
|
|
7345
7357
|
return {
|
|
7346
7358
|
id: record.id,
|
|
@@ -7348,7 +7360,7 @@ var RecordIntegrationInstances = class {
|
|
|
7348
7360
|
configured: this.hooks.configured(record.data),
|
|
7349
7361
|
enabled: isInstanceEnabled(record.data),
|
|
7350
7362
|
formValues: shown,
|
|
7351
|
-
|
|
7363
|
+
kind,
|
|
7352
7364
|
...health?.status !== void 0 ? { status: health.status } : {},
|
|
7353
7365
|
...health?.lastCheckedAt !== void 0 ? { lastCheckedAt: health.lastCheckedAt } : {}
|
|
7354
7366
|
};
|
|
@@ -49058,7 +49070,7 @@ DeviceType.MediaPlayer, method(deviceOnly, _void(), {
|
|
|
49058
49070
|
kind: "mutation",
|
|
49059
49071
|
auth: "protected"
|
|
49060
49072
|
});
|
|
49061
|
-
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Heater, DeviceType.Dryer, DeviceType.Gateway, DeviceType.Camera, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Gateway, DeviceType.Hub, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder, DeviceType.Heater;
|
|
49073
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Heater, DeviceType.Dryer, DeviceType.Gateway, DeviceType.Camera, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Gateway, DeviceType.Hub, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.MediaPlayer;
|
|
49062
49074
|
var NUMBER = {
|
|
49063
49075
|
kind: "fixed",
|
|
49064
49076
|
result: ["number"]
|
|
@@ -54837,10 +54849,11 @@ var IntegrationInstanceDescriptionSchema = object({
|
|
|
54837
54849
|
/** True when `testInstance` really probes the remote. */
|
|
54838
54850
|
canTest: boolean(),
|
|
54839
54851
|
/**
|
|
54840
|
-
* The kinds an instance can be of
|
|
54841
|
-
* Add flow asks which first and sends it as
|
|
54852
|
+
* The kinds an instance can be of (D1013 rule 1), each naming its `functionCap`. One entry:
|
|
54853
|
+
* nothing to choose; more than one: the Add flow asks which first and sends it as
|
|
54854
|
+
* `createInstance.kind`. Never empty: every instance belongs to exactly one kind.
|
|
54842
54855
|
*/
|
|
54843
|
-
kinds: array(IntegrationInstanceKindSchema).
|
|
54856
|
+
kinds: array(IntegrationInstanceKindSchema).min(1),
|
|
54844
54857
|
/**
|
|
54845
54858
|
* The provider accepts `createInstance.id` for an id that once existed (an adopted id, because
|
|
54846
54859
|
* devices carry it). The UI then offers "restore under its old id" on Add. Absent means no.
|
|
@@ -54876,8 +54889,8 @@ var IntegrationInstanceSchema = object({
|
|
|
54876
54889
|
* the body is the one store, `setInstanceEnabled` the one writer (epic #440, step 3).
|
|
54877
54890
|
*/
|
|
54878
54891
|
enabled: boolean().optional(),
|
|
54879
|
-
/** The kind of this instance
|
|
54880
|
-
kind: string().
|
|
54892
|
+
/** The kind of this instance: exactly one of `describe().kinds[].id` (D1013 rule 2). */
|
|
54893
|
+
kind: string().min(1),
|
|
54881
54894
|
/** Values for the instance form; a secret is a `SecretFieldView`, never text. */
|
|
54882
54895
|
formValues: record(string(), unknown()),
|
|
54883
54896
|
status: IntegrationInstanceStatusSchema.optional(),
|
|
@@ -71830,6 +71843,7 @@ var RemoteLayoutComponentSchema = object({
|
|
|
71830
71843
|
});
|
|
71831
71844
|
});
|
|
71832
71845
|
method(object({}), array(RemoteLayoutComponentSchema), { auth: "protected" });
|
|
71846
|
+
DeviceType.MediaPlayer;
|
|
71833
71847
|
var RunningStateSourceSchema = _enum(["native", "assigned"]);
|
|
71834
71848
|
object({
|
|
71835
71849
|
/** null = unknown — never coerced to false (D393). */
|
|
@@ -93151,7 +93165,13 @@ var ExportGoogleAddon = class extends BaseAddon {
|
|
|
93151
93165
|
role: "services",
|
|
93152
93166
|
instanceMode: "multiple",
|
|
93153
93167
|
kind: "homes",
|
|
93154
|
-
canTest: false
|
|
93168
|
+
canTest: false,
|
|
93169
|
+
kinds: [{
|
|
93170
|
+
id: "homes",
|
|
93171
|
+
label: "Google Home",
|
|
93172
|
+
functionCap: "device-export",
|
|
93173
|
+
role: "services"
|
|
93174
|
+
}]
|
|
93155
93175
|
},
|
|
93156
93176
|
formSchema: (id) => this.homeForm(id),
|
|
93157
93177
|
initialBody: (name) => ({ name }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-google",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.132",
|
|
4
4
|
"description": "Google Home Export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
}
|
|
62
62
|
],
|
|
63
63
|
"requires": {
|
|
64
|
-
"server": ">=1.2.
|
|
64
|
+
"server": ">=1.2.810"
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"files": [
|