dirigera
Version:
A TypeScript client for IKEA's DIRIGERA smart home hub
30 lines (29 loc) • 947 B
TypeScript
import type { Got } from 'got';
import type { Device } from '../types/device/Device.ts';
import type { DeviceSet } from '../types/DeviceSet.ts';
declare const _default: (got: Got) => {
list(): Promise<DeviceSet[]>;
create({ name, icon }: Pick<DeviceSet, "name" | "icon">): Promise<{
id: string;
}>;
delete({ id }: {
id: string;
}): Promise<void>;
update({ id, name, icon }: DeviceSet): Promise<void>;
updateConfiguration({ id, deviceIds, roomId, remoteLinkIds, }: {
id: string;
deviceIds: string[];
roomId?: string;
remoteLinkIds?: string[];
}): Promise<void>;
setIsOn({ id, isOn }: {
id: string;
isOn: boolean;
}): Promise<void>;
setAttributes({ id, attributes, transitionTime, }: {
id: string;
attributes: Partial<Device["attributes"]>;
transitionTime?: number;
}): Promise<void>;
};
export default _default;