daikin-controller-cloud
Version:
Interact with Daikin Cloud devices and retrieve Tokens
38 lines (37 loc) • 1.33 kB
TypeScript
import { EventEmitter } from 'events';
import { DaikinCloudDevice } from './device.js';
import { OnectaClientConfig, OnectaRateLimitStatus } from './onecta/oidc-utils.js';
import { TokenSet } from "openid-client";
interface DaikinCloudControllerEvents {
"error": [err: Error];
"authorization_request": [url: string];
"token_update": [tokenSet: TokenSet];
"rate_limit_status": [OnectaRateLimitStatus];
}
export declare class RateLimitedError extends Error {
retryAfter?: number | undefined;
constructor(message: string, retryAfter?: number | undefined);
}
/**
* Daikin Controller for Cloud solution to get tokens and interact with devices
*/
export declare class DaikinCloudController extends EventEmitter<DaikinCloudControllerEvents> {
#private;
constructor(config: OnectaClientConfig);
/**
* Get Daikin API Info
* @returns {Promise<Object>} API Info object
*/
getApiInfo(): Promise<any>;
/**
* Get pure Device Data from the Daikin cloud devices
* @returns {Promise<Object>} pure Device details
*/
getCloudDeviceDetails(): Promise<any[]>;
/**
* Get array of DaikinCloudDevice objects to interact with the device and get data
*/
getCloudDevices(): Promise<DaikinCloudDevice[]>;
updateAllDeviceData(): Promise<void>;
}
export {};