UNPKG

solver-sdk

Version:

SDK для интеграции с Code Solver Backend API

107 lines 4.27 kB
/** * Константы для работы с WebSocket событиями * Соответствуют официальной документации Anthropic * @see https://docs.anthropic.com/claude/reference/messages-streaming */ /** * Типы WebSocket событий */ export declare enum WebSocketEvents { CONNECT = "connect", DISCONNECT = "disconnect", AUTHENTICATE = "authenticate", AUTHENTICATED = "authenticated", AUTHENTICATION_ERROR = "authentication_error", RECONNECT = "reconnect", RECONNECT_TOKEN = "reconnect_token", JOIN_PROJECT = "join_project", LEAVE_PROJECT = "leave_project", START_INDEXING = "start_indexing", CANCEL_INDEXING = "cancel_indexing", INDEXING_PROGRESS = "indexing_progress", INDEXING_COMPLETE = "indexing_complete", INDEXING_ERROR = "indexing_error", FILE_INDEXED = "file_indexed", INDEXING_STATUS = "indexing_status", JOIN = "join", JOINED = "joined", JOIN_ROOM = "join_room", JOIN_ROOM_SUCCESS = "join_room_success", JOIN_RESPONSE = "join_response", LEAVE = "leave", LEFT = "left", JOIN_REASONING = "join_reasoning", JOINED_REASONING = "joined_reasoning", LEAVE_REASONING = "leave_reasoning", LEFT_REASONING = "left_reasoning", CREATE_REASONING = "create_reasoning", REASONING_CREATED = "reasoning_created", START_REASONING = "start_reasoning", REASONING_STARTED = "reasoning_started", CANCEL_REASONING = "cancel_reasoning", REASONING_CANCELLED = "reasoning_cancelled", REASONING_PROGRESS = "reasoning_progress", REASONING_COMPLETE = "reasoning_complete", REASONING_ERROR = "reasoning_error", UPDATE_CONTEXT_OPTIONS = "update_context_options", ESTIMATE_CONTEXT = "estimate_context", CONTEXT_OPTIONS_UPDATED = "context_options_updated", CONTEXT_ESTIMATION = "context_estimation", CHAT_REQUEST = "chat_request", CHAT_STARTED = "chat_started", JOIN_DEPENDENCIES = "join_dependencies", LEAVE_DEPENDENCIES = "leave_dependencies", ANALYZE_DEPENDENCIES = "analyze_dependencies", DEPENDENCY_UPDATE = "dependency_update", JOIN_AGENT_SESSION = "join_agent_session", LEAVE_AGENT_SESSION = "leave_agent_session", AGENT_MESSAGE = "agent_message", TYPESCRIPT_ERRORS = "typescript_errors", TYPESCRIPT_ERRORS_RECEIVED = "typescript_errors_received", TEST_MODULES_CREATED = "test_modules_created", CREATE_TEST_MODULES = "create_test_modules", CONNECTION_PING = "connection_ping", CONNECTION_PONG = "connection_pong", HEARTBEAT = "heartbeat", HEARTBEAT_ACK = "heartbeat_ack", CONNECTION_ERROR = "connection_error", SEARCH_CODE = "search_code", BATCH_UPDATE = "batch_update", SEARCH_UPDATE = "search_update", CONNECTED = "connected", PONG = "pong", SERVER_EVENT = "server_event", MESSAGE_START = "message_start", MESSAGE_DELTA = "message_delta", MESSAGE_STOP = "message_stop", CONTENT_BLOCK_START = "content_block_start", CONTENT_BLOCK_DELTA = "content_block_delta", CONTENT_BLOCK_STOP = "content_block_stop", PING = "ping", ERROR = "error", DONE = "done" } /** * Типы блоков контента в API Anthropic */ export declare enum ContentBlockTypes { TEXT = "text", THINKING = "thinking", REDACTED_THINKING = "redacted_thinking", TOOL_USE = "tool_use", TOOL_RESULT = "tool_result", IMAGE = "image" } /** * Типы дельт блоков контента в API Anthropic * @see https://docs.anthropic.com/claude/reference/messages-streaming */ export declare enum ContentBlockDeltaTypes { TEXT_DELTA = "text_delta",// Дельта текстового блока THINKING_DELTA = "thinking_delta",// Дельта блока мышления REDACTED_THINKING_DELTA = "redacted_thinking_delta",// Дельта отредактированного блока мышления TOOL_USE_DELTA = "tool_use_delta",// Дельта блока использования инструмента INPUT_JSON_DELTA = "input_json_delta",// Дельта входного JSON для инструмента SIGNATURE_DELTA = "signature_delta" } //# sourceMappingURL=websocket-events.constants.d.ts.map