/** * Common constants used across all command sources in the Eufy WebSocket API * * Consolidates all shared event source constants and type guards for type safety and validation. */ /** * Event source constants for Eufy WebSocket API * Centralized definition of all event sources to ensure type safety */ export declare const EVENT_SOURCES: { readonly SERVER: "server"; readonly DRIVER: "driver"; readonly DEVICE: "device"; readonly STATION: "station"; }; export type EventSource = (typeof EVENT_SOURCES)[keyof typeof EVENT_SOURCES]; export declare function isValidEventSource(source: string): source is EventSource; export declare function assertEventSource(source: string): asserts source is EventSource; export { DEVICE_COMMANDS, DeviceCommandType } from "../device/constants"; export { STATION_COMMANDS, StationCommandType } from "../station/constants"; export { DRIVER_COMMANDS, DriverCommandType } from "../driver/constants"; export { SERVER_COMMANDS, ServerCommandType } from "../server/constants"; import { DeviceCommandType } from "../device/constants"; import { StationCommandType } from "../station/constants"; import { DriverCommandType } from "../driver/constants"; import { ServerCommandType } from "../server/constants"; /** * Union of all command types from all sources */ export type AllCommandType = DeviceCommandType | StationCommandType | DriverCommandType | ServerCommandType; /** * All command constants in a single object for easy access */ export declare const ALL_COMMANDS: { readonly DEVICE: { readonly GET_PROPERTIES_METADATA: "device.get_properties_metadata"; readonly GET_PROPERTIES: "device.get_properties"; readonly SET_PROPERTY: "device.set_property"; readonly HAS_PROPERTY: "device.has_property"; readonly GET_COMMANDS: "device.get_commands"; readonly HAS_COMMAND: "device.has_command"; readonly START_LIVESTREAM: "device.start_livestream"; readonly STOP_LIVESTREAM: "device.stop_livestream"; readonly IS_LIVESTREAMING: "device.is_livestreaming"; readonly START_RTSP_LIVESTREAM: "device.start_rtsp_livestream"; readonly STOP_RTSP_LIVESTREAM: "device.stop_rtsp_livestream"; readonly IS_RTSP_LIVESTREAMING: "device.is_rtsp_livestreaming"; readonly START_DOWNLOAD: "device.start_download"; readonly CANCEL_DOWNLOAD: "device.cancel_download"; readonly IS_DOWNLOADING: "device.is_downloading"; readonly TRIGGER_ALARM: "device.trigger_alarm"; readonly RESET_ALARM: "device.reset_alarm"; readonly PAN_AND_TILT: "device.pan_and_tilt"; readonly CALIBRATE: "device.calibrate"; readonly QUICK_RESPONSE: "device.quick_response"; readonly GET_VOICES: "device.get_voices"; readonly START_TALKBACK: "device.start_talkback"; readonly STOP_TALKBACK: "device.stop_talkback"; readonly IS_TALKBACK_ONGOING: "device.is_talkback_ongoing"; readonly TALKBACK_AUDIO_DATA: "device.talkback_audio_data"; readonly CALIBRATE_LOCK: "device.calibrate_lock"; readonly UNLOCK: "device.unlock"; readonly SNOOZE: "device.snooze"; readonly ADD_USER: "device.add_user"; readonly DELETE_USER: "device.delete_user"; readonly GET_USERS: "device.get_users"; readonly UPDATE_USER: "device.update_user"; readonly UPDATE_USER_PASSCODE: "device.update_user_passcode"; readonly UPDATE_USER_SCHEDULE: "device.update_user_schedule"; readonly VERIFY_PIN: "device.verify_pin"; readonly OPEN: "device.open"; readonly SET_STATUS_LED: "device.set_status_led"; readonly SET_AUTO_NIGHT_VISION: "device.set_auto_night_vision"; readonly SET_MOTION_DETECTION: "device.set_motion_detection"; readonly SET_SOUND_DETECTION: "device.set_sound_detection"; readonly SET_PET_DETECTION: "device.set_pet_detection"; readonly SET_RTSP_STREAM: "device.set_rtsp_stream"; readonly SET_ANTI_THEFT_DETECTION: "device.set_anti_theft_detection"; readonly SET_WATERMARK: "device.set_watermark"; readonly ENABLE_DEVICE: "device.enable_device"; readonly LOCK_DEVICE: "device.lock_device"; }; readonly STATION: { readonly REBOOT: "station.reboot"; readonly IS_CONNECTED: "station.is_connected"; readonly CONNECT: "station.connect"; readonly DISCONNECT: "station.disconnect"; readonly GET_PROPERTIES_METADATA: "station.get_properties_metadata"; readonly GET_PROPERTIES: "station.get_properties"; readonly SET_PROPERTY: "station.set_property"; readonly TRIGGER_ALARM: "station.trigger_alarm"; readonly RESET_ALARM: "station.reset_alarm"; readonly SET_GUARD_MODE: "station.set_guard_mode"; readonly GET_COMMANDS: "station.get_commands"; readonly HAS_COMMAND: "station.has_command"; readonly HAS_PROPERTY: "station.has_property"; readonly CHIME: "station.chime"; readonly DOWNLOAD_IMAGE: "station.download_image"; readonly DATABASE_QUERY_LATEST_INFO: "station.database_query_latest_info"; readonly DATABASE_QUERY_LOCAL: "station.database_query_local"; readonly DATABASE_QUERY_BY_DATE: "station.database_query_by_date"; readonly DATABASE_COUNT_BY_DATE: "station.database_count_by_date"; readonly DATABASE_DELETE: "station.database_delete"; }; readonly DRIVER: { readonly SET_VERIFY_CODE: "driver.set_verify_code"; readonly SET_CAPTCHA: "driver.set_captcha"; readonly POLL_REFRESH: "driver.poll_refresh"; readonly IS_CONNECTED: "driver.is_connected"; readonly IS_PUSH_CONNECTED: "driver.is_push_connected"; readonly CONNECT: "driver.connect"; readonly DISCONNECT: "driver.disconnect"; readonly GET_VIDEO_EVENTS: "driver.get_video_events"; readonly GET_ALARM_EVENTS: "driver.get_alarm_events"; readonly GET_HISTORY_EVENTS: "driver.get_history_events"; readonly IS_MQTT_CONNECTED: "driver.is_mqtt_connected"; readonly SET_LOG_LEVEL: "driver.set_log_level"; readonly GET_LOG_LEVEL: "driver.get_log_level"; readonly START_LISTENING_LOGS: "driver.start_listening_logs"; readonly STOP_LISTENING_LOGS: "driver.stop_listening_logs"; readonly IS_LISTENING_LOGS: "driver.is_listening_logs"; }; readonly SERVER: { readonly START_LISTENING: "start_listening"; readonly SET_API_SCHEMA: "set_api_schema"; }; }; //# sourceMappingURL=constants.d.ts.map