@di-zed/yandex-smart-home
Version:
The Yandex Smart Home skills for the different device types.
53 lines (52 loc) • 1.51 kB
TypeScript
/**
* @author DiZed Team
* @copyright Copyright (c) DiZed Team (https://github.com/di-zed/)
*/
import { NextFunction, Request, Response } from 'express';
/**
* REST User Controller.
*/
export default class RestUserController {
/**
* POST Method.
* Notification of unlinked accounts.
* https://yandex.ru/dev/dialogs/smart-home/doc/reference/unlink.html?lang=en
*
* @param req
* @param res
* @returns Response
*/
unlink(req: Request, res: Response): Promise<Response>;
/**
* GET Method.
* Information about user devices.
* https://yandex.ru/dev/dialogs/smart-home/doc/reference/get-devices.html?lang=en
*
* @param req
* @param res
* @returns Response
*/
devices(req: Request, res: Response): Promise<Response>;
/**
* POST Method.
* Information about the states of user devices.
* https://yandex.ru/dev/dialogs/smart-home/doc/reference/post-devices-query.html?lang=en
*
* @param req
* @param res
* @param next
* @returns Response
*/
devicesQuery(req: Request, res: Response, next: NextFunction): Promise<Response | void>;
/**
* POST Method.
* Change device state.
* https://yandex.ru/dev/dialogs/smart-home/doc/reference/post-action.html?lang=en
*
* @param req
* @param res
* @param next
* @returns Response | void
*/
devicesAction(req: Request, res: Response, next: NextFunction): Promise<Response | void>;
}