diff options
| author | Dax <[email protected]> | 2025-09-15 03:12:07 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-09-15 03:12:07 -0400 |
| commit | c1b4e1f19dd45eeea791354cb041c520f55e1cdb (patch) | |
| tree | cc238910a99092592bc4baf926d5c5509128f29f /packages/sdk/js/src | |
| parent | 89d820b1c44028e673f2b4317a2104abb2be2e67 (diff) | |
| download | opencode-c1b4e1f19dd45eeea791354cb041c520f55e1cdb.tar.gz opencode-c1b4e1f19dd45eeea791354cb041c520f55e1cdb.zip | |
Upgrade to Zod v4 (#2605)
Co-authored-by: GitHub Action <[email protected]>
Diffstat (limited to 'packages/sdk/js/src')
| -rw-r--r-- | packages/sdk/js/src/gen/sdk.gen.ts | 14 | ||||
| -rw-r--r-- | packages/sdk/js/src/gen/types.gen.ts | 967 |
2 files changed, 428 insertions, 553 deletions
diff --git a/packages/sdk/js/src/gen/sdk.gen.ts b/packages/sdk/js/src/gen/sdk.gen.ts index ea9cfe9a1..7e0f0dc8b 100644 --- a/packages/sdk/js/src/gen/sdk.gen.ts +++ b/packages/sdk/js/src/gen/sdk.gen.ts @@ -58,8 +58,8 @@ import type { SessionRevertResponses, SessionUnrevertData, SessionUnrevertResponses, - PostSessionByIdPermissionsByPermissionIdData, - PostSessionByIdPermissionsByPermissionIdResponses, + PostSessionIdPermissionsPermissionIdData, + PostSessionIdPermissionsPermissionIdResponses, CommandListData, CommandListResponses, ConfigProvidersData, @@ -675,14 +675,10 @@ export class OpencodeClient extends _HeyApiClient { /** * Respond to a permission request */ - public postSessionByIdPermissionsByPermissionId<ThrowOnError extends boolean = false>( - options: Options<PostSessionByIdPermissionsByPermissionIdData, ThrowOnError>, + public postSessionIdPermissionsPermissionId<ThrowOnError extends boolean = false>( + options: Options<PostSessionIdPermissionsPermissionIdData, ThrowOnError>, ) { - return (options.client ?? this._client).post< - PostSessionByIdPermissionsByPermissionIdResponses, - unknown, - ThrowOnError - >({ + return (options.client ?? this._client).post<PostSessionIdPermissionsPermissionIdResponses, unknown, ThrowOnError>({ url: "/session/{id}/permissions/{permissionID}", ...options, headers: { diff --git a/packages/sdk/js/src/gen/types.gen.ts b/packages/sdk/js/src/gen/types.gen.ts index 864afa39f..47668750e 100644 --- a/packages/sdk/js/src/gen/types.gen.ts +++ b/packages/sdk/js/src/gen/types.gen.ts @@ -10,53 +10,6 @@ export type Project = { } } -export type Event = - | ({ - type: "installation.updated" - } & EventInstallationUpdated) - | ({ - type: "lsp.client.diagnostics" - } & EventLspClientDiagnostics) - | ({ - type: "message.updated" - } & EventMessageUpdated) - | ({ - type: "message.removed" - } & EventMessageRemoved) - | ({ - type: "message.part.updated" - } & EventMessagePartUpdated) - | ({ - type: "message.part.removed" - } & EventMessagePartRemoved) - | ({ - type: "session.compacted" - } & EventSessionCompacted) - | ({ - type: "permission.updated" - } & EventPermissionUpdated) - | ({ - type: "permission.replied" - } & EventPermissionReplied) - | ({ - type: "file.edited" - } & EventFileEdited) - | ({ - type: "session.idle" - } & EventSessionIdle) - | ({ - type: "session.updated" - } & EventSessionUpdated) - | ({ - type: "session.deleted" - } & EventSessionDeleted) - | ({ - type: "session.error" - } & EventSessionError) - | ({ - type: "server.connected" - } & EventServerConnected) - export type EventInstallationUpdated = { type: "installation.updated" properties: { @@ -72,21 +25,6 @@ export type EventLspClientDiagnostics = { } } -export type EventMessageUpdated = { - type: "message.updated" - properties: { - info: Message - } -} - -export type Message = - | ({ - role: "user" - } & UserMessage) - | ({ - role: "assistant" - } & AssistantMessage) - export type UserMessage = { id: string sessionID: string @@ -96,6 +34,35 @@ export type UserMessage = { } } +export type ProviderAuthError = { + name: "ProviderAuthError" + data: { + providerID: string + message: string + } +} + +export type UnknownError = { + name: "UnknownError" + data: { + message: string + } +} + +export type MessageOutputLengthError = { + name: "MessageOutputLengthError" + data: { + [key: string]: unknown + } +} + +export type MessageAbortedError = { + name: "MessageAbortedError" + data: { + message: string + } +} + export type AssistantMessage = { id: string sessionID: string @@ -104,19 +71,7 @@ export type AssistantMessage = { created: number completed?: number } - error?: - | ({ - name: "ProviderAuthError" - } & ProviderAuthError) - | ({ - name: "UnknownError" - } & UnknownError) - | ({ - name: "MessageOutputLengthError" - } & MessageOutputLengthError) - | ({ - name: "MessageAbortedError" - } & MessageAbortedError) + error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError system: Array<string> modelID: string providerID: string @@ -138,32 +93,12 @@ export type AssistantMessage = { } } -export type ProviderAuthError = { - name: "ProviderAuthError" - data: { - providerID: string - message: string - } -} - -export type UnknownError = { - name: "UnknownError" - data: { - message: string - } -} +export type Message = UserMessage | AssistantMessage -export type MessageOutputLengthError = { - name: "MessageOutputLengthError" - data: { - [key: string]: unknown - } -} - -export type MessageAbortedError = { - name: "MessageAbortedError" - data: { - [key: string]: unknown +export type EventMessageUpdated = { + type: "message.updated" + properties: { + info: Message } } @@ -175,42 +110,6 @@ export type EventMessageRemoved = { } } -export type EventMessagePartUpdated = { - type: "message.part.updated" - properties: { - part: Part - } -} - -export type Part = - | ({ - type: "text" - } & TextPart) - | ({ - type: "reasoning" - } & ReasoningPart) - | ({ - type: "file" - } & FilePart) - | ({ - type: "tool" - } & ToolPart) - | ({ - type: "step-start" - } & StepStartPart) - | ({ - type: "step-finish" - } & StepFinishPart) - | ({ - type: "snapshot" - } & SnapshotPart) - | ({ - type: "patch" - } & PatchPart) - | ({ - type: "agent" - } & AgentPart) - export type TextPart = { id: string sessionID: string @@ -239,44 +138,16 @@ export type ReasoningPart = { } } -export type FilePart = { - id: string - sessionID: string - messageID: string - type: "file" - mime: string - filename?: string - url: string - source?: FilePartSource -} - -export type FilePartSource = - | ({ - type: "file" - } & FileSource) - | ({ - type: "symbol" - } & SymbolSource) - -export type FileSource = { - text: FilePartSourceText - type: "file" - path: string -} - export type FilePartSourceText = { value: string start: number end: number } -export type SymbolSource = { +export type FileSource = { text: FilePartSourceText - type: "symbol" + type: "file" path: string - range: Range - name: string - kind: number } export type Range = { @@ -290,37 +161,35 @@ export type Range = { } } -export type ToolPart = { +export type SymbolSource = { + text: FilePartSourceText + type: "symbol" + path: string + range: Range + name: string + kind: number +} + +export type FilePartSource = FileSource | SymbolSource + +export type FilePart = { id: string sessionID: string messageID: string - type: "tool" - callID: string - tool: string - state: ToolState + type: "file" + mime: string + filename?: string + url: string + source?: FilePartSource } -export type ToolState = - | ({ - status: "pending" - } & ToolStatePending) - | ({ - status: "running" - } & ToolStateRunning) - | ({ - status: "completed" - } & ToolStateCompleted) - | ({ - status: "error" - } & ToolStateError) - export type ToolStatePending = { status: "pending" } export type ToolStateRunning = { status: "running" - input?: unknown + input: unknown title?: string metadata?: { [key: string]: unknown @@ -362,6 +231,18 @@ export type ToolStateError = { } } +export type ToolState = ToolStatePending | ToolStateRunning | ToolStateCompleted | ToolStateError + +export type ToolPart = { + id: string + sessionID: string + messageID: string + type: "tool" + callID: string + tool: string + state: ToolState +} + export type StepStartPart = { id: string sessionID: string @@ -416,6 +297,24 @@ export type AgentPart = { } } +export type Part = + | TextPart + | ReasoningPart + | FilePart + | ToolPart + | StepStartPart + | StepFinishPart + | SnapshotPart + | PatchPart + | AgentPart + +export type EventMessagePartUpdated = { + type: "message.part.updated" + properties: { + part: Part + } +} + export type EventMessagePartRemoved = { type: "message.part.removed" properties: { @@ -432,11 +331,6 @@ export type EventSessionCompacted = { } } -export type EventPermissionUpdated = { - type: "permission.updated" - properties: Permission -} - export type Permission = { id: string type: string @@ -453,6 +347,11 @@ export type Permission = { } } +export type EventPermissionUpdated = { + type: "permission.updated" + properties: Permission +} + export type EventPermissionReplied = { type: "permission.replied" properties: { @@ -476,13 +375,6 @@ export type EventSessionIdle = { } } -export type EventSessionUpdated = { - type: "session.updated" - properties: { - info: Session - } -} - export type Session = { id: string projectID: string @@ -506,6 +398,13 @@ export type Session = { } } +export type EventSessionUpdated = { + type: "session.updated" + properties: { + info: Session + } +} + export type EventSessionDeleted = { type: "session.deleted" properties: { @@ -517,19 +416,7 @@ export type EventSessionError = { type: "session.error" properties: { sessionID?: string - error?: - | ({ - name: "ProviderAuthError" - } & ProviderAuthError) - | ({ - name: "UnknownError" - } & UnknownError) - | ({ - name: "MessageOutputLengthError" - } & MessageOutputLengthError) - | ({ - name: "MessageAbortedError" - } & MessageAbortedError) + error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError } } @@ -540,413 +427,223 @@ export type EventServerConnected = { } } -export type Config = { - /** - * JSON schema reference for configuration validation - */ - $schema?: string - /** - * Theme name to use for the interface - */ - theme?: string - /** - * Custom keybind configurations - */ - keybinds?: KeybindsConfig - /** - * TUI specific settings - */ - tui?: { - /** - * TUI scroll speed - */ - scroll_speed: number - } - /** - * Command configuration, see https://opencode.ai/docs/commands - */ - command?: { - [key: string]: { - template: string - description?: string - agent?: string - model?: string - subtask?: boolean - } - } - plugin?: Array<string> - snapshot?: boolean - /** - * Control sharing behavior:'manual' allows manual sharing via commands, 'auto' enables automatic sharing, 'disabled' disables all sharing - */ - share?: "manual" | "auto" | "disabled" - /** - * @deprecated Use 'share' field instead. Share newly created sessions automatically - */ - autoshare?: boolean - /** - * Automatically update to the latest version - */ - autoupdate?: boolean - /** - * Disable providers that are loaded automatically - */ - disabled_providers?: Array<string> - /** - * Model to use in the format of provider/model, eg anthropic/claude-2 - */ - model?: string - /** - * Small model to use for tasks like title generation in the format of provider/model - */ - small_model?: string - /** - * Custom username to display in conversations instead of system username - */ - username?: string - /** - * @deprecated Use `agent` field instead. - */ - mode?: { - build?: AgentConfig - plan?: AgentConfig - [key: string]: AgentConfig | undefined - } - /** - * Agent configuration, see https://opencode.ai/docs/agent - */ - agent?: { - plan?: AgentConfig - build?: AgentConfig - general?: AgentConfig - [key: string]: AgentConfig | undefined - } - /** - * Custom provider configurations and model overrides - */ - provider?: { - [key: string]: { - api?: string - name?: string - env?: Array<string> - id?: string - npm?: string - models?: { - [key: string]: { - id?: string - name?: string - release_date?: string - attachment?: boolean - reasoning?: boolean - temperature?: boolean - tool_call?: boolean - cost?: { - input: number - output: number - cache_read?: number - cache_write?: number - } - limit?: { - context: number - output: number - } - experimental?: boolean - options?: { - [key: string]: unknown - } - provider?: { - npm: string - } - } - } - options?: { - apiKey?: string - baseURL?: string - /** - * Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout. - */ - timeout?: number | false - [key: string]: unknown | string | (number | false) | undefined - } - } - } - /** - * MCP (Model Context Protocol) server configurations - */ - mcp?: { - [key: string]: - | ({ - type: "local" - } & McpLocalConfig) - | ({ - type: "remote" - } & McpRemoteConfig) - } - formatter?: { - [key: string]: { - disabled?: boolean - command?: Array<string> - environment?: { - [key: string]: string - } - extensions?: Array<string> - } - } - lsp?: { - [key: string]: - | { - disabled: true - } - | { - command: Array<string> - extensions?: Array<string> - disabled?: boolean - env?: { - [key: string]: string - } - initialization?: { - [key: string]: unknown - } - } - } - /** - * Additional instruction files or patterns to include - */ - instructions?: Array<string> - /** - * @deprecated Always uses stretch layout. - */ - layout?: LayoutConfig - permission?: { - edit?: "ask" | "allow" | "deny" - bash?: - | ("ask" | "allow" | "deny") - | { - [key: string]: "ask" | "allow" | "deny" - } - webfetch?: "ask" | "allow" | "deny" - } - tools?: { - [key: string]: boolean - } - experimental?: { - hook?: { - file_edited?: { - [key: string]: Array<{ - command: Array<string> - environment?: { - [key: string]: string - } - }> - } - session_completed?: Array<{ - command: Array<string> - environment?: { - [key: string]: string - } - }> - } - disable_paste_summary?: boolean - } -} - +export type Event = + | EventInstallationUpdated + | EventLspClientDiagnostics + | EventMessageUpdated + | EventMessageRemoved + | EventMessagePartUpdated + | EventMessagePartRemoved + | EventSessionCompacted + | EventPermissionUpdated + | EventPermissionReplied + | EventFileEdited + | EventSessionIdle + | EventSessionUpdated + | EventSessionDeleted + | EventSessionError + | EventServerConnected + +/** + * Custom keybind configurations + */ export type KeybindsConfig = { /** * Leader key for keybind combinations */ - leader: string + leader?: string /** * Show help dialog */ - app_help: string + app_help?: string /** * Exit the application */ - app_exit: string + app_exit?: string /** * Open external editor */ - editor_open: string + editor_open?: string /** * List available themes */ - theme_list: string + theme_list?: string /** * Create/update AGENTS.md */ - project_init: string + project_init?: string /** * Toggle tool details */ - tool_details: string + tool_details?: string /** * Toggle thinking blocks */ - thinking_blocks: string + thinking_blocks?: string /** * Export session to editor */ - session_export: string + session_export?: string /** * Create a new session */ - session_new: string + session_new?: string /** * List all sessions */ - session_list: string + session_list?: string /** * Show session timeline */ - session_timeline: string + session_timeline?: string /** * Share current session */ - session_share: string + session_share?: string /** * Unshare current session */ - session_unshare: string + session_unshare?: string /** * Interrupt current session */ - session_interrupt: string + session_interrupt?: string /** * Compact the session */ - session_compact: string + session_compact?: string /** * Cycle to next child session */ - session_child_cycle: string + session_child_cycle?: string /** * Cycle to previous child session */ - session_child_cycle_reverse: string + session_child_cycle_reverse?: string /** * Scroll messages up by one page */ - messages_page_up: string + messages_page_up?: string /** * Scroll messages down by one page */ - messages_page_down: string + messages_page_down?: string /** * Scroll messages up by half page */ - messages_half_page_up: string + messages_half_page_up?: string /** * Scroll messages down by half page */ - messages_half_page_down: string + messages_half_page_down?: string /** * Navigate to first message */ - messages_first: string + messages_first?: string /** * Navigate to last message */ - messages_last: string + messages_last?: string /** * Copy message */ - messages_copy: string + messages_copy?: string /** * Undo message */ - messages_undo: string + messages_undo?: string /** * Redo message */ - messages_redo: string + messages_redo?: string /** * List available models */ - model_list: string + model_list?: string /** * Next recent model */ - model_cycle_recent: string + model_cycle_recent?: string /** * Previous recent model */ - model_cycle_recent_reverse: string + model_cycle_recent_reverse?: string /** * List agents */ - agent_list: string + agent_list?: string /** * Next agent */ - agent_cycle: string + agent_cycle?: string /** * Previous agent */ - agent_cycle_reverse: string + agent_cycle_reverse?: string /** * Clear input field */ - input_clear: string + input_clear?: string /** * Paste from clipboard */ - input_paste: string + input_paste?: string /** * Submit input */ - input_submit: string + input_submit?: string /** * Insert newline in input */ - input_newline: string + input_newline?: string /** * @deprecated use agent_cycle. Next mode */ - switch_mode: string + switch_mode?: string /** * @deprecated use agent_cycle_reverse. Previous mode */ - switch_mode_reverse: string + switch_mode_reverse?: string /** * @deprecated use agent_cycle. Next agent */ - switch_agent: string + switch_agent?: string /** * @deprecated use agent_cycle_reverse. Previous agent */ - switch_agent_reverse: string + switch_agent_reverse?: string /** * @deprecated Currently not available. List files */ - file_list: string + file_list?: string /** * @deprecated Close file */ - file_close: string + file_close?: string /** * @deprecated Search file */ - file_search: string + file_search?: string /** * @deprecated Split/unified diff */ - file_diff_toggle: string + file_diff_toggle?: string /** * @deprecated Navigate to previous message */ - messages_previous: string + messages_previous?: string /** * @deprecated Navigate to next message */ - messages_next: string + messages_next?: string /** * @deprecated Toggle layout */ - messages_layout_toggle: string + messages_layout_toggle?: string /** * @deprecated use messages_undo. Revert message */ - messages_revert: string + messages_revert?: string } export type AgentConfig = { @@ -993,44 +690,6 @@ export type AgentConfig = { | undefined } -export type Provider = { - api?: string - name: string - env: Array<string> - id: string - npm?: string - models: { - [key: string]: Model - } -} - -export type Model = { - id: string - name: string - release_date: string - attachment: boolean - reasoning: boolean - temperature: boolean - tool_call: boolean - cost: { - input: number - output: number - cache_read?: number - cache_write?: number - } - limit: { - context: number - output: number - } - experimental?: boolean - options: { - [key: string]: unknown - } - provider?: { - npm: string - } -} - export type McpLocalConfig = { /** * Type of MCP server connection @@ -1073,14 +732,222 @@ export type McpRemoteConfig = { } } +/** + * @deprecated Always uses stretch layout. + */ export type LayoutConfig = "auto" | "stretch" +export type Config = { + /** + * JSON schema reference for configuration validation + */ + $schema?: string + /** + * Theme name to use for the interface + */ + theme?: string + keybinds?: KeybindsConfig + /** + * TUI specific settings + */ + tui?: { + /** + * TUI scroll speed + */ + scroll_speed?: number + } + /** + * Command configuration, see https://opencode.ai/docs/commands + */ + command?: { + [key: string]: { + template: string + description?: string + agent?: string + model?: string + subtask?: boolean + } + } + plugin?: Array<string> + snapshot?: boolean + /** + * Control sharing behavior:'manual' allows manual sharing via commands, 'auto' enables automatic sharing, 'disabled' disables all sharing + */ + share?: "manual" | "auto" | "disabled" + /** + * @deprecated Use 'share' field instead. Share newly created sessions automatically + */ + autoshare?: boolean + /** + * Automatically update to the latest version + */ + autoupdate?: boolean + /** + * Disable providers that are loaded automatically + */ + disabled_providers?: Array<string> + /** + * Model to use in the format of provider/model, eg anthropic/claude-2 + */ + model?: string + /** + * Small model to use for tasks like title generation in the format of provider/model + */ + small_model?: string + /** + * Custom username to display in conversations instead of system username + */ + username?: string + /** + * @deprecated Use `agent` field instead. + */ + mode?: { + build?: AgentConfig + plan?: AgentConfig + [key: string]: AgentConfig | undefined + } + /** + * Agent configuration, see https://opencode.ai/docs/agent + */ + agent?: { + plan?: AgentConfig + build?: AgentConfig + general?: AgentConfig + [key: string]: AgentConfig | undefined + } + /** + * Custom provider configurations and model overrides + */ + provider?: { + [key: string]: { + api?: string + name?: string + env?: Array<string> + id?: string + npm?: string + models?: { + [key: string]: { + id?: string + name?: string + release_date?: string + attachment?: boolean + reasoning?: boolean + temperature?: boolean + tool_call?: boolean + cost?: { + input: number + output: number + cache_read?: number + cache_write?: number + } + limit?: { + context: number + output: number + } + experimental?: boolean + options?: { + [key: string]: unknown + } + provider?: { + npm: string + } + } + } + options?: { + apiKey?: string + baseURL?: string + /** + * Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout. + */ + timeout?: number | false + [key: string]: unknown | string | (number | false) | undefined + } + } + } + /** + * MCP (Model Context Protocol) server configurations + */ + mcp?: { + [key: string]: McpLocalConfig | McpRemoteConfig + } + formatter?: { + [key: string]: { + disabled?: boolean + command?: Array<string> + environment?: { + [key: string]: string + } + extensions?: Array<string> + } + } + lsp?: { + [key: string]: + | { + disabled: true + } + | { + command: Array<string> + extensions?: Array<string> + disabled?: boolean + env?: { + [key: string]: string + } + initialization?: { + [key: string]: unknown + } + } + } + /** + * Additional instruction files or patterns to include + */ + instructions?: Array<string> + layout?: LayoutConfig + permission?: { + edit?: "ask" | "allow" | "deny" + bash?: + | ("ask" | "allow" | "deny") + | { + [key: string]: "ask" | "allow" | "deny" + } + webfetch?: "ask" | "allow" | "deny" + } + tools?: { + [key: string]: boolean + } + experimental?: { + hook?: { + file_edited?: { + [key: string]: Array<{ + command: Array<string> + environment?: { + [key: string]: string + } + }> + } + session_completed?: Array<{ + command: Array<string> + environment?: { + [key: string]: string + } + }> + } + disable_paste_summary?: boolean + } +} + export type _Error = { data: { [key: string]: unknown } } +export type HttpParamSpec = { + type: "string" | "number" | "boolean" | "array" + description?: string + optional?: boolean + items?: "string" | "number" | "boolean" +} + export type HttpToolRegistration = { id: string description: string @@ -1096,23 +963,16 @@ export type HttpToolRegistration = { } } -export type HttpParamSpec = { - type: "string" | "number" | "boolean" | "array" - description?: string - optional?: boolean - items?: "string" | "number" | "boolean" -} - export type ToolIds = Array<string> -export type ToolList = Array<ToolListItem> - export type ToolListItem = { id: string description: string - parameters?: unknown + parameters: unknown } +export type ToolList = Array<ToolListItem> + export type Path = { state: string config: string @@ -1160,6 +1020,44 @@ export type Command = { subtask?: boolean } +export type Model = { + id: string + name: string + release_date: string + attachment: boolean + reasoning: boolean + temperature: boolean + tool_call: boolean + cost: { + input: number + output: number + cache_read?: number + cache_write?: number + } + limit: { + context: number + output: number + } + experimental?: boolean + options: { + [key: string]: unknown + } + provider?: { + npm: string + } +} + +export type Provider = { + api?: string + name: string + env: Array<string> + id: string + npm?: string + models: { + [key: string]: Model + } +} + export type Symbol = { name: string kind: number @@ -1230,17 +1128,6 @@ export type Agent = { } } -export type Auth = - | ({ - type: "oauth" - } & OAuth) - | ({ - type: "api" - } & ApiAuth) - | ({ - type: "wellknown" - } & WellKnownAuth) - export type OAuth = { type: "oauth" refresh: string @@ -1259,6 +1146,8 @@ export type WellKnownAuth = { token: string } +export type Auth = OAuth | ApiAuth | WellKnownAuth + export type ProjectListData = { body?: never path?: never @@ -1713,17 +1602,7 @@ export type SessionPromptData = { tools?: { [key: string]: boolean } - parts: Array< - | ({ - type: "text" - } & TextPartInput) - | ({ - type: "file" - } & FilePartInput) - | ({ - type: "agent" - } & AgentPartInput) - > + parts: Array<TextPartInput | FilePartInput | AgentPartInput> } path: { /** @@ -1880,7 +1759,7 @@ export type SessionUnrevertResponses = { export type SessionUnrevertResponse = SessionUnrevertResponses[keyof SessionUnrevertResponses] -export type PostSessionByIdPermissionsByPermissionIdData = { +export type PostSessionIdPermissionsPermissionIdData = { body?: { response: "once" | "always" | "reject" } @@ -1894,15 +1773,15 @@ export type PostSessionByIdPermissionsByPermissionIdData = { url: "/session/{id}/permissions/{permissionID}" } -export type PostSessionByIdPermissionsByPermissionIdResponses = { +export type PostSessionIdPermissionsPermissionIdResponses = { /** * Permission processed successfully */ 200: boolean } -export type PostSessionByIdPermissionsByPermissionIdResponse = - PostSessionByIdPermissionsByPermissionIdResponses[keyof PostSessionByIdPermissionsByPermissionIdResponses] +export type PostSessionIdPermissionsPermissionIdResponse = + PostSessionIdPermissionsPermissionIdResponses[keyof PostSessionIdPermissionsPermissionIdResponses] export type CommandListData = { body?: never |
