export namespace AthomCloudAPI { export class Device { id: string; } export class Homey { id: string; authenticate(opts?: { strategy?: string | Array }): Promise; } export class StorageAdapter { get(): Promise; set(value: object): Promise; } export class StorageAdapterBrowser extends StorageAdapter { get(): Promise; set(value: object): Promise; } export class StorageAdapterMemory extends StorageAdapter { get(): Promise; set(value: object): Promise; } export class Token { token_type: string; access_token: string; refresh_token: string; expires_in: number; grant_type: string; } export class User { id: string; getHomeys(): Array; getHomeyById(id: string): AthomCloudAPI.Homey; getFirstHomey(): AthomCloudAPI.Homey; } } export namespace HomeyAPIV2.ManagerAlarms { export class Alarm extends HomeyAPIV3Local.ManagerAlarms.Alarm { id: string; name: string; time: string; enabled: boolean; nextOccurance: string; repetition: object; } } export namespace HomeyAPIV2.ManagerApps { export class App extends HomeyAPIV3Local.ManagerApps.App { enabled: boolean; autoupdate: boolean; id: string; sdk: number; name: string; origin: string; channel: string; version: string; compatibility: string; icon: string; iconObj: object; author: object; permissions: Array; images: object; session: string; ready: boolean; state: string; crashed: boolean; crashedMessage: string; exitCode: number; exitSignal: string; exitCount: number; settings: boolean; brandColor: string; hasDrivers: boolean; usage: object; updateAvailable: object; color: string; crashedCount: number; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } } export namespace HomeyAPIV2.ManagerDashboards { export class AppWidget extends HomeyAPIV3Local.ManagerDashboards.AppWidget { id: string; ownerId: string; ownerUri: string; ownerName: string; name: string; settings: object; devices: object; height: number | string; transparent: boolean; deprecated: boolean; } export class Dashboard extends HomeyAPIV3Local.ManagerDashboards.Dashboard { id: string; name: string; columns: Array; } export class WidgetStore extends HomeyAPIV3Local.ManagerDashboards .WidgetStore { id: string; ownerUri: string; state: object; } } export namespace HomeyAPIV2.ManagerDevices { export class Capability extends HomeyAPIV3Local.ManagerDevices.Capability { id: string; uri: string; title: string; desc: string; type: string; getable: boolean; setable: boolean; chartType: string; decimals: number; min: number; max: number; step: number; units: string; values: Array; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } export class Device extends HomeyAPIV3Local.ManagerDevices.Device { id: string; name: string; driverUri: string; driverId: string; zone: string; data: object; icon: string; iconObj: object; iconOverride: string | null; settings: object; settingsObj: boolean; class: string; energy: object; energyObj: object; virtualClass: string | null; ui: object; uiIndicator: string | null; capabilities: Array; capabilitiesObj: object; capabilitiesOptions: object; flags: Array; ready: boolean; available: boolean; repair: boolean; unpair: boolean; unavailableMessage: string; images: Array; insights: Array; color: string; note: string; ownerUri: string; warningMessage: string | null; lastSeenAt: string | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } } export namespace HomeyAPIV2.ManagerDrivers { export class Driver extends HomeyAPIV3Local.ManagerDrivers.Driver { id: string; uri: string; uriObj: object; icon: string; iconObj: object; ready: boolean; pair: boolean; unpair: boolean; repair: boolean; color: string; deprecated: boolean; class: string; connectivity: Array; ownerUri: string; ownerName: string; ownerIconObj: object; name: string; userPath: string | null; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } export class PairSession extends HomeyAPIV3Local.ManagerDrivers.PairSession { id: string; type: string; driverId: string; driverUri: string; deviceId: string; zoneId: string; views: Array; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } } export namespace HomeyAPIV2.ManagerFlow { export class AdvancedFlow extends HomeyAPIV3Local.ManagerFlow.AdvancedFlow { id: string; name: string; enabled: boolean; broken: boolean; triggerable: boolean; folder: string | null; cards: object; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } export class Flow extends HomeyAPIV3Local.ManagerFlow.Flow { id: string; name: string; enabled: boolean; folder: string | null; order: number; broken: boolean; triggerable: boolean; trigger: object; conditions: Array; actions: Array; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } export class FlowCardAction extends HomeyAPIV3Local.ManagerFlow .FlowCardAction { uri: string; id: string; args: object; deprecated: boolean; droptoken: boolean; duration: boolean; uriObj: object; advanced: boolean; title: string; hint: string; highlight: boolean; tokens: Array; ownerId: string; ownerUri: string; ownerName: string; titleFormatted: string | null; durationMin: number | null; durationMax: number | null; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } export class FlowCardCondition extends HomeyAPIV3Local.ManagerFlow .FlowCardCondition { uri: string; id: string; args: object; deprecated: boolean; droptoken: boolean; duration: boolean; uriObj: object; advanced: boolean; title: string; hint: string; highlight: boolean; ownerId: string; ownerUri: string; ownerName: string; titleFormatted: string | null; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } export class FlowCardTrigger extends HomeyAPIV3Local.ManagerFlow .FlowCardTrigger { uri: string; id: string; args: object; deprecated: boolean; droptoken: boolean; duration: boolean; uriObj: object; advanced: boolean; title: string; hint: string; highlight: boolean; tokens: Array; ownerId: string; ownerUri: string; ownerName: string; titleFormatted: string | null; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } export class FlowFolder extends HomeyAPIV3Local.ManagerFlow.FlowFolder { id: string; name: string; order: number; parent: string; } } export namespace HomeyAPIV2.ManagerFlowToken { export class FlowToken extends HomeyAPIV3Local.ManagerFlowToken.FlowToken { uri: string; id: string; title: string; type: string; value: object; uriObj: object; ownerId: string; ownerUri: string; ownerName: string; example: string | null; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } } export namespace HomeyAPIV2.ManagerImages { export class Image extends HomeyAPIV3Local.ManagerImages.Image { id: string; ownerUri: string; url: string; lastUpdated: string; } } export namespace HomeyAPIV2.ManagerInsights { export class Log extends HomeyAPIV3Local.ManagerInsights.Log { uri: string; id: string; title: string; titleTrue: string; titleFalse: string; type: string; units: string; decimals: number; lastValue: number; ownerUri: string; ownerName: string; ownerId: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } } export namespace HomeyAPIV2.ManagerLogic { export class Variable extends HomeyAPIV3Local.ManagerLogic.Variable { id: string; name: string; type: string; value: string | number | boolean; } } export namespace HomeyAPIV2.ManagerMoods { export class Mood extends HomeyAPIV3Local.ManagerMoods.Mood { id: string; name: string; preset: string | null; zone: string; devices: object; } } export namespace HomeyAPIV2.ManagerNotifications { export class Notification extends HomeyAPIV3Local.ManagerNotifications .Notification { id: string; ownerUri: string; dateCreated: object; dateExpires: string; excerpt: string; icon: string; iconObj: object; priority: string; readBy: Array; roles: Array; meta: object; ownerName: string; } } export namespace HomeyAPIV2.ManagerSessions { export class Session extends HomeyAPIV3Local.ManagerSessions.Session { id: string; type: string; agent: string; clientName: string; scopes: Array; intersectedScopes: Array; createdAt: string; expiresAt: string; lastUsed: boolean; } } export namespace HomeyAPIV2.ManagerSpeechOutput { export class Voice extends HomeyAPIV3Local.ManagerSpeechOutput.Voice { id: string; name: string; language: string; locale: string; gender: string; } } export namespace HomeyAPIV2.ManagerUsers { export class User extends HomeyAPIV3Local.ManagerUsers.User { id: string; name: string; athomId: string; properties: object; enabled: boolean; verified: boolean; role: string; present: boolean; asleep: boolean; enabledUntil: string | null; avatar: string | null; inviteUrl: string | null; localUsername: string | null; } } export namespace HomeyAPIV2.ManagerZones { export class Zone extends HomeyAPIV3Local.ManagerZones.Zone { id: string; name: string; order: number; parent: string; active: boolean; icon: string; activeOrigins: Array; activeLastUpdated: string | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } } export namespace HomeyAPIV3Cloud.ManagerApps { export class App extends HomeyAPIV3.ManagerApps.App { id: string; name: string; iconObj: object; version: string; channel: string; origin: string; author: object; compatibility: string; permissions: Array; color: string; images: object; state: string; enabled: boolean; crashed: boolean; crashedMessage: string | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; call(opts: { method: "GET" | "POST" | "PUT" | "DELETE"; path: String; body: any; }): Promise; get(opts: { path: string }): Promise; post(opts: { path: string; body: object; }): Promise; put(opts: { path: string; body: object; }): Promise; delete(opts: { path: string }): Promise; connect(): Promise; disconnect(): Promise; } export class AppSettings { id: string; } } export namespace HomeyAPIV3Cloud.ManagerCloud { export class Webhook { id: string; } } export namespace HomeyAPIV3Cloud.ManagerCron { export class Cronjob { id: string; } } export namespace HomeyAPIV3Cloud.ManagerDashboards { export class AppWidget { id: string; } export class Dashboard { id: string; name: string; columns: Array; } export class WidgetStore { id: string; } } export namespace HomeyAPIV3Cloud.ManagerDevices { export class Capability extends HomeyAPIV3.ManagerDevices.Capability { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class Device extends HomeyAPIV3.ManagerDevices.Device { id: string; driverId: string; ownerUri: string; name: string; note: string | null; zone: string; data: object; icon: string | null; iconOverride: string | null; iconObj: object | null; class: string; virtualClass: string | null; capabilities: Array; capabilitiesObj: object; settings: object; settingsObj: boolean; flags: Array; energy: object | null; energyObj: object | null; ui: object; uiIndicator: string | null; available: boolean; unavailableMessage: string | null; warningMessage: string | null; ready: boolean; repair: boolean | null; unpair: boolean | null; images: Array; color: string | null; lastSeenAt: string | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; makeCapabilityInstance( capabilityId: string, listener: (value: number | boolean | string) => any, ): HomeyAPIV3.ManagerDevices.Device.DeviceCapability; setCapabilityValue(opts: { capabilityId: string; value: number | boolean | string; opts?: { duration?: number; }; }): Promise; getZone(): Promise; getDriver(): Promise; getLogs(): Promise<{ [key: string]: HomeyAPIV3.ManagerInsights.Log }>; getFlows(): Promise<{ [key: string]: HomeyAPIV3.ManagerFlow.Flow }>; getAdvancedFlows(): Promise<{ [key: string]: HomeyAPIV3.ManagerFlow.AdvancedFlow; }>; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3Cloud.ManagerDrivers { export class Driver extends HomeyAPIV3.ManagerDrivers.Driver { id: string; ownerUri: string; ownerName: string; ownerIconObj: object; name: string; color: string; class: string; ready: boolean; pair: boolean; repair: boolean; unpair: boolean; userPath: string | null; deprecated: boolean; connectivity: Array; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class PairSession extends HomeyAPIV3.ManagerDrivers.PairSession { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3Cloud.ManagerEnergy { export class EnergyReportDay { id: string; } export class EnergyReportHour { id: string; } export class EnergyReportMonth { id: string; } export class EnergyReportWeek { id: string; } export class EnergyReportYear { id: string; } } export namespace HomeyAPIV3Cloud.ManagerFlow { export class AdvancedFlow extends HomeyAPIV3.ManagerFlow.AdvancedFlow { id: string; name: string; folder: string | null; triggerable: boolean; enabled: boolean; cards: object; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; isBroken(): Promise; connect(): Promise; disconnect(): Promise; } export class Flow extends HomeyAPIV3.ManagerFlow.Flow { id: string; name: string; folder: string | null; triggerable: boolean; enabled: boolean; trigger: object; conditions: Array; actions: Array; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; isBroken(): Promise; connect(): Promise; disconnect(): Promise; } export class FlowCardAction extends HomeyAPIV3.ManagerFlow.FlowCardAction { id: string; ownerId: string; ownerUri: string; ownerName: string; title: string; titleFormatted: string | null; hint: string | null; args: Array | null; droptoken: Array | null; deprecated: boolean | null; highlight: boolean | null; duration: boolean; durationMin: number | null; durationMax: number | null; tokens: Array | null; advanced: boolean; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class FlowCardCondition extends HomeyAPIV3.ManagerFlow .FlowCardCondition { id: string; ownerId: string; ownerUri: string; ownerName: string; title: string; titleFormatted: string | null; hint: string | null; args: Array | null; droptoken: Array | null; deprecated: boolean | null; highlight: boolean | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class FlowCardTrigger extends HomeyAPIV3.ManagerFlow.FlowCardTrigger { id: string; ownerId: string; ownerUri: string; ownerName: string; title: string; titleFormatted: string | null; hint: string | null; args: Array | null; droptoken: Array | null; deprecated: boolean | null; highlight: boolean | null; tokens: Array | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class FlowFolder { id: string; name: string; parent: string | null; } } export namespace HomeyAPIV3Cloud.ManagerFlowToken { export class FlowToken extends HomeyAPIV3.ManagerFlowToken.FlowToken { id: string; ownerId: string; ownerUri: string; ownerName: string; type: string; title: string; example: string | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3Cloud.ManagerIcons { export class Icon { id: string; } } export namespace HomeyAPIV3Cloud.ManagerImages { export class Image { id: string; ownerUri: string; url: string; lastUpdated: string; } } export namespace HomeyAPIV3Cloud.ManagerInsights { export class Log extends HomeyAPIV3.ManagerInsights.Log { id: string; ownerUri: string; ownerName: string; ownerId: string; type: string; title: string; titleTrue: string | null; titleFalse: string | null; units: string | null; decimals: number | null; lastValue: any | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class LogEntryBoolean { id: string; } } export namespace HomeyAPIV3Cloud.ManagerLogic { export class Variable { id: string; name: string; type: string; value: string | number | boolean; } } export namespace HomeyAPIV3Cloud.ManagerMoods { export class Mood { id: string; name: string; preset: string | null; zone: string; devices: object; } } export namespace HomeyAPIV3Cloud.ManagerNotifications { export class Notification { id: string; ownerUri: string; ownerName: string; dateCreated: string; excerpt: string; meta: object; } } export namespace HomeyAPIV3Cloud.ManagerRF { export class Signal { id: string; } } export namespace HomeyAPIV3Cloud.ManagerSessions { export class Session { id: string; type: string; scopes: Array; intersectedScopes: Array; } } export namespace HomeyAPIV3Cloud.ManagerUsers { export class User { id: string; name: string | null; role: string; properties: object; athomId: string | null; enabled: boolean; enabledUntil: string | null; present: boolean | null; asleep: boolean | null; avatar: string | null; verified: boolean; inviteUrl: string | null; } } export namespace HomeyAPIV3Cloud.ManagerVideos { export class Video { id: string; } } export namespace HomeyAPIV3Cloud.ManagerVirtualDevice { export class VirtualDeviceDummySocket { id: string; } export class VirtualDeviceEnergyDongle { id: string; } export class VirtualDeviceGroup { id: string; } export class VirtualDeviceHomeyBridge { id: string; } export class VirtualDeviceInfrared { id: string; } export class VirtualDeviceRF433 { id: string; } export class VirtualDeviceZigbee { id: string; } export class VirtualDeviceZwave { id: string; } export class VirtualDriverDummySocket { id: string; } export class VirtualDriverEnergyDongle { id: string; } export class VirtualDriverGroup { id: string; } export class VirtualDriverHomeyBridge { id: string; } export class VirtualDriverInfrared { id: string; } export class VirtualDriverRF433 { id: string; } export class VirtualDriverZigbee { id: string; } export class VirtualDriverZwave { id: string; } } export namespace HomeyAPIV3Cloud.ManagerZones { export class Zone extends HomeyAPIV3.ManagerZones.Zone { id: string; name: string; parent: string | null; icon: string; active: boolean; activeOrigins: Array; activeLastUpdated: string | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; getParent(): Promise; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3Local.ManagerAlarms { export class Alarm {} } export namespace HomeyAPIV3Local.ManagerApps { export class App extends HomeyAPIV3.ManagerApps.App { id: string; name: string; iconObj: object; version: string; channel: string; origin: string; author: object; compatibility: string; permissions: Array; color: string; images: object; state: string; enabled: boolean; autoupdate: boolean; settings: boolean | null; updateAvailable: boolean; usage: object; crashed: boolean; crashedMessage: string | null; crashedCount: number; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; call(opts: { method: "GET" | "POST" | "PUT" | "DELETE"; path: String; body: any; }): Promise; get(opts: { path: string }): Promise; post(opts: { path: string; body: object; }): Promise; put(opts: { path: string; body: object; }): Promise; delete(opts: { path: string }): Promise; connect(): Promise; disconnect(): Promise; } export class AppSettings { id: string; } } export namespace HomeyAPIV3Local.ManagerCloud { export class Webhook { id: string; } } export namespace HomeyAPIV3Local.ManagerCron { export class Cronjob { id: string; } } export namespace HomeyAPIV3Local.ManagerDashboards { export class AppWidget { id: string; } export class Dashboard { id: string; name: string; columns: Array; } export class WidgetStore { id: string; } } export namespace HomeyAPIV3Local.ManagerDevices { export class Capability extends HomeyAPIV3.ManagerDevices.Capability { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class Device extends HomeyAPIV3.ManagerDevices.Device { id: string; driverId: string; ownerUri: string; name: string; note: string | null; zone: string; data: object; icon: string | null; iconOverride: string | null; iconObj: object | null; class: string; virtualClass: string | null; capabilities: Array; capabilitiesObj: object; settings: object; settingsObj: boolean; flags: Array; energy: object | null; energyObj: object | null; ui: object; uiIndicator: string | null; available: boolean; unavailableMessage: string | null; warningMessage: string | null; ready: boolean; repair: boolean | null; unpair: boolean | null; images: Array; color: string | null; lastSeenAt: string | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; makeCapabilityInstance( capabilityId: string, listener: (value: number | boolean | string) => any, ): HomeyAPIV3.ManagerDevices.Device.DeviceCapability; setCapabilityValue(opts: { capabilityId: string; value: number | boolean | string; opts?: { duration?: number; }; }): Promise; getZone(): Promise; getDriver(): Promise; getLogs(): Promise<{ [key: string]: HomeyAPIV3.ManagerInsights.Log }>; getFlows(): Promise<{ [key: string]: HomeyAPIV3.ManagerFlow.Flow }>; getAdvancedFlows(): Promise<{ [key: string]: HomeyAPIV3.ManagerFlow.AdvancedFlow; }>; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3Local.ManagerDiscovery { export class DiscoveryStrategyMAC { id: string; } export class DiscoveryStrategyMDNSSD { id: string; } export class DiscoveryStrategySSDP { id: string; } } export namespace HomeyAPIV3Local.ManagerDrivers { export class Driver extends HomeyAPIV3.ManagerDrivers.Driver { id: string; ownerUri: string; ownerName: string; ownerIconObj: object; name: string; color: string; class: string; ready: boolean; pair: boolean; repair: boolean; unpair: boolean; userPath: string | null; deprecated: boolean; connectivity: Array; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class PairSession extends HomeyAPIV3.ManagerDrivers.PairSession { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3Local.ManagerEnergy { export class EnergyReportDay { id: string; } export class EnergyReportHour { id: string; } export class EnergyReportMonth { id: string; } export class EnergyReportWeek { id: string; } export class EnergyReportYear { id: string; } } export namespace HomeyAPIV3Local.ManagerExperiments { export class ExperimentHomeKit { id: string; } export class ExperimentPowerUser { id: string; } export class ExperimentSSH { id: string; } export class ExperimentVirtualDevices { id: string; } } export namespace HomeyAPIV3Local.ManagerFlow { export class AdvancedFlow extends HomeyAPIV3.ManagerFlow.AdvancedFlow { id: string; name: string; folder: string | null; triggerable: boolean; enabled: boolean; cards: object; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; isBroken(): Promise; connect(): Promise; disconnect(): Promise; } export class Flow extends HomeyAPIV3.ManagerFlow.Flow { id: string; name: string; folder: string | null; triggerable: boolean; enabled: boolean; trigger: object; conditions: Array; actions: Array; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; isBroken(): Promise; connect(): Promise; disconnect(): Promise; } export class FlowCardAction extends HomeyAPIV3.ManagerFlow.FlowCardAction { id: string; ownerId: string; ownerUri: string; ownerName: string; title: string; titleFormatted: string | null; hint: string | null; args: Array | null; droptoken: Array | null; deprecated: boolean | null; highlight: boolean | null; duration: boolean; durationMin: number | null; durationMax: number | null; tokens: Array | null; advanced: boolean; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class FlowCardCondition extends HomeyAPIV3.ManagerFlow .FlowCardCondition { id: string; ownerId: string; ownerUri: string; ownerName: string; title: string; titleFormatted: string | null; hint: string | null; args: Array | null; droptoken: Array | null; deprecated: boolean | null; highlight: boolean | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class FlowCardTrigger extends HomeyAPIV3.ManagerFlow.FlowCardTrigger { id: string; ownerId: string; ownerUri: string; ownerName: string; title: string; titleFormatted: string | null; hint: string | null; args: Array | null; droptoken: Array | null; deprecated: boolean | null; highlight: boolean | null; tokens: Array | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class FlowFolder { id: string; name: string; parent: string | null; } } export namespace HomeyAPIV3Local.ManagerFlowToken { export class FlowToken extends HomeyAPIV3.ManagerFlowToken.FlowToken { id: string; ownerId: string; ownerUri: string; ownerName: string; type: string; title: string; example: string | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3Local.ManagerIcons { export class Icon { id: string; } } export namespace HomeyAPIV3Local.ManagerImages { export class Image { id: string; ownerUri: string; url: string; lastUpdated: string; } } export namespace HomeyAPIV3Local.ManagerInsights { export class Log extends HomeyAPIV3.ManagerInsights.Log { id: string; ownerUri: string; ownerName: string; ownerId: string; type: string; title: string; titleTrue: string | null; titleFalse: string | null; units: string | null; decimals: number | null; lastValue: any | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class LogEntryBoolean { id: string; } } export namespace HomeyAPIV3Local.ManagerLogic { export class Variable { id: string; name: string; type: string; value: string | number | boolean; } } export namespace HomeyAPIV3Local.ManagerMatter { export class MatterNode { id: string; } } export namespace HomeyAPIV3Local.ManagerMoods { export class Mood { id: string; name: string; preset: string | null; zone: string; devices: object; } } export namespace HomeyAPIV3Local.ManagerNotifications { export class Notification { id: string; ownerUri: string; ownerName: string; dateCreated: string; excerpt: string; meta: object; } } export namespace HomeyAPIV3Local.ManagerRF { export class Signal { id: string; } } export namespace HomeyAPIV3Local.ManagerSessions { export class Session { id: string; type: string; scopes: Array; intersectedScopes: Array; } } export namespace HomeyAPIV3Local.ManagerUsers { export class User { id: string; name: string | null; role: string; properties: object; athomId: string | null; enabled: boolean; enabledUntil: string | null; present: boolean | null; asleep: boolean | null; avatar: string | null; verified: boolean; inviteUrl: string | null; localUsername: string | null; } } export namespace HomeyAPIV3Local.ManagerVideos { export class Video { id: string; } } export namespace HomeyAPIV3Local.ManagerVirtualDevice { export class VirtualDeviceDummySocket { id: string; } export class VirtualDeviceEnergyDongle { id: string; } export class VirtualDeviceGroup { id: string; } export class VirtualDeviceHomeyBridge { id: string; } export class VirtualDeviceInfrared { id: string; } export class VirtualDeviceMatter { id: string; } export class VirtualDeviceRF433 { id: string; } export class VirtualDeviceVirtualButton { id: string; } export class VirtualDeviceVirtualIPCamera { id: string; } export class VirtualDeviceVirtualSocket { id: string; } export class VirtualDeviceZigbee { id: string; } export class VirtualDeviceZwave { id: string; } export class VirtualDriverDummySocket { id: string; } export class VirtualDriverEnergyDongle { id: string; } export class VirtualDriverGroup { id: string; } export class VirtualDriverHomeyBridge { id: string; } export class VirtualDriverInfrared { id: string; } export class VirtualDriverMatter { id: string; } export class VirtualDriverRF433 { id: string; } export class VirtualDriverVirtualButton { id: string; } export class VirtualDriverVirtualIPCamera { id: string; } export class VirtualDriverVirtualSocket { id: string; } export class VirtualDriverZigbee { id: string; } export class VirtualDriverZwave { id: string; } } export namespace HomeyAPIV3Local.ManagerZones { export class Zone extends HomeyAPIV3.ManagerZones.Zone { id: string; name: string; parent: string | null; icon: string; active: boolean; activeOrigins: Array; activeLastUpdated: string | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; getParent(): Promise; connect(): Promise; disconnect(): Promise; } } export class APIDefinition {} export class APIError extends Error { constructor( message: string, statusCode: number, ); message: string; statusCode: number; message: string; message: string; message: string; statusCode: number; message: string; message: string; } export class APIErrorHomeyInvalidSerialNumber extends APIError { statusCode: number; statusCode: number; message: string; } export class APIErrorHomeyOffline extends APIError { message: string; statusCode: number; } export class APIErrorHomeySubscriptionInactive extends APIError { statusCode: number; statusCode: number; message: string; } export class APIErrorNotFound extends APIError { message: string; statusCode: number; } export class APIErrorTimeout extends APIError { message: string; statusCode: number; } export class AthomAppsAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); updateArchive(opts: { archiveId: string; state?: string; error?: string; manifest?: object; assetsId?: string; hash?: string; size?: number; }): Promise; getApps(opts: { page?: number; count?: number; category?: string; author?: string; }): Promise; searchApps(opts: { query: string; language?: string; homeyVersion?: string; homeyPlatform?: string; homeyPlatformVersion?: string; homeyModel?: string; }): Promise; searchAppsBy433MhzSignal(opts: { language?: string; homeyVersion?: string; homeyPlatform?: string; recordings?: Array; }): Promise; searchZigbeeDriver(opts: { language?: string; homeyVersion?: string; homeyPlatform?: string; homeyMinimumSdkVersion?: number; productId?: string; manufacturerName?: string; }): Promise; searchZwaveDriver(opts: { language?: string; homeyVersion?: string; homeyPlatform?: string; homeyMinimumSdkVersion?: number; productId?: number; productTypeId?: number; manufacturerId?: number; }): Promise; searchMatterDriver(opts: { language?: string; homeyVersion?: string; homeyPlatform?: string; homeyMinimumSdkVersion?: number; productId?: number; vendorId?: number; }): Promise; browseApps(opts: { query?: string; language?: string; platform?: Array; connectivity?: Array; category?: Array; features?: Array; limit?: number; offset?: number; }): Promise; syncApps(): Promise; getAppsSummary(opts: { secret: string }): Promise; getHighlightedApps(opts: { platforms?: string }): Promise; getHighlightedAppsV2(opts: { platform?: Array; language?: string; tags?: Array; }): Promise; getMyApps(): Promise; getAllLiveAppIDs(): Promise; getAllLiveApps(): Promise; getReviewApps(): Promise; getApp(opts: { appId: string }): Promise; deleteApp(opts: { appId: string }): Promise; getAppSettings(opts: { appId: string }): Promise; updateAppSettings(opts: { appId: string; sendEmailCrash?: boolean; sendEmailSuggestion?: boolean; sendEmailThanks?: boolean; }): Promise; getAppChangelog(opts: { appId: string }): Promise; updateAppAuthor(opts: { appId: string; userId?: string; }): Promise; transferAppToOrganization(opts: { appId: string; orgId?: string; }): Promise; getAppIcon(opts: { appId: string }): Promise; getAppInstall(opts: { appId: string; channel?: string; version?: string; secret: string; }): Promise; getAppInstallStats(opts: { appId: string }): Promise; getAppPageviews(opts: { appId: string }): Promise; getAppDriversStats(opts: { appId: string }): Promise; getBuilds(opts: { appId: string }): Promise; createBuild(opts: { appId: string; version?: string; env?: object; changelog?: object; readme?: object; }): Promise; getBuild(opts: { appId: string; buildId: string; }): Promise; getAgentReview(opts: { appId: string; buildId: string; }): Promise; retryAgentReview(opts: { appId: string; buildId: string; }): Promise; getCrashes(opts: { appId: string; buildId: string; }): Promise; getCrashesStats(opts: { appId: string; buildId: string; }): Promise; updateBuildChannel(opts: { appId: string; buildId: string; channel?: string; }): Promise; createSubmission(opts: { appId: string; buildId: string; autoRelease?: boolean; }): Promise; getSubmissionComments(opts: { appId: string; buildId: string; }): Promise; createSubmissionComment(opts: { appId: string; buildId: string; text?: string; }): Promise; retractSubmission(opts: { appId: string; buildId: string; }): Promise; approveSubmission(opts: { appId: string; buildId: string; }): Promise; rejectSubmission(opts: { appId: string; buildId: string; }): Promise; getReviews(opts: { appId: string }): Promise; updateReview(opts: { appId: string; version?: string; rating?: number; comment?: string; }): Promise; deleteReview(opts: { appId: string }): Promise; getThanks(opts: { appId: string }): Promise; sayThanks(opts: { appId: string }): Promise; getReviewsStats(opts: { appId: string }): Promise; deleteAllReviews(opts: { appId: string }): Promise; updateReviewResponse(opts: { appId: string; userId: string; response?: string; }): Promise; deleteReviewResponse(opts: { appId: string; userId: string; }): Promise; createCrash(opts: { appId: string; appVersion?: string; homeyId?: string; homeyVersion?: string; homeyModelId?: string; homeyModelName?: string; stack?: string; }): Promise; replyToCrash(opts: { crashId: string; subject?: string; body?: string; from?: string; }): Promise; discoverApps(opts: { ssdp?: Array; ble?: Array; mac?: Array; }): Promise; getAppSuggestions(opts: { appId: string; offset?: number; length?: number; }): Promise; createAppSuggestion(opts: { appId: string; suggestionText?: string; }): Promise; getMyOrganizations(): Promise; createOrganization(opts: { name?: string }): Promise; getOrganization(opts: { orgId: string }): Promise; deleteOrganization(opts: { orgId: string }): Promise; updateOrganizationName(opts: { orgId: string; name?: string; }): Promise; inviteMemberToOrganization(opts: { orgId: string; email?: string; role?: string; }): Promise; acceptMemberInviteToOrganization(opts: { orgId: string; inviteToken?: string; }): Promise; updateMemberRoleInOrganization(opts: { orgId: string; memberId: string; role?: string; }): Promise; removeMemberFromOrganization(opts: { orgId: string; memberId: string; }): Promise; updateArchive(opts: { archiveId: string; state?: string; error?: string; manifest?: object; assetsId?: string; hash?: string; size?: number; }): Promise; getApps(opts: { page?: number; count?: number; category?: string; author?: string; }): Promise; searchApps(opts: { query: string; language?: string; homeyVersion?: string; homeyPlatform?: string; homeyPlatformVersion?: string; homeyModel?: string; }): Promise; searchAppsBy433MhzSignal(opts: { language?: string; homeyVersion?: string; homeyPlatform?: string; recordings?: Array; }): Promise; searchZigbeeDriver(opts: { language?: string; homeyVersion?: string; homeyPlatform?: string; homeyMinimumSdkVersion?: number; productId?: string; manufacturerName?: string; }): Promise; searchZwaveDriver(opts: { language?: string; homeyVersion?: string; homeyPlatform?: string; homeyMinimumSdkVersion?: number; productId?: number; productTypeId?: number; manufacturerId?: number; }): Promise; searchMatterDriver(opts: { language?: string; homeyVersion?: string; homeyPlatform?: string; homeyMinimumSdkVersion?: number; productId?: number; vendorId?: number; }): Promise; browseApps(opts: { query?: string; language?: string; platform?: Array; connectivity?: Array; category?: Array; features?: Array; limit?: number; offset?: number; }): Promise; syncApps(): Promise; getAppsSummary(opts: { secret: string }): Promise; getHighlightedApps(opts: { platforms?: string }): Promise; getHighlightedAppsV2(opts: { platform?: Array; language?: string; tags?: Array; }): Promise; getMyApps(): Promise; getAllLiveAppIDs(): Promise; getAllLiveApps(): Promise; getReviewApps(): Promise; getApp(opts: { appId: string }): Promise; deleteApp(opts: { appId: string }): Promise; getAppSettings(opts: { appId: string }): Promise; updateAppSettings(opts: { appId: string; sendEmailCrash?: boolean; sendEmailSuggestion?: boolean; sendEmailThanks?: boolean; }): Promise; getAppChangelog(opts: { appId: string }): Promise; updateAppAuthor(opts: { appId: string; userId?: string; }): Promise; transferAppToOrganization(opts: { appId: string; orgId?: string; }): Promise; getAppIcon(opts: { appId: string }): Promise; getAppInstall(opts: { appId: string; channel?: string; version?: string; secret: string; }): Promise; getAppInstallStats(opts: { appId: string }): Promise; getAppPageviews(opts: { appId: string }): Promise; getAppDriversStats(opts: { appId: string }): Promise; getBuilds(opts: { appId: string }): Promise; createBuild(opts: { appId: string; version?: string; env?: object; changelog?: object; readme?: object; }): Promise; getBuild(opts: { appId: string; buildId: string; }): Promise; getAgentReview(opts: { appId: string; buildId: string; }): Promise; retryAgentReview(opts: { appId: string; buildId: string; }): Promise; getCrashes(opts: { appId: string; buildId: string; }): Promise; getCrashesStats(opts: { appId: string; buildId: string; }): Promise; updateBuildChannel(opts: { appId: string; buildId: string; channel?: string; }): Promise; createSubmission(opts: { appId: string; buildId: string; autoRelease?: boolean; }): Promise; getSubmissionComments(opts: { appId: string; buildId: string; }): Promise; createSubmissionComment(opts: { appId: string; buildId: string; text?: string; }): Promise; retractSubmission(opts: { appId: string; buildId: string; }): Promise; approveSubmission(opts: { appId: string; buildId: string; }): Promise; rejectSubmission(opts: { appId: string; buildId: string; }): Promise; getReviews(opts: { appId: string }): Promise; updateReview(opts: { appId: string; version?: string; rating?: number; comment?: string; }): Promise; deleteReview(opts: { appId: string }): Promise; getThanks(opts: { appId: string }): Promise; sayThanks(opts: { appId: string }): Promise; getReviewsStats(opts: { appId: string }): Promise; deleteAllReviews(opts: { appId: string }): Promise; updateReviewResponse(opts: { appId: string; userId: string; response?: string; }): Promise; deleteReviewResponse(opts: { appId: string; userId: string; }): Promise; createCrash(opts: { appId: string; appVersion?: string; homeyId?: string; homeyVersion?: string; homeyModelId?: string; homeyModelName?: string; stack?: string; }): Promise; replyToCrash(opts: { crashId: string; subject?: string; body?: string; from?: string; }): Promise; discoverApps(opts: { ssdp?: Array; ble?: Array; mac?: Array; }): Promise; getAppSuggestions(opts: { appId: string; offset?: number; length?: number; }): Promise; createAppSuggestion(opts: { appId: string; suggestionText?: string; }): Promise; getMyOrganizations(): Promise; createOrganization(opts: { name?: string }): Promise; getOrganization(opts: { orgId: string }): Promise; deleteOrganization(opts: { orgId: string }): Promise; updateOrganizationName(opts: { orgId: string; name?: string; }): Promise; inviteMemberToOrganization(opts: { orgId: string; email?: string; role?: string; }): Promise; acceptMemberInviteToOrganization(opts: { orgId: string; inviteToken?: string; }): Promise; updateMemberRoleInOrganization(opts: { orgId: string; memberId: string; role?: string; }): Promise; removeMemberFromOrganization(opts: { orgId: string; memberId: string; }): Promise; } export class AthomBackupAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getMyBackups(opts: { token: string }): Promise; deleteMyBackup(opts: { homeyId: string; backupId: string; token: string; }): Promise; getBackups(opts: { userId: string; secret: string; }): Promise; deleteBackups(opts: { userId: string }): Promise; getBackup(opts: { userId: string; backupId: string; secret: string; }): Promise; createBackup(opts: { userId: string; homeyId: string; secret: string; homeyName?: string; homeyPlatform?: string; homeyPlatformVersion?: number; homeyModel?: string; version?: string; channel?: string; }): Promise; setBackupComplete(opts: { userId: string; homeyId: string; backupId: string; secret: string; size?: number; hash?: string; meta?: object; }): Promise; getMyBackups(opts: { token: string }): Promise; deleteMyBackup(opts: { homeyId: string; backupId: string; token: string; }): Promise; getBackups(opts: { userId: string; secret: string; }): Promise; deleteBackups(opts: { userId: string }): Promise; getBackup(opts: { userId: string; backupId: string; secret: string; }): Promise; createBackup(opts: { userId: string; homeyId: string; secret: string; homeyName?: string; homeyPlatform?: string; homeyPlatformVersion?: number; homeyModel?: string; version?: string; channel?: string; }): Promise; setBackupComplete(opts: { userId: string; homeyId: string; backupId: string; secret: string; size?: number; hash?: string; meta?: object; }): Promise; } export class AthomCallbackAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); registerCallbackUrl(opts: { callback_url?: string }): Promise; registerCallbackUrl(opts: { callback_url?: string }): Promise; } export class AthomCloudAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; clientId: string; clientSecret: string; redirectUrl: string; autoRefreshTokens?: boolean; token?: AthomCloudAPI.Token; store?: AthomCloudAPI.StorageAdapter; }); createDelegationToken(opts: { audience?: string; meta?: object; }): Promise; verifyDelegationToken(opts: { token?: string }): Promise; getDelegationTokenKey(): Promise; getAccessToken(opts: { client_id: string; client_secret: string; grant_type: string; refresh_token?: string; code?: string; username?: string; password?: string; }): Promise; forgotPassword(opts: { email?: string }): Promise; createUser(opts: { user: { firstname: string; lastname: string; email: string; password: string; language: string; }; newsletter?: boolean; gettingStarted?: boolean; }): Promise; getUser(opts: { id: string }): Promise; updateUser(opts: { id: string; user: { firstname: string; lastname: string; email: string; language: string; roles: Array; roleIds: Array; avatar: undefined; homeys: Array; devices: Array; }; }): Promise; deleteUser(opts: { id: string; password?: string; }): Promise; createUserDevice(opts: { userId: string; device: { name: string; platform: string; token: string; publicKey: string; appVersion: string; osVersion: string; created: string; updated: string; devmode: boolean; }; }): Promise; updateUserDevice(opts: { userId: string; deviceId: string; device: { name: string; platform: string; token: string; publicKey: string; appVersion: string; osVersion: string; created: string; updated: string; devmode: boolean; }; }): Promise; deleteUserDevice(opts: { userId: string; deviceId: string; }): Promise; getUserAddresses(opts: { userId: string }): Promise; addUserAddress(opts: { userId: string; address?: { street: string; number: string; zipcode: string; city: string; state: string; country: string; extra: string; firstname: string; lastname: string; }; }): Promise; updateUserAddress(opts: { userId: string; addressId: string; address?: { street: string; number: string; zipcode: string; city: string; state: string; country: string; extra: string; firstname: string; lastname: string; }; }): Promise; deleteUserAddress(opts: { userId: string; addressId: string; }): Promise; updateUserSubscription(opts: { userId: string; subscriptionId: string; subscription?: undefined; }): Promise; deleteUserSubscription(opts: { userId: string; subscriptionId: string; }): Promise; addRoleAppDeveloperTrusted(opts: { userId: string }): Promise; removeRoleAppDeveloperTrusted(opts: { userId: string }): Promise; addRoleCertifiedInstaller(opts: { userId: string }): Promise; getAuthenticatedUser(opts: { additionalScopes?: string }): Promise; getAcceptedInvites(): Promise; getPersonalAccessTokenApps(): Promise; deletePersonalAccessTokenApps(): Promise; updateAuthenticatedUserPassword(opts: { password?: string; old_password?: string; }): Promise; getUserProfile(opts: { userId: string }): Promise; getUserSessions(opts: { userId: string }): Promise; deleteUserSession(opts: { userId: string; sessionId: string; }): Promise; acceptInvite(opts: { userId: string; inviterId: string; }): Promise; getAuthenticatedUserNewsletterStatus(): Promise; subscribeAuthenticatedUserToNewsletter(opts: { language?: string; }): Promise; unsubscribeAuthenticatedUserFromNewsletter(): Promise; getInstallerInformation(opts: { userId: string }): Promise; updateInstallerInformation(opts: { userId: string; website?: string; email?: string; phone?: string; }): Promise; getAuthenticatedUserClients(): Promise; createAuthenticatedUserClient(opts: { name?: string; redirectUri?: Array; scopes?: Array; }): Promise; updateAuthenticatedUserClient(opts: { id: string; name?: string; redirectUri?: Array; scopes?: Array; }): Promise; deleteAuthenticatedUserClient(opts: { id: string }): Promise; getBridges(opts: { serial?: string; serialHash?: string; }): Promise; createBridge(opts: { bridge?: { serial: string; build: number; zwaveCalibration: Array; manufacturedAt: string; activationHistory: Array; model: string; }; }): Promise; getBridge(opts: { serial: string }): Promise; updateBridge(opts: { serial: string; bridge?: { serial: string; build: number; zwaveCalibration: Array; manufacturedAt: string; activationHistory: Array; model: string; }; }): Promise; activateBridge(opts: { serial: string; homeyId?: string; userId?: string; }): Promise; getHomeys(opts: { serial?: string; softwareVersion?: string; search?: string; page?: string; }): Promise; createHomey(opts: { data?: { name: string; ipInternal: string; ipExternal: string; ipExternalCountry: string; ipExternalPort: number; localUrl: string; localUrlSecure: string; remoteUrl: string; apiVersion: number; softwareVersion: string; language: string; state: string; geolocation: object; users: Array; role: string; token: string; apps: Array; devices: Array; eMMCestLifeTimeA: number; eMMCestLifeTimeB: number; eMMCpreEOLInfo: number; }; }): Promise; getHomey(opts: { id: string }): Promise; updateHomey(opts: { id: string; homey: { name: string; ipInternal: string; ipExternal: string; ipExternalCountry: string; ipExternalPort: number; localUrl: string; localUrlSecure: string; remoteUrl: string; apiVersion: number; softwareVersion: string; language: string; state: string; geolocation: object; users: Array; role: string; token: string; apps: Array; devices: Array; eMMCestLifeTimeA: number; eMMCestLifeTimeB: number; eMMCpreEOLInfo: number; }; }): Promise; deleteHomey(opts: { id: string }): Promise; activateHomey(opts: { id: string; userId?: string; }): Promise; addHomeyLicense(opts: { homeyId: string; license: string; }): Promise; createHomeyUser(opts: { homeyId: string; user?: string; role?: string; token?: string; }): Promise; deleteHomeyUser(opts: { homeyId: string; userId: string; }): Promise; resetHomeyUsers(opts: { homeyId: string }): Promise; getAllHomeyMetadata(opts: { homeyId: string }): Promise; getHomeyMetadata(opts: { homeyId: string; key: string; }): Promise; createHomeyMetadata(opts: { homeyId: string; key: string; value?: object; }): Promise; updateHomeyMetadata(opts: { homeyId: string; key: string; value?: object; }): Promise; deleteHomeyMetadata(opts: { homeyId: string; key: string; }): Promise; updateHomeySendConnectionNotifications(opts: { homeyId: string; push?: boolean; email?: boolean; }): Promise; createHomeySelfHostedServer(): Promise; deleteHomeySelfHostedServer(opts: { homeyId: string }): Promise; updateHomeySelfHostedServerSubscription(opts: { homeyId: string; type?: string; expiresAt?: string; shopifyContractId?: string; }): Promise; transferHomeySelfHostedServerLifetimeLicense(opts: { homeyId: string; newHomeyId?: string; }): Promise; updateHomeySelfHostedServerCustomHostname(opts: { homeyId: string; customHostname?: string; }): Promise; deleteHomeySelfHostedServerCustomHostname(opts: { homeyId: string; }): Promise; expireSelfHostedServerSubscriptions(): Promise; sendFormattedEmail(opts: { to?: string; toHomeyOwner?: string; from?: string; subject?: string; body?: string; replyTo?: string; logo?: object; header?: object; button?: object; }): Promise; subscribeUserToMailChimp(opts: { listId?: string; userId?: string; tags?: Array; }): Promise; upsertUserToMailChimp(opts: { listId?: string; userId?: string; tags?: Array; }): Promise; addTagToMailChimpUser(opts: { listId?: string; userId?: string; tag?: string; }): Promise; removeTagFromMailChimpUser(opts: { tag: string; listId: string; userId: string; }): Promise; getPortals(opts: { serial?: string }): Promise; createPortal(opts: { portal?: { serial: string; build: number; manufacturedAt: string; activationHistory: Array; model: string; }; }): Promise; getPortal(opts: { serial: string }): Promise; updatePortal(opts: { serial: string; portal?: { serial: string; build: number; manufacturedAt: string; activationHistory: Array; model: string; }; }): Promise; activatePortal(opts: { serial: string; homeyId?: string; userId?: string; }): Promise; getAppInstallsStatistics(): Promise; getAppDriversStatistics(): Promise; getLocationStatistics(opts: { since?: number }): Promise; getVersionStatistics(): Promise; getProductionStatistics(opts: { min?: string; max?: string; }): Promise; getHomeyOwnerContactDetails(opts: { softwareVersion?: string; homeyId?: string; homeySn?: string; barcodeMin?: string; barcodeMax?: string; appId?: string; appChannel?: string; appVersion?: string; page?: number; }): Promise; isLoggedIn(): Promise; getAuthenticatedUser(opts?: { $cache?: object }): Promise; hasAuthorizationCode(): boolean; getLoginUrl(opts?: { state?: string; scopes?: Array; }): string; logout(): Promise; authenticateWithAuthorizationCode(opts?: { code: String; removeCodeFromHistory?: Boolean; }): Promise; updateUserMe(opts?: { firstname?: String; lastname?: String; email?: String; }): Promise; updateUserMeAvatar( imageBuffer: Buffer, imageType: "jpg" | "jpeg" | "png" | "gif", ): Promise; createDelegationToken(opts: { audience?: string; meta?: object; }): Promise; verifyDelegationToken(opts: { token?: string }): Promise; getDelegationTokenKey(): Promise; getAccessToken(opts: { client_id: string; client_secret: string; grant_type: string; refresh_token?: string; code?: string; username?: string; password?: string; }): Promise; forgotPassword(opts: { email?: string }): Promise; createUser(opts: { user: { firstname: string; lastname: string; email: string; password: string; language: string; }; newsletter?: boolean; gettingStarted?: boolean; }): Promise; getUser(opts: { id: string }): Promise; updateUser(opts: { id: string; user: { firstname: string; lastname: string; email: string; language: string; roles: Array; roleIds: Array; avatar: undefined; homeys: Array; devices: Array; }; }): Promise; deleteUser(opts: { id: string; password?: string; }): Promise; createUserDevice(opts: { userId: string; device: { name: string; platform: string; token: string; publicKey: string; appVersion: string; osVersion: string; created: string; updated: string; devmode: boolean; }; }): Promise; updateUserDevice(opts: { userId: string; deviceId: string; device: { name: string; platform: string; token: string; publicKey: string; appVersion: string; osVersion: string; created: string; updated: string; devmode: boolean; }; }): Promise; deleteUserDevice(opts: { userId: string; deviceId: string; }): Promise; getUserAddresses(opts: { userId: string }): Promise; addUserAddress(opts: { userId: string; address?: { street: string; number: string; zipcode: string; city: string; state: string; country: string; extra: string; firstname: string; lastname: string; }; }): Promise; updateUserAddress(opts: { userId: string; addressId: string; address?: { street: string; number: string; zipcode: string; city: string; state: string; country: string; extra: string; firstname: string; lastname: string; }; }): Promise; deleteUserAddress(opts: { userId: string; addressId: string; }): Promise; updateUserSubscription(opts: { userId: string; subscriptionId: string; subscription?: undefined; }): Promise; deleteUserSubscription(opts: { userId: string; subscriptionId: string; }): Promise; addRoleAppDeveloperTrusted(opts: { userId: string }): Promise; removeRoleAppDeveloperTrusted(opts: { userId: string }): Promise; addRoleCertifiedInstaller(opts: { userId: string }): Promise; getAuthenticatedUser(opts: { additionalScopes?: string }): Promise; getAcceptedInvites(): Promise; getPersonalAccessTokenApps(): Promise; deletePersonalAccessTokenApps(): Promise; updateAuthenticatedUserPassword(opts: { password?: string; old_password?: string; }): Promise; getUserProfile(opts: { userId: string }): Promise; getUserSessions(opts: { userId: string }): Promise; deleteUserSession(opts: { userId: string; sessionId: string; }): Promise; acceptInvite(opts: { userId: string; inviterId: string; }): Promise; getAuthenticatedUserNewsletterStatus(): Promise; subscribeAuthenticatedUserToNewsletter(opts: { language?: string; }): Promise; unsubscribeAuthenticatedUserFromNewsletter(): Promise; getInstallerInformation(opts: { userId: string }): Promise; updateInstallerInformation(opts: { userId: string; website?: string; email?: string; phone?: string; }): Promise; getAuthenticatedUserClients(): Promise; createAuthenticatedUserClient(opts: { name?: string; redirectUri?: Array; scopes?: Array; }): Promise; updateAuthenticatedUserClient(opts: { id: string; name?: string; redirectUri?: Array; scopes?: Array; }): Promise; deleteAuthenticatedUserClient(opts: { id: string }): Promise; getBridges(opts: { serial?: string; serialHash?: string; }): Promise; createBridge(opts: { bridge?: { serial: string; build: number; zwaveCalibration: Array; manufacturedAt: string; activationHistory: Array; model: string; }; }): Promise; getBridge(opts: { serial: string }): Promise; updateBridge(opts: { serial: string; bridge?: { serial: string; build: number; zwaveCalibration: Array; manufacturedAt: string; activationHistory: Array; model: string; }; }): Promise; activateBridge(opts: { serial: string; homeyId?: string; userId?: string; }): Promise; getHomeys(opts: { serial?: string; softwareVersion?: string; search?: string; page?: string; }): Promise; createHomey(opts: { data?: { name: string; ipInternal: string; ipExternal: string; ipExternalCountry: string; ipExternalPort: number; localUrl: string; localUrlSecure: string; remoteUrl: string; apiVersion: number; softwareVersion: string; language: string; state: string; geolocation: object; users: Array; role: string; token: string; apps: Array; devices: Array; eMMCestLifeTimeA: number; eMMCestLifeTimeB: number; eMMCpreEOLInfo: number; }; }): Promise; getHomey(opts: { id: string }): Promise; updateHomey(opts: { id: string; homey: { name: string; ipInternal: string; ipExternal: string; ipExternalCountry: string; ipExternalPort: number; localUrl: string; localUrlSecure: string; remoteUrl: string; apiVersion: number; softwareVersion: string; language: string; state: string; geolocation: object; users: Array; role: string; token: string; apps: Array; devices: Array; eMMCestLifeTimeA: number; eMMCestLifeTimeB: number; eMMCpreEOLInfo: number; }; }): Promise; deleteHomey(opts: { id: string }): Promise; activateHomey(opts: { id: string; userId?: string; }): Promise; addHomeyLicense(opts: { homeyId: string; license: string; }): Promise; createHomeyUser(opts: { homeyId: string; user?: string; role?: string; token?: string; }): Promise; deleteHomeyUser(opts: { homeyId: string; userId: string; }): Promise; resetHomeyUsers(opts: { homeyId: string }): Promise; getAllHomeyMetadata(opts: { homeyId: string }): Promise; getHomeyMetadata(opts: { homeyId: string; key: string; }): Promise; createHomeyMetadata(opts: { homeyId: string; key: string; value?: object; }): Promise; updateHomeyMetadata(opts: { homeyId: string; key: string; value?: object; }): Promise; deleteHomeyMetadata(opts: { homeyId: string; key: string; }): Promise; updateHomeySendConnectionNotifications(opts: { homeyId: string; push?: boolean; email?: boolean; }): Promise; createHomeySelfHostedServer(): Promise; deleteHomeySelfHostedServer(opts: { homeyId: string }): Promise; updateHomeySelfHostedServerSubscription(opts: { homeyId: string; type?: string; expiresAt?: string; shopifyContractId?: string; }): Promise; transferHomeySelfHostedServerLifetimeLicense(opts: { homeyId: string; newHomeyId?: string; }): Promise; updateHomeySelfHostedServerCustomHostname(opts: { homeyId: string; customHostname?: string; }): Promise; deleteHomeySelfHostedServerCustomHostname(opts: { homeyId: string; }): Promise; expireSelfHostedServerSubscriptions(): Promise; sendFormattedEmail(opts: { to?: string; toHomeyOwner?: string; from?: string; subject?: string; body?: string; replyTo?: string; logo?: object; header?: object; button?: object; }): Promise; subscribeUserToMailChimp(opts: { listId?: string; userId?: string; tags?: Array; }): Promise; upsertUserToMailChimp(opts: { listId?: string; userId?: string; tags?: Array; }): Promise; addTagToMailChimpUser(opts: { listId?: string; userId?: string; tag?: string; }): Promise; removeTagFromMailChimpUser(opts: { tag: string; listId: string; userId: string; }): Promise; getPortals(opts: { serial?: string }): Promise; createPortal(opts: { portal?: { serial: string; build: number; manufacturedAt: string; activationHistory: Array; model: string; }; }): Promise; getPortal(opts: { serial: string }): Promise; updatePortal(opts: { serial: string; portal?: { serial: string; build: number; manufacturedAt: string; activationHistory: Array; model: string; }; }): Promise; activatePortal(opts: { serial: string; homeyId?: string; userId?: string; }): Promise; getAppInstallsStatistics(): Promise; getAppDriversStatistics(): Promise; getLocationStatistics(opts: { since?: number }): Promise; getVersionStatistics(): Promise; getProductionStatistics(opts: { min?: string; max?: string; }): Promise; getHomeyOwnerContactDetails(opts: { softwareVersion?: string; homeyId?: string; homeySn?: string; barcodeMin?: string; barcodeMax?: string; appId?: string; appChannel?: string; appVersion?: string; page?: number; }): Promise; isLoggedIn(): Promise; getAuthenticatedUser(opts?: { $cache?: object }): Promise; hasAuthorizationCode(): boolean; getLoginUrl(opts?: { state?: string; scopes?: Array; }): string; logout(): Promise; authenticateWithAuthorizationCode(opts?: { code: String; removeCodeFromHistory?: Boolean; }): Promise; updateUserMe(opts?: { firstname?: String; lastname?: String; email?: String; }): Promise; updateUserMeAvatar( imageBuffer: Buffer, imageType: "jpg" | "jpeg" | "png" | "gif", ): Promise; } export class AthomConnectAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); ping(opts: { homeyId: string }): Promise; acceptSharingRequest(opts: { homeyId: string; athomId?: string; inviteToken?: string; }): Promise; confirmPushNotification(opts: { homeyId: string; pushId: string; choice?: string; }): Promise; sendMobileEvent(opts: { homeyId?: string; deviceId?: string; userId?: string; message?: string; signature?: string; }): Promise; sendOAuth2Callback(opts: { homeyId: string; code?: string; token?: string; }): Promise; sendWebhook(opts: { homeyId: string; webhookId: string; args?: object; }): Promise; ping(opts: { homeyId: string }): Promise; acceptSharingRequest(opts: { homeyId: string; athomId?: string; inviteToken?: string; }): Promise; confirmPushNotification(opts: { homeyId: string; pushId: string; choice?: string; }): Promise; sendMobileEvent(opts: { homeyId?: string; deviceId?: string; userId?: string; message?: string; signature?: string; }): Promise; sendOAuth2Callback(opts: { homeyId: string; code?: string; token?: string; }): Promise; sendWebhook(opts: { homeyId: string; webhookId: string; args?: object; }): Promise; } export class AthomDeviceFirmwareAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getFirmwareURL(opts: { integrity: string; noCache?: boolean; sourceUrl?: string; homeyTag?: string; $timeout?: number; }): Promise<{ url: string; cache: string }>; getFirmwareURL(opts: { integrity: string; noCache?: boolean; sourceUrl?: string; homeyTag?: string; $timeout?: number; }): Promise<{ url: string; cache: string }>; } export class AthomDNSAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getHomeyCertificate(opts: { secret: string }): Promise; getHomeyCertificate(opts: { secret: string }): Promise; } export class AthomEnergyAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getZone(opts: { latitude: string; longitude: string; secret?: string; }): Promise; getZones(opts: { secret?: string }): Promise; getDayAheadPricesElectricity(opts: { zoneId: string; zoneVersion: string; date: string; timezone: string; currency?: string; interval?: string; secret?: string; }): Promise; getZone(opts: { latitude: string; longitude: string; secret?: string; }): Promise; getZones(opts: { secret?: string }): Promise; getDayAheadPricesElectricity(opts: { zoneId: string; zoneVersion: string; date: string; timezone: string; currency?: string; interval?: string; secret?: string; }): Promise; } export class AthomFirmwareAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getUpdatesChangelog(): Promise; getUpdatesChangelog(): Promise; } export class AthomFlowAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); shareFlow(opts: { data: object }): Promise; getFlow(opts: { flowId: string }): Promise; shareFlow(opts: { data: object }): Promise; getFlow(opts: { flowId: string }): Promise; } export class AthomGeolocateAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getLocation(opts: { homeyId?: string; homeyIP?: string; towers?: Array; }): Promise; getLocation(opts: { homeyId?: string; homeyIP?: string; towers?: Array; }): Promise; } export class AthomIconsAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getIconAsBuffer(opts: { iconId: String; size: Number; }): Promise; getIconAsStream(opts: { iconId: String; size: Number; }): Promise; createIconFromSVG(opts: { svg: String }): Promise; createIconFromURL(opts: { url: String }): Promise; getIconAsBuffer(opts: { iconId: String; size: Number; }): Promise; getIconAsStream(opts: { iconId: String; size: Number; }): Promise; createIconFromSVG(opts: { svg: String }): Promise; createIconFromURL(opts: { url: String }): Promise; } export class AthomInfraredAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getBrands(opts: { type?: string }): Promise; getTypes(opts: { brand?: string }): Promise; searchDevices(opts: { query: string }): Promise; getDevices(opts: { name?: string; type?: string; brand?: string; }): Promise; getDevice(opts: { deviceId: string; secret: string; }): Promise; getBrands(opts: { type?: string }): Promise; getTypes(opts: { brand?: string }): Promise; searchDevices(opts: { query: string }): Promise; getDevices(opts: { name?: string; type?: string; brand?: string; }): Promise; getDevice(opts: { deviceId: string; secret: string; }): Promise; } export class AthomNotificationsAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); push(opts: { secret: string; batch?: Array; data?: object; }): Promise; push(opts: { secret: string; batch?: Array; data?: object; }): Promise; } export class AthomSetupAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); createSession(): Promise; getSession(opts: { sessionId: string }): Promise; updateSession(opts: { sessionId: string; data: { sn: string; }; }): Promise; deleteSession(opts: { sessionId: string }): Promise; getSessionState(opts: { sessionId: string }): Promise; setSessionState(opts: { sessionId: string; data: { state: string; }; }): Promise; getSessionCommands(opts: { sessionId: string }): Promise; createSessionCommand(opts: { sessionId: string; manager?: string; command?: string; args?: object; }): Promise; updateSessionCommandResponse(opts: { sessionId: string; commandId: string; result?: Array; }): Promise; loginByDelegationToken(opts: { sessionId: string; data: { token: string; }; }): Promise; updateSessionHomey(opts: { sessionId: string; data: { factoryreset: boolean; name: string; token: string; extraProperties: object; }; }): Promise; getSessionVoice(opts: { sessionId: string; language: string; }): Promise; getSessionBackups(opts: { sessionId: string }): Promise; getTimezone(): Promise; createSession(): Promise; getSession(opts: { sessionId: string }): Promise; updateSession(opts: { sessionId: string; data: { sn: string; }; }): Promise; deleteSession(opts: { sessionId: string }): Promise; getSessionState(opts: { sessionId: string }): Promise; setSessionState(opts: { sessionId: string; data: { state: string; }; }): Promise; getSessionCommands(opts: { sessionId: string }): Promise; createSessionCommand(opts: { sessionId: string; manager?: string; command?: string; args?: object; }): Promise; updateSessionCommandResponse(opts: { sessionId: string; commandId: string; result?: Array; }): Promise; loginByDelegationToken(opts: { sessionId: string; data: { token: string; }; }): Promise; updateSessionHomey(opts: { sessionId: string; data: { factoryreset: boolean; name: string; token: string; extraProperties: object; }; }): Promise; getSessionVoice(opts: { sessionId: string; language: string; }): Promise; getSessionBackups(opts: { sessionId: string }): Promise; getTimezone(): Promise; } export class AthomSolarForecastAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getSolarForecast(opts: { secret: string; lat: number; lng: number; strategy?: string; panels?: Array; }): Promise; getSolarForecast(opts: { secret: string; lat: number; lng: number; strategy?: string; panels?: Array; }): Promise; } export class AthomStoreAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getOrders(): Promise; verifySubscription(opts: { token?: string; sku?: string; packageName?: string; receipt?: string; }): Promise; deferSubscription(opts: { sku?: string; packageName?: string; athomId?: string; quantity?: number; duration?: string; }): Promise; restoreSubscriptions(): Promise; getExpiredSubscriptions(opts: { users?: Array; secret: string; }): Promise; verifyOneTimePurchase(opts: { homeyId?: string; token?: string; sku?: string; packageName?: string; receipt?: string; orderId?: string; }): Promise; getOffer(opts: { offerId: string }): Promise; redeemReferAFriend(opts: { paymentProvider?: string; inviterId?: string; }): Promise; redeemOffer(opts: { offerId: string; paymentProvider?: string; }): Promise; createOfferCouponApple(opts: { secret: string; coupon?: string; expiresAt?: string; subscriptionType?: string; subscriptionQuantity?: number; subscriptionDuration?: string; newCustomersOnly?: boolean; }): Promise; getOffers(): Promise; createOffer(opts: { secret: string; userId?: string; expiresAt?: string; campaignId?: string; subscriptionType?: string; subscriptionQuantity?: number; subscriptionDuration?: string; }): Promise; createCoupon(opts: { secret: string; couponCode?: string; expiresAt?: string; campaignId?: string; subscriptionType?: string; subscriptionQuantity?: number; subscriptionDuration?: string; maxRedeems?: number; }): Promise; redeemCoupon(opts: { couponCode: string }): Promise; getOrders(): Promise; verifySubscription(opts: { token?: string; sku?: string; packageName?: string; receipt?: string; }): Promise; deferSubscription(opts: { sku?: string; packageName?: string; athomId?: string; quantity?: number; duration?: string; }): Promise; restoreSubscriptions(): Promise; getExpiredSubscriptions(opts: { users?: Array; secret: string; }): Promise; verifyOneTimePurchase(opts: { homeyId?: string; token?: string; sku?: string; packageName?: string; receipt?: string; orderId?: string; }): Promise; getOffer(opts: { offerId: string }): Promise; redeemReferAFriend(opts: { paymentProvider?: string; inviterId?: string; }): Promise; redeemOffer(opts: { offerId: string; paymentProvider?: string; }): Promise; createOfferCouponApple(opts: { secret: string; coupon?: string; expiresAt?: string; subscriptionType?: string; subscriptionQuantity?: number; subscriptionDuration?: string; newCustomersOnly?: boolean; }): Promise; getOffers(): Promise; createOffer(opts: { secret: string; userId?: string; expiresAt?: string; campaignId?: string; subscriptionType?: string; subscriptionQuantity?: number; subscriptionDuration?: string; }): Promise; createCoupon(opts: { secret: string; couponCode?: string; expiresAt?: string; campaignId?: string; subscriptionType?: string; subscriptionQuantity?: number; subscriptionDuration?: string; maxRedeems?: number; }): Promise; redeemCoupon(opts: { couponCode: string }): Promise; } export class AthomWeatherAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getWeather(opts: { latitude: string; longitude: string; homey: string; language?: string; }): Promise; getWeather(opts: { latitude: string; longitude: string; homey: string; language?: string; }): Promise; } export class AthomWebhooksAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getWebhooks(opts: { token: string }): Promise; createWebhook(opts: { token: string; name?: string; fn?: string; keyPath?: string; }): Promise; getWebhook(opts: { token: string; webhookId: string; }): Promise; updateWebhook(opts: { token: string; webhookId: string; name?: string; fn?: string; keyPath?: string; }): Promise; deleteWebhook(opts: { token: string; webhookId: string; }): Promise; registerWebhookClient(opts: { webhookId: string; homeyId: string; secret?: string; data?: object; callback_url?: string; }): Promise; unregisterWebhookClient(opts: { webhookId: string; homeyId: string; }): Promise; getWebhooks(opts: { token: string }): Promise; createWebhook(opts: { token: string; name?: string; fn?: string; keyPath?: string; }): Promise; getWebhook(opts: { token: string; webhookId: string; }): Promise; updateWebhook(opts: { token: string; webhookId: string; name?: string; fn?: string; keyPath?: string; }): Promise; deleteWebhook(opts: { token: string; webhookId: string; }): Promise; registerWebhookClient(opts: { webhookId: string; homeyId: string; secret?: string; data?: object; callback_url?: string; }): Promise; unregisterWebhookClient(opts: { webhookId: string; homeyId: string; }): Promise; } export class EventEmitter { emit( event: string, data: any, ): any; addListener( event: string, callback: Function, ): any; on( event: string, callback: Function, ): any; once( event: string, callback: Function, ): any; off( event: string, callback: Function, ): any; removeListener( event: string, callback: Function, ): any; removeAllListeners(event?: string): any; emit( event: string, data: any, ): any; addListener( event: string, callback: Function, ): any; on( event: string, callback: Function, ): any; once( event: string, callback: Function, ): any; off( event: string, callback: Function, ): any; removeListener( event: string, callback: Function, ): any; removeAllListeners(event?: string): any; } export class HomeyAPI { __(input: { en: string; nl: string; }): string | null; hasRole(roleId: string): any; static createAppAPI(opts: { homey: Homey; debug?: Function | null; }): Promise; static createLocalAPI(opts: { address: String; token: String; debug: Function | null; }): Promise; } export class HomeyAPIV1 extends HomeyAPI {} export class HomeyAPIV2 extends HomeyAPIV3 {} export class HomeyAPIV3 extends HomeyAPI { isConnected(): Boolean; __(input: { en: string; nl: string; }): string | null; hasRole(roleId: string): any; } export class HomeyAPIV3Cloud extends HomeyAPIV3 { isConnected(): Boolean; __(input: { en: string; nl: string; }): string | null; hasRole(roleId: string): any; } export class HomeyAPIV3Local extends HomeyAPIV3 { isConnected(): Boolean; __(input: { en: string; nl: string; }): string | null; hasRole(roleId: string): any; } export class HomeyCloudAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; region: string; }); getSystemStatus(opts: { secret: string }): Promise; getSystemStatus(opts: { secret: string }): Promise; static getClosestRegion(): object; static getClosestRegion(): object; } export class Util { static fetch( args: string, options?: Object, timeoutDuration?: number, timeoutMessage?: string, patchOptions?: Function, ): Promise; static wait(ms: number): Promise; static timeout( promise: Promise, timeoutMillis?: number, message?: string, ): Promise; static benchmark(): Function; static isHTTPUnsecureSupported(): boolean; static isReactNative(): boolean; static isBrowser(): boolean; static isNodeJS(): boolean; static getSearchParameter(name: string): string | null; static base64(input: string): string; static uuid(): string; static env(): string; static serializeQueryObject(queryObject: object): string; static encodeUrlSearchParams(params: object): string; static fetch( args: string, options?: Object, timeoutDuration?: number, timeoutMessage?: string, patchOptions?: Function, ): Promise; static wait(ms: number): Promise; static timeout( promise: Promise, timeoutMillis?: number, message?: string, ): Promise; static benchmark(): Function; static isHTTPUnsecureSupported(): boolean; static isReactNative(): boolean; static isBrowser(): boolean; static isNodeJS(): boolean; static getSearchParameter(name: string): string | null; static base64(input: string): string; static uuid(): string; static env(): string; static serializeQueryObject(queryObject: object): string; static encodeUrlSearchParams(params: object): string; } export class APIDefinition {} export class APIError extends Error { constructor( message: string, statusCode: number, ); message: string; statusCode: number; message: string; message: string; message: string; statusCode: number; message: string; message: string; } export class APIErrorHomeyInvalidSerialNumber extends APIError { statusCode: number; statusCode: number; message: string; } export class APIErrorHomeyOffline extends APIError { message: string; statusCode: number; } export class APIErrorHomeySubscriptionInactive extends APIError { statusCode: number; statusCode: number; message: string; } export class APIErrorNotFound extends APIError { message: string; statusCode: number; } export class APIErrorTimeout extends APIError { message: string; statusCode: number; } export class AthomAppsAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); updateArchive(opts: { archiveId: string; state?: string; error?: string; manifest?: object; assetsId?: string; hash?: string; size?: number; }): Promise; getApps(opts: { page?: number; count?: number; category?: string; author?: string; }): Promise; searchApps(opts: { query: string; language?: string; homeyVersion?: string; homeyPlatform?: string; homeyPlatformVersion?: string; homeyModel?: string; }): Promise; searchAppsBy433MhzSignal(opts: { language?: string; homeyVersion?: string; homeyPlatform?: string; recordings?: Array; }): Promise; searchZigbeeDriver(opts: { language?: string; homeyVersion?: string; homeyPlatform?: string; homeyMinimumSdkVersion?: number; productId?: string; manufacturerName?: string; }): Promise; searchZwaveDriver(opts: { language?: string; homeyVersion?: string; homeyPlatform?: string; homeyMinimumSdkVersion?: number; productId?: number; productTypeId?: number; manufacturerId?: number; }): Promise; searchMatterDriver(opts: { language?: string; homeyVersion?: string; homeyPlatform?: string; homeyMinimumSdkVersion?: number; productId?: number; vendorId?: number; }): Promise; browseApps(opts: { query?: string; language?: string; platform?: Array; connectivity?: Array; category?: Array; features?: Array; limit?: number; offset?: number; }): Promise; syncApps(): Promise; getAppsSummary(opts: { secret: string }): Promise; getHighlightedApps(opts: { platforms?: string }): Promise; getHighlightedAppsV2(opts: { platform?: Array; language?: string; tags?: Array; }): Promise; getMyApps(): Promise; getAllLiveAppIDs(): Promise; getAllLiveApps(): Promise; getReviewApps(): Promise; getApp(opts: { appId: string }): Promise; deleteApp(opts: { appId: string }): Promise; getAppSettings(opts: { appId: string }): Promise; updateAppSettings(opts: { appId: string; sendEmailCrash?: boolean; sendEmailSuggestion?: boolean; sendEmailThanks?: boolean; }): Promise; getAppChangelog(opts: { appId: string }): Promise; updateAppAuthor(opts: { appId: string; userId?: string; }): Promise; transferAppToOrganization(opts: { appId: string; orgId?: string; }): Promise; getAppIcon(opts: { appId: string }): Promise; getAppInstall(opts: { appId: string; channel?: string; version?: string; secret: string; }): Promise; getAppInstallStats(opts: { appId: string }): Promise; getAppPageviews(opts: { appId: string }): Promise; getAppDriversStats(opts: { appId: string }): Promise; getBuilds(opts: { appId: string }): Promise; createBuild(opts: { appId: string; version?: string; env?: object; changelog?: object; readme?: object; }): Promise; getBuild(opts: { appId: string; buildId: string; }): Promise; getAgentReview(opts: { appId: string; buildId: string; }): Promise; retryAgentReview(opts: { appId: string; buildId: string; }): Promise; getCrashes(opts: { appId: string; buildId: string; }): Promise; getCrashesStats(opts: { appId: string; buildId: string; }): Promise; updateBuildChannel(opts: { appId: string; buildId: string; channel?: string; }): Promise; createSubmission(opts: { appId: string; buildId: string; autoRelease?: boolean; }): Promise; getSubmissionComments(opts: { appId: string; buildId: string; }): Promise; createSubmissionComment(opts: { appId: string; buildId: string; text?: string; }): Promise; retractSubmission(opts: { appId: string; buildId: string; }): Promise; approveSubmission(opts: { appId: string; buildId: string; }): Promise; rejectSubmission(opts: { appId: string; buildId: string; }): Promise; getReviews(opts: { appId: string }): Promise; updateReview(opts: { appId: string; version?: string; rating?: number; comment?: string; }): Promise; deleteReview(opts: { appId: string }): Promise; getThanks(opts: { appId: string }): Promise; sayThanks(opts: { appId: string }): Promise; getReviewsStats(opts: { appId: string }): Promise; deleteAllReviews(opts: { appId: string }): Promise; updateReviewResponse(opts: { appId: string; userId: string; response?: string; }): Promise; deleteReviewResponse(opts: { appId: string; userId: string; }): Promise; createCrash(opts: { appId: string; appVersion?: string; homeyId?: string; homeyVersion?: string; homeyModelId?: string; homeyModelName?: string; stack?: string; }): Promise; replyToCrash(opts: { crashId: string; subject?: string; body?: string; from?: string; }): Promise; discoverApps(opts: { ssdp?: Array; ble?: Array; mac?: Array; }): Promise; getAppSuggestions(opts: { appId: string; offset?: number; length?: number; }): Promise; createAppSuggestion(opts: { appId: string; suggestionText?: string; }): Promise; getMyOrganizations(): Promise; createOrganization(opts: { name?: string }): Promise; getOrganization(opts: { orgId: string }): Promise; deleteOrganization(opts: { orgId: string }): Promise; updateOrganizationName(opts: { orgId: string; name?: string; }): Promise; inviteMemberToOrganization(opts: { orgId: string; email?: string; role?: string; }): Promise; acceptMemberInviteToOrganization(opts: { orgId: string; inviteToken?: string; }): Promise; updateMemberRoleInOrganization(opts: { orgId: string; memberId: string; role?: string; }): Promise; removeMemberFromOrganization(opts: { orgId: string; memberId: string; }): Promise; updateArchive(opts: { archiveId: string; state?: string; error?: string; manifest?: object; assetsId?: string; hash?: string; size?: number; }): Promise; getApps(opts: { page?: number; count?: number; category?: string; author?: string; }): Promise; searchApps(opts: { query: string; language?: string; homeyVersion?: string; homeyPlatform?: string; homeyPlatformVersion?: string; homeyModel?: string; }): Promise; searchAppsBy433MhzSignal(opts: { language?: string; homeyVersion?: string; homeyPlatform?: string; recordings?: Array; }): Promise; searchZigbeeDriver(opts: { language?: string; homeyVersion?: string; homeyPlatform?: string; homeyMinimumSdkVersion?: number; productId?: string; manufacturerName?: string; }): Promise; searchZwaveDriver(opts: { language?: string; homeyVersion?: string; homeyPlatform?: string; homeyMinimumSdkVersion?: number; productId?: number; productTypeId?: number; manufacturerId?: number; }): Promise; searchMatterDriver(opts: { language?: string; homeyVersion?: string; homeyPlatform?: string; homeyMinimumSdkVersion?: number; productId?: number; vendorId?: number; }): Promise; browseApps(opts: { query?: string; language?: string; platform?: Array; connectivity?: Array; category?: Array; features?: Array; limit?: number; offset?: number; }): Promise; syncApps(): Promise; getAppsSummary(opts: { secret: string }): Promise; getHighlightedApps(opts: { platforms?: string }): Promise; getHighlightedAppsV2(opts: { platform?: Array; language?: string; tags?: Array; }): Promise; getMyApps(): Promise; getAllLiveAppIDs(): Promise; getAllLiveApps(): Promise; getReviewApps(): Promise; getApp(opts: { appId: string }): Promise; deleteApp(opts: { appId: string }): Promise; getAppSettings(opts: { appId: string }): Promise; updateAppSettings(opts: { appId: string; sendEmailCrash?: boolean; sendEmailSuggestion?: boolean; sendEmailThanks?: boolean; }): Promise; getAppChangelog(opts: { appId: string }): Promise; updateAppAuthor(opts: { appId: string; userId?: string; }): Promise; transferAppToOrganization(opts: { appId: string; orgId?: string; }): Promise; getAppIcon(opts: { appId: string }): Promise; getAppInstall(opts: { appId: string; channel?: string; version?: string; secret: string; }): Promise; getAppInstallStats(opts: { appId: string }): Promise; getAppPageviews(opts: { appId: string }): Promise; getAppDriversStats(opts: { appId: string }): Promise; getBuilds(opts: { appId: string }): Promise; createBuild(opts: { appId: string; version?: string; env?: object; changelog?: object; readme?: object; }): Promise; getBuild(opts: { appId: string; buildId: string; }): Promise; getAgentReview(opts: { appId: string; buildId: string; }): Promise; retryAgentReview(opts: { appId: string; buildId: string; }): Promise; getCrashes(opts: { appId: string; buildId: string; }): Promise; getCrashesStats(opts: { appId: string; buildId: string; }): Promise; updateBuildChannel(opts: { appId: string; buildId: string; channel?: string; }): Promise; createSubmission(opts: { appId: string; buildId: string; autoRelease?: boolean; }): Promise; getSubmissionComments(opts: { appId: string; buildId: string; }): Promise; createSubmissionComment(opts: { appId: string; buildId: string; text?: string; }): Promise; retractSubmission(opts: { appId: string; buildId: string; }): Promise; approveSubmission(opts: { appId: string; buildId: string; }): Promise; rejectSubmission(opts: { appId: string; buildId: string; }): Promise; getReviews(opts: { appId: string }): Promise; updateReview(opts: { appId: string; version?: string; rating?: number; comment?: string; }): Promise; deleteReview(opts: { appId: string }): Promise; getThanks(opts: { appId: string }): Promise; sayThanks(opts: { appId: string }): Promise; getReviewsStats(opts: { appId: string }): Promise; deleteAllReviews(opts: { appId: string }): Promise; updateReviewResponse(opts: { appId: string; userId: string; response?: string; }): Promise; deleteReviewResponse(opts: { appId: string; userId: string; }): Promise; createCrash(opts: { appId: string; appVersion?: string; homeyId?: string; homeyVersion?: string; homeyModelId?: string; homeyModelName?: string; stack?: string; }): Promise; replyToCrash(opts: { crashId: string; subject?: string; body?: string; from?: string; }): Promise; discoverApps(opts: { ssdp?: Array; ble?: Array; mac?: Array; }): Promise; getAppSuggestions(opts: { appId: string; offset?: number; length?: number; }): Promise; createAppSuggestion(opts: { appId: string; suggestionText?: string; }): Promise; getMyOrganizations(): Promise; createOrganization(opts: { name?: string }): Promise; getOrganization(opts: { orgId: string }): Promise; deleteOrganization(opts: { orgId: string }): Promise; updateOrganizationName(opts: { orgId: string; name?: string; }): Promise; inviteMemberToOrganization(opts: { orgId: string; email?: string; role?: string; }): Promise; acceptMemberInviteToOrganization(opts: { orgId: string; inviteToken?: string; }): Promise; updateMemberRoleInOrganization(opts: { orgId: string; memberId: string; role?: string; }): Promise; removeMemberFromOrganization(opts: { orgId: string; memberId: string; }): Promise; } export class AthomBackupAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getMyBackups(opts: { token: string }): Promise; deleteMyBackup(opts: { homeyId: string; backupId: string; token: string; }): Promise; getBackups(opts: { userId: string; secret: string; }): Promise; deleteBackups(opts: { userId: string }): Promise; getBackup(opts: { userId: string; backupId: string; secret: string; }): Promise; createBackup(opts: { userId: string; homeyId: string; secret: string; homeyName?: string; homeyPlatform?: string; homeyPlatformVersion?: number; homeyModel?: string; version?: string; channel?: string; }): Promise; setBackupComplete(opts: { userId: string; homeyId: string; backupId: string; secret: string; size?: number; hash?: string; meta?: object; }): Promise; getMyBackups(opts: { token: string }): Promise; deleteMyBackup(opts: { homeyId: string; backupId: string; token: string; }): Promise; getBackups(opts: { userId: string; secret: string; }): Promise; deleteBackups(opts: { userId: string }): Promise; getBackup(opts: { userId: string; backupId: string; secret: string; }): Promise; createBackup(opts: { userId: string; homeyId: string; secret: string; homeyName?: string; homeyPlatform?: string; homeyPlatformVersion?: number; homeyModel?: string; version?: string; channel?: string; }): Promise; setBackupComplete(opts: { userId: string; homeyId: string; backupId: string; secret: string; size?: number; hash?: string; meta?: object; }): Promise; } export class AthomCallbackAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); registerCallbackUrl(opts: { callback_url?: string }): Promise; registerCallbackUrl(opts: { callback_url?: string }): Promise; } export class AthomCloudAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; clientId: string; clientSecret: string; redirectUrl: string; autoRefreshTokens?: boolean; token?: AthomCloudAPI.Token; store?: AthomCloudAPI.StorageAdapter; }); createDelegationToken(opts: { audience?: string; meta?: object; }): Promise; verifyDelegationToken(opts: { token?: string }): Promise; getDelegationTokenKey(): Promise; getAccessToken(opts: { client_id: string; client_secret: string; grant_type: string; refresh_token?: string; code?: string; username?: string; password?: string; }): Promise; forgotPassword(opts: { email?: string }): Promise; createUser(opts: { user: { firstname: string; lastname: string; email: string; password: string; language: string; }; newsletter?: boolean; gettingStarted?: boolean; }): Promise; getUser(opts: { id: string }): Promise; updateUser(opts: { id: string; user: { firstname: string; lastname: string; email: string; language: string; roles: Array; roleIds: Array; avatar: undefined; homeys: Array; devices: Array; }; }): Promise; deleteUser(opts: { id: string; password?: string; }): Promise; createUserDevice(opts: { userId: string; device: { name: string; platform: string; token: string; publicKey: string; appVersion: string; osVersion: string; created: string; updated: string; devmode: boolean; }; }): Promise; updateUserDevice(opts: { userId: string; deviceId: string; device: { name: string; platform: string; token: string; publicKey: string; appVersion: string; osVersion: string; created: string; updated: string; devmode: boolean; }; }): Promise; deleteUserDevice(opts: { userId: string; deviceId: string; }): Promise; getUserAddresses(opts: { userId: string }): Promise; addUserAddress(opts: { userId: string; address?: { street: string; number: string; zipcode: string; city: string; state: string; country: string; extra: string; firstname: string; lastname: string; }; }): Promise; updateUserAddress(opts: { userId: string; addressId: string; address?: { street: string; number: string; zipcode: string; city: string; state: string; country: string; extra: string; firstname: string; lastname: string; }; }): Promise; deleteUserAddress(opts: { userId: string; addressId: string; }): Promise; updateUserSubscription(opts: { userId: string; subscriptionId: string; subscription?: undefined; }): Promise; deleteUserSubscription(opts: { userId: string; subscriptionId: string; }): Promise; addRoleAppDeveloperTrusted(opts: { userId: string }): Promise; removeRoleAppDeveloperTrusted(opts: { userId: string }): Promise; addRoleCertifiedInstaller(opts: { userId: string }): Promise; getAuthenticatedUser(opts: { additionalScopes?: string }): Promise; getAcceptedInvites(): Promise; getPersonalAccessTokenApps(): Promise; deletePersonalAccessTokenApps(): Promise; updateAuthenticatedUserPassword(opts: { password?: string; old_password?: string; }): Promise; getUserProfile(opts: { userId: string }): Promise; getUserSessions(opts: { userId: string }): Promise; deleteUserSession(opts: { userId: string; sessionId: string; }): Promise; acceptInvite(opts: { userId: string; inviterId: string; }): Promise; getAuthenticatedUserNewsletterStatus(): Promise; subscribeAuthenticatedUserToNewsletter(opts: { language?: string; }): Promise; unsubscribeAuthenticatedUserFromNewsletter(): Promise; getInstallerInformation(opts: { userId: string }): Promise; updateInstallerInformation(opts: { userId: string; website?: string; email?: string; phone?: string; }): Promise; getAuthenticatedUserClients(): Promise; createAuthenticatedUserClient(opts: { name?: string; redirectUri?: Array; scopes?: Array; }): Promise; updateAuthenticatedUserClient(opts: { id: string; name?: string; redirectUri?: Array; scopes?: Array; }): Promise; deleteAuthenticatedUserClient(opts: { id: string }): Promise; getBridges(opts: { serial?: string; serialHash?: string; }): Promise; createBridge(opts: { bridge?: { serial: string; build: number; zwaveCalibration: Array; manufacturedAt: string; activationHistory: Array; model: string; }; }): Promise; getBridge(opts: { serial: string }): Promise; updateBridge(opts: { serial: string; bridge?: { serial: string; build: number; zwaveCalibration: Array; manufacturedAt: string; activationHistory: Array; model: string; }; }): Promise; activateBridge(opts: { serial: string; homeyId?: string; userId?: string; }): Promise; getHomeys(opts: { serial?: string; softwareVersion?: string; search?: string; page?: string; }): Promise; createHomey(opts: { data?: { name: string; ipInternal: string; ipExternal: string; ipExternalCountry: string; ipExternalPort: number; localUrl: string; localUrlSecure: string; remoteUrl: string; apiVersion: number; softwareVersion: string; language: string; state: string; geolocation: object; users: Array; role: string; token: string; apps: Array; devices: Array; eMMCestLifeTimeA: number; eMMCestLifeTimeB: number; eMMCpreEOLInfo: number; }; }): Promise; getHomey(opts: { id: string }): Promise; updateHomey(opts: { id: string; homey: { name: string; ipInternal: string; ipExternal: string; ipExternalCountry: string; ipExternalPort: number; localUrl: string; localUrlSecure: string; remoteUrl: string; apiVersion: number; softwareVersion: string; language: string; state: string; geolocation: object; users: Array; role: string; token: string; apps: Array; devices: Array; eMMCestLifeTimeA: number; eMMCestLifeTimeB: number; eMMCpreEOLInfo: number; }; }): Promise; deleteHomey(opts: { id: string }): Promise; activateHomey(opts: { id: string; userId?: string; }): Promise; addHomeyLicense(opts: { homeyId: string; license: string; }): Promise; createHomeyUser(opts: { homeyId: string; user?: string; role?: string; token?: string; }): Promise; deleteHomeyUser(opts: { homeyId: string; userId: string; }): Promise; resetHomeyUsers(opts: { homeyId: string }): Promise; getAllHomeyMetadata(opts: { homeyId: string }): Promise; getHomeyMetadata(opts: { homeyId: string; key: string; }): Promise; createHomeyMetadata(opts: { homeyId: string; key: string; value?: object; }): Promise; updateHomeyMetadata(opts: { homeyId: string; key: string; value?: object; }): Promise; deleteHomeyMetadata(opts: { homeyId: string; key: string; }): Promise; updateHomeySendConnectionNotifications(opts: { homeyId: string; push?: boolean; email?: boolean; }): Promise; createHomeySelfHostedServer(): Promise; deleteHomeySelfHostedServer(opts: { homeyId: string }): Promise; updateHomeySelfHostedServerSubscription(opts: { homeyId: string; type?: string; expiresAt?: string; shopifyContractId?: string; }): Promise; transferHomeySelfHostedServerLifetimeLicense(opts: { homeyId: string; newHomeyId?: string; }): Promise; updateHomeySelfHostedServerCustomHostname(opts: { homeyId: string; customHostname?: string; }): Promise; deleteHomeySelfHostedServerCustomHostname(opts: { homeyId: string; }): Promise; expireSelfHostedServerSubscriptions(): Promise; sendFormattedEmail(opts: { to?: string; toHomeyOwner?: string; from?: string; subject?: string; body?: string; replyTo?: string; logo?: object; header?: object; button?: object; }): Promise; subscribeUserToMailChimp(opts: { listId?: string; userId?: string; tags?: Array; }): Promise; upsertUserToMailChimp(opts: { listId?: string; userId?: string; tags?: Array; }): Promise; addTagToMailChimpUser(opts: { listId?: string; userId?: string; tag?: string; }): Promise; removeTagFromMailChimpUser(opts: { tag: string; listId: string; userId: string; }): Promise; getPortals(opts: { serial?: string }): Promise; createPortal(opts: { portal?: { serial: string; build: number; manufacturedAt: string; activationHistory: Array; model: string; }; }): Promise; getPortal(opts: { serial: string }): Promise; updatePortal(opts: { serial: string; portal?: { serial: string; build: number; manufacturedAt: string; activationHistory: Array; model: string; }; }): Promise; activatePortal(opts: { serial: string; homeyId?: string; userId?: string; }): Promise; getAppInstallsStatistics(): Promise; getAppDriversStatistics(): Promise; getLocationStatistics(opts: { since?: number }): Promise; getVersionStatistics(): Promise; getProductionStatistics(opts: { min?: string; max?: string; }): Promise; getHomeyOwnerContactDetails(opts: { softwareVersion?: string; homeyId?: string; homeySn?: string; barcodeMin?: string; barcodeMax?: string; appId?: string; appChannel?: string; appVersion?: string; page?: number; }): Promise; isLoggedIn(): Promise; getAuthenticatedUser(opts?: { $cache?: object }): Promise; hasAuthorizationCode(): boolean; getLoginUrl(opts?: { state?: string; scopes?: Array; }): string; logout(): Promise; authenticateWithAuthorizationCode(opts?: { code: String; removeCodeFromHistory?: Boolean; }): Promise; updateUserMe(opts?: { firstname?: String; lastname?: String; email?: String; }): Promise; updateUserMeAvatar( imageBuffer: Buffer, imageType: "jpg" | "jpeg" | "png" | "gif", ): Promise; createDelegationToken(opts: { audience?: string; meta?: object; }): Promise; verifyDelegationToken(opts: { token?: string }): Promise; getDelegationTokenKey(): Promise; getAccessToken(opts: { client_id: string; client_secret: string; grant_type: string; refresh_token?: string; code?: string; username?: string; password?: string; }): Promise; forgotPassword(opts: { email?: string }): Promise; createUser(opts: { user: { firstname: string; lastname: string; email: string; password: string; language: string; }; newsletter?: boolean; gettingStarted?: boolean; }): Promise; getUser(opts: { id: string }): Promise; updateUser(opts: { id: string; user: { firstname: string; lastname: string; email: string; language: string; roles: Array; roleIds: Array; avatar: undefined; homeys: Array; devices: Array; }; }): Promise; deleteUser(opts: { id: string; password?: string; }): Promise; createUserDevice(opts: { userId: string; device: { name: string; platform: string; token: string; publicKey: string; appVersion: string; osVersion: string; created: string; updated: string; devmode: boolean; }; }): Promise; updateUserDevice(opts: { userId: string; deviceId: string; device: { name: string; platform: string; token: string; publicKey: string; appVersion: string; osVersion: string; created: string; updated: string; devmode: boolean; }; }): Promise; deleteUserDevice(opts: { userId: string; deviceId: string; }): Promise; getUserAddresses(opts: { userId: string }): Promise; addUserAddress(opts: { userId: string; address?: { street: string; number: string; zipcode: string; city: string; state: string; country: string; extra: string; firstname: string; lastname: string; }; }): Promise; updateUserAddress(opts: { userId: string; addressId: string; address?: { street: string; number: string; zipcode: string; city: string; state: string; country: string; extra: string; firstname: string; lastname: string; }; }): Promise; deleteUserAddress(opts: { userId: string; addressId: string; }): Promise; updateUserSubscription(opts: { userId: string; subscriptionId: string; subscription?: undefined; }): Promise; deleteUserSubscription(opts: { userId: string; subscriptionId: string; }): Promise; addRoleAppDeveloperTrusted(opts: { userId: string }): Promise; removeRoleAppDeveloperTrusted(opts: { userId: string }): Promise; addRoleCertifiedInstaller(opts: { userId: string }): Promise; getAuthenticatedUser(opts: { additionalScopes?: string }): Promise; getAcceptedInvites(): Promise; getPersonalAccessTokenApps(): Promise; deletePersonalAccessTokenApps(): Promise; updateAuthenticatedUserPassword(opts: { password?: string; old_password?: string; }): Promise; getUserProfile(opts: { userId: string }): Promise; getUserSessions(opts: { userId: string }): Promise; deleteUserSession(opts: { userId: string; sessionId: string; }): Promise; acceptInvite(opts: { userId: string; inviterId: string; }): Promise; getAuthenticatedUserNewsletterStatus(): Promise; subscribeAuthenticatedUserToNewsletter(opts: { language?: string; }): Promise; unsubscribeAuthenticatedUserFromNewsletter(): Promise; getInstallerInformation(opts: { userId: string }): Promise; updateInstallerInformation(opts: { userId: string; website?: string; email?: string; phone?: string; }): Promise; getAuthenticatedUserClients(): Promise; createAuthenticatedUserClient(opts: { name?: string; redirectUri?: Array; scopes?: Array; }): Promise; updateAuthenticatedUserClient(opts: { id: string; name?: string; redirectUri?: Array; scopes?: Array; }): Promise; deleteAuthenticatedUserClient(opts: { id: string }): Promise; getBridges(opts: { serial?: string; serialHash?: string; }): Promise; createBridge(opts: { bridge?: { serial: string; build: number; zwaveCalibration: Array; manufacturedAt: string; activationHistory: Array; model: string; }; }): Promise; getBridge(opts: { serial: string }): Promise; updateBridge(opts: { serial: string; bridge?: { serial: string; build: number; zwaveCalibration: Array; manufacturedAt: string; activationHistory: Array; model: string; }; }): Promise; activateBridge(opts: { serial: string; homeyId?: string; userId?: string; }): Promise; getHomeys(opts: { serial?: string; softwareVersion?: string; search?: string; page?: string; }): Promise; createHomey(opts: { data?: { name: string; ipInternal: string; ipExternal: string; ipExternalCountry: string; ipExternalPort: number; localUrl: string; localUrlSecure: string; remoteUrl: string; apiVersion: number; softwareVersion: string; language: string; state: string; geolocation: object; users: Array; role: string; token: string; apps: Array; devices: Array; eMMCestLifeTimeA: number; eMMCestLifeTimeB: number; eMMCpreEOLInfo: number; }; }): Promise; getHomey(opts: { id: string }): Promise; updateHomey(opts: { id: string; homey: { name: string; ipInternal: string; ipExternal: string; ipExternalCountry: string; ipExternalPort: number; localUrl: string; localUrlSecure: string; remoteUrl: string; apiVersion: number; softwareVersion: string; language: string; state: string; geolocation: object; users: Array; role: string; token: string; apps: Array; devices: Array; eMMCestLifeTimeA: number; eMMCestLifeTimeB: number; eMMCpreEOLInfo: number; }; }): Promise; deleteHomey(opts: { id: string }): Promise; activateHomey(opts: { id: string; userId?: string; }): Promise; addHomeyLicense(opts: { homeyId: string; license: string; }): Promise; createHomeyUser(opts: { homeyId: string; user?: string; role?: string; token?: string; }): Promise; deleteHomeyUser(opts: { homeyId: string; userId: string; }): Promise; resetHomeyUsers(opts: { homeyId: string }): Promise; getAllHomeyMetadata(opts: { homeyId: string }): Promise; getHomeyMetadata(opts: { homeyId: string; key: string; }): Promise; createHomeyMetadata(opts: { homeyId: string; key: string; value?: object; }): Promise; updateHomeyMetadata(opts: { homeyId: string; key: string; value?: object; }): Promise; deleteHomeyMetadata(opts: { homeyId: string; key: string; }): Promise; updateHomeySendConnectionNotifications(opts: { homeyId: string; push?: boolean; email?: boolean; }): Promise; createHomeySelfHostedServer(): Promise; deleteHomeySelfHostedServer(opts: { homeyId: string }): Promise; updateHomeySelfHostedServerSubscription(opts: { homeyId: string; type?: string; expiresAt?: string; shopifyContractId?: string; }): Promise; transferHomeySelfHostedServerLifetimeLicense(opts: { homeyId: string; newHomeyId?: string; }): Promise; updateHomeySelfHostedServerCustomHostname(opts: { homeyId: string; customHostname?: string; }): Promise; deleteHomeySelfHostedServerCustomHostname(opts: { homeyId: string; }): Promise; expireSelfHostedServerSubscriptions(): Promise; sendFormattedEmail(opts: { to?: string; toHomeyOwner?: string; from?: string; subject?: string; body?: string; replyTo?: string; logo?: object; header?: object; button?: object; }): Promise; subscribeUserToMailChimp(opts: { listId?: string; userId?: string; tags?: Array; }): Promise; upsertUserToMailChimp(opts: { listId?: string; userId?: string; tags?: Array; }): Promise; addTagToMailChimpUser(opts: { listId?: string; userId?: string; tag?: string; }): Promise; removeTagFromMailChimpUser(opts: { tag: string; listId: string; userId: string; }): Promise; getPortals(opts: { serial?: string }): Promise; createPortal(opts: { portal?: { serial: string; build: number; manufacturedAt: string; activationHistory: Array; model: string; }; }): Promise; getPortal(opts: { serial: string }): Promise; updatePortal(opts: { serial: string; portal?: { serial: string; build: number; manufacturedAt: string; activationHistory: Array; model: string; }; }): Promise; activatePortal(opts: { serial: string; homeyId?: string; userId?: string; }): Promise; getAppInstallsStatistics(): Promise; getAppDriversStatistics(): Promise; getLocationStatistics(opts: { since?: number }): Promise; getVersionStatistics(): Promise; getProductionStatistics(opts: { min?: string; max?: string; }): Promise; getHomeyOwnerContactDetails(opts: { softwareVersion?: string; homeyId?: string; homeySn?: string; barcodeMin?: string; barcodeMax?: string; appId?: string; appChannel?: string; appVersion?: string; page?: number; }): Promise; isLoggedIn(): Promise; getAuthenticatedUser(opts?: { $cache?: object }): Promise; hasAuthorizationCode(): boolean; getLoginUrl(opts?: { state?: string; scopes?: Array; }): string; logout(): Promise; authenticateWithAuthorizationCode(opts?: { code: String; removeCodeFromHistory?: Boolean; }): Promise; updateUserMe(opts?: { firstname?: String; lastname?: String; email?: String; }): Promise; updateUserMeAvatar( imageBuffer: Buffer, imageType: "jpg" | "jpeg" | "png" | "gif", ): Promise; } export class AthomConnectAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); ping(opts: { homeyId: string }): Promise; acceptSharingRequest(opts: { homeyId: string; athomId?: string; inviteToken?: string; }): Promise; confirmPushNotification(opts: { homeyId: string; pushId: string; choice?: string; }): Promise; sendMobileEvent(opts: { homeyId?: string; deviceId?: string; userId?: string; message?: string; signature?: string; }): Promise; sendOAuth2Callback(opts: { homeyId: string; code?: string; token?: string; }): Promise; sendWebhook(opts: { homeyId: string; webhookId: string; args?: object; }): Promise; ping(opts: { homeyId: string }): Promise; acceptSharingRequest(opts: { homeyId: string; athomId?: string; inviteToken?: string; }): Promise; confirmPushNotification(opts: { homeyId: string; pushId: string; choice?: string; }): Promise; sendMobileEvent(opts: { homeyId?: string; deviceId?: string; userId?: string; message?: string; signature?: string; }): Promise; sendOAuth2Callback(opts: { homeyId: string; code?: string; token?: string; }): Promise; sendWebhook(opts: { homeyId: string; webhookId: string; args?: object; }): Promise; } export class AthomDNSAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getHomeyCertificate(opts: { secret: string }): Promise; getHomeyCertificate(opts: { secret: string }): Promise; } export class AthomDeviceFirmwareAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getFirmwareURL(opts: { integrity: string; noCache?: boolean; sourceUrl?: string; homeyTag?: string; $timeout?: number; }): Promise<{ url: string; cache: string }>; getFirmwareURL(opts: { integrity: string; noCache?: boolean; sourceUrl?: string; homeyTag?: string; $timeout?: number; }): Promise<{ url: string; cache: string }>; } export class AthomEnergyAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getZone(opts: { latitude: string; longitude: string; secret?: string; }): Promise; getZones(opts: { secret?: string }): Promise; getDayAheadPricesElectricity(opts: { zoneId: string; zoneVersion: string; date: string; timezone: string; currency?: string; interval?: string; secret?: string; }): Promise; getZone(opts: { latitude: string; longitude: string; secret?: string; }): Promise; getZones(opts: { secret?: string }): Promise; getDayAheadPricesElectricity(opts: { zoneId: string; zoneVersion: string; date: string; timezone: string; currency?: string; interval?: string; secret?: string; }): Promise; } export class AthomFirmwareAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getUpdatesChangelog(): Promise; getUpdatesChangelog(): Promise; } export class AthomFlowAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); shareFlow(opts: { data: object }): Promise; getFlow(opts: { flowId: string }): Promise; shareFlow(opts: { data: object }): Promise; getFlow(opts: { flowId: string }): Promise; } export class AthomGeolocateAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getLocation(opts: { homeyId?: string; homeyIP?: string; towers?: Array; }): Promise; getLocation(opts: { homeyId?: string; homeyIP?: string; towers?: Array; }): Promise; } export class AthomIconsAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getIconAsBuffer(opts: { iconId: String; size: Number; }): Promise; getIconAsStream(opts: { iconId: String; size: Number; }): Promise; createIconFromSVG(opts: { svg: String }): Promise; createIconFromURL(opts: { url: String }): Promise; getIconAsBuffer(opts: { iconId: String; size: Number; }): Promise; getIconAsStream(opts: { iconId: String; size: Number; }): Promise; createIconFromSVG(opts: { svg: String }): Promise; createIconFromURL(opts: { url: String }): Promise; } export class AthomInfraredAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getBrands(opts: { type?: string }): Promise; getTypes(opts: { brand?: string }): Promise; searchDevices(opts: { query: string }): Promise; getDevices(opts: { name?: string; type?: string; brand?: string; }): Promise; getDevice(opts: { deviceId: string; secret: string; }): Promise; getBrands(opts: { type?: string }): Promise; getTypes(opts: { brand?: string }): Promise; searchDevices(opts: { query: string }): Promise; getDevices(opts: { name?: string; type?: string; brand?: string; }): Promise; getDevice(opts: { deviceId: string; secret: string; }): Promise; } export class AthomNotificationsAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); push(opts: { secret: string; batch?: Array; data?: object; }): Promise; push(opts: { secret: string; batch?: Array; data?: object; }): Promise; } export class AthomSetupAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); createSession(): Promise; getSession(opts: { sessionId: string }): Promise; updateSession(opts: { sessionId: string; data: { sn: string; }; }): Promise; deleteSession(opts: { sessionId: string }): Promise; getSessionState(opts: { sessionId: string }): Promise; setSessionState(opts: { sessionId: string; data: { state: string; }; }): Promise; getSessionCommands(opts: { sessionId: string }): Promise; createSessionCommand(opts: { sessionId: string; manager?: string; command?: string; args?: object; }): Promise; updateSessionCommandResponse(opts: { sessionId: string; commandId: string; result?: Array; }): Promise; loginByDelegationToken(opts: { sessionId: string; data: { token: string; }; }): Promise; updateSessionHomey(opts: { sessionId: string; data: { factoryreset: boolean; name: string; token: string; extraProperties: object; }; }): Promise; getSessionVoice(opts: { sessionId: string; language: string; }): Promise; getSessionBackups(opts: { sessionId: string }): Promise; getTimezone(): Promise; createSession(): Promise; getSession(opts: { sessionId: string }): Promise; updateSession(opts: { sessionId: string; data: { sn: string; }; }): Promise; deleteSession(opts: { sessionId: string }): Promise; getSessionState(opts: { sessionId: string }): Promise; setSessionState(opts: { sessionId: string; data: { state: string; }; }): Promise; getSessionCommands(opts: { sessionId: string }): Promise; createSessionCommand(opts: { sessionId: string; manager?: string; command?: string; args?: object; }): Promise; updateSessionCommandResponse(opts: { sessionId: string; commandId: string; result?: Array; }): Promise; loginByDelegationToken(opts: { sessionId: string; data: { token: string; }; }): Promise; updateSessionHomey(opts: { sessionId: string; data: { factoryreset: boolean; name: string; token: string; extraProperties: object; }; }): Promise; getSessionVoice(opts: { sessionId: string; language: string; }): Promise; getSessionBackups(opts: { sessionId: string }): Promise; getTimezone(): Promise; } export class AthomSolarForecastAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getSolarForecast(opts: { secret: string; lat: number; lng: number; strategy?: string; panels?: Array; }): Promise; getSolarForecast(opts: { secret: string; lat: number; lng: number; strategy?: string; panels?: Array; }): Promise; } export class AthomStoreAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getOrders(): Promise; verifySubscription(opts: { token?: string; sku?: string; packageName?: string; receipt?: string; }): Promise; deferSubscription(opts: { sku?: string; packageName?: string; athomId?: string; quantity?: number; duration?: string; }): Promise; restoreSubscriptions(): Promise; getExpiredSubscriptions(opts: { users?: Array; secret: string; }): Promise; verifyOneTimePurchase(opts: { homeyId?: string; token?: string; sku?: string; packageName?: string; receipt?: string; orderId?: string; }): Promise; getOffer(opts: { offerId: string }): Promise; redeemReferAFriend(opts: { paymentProvider?: string; inviterId?: string; }): Promise; redeemOffer(opts: { offerId: string; paymentProvider?: string; }): Promise; createOfferCouponApple(opts: { secret: string; coupon?: string; expiresAt?: string; subscriptionType?: string; subscriptionQuantity?: number; subscriptionDuration?: string; newCustomersOnly?: boolean; }): Promise; getOffers(): Promise; createOffer(opts: { secret: string; userId?: string; expiresAt?: string; campaignId?: string; subscriptionType?: string; subscriptionQuantity?: number; subscriptionDuration?: string; }): Promise; createCoupon(opts: { secret: string; couponCode?: string; expiresAt?: string; campaignId?: string; subscriptionType?: string; subscriptionQuantity?: number; subscriptionDuration?: string; maxRedeems?: number; }): Promise; redeemCoupon(opts: { couponCode: string }): Promise; getOrders(): Promise; verifySubscription(opts: { token?: string; sku?: string; packageName?: string; receipt?: string; }): Promise; deferSubscription(opts: { sku?: string; packageName?: string; athomId?: string; quantity?: number; duration?: string; }): Promise; restoreSubscriptions(): Promise; getExpiredSubscriptions(opts: { users?: Array; secret: string; }): Promise; verifyOneTimePurchase(opts: { homeyId?: string; token?: string; sku?: string; packageName?: string; receipt?: string; orderId?: string; }): Promise; getOffer(opts: { offerId: string }): Promise; redeemReferAFriend(opts: { paymentProvider?: string; inviterId?: string; }): Promise; redeemOffer(opts: { offerId: string; paymentProvider?: string; }): Promise; createOfferCouponApple(opts: { secret: string; coupon?: string; expiresAt?: string; subscriptionType?: string; subscriptionQuantity?: number; subscriptionDuration?: string; newCustomersOnly?: boolean; }): Promise; getOffers(): Promise; createOffer(opts: { secret: string; userId?: string; expiresAt?: string; campaignId?: string; subscriptionType?: string; subscriptionQuantity?: number; subscriptionDuration?: string; }): Promise; createCoupon(opts: { secret: string; couponCode?: string; expiresAt?: string; campaignId?: string; subscriptionType?: string; subscriptionQuantity?: number; subscriptionDuration?: string; maxRedeems?: number; }): Promise; redeemCoupon(opts: { couponCode: string }): Promise; } export class AthomWeatherAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getWeather(opts: { latitude: string; longitude: string; homey: string; language?: string; }): Promise; getWeather(opts: { latitude: string; longitude: string; homey: string; language?: string; }): Promise; } export class AthomWebhooksAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; }); getWebhooks(opts: { token: string }): Promise; createWebhook(opts: { token: string; name?: string; fn?: string; keyPath?: string; }): Promise; getWebhook(opts: { token: string; webhookId: string; }): Promise; updateWebhook(opts: { token: string; webhookId: string; name?: string; fn?: string; keyPath?: string; }): Promise; deleteWebhook(opts: { token: string; webhookId: string; }): Promise; registerWebhookClient(opts: { webhookId: string; homeyId: string; secret?: string; data?: object; callback_url?: string; }): Promise; unregisterWebhookClient(opts: { webhookId: string; homeyId: string; }): Promise; getWebhooks(opts: { token: string }): Promise; createWebhook(opts: { token: string; name?: string; fn?: string; keyPath?: string; }): Promise; getWebhook(opts: { token: string; webhookId: string; }): Promise; updateWebhook(opts: { token: string; webhookId: string; name?: string; fn?: string; keyPath?: string; }): Promise; deleteWebhook(opts: { token: string; webhookId: string; }): Promise; registerWebhookClient(opts: { webhookId: string; homeyId: string; secret?: string; data?: object; callback_url?: string; }): Promise; unregisterWebhookClient(opts: { webhookId: string; homeyId: string; }): Promise; } export class EventEmitter { emit( event: string, data: any, ): any; addListener( event: string, callback: Function, ): any; on( event: string, callback: Function, ): any; once( event: string, callback: Function, ): any; off( event: string, callback: Function, ): any; removeListener( event: string, callback: Function, ): any; removeAllListeners(event?: string): any; emit( event: string, data: any, ): any; addListener( event: string, callback: Function, ): any; on( event: string, callback: Function, ): any; once( event: string, callback: Function, ): any; off( event: string, callback: Function, ): any; removeListener( event: string, callback: Function, ): any; removeAllListeners(event?: string): any; } export class HomeyCloudAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; region: string; }); getSystemStatus(opts: { secret: string }): Promise; getSystemStatus(opts: { secret: string }): Promise; static getClosestRegion(): object; static getClosestRegion(): object; } export class Util { static fetch( args: string, options?: Object, timeoutDuration?: number, timeoutMessage?: string, patchOptions?: Function, ): Promise; static wait(ms: number): Promise; static timeout( promise: Promise, timeoutMillis?: number, message?: string, ): Promise; static benchmark(): Function; static isHTTPUnsecureSupported(): boolean; static isReactNative(): boolean; static isBrowser(): boolean; static isNodeJS(): boolean; static getSearchParameter(name: string): string | null; static base64(input: string): string; static uuid(): string; static env(): string; static serializeQueryObject(queryObject: object): string; static encodeUrlSearchParams(params: object): string; static fetch( args: string, options?: Object, timeoutDuration?: number, timeoutMessage?: string, patchOptions?: Function, ): Promise; static wait(ms: number): Promise; static timeout( promise: Promise, timeoutMillis?: number, message?: string, ): Promise; static benchmark(): Function; static isHTTPUnsecureSupported(): boolean; static isReactNative(): boolean; static isBrowser(): boolean; static isNodeJS(): boolean; static getSearchParameter(name: string): string | null; static base64(input: string): string; static uuid(): string; static env(): string; static serializeQueryObject(queryObject: object): string; static encodeUrlSearchParams(params: object): string; } export namespace HomeyAPIV3Cloud { export class Item extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class Manager extends HomeyAPIV3.Manager { homey: HomeyAPIV3; uri: String; isConnected(): Boolean; connect(): Promise; disconnect(): Promise; destroy(): any; emit( event: string, data: any, ): any; addListener( event: string, callback: Function, ): any; on( event: string, callback: Function, ): any; once( event: string, callback: Function, ): any; off( event: string, callback: Function, ): any; removeListener( event: string, callback: Function, ): any; removeAllListeners(event?: string): any; } export class ManagerApi extends HomeyAPIV3.ManagerApi { getState(): Promise; } export class ManagerApps extends HomeyAPIV3.ManagerApps { getState(): Promise; getApps(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerApps.App }>; getApp(opts: { id: string }): Promise; installFromAppStore(opts: { id: string; channel?: string; }): Promise; uninstallApp(opts: { id: string }): Promise; getAppSettings(opts: { id: string; }): Promise; getAppSetting(opts: { name: string; id: string; }): Promise; setAppSetting(opts: { name: string; id: string; value: any; }): Promise; unsetAppSetting(opts: { name: string; id: string; }): Promise; getAppStd(opts: { id: string; message: string; }): Promise; } export class ManagerBLE extends HomeyAPIV3.ManagerBLE { getState(): Promise; runCommand(opts: { command: string; opts?: object; }): Promise; } export class ManagerClock extends HomeyAPIV3.ManagerClock { getState(): Promise; } export class ManagerCloud extends HomeyAPIV3.ManagerCloud { getState(): Promise; emitOAuth2Callback(opts: { app?: string; token?: string; code?: string; }): Promise; emitWebhookCallback(opts: { id: string; args?: object; }): Promise; } export class ManagerCoprocessor extends HomeyAPIV3.ManagerCoprocessor { getState(): Promise; getBridges(): Promise; getLog(): Promise; pairBridge(opts: { serialHash: string }): Promise; } export class ManagerCron extends HomeyAPIV3.ManagerCron { getState(): Promise; } export class ManagerDashboards extends HomeyAPIV3.ManagerDashboards { getState(): Promise; getDashboards(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerDashboards.Dashboard; }>; getDashboard(opts: { id: string; }): Promise; createDashboard(opts: { dashboard: { name: string; columns: Array; }; }): Promise; updateDashboard(opts: { id: string; dashboard: { name?: string; columns?: Array; }; }): Promise; deleteDashboard(opts: { id: string }): Promise; getAppWidgets(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerDashboards.AppWidget; }>; getAppWidget(opts: { id: string; }): Promise; getAppWidgetAutocomplete(opts: { id: string; settingId: string; query: string; settings?: object; }): Promise; getWidgetStores(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerDashboards.WidgetStore; }>; getWidgetStore(opts: { id: string; }): Promise; getWidgetStoreState(opts: { id: string }): Promise; setWidgetStoreState(opts: { id: string; state: object; replace?: boolean; }): Promise; } export class ManagerDatabase extends HomeyAPIV3.ManagerDatabase { getState(): Promise; } export class ManagerDevices extends HomeyAPIV3.ManagerDevices { getState(): Promise; getDevice(opts: { id: string; }): Promise; getDeviceSettingsObj(opts: { id: string }): Promise; setDeviceSettings(opts: { id: string; settings: object; }): Promise; getDevices(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerDevices.Device; }>; updateDevice(opts: { id: string; device: { name?: string; zone?: string; note?: string; iconOverride?: string; virtualClass?: string; uiIndicator?: string; hidden?: boolean; }; }): Promise; deleteDevice(opts: { id: string }): Promise; getCapabilityValue(opts: { capabilityId: string; deviceId: string; }): Promise; setCapabilityValue(opts: { capabilityId: string; deviceId: string; value: string | number | boolean; opts?: object; transactionId?: string; }): Promise; createGroup(opts: { group: { name: string; class: string; zoneId: string; deviceIds: Array; iconOverride?: string; iconDeviceId?: string; }; }): Promise; deleteDeviceFromGroup(opts: { deviceId: string; groupId: string; }): Promise; updateGroup(opts: { id: string; group: { name?: string; deviceIds?: Array; iconOverride?: string; iconDeviceId?: string; }; }): Promise; hideDeviceFromExternalService(opts: { id: string; service: string; }): Promise; unhideDeviceFromExternalService(opts: { id: string; service: string; }): Promise; } export class ManagerDevkit extends HomeyAPIV3.ManagerDevkit { getState(): Promise; installApp(opts: { manifest: object; clean?: boolean; }): Promise; uninstallApp(opts: { sessionId: string }): Promise; } export class ManagerDrivers extends HomeyAPIV3.ManagerDrivers { homey: HomeyAPIV3; uri: String; getState(): Promise; getDrivers(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerDrivers.Driver; }>; getPairSession(opts: { id: string; }): Promise; createPairSession(opts: { pairsession: { type: string; driverId: string; deviceId?: string; zoneId?: string; }; }): Promise; deletePairSession(opts: { id: string }): Promise; emitPairingHeartbeat(opts: { id: string }): Promise; emitPairingEvent(opts: { id: string; event: string; data?: any; }): Promise; emitPairingCallback(opts: { id: string; callbackId: string; data?: any; }): Promise; createPairSessionDevice(opts: { id: string; device: { name?: string; data: any; zone?: string; store?: object; capabilities?: Array; capabilitiesOptions?: object; class?: string; icon?: string; iconOverride?: string; settings?: object; energy?: object; }; }): Promise; deletePairSessionDevice(opts: { id: string }): Promise; isConnected(): Boolean; connect(): Promise; disconnect(): Promise; destroy(): any; emit( event: string, data: any, ): any; addListener( event: string, callback: Function, ): any; on( event: string, callback: Function, ): any; once( event: string, callback: Function, ): any; off( event: string, callback: Function, ): any; removeListener( event: string, callback: Function, ): any; removeAllListeners(event?: string): any; } export class ManagerEnergy extends HomeyAPIV3.ManagerEnergy { getOptionElectricityPriceFixed(): Promise; setOptionElectricityPriceFixed(opts: { value: any }): Promise; unsetOptionElectricityPriceFixed(): Promise; getOptionGasPriceFixed(): Promise; setOptionGasPriceFixed(opts: { value: any }): Promise; unsetOptionGasPriceFixed(): Promise; getOptionWaterPriceFixed(): Promise; setOptionWaterPriceFixed(opts: { value: any }): Promise; unsetOptionWaterPriceFixed(): Promise; getOptionElectricityPriceDynamicPreferredInterval(): Promise; setOptionElectricityPriceDynamicPreferredInterval(opts: { value: any; }): Promise; unsetOptionElectricityPriceDynamicPreferredInterval(): Promise; getState(): Promise; getLiveReport(opts: { zone?: string }): Promise; getReportDay(opts: { date: string; cache?: string; }): Promise; getReportWeek(opts: { isoWeek: string; cache?: string; }): Promise; getReportMonth(opts: { yearMonth: string; cache?: string; }): Promise; getReportYear(opts: { year: string; cache?: string; }): Promise; getReportsAvailable(): Promise; getCurrency(): Promise; deleteReports(): Promise; resetReportDayCategories(opts: { options: { date?: string; categories?: Array; deviceIds?: Array; }; }): Promise; fetchDynamicElectricityPrices(opts: { date: string }): Promise; setDynamicElectricityPriceUserCosts(opts: { mathExpression: string; type?: string; }): Promise; getDynamicElectricityPriceUserCosts(): Promise; unsetDynamicElectricityPriceUserCosts(): Promise; setElectricityPriceType(opts: { type: string }): Promise; getElectricityPriceType(): Promise; getDynamicPricesElectricityZones(): Promise; getDynamicPricesElectricityZone(): Promise; setDynamicPricesElectricityZone(opts: { options: { zoneId?: string; zoneVersion?: string; zoneName?: string; zoneCountryKey?: string; }; }): Promise; enableDummyEnergyReports(opts: { fromDate?: string; toDate?: string; randomness?: string; numTopConsumers?: string; }): Promise; disableDummyEnergyReports(): Promise; } export class ManagerEnergyDongle extends HomeyAPIV3.ManagerEnergyDongle { getOptionPhaseLoadNotificationSettings(): Promise; setOptionPhaseLoadNotificationSettings(opts: { value: any }): Promise; unsetOptionPhaseLoadNotificationSettings(): Promise; createAndUploadDiagnosticReport(opts: { deviceId: string; timeout?: number; }): Promise; getNextFrame(opts: { deviceId: string; timeout?: string; }): Promise; restartSettingsDiscovery(opts: { deviceId: string }): Promise; getUartConfig(opts: { deviceId: string }): Promise; setUartConfig(opts: { deviceId?: string; baudRate?: number; dataBits?: number; stopBits?: number; parity?: string; inverseRx?: boolean; dataTimeoutMs?: number; persistent?: boolean; dataRequestActiveState?: string; mode?: string; }): Promise; checkFirmwareUpdateAvailable(opts: { deviceId: string }): Promise; installFirmwareUpdate(opts: { deviceId: string; updateThroughReboot?: boolean; }): Promise; reboot(opts: { deviceId: string }): Promise; setPhaseLoadLimits(opts: { deviceId: string; phasesConfigured: number; capacity: number; }): Promise; getPhaseLoadLimits(opts: { deviceId: string }): Promise; } export class ManagerFlow extends HomeyAPIV3.ManagerFlow { getState(): Promise; getFlow(opts: { id: string }): Promise; getFlows(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerFlow.Flow }>; createFlow(opts: { flow: { name: string; folder?: string; enabled?: boolean; trigger: object; conditions: Array; actions: Array; }; }): Promise; updateFlow(opts: { id: string; flow: { name?: string; folder?: string; enabled?: boolean; trigger?: object; conditions?: Array; actions?: Array; }; }): Promise; deleteFlow(opts: { id: string }): Promise; testFlow(opts: { flow: { trigger: object; conditions: Array; actions: Array; }; tokens: object; sessionId: string; }): Promise; triggerFlow(opts: { id: string }): Promise; shareFlow(opts: { id: string }): Promise; getFlowFolders(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerFlow.FlowFolder; }>; getFlowFolder(opts: { id: string; }): Promise; createFlowFolder(opts: { flowfolder: { name: string; parent?: string; }; }): Promise; updateFlowFolder(opts: { id: string; flowfolder: { name?: string; parent?: string; }; }): Promise; deleteFlowFolder(opts: { id: string }): Promise; getFlowCardTrigger(opts: { id: string; uri: string; }): Promise; getFlowCardTriggers(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerFlow.FlowCardTrigger; }>; getFlowCardCondition(opts: { id: string; uri: string; }): Promise; getFlowCardConditions(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerFlow.FlowCardCondition; }>; runFlowCardCondition(opts: { id: string; uri: string; args?: object; tokens?: object; state?: object; droptoken?: string; }): Promise; getFlowCardAction(opts: { id: string; uri: string; }): Promise; getFlowCardActions(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerFlow.FlowCardAction; }>; runFlowCardAction(opts: { id: string; uri: string; args?: object; tokens?: object; state?: object; droptoken?: string; duration?: number; }): Promise; getFlowCardAutocomplete(opts: { id: string; uri: string; type: string; name: string; query: string; args?: object; }): Promise; getAdvancedFlow(opts: { id: string; }): Promise; getAdvancedFlows(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerFlow.AdvancedFlow; }>; createAdvancedFlow(opts: { advancedflow: any; }): Promise; updateAdvancedFlow(opts: { id: string; advancedflow: any; }): Promise; deleteAdvancedFlow(opts: { id: string }): Promise; triggerAdvancedFlow(opts: { id: string }): Promise; } export class ManagerFlowToken extends HomeyAPIV3.ManagerFlowToken { getState(): Promise; getFlowTokens(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerFlowToken.FlowToken; }>; getFlowToken(opts: { id: string; }): Promise; getFlowTokenValue(opts: { id: string }): Promise; } export class ManagerGeolocation extends HomeyAPIV3.ManagerGeolocation { getOptionAddress(): Promise; setOptionAddress(opts: { value: any }): Promise; unsetOptionAddress(): Promise; getOptionLocation(): Promise; setOptionLocation(opts: { value: any }): Promise; unsetOptionLocation(): Promise; getState(): Promise; } export class ManagerGoogleAssistant extends HomeyAPIV3.ManagerGoogleAssistant { getOptionPinCode(): Promise; setOptionPinCode(opts: { value: any }): Promise; unsetOptionPinCode(): Promise; getState(): Promise; } export class ManagerI18n extends HomeyAPIV3.ManagerI18n { getOptionLanguage(): Promise; setOptionLanguage(opts: { value: any }): Promise; unsetOptionLanguage(): Promise; getOptionUnits(): Promise; setOptionUnits(opts: { value: any }): Promise; unsetOptionUnits(): Promise; getState(): Promise; } export class ManagerIcons extends HomeyAPIV3.ManagerIcons { getState(): Promise; } export class ManagerImages extends HomeyAPIV3.ManagerImages { getState(): Promise; getImages(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerImages.Image; }>; } export class ManagerInsights extends HomeyAPIV3.ManagerInsights { getState(): Promise; getLog(opts: { id: string }): Promise; getLogs(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerInsights.Log }>; getLogEntries(opts: { id: string; uri: string; resolution?: string; }): Promise; deleteLog(opts: { id: string; uri: string; }): Promise; deleteLogEntries(opts: { id: string; uri: string; }): Promise; } export class ManagerLogic extends HomeyAPIV3.ManagerLogic { getState(): Promise; getVariable(opts: { id: string; }): Promise; getVariables(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerLogic.Variable; }>; createVariable(opts: { variable: { name: string; type: string; value: string | number | boolean; }; }): Promise; updateVariable(opts: { id: string; variable: { name?: string; value?: string | number | boolean; }; }): Promise; deleteVariable(opts: { id: string }): Promise; } export class ManagerMobile extends HomeyAPIV3.ManagerMobile { getState(): Promise; onMobileEvent(opts: { secret: string; userId: string; deviceId: string; event: string; data: any; timestamp?: string; }): Promise; } export class ManagerMoods extends HomeyAPIV3.ManagerMoods { getState(): Promise; getMoods(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerMoods.Mood }>; getMood(opts: { id: string }): Promise; createMood(opts: { mood: { name: string; devices: object; preset?: string; }; }): Promise; updateMood(opts: { id: string; mood: { name?: string; devices?: object; preset?: string; }; }): Promise; setMood(opts: { id: string }): Promise; deleteMood(opts: { id: string }): Promise; } export class ManagerNotifications extends HomeyAPIV3.ManagerNotifications { getState(): Promise; getNotifications(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerNotifications.Notification; }>; deleteNotification(opts: { id: string }): Promise; deleteNotifications(opts: { ownerUri?: string }): Promise; getOwners(): Promise; setOwnerEnabled(opts: { uri: string; enabled: boolean; }): Promise; setOwnerPush(opts: { uri: string; push: boolean; }): Promise; } export class ManagerPremium extends HomeyAPIV3.ManagerPremium {} export class ManagerPresence extends HomeyAPIV3.ManagerPresence { getState(): Promise; setPresentMe(opts: { value?: boolean; opts?: { forceFlowTrigger?: boolean; }; }): Promise; setPresent(opts: { id: string; value?: boolean; }): Promise; getPresent(opts: { id: string }): Promise; setAsleepMe(opts: { value?: boolean; opts?: { forceFlowTrigger?: boolean; }; }): Promise; setAsleep(opts: { id: string; value?: boolean; }): Promise; getAsleep(opts: { id: string }): Promise; } export class ManagerRF extends HomeyAPIV3.ManagerRF { getState(): Promise; record(opts: { frequency?: string; timeout?: number; }): Promise; replay(opts: { frequency: string; data: Array; }): Promise; emulate(opts: { frequency: string; data: Array; }): Promise; set433MHzConfig(opts: { modulation?: string; carrier?: number; deviation?: number; channelSpacing?: number; filterBandwidth?: number; baudrate?: number; power?: number; }): Promise; txInfraredProntohex(opts: { payload: string; repetitions?: number; }): Promise; } export class ManagerSafety extends HomeyAPIV3.ManagerSafety { getState(): Promise; } export class ManagerSecurity extends HomeyAPIV3.ManagerSecurity { getState(): Promise; } export class ManagerSessions extends HomeyAPIV3.ManagerSessions { getState(): Promise; getSessionMe(): Promise; } export class ManagerSystem extends HomeyAPIV3.ManagerSystem { getState(): Promise; ping(opts: { id?: string }): Promise; getInfo(): Promise; getSystemName(): Promise; setSystemName(opts: { name: string }): Promise; reboot(): Promise; sendLog(opts: { append?: string }): Promise; delete(): Promise; getMemoryInfo(): Promise; getStorageInfo(): Promise; } export class ManagerUsers extends HomeyAPIV3.ManagerUsers { getState(): Promise; login(opts: { token: string }): Promise; getUserMe(): Promise; updateUserMe(opts: { name?: string }): Promise; deleteUserMe(): Promise; getUsers(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerUsers.User }>; getUser(opts: { id: string }): Promise; createUser(opts: { user: { role: string; }; }): Promise; updateUser(opts: { id: string; user: { role?: string; enabled?: boolean; }; }): Promise; deleteUser(opts: { id: string }): Promise; updateUserMeProperties(opts: { id: string; value: object; }): Promise; deleteUserMeProperties(opts: { id: string }): Promise; acceptSharingInvite(opts: { secret: string; athomId: string; inviteToken: string; name: string; }): Promise; } export class ManagerVideos extends HomeyAPIV3.ManagerVideos { getState(): Promise; getVideos(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerVideos.Video; }>; videoOffer(opts: { id: string; offer: string; }): Promise; videoKeepAlive(opts: { id: string; streamId: string; }): Promise; getVideoUrl(opts: { id: string }): Promise; } export class ManagerVirtualDevice extends HomeyAPIV3.ManagerVirtualDevice { getState(): Promise; } export class ManagerWeather extends HomeyAPIV3.ManagerWeather { getState(): Promise; getWeather(): Promise; getWeatherHourly(): Promise; } export class ManagerWebserver extends HomeyAPIV3.ManagerWebserver { getState(): Promise; } export class ManagerZigbee extends HomeyAPIV3.ManagerZigbee { getState(): Promise; runCommand(opts: { command: string; opts?: object; }): Promise; verifyFirmware(): Promise; flashFirmware(opts: { keepNV: boolean }): Promise; getLastFlashResult(): Promise; eraseNV(): Promise; } export class ManagerZones extends HomeyAPIV3.ManagerZones { getState(): Promise; getZones(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerZones.Zone }>; getZone(opts: { id: string }): Promise; createZone(opts: { zone: { name: string; icon: string; parent: string; }; }): Promise; updateZone(opts: { id: string; zone: { name?: string; icon?: string; parent?: string; }; }): Promise; deleteZone(opts: { id: string }): Promise; } export class ManagerZwave extends HomeyAPIV3.ManagerZwave { getOptionRegionOverride(): Promise; setOptionRegionOverride(opts: { value: any }): Promise; unsetOptionRegionOverride(): Promise; getState(): Promise; runCommand(opts: { command: string; opts?: object; }): Promise; getLog(): Promise; setLogEnabled(opts: { enabled: boolean }): Promise; } } export namespace HomeyAPIV3.ManagerDevices.Device { export class DeviceCapability extends EventEmitter { value: boolean | number | string | null; lastChanged: Date | null; destroy(): any; setValue( value: boolean | number | string, opts?: { duration?: number; }, ): Promise; emit( event: string, data: any, ): any; addListener( event: string, callback: Function, ): any; on( event: string, callback: Function, ): any; once( event: string, callback: Function, ): any; off( event: string, callback: Function, ): any; removeListener( event: string, callback: Function, ): any; removeAllListeners(event?: string): any; } } export namespace HomeyAPIV3.ManagerDrivers { export class Driver extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class PairSession extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPI { export class HomeyAPIError extends APIError { description: string; stack: string; message: string; statusCode: number; } export class HomeyAPIErrorNotFound extends HomeyAPIError {} } export namespace HomeyAPIV3 { export class Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class Manager extends EventEmitter { homey: HomeyAPIV3; uri: String; isConnected(): Boolean; connect(): Promise; disconnect(): Promise; destroy(): any; emit( event: string, data: any, ): any; addListener( event: string, callback: Function, ): any; on( event: string, callback: Function, ): any; once( event: string, callback: Function, ): any; off( event: string, callback: Function, ): any; removeListener( event: string, callback: Function, ): any; removeAllListeners(event?: string): any; } export class ManagerDrivers extends HomeyAPIV3.Manager { homey: HomeyAPIV3; uri: String; isConnected(): Boolean; connect(): Promise; disconnect(): Promise; destroy(): any; emit( event: string, data: any, ): any; addListener( event: string, callback: Function, ): any; on( event: string, callback: Function, ): any; once( event: string, callback: Function, ): any; off( event: string, callback: Function, ): any; removeListener( event: string, callback: Function, ): any; removeAllListeners(event?: string): any; } } export namespace HomeyAPIV2 { export class Manager extends HomeyAPIV3.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerAlarms extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerApps extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerAudio extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerBackup extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerBLE extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerCloud extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerCoprocessor extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerDashboards extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerDatabase extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerDevices extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerDevkit extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerDrivers extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerEnergy extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerExperiments extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerFlow extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerFlowToken extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerGeolocation extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerGoogleAssistant extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerI18n extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerImages extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerInsights extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerLedring extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerLogic extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerMobile extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerMoods extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerNotifications extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerPresence extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerReports extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerRF extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerSessions extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerSpeechOutput extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerSystem extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerUpdates extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerUsers extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerWeather extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerZigBee extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerZones extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerZwave extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } } export namespace HomeyAPIV3Local { export class Item extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class Manager extends HomeyAPIV3.Manager { homey: HomeyAPIV3; uri: String; isConnected(): Boolean; connect(): Promise; disconnect(): Promise; destroy(): any; emit( event: string, data: any, ): any; addListener( event: string, callback: Function, ): any; on( event: string, callback: Function, ): any; once( event: string, callback: Function, ): any; off( event: string, callback: Function, ): any; removeListener( event: string, callback: Function, ): any; removeAllListeners(event?: string): any; } export class ManagerAlarms extends HomeyAPIV3.ManagerAlarms { getAlarms(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerAlarms.Alarm; }>; getAlarm(opts: { id: string; }): Promise; createAlarm(opts: { alarm: { name?: string; time?: string; enabled?: boolean; repetition?: object; }; }): Promise; updateAlarm(opts: { id: string; alarm: { name?: string; time?: string; enabled?: boolean; repetition?: object; }; }): Promise; deleteAlarm(opts: { id: string }): Promise; } export class ManagerApi extends HomeyAPIV3.ManagerApi { getState(): Promise; } export class ManagerApps extends HomeyAPIV3.ManagerApps { getState(): Promise; getApps(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerApps.App }>; getApp(opts: { id: string }): Promise; installFromAppStore(opts: { id: string; channel?: string; waitForInstall?: boolean; version?: string; }): Promise; uninstallApp(opts: { id: string }): Promise; getAppSettings(opts: { id: string; }): Promise; getAppSetting(opts: { name: string; id: string; }): Promise; setAppSetting(opts: { name: string; id: string; value: any; }): Promise; unsetAppSetting(opts: { name: string; id: string; }): Promise; getAppStd(opts: { id: string; message: string; }): Promise; updateApp(opts: { id: string; app: { autoupdate?: boolean; }; }): Promise; enableApp(opts: { id: string }): Promise; disableApp(opts: { id: string }): Promise; restartApp(opts: { id: string }): Promise; getAppLocales(opts: { id: string }): Promise; getAppUsage(opts: { id: string }): Promise; } export class ManagerArp extends HomeyAPIV3.ManagerArp { getState(): Promise; } export class ManagerBackup extends HomeyAPIV3.ManagerBackup { getOptionAutomaticBackupsEnabled(): Promise; setOptionAutomaticBackupsEnabled(opts: { value: any }): Promise; unsetOptionAutomaticBackupsEnabled(): Promise; getOptionLastSuccessfulBackup(): Promise; setOptionLastSuccessfulBackup(opts: { value: any }): Promise; unsetOptionLastSuccessfulBackup(): Promise; getState(): Promise; scheduleBackup(): Promise; } export class ManagerBLE extends HomeyAPIV3.ManagerBLE { getState(): Promise; runCommand(opts: { command: string; opts?: object; }): Promise; } export class ManagerClock extends HomeyAPIV3.ManagerClock { getState(): Promise; } export class ManagerCloud extends HomeyAPIV3.ManagerCloud { getState(): Promise; } export class ManagerCoprocessor extends HomeyAPIV3.ManagerCoprocessor { getState(): Promise; getBridges(): Promise; pairBridge(opts: { serialHash: string }): Promise; setDebugLogging(opts: { peripheral?: string; enabled: boolean; }): Promise; } export class ManagerCron extends HomeyAPIV3.ManagerCron { getState(): Promise; } export class ManagerDashboards extends HomeyAPIV3.ManagerDashboards { getState(): Promise; getDashboards(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerDashboards.Dashboard; }>; getDashboard(opts: { id: string; }): Promise; createDashboard(opts: { dashboard: { name: string; columns: Array; }; }): Promise; updateDashboard(opts: { id: string; dashboard: { name?: string; columns?: Array; }; }): Promise; deleteDashboard(opts: { id: string }): Promise; getAppWidgets(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerDashboards.AppWidget; }>; getAppWidget(opts: { id: string; }): Promise; getAppWidgetAutocomplete(opts: { id: string; settingId: string; query: string; settings?: object; }): Promise; getWidgetStores(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerDashboards.WidgetStore; }>; getWidgetStore(opts: { id: string; }): Promise; getWidgetStoreState(opts: { id: string }): Promise; setWidgetStoreState(opts: { id: string; state: object; replace?: boolean; }): Promise; } export class ManagerDatabase extends HomeyAPIV3.ManagerDatabase { getState(): Promise; } export class ManagerDevices extends HomeyAPIV3.ManagerDevices { getState(): Promise; getDevice(opts: { id: string; }): Promise; getDeviceSettingsObj(opts: { id: string }): Promise; setDeviceSettings(opts: { id: string; settings: object; }): Promise; getDevices(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerDevices.Device; }>; updateDevice(opts: { id: string; device: { name?: string; zone?: string; note?: string; iconOverride?: string; virtualClass?: string; uiIndicator?: string; hidden?: boolean; }; }): Promise; deleteDevice(opts: { id: string }): Promise; getCapabilityValue(opts: { capabilityId: string; deviceId: string; }): Promise; setCapabilityValue(opts: { capabilityId: string; deviceId: string; value: string | number | boolean; opts?: object; transactionId?: string; }): Promise; createGroup(opts: { group: { name: string; class: string; zoneId: string; deviceIds: Array; iconOverride?: string; iconDeviceId?: string; }; }): Promise; deleteDeviceFromGroup(opts: { deviceId: string; groupId: string; }): Promise; updateGroup(opts: { id: string; group: { name?: string; deviceIds?: Array; iconOverride?: string; iconDeviceId?: string; }; }): Promise; } export class ManagerDevkit extends HomeyAPIV3.ManagerDevkit { getState(): Promise; installApp(opts: { manifest: object; clean?: boolean; }): Promise; uninstallApp(opts: { sessionId: string }): Promise; stopApp(opts: { session: string }): Promise; getAppStdOut(opts: { session: string }): Promise; runApp(opts: { app: ReadableStream; env: Object; debug: Boolean; clean: Boolean; }): Promise; } export class ManagerDiscovery extends HomeyAPIV3.ManagerDiscovery { getState(): Promise; } export class ManagerDrivers extends HomeyAPIV3.ManagerDrivers { homey: HomeyAPIV3; uri: String; getState(): Promise; getDrivers(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerDrivers.Driver; }>; getDriver(opts: { id: string; }): Promise; getPairSession(opts: { id: string; }): Promise; createPairSession(opts: { pairsession: { type: string; driverId: string; deviceId?: string; zoneId?: string; }; }): Promise; deletePairSession(opts: { id: string }): Promise; emitPairingHeartbeat(opts: { id: string }): Promise; emitPairingEvent(opts: { id: string; event: string; data?: any; }): Promise; emitPairingCallback(opts: { id: string; callbackId: string; data?: any; }): Promise; createPairSessionDevice(opts: { id: string; device: { name?: string; data: any; zone?: string; store?: object; capabilities?: Array; capabilitiesOptions?: object; class?: string; icon?: string; iconOverride?: string; settings?: object; energy?: object; }; }): Promise; deletePairSessionDevice(opts: { id: string }): Promise; isConnected(): Boolean; connect(): Promise; disconnect(): Promise; destroy(): any; emit( event: string, data: any, ): any; addListener( event: string, callback: Function, ): any; on( event: string, callback: Function, ): any; once( event: string, callback: Function, ): any; off( event: string, callback: Function, ): any; removeListener( event: string, callback: Function, ): any; removeAllListeners(event?: string): any; } export class ManagerEnergy extends HomeyAPIV3.ManagerEnergy { getOptionElectricityPriceFixed(): Promise; setOptionElectricityPriceFixed(opts: { value: any }): Promise; unsetOptionElectricityPriceFixed(): Promise; getOptionGasPriceFixed(): Promise; setOptionGasPriceFixed(opts: { value: any }): Promise; unsetOptionGasPriceFixed(): Promise; getOptionWaterPriceFixed(): Promise; setOptionWaterPriceFixed(opts: { value: any }): Promise; unsetOptionWaterPriceFixed(): Promise; getState(): Promise; getLiveReport(opts: { zone?: string }): Promise; getReportDay(opts: { date: string; cache?: string; }): Promise; getReportWeek(opts: { isoWeek: string; cache?: string; }): Promise; getReportMonth(opts: { yearMonth: string; cache?: string; }): Promise; getReportYear(opts: { year: string; cache?: string; }): Promise; getReportsAvailable(): Promise; getCurrency(): Promise; deleteReports(): Promise; resetReportDayCategories(opts: { options: { date?: string; categories?: Array; deviceIds?: Array; }; }): Promise; fetchDynamicElectricityPrices(opts: { date: string }): Promise; setDynamicElectricityPriceUserCosts(opts: { mathExpression: string; type?: string; }): Promise; getDynamicElectricityPriceUserCosts(): Promise; unsetDynamicElectricityPriceUserCosts(): Promise; setElectricityPriceType(opts: { type: string }): Promise; getElectricityPriceType(): Promise; getDynamicPricesElectricityZones(): Promise; getDynamicPricesElectricityZone(): Promise; setDynamicPricesElectricityZone(opts: { options: { zoneId?: string; zoneVersion?: string; priceInterval?: string; }; }): Promise; enableDummyEnergyReports(opts: { fromDate?: string; toDate?: string; randomness?: string; numTopConsumers?: string; }): Promise; disableDummyEnergyReports(): Promise; } export class ManagerEnergyDongle extends HomeyAPIV3.ManagerEnergyDongle { getOptionPhaseLoadNotificationSettings(): Promise; setOptionPhaseLoadNotificationSettings(opts: { value: any }): Promise; unsetOptionPhaseLoadNotificationSettings(): Promise; createAndUploadDiagnosticReport(opts: { deviceId: string; timeout?: number; }): Promise; getNextFrame(opts: { deviceId: string; timeout?: string; }): Promise; restartSettingsDiscovery(opts: { deviceId: string }): Promise; getUartConfig(opts: { deviceId: string }): Promise; setUartConfig(opts: { deviceId?: string; baudRate?: number; dataBits?: number; stopBits?: number; parity?: string; inverseRx?: boolean; dataTimeoutMs?: number; persistent?: boolean; dataRequestActiveState?: string; mode?: string; }): Promise; checkFirmwareUpdateAvailable(opts: { deviceId: string }): Promise; installFirmwareUpdate(opts: { deviceId: string; updateThroughReboot?: boolean; }): Promise; reboot(opts: { deviceId: string }): Promise; setPhaseLoadLimits(opts: { deviceId: string; phasesConfigured: number; capacity: number; }): Promise; getPhaseLoadLimits(opts: { deviceId: string }): Promise; } export class ManagerExperiments extends HomeyAPIV3.ManagerExperiments { getState(): Promise; getExperiments(): Promise; enableExperiment(opts: { id: string }): Promise; disableExperiment(opts: { id: string }): Promise; } export class ManagerFlow extends HomeyAPIV3.ManagerFlow { getState(): Promise; getFlow(opts: { id: string }): Promise; getFlows(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerFlow.Flow }>; createFlow(opts: { flow: { name: string; folder?: string; enabled?: boolean; trigger: object; conditions: Array; actions: Array; }; }): Promise; updateFlow(opts: { id: string; flow: { name?: string; folder?: string; enabled?: boolean; trigger?: object; conditions?: Array; actions?: Array; }; }): Promise; deleteFlow(opts: { id: string }): Promise; testFlow(opts: { flow: { trigger: object; conditions: Array; actions: Array; }; tokens: object; sessionId: string; }): Promise; triggerFlow(opts: { id: string }): Promise; shareFlow(opts: { id: string }): Promise; getFlowFolders(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerFlow.FlowFolder; }>; getFlowFolder(opts: { id: string; }): Promise; createFlowFolder(opts: { flowfolder: { name: string; parent?: string; }; }): Promise; updateFlowFolder(opts: { id: string; flowfolder: { name?: string; parent?: string; }; }): Promise; deleteFlowFolder(opts: { id: string }): Promise; getFlowCardTrigger(opts: { id: string; uri: string; }): Promise; getFlowCardTriggers(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerFlow.FlowCardTrigger; }>; getFlowCardCondition(opts: { id: string; uri: string; }): Promise; getFlowCardConditions(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerFlow.FlowCardCondition; }>; runFlowCardCondition(opts: { id: string; uri: string; args?: object; tokens?: object; state?: object; droptoken?: string; }): Promise; getFlowCardAction(opts: { id: string; uri: string; }): Promise; getFlowCardActions(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerFlow.FlowCardAction; }>; runFlowCardAction(opts: { id: string; uri: string; args?: object; tokens?: object; state?: object; droptoken?: string; duration?: number; }): Promise; getFlowCardAutocomplete(opts: { id: string; uri: string; type: string; name: string; query: string; args?: object; }): Promise; getAdvancedFlow(opts: { id: string; }): Promise; getAdvancedFlows(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerFlow.AdvancedFlow; }>; createAdvancedFlow(opts: { advancedflow: any; }): Promise; updateAdvancedFlow(opts: { id: string; advancedflow: any; }): Promise; deleteAdvancedFlow(opts: { id: string }): Promise; triggerAdvancedFlow(opts: { id: string }): Promise; } export class ManagerFlowToken extends HomeyAPIV3.ManagerFlowToken { getState(): Promise; getFlowTokens(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerFlowToken.FlowToken; }>; getFlowToken(opts: { id: string; }): Promise; getFlowTokenValue(opts: { id: string }): Promise; } export class ManagerGeolocation extends HomeyAPIV3.ManagerGeolocation { getOptionAddress(): Promise; setOptionAddress(opts: { value: any }): Promise; unsetOptionAddress(): Promise; getOptionLocation(): Promise; setOptionLocation(opts: { value: any }): Promise; unsetOptionLocation(): Promise; getState(): Promise; } export class ManagerGoogleAssistant extends HomeyAPIV3.ManagerGoogleAssistant { getOptionPinCode(): Promise; setOptionPinCode(opts: { value: any }): Promise; unsetOptionPinCode(): Promise; getOptionEnabled(): Promise; setOptionEnabled(opts: { value: any }): Promise; unsetOptionEnabled(): Promise; getState(): Promise; sync(): Promise; } export class ManagerI18n extends HomeyAPIV3.ManagerI18n { getOptionLanguage(): Promise; setOptionLanguage(opts: { value: any }): Promise; unsetOptionLanguage(): Promise; getOptionUnits(): Promise; setOptionUnits(opts: { value: any }): Promise; unsetOptionUnits(): Promise; getState(): Promise; } export class ManagerIcons extends HomeyAPIV3.ManagerIcons { getState(): Promise; } export class ManagerImages extends HomeyAPIV3.ManagerImages { getState(): Promise; getImages(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerImages.Image; }>; } export class ManagerInsights extends HomeyAPIV3.ManagerInsights { getState(): Promise; getLog(opts: { id: string }): Promise; getLogs(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerInsights.Log }>; getLogEntries(opts: { id: string; uri: string; resolution?: string; }): Promise; deleteLog(opts: { id: string; uri: string; }): Promise; deleteLogEntries(opts: { id: string; uri: string; }): Promise; } export class ManagerLedring extends HomeyAPIV3.ManagerLedring { getOptionScreensaver(): Promise; setOptionScreensaver(opts: { value: any }): Promise; unsetOptionScreensaver(): Promise; getState(): Promise; getScreensavers(): Promise; } export class ManagerLogic extends HomeyAPIV3.ManagerLogic { getState(): Promise; getVariable(opts: { id: string; }): Promise; getVariables(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerLogic.Variable; }>; createVariable(opts: { variable: { name: string; type: string; value: string | number | boolean; }; }): Promise; updateVariable(opts: { id: string; variable: { name?: string; value?: string | number | boolean; }; }): Promise; deleteVariable(opts: { id: string }): Promise; } export class ManagerMatter extends HomeyAPIV3.ManagerMatter { getOptionPaaSettings(): Promise; setOptionPaaSettings(opts: { value: any }): Promise; unsetOptionPaaSettings(): Promise; getState(): Promise; getMatterNode(opts: { id: string; }): Promise; getMatterNodes(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerMatter.MatterNode; }>; deleteMatterNode(opts: { id: string }): Promise; getNodeAttributes(opts: { id: string }): Promise; getNodeFabrics(opts: { id: string }): Promise; deleteNodeFabric(opts: { fabricIndex: number; id: string; }): Promise; resolveNodeAddress(opts: { id: string }): Promise; forceNodeUpdate(opts: { id: string }): Promise; pingNode(opts: { id: string }): Promise; getNodeAvailableFirmwareUpdate(opts: { id: string }): Promise; installNodeAvailableFirmwareUpdate(opts: { id: string; softwareVersion: number; }): Promise; nodeDiagnosticReport(opts: { id: string }): Promise; nodeThreadNetworkInformation(opts: { id: string }): Promise; nodeWiFiNetworkInformation(opts: { id: string }): Promise; openCommissioningWindow(opts: { deviceId: string; timeout?: number; revokeExisting?: boolean; }): Promise; getFabrics(opts: { deviceId: string }): Promise; deleteFabric(opts: { deviceId: string; fabricIndex: number; }): Promise; } export class ManagerMobile extends HomeyAPIV3.ManagerMobile { getState(): Promise; } export class ManagerMoods extends HomeyAPIV3.ManagerMoods { getState(): Promise; getMoods(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerMoods.Mood }>; getMood(opts: { id: string }): Promise; createMood(opts: { mood: { name: string; devices: object; preset?: string; }; }): Promise; updateMood(opts: { id: string; mood: { name?: string; devices?: object; preset?: string; }; }): Promise; setMood(opts: { id: string }): Promise; deleteMood(opts: { id: string }): Promise; } export class ManagerNotifications extends HomeyAPIV3.ManagerNotifications { getState(): Promise; getNotifications(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerNotifications.Notification; }>; deleteNotification(opts: { id: string }): Promise; deleteNotifications(opts: { ownerUri?: string }): Promise; getOwners(): Promise; setOwnerEnabled(opts: { uri: string; enabled: boolean; }): Promise; setOwnerPush(opts: { uri: string; push: boolean; }): Promise; } export class ManagerPresence extends HomeyAPIV3.ManagerPresence { getState(): Promise; setPresentMe(opts: { value?: boolean; opts?: { forceFlowTrigger?: boolean; }; }): Promise; setPresent(opts: { id: string; value?: boolean; }): Promise; getPresent(opts: { id: string }): Promise; setAsleepMe(opts: { value?: boolean; opts?: { forceFlowTrigger?: boolean; }; }): Promise; setAsleep(opts: { id: string; value?: boolean; }): Promise; getAsleep(opts: { id: string }): Promise; } export class ManagerRF extends HomeyAPIV3.ManagerRF { getState(): Promise; record(opts: { frequency?: string; timeout?: number; }): Promise; replay(opts: { frequency: string; data: Array; }): Promise; emulate(opts: { frequency: string; data: Array; }): Promise; set433MHzConfig(opts: { modulation?: string; carrier?: number; deviation?: number; channelSpacing?: number; filterBandwidth?: number; baudrate?: number; power?: number; }): Promise; txInfraredProntohex(opts: { payload: string; repetitions?: number; }): Promise; } export class ManagerSafety extends HomeyAPIV3.ManagerSafety { getState(): Promise; } export class ManagerSatellites extends HomeyAPIV3.ManagerSatellites { getState(): Promise; setDebugLogging(opts: { peripheral?: string; enabled: boolean; serial?: string; }): Promise; getDebugLog(opts: { serial: string }): Promise; } export class ManagerSecurity extends HomeyAPIV3.ManagerSecurity { getState(): Promise; } export class ManagerSessions extends HomeyAPIV3.ManagerSessions { getState(): Promise; getSessionMe(): Promise; } export class ManagerSystem extends HomeyAPIV3.ManagerSystem { getOptionForwardedPort(): Promise; setOptionForwardedPort(opts: { value: any }): Promise; unsetOptionForwardedPort(): Promise; getState(): Promise; ping(opts: { id?: string }): Promise; getInfo(): Promise; getSystemName(): Promise; setSystemName(opts: { name: string }): Promise; reboot(): Promise; sendLog(opts: { append?: string }): Promise; getMemoryInfo(): Promise; getStorageInfo(): Promise; getMemoryInfoTotal(): Promise; getStorageInfoTotal(): Promise; rebootOTA(): Promise; setDebug(opts: { namespace: string }): Promise; enableWifi(): Promise; disableWifi(): Promise; startProfile(opts: { duration?: number }): Promise; stopProfile(): Promise; } export class ManagerThread extends HomeyAPIV3.ManagerThread { getState(): Promise; getActiveDataset(): Promise; setActiveDataset(opts: { tlvHex: string }): Promise; apiReset(): Promise; executeCommand(opts: { command: string; timeout?: number; flush?: boolean; preventThreadSetup?: boolean; }): Promise; apiDisable(): Promise; apiEnable(): Promise; getNetworkTopology(): Promise; getDiscoveredBorderRouters(): Promise; rescanBorderRouters(): Promise; } export class ManagerUpdates extends HomeyAPIV3.ManagerUpdates { getOptionChannel(): Promise; setOptionChannel(opts: { value: any }): Promise; unsetOptionChannel(): Promise; getOptionAutoupdate(): Promise; setOptionAutoupdate(opts: { value: any }): Promise; unsetOptionAutoupdate(): Promise; getState(): Promise; getUpdates(): Promise; installUpdate(opts: { reboot?: boolean; silent?: boolean; }): Promise; abortInstallUpdate(): Promise; } export class ManagerUsers extends HomeyAPIV3.ManagerUsers { getState(): Promise; login(opts: { token: string }): Promise; getUserMe(): Promise; updateUserMe(opts: { name?: string }): Promise; deleteUserMe(): Promise; getUsers(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerUsers.User }>; getUser(opts: { id: string }): Promise; createUser(opts: { user: { role: string; }; }): Promise; updateUser(opts: { id: string; user: { role?: string; enabled?: boolean; }; }): Promise; deleteUser(opts: { id: string }): Promise; updateUserMeProperties(opts: { id: string; value: object; }): Promise; deleteUserMeProperties(opts: { id: string }): Promise; swapOwner(opts: { newOwnerUserId: string }): Promise; getPersonalAccessTokens(): Promise; createPersonalAccessToken(opts: { name: string; scopes: Array; }): Promise; deletePersonalAccessToken(opts: { id: string }): Promise; loginLocal(opts: { username: string; password: string; clientId: string; clientName: string; }): Promise; updateUserMeLocalCredentials(opts: { username: string; password: string; }): Promise; updateUserLocalCredentials(opts: { id: string; username: string; password: string; }): Promise; deleteUserMeLocalCredentials(): Promise; deleteUserLocalCredentials(opts: { id: string }): Promise; grantInstallerAccess(): Promise; revokeInstallerAccess(): Promise; requestInstallerAccess(opts: { jwt: string }): Promise; swapOwnerInstaller(opts: { newOwnerUserId: string; jwt: string; }): Promise; } export class ManagerVideos extends HomeyAPIV3.ManagerVideos { getState(): Promise; getVideos(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerVideos.Video; }>; videoOffer(opts: { id: string; offer: string; }): Promise; videoKeepAlive(opts: { id: string; streamId: string; }): Promise; getVideoUrl(opts: { id: string }): Promise; } export class ManagerVirtualDevice extends HomeyAPIV3.ManagerVirtualDevice { getState(): Promise; } export class ManagerWeather extends HomeyAPIV3.ManagerWeather { getState(): Promise; getWeather(): Promise; getWeatherHourly(): Promise; } export class ManagerWebserver extends HomeyAPIV3.ManagerWebserver { getState(): Promise; } export class ManagerZigbee extends HomeyAPIV3.ManagerZigbee { getState(): Promise; runCommand(opts: { command: string; opts?: object; }): Promise; flashFirmware(): Promise; } export class ManagerZones extends HomeyAPIV3.ManagerZones { getState(): Promise; getZones(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerZones.Zone }>; getZone(opts: { id: string }): Promise; createZone(opts: { zone: { name: string; icon: string; parent: string; }; }): Promise; updateZone(opts: { id: string; zone: { name?: string; icon?: string; parent?: string; }; }): Promise; deleteZone(opts: { id: string }): Promise; } export class ManagerZwave extends HomeyAPIV3.ManagerZwave { getOptionRegionOverride(): Promise; setOptionRegionOverride(opts: { value: any }): Promise; unsetOptionRegionOverride(): Promise; getState(): Promise; runCommand(opts: { command: string; opts?: object; }): Promise; getLog(): Promise; setLogEnabled(opts: { enabled: boolean }): Promise; } } export namespace HomeyAPIV3.ManagerApps { export class App extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; call(opts: { method: "GET" | "POST" | "PUT" | "DELETE"; path: String; body: any; }): Promise; get(opts: { path: string }): Promise; post(opts: { path: string; body: object; }): Promise; put(opts: { path: string; body: object; }): Promise; delete(opts: { path: string }): Promise; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3.ManagerDevices { export class Capability extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class Device extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; makeCapabilityInstance( capabilityId: string, listener: (value: number | boolean | string) => any, ): HomeyAPIV3.ManagerDevices.Device.DeviceCapability; setCapabilityValue(opts: { capabilityId: string; value: number | boolean | string; opts?: { duration?: number; }; }): Promise; getZone(): Promise; getDriver(): Promise; getLogs(): Promise<{ [key: string]: HomeyAPIV3.ManagerInsights.Log }>; getFlows(): Promise<{ [key: string]: HomeyAPIV3.ManagerFlow.Flow }>; getAdvancedFlows(): Promise<{ [key: string]: HomeyAPIV3.ManagerFlow.AdvancedFlow; }>; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3.ManagerFlow { export class AdvancedFlow extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; isBroken(): Promise; connect(): Promise; disconnect(): Promise; } export class Flow extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; isBroken(): Promise; connect(): Promise; disconnect(): Promise; } export class FlowCard extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class FlowCardAction extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class FlowCardCondition extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class FlowCardTrigger extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3.ManagerFlowToken { export class FlowToken extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3.ManagerInsights { export class Log extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3.ManagerZones { export class Zone extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; getParent(): Promise; connect(): Promise; disconnect(): Promise; } }