| 1 | // GENERATED CODE! DO NOT MODIFY BY HAND! |
| 2 | |
| 3 | // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. |
| 4 | import type { ApplyPatchApprovalParams } from "./ApplyPatchApprovalParams"; |
| 5 | import type { ExecCommandApprovalParams } from "./ExecCommandApprovalParams"; |
| 6 | import type { RequestId } from "./RequestId"; |
| 7 | import type { AttestationGenerateParams } from "./v2/AttestationGenerateParams"; |
| 8 | import type { ChatgptAuthTokensRefreshParams } from "./v2/ChatgptAuthTokensRefreshParams"; |
| 9 | import type { CommandExecutionRequestApprovalParams } from "./v2/CommandExecutionRequestApprovalParams"; |
| 10 | import type { DynamicToolCallParams } from "./v2/DynamicToolCallParams"; |
| 11 | import type { FileChangeRequestApprovalParams } from "./v2/FileChangeRequestApprovalParams"; |
| 12 | import type { McpServerElicitationRequestParams } from "./v2/McpServerElicitationRequestParams"; |
| 13 | import type { PermissionsRequestApprovalParams } from "./v2/PermissionsRequestApprovalParams"; |
| 14 | import type { ToolRequestUserInputParams } from "./v2/ToolRequestUserInputParams"; |
| 15 | |
| 16 | /** |
| 17 | * Request initiated from the server and sent to the client. |
| 18 | */ |
| 19 | export type ServerRequest ={ "method": "item/commandExecution/requestApproval", id: RequestId, params: CommandExecutionRequestApprovalParams, } | { "method": "item/fileChange/requestApproval", id: RequestId, params: FileChangeRequestApprovalParams, } | { "method": "item/tool/requestUserInput", id: RequestId, params: ToolRequestUserInputParams, } | { "method": "mcpServer/elicitation/request", id: RequestId, params: McpServerElicitationRequestParams, } | { "method": "item/permissions/requestApproval", id: RequestId, params: PermissionsRequestApprovalParams, } | { "method": "item/tool/call", id: RequestId, params: DynamicToolCallParams, } | { "method": "account/chatgptAuthTokens/refresh", id: RequestId, params: ChatgptAuthTokensRefreshParams, } | { "method": "attestation/generate", id: RequestId, params: AttestationGenerateParams, } | { "method": "applyPatchApproval", id: RequestId, params: ApplyPatchApprovalParams, } | { "method": "execCommandApproval", id: RequestId, params: ExecCommandApprovalParams, }; |
| 20 |