diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..76cec33 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,66 @@ +# Changelog + +All notable package changes are documented here. The package version mirrors the +`codex-cli` version used to generate `src/`, and generated entries use +`codex app-server generate-ts --experimental`. + +## 0.144.0 - 2026-07-11 + +Generated from `codex-cli 0.144.0`. + +### Added + +- Remote control pairing and client-management RPCs: + `remoteControl/pairing/start`, `remoteControl/pairing/status`, + `remoteControl/client/list`, and `remoteControl/client/revoke`. +- Thread lifecycle support for deletion via `thread/delete` and the + `thread/deleted` notification. +- Background terminal listing and termination RPCs for threads. +- Thread hierarchy and subagent metadata, including `parentThreadId`, + `historyMode`, `extra`, `recencyAt`, and list filters for parent or ancestor + thread IDs. +- Account usage and rate-limit reset-credit types and RPCs, including + `account/usage/read`, `account/rateLimitResetCredit/consume`, reset-credit + summaries, and spend-control limit snapshots. +- Realtime session controls for speech append, handoff behavior, startup + context, realtime model override, and realtime protocol version override. +- Dynamic tool namespace specs alongside function specs. +- External-agent config import progress notifications and import history reads. +- Server-to-client `currentTime/read` requests. +- Skills extra-root configuration, npm plugin source metadata, app template + summaries, and plugin install policy source metadata. +- Turn moderation metadata and model safety-buffering notifications. + +### Changed + +- `thread/turns/items/list` was renamed to `thread/items/list`, with + `ThreadTurnsItemsList*` types renamed to `ThreadItemsList*`. +- `ReasoningEffort` widened from a fixed string union to `string`. +- Runtime workspace roots now use `AbsolutePathBuf[]` in thread start, resume, + fork, and turn start params. +- `ThreadItem` path fields now use `LegacyAppPathString` in several places and + gained updated web-search, image-generation, sleep, subagent-activity, and + MCP app-context item shapes. +- `AskForApproval` no longer includes `"on-failure"`. +- `AuthMode` gained `headers`, `personalAccessToken`, and `bedrockApiKey`. +- `WebSearchMode` gained `indexed`. +- `ThreadSortKey` gained `recency_at`. + +## 0.135.0 - 2026-06-04 + +Generated from `codex-cli 0.135.0`. + +### Changed + +- Regenerated the vendored App Server protocol types from Codex CLI 0.135.0. +- Updated package metadata so `version` and `codexCliVersion` both mirror + `0.135.0`. + +## 0.133.0 - 2026-06-02 + +Generated from `codex-cli 0.133.0`. + +### Added + +- Initial package population with generated App Server protocol TypeScript + types and publishing metadata. diff --git a/README.md b/README.md index 7bc5cdb..41a9d6d 100644 --- a/README.md +++ b/README.md @@ -20,13 +20,13 @@ header. ## Versioning — the package version mirrors the Codex CLI version **This package's version equals the `codex-cli` version that generated it.** -So `@pwrdrvr/codex-app-server-protocol@0.135.0` was generated by `codex-cli -0.135.0`. Provenance is also recorded in `package.json`: +So `@pwrdrvr/codex-app-server-protocol@0.144.0` was generated by `codex-cli +0.144.0`. Provenance is also recorded in `package.json`: ```jsonc { - "version": "0.135.0", - "codexCliVersion": "0.135.0", // the codex-cli that generated src/ + "version": "0.144.0", + "codexCliVersion": "0.144.0", // the codex-cli that generated src/ "codexExperimental": true // generated with --experimental } ``` @@ -45,7 +45,7 @@ dist-tag (`0.133.0-next.N` on `next`) and promote the clean `0.133.0` to `latest` once happy. Do **not** bump the patch to `0.133.1` for a packaging fix — that would falsely imply a Codex `0.133.1` surface. -Current generated source: **`codex-cli 0.135.0`** (591 generated `.ts` files; +Current generated source: **`codex-cli 0.144.0`** (671 generated `.ts` files; v1 surface in `src/`, v2 surface in `src/v2/`). ## Install diff --git a/package.json b/package.json index 786fcf9..3810078 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "@pwrdrvr/codex-app-server-protocol", - "version": "0.135.0", + "version": "0.144.0", "description": "TypeScript types for the Codex App Server JSON-RPC protocol, generated from `codex app-server generate-ts --experimental`. The package version mirrors the Codex CLI version used to generate it; the experimental protocol surface is included.", "author": "PwrDrvr LLC", "license": "MIT", "type": "module", - "codexCliVersion": "0.135.0", + "codexCliVersion": "0.144.0", "codexExperimental": true, "keywords": [ "codex", @@ -33,6 +33,7 @@ "files": [ "src", "README.md", + "CHANGELOG.md", "LICENSE" ], "sideEffects": false, diff --git a/src/AgentMessageInputContent.ts b/src/AgentMessageInputContent.ts new file mode 100644 index 0000000..3fd526d --- /dev/null +++ b/src/AgentMessageInputContent.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type AgentMessageInputContent = { "type": "input_text", text: string, } | { "type": "encrypted_content", encrypted_content: string, }; diff --git a/src/AmazonBedrockCredentialSource.ts b/src/AmazonBedrockCredentialSource.ts new file mode 100644 index 0000000..7822a2f --- /dev/null +++ b/src/AmazonBedrockCredentialSource.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type AmazonBedrockCredentialSource = "codexManaged" | "awsManaged"; diff --git a/src/AuthMode.ts b/src/AuthMode.ts index 210e54c..b248876 100644 --- a/src/AuthMode.ts +++ b/src/AuthMode.ts @@ -5,4 +5,4 @@ /** * Authentication mode for OpenAI-backed providers. */ -export type AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens" | "agentIdentity"; +export type AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens" | "headers" | "agentIdentity" | "personalAccessToken" | "bedrockApiKey"; diff --git a/src/ClientRequest.ts b/src/ClientRequest.ts index 426ceab..7695c5a 100644 --- a/src/ClientRequest.ts +++ b/src/ClientRequest.ts @@ -20,7 +20,9 @@ import type { CommandExecWriteParams } from "./v2/CommandExecWriteParams"; import type { ConfigBatchWriteParams } from "./v2/ConfigBatchWriteParams"; import type { ConfigReadParams } from "./v2/ConfigReadParams"; import type { ConfigValueWriteParams } from "./v2/ConfigValueWriteParams"; +import type { ConsumeAccountRateLimitResetCreditParams } from "./v2/ConsumeAccountRateLimitResetCreditParams"; import type { EnvironmentAddParams } from "./v2/EnvironmentAddParams"; +import type { EnvironmentInfoParams } from "./v2/EnvironmentInfoParams"; import type { ExperimentalFeatureEnablementSetParams } from "./v2/ExperimentalFeatureEnablementSetParams"; import type { ExperimentalFeatureListParams } from "./v2/ExperimentalFeatureListParams"; import type { ExternalAgentConfigDetectParams } from "./v2/ExternalAgentConfigDetectParams"; @@ -64,27 +66,39 @@ import type { ProcessKillParams } from "./v2/ProcessKillParams"; import type { ProcessResizePtyParams } from "./v2/ProcessResizePtyParams"; import type { ProcessSpawnParams } from "./v2/ProcessSpawnParams"; import type { ProcessWriteStdinParams } from "./v2/ProcessWriteStdinParams"; +import type { RemoteControlClientsListParams } from "./v2/RemoteControlClientsListParams"; +import type { RemoteControlClientsRevokeParams } from "./v2/RemoteControlClientsRevokeParams"; +import type { RemoteControlDisableParams } from "./v2/RemoteControlDisableParams"; +import type { RemoteControlEnableParams } from "./v2/RemoteControlEnableParams"; +import type { RemoteControlPairingStartParams } from "./v2/RemoteControlPairingStartParams"; +import type { RemoteControlPairingStatusParams } from "./v2/RemoteControlPairingStatusParams"; import type { ReviewStartParams } from "./v2/ReviewStartParams"; import type { SendAddCreditsNudgeEmailParams } from "./v2/SendAddCreditsNudgeEmailParams"; import type { SkillsConfigWriteParams } from "./v2/SkillsConfigWriteParams"; +import type { SkillsExtraRootsSetParams } from "./v2/SkillsExtraRootsSetParams"; import type { SkillsListParams } from "./v2/SkillsListParams"; import type { ThreadApproveGuardianDeniedActionParams } from "./v2/ThreadApproveGuardianDeniedActionParams"; import type { ThreadArchiveParams } from "./v2/ThreadArchiveParams"; import type { ThreadBackgroundTerminalsCleanParams } from "./v2/ThreadBackgroundTerminalsCleanParams"; +import type { ThreadBackgroundTerminalsListParams } from "./v2/ThreadBackgroundTerminalsListParams"; +import type { ThreadBackgroundTerminalsTerminateParams } from "./v2/ThreadBackgroundTerminalsTerminateParams"; import type { ThreadCompactStartParams } from "./v2/ThreadCompactStartParams"; import type { ThreadDecrementElicitationParams } from "./v2/ThreadDecrementElicitationParams"; +import type { ThreadDeleteParams } from "./v2/ThreadDeleteParams"; import type { ThreadForkParams } from "./v2/ThreadForkParams"; import type { ThreadGoalClearParams } from "./v2/ThreadGoalClearParams"; import type { ThreadGoalGetParams } from "./v2/ThreadGoalGetParams"; import type { ThreadGoalSetParams } from "./v2/ThreadGoalSetParams"; import type { ThreadIncrementElicitationParams } from "./v2/ThreadIncrementElicitationParams"; import type { ThreadInjectItemsParams } from "./v2/ThreadInjectItemsParams"; +import type { ThreadItemsListParams } from "./v2/ThreadItemsListParams"; import type { ThreadListParams } from "./v2/ThreadListParams"; import type { ThreadLoadedListParams } from "./v2/ThreadLoadedListParams"; import type { ThreadMemoryModeSetParams } from "./v2/ThreadMemoryModeSetParams"; import type { ThreadMetadataUpdateParams } from "./v2/ThreadMetadataUpdateParams"; import type { ThreadReadParams } from "./v2/ThreadReadParams"; import type { ThreadRealtimeAppendAudioParams } from "./v2/ThreadRealtimeAppendAudioParams"; +import type { ThreadRealtimeAppendSpeechParams } from "./v2/ThreadRealtimeAppendSpeechParams"; import type { ThreadRealtimeAppendTextParams } from "./v2/ThreadRealtimeAppendTextParams"; import type { ThreadRealtimeListVoicesParams } from "./v2/ThreadRealtimeListVoicesParams"; import type { ThreadRealtimeStartParams } from "./v2/ThreadRealtimeStartParams"; @@ -96,7 +110,6 @@ import type { ThreadSetNameParams } from "./v2/ThreadSetNameParams"; import type { ThreadSettingsUpdateParams } from "./v2/ThreadSettingsUpdateParams"; import type { ThreadShellCommandParams } from "./v2/ThreadShellCommandParams"; import type { ThreadStartParams } from "./v2/ThreadStartParams"; -import type { ThreadTurnsItemsListParams } from "./v2/ThreadTurnsItemsListParams"; import type { ThreadTurnsListParams } from "./v2/ThreadTurnsListParams"; import type { ThreadUnarchiveParams } from "./v2/ThreadUnarchiveParams"; import type { ThreadUnsubscribeParams } from "./v2/ThreadUnsubscribeParams"; @@ -108,4 +121,4 @@ import type { WindowsSandboxSetupStartParams } from "./v2/WindowsSandboxSetupSta /** * Request from the client to the server. */ -export type ClientRequest = { "method": "initialize", id: RequestId, params: InitializeParams, } | { "method": "thread/start", id: RequestId, params: ThreadStartParams, } | { "method": "thread/resume", id: RequestId, params: ThreadResumeParams, } | { "method": "thread/fork", id: RequestId, params: ThreadForkParams, } | { "method": "thread/archive", id: RequestId, params: ThreadArchiveParams, } | { "method": "thread/unsubscribe", id: RequestId, params: ThreadUnsubscribeParams, } | { "method": "thread/increment_elicitation", id: RequestId, params: ThreadIncrementElicitationParams, } | { "method": "thread/decrement_elicitation", id: RequestId, params: ThreadDecrementElicitationParams, } | { "method": "thread/name/set", id: RequestId, params: ThreadSetNameParams, } | { "method": "thread/goal/set", id: RequestId, params: ThreadGoalSetParams, } | { "method": "thread/goal/get", id: RequestId, params: ThreadGoalGetParams, } | { "method": "thread/goal/clear", id: RequestId, params: ThreadGoalClearParams, } | { "method": "thread/metadata/update", id: RequestId, params: ThreadMetadataUpdateParams, } | { "method": "thread/settings/update", id: RequestId, params: ThreadSettingsUpdateParams, } | { "method": "thread/memoryMode/set", id: RequestId, params: ThreadMemoryModeSetParams, } | { "method": "memory/reset", id: RequestId, params: undefined, } | { "method": "thread/unarchive", id: RequestId, params: ThreadUnarchiveParams, } | { "method": "thread/compact/start", id: RequestId, params: ThreadCompactStartParams, } | { "method": "thread/shellCommand", id: RequestId, params: ThreadShellCommandParams, } | { "method": "thread/approveGuardianDeniedAction", id: RequestId, params: ThreadApproveGuardianDeniedActionParams, } | { "method": "thread/backgroundTerminals/clean", id: RequestId, params: ThreadBackgroundTerminalsCleanParams, } | { "method": "thread/rollback", id: RequestId, params: ThreadRollbackParams, } | { "method": "thread/list", id: RequestId, params: ThreadListParams, } | { "method": "thread/search", id: RequestId, params: ThreadSearchParams, } | { "method": "thread/loaded/list", id: RequestId, params: ThreadLoadedListParams, } | { "method": "thread/read", id: RequestId, params: ThreadReadParams, } | { "method": "thread/turns/list", id: RequestId, params: ThreadTurnsListParams, } | { "method": "thread/turns/items/list", id: RequestId, params: ThreadTurnsItemsListParams, } | { "method": "thread/inject_items", id: RequestId, params: ThreadInjectItemsParams, } | { "method": "skills/list", id: RequestId, params: SkillsListParams, } | { "method": "hooks/list", id: RequestId, params: HooksListParams, } | { "method": "marketplace/add", id: RequestId, params: MarketplaceAddParams, } | { "method": "marketplace/remove", id: RequestId, params: MarketplaceRemoveParams, } | { "method": "marketplace/upgrade", id: RequestId, params: MarketplaceUpgradeParams, } | { "method": "plugin/list", id: RequestId, params: PluginListParams, } | { "method": "plugin/installed", id: RequestId, params: PluginInstalledParams, } | { "method": "plugin/read", id: RequestId, params: PluginReadParams, } | { "method": "plugin/skill/read", id: RequestId, params: PluginSkillReadParams, } | { "method": "plugin/share/save", id: RequestId, params: PluginShareSaveParams, } | { "method": "plugin/share/updateTargets", id: RequestId, params: PluginShareUpdateTargetsParams, } | { "method": "plugin/share/list", id: RequestId, params: PluginShareListParams, } | { "method": "plugin/share/checkout", id: RequestId, params: PluginShareCheckoutParams, } | { "method": "plugin/share/delete", id: RequestId, params: PluginShareDeleteParams, } | { "method": "app/list", id: RequestId, params: AppsListParams, } | { "method": "fs/readFile", id: RequestId, params: FsReadFileParams, } | { "method": "fs/writeFile", id: RequestId, params: FsWriteFileParams, } | { "method": "fs/createDirectory", id: RequestId, params: FsCreateDirectoryParams, } | { "method": "fs/getMetadata", id: RequestId, params: FsGetMetadataParams, } | { "method": "fs/readDirectory", id: RequestId, params: FsReadDirectoryParams, } | { "method": "fs/remove", id: RequestId, params: FsRemoveParams, } | { "method": "fs/copy", id: RequestId, params: FsCopyParams, } | { "method": "fs/watch", id: RequestId, params: FsWatchParams, } | { "method": "fs/unwatch", id: RequestId, params: FsUnwatchParams, } | { "method": "skills/config/write", id: RequestId, params: SkillsConfigWriteParams, } | { "method": "plugin/install", id: RequestId, params: PluginInstallParams, } | { "method": "plugin/uninstall", id: RequestId, params: PluginUninstallParams, } | { "method": "turn/start", id: RequestId, params: TurnStartParams, } | { "method": "turn/steer", id: RequestId, params: TurnSteerParams, } | { "method": "turn/interrupt", id: RequestId, params: TurnInterruptParams, } | { "method": "thread/realtime/start", id: RequestId, params: ThreadRealtimeStartParams, } | { "method": "thread/realtime/appendAudio", id: RequestId, params: ThreadRealtimeAppendAudioParams, } | { "method": "thread/realtime/appendText", id: RequestId, params: ThreadRealtimeAppendTextParams, } | { "method": "thread/realtime/stop", id: RequestId, params: ThreadRealtimeStopParams, } | { "method": "thread/realtime/listVoices", id: RequestId, params: ThreadRealtimeListVoicesParams, } | { "method": "review/start", id: RequestId, params: ReviewStartParams, } | { "method": "model/list", id: RequestId, params: ModelListParams, } | { "method": "modelProvider/capabilities/read", id: RequestId, params: ModelProviderCapabilitiesReadParams, } | { "method": "experimentalFeature/list", id: RequestId, params: ExperimentalFeatureListParams, } | { "method": "permissionProfile/list", id: RequestId, params: PermissionProfileListParams, } | { "method": "experimentalFeature/enablement/set", id: RequestId, params: ExperimentalFeatureEnablementSetParams, } | { "method": "remoteControl/enable", id: RequestId, params: undefined, } | { "method": "remoteControl/disable", id: RequestId, params: undefined, } | { "method": "remoteControl/status/read", id: RequestId, params: undefined, } | { "method": "collaborationMode/list", id: RequestId, params: CollaborationModeListParams, } | { "method": "mock/experimentalMethod", id: RequestId, params: MockExperimentalMethodParams, } | { "method": "environment/add", id: RequestId, params: EnvironmentAddParams, } | { "method": "mcpServer/oauth/login", id: RequestId, params: McpServerOauthLoginParams, } | { "method": "config/mcpServer/reload", id: RequestId, params: undefined, } | { "method": "mcpServerStatus/list", id: RequestId, params: ListMcpServerStatusParams, } | { "method": "mcpServer/resource/read", id: RequestId, params: McpResourceReadParams, } | { "method": "mcpServer/tool/call", id: RequestId, params: McpServerToolCallParams, } | { "method": "windowsSandbox/setupStart", id: RequestId, params: WindowsSandboxSetupStartParams, } | { "method": "windowsSandbox/readiness", id: RequestId, params: undefined, } | { "method": "account/login/start", id: RequestId, params: LoginAccountParams, } | { "method": "account/login/cancel", id: RequestId, params: CancelLoginAccountParams, } | { "method": "account/logout", id: RequestId, params: undefined, } | { "method": "account/rateLimits/read", id: RequestId, params: undefined, } | { "method": "account/sendAddCreditsNudgeEmail", id: RequestId, params: SendAddCreditsNudgeEmailParams, } | { "method": "feedback/upload", id: RequestId, params: FeedbackUploadParams, } | { "method": "command/exec", id: RequestId, params: CommandExecParams, } | { "method": "command/exec/write", id: RequestId, params: CommandExecWriteParams, } | { "method": "command/exec/terminate", id: RequestId, params: CommandExecTerminateParams, } | { "method": "command/exec/resize", id: RequestId, params: CommandExecResizeParams, } | { "method": "process/spawn", id: RequestId, params: ProcessSpawnParams, } | { "method": "process/writeStdin", id: RequestId, params: ProcessWriteStdinParams, } | { "method": "process/kill", id: RequestId, params: ProcessKillParams, } | { "method": "process/resizePty", id: RequestId, params: ProcessResizePtyParams, } | { "method": "config/read", id: RequestId, params: ConfigReadParams, } | { "method": "externalAgentConfig/detect", id: RequestId, params: ExternalAgentConfigDetectParams, } | { "method": "externalAgentConfig/import", id: RequestId, params: ExternalAgentConfigImportParams, } | { "method": "config/value/write", id: RequestId, params: ConfigValueWriteParams, } | { "method": "config/batchWrite", id: RequestId, params: ConfigBatchWriteParams, } | { "method": "configRequirements/read", id: RequestId, params: undefined, } | { "method": "account/read", id: RequestId, params: GetAccountParams, } | { "method": "getConversationSummary", id: RequestId, params: GetConversationSummaryParams, } | { "method": "gitDiffToRemote", id: RequestId, params: GitDiffToRemoteParams, } | { "method": "getAuthStatus", id: RequestId, params: GetAuthStatusParams, } | { "method": "fuzzyFileSearch", id: RequestId, params: FuzzyFileSearchParams, } | { "method": "fuzzyFileSearch/sessionStart", id: RequestId, params: FuzzyFileSearchSessionStartParams, } | { "method": "fuzzyFileSearch/sessionUpdate", id: RequestId, params: FuzzyFileSearchSessionUpdateParams, } | { "method": "fuzzyFileSearch/sessionStop", id: RequestId, params: FuzzyFileSearchSessionStopParams, }; +export type ClientRequest = { "method": "initialize", id: RequestId, params: InitializeParams, } | { "method": "thread/start", id: RequestId, params: ThreadStartParams, } | { "method": "thread/resume", id: RequestId, params: ThreadResumeParams, } | { "method": "thread/fork", id: RequestId, params: ThreadForkParams, } | { "method": "thread/archive", id: RequestId, params: ThreadArchiveParams, } | { "method": "thread/delete", id: RequestId, params: ThreadDeleteParams, } | { "method": "thread/unsubscribe", id: RequestId, params: ThreadUnsubscribeParams, } | { "method": "thread/increment_elicitation", id: RequestId, params: ThreadIncrementElicitationParams, } | { "method": "thread/decrement_elicitation", id: RequestId, params: ThreadDecrementElicitationParams, } | { "method": "thread/name/set", id: RequestId, params: ThreadSetNameParams, } | { "method": "thread/goal/set", id: RequestId, params: ThreadGoalSetParams, } | { "method": "thread/goal/get", id: RequestId, params: ThreadGoalGetParams, } | { "method": "thread/goal/clear", id: RequestId, params: ThreadGoalClearParams, } | { "method": "thread/metadata/update", id: RequestId, params: ThreadMetadataUpdateParams, } | { "method": "thread/settings/update", id: RequestId, params: ThreadSettingsUpdateParams, } | { "method": "thread/memoryMode/set", id: RequestId, params: ThreadMemoryModeSetParams, } | { "method": "memory/reset", id: RequestId, params: undefined, } | { "method": "thread/unarchive", id: RequestId, params: ThreadUnarchiveParams, } | { "method": "thread/compact/start", id: RequestId, params: ThreadCompactStartParams, } | { "method": "thread/shellCommand", id: RequestId, params: ThreadShellCommandParams, } | { "method": "thread/approveGuardianDeniedAction", id: RequestId, params: ThreadApproveGuardianDeniedActionParams, } | { "method": "thread/backgroundTerminals/clean", id: RequestId, params: ThreadBackgroundTerminalsCleanParams, } | { "method": "thread/backgroundTerminals/list", id: RequestId, params: ThreadBackgroundTerminalsListParams, } | { "method": "thread/backgroundTerminals/terminate", id: RequestId, params: ThreadBackgroundTerminalsTerminateParams, } | { "method": "thread/rollback", id: RequestId, params: ThreadRollbackParams, } | { "method": "thread/list", id: RequestId, params: ThreadListParams, } | { "method": "thread/search", id: RequestId, params: ThreadSearchParams, } | { "method": "thread/loaded/list", id: RequestId, params: ThreadLoadedListParams, } | { "method": "thread/read", id: RequestId, params: ThreadReadParams, } | { "method": "thread/turns/list", id: RequestId, params: ThreadTurnsListParams, } | { "method": "thread/items/list", id: RequestId, params: ThreadItemsListParams, } | { "method": "thread/inject_items", id: RequestId, params: ThreadInjectItemsParams, } | { "method": "skills/list", id: RequestId, params: SkillsListParams, } | { "method": "skills/extraRoots/set", id: RequestId, params: SkillsExtraRootsSetParams, } | { "method": "hooks/list", id: RequestId, params: HooksListParams, } | { "method": "marketplace/add", id: RequestId, params: MarketplaceAddParams, } | { "method": "marketplace/remove", id: RequestId, params: MarketplaceRemoveParams, } | { "method": "marketplace/upgrade", id: RequestId, params: MarketplaceUpgradeParams, } | { "method": "plugin/list", id: RequestId, params: PluginListParams, } | { "method": "plugin/installed", id: RequestId, params: PluginInstalledParams, } | { "method": "plugin/read", id: RequestId, params: PluginReadParams, } | { "method": "plugin/skill/read", id: RequestId, params: PluginSkillReadParams, } | { "method": "plugin/share/save", id: RequestId, params: PluginShareSaveParams, } | { "method": "plugin/share/updateTargets", id: RequestId, params: PluginShareUpdateTargetsParams, } | { "method": "plugin/share/list", id: RequestId, params: PluginShareListParams, } | { "method": "plugin/share/checkout", id: RequestId, params: PluginShareCheckoutParams, } | { "method": "plugin/share/delete", id: RequestId, params: PluginShareDeleteParams, } | { "method": "app/list", id: RequestId, params: AppsListParams, } | { "method": "fs/readFile", id: RequestId, params: FsReadFileParams, } | { "method": "fs/writeFile", id: RequestId, params: FsWriteFileParams, } | { "method": "fs/createDirectory", id: RequestId, params: FsCreateDirectoryParams, } | { "method": "fs/getMetadata", id: RequestId, params: FsGetMetadataParams, } | { "method": "fs/readDirectory", id: RequestId, params: FsReadDirectoryParams, } | { "method": "fs/remove", id: RequestId, params: FsRemoveParams, } | { "method": "fs/copy", id: RequestId, params: FsCopyParams, } | { "method": "fs/watch", id: RequestId, params: FsWatchParams, } | { "method": "fs/unwatch", id: RequestId, params: FsUnwatchParams, } | { "method": "skills/config/write", id: RequestId, params: SkillsConfigWriteParams, } | { "method": "plugin/install", id: RequestId, params: PluginInstallParams, } | { "method": "plugin/uninstall", id: RequestId, params: PluginUninstallParams, } | { "method": "turn/start", id: RequestId, params: TurnStartParams, } | { "method": "turn/steer", id: RequestId, params: TurnSteerParams, } | { "method": "turn/interrupt", id: RequestId, params: TurnInterruptParams, } | { "method": "thread/realtime/start", id: RequestId, params: ThreadRealtimeStartParams, } | { "method": "thread/realtime/appendAudio", id: RequestId, params: ThreadRealtimeAppendAudioParams, } | { "method": "thread/realtime/appendText", id: RequestId, params: ThreadRealtimeAppendTextParams, } | { "method": "thread/realtime/appendSpeech", id: RequestId, params: ThreadRealtimeAppendSpeechParams, } | { "method": "thread/realtime/stop", id: RequestId, params: ThreadRealtimeStopParams, } | { "method": "thread/realtime/listVoices", id: RequestId, params: ThreadRealtimeListVoicesParams, } | { "method": "review/start", id: RequestId, params: ReviewStartParams, } | { "method": "model/list", id: RequestId, params: ModelListParams, } | { "method": "modelProvider/capabilities/read", id: RequestId, params: ModelProviderCapabilitiesReadParams, } | { "method": "experimentalFeature/list", id: RequestId, params: ExperimentalFeatureListParams, } | { "method": "permissionProfile/list", id: RequestId, params: PermissionProfileListParams, } | { "method": "experimentalFeature/enablement/set", id: RequestId, params: ExperimentalFeatureEnablementSetParams, } | { "method": "remoteControl/enable", id: RequestId, params: RemoteControlEnableParams | null, } | { "method": "remoteControl/disable", id: RequestId, params: RemoteControlDisableParams | null, } | { "method": "remoteControl/status/read", id: RequestId, params: undefined, } | { "method": "remoteControl/pairing/start", id: RequestId, params: RemoteControlPairingStartParams, } | { "method": "remoteControl/pairing/status", id: RequestId, params: RemoteControlPairingStatusParams, } | { "method": "remoteControl/client/list", id: RequestId, params: RemoteControlClientsListParams, } | { "method": "remoteControl/client/revoke", id: RequestId, params: RemoteControlClientsRevokeParams, } | { "method": "collaborationMode/list", id: RequestId, params: CollaborationModeListParams, } | { "method": "mock/experimentalMethod", id: RequestId, params: MockExperimentalMethodParams, } | { "method": "environment/add", id: RequestId, params: EnvironmentAddParams, } | { "method": "environment/info", id: RequestId, params: EnvironmentInfoParams, } | { "method": "mcpServer/oauth/login", id: RequestId, params: McpServerOauthLoginParams, } | { "method": "config/mcpServer/reload", id: RequestId, params: undefined, } | { "method": "mcpServerStatus/list", id: RequestId, params: ListMcpServerStatusParams, } | { "method": "mcpServer/resource/read", id: RequestId, params: McpResourceReadParams, } | { "method": "mcpServer/tool/call", id: RequestId, params: McpServerToolCallParams, } | { "method": "windowsSandbox/setupStart", id: RequestId, params: WindowsSandboxSetupStartParams, } | { "method": "windowsSandbox/readiness", id: RequestId, params: undefined, } | { "method": "account/login/start", id: RequestId, params: LoginAccountParams, } | { "method": "account/login/cancel", id: RequestId, params: CancelLoginAccountParams, } | { "method": "account/logout", id: RequestId, params: undefined, } | { "method": "account/rateLimits/read", id: RequestId, params: undefined, } | { "method": "account/rateLimitResetCredit/consume", id: RequestId, params: ConsumeAccountRateLimitResetCreditParams, } | { "method": "account/usage/read", id: RequestId, params: undefined, } | { "method": "account/workspaceMessages/read", id: RequestId, params: undefined, } | { "method": "account/sendAddCreditsNudgeEmail", id: RequestId, params: SendAddCreditsNudgeEmailParams, } | { "method": "feedback/upload", id: RequestId, params: FeedbackUploadParams, } | { "method": "command/exec", id: RequestId, params: CommandExecParams, } | { "method": "command/exec/write", id: RequestId, params: CommandExecWriteParams, } | { "method": "command/exec/terminate", id: RequestId, params: CommandExecTerminateParams, } | { "method": "command/exec/resize", id: RequestId, params: CommandExecResizeParams, } | { "method": "process/spawn", id: RequestId, params: ProcessSpawnParams, } | { "method": "process/writeStdin", id: RequestId, params: ProcessWriteStdinParams, } | { "method": "process/kill", id: RequestId, params: ProcessKillParams, } | { "method": "process/resizePty", id: RequestId, params: ProcessResizePtyParams, } | { "method": "config/read", id: RequestId, params: ConfigReadParams, } | { "method": "externalAgentConfig/detect", id: RequestId, params: ExternalAgentConfigDetectParams, } | { "method": "externalAgentConfig/import", id: RequestId, params: ExternalAgentConfigImportParams, } | { "method": "externalAgentConfig/import/readHistories", id: RequestId, params: undefined, } | { "method": "config/value/write", id: RequestId, params: ConfigValueWriteParams, } | { "method": "config/batchWrite", id: RequestId, params: ConfigBatchWriteParams, } | { "method": "configRequirements/read", id: RequestId, params: undefined, } | { "method": "account/read", id: RequestId, params: GetAccountParams, } | { "method": "getConversationSummary", id: RequestId, params: GetConversationSummaryParams, } | { "method": "gitDiffToRemote", id: RequestId, params: GitDiffToRemoteParams, } | { "method": "getAuthStatus", id: RequestId, params: GetAuthStatusParams, } | { "method": "fuzzyFileSearch", id: RequestId, params: FuzzyFileSearchParams, } | { "method": "fuzzyFileSearch/sessionStart", id: RequestId, params: FuzzyFileSearchSessionStartParams, } | { "method": "fuzzyFileSearch/sessionUpdate", id: RequestId, params: FuzzyFileSearchSessionUpdateParams, } | { "method": "fuzzyFileSearch/sessionStop", id: RequestId, params: FuzzyFileSearchSessionStopParams, }; diff --git a/src/ConversationTextRole.ts b/src/ConversationTextRole.ts new file mode 100644 index 0000000..a4d574b --- /dev/null +++ b/src/ConversationTextRole.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ConversationTextRole = "user" | "developer" | "assistant"; diff --git a/src/ImageGenerationItem.ts b/src/ImageGenerationItem.ts new file mode 100644 index 0000000..26cd628 --- /dev/null +++ b/src/ImageGenerationItem.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { AbsolutePathBuf } from "./AbsolutePathBuf"; + +export type ImageGenerationItem = { id: string, status: string, revisedPrompt: string | null, result: string, savedPath?: AbsolutePathBuf, }; diff --git a/src/InitializeCapabilities.ts b/src/InitializeCapabilities.ts index c5043e3..dcc4dff 100644 --- a/src/InitializeCapabilities.ts +++ b/src/InitializeCapabilities.ts @@ -14,6 +14,10 @@ experimentalApi: boolean, * Opt into `attestation/generate` requests for upstream `x-oai-attestation`. */ requestAttestation: boolean, +/** + * Allow downstream MCP servers to request OpenAI extended form elicitations. + */ +mcpServerOpenaiFormElicitation?: boolean, /** * Exact notification method names that should be suppressed for this * connection (for example `thread/started`). diff --git a/src/InternalChatMessageMetadataPassthrough.ts b/src/InternalChatMessageMetadataPassthrough.ts new file mode 100644 index 0000000..6ccf386 --- /dev/null +++ b/src/InternalChatMessageMetadataPassthrough.ts @@ -0,0 +1,11 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Internal Responses API passthrough metadata copied into underlying chat messages. + * + * Responses API strongly types this payload. Do not modify it without first getting API + * approval and making the corresponding Responses API change. + */ +export type InternalChatMessageMetadataPassthrough = { turn_id?: string, }; diff --git a/src/LegacyAppPathString.ts b/src/LegacyAppPathString.ts new file mode 100644 index 0000000..e39784a --- /dev/null +++ b/src/LegacyAppPathString.ts @@ -0,0 +1,26 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * A UTF-8 path for preserving raw path compatibility at the app-server API + * boundary while Codex migrates to [`PathUri`]. + * + * Supports storing arbitrary strings read from the API and converting to and + * from [`PathUri`] using an explicitly selected native path convention. + * + * When converting from [`PathUri`], "native" refers to the supplied + * [`PathConvention`], which may be foreign to the operating system running + * this process. The inner string is private so path-producing code must use a + * path conversion method instead of bypassing the intended conversion + * boundary. Non-UTF-8 paths are converted to UTF-8 lossily because this API + * value is serialized as a JSON string. + * + * Deserialization accepts any UTF-8 string without interpreting or validating + * it. That unrestricted construction path is intentionally available only to + * serde: Codex-internal code cannot construct this type directly from a raw + * `String` and is instead encouraged to convert through [`PathUri`] or + * [`AbsolutePathBuf`]. Relative path text remains valid until an operation + * such as [`Self::to_path_uri`] requires an absolute path. + */ +export type LegacyAppPathString = string; diff --git a/src/McpServerInfo.ts b/src/McpServerInfo.ts new file mode 100644 index 0000000..a3f6b0e --- /dev/null +++ b/src/McpServerInfo.ts @@ -0,0 +1,9 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { JsonValue } from "./serde_json/JsonValue"; + +/** + * Presentation metadata advertised by an initialized MCP server. + */ +export type McpServerInfo = { name: string, title: string | null, version: string, description: string | null, icons: Array | null, websiteUrl: string | null, }; diff --git a/src/MultiAgentMode.ts b/src/MultiAgentMode.ts new file mode 100644 index 0000000..7784a6f --- /dev/null +++ b/src/MultiAgentMode.ts @@ -0,0 +1,9 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Controls the effective multi-agent delegation instructions for a turn. `custom` means the + * configured mode hint defines the policy instead of a built-in policy. + */ +export type MultiAgentMode = { "custom": string } | "explicitRequestOnly" | "proactive"; diff --git a/src/PathUri.ts b/src/PathUri.ts new file mode 100644 index 0000000..5b32b95 --- /dev/null +++ b/src/PathUri.ts @@ -0,0 +1,30 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * An immutable, cross-platform representation of a `file:` URI. + * + * Only the `file:` scheme is currently accepted. Construction validates the + * URL, and the URI cannot be mutated after construction. [`Self::basename`], + * [`Self::parent`], and [`Self::join`] operate on URI path segments without + * interpreting them using the operating system running Codex. Fallback URIs + * created by [`Self::from_abs_path`] are opaque to these lexical operations. + * + * `file:` paths retain their URI spelling so they can be parsed independently + * of the current host. A local POSIX `file:` URI can also retain + * percent-encoded non-UTF-8 bytes for lossless native round trips. + * + * Like [VS Code resources], path operations use `/` URI separators on every + * host. Lexical path operations preserve a URL authority without interpreting + * Windows drive or UNC roots from path text. Native path normalization, + * filesystem aliases, symlinks, case sensitivity, and Unicode normalization + * are not resolved. + * + * Serde represents a `PathUri` as its canonical URI string. Deserialization + * accepts only valid `file:` URI strings. These strings round-trip through + * their canonical URL form, including encoded non-UTF-8 path bytes. + * + * [VS Code resources]: https://github.com/microsoft/vscode/blob/main/src/vs/base/common/resources.ts + */ +export type PathUri = string; diff --git a/src/ReasoningEffort.ts b/src/ReasoningEffort.ts index c0798f4..d40f5bd 100644 --- a/src/ReasoningEffort.ts +++ b/src/ReasoningEffort.ts @@ -5,4 +5,4 @@ /** * See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning */ -export type ReasoningEffort = "none" | "minimal" | "low" | "medium" | "high" | "xhigh"; +export type ReasoningEffort = string; diff --git a/src/ResponseItem.ts b/src/ResponseItem.ts index e5e960f..769b1b0 100644 --- a/src/ResponseItem.ts +++ b/src/ResponseItem.ts @@ -1,8 +1,10 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { AgentMessageInputContent } from "./AgentMessageInputContent"; import type { ContentItem } from "./ContentItem"; import type { FunctionCallOutputBody } from "./FunctionCallOutputBody"; +import type { InternalChatMessageMetadataPassthrough } from "./InternalChatMessageMetadataPassthrough"; import type { LocalShellAction } from "./LocalShellAction"; import type { LocalShellStatus } from "./LocalShellStatus"; import type { MessagePhase } from "./MessagePhase"; @@ -10,8 +12,12 @@ import type { ReasoningItemContent } from "./ReasoningItemContent"; import type { ReasoningItemReasoningSummary } from "./ReasoningItemReasoningSummary"; import type { WebSearchAction } from "./WebSearchAction"; -export type ResponseItem = { "type": "message", role: string, content: Array, phase?: MessagePhase, } | { "type": "reasoning", summary: Array, content?: Array, encrypted_content: string | null, } | { "type": "local_shell_call", +export type ResponseItem = { "type": "message", id?: string, role: string, content: Array, phase?: MessagePhase, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "agent_message", id?: string, author: string, recipient: string, content: Array, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "reasoning", id?: string, summary: Array, content?: Array, encrypted_content: string | null, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "local_shell_call", +/** + * Legacy id field retained for compatibility with older payloads. + */ +id?: string, /** * Set when using the Responses API. */ -call_id: string | null, status: LocalShellStatus, action: LocalShellAction, } | { "type": "function_call", name: string, namespace?: string, arguments: string, call_id: string, } | { "type": "tool_search_call", call_id: string | null, status?: string, execution: string, arguments: unknown, } | { "type": "function_call_output", call_id: string, output: FunctionCallOutputBody, } | { "type": "custom_tool_call", status?: string, call_id: string, name: string, input: string, } | { "type": "custom_tool_call_output", call_id: string, name?: string, output: FunctionCallOutputBody, } | { "type": "tool_search_output", call_id: string | null, status: string, execution: string, tools: unknown[], } | { "type": "web_search_call", status?: string, action?: WebSearchAction, } | { "type": "image_generation_call", id: string, status: string, revised_prompt?: string, result: string, } | { "type": "compaction", encrypted_content: string, } | { "type": "compaction_trigger" } | { "type": "context_compaction", encrypted_content?: string, } | { "type": "other" }; +call_id: string | null, status: LocalShellStatus, action: LocalShellAction, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "function_call", id?: string, name: string, namespace?: string, arguments: string, call_id: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "tool_search_call", id?: string, call_id: string | null, status?: string, execution: string, arguments: unknown, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "function_call_output", id?: string, call_id: string, output: FunctionCallOutputBody, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "custom_tool_call", id?: string, status?: string, call_id: string, name: string, namespace?: string, input: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "custom_tool_call_output", id?: string, call_id: string, name?: string, output: FunctionCallOutputBody, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "tool_search_output", id?: string, call_id: string | null, status: string, execution: string, tools: unknown[], internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "web_search_call", id?: string, status?: string, action?: WebSearchAction, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "image_generation_call", id?: string, status: string, revised_prompt?: string, result: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "compaction", id?: string, encrypted_content: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "compaction_trigger", } | { "type": "context_compaction", id?: string, encrypted_content?: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "other" }; diff --git a/src/ServerNotification.ts b/src/ServerNotification.ts index 3ed710e..f3f828b 100644 --- a/src/ServerNotification.ts +++ b/src/ServerNotification.ts @@ -15,6 +15,7 @@ import type { ContextCompactedNotification } from "./v2/ContextCompactedNotifica import type { DeprecationNoticeNotification } from "./v2/DeprecationNoticeNotification"; import type { ErrorNotification } from "./v2/ErrorNotification"; import type { ExternalAgentConfigImportCompletedNotification } from "./v2/ExternalAgentConfigImportCompletedNotification"; +import type { ExternalAgentConfigImportProgressNotification } from "./v2/ExternalAgentConfigImportProgressNotification"; import type { FileChangeOutputDeltaNotification } from "./v2/FileChangeOutputDeltaNotification"; import type { FileChangePatchUpdatedNotification } from "./v2/FileChangePatchUpdatedNotification"; import type { FsChangedNotification } from "./v2/FsChangedNotification"; @@ -29,6 +30,7 @@ import type { McpServerOauthLoginCompletedNotification } from "./v2/McpServerOau import type { McpServerStatusUpdatedNotification } from "./v2/McpServerStatusUpdatedNotification"; import type { McpToolCallProgressNotification } from "./v2/McpToolCallProgressNotification"; import type { ModelReroutedNotification } from "./v2/ModelReroutedNotification"; +import type { ModelSafetyBufferingUpdatedNotification } from "./v2/ModelSafetyBufferingUpdatedNotification"; import type { ModelVerificationNotification } from "./v2/ModelVerificationNotification"; import type { PlanDeltaNotification } from "./v2/PlanDeltaNotification"; import type { ProcessExitedNotification } from "./v2/ProcessExitedNotification"; @@ -43,6 +45,7 @@ import type { SkillsChangedNotification } from "./v2/SkillsChangedNotification"; import type { TerminalInteractionNotification } from "./v2/TerminalInteractionNotification"; import type { ThreadArchivedNotification } from "./v2/ThreadArchivedNotification"; import type { ThreadClosedNotification } from "./v2/ThreadClosedNotification"; +import type { ThreadDeletedNotification } from "./v2/ThreadDeletedNotification"; import type { ThreadGoalClearedNotification } from "./v2/ThreadGoalClearedNotification"; import type { ThreadGoalUpdatedNotification } from "./v2/ThreadGoalUpdatedNotification"; import type { ThreadNameUpdatedNotification } from "./v2/ThreadNameUpdatedNotification"; @@ -61,6 +64,7 @@ import type { ThreadTokenUsageUpdatedNotification } from "./v2/ThreadTokenUsageU import type { ThreadUnarchivedNotification } from "./v2/ThreadUnarchivedNotification"; import type { TurnCompletedNotification } from "./v2/TurnCompletedNotification"; import type { TurnDiffUpdatedNotification } from "./v2/TurnDiffUpdatedNotification"; +import type { TurnModerationMetadataNotification } from "./v2/TurnModerationMetadataNotification"; import type { TurnPlanUpdatedNotification } from "./v2/TurnPlanUpdatedNotification"; import type { TurnStartedNotification } from "./v2/TurnStartedNotification"; import type { WarningNotification } from "./v2/WarningNotification"; @@ -70,4 +74,4 @@ import type { WindowsWorldWritableWarningNotification } from "./v2/WindowsWorldW /** * Notification sent from the server to the client. */ -export type ServerNotification = { "method": "error", "params": ErrorNotification } | { "method": "thread/started", "params": ThreadStartedNotification } | { "method": "thread/status/changed", "params": ThreadStatusChangedNotification } | { "method": "thread/archived", "params": ThreadArchivedNotification } | { "method": "thread/unarchived", "params": ThreadUnarchivedNotification } | { "method": "thread/closed", "params": ThreadClosedNotification } | { "method": "skills/changed", "params": SkillsChangedNotification } | { "method": "thread/name/updated", "params": ThreadNameUpdatedNotification } | { "method": "thread/goal/updated", "params": ThreadGoalUpdatedNotification } | { "method": "thread/goal/cleared", "params": ThreadGoalClearedNotification } | { "method": "thread/settings/updated", "params": ThreadSettingsUpdatedNotification } | { "method": "thread/tokenUsage/updated", "params": ThreadTokenUsageUpdatedNotification } | { "method": "turn/started", "params": TurnStartedNotification } | { "method": "hook/started", "params": HookStartedNotification } | { "method": "turn/completed", "params": TurnCompletedNotification } | { "method": "hook/completed", "params": HookCompletedNotification } | { "method": "turn/diff/updated", "params": TurnDiffUpdatedNotification } | { "method": "turn/plan/updated", "params": TurnPlanUpdatedNotification } | { "method": "item/started", "params": ItemStartedNotification } | { "method": "item/autoApprovalReview/started", "params": ItemGuardianApprovalReviewStartedNotification } | { "method": "item/autoApprovalReview/completed", "params": ItemGuardianApprovalReviewCompletedNotification } | { "method": "item/completed", "params": ItemCompletedNotification } | { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification } | { "method": "item/agentMessage/delta", "params": AgentMessageDeltaNotification } | { "method": "item/plan/delta", "params": PlanDeltaNotification } | { "method": "command/exec/outputDelta", "params": CommandExecOutputDeltaNotification } | { "method": "process/outputDelta", "params": ProcessOutputDeltaNotification } | { "method": "process/exited", "params": ProcessExitedNotification } | { "method": "item/commandExecution/outputDelta", "params": CommandExecutionOutputDeltaNotification } | { "method": "item/commandExecution/terminalInteraction", "params": TerminalInteractionNotification } | { "method": "item/fileChange/outputDelta", "params": FileChangeOutputDeltaNotification } | { "method": "item/fileChange/patchUpdated", "params": FileChangePatchUpdatedNotification } | { "method": "serverRequest/resolved", "params": ServerRequestResolvedNotification } | { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification } | { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification } | { "method": "mcpServer/startupStatus/updated", "params": McpServerStatusUpdatedNotification } | { "method": "account/updated", "params": AccountUpdatedNotification } | { "method": "account/rateLimits/updated", "params": AccountRateLimitsUpdatedNotification } | { "method": "app/list/updated", "params": AppListUpdatedNotification } | { "method": "remoteControl/status/changed", "params": RemoteControlStatusChangedNotification } | { "method": "externalAgentConfig/import/completed", "params": ExternalAgentConfigImportCompletedNotification } | { "method": "fs/changed", "params": FsChangedNotification } | { "method": "item/reasoning/summaryTextDelta", "params": ReasoningSummaryTextDeltaNotification } | { "method": "item/reasoning/summaryPartAdded", "params": ReasoningSummaryPartAddedNotification } | { "method": "item/reasoning/textDelta", "params": ReasoningTextDeltaNotification } | { "method": "thread/compacted", "params": ContextCompactedNotification } | { "method": "model/rerouted", "params": ModelReroutedNotification } | { "method": "model/verification", "params": ModelVerificationNotification } | { "method": "warning", "params": WarningNotification } | { "method": "guardianWarning", "params": GuardianWarningNotification } | { "method": "deprecationNotice", "params": DeprecationNoticeNotification } | { "method": "configWarning", "params": ConfigWarningNotification } | { "method": "fuzzyFileSearch/sessionUpdated", "params": FuzzyFileSearchSessionUpdatedNotification } | { "method": "fuzzyFileSearch/sessionCompleted", "params": FuzzyFileSearchSessionCompletedNotification } | { "method": "thread/realtime/started", "params": ThreadRealtimeStartedNotification } | { "method": "thread/realtime/itemAdded", "params": ThreadRealtimeItemAddedNotification } | { "method": "thread/realtime/transcript/delta", "params": ThreadRealtimeTranscriptDeltaNotification } | { "method": "thread/realtime/transcript/done", "params": ThreadRealtimeTranscriptDoneNotification } | { "method": "thread/realtime/outputAudio/delta", "params": ThreadRealtimeOutputAudioDeltaNotification } | { "method": "thread/realtime/sdp", "params": ThreadRealtimeSdpNotification } | { "method": "thread/realtime/error", "params": ThreadRealtimeErrorNotification } | { "method": "thread/realtime/closed", "params": ThreadRealtimeClosedNotification } | { "method": "windows/worldWritableWarning", "params": WindowsWorldWritableWarningNotification } | { "method": "windowsSandbox/setupCompleted", "params": WindowsSandboxSetupCompletedNotification } | { "method": "account/login/completed", "params": AccountLoginCompletedNotification }; +export type ServerNotification = { "method": "error", "params": ErrorNotification } | { "method": "thread/started", "params": ThreadStartedNotification } | { "method": "thread/status/changed", "params": ThreadStatusChangedNotification } | { "method": "thread/archived", "params": ThreadArchivedNotification } | { "method": "thread/deleted", "params": ThreadDeletedNotification } | { "method": "thread/unarchived", "params": ThreadUnarchivedNotification } | { "method": "thread/closed", "params": ThreadClosedNotification } | { "method": "skills/changed", "params": SkillsChangedNotification } | { "method": "thread/name/updated", "params": ThreadNameUpdatedNotification } | { "method": "thread/goal/updated", "params": ThreadGoalUpdatedNotification } | { "method": "thread/goal/cleared", "params": ThreadGoalClearedNotification } | { "method": "thread/settings/updated", "params": ThreadSettingsUpdatedNotification } | { "method": "thread/tokenUsage/updated", "params": ThreadTokenUsageUpdatedNotification } | { "method": "turn/started", "params": TurnStartedNotification } | { "method": "hook/started", "params": HookStartedNotification } | { "method": "turn/completed", "params": TurnCompletedNotification } | { "method": "hook/completed", "params": HookCompletedNotification } | { "method": "turn/diff/updated", "params": TurnDiffUpdatedNotification } | { "method": "turn/plan/updated", "params": TurnPlanUpdatedNotification } | { "method": "item/started", "params": ItemStartedNotification } | { "method": "item/autoApprovalReview/started", "params": ItemGuardianApprovalReviewStartedNotification } | { "method": "item/autoApprovalReview/completed", "params": ItemGuardianApprovalReviewCompletedNotification } | { "method": "item/completed", "params": ItemCompletedNotification } | { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification } | { "method": "item/agentMessage/delta", "params": AgentMessageDeltaNotification } | { "method": "item/plan/delta", "params": PlanDeltaNotification } | { "method": "command/exec/outputDelta", "params": CommandExecOutputDeltaNotification } | { "method": "process/outputDelta", "params": ProcessOutputDeltaNotification } | { "method": "process/exited", "params": ProcessExitedNotification } | { "method": "item/commandExecution/outputDelta", "params": CommandExecutionOutputDeltaNotification } | { "method": "item/commandExecution/terminalInteraction", "params": TerminalInteractionNotification } | { "method": "item/fileChange/outputDelta", "params": FileChangeOutputDeltaNotification } | { "method": "item/fileChange/patchUpdated", "params": FileChangePatchUpdatedNotification } | { "method": "serverRequest/resolved", "params": ServerRequestResolvedNotification } | { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification } | { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification } | { "method": "mcpServer/startupStatus/updated", "params": McpServerStatusUpdatedNotification } | { "method": "account/updated", "params": AccountUpdatedNotification } | { "method": "account/rateLimits/updated", "params": AccountRateLimitsUpdatedNotification } | { "method": "app/list/updated", "params": AppListUpdatedNotification } | { "method": "remoteControl/status/changed", "params": RemoteControlStatusChangedNotification } | { "method": "externalAgentConfig/import/progress", "params": ExternalAgentConfigImportProgressNotification } | { "method": "externalAgentConfig/import/completed", "params": ExternalAgentConfigImportCompletedNotification } | { "method": "fs/changed", "params": FsChangedNotification } | { "method": "item/reasoning/summaryTextDelta", "params": ReasoningSummaryTextDeltaNotification } | { "method": "item/reasoning/summaryPartAdded", "params": ReasoningSummaryPartAddedNotification } | { "method": "item/reasoning/textDelta", "params": ReasoningTextDeltaNotification } | { "method": "thread/compacted", "params": ContextCompactedNotification } | { "method": "model/rerouted", "params": ModelReroutedNotification } | { "method": "model/verification", "params": ModelVerificationNotification } | { "method": "turn/moderationMetadata", "params": TurnModerationMetadataNotification } | { "method": "model/safetyBuffering/updated", "params": ModelSafetyBufferingUpdatedNotification } | { "method": "warning", "params": WarningNotification } | { "method": "guardianWarning", "params": GuardianWarningNotification } | { "method": "deprecationNotice", "params": DeprecationNoticeNotification } | { "method": "configWarning", "params": ConfigWarningNotification } | { "method": "fuzzyFileSearch/sessionUpdated", "params": FuzzyFileSearchSessionUpdatedNotification } | { "method": "fuzzyFileSearch/sessionCompleted", "params": FuzzyFileSearchSessionCompletedNotification } | { "method": "thread/realtime/started", "params": ThreadRealtimeStartedNotification } | { "method": "thread/realtime/itemAdded", "params": ThreadRealtimeItemAddedNotification } | { "method": "thread/realtime/transcript/delta", "params": ThreadRealtimeTranscriptDeltaNotification } | { "method": "thread/realtime/transcript/done", "params": ThreadRealtimeTranscriptDoneNotification } | { "method": "thread/realtime/outputAudio/delta", "params": ThreadRealtimeOutputAudioDeltaNotification } | { "method": "thread/realtime/sdp", "params": ThreadRealtimeSdpNotification } | { "method": "thread/realtime/error", "params": ThreadRealtimeErrorNotification } | { "method": "thread/realtime/closed", "params": ThreadRealtimeClosedNotification } | { "method": "windows/worldWritableWarning", "params": WindowsWorldWritableWarningNotification } | { "method": "windowsSandbox/setupCompleted", "params": WindowsSandboxSetupCompletedNotification } | { "method": "account/login/completed", "params": AccountLoginCompletedNotification }; diff --git a/src/ServerRequest.ts b/src/ServerRequest.ts index 80e9ffc..a6eaccb 100644 --- a/src/ServerRequest.ts +++ b/src/ServerRequest.ts @@ -7,6 +7,7 @@ import type { RequestId } from "./RequestId"; import type { AttestationGenerateParams } from "./v2/AttestationGenerateParams"; import type { ChatgptAuthTokensRefreshParams } from "./v2/ChatgptAuthTokensRefreshParams"; import type { CommandExecutionRequestApprovalParams } from "./v2/CommandExecutionRequestApprovalParams"; +import type { CurrentTimeReadParams } from "./v2/CurrentTimeReadParams"; import type { DynamicToolCallParams } from "./v2/DynamicToolCallParams"; import type { FileChangeRequestApprovalParams } from "./v2/FileChangeRequestApprovalParams"; import type { McpServerElicitationRequestParams } from "./v2/McpServerElicitationRequestParams"; @@ -16,4 +17,4 @@ import type { ToolRequestUserInputParams } from "./v2/ToolRequestUserInputParams /** * Request initiated from the server and sent to the client. */ -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, }; +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": "currentTime/read", id: RequestId, params: CurrentTimeReadParams, } | { "method": "applyPatchApproval", id: RequestId, params: ApplyPatchApprovalParams, } | { "method": "execCommandApproval", id: RequestId, params: ExecCommandApprovalParams, }; diff --git a/src/ThreadId.ts b/src/ThreadId.ts index bfb3b4b..801ffb3 100644 --- a/src/ThreadId.ts +++ b/src/ThreadId.ts @@ -2,4 +2,9 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +/** + * Identifier for a Codex thread. + * + * Codex-generated thread IDs are UUIDv7, and some use cases rely on that. + */ export type ThreadId = string; diff --git a/src/WebSearchItem.ts b/src/WebSearchItem.ts new file mode 100644 index 0000000..bc1e6d5 --- /dev/null +++ b/src/WebSearchItem.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { WebSearchAction } from "./v2/WebSearchAction"; + +export type WebSearchItem = { id: string, query: string, action: WebSearchAction | null, }; diff --git a/src/WebSearchMode.ts b/src/WebSearchMode.ts index 695c13e..0544fd0 100644 --- a/src/WebSearchMode.ts +++ b/src/WebSearchMode.ts @@ -2,4 +2,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type WebSearchMode = "disabled" | "cached" | "live"; +export type WebSearchMode = "disabled" | "cached" | "indexed" | "live"; diff --git a/src/index.ts b/src/index.ts index 0748d79..e9695c1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,9 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! export type { AbsolutePathBuf } from "./AbsolutePathBuf"; +export type { AgentMessageInputContent } from "./AgentMessageInputContent"; export type { AgentPath } from "./AgentPath"; +export type { AmazonBedrockCredentialSource } from "./AmazonBedrockCredentialSource"; export type { ApplyPatchApprovalParams } from "./ApplyPatchApprovalParams"; export type { ApplyPatchApprovalResponse } from "./ApplyPatchApprovalResponse"; export type { AuthMode } from "./AuthMode"; @@ -13,6 +15,7 @@ export type { CollaborationMode } from "./CollaborationMode"; export type { ContentItem } from "./ContentItem"; export type { ConversationGitInfo } from "./ConversationGitInfo"; export type { ConversationSummary } from "./ConversationSummary"; +export type { ConversationTextRole } from "./ConversationTextRole"; export type { ExecCommandApprovalParams } from "./ExecCommandApprovalParams"; export type { ExecCommandApprovalResponse } from "./ExecCommandApprovalResponse"; export type { ExecPolicyAmendment } from "./ExecPolicyAmendment"; @@ -40,19 +43,25 @@ export type { GitDiffToRemoteParams } from "./GitDiffToRemoteParams"; export type { GitDiffToRemoteResponse } from "./GitDiffToRemoteResponse"; export type { GitSha } from "./GitSha"; export type { ImageDetail } from "./ImageDetail"; +export type { ImageGenerationItem } from "./ImageGenerationItem"; export type { InitializeCapabilities } from "./InitializeCapabilities"; export type { InitializeParams } from "./InitializeParams"; export type { InitializeResponse } from "./InitializeResponse"; export type { InputModality } from "./InputModality"; +export type { InternalChatMessageMetadataPassthrough } from "./InternalChatMessageMetadataPassthrough"; export type { InternalSessionSource } from "./InternalSessionSource"; +export type { LegacyAppPathString } from "./LegacyAppPathString"; export type { LocalShellAction } from "./LocalShellAction"; export type { LocalShellExecAction } from "./LocalShellExecAction"; export type { LocalShellStatus } from "./LocalShellStatus"; +export type { McpServerInfo } from "./McpServerInfo"; export type { MessagePhase } from "./MessagePhase"; export type { ModeKind } from "./ModeKind"; +export type { MultiAgentMode } from "./MultiAgentMode"; export type { NetworkPolicyAmendment } from "./NetworkPolicyAmendment"; export type { NetworkPolicyRuleAction } from "./NetworkPolicyRuleAction"; export type { ParsedCommand } from "./ParsedCommand"; +export type { PathUri } from "./PathUri"; export type { Personality } from "./Personality"; export type { PlanType } from "./PlanType"; export type { RealtimeConversationVersion } from "./RealtimeConversationVersion"; @@ -80,6 +89,7 @@ export type { Tool } from "./Tool"; export type { Verbosity } from "./Verbosity"; export type { WebSearchAction } from "./WebSearchAction"; export type { WebSearchContextSize } from "./WebSearchContextSize"; +export type { WebSearchItem } from "./WebSearchItem"; export type { WebSearchLocation } from "./WebSearchLocation"; export type { WebSearchMode } from "./WebSearchMode"; export type { WebSearchToolConfig } from "./WebSearchToolConfig"; diff --git a/src/v2/Account.ts b/src/v2/Account.ts index 4c3a58e..1b7953e 100644 --- a/src/v2/Account.ts +++ b/src/v2/Account.ts @@ -1,6 +1,7 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { AmazonBedrockCredentialSource } from "../AmazonBedrockCredentialSource"; import type { PlanType } from "../PlanType"; -export type Account = { "type": "apiKey", } | { "type": "chatgpt", email: string, planType: PlanType, } | { "type": "amazonBedrock", }; +export type Account = { "type": "apiKey", } | { "type": "chatgpt", email: string | null, planType: PlanType, } | { "type": "amazonBedrock", credentialSource: AmazonBedrockCredentialSource, }; diff --git a/src/v2/AccountRateLimitsUpdatedNotification.ts b/src/v2/AccountRateLimitsUpdatedNotification.ts index 96c735a..a6d6a33 100644 --- a/src/v2/AccountRateLimitsUpdatedNotification.ts +++ b/src/v2/AccountRateLimitsUpdatedNotification.ts @@ -3,4 +3,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { RateLimitSnapshot } from "./RateLimitSnapshot"; +/** + * Sparse rolling rate-limit update. + * + * Clients should merge available values into the most recent `account/rateLimits/read` response + * or refetch that snapshot. Nullable account metadata may be unavailable in a rolling update and + * does not clear a previously observed value. + */ export type AccountRateLimitsUpdatedNotification = { rateLimits: RateLimitSnapshot, }; diff --git a/src/v2/AccountTokenUsageDailyBucket.ts b/src/v2/AccountTokenUsageDailyBucket.ts new file mode 100644 index 0000000..a92c6c0 --- /dev/null +++ b/src/v2/AccountTokenUsageDailyBucket.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type AccountTokenUsageDailyBucket = { startDate: string, tokens: bigint, }; diff --git a/src/v2/AccountTokenUsageSummary.ts b/src/v2/AccountTokenUsageSummary.ts new file mode 100644 index 0000000..6f87acd --- /dev/null +++ b/src/v2/AccountTokenUsageSummary.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type AccountTokenUsageSummary = { lifetimeTokens: bigint | null, peakDailyTokens: bigint | null, longestRunningTurnSec: bigint | null, currentStreakDays: bigint | null, longestStreakDays: bigint | null, }; diff --git a/src/v2/AdditionalFileSystemPermissions.ts b/src/v2/AdditionalFileSystemPermissions.ts index e29263b..f4ca94e 100644 --- a/src/v2/AdditionalFileSystemPermissions.ts +++ b/src/v2/AdditionalFileSystemPermissions.ts @@ -1,15 +1,15 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { AbsolutePathBuf } from "../AbsolutePathBuf"; +import type { LegacyAppPathString } from "../LegacyAppPathString"; import type { FileSystemSandboxEntry } from "./FileSystemSandboxEntry"; export type AdditionalFileSystemPermissions = { /** * This will be removed in favor of `entries`. */ -read: Array | null, +read: Array | null, /** * This will be removed in favor of `entries`. */ -write: Array | null, globScanMaxDepth?: number, entries?: Array, }; +write: Array | null, globScanMaxDepth?: number, entries?: Array, }; diff --git a/src/v2/AppInfo.ts b/src/v2/AppInfo.ts index ef1f54a..7145ce9 100644 --- a/src/v2/AppInfo.ts +++ b/src/v2/AppInfo.ts @@ -7,7 +7,7 @@ import type { AppMetadata } from "./AppMetadata"; /** * EXPERIMENTAL - app metadata returned by app-list APIs. */ -export type AppInfo = { id: string, name: string, description: string | null, logoUrl: string | null, logoUrlDark: string | null, distributionChannel: string | null, branding: AppBranding | null, appMetadata: AppMetadata | null, labels: { [key in string]?: string } | null, installUrl: string | null, isAccessible: boolean, +export type AppInfo = { id: string, name: string, description: string | null, logoUrl: string | null, logoUrlDark: string | null, iconAssets: { [key in string]?: string } | null, iconDarkAssets: { [key in string]?: string } | null, distributionChannel: string | null, branding: AppBranding | null, appMetadata: AppMetadata | null, labels: { [key in string]?: string } | null, installUrl: string | null, isAccessible: boolean, /** * Whether this app is enabled in config.toml. * Example: diff --git a/src/v2/AppSummary.ts b/src/v2/AppSummary.ts index 586c76f..f295009 100644 --- a/src/v2/AppSummary.ts +++ b/src/v2/AppSummary.ts @@ -5,4 +5,4 @@ /** * EXPERIMENTAL - app metadata summary for plugin responses. */ -export type AppSummary = { id: string, name: string, description: string | null, installUrl: string | null, needsAuth: boolean, }; +export type AppSummary = { id: string, name: string, description: string | null, installUrl: string | null, category: string | null, }; diff --git a/src/v2/AppTemplateSummary.ts b/src/v2/AppTemplateSummary.ts new file mode 100644 index 0000000..65d22be --- /dev/null +++ b/src/v2/AppTemplateSummary.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { AppTemplateUnavailableReason } from "./AppTemplateUnavailableReason"; + +export type AppTemplateSummary = { templateId: string, name: string, description: string | null, category: string | null, canonicalConnectorId: string | null, logoUrl: string | null, logoUrlDark: string | null, materializedAppIds: Array, reason: AppTemplateUnavailableReason | null, }; diff --git a/src/v2/AppTemplateUnavailableReason.ts b/src/v2/AppTemplateUnavailableReason.ts new file mode 100644 index 0000000..5630567 --- /dev/null +++ b/src/v2/AppTemplateUnavailableReason.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type AppTemplateUnavailableReason = "NOT_CONFIGURED_FOR_WORKSPACE" | "NO_ACTIVE_WORKSPACE"; diff --git a/src/v2/AppToolApproval.ts b/src/v2/AppToolApproval.ts index e92cd8e..6704ef0 100644 --- a/src/v2/AppToolApproval.ts +++ b/src/v2/AppToolApproval.ts @@ -2,4 +2,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type AppToolApproval = "auto" | "prompt" | "approve"; +export type AppToolApproval = "auto" | "prompt" | "writes" | "approve"; diff --git a/src/v2/AppsConfig.ts b/src/v2/AppsConfig.ts index b22997d..a4a0f22 100644 --- a/src/v2/AppsConfig.ts +++ b/src/v2/AppsConfig.ts @@ -3,6 +3,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { AppToolApproval } from "./AppToolApproval"; import type { AppToolsConfig } from "./AppToolsConfig"; +import type { ApprovalsReviewer } from "./ApprovalsReviewer"; import type { AppsDefaultConfig } from "./AppsDefaultConfig"; -export type AppsConfig = { _default: AppsDefaultConfig | null, } & ({ [key in string]?: { enabled: boolean, destructive_enabled: boolean | null, open_world_enabled: boolean | null, default_tools_approval_mode: AppToolApproval | null, default_tools_enabled: boolean | null, tools: AppToolsConfig | null, } }); +export type AppsConfig = { _default: AppsDefaultConfig | null, } & ({ [key in string]?: { enabled: boolean, approvals_reviewer: ApprovalsReviewer | null, destructive_enabled: boolean | null, open_world_enabled: boolean | null, default_tools_approval_mode: AppToolApproval | null, default_tools_enabled: boolean | null, tools: AppToolsConfig | null, } }); diff --git a/src/v2/AppsDefaultConfig.ts b/src/v2/AppsDefaultConfig.ts index e733860..6b841ef 100644 --- a/src/v2/AppsDefaultConfig.ts +++ b/src/v2/AppsDefaultConfig.ts @@ -1,5 +1,7 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { AppToolApproval } from "./AppToolApproval"; +import type { ApprovalsReviewer } from "./ApprovalsReviewer"; -export type AppsDefaultConfig = { enabled: boolean, destructive_enabled: boolean, open_world_enabled: boolean, }; +export type AppsDefaultConfig = { enabled: boolean, approvals_reviewer: ApprovalsReviewer | null, destructive_enabled: boolean, open_world_enabled: boolean, default_tools_approval_mode: AppToolApproval | null, }; diff --git a/src/v2/AskForApproval.ts b/src/v2/AskForApproval.ts index 8d41214..1d60550 100644 --- a/src/v2/AskForApproval.ts +++ b/src/v2/AskForApproval.ts @@ -2,4 +2,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type AskForApproval = "untrusted" | "on-failure" | "on-request" | { "granular": { sandbox_approval: boolean, rules: boolean, skill_approval: boolean, request_permissions: boolean, mcp_elicitations: boolean, } } | "never"; +export type AskForApproval = "untrusted" | "on-request" | { "granular": { sandbox_approval: boolean, rules: boolean, skill_approval: boolean, request_permissions: boolean, mcp_elicitations: boolean, } } | "never"; diff --git a/src/v2/CapabilityRootLocation.ts b/src/v2/CapabilityRootLocation.ts new file mode 100644 index 0000000..6c2ac90 --- /dev/null +++ b/src/v2/CapabilityRootLocation.ts @@ -0,0 +1,12 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Location used to resolve a selected capability root. + */ +export type CapabilityRootLocation = { "type": "environment", environmentId: string, +/** + * Absolute path for the root in the selected environment. + */ +path: string, }; diff --git a/src/v2/CodexErrorInfo.ts b/src/v2/CodexErrorInfo.ts index 6e975ab..ec50328 100644 --- a/src/v2/CodexErrorInfo.ts +++ b/src/v2/CodexErrorInfo.ts @@ -9,4 +9,4 @@ import type { NonSteerableTurnKind } from "./NonSteerableTurnKind"; * When an upstream HTTP status is available (for example, from the Responses API or a provider), * it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant. */ -export type CodexErrorInfo = "contextWindowExceeded" | "usageLimitExceeded" | "serverOverloaded" | "cyberPolicy" | { "httpConnectionFailed": { httpStatusCode: number | null, } } | { "responseStreamConnectionFailed": { httpStatusCode: number | null, } } | "internalServerError" | "unauthorized" | "badRequest" | "threadRollbackFailed" | "sandboxError" | { "responseStreamDisconnected": { httpStatusCode: number | null, } } | { "responseTooManyFailedAttempts": { httpStatusCode: number | null, } } | { "activeTurnNotSteerable": { turnKind: NonSteerableTurnKind, } } | "other"; +export type CodexErrorInfo = "contextWindowExceeded" | "sessionBudgetExceeded" | "usageLimitExceeded" | "serverOverloaded" | "cyberPolicy" | { "httpConnectionFailed": { httpStatusCode: number | null, } } | { "responseStreamConnectionFailed": { httpStatusCode: number | null, } } | "internalServerError" | "unauthorized" | "badRequest" | "threadRollbackFailed" | "sandboxError" | { "responseStreamDisconnected": { httpStatusCode: number | null, } } | { "responseTooManyFailedAttempts": { httpStatusCode: number | null, } } | { "activeTurnNotSteerable": { turnKind: NonSteerableTurnKind, } } | "other"; diff --git a/src/v2/CommandExecutionRequestApprovalParams.ts b/src/v2/CommandExecutionRequestApprovalParams.ts index 824e985..4a32722 100644 --- a/src/v2/CommandExecutionRequestApprovalParams.ts +++ b/src/v2/CommandExecutionRequestApprovalParams.ts @@ -1,7 +1,7 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { AbsolutePathBuf } from "../AbsolutePathBuf"; +import type { LegacyAppPathString } from "../LegacyAppPathString"; import type { AdditionalPermissionProfile } from "./AdditionalPermissionProfile"; import type { CommandAction } from "./CommandAction"; import type { CommandExecutionApprovalDecision } from "./CommandExecutionApprovalDecision"; @@ -24,6 +24,10 @@ startedAtMs: number, * (a UUID) used to disambiguate routing. */ approvalId?: string | null, +/** + * Environment in which the command will run. + */ +environmentId: string | null, /** * Optional explanatory reason (e.g. request for network access). */ @@ -39,7 +43,7 @@ command?: string | null, /** * The command's working directory. */ -cwd?: AbsolutePathBuf | null, +cwd?: LegacyAppPathString | null, /** * Best-effort parsed command actions for friendly display. */ diff --git a/src/v2/ConfigLayerSource.ts b/src/v2/ConfigLayerSource.ts index 08cb8c6..963c331 100644 --- a/src/v2/ConfigLayerSource.ts +++ b/src/v2/ConfigLayerSource.ts @@ -8,7 +8,17 @@ export type ConfigLayerSource = { "type": "mdm", domain: string, key: string, } * This is the path to the system config.toml file, though it is not * guaranteed to exist. */ -file: AbsolutePathBuf, } | { "type": "user", +file: AbsolutePathBuf, } | { "type": "enterpriseManaged", +/** + * Stable identifier for the delivered layer. + */ +id: string, +/** + * Admin-facing name for the delivered layer. This is surfaced in + * diagnostics so users know which cloud layer needs administrator + * attention. + */ +name: string, } | { "type": "user", /** * This is the path to the user's config.toml file, though it is not * guaranteed to exist. diff --git a/src/v2/ConfigRequirements.ts b/src/v2/ConfigRequirements.ts index 57f7d06..e5fbbd0 100644 --- a/src/v2/ConfigRequirements.ts +++ b/src/v2/ConfigRequirements.ts @@ -6,8 +6,10 @@ import type { ApprovalsReviewer } from "./ApprovalsReviewer"; import type { AskForApproval } from "./AskForApproval"; import type { ComputerUseRequirements } from "./ComputerUseRequirements"; import type { ManagedHooksRequirements } from "./ManagedHooksRequirements"; +import type { ModelsRequirements } from "./ModelsRequirements"; import type { NetworkRequirements } from "./NetworkRequirements"; import type { ResidencyRequirement } from "./ResidencyRequirement"; import type { SandboxMode } from "./SandboxMode"; +import type { WindowsSandboxSetupMode } from "./WindowsSandboxSetupMode"; -export type ConfigRequirements = { allowedApprovalPolicies: Array | null, allowedApprovalsReviewers: Array | null, allowedSandboxModes: Array | null, allowedPermissions: Array | null, allowedWebSearchModes: Array | null, allowManagedHooksOnly: boolean | null, allowAppshots: boolean | null, computerUse: ComputerUseRequirements | null, featureRequirements: { [key in string]?: boolean } | null, hooks: ManagedHooksRequirements | null, enforceResidency: ResidencyRequirement | null, network: NetworkRequirements | null, }; +export type ConfigRequirements = { allowedApprovalPolicies: Array | null, allowedApprovalsReviewers: Array | null, allowedSandboxModes: Array | null, allowedWindowsSandboxImplementations: Array | null, allowedPermissionProfiles: { [key in string]?: boolean } | null, defaultPermissions: string | null, allowedWebSearchModes: Array | null, allowManagedHooksOnly: boolean | null, allowAppshots: boolean | null, allowRemoteControl: boolean | null, computerUse: ComputerUseRequirements | null, featureRequirements: { [key in string]?: boolean } | null, hooks: ManagedHooksRequirements | null, enforceResidency: ResidencyRequirement | null, network: NetworkRequirements | null, models: ModelsRequirements | null, }; diff --git a/src/v2/ConsumeAccountRateLimitResetCreditOutcome.ts b/src/v2/ConsumeAccountRateLimitResetCreditOutcome.ts new file mode 100644 index 0000000..d413974 --- /dev/null +++ b/src/v2/ConsumeAccountRateLimitResetCreditOutcome.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ConsumeAccountRateLimitResetCreditOutcome = "reset" | "nothingToReset" | "noCredit" | "alreadyRedeemed"; diff --git a/src/v2/ConsumeAccountRateLimitResetCreditParams.ts b/src/v2/ConsumeAccountRateLimitResetCreditParams.ts new file mode 100644 index 0000000..f1c5bf3 --- /dev/null +++ b/src/v2/ConsumeAccountRateLimitResetCreditParams.ts @@ -0,0 +1,15 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ConsumeAccountRateLimitResetCreditParams = { +/** + * Identifies one logical reset attempt. A UUID is recommended; reuse the same value when + * retrying that attempt. + */ +idempotencyKey: string, +/** + * Opaque reset-credit identifier to redeem. When omitted, the backend selects the next + * available credit. + */ +creditId?: string | null, }; diff --git a/src/v2/ConsumeAccountRateLimitResetCreditResponse.ts b/src/v2/ConsumeAccountRateLimitResetCreditResponse.ts new file mode 100644 index 0000000..5b85e99 --- /dev/null +++ b/src/v2/ConsumeAccountRateLimitResetCreditResponse.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ConsumeAccountRateLimitResetCreditOutcome } from "./ConsumeAccountRateLimitResetCreditOutcome"; + +export type ConsumeAccountRateLimitResetCreditResponse = { outcome: ConsumeAccountRateLimitResetCreditOutcome, }; diff --git a/src/v2/CurrentTimeReadParams.ts b/src/v2/CurrentTimeReadParams.ts new file mode 100644 index 0000000..80a3e30 --- /dev/null +++ b/src/v2/CurrentTimeReadParams.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type CurrentTimeReadParams = { threadId: string, }; diff --git a/src/v2/CurrentTimeReadResponse.ts b/src/v2/CurrentTimeReadResponse.ts new file mode 100644 index 0000000..4fcdcaf --- /dev/null +++ b/src/v2/CurrentTimeReadResponse.ts @@ -0,0 +1,9 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type CurrentTimeReadResponse = { +/** + * Current time as whole Unix seconds. + */ +currentTimeAt: number, }; diff --git a/src/v2/DynamicToolFunctionSpec.ts b/src/v2/DynamicToolFunctionSpec.ts new file mode 100644 index 0000000..50bcd42 --- /dev/null +++ b/src/v2/DynamicToolFunctionSpec.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { JsonValue } from "../serde_json/JsonValue"; + +export type DynamicToolFunctionSpec = { name: string, description: string, inputSchema: JsonValue, deferLoading?: boolean, }; diff --git a/src/v2/DynamicToolNamespaceSpec.ts b/src/v2/DynamicToolNamespaceSpec.ts new file mode 100644 index 0000000..fca1a29 --- /dev/null +++ b/src/v2/DynamicToolNamespaceSpec.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DynamicToolNamespaceTool } from "./DynamicToolNamespaceTool"; + +export type DynamicToolNamespaceSpec = { name: string, description: string, tools: Array, }; diff --git a/src/v2/DynamicToolNamespaceTool.ts b/src/v2/DynamicToolNamespaceTool.ts new file mode 100644 index 0000000..da2fdf2 --- /dev/null +++ b/src/v2/DynamicToolNamespaceTool.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DynamicToolFunctionSpec } from "./DynamicToolFunctionSpec"; + +export type DynamicToolNamespaceTool = { "type": "function" } & DynamicToolFunctionSpec; diff --git a/src/v2/DynamicToolSpec.ts b/src/v2/DynamicToolSpec.ts index db486bf..8f60e4e 100644 --- a/src/v2/DynamicToolSpec.ts +++ b/src/v2/DynamicToolSpec.ts @@ -1,6 +1,7 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { JsonValue } from "../serde_json/JsonValue"; +import type { DynamicToolFunctionSpec } from "./DynamicToolFunctionSpec"; +import type { DynamicToolNamespaceSpec } from "./DynamicToolNamespaceSpec"; -export type DynamicToolSpec = { namespace?: string, name: string, description: string, inputSchema: JsonValue, deferLoading?: boolean, }; +export type DynamicToolSpec = { "type": "function" } & DynamicToolFunctionSpec | { "type": "namespace" } & DynamicToolNamespaceSpec; diff --git a/src/v2/EnvironmentAddParams.ts b/src/v2/EnvironmentAddParams.ts index a2d1a12..17ad7e4 100644 --- a/src/v2/EnvironmentAddParams.ts +++ b/src/v2/EnvironmentAddParams.ts @@ -2,4 +2,8 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type EnvironmentAddParams = { environmentId: string, execServerUrl: string, }; +export type EnvironmentAddParams = { environmentId: string, execServerUrl: string, +/** + * Optional WebSocket connection timeout. The server default applies when omitted. + */ +connectTimeoutMs?: number | null, }; diff --git a/src/v2/EnvironmentInfoParams.ts b/src/v2/EnvironmentInfoParams.ts new file mode 100644 index 0000000..9654d76 --- /dev/null +++ b/src/v2/EnvironmentInfoParams.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type EnvironmentInfoParams = { environmentId: string, }; diff --git a/src/v2/EnvironmentInfoResponse.ts b/src/v2/EnvironmentInfoResponse.ts new file mode 100644 index 0000000..76a725d --- /dev/null +++ b/src/v2/EnvironmentInfoResponse.ts @@ -0,0 +1,11 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { PathUri } from "../PathUri"; +import type { EnvironmentShellInfo } from "./EnvironmentShellInfo"; + +export type EnvironmentInfoResponse = { shell: EnvironmentShellInfo, +/** + * Default working directory reported by the environment, as a canonical file URI. + */ +cwd: PathUri | null, }; diff --git a/src/v2/EnvironmentShellInfo.ts b/src/v2/EnvironmentShellInfo.ts new file mode 100644 index 0000000..8f2af6b --- /dev/null +++ b/src/v2/EnvironmentShellInfo.ts @@ -0,0 +1,13 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type EnvironmentShellInfo = { +/** + * Stable shell name, for example `zsh`, `bash`, `powershell`, `sh`, or `cmd`. + */ +name: string, +/** + * Target-native shell executable path or command name. + */ +path: string, }; diff --git a/src/v2/ExternalAgentConfigDetectParams.ts b/src/v2/ExternalAgentConfigDetectParams.ts index 163d961..48b55e9 100644 --- a/src/v2/ExternalAgentConfigDetectParams.ts +++ b/src/v2/ExternalAgentConfigDetectParams.ts @@ -4,7 +4,7 @@ export type ExternalAgentConfigDetectParams = { /** - * If true, include detection under the user's home (~/.claude, ~/.codex, etc.). + * If true, include detection under the user's home directory. */ includeHome?: boolean, /** diff --git a/src/v2/ExternalAgentConfigImportCompletedNotification.ts b/src/v2/ExternalAgentConfigImportCompletedNotification.ts index edb8f19..4616157 100644 --- a/src/v2/ExternalAgentConfigImportCompletedNotification.ts +++ b/src/v2/ExternalAgentConfigImportCompletedNotification.ts @@ -1,5 +1,6 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ExternalAgentConfigImportTypeResult } from "./ExternalAgentConfigImportTypeResult"; -export type ExternalAgentConfigImportCompletedNotification = Record; +export type ExternalAgentConfigImportCompletedNotification = { importId: string, itemTypeResults: Array, }; diff --git a/src/v2/ExternalAgentConfigImportHistoriesReadResponse.ts b/src/v2/ExternalAgentConfigImportHistoriesReadResponse.ts new file mode 100644 index 0000000..9df61f5 --- /dev/null +++ b/src/v2/ExternalAgentConfigImportHistoriesReadResponse.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ExternalAgentConfigImportHistory } from "./ExternalAgentConfigImportHistory"; + +export type ExternalAgentConfigImportHistoriesReadResponse = { data: Array, }; diff --git a/src/v2/ExternalAgentConfigImportHistory.ts b/src/v2/ExternalAgentConfigImportHistory.ts new file mode 100644 index 0000000..37273fc --- /dev/null +++ b/src/v2/ExternalAgentConfigImportHistory.ts @@ -0,0 +1,7 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ExternalAgentConfigImportItemTypeFailure } from "./ExternalAgentConfigImportItemTypeFailure"; +import type { ExternalAgentConfigImportItemTypeSuccess } from "./ExternalAgentConfigImportItemTypeSuccess"; + +export type ExternalAgentConfigImportHistory = { importId: string, completedAtMs: bigint, successes: Array, failures: Array, }; diff --git a/src/v2/ExternalAgentConfigImportItemTypeFailure.ts b/src/v2/ExternalAgentConfigImportItemTypeFailure.ts new file mode 100644 index 0000000..13e02bf --- /dev/null +++ b/src/v2/ExternalAgentConfigImportItemTypeFailure.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ExternalAgentConfigMigrationItemType } from "./ExternalAgentConfigMigrationItemType"; + +export type ExternalAgentConfigImportItemTypeFailure = { itemType: ExternalAgentConfigMigrationItemType, errorType: string | null, failureStage: string, message: string, cwd: string | null, source: string | null, }; diff --git a/src/v2/ExternalAgentConfigImportItemTypeSuccess.ts b/src/v2/ExternalAgentConfigImportItemTypeSuccess.ts new file mode 100644 index 0000000..d94ad4a --- /dev/null +++ b/src/v2/ExternalAgentConfigImportItemTypeSuccess.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ExternalAgentConfigMigrationItemType } from "./ExternalAgentConfigMigrationItemType"; + +export type ExternalAgentConfigImportItemTypeSuccess = { itemType: ExternalAgentConfigMigrationItemType, cwd: string | null, source: string | null, target: string | null, }; diff --git a/src/v2/ExternalAgentConfigImportParams.ts b/src/v2/ExternalAgentConfigImportParams.ts index 7bc5d9d..be7f7ff 100644 --- a/src/v2/ExternalAgentConfigImportParams.ts +++ b/src/v2/ExternalAgentConfigImportParams.ts @@ -3,4 +3,8 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ExternalAgentConfigMigrationItem } from "./ExternalAgentConfigMigrationItem"; -export type ExternalAgentConfigImportParams = { migrationItems: Array, }; +export type ExternalAgentConfigImportParams = { migrationItems: Array, +/** + * Source product that produced the migration items. Missing means unspecified. + */ +source?: string | null, }; diff --git a/src/v2/ExternalAgentConfigImportProgressNotification.ts b/src/v2/ExternalAgentConfigImportProgressNotification.ts new file mode 100644 index 0000000..2115d63 --- /dev/null +++ b/src/v2/ExternalAgentConfigImportProgressNotification.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ExternalAgentConfigImportTypeResult } from "./ExternalAgentConfigImportTypeResult"; + +export type ExternalAgentConfigImportProgressNotification = { importId: string, itemTypeResults: Array, }; diff --git a/src/v2/ExternalAgentConfigImportResponse.ts b/src/v2/ExternalAgentConfigImportResponse.ts index 2ceddad..19af894 100644 --- a/src/v2/ExternalAgentConfigImportResponse.ts +++ b/src/v2/ExternalAgentConfigImportResponse.ts @@ -2,4 +2,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ExternalAgentConfigImportResponse = Record; +export type ExternalAgentConfigImportResponse = { importId: string, }; diff --git a/src/v2/ExternalAgentConfigImportTypeResult.ts b/src/v2/ExternalAgentConfigImportTypeResult.ts new file mode 100644 index 0000000..466e92f --- /dev/null +++ b/src/v2/ExternalAgentConfigImportTypeResult.ts @@ -0,0 +1,8 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ExternalAgentConfigImportItemTypeFailure } from "./ExternalAgentConfigImportItemTypeFailure"; +import type { ExternalAgentConfigImportItemTypeSuccess } from "./ExternalAgentConfigImportItemTypeSuccess"; +import type { ExternalAgentConfigMigrationItemType } from "./ExternalAgentConfigMigrationItemType"; + +export type ExternalAgentConfigImportTypeResult = { itemType: ExternalAgentConfigMigrationItemType, successes: Array, failures: Array, }; diff --git a/src/v2/FileSystemPath.ts b/src/v2/FileSystemPath.ts index 2efc7ea..cf39151 100644 --- a/src/v2/FileSystemPath.ts +++ b/src/v2/FileSystemPath.ts @@ -1,7 +1,7 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { AbsolutePathBuf } from "../AbsolutePathBuf"; +import type { LegacyAppPathString } from "../LegacyAppPathString"; import type { FileSystemSpecialPath } from "./FileSystemSpecialPath"; -export type FileSystemPath = { "type": "path", path: AbsolutePathBuf, } | { "type": "glob_pattern", pattern: string, } | { "type": "special", value: FileSystemSpecialPath, }; +export type FileSystemPath = { "type": "path", path: LegacyAppPathString, } | { "type": "glob_pattern", pattern: string, } | { "type": "special", value: FileSystemSpecialPath, }; diff --git a/src/v2/GetAccountRateLimitsResponse.ts b/src/v2/GetAccountRateLimitsResponse.ts index 02cc777..af40063 100644 --- a/src/v2/GetAccountRateLimitsResponse.ts +++ b/src/v2/GetAccountRateLimitsResponse.ts @@ -1,6 +1,7 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { RateLimitResetCreditsSummary } from "./RateLimitResetCreditsSummary"; import type { RateLimitSnapshot } from "./RateLimitSnapshot"; export type GetAccountRateLimitsResponse = { @@ -11,4 +12,4 @@ rateLimits: RateLimitSnapshot, /** * Multi-bucket view keyed by metered `limit_id` (for example, `codex`). */ -rateLimitsByLimitId: { [key in string]?: RateLimitSnapshot } | null, }; +rateLimitsByLimitId: { [key in string]?: RateLimitSnapshot } | null, rateLimitResetCredits: RateLimitResetCreditsSummary | null, }; diff --git a/src/v2/GetAccountTokenUsageResponse.ts b/src/v2/GetAccountTokenUsageResponse.ts new file mode 100644 index 0000000..175c915 --- /dev/null +++ b/src/v2/GetAccountTokenUsageResponse.ts @@ -0,0 +1,7 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { AccountTokenUsageDailyBucket } from "./AccountTokenUsageDailyBucket"; +import type { AccountTokenUsageSummary } from "./AccountTokenUsageSummary"; + +export type GetAccountTokenUsageResponse = { summary: AccountTokenUsageSummary, dailyUsageBuckets: Array | null, }; diff --git a/src/v2/GetWorkspaceMessagesResponse.ts b/src/v2/GetWorkspaceMessagesResponse.ts new file mode 100644 index 0000000..949ad43 --- /dev/null +++ b/src/v2/GetWorkspaceMessagesResponse.ts @@ -0,0 +1,14 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { WorkspaceMessage } from "./WorkspaceMessage"; + +export type GetWorkspaceMessagesResponse = { +/** + * Whether the workspace-message backend route is available for this client. + */ +featureEnabled: boolean, +/** + * Active workspace messages returned by the backend. + */ +messages: Array, }; diff --git a/src/v2/HookSource.ts b/src/v2/HookSource.ts index 98bbe1e..5c3cb2e 100644 --- a/src/v2/HookSource.ts +++ b/src/v2/HookSource.ts @@ -2,4 +2,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type HookSource = "system" | "user" | "project" | "mdm" | "sessionFlags" | "plugin" | "cloudRequirements" | "legacyManagedConfigFile" | "legacyManagedConfigMdm" | "unknown"; +export type HookSource = "system" | "user" | "project" | "mdm" | "sessionFlags" | "plugin" | "cloudRequirements" | "cloudManagedConfig" | "legacyManagedConfigFile" | "legacyManagedConfigMdm" | "unknown"; diff --git a/src/v2/LoginAccountParams.ts b/src/v2/LoginAccountParams.ts index e6f1e2e..1606f16 100644 --- a/src/v2/LoginAccountParams.ts +++ b/src/v2/LoginAccountParams.ts @@ -1,8 +1,9 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { LoginAppBrand } from "./LoginAppBrand"; -export type LoginAccountParams = { "type": "apiKey", apiKey: string, } | { "type": "chatgpt", codexStreamlinedLogin?: boolean, } | { "type": "chatgptDeviceCode" } | { "type": "chatgptAuthTokens", +export type LoginAccountParams = { "type": "apiKey", apiKey: string, } | { "type": "chatgpt", codexStreamlinedLogin?: boolean, useHostedLoginSuccessPage?: boolean, appBrand?: LoginAppBrand | null, } | { "type": "chatgptDeviceCode" } | { "type": "chatgptAuthTokens", /** * Access token (JWT) supplied by the client. * This token is used for backend API requests and email extraction. diff --git a/src/v2/LoginAppBrand.ts b/src/v2/LoginAppBrand.ts new file mode 100644 index 0000000..c06d12f --- /dev/null +++ b/src/v2/LoginAppBrand.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type LoginAppBrand = "codex" | "chatgpt"; diff --git a/src/v2/McpServerElicitationRequestParams.ts b/src/v2/McpServerElicitationRequestParams.ts index 90d60f7..a4f1e73 100644 --- a/src/v2/McpServerElicitationRequestParams.ts +++ b/src/v2/McpServerElicitationRequestParams.ts @@ -13,4 +13,4 @@ export type McpServerElicitationRequestParams = { threadId: string, * context is app-server correlation rather than part of the protocol identity of the * elicitation itself. */ -turnId: string | null, serverName: string, } & ({ "mode": "form", _meta: JsonValue | null, message: string, requestedSchema: McpElicitationSchema, } | { "mode": "url", _meta: JsonValue | null, message: string, url: string, elicitationId: string, }); +turnId: string | null, serverName: string, } & ({ "mode": "form", _meta: JsonValue | null, message: string, requestedSchema: McpElicitationSchema, } | { "mode": "openai/form", _meta: JsonValue | null, message: string, requestedSchema: JsonValue, } | { "mode": "url", _meta: JsonValue | null, message: string, url: string, elicitationId: string, }); diff --git a/src/v2/McpServerOauthLoginCompletedNotification.ts b/src/v2/McpServerOauthLoginCompletedNotification.ts index 592860a..cfa6603 100644 --- a/src/v2/McpServerOauthLoginCompletedNotification.ts +++ b/src/v2/McpServerOauthLoginCompletedNotification.ts @@ -2,4 +2,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type McpServerOauthLoginCompletedNotification = { name: string, success: boolean, error?: string, }; +export type McpServerOauthLoginCompletedNotification = { name: string, threadId: string | null, success: boolean, error?: string, }; diff --git a/src/v2/McpServerOauthLoginParams.ts b/src/v2/McpServerOauthLoginParams.ts index a61c304..ff088b8 100644 --- a/src/v2/McpServerOauthLoginParams.ts +++ b/src/v2/McpServerOauthLoginParams.ts @@ -2,4 +2,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type McpServerOauthLoginParams = { name: string, scopes?: Array | null, timeoutSecs?: bigint | null, }; +export type McpServerOauthLoginParams = { name: string, threadId?: string | null, scopes?: Array | null, timeoutSecs?: bigint | null, }; diff --git a/src/v2/McpServerStartupFailureReason.ts b/src/v2/McpServerStartupFailureReason.ts new file mode 100644 index 0000000..0373e54 --- /dev/null +++ b/src/v2/McpServerStartupFailureReason.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type McpServerStartupFailureReason = "reauthenticationRequired"; diff --git a/src/v2/McpServerStatus.ts b/src/v2/McpServerStatus.ts index 430494e..d2e99ce 100644 --- a/src/v2/McpServerStatus.ts +++ b/src/v2/McpServerStatus.ts @@ -1,9 +1,10 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { McpServerInfo } from "../McpServerInfo"; import type { Resource } from "../Resource"; import type { ResourceTemplate } from "../ResourceTemplate"; import type { Tool } from "../Tool"; import type { McpAuthStatus } from "./McpAuthStatus"; -export type McpServerStatus = { name: string, tools: { [key in string]?: Tool }, resources: Array, resourceTemplates: Array, authStatus: McpAuthStatus, }; +export type McpServerStatus = { name: string, serverInfo: McpServerInfo | null, tools: { [key in string]?: Tool }, resources: Array, resourceTemplates: Array, authStatus: McpAuthStatus, }; diff --git a/src/v2/McpServerStatusUpdatedNotification.ts b/src/v2/McpServerStatusUpdatedNotification.ts index 42f5881..fd192f2 100644 --- a/src/v2/McpServerStatusUpdatedNotification.ts +++ b/src/v2/McpServerStatusUpdatedNotification.ts @@ -1,6 +1,7 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { McpServerStartupFailureReason } from "./McpServerStartupFailureReason"; import type { McpServerStartupState } from "./McpServerStartupState"; -export type McpServerStatusUpdatedNotification = { name: string, status: McpServerStartupState, error: string | null, }; +export type McpServerStatusUpdatedNotification = { threadId: string | null, name: string, status: McpServerStartupState, error: string | null, failureReason: McpServerStartupFailureReason | null, }; diff --git a/src/v2/McpToolCallAppContext.ts b/src/v2/McpToolCallAppContext.ts new file mode 100644 index 0000000..e4bc5a1 --- /dev/null +++ b/src/v2/McpToolCallAppContext.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type McpToolCallAppContext = { connectorId: string, linkId: string | null, resourceUri: string | null, appName: string | null, templateId: string | null, actionName: string | null, }; diff --git a/src/v2/MigrationDetails.ts b/src/v2/MigrationDetails.ts index 4fe87ea..21f7798 100644 --- a/src/v2/MigrationDetails.ts +++ b/src/v2/MigrationDetails.ts @@ -6,6 +6,7 @@ import type { HookMigration } from "./HookMigration"; import type { McpServerMigration } from "./McpServerMigration"; import type { PluginsMigration } from "./PluginsMigration"; import type { SessionMigration } from "./SessionMigration"; +import type { SkillMigration } from "./SkillMigration"; import type { SubagentMigration } from "./SubagentMigration"; -export type MigrationDetails = { plugins: Array, sessions: Array, mcpServers: Array, hooks: Array, subagents: Array, commands: Array, }; +export type MigrationDetails = { plugins: Array, skills: Array, sessions: Array, mcpServers: Array, hooks: Array, subagents: Array, commands: Array, }; diff --git a/src/v2/ModelSafetyBufferingUpdatedNotification.ts b/src/v2/ModelSafetyBufferingUpdatedNotification.ts new file mode 100644 index 0000000..5abc9f3 --- /dev/null +++ b/src/v2/ModelSafetyBufferingUpdatedNotification.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ModelSafetyBufferingUpdatedNotification = { threadId: string, turnId: string, model: string, useCases: Array, reasons: Array, showBufferingUi: boolean, fasterModel: string | null, }; diff --git a/src/v2/ModelsRequirements.ts b/src/v2/ModelsRequirements.ts new file mode 100644 index 0000000..9041fff --- /dev/null +++ b/src/v2/ModelsRequirements.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { NewThreadModelDefaults } from "./NewThreadModelDefaults"; + +export type ModelsRequirements = { newThread: NewThreadModelDefaults | null, }; diff --git a/src/v2/NetworkUnixSocketPermission.ts b/src/v2/NetworkUnixSocketPermission.ts index 466c6e5..c5474cb 100644 --- a/src/v2/NetworkUnixSocketPermission.ts +++ b/src/v2/NetworkUnixSocketPermission.ts @@ -2,4 +2,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type NetworkUnixSocketPermission = "allow" | "none"; +export type NetworkUnixSocketPermission = "allow" | "deny"; diff --git a/src/v2/NewThreadModelDefaults.ts b/src/v2/NewThreadModelDefaults.ts new file mode 100644 index 0000000..fed8b25 --- /dev/null +++ b/src/v2/NewThreadModelDefaults.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ReasoningEffort } from "../ReasoningEffort"; + +export type NewThreadModelDefaults = { model: string | null, modelReasoningEffort: ReasoningEffort | null, serviceTier: string | null, }; diff --git a/src/v2/PermissionProfileSummary.ts b/src/v2/PermissionProfileSummary.ts index 9d02fd7..5796d30 100644 --- a/src/v2/PermissionProfileSummary.ts +++ b/src/v2/PermissionProfileSummary.ts @@ -10,4 +10,8 @@ id: string, /** * Optional user-facing description for display in clients. */ -description: string | null, }; +description: string | null, +/** + * Whether the effective requirements allow selecting this profile. + */ +allowed: boolean, }; diff --git a/src/v2/PermissionsRequestApprovalParams.ts b/src/v2/PermissionsRequestApprovalParams.ts index 509f609..d0677f5 100644 --- a/src/v2/PermissionsRequestApprovalParams.ts +++ b/src/v2/PermissionsRequestApprovalParams.ts @@ -4,7 +4,7 @@ import type { AbsolutePathBuf } from "../AbsolutePathBuf"; import type { RequestPermissionProfile } from "./RequestPermissionProfile"; -export type PermissionsRequestApprovalParams = { threadId: string, turnId: string, itemId: string, +export type PermissionsRequestApprovalParams = { threadId: string, turnId: string, itemId: string, environmentId: string | null, /** * Unix timestamp (in milliseconds) when this approval request started. */ diff --git a/src/v2/PluginDetail.ts b/src/v2/PluginDetail.ts index 64836c8..ab2e3fd 100644 --- a/src/v2/PluginDetail.ts +++ b/src/v2/PluginDetail.ts @@ -3,8 +3,9 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { AbsolutePathBuf } from "../AbsolutePathBuf"; import type { AppSummary } from "./AppSummary"; +import type { AppTemplateSummary } from "./AppTemplateSummary"; import type { PluginHookSummary } from "./PluginHookSummary"; import type { PluginSummary } from "./PluginSummary"; import type { SkillSummary } from "./SkillSummary"; -export type PluginDetail = { marketplaceName: string, marketplacePath: AbsolutePathBuf | null, summary: PluginSummary, description: string | null, skills: Array, hooks: Array, apps: Array, mcpServers: Array, }; +export type PluginDetail = { marketplaceName: string, marketplacePath: AbsolutePathBuf | null, summary: PluginSummary, shareUrl: string | null, description: string | null, skills: Array, hooks: Array, apps: Array, appTemplates: Array, mcpServers: Array, }; diff --git a/src/v2/PluginInstallPolicySource.ts b/src/v2/PluginInstallPolicySource.ts new file mode 100644 index 0000000..caa3962 --- /dev/null +++ b/src/v2/PluginInstallPolicySource.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type PluginInstallPolicySource = "WORKSPACE_SETTING" | "IMPLICIT_CANONICAL_APP"; diff --git a/src/v2/PluginInterface.ts b/src/v2/PluginInterface.ts index 4e97ee6..1e57d49 100644 --- a/src/v2/PluginInterface.ts +++ b/src/v2/PluginInterface.ts @@ -21,10 +21,18 @@ composerIconUrl: string | null, * Local logo path, resolved from the installed plugin package. */ logo: AbsolutePathBuf | null, +/** + * Local dark-mode logo path, resolved from the installed plugin package. + */ +logoDark: AbsolutePathBuf | null, /** * Remote logo URL from the plugin catalog. */ logoUrl: string | null, +/** + * Remote dark-mode logo URL from the plugin catalog. + */ +logoUrlDark: string | null, /** * Local screenshot paths, resolved from the installed plugin package. */ diff --git a/src/v2/PluginListMarketplaceKind.ts b/src/v2/PluginListMarketplaceKind.ts index 1be75e6..8e1867d 100644 --- a/src/v2/PluginListMarketplaceKind.ts +++ b/src/v2/PluginListMarketplaceKind.ts @@ -2,4 +2,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type PluginListMarketplaceKind = "local" | "vertical" | "workspace-directory" | "shared-with-me"; +export type PluginListMarketplaceKind = "local" | "vertical" | "workspace-directory" | "shared-with-me" | "created-by-me-remote"; diff --git a/src/v2/PluginSource.ts b/src/v2/PluginSource.ts index f6e8671..c7ba3bc 100644 --- a/src/v2/PluginSource.ts +++ b/src/v2/PluginSource.ts @@ -3,4 +3,12 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { AbsolutePathBuf } from "../AbsolutePathBuf"; -export type PluginSource = { "type": "local", path: AbsolutePathBuf, } | { "type": "git", url: string, path: string | null, refName: string | null, sha: string | null, } | { "type": "remote" }; +export type PluginSource = { "type": "local", path: AbsolutePathBuf, } | { "type": "git", url: string, path: string | null, refName: string | null, sha: string | null, } | { "type": "npm", package: string, +/** + * Optional npm version or version range. + */ +version: string | null, +/** + * Optional HTTPS registry URL. Authentication stays in the user's npm config. + */ +registry: string | null, } | { "type": "remote" }; diff --git a/src/v2/PluginSummary.ts b/src/v2/PluginSummary.ts index 268349c..10fd5aa 100644 --- a/src/v2/PluginSummary.ts +++ b/src/v2/PluginSummary.ts @@ -4,6 +4,7 @@ import type { PluginAuthPolicy } from "./PluginAuthPolicy"; import type { PluginAvailability } from "./PluginAvailability"; import type { PluginInstallPolicy } from "./PluginInstallPolicy"; +import type { PluginInstallPolicySource } from "./PluginInstallPolicySource"; import type { PluginInterface } from "./PluginInterface"; import type { PluginShareContext } from "./PluginShareContext"; import type { PluginSource } from "./PluginSource"; @@ -13,6 +14,10 @@ export type PluginSummary = { id: string, * Backend remote plugin identifier when available. */ remotePluginId: string | null, +/** + * Version advertised by the remote marketplace backend when available. + */ +version: string | null, /** * Version of the locally materialized plugin package when available. */ @@ -20,7 +25,7 @@ localVersion: string | null, name: string, /** * Remote sharing context associated with this plugin when available. */ -shareContext: PluginShareContext | null, source: PluginSource, installed: boolean, enabled: boolean, installPolicy: PluginInstallPolicy, authPolicy: PluginAuthPolicy, +shareContext: PluginShareContext | null, source: PluginSource, installed: boolean, enabled: boolean, installPolicy: PluginInstallPolicy, installPolicySource: PluginInstallPolicySource | null, authPolicy: PluginAuthPolicy, /** * Availability state for installing and using the plugin. */ diff --git a/src/v2/RateLimitResetCredit.ts b/src/v2/RateLimitResetCredit.ts new file mode 100644 index 0000000..514c155 --- /dev/null +++ b/src/v2/RateLimitResetCredit.ts @@ -0,0 +1,27 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { RateLimitResetCreditStatus } from "./RateLimitResetCreditStatus"; +import type { RateLimitResetType } from "./RateLimitResetType"; + +export type RateLimitResetCredit = { +/** + * Opaque backend identifier for this reset credit. + */ +id: string, resetType: RateLimitResetType, status: RateLimitResetCreditStatus, +/** + * Unix timestamp in seconds when the credit was granted. + */ +grantedAt: number, +/** + * Unix timestamp in seconds when the credit expires, or `null` if it does not expire. + */ +expiresAt: number | null, +/** + * Backend-provided display title for this credit, or `null` when unavailable. + */ +title: string | null, +/** + * Backend-provided display description for this credit, or `null` when unavailable. + */ +description: string | null, }; diff --git a/src/v2/RateLimitResetCreditStatus.ts b/src/v2/RateLimitResetCreditStatus.ts new file mode 100644 index 0000000..fa15861 --- /dev/null +++ b/src/v2/RateLimitResetCreditStatus.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type RateLimitResetCreditStatus = "available" | "redeeming" | "redeemed" | "unknown"; diff --git a/src/v2/RateLimitResetCreditsSummary.ts b/src/v2/RateLimitResetCreditsSummary.ts new file mode 100644 index 0000000..46a8eee --- /dev/null +++ b/src/v2/RateLimitResetCreditsSummary.ts @@ -0,0 +1,14 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { RateLimitResetCredit } from "./RateLimitResetCredit"; + +export type RateLimitResetCreditsSummary = { availableCount: bigint, +/** + * Detail rows for available reset credits, when the backend provides them. + * + * `null` means only `availableCount` is known, while an empty array means details were fetched + * and no available credits were returned. The backend may cap this list, so its length can be + * less than `availableCount`. + */ +credits: Array | null, }; diff --git a/src/v2/RateLimitResetType.ts b/src/v2/RateLimitResetType.ts new file mode 100644 index 0000000..718145b --- /dev/null +++ b/src/v2/RateLimitResetType.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type RateLimitResetType = "codexRateLimits" | "unknown"; diff --git a/src/v2/RateLimitSnapshot.ts b/src/v2/RateLimitSnapshot.ts index dc8417a..c1e3953 100644 --- a/src/v2/RateLimitSnapshot.ts +++ b/src/v2/RateLimitSnapshot.ts @@ -5,5 +5,6 @@ import type { PlanType } from "../PlanType"; import type { CreditsSnapshot } from "./CreditsSnapshot"; import type { RateLimitReachedType } from "./RateLimitReachedType"; import type { RateLimitWindow } from "./RateLimitWindow"; +import type { SpendControlLimitSnapshot } from "./SpendControlLimitSnapshot"; -export type RateLimitSnapshot = { limitId: string | null, limitName: string | null, primary: RateLimitWindow | null, secondary: RateLimitWindow | null, credits: CreditsSnapshot | null, planType: PlanType | null, rateLimitReachedType: RateLimitReachedType | null, }; +export type RateLimitSnapshot = { limitId: string | null, limitName: string | null, primary: RateLimitWindow | null, secondary: RateLimitWindow | null, credits: CreditsSnapshot | null, individualLimit: SpendControlLimitSnapshot | null, planType: PlanType | null, rateLimitReachedType: RateLimitReachedType | null, }; diff --git a/src/v2/RemoteControlClient.ts b/src/v2/RemoteControlClient.ts new file mode 100644 index 0000000..b5466ea --- /dev/null +++ b/src/v2/RemoteControlClient.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type RemoteControlClient = { clientId: string, displayName: string | null, deviceType: string | null, platform: string | null, osVersion: string | null, deviceModel: string | null, appVersion: string | null, lastSeenAt: bigint | null, }; diff --git a/src/v2/RemoteControlClientsListOrder.ts b/src/v2/RemoteControlClientsListOrder.ts new file mode 100644 index 0000000..7166235 --- /dev/null +++ b/src/v2/RemoteControlClientsListOrder.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type RemoteControlClientsListOrder = "asc" | "desc"; diff --git a/src/v2/RemoteControlClientsListParams.ts b/src/v2/RemoteControlClientsListParams.ts new file mode 100644 index 0000000..48fed95 --- /dev/null +++ b/src/v2/RemoteControlClientsListParams.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { RemoteControlClientsListOrder } from "./RemoteControlClientsListOrder"; + +export type RemoteControlClientsListParams = { environmentId: string, cursor?: string | null, limit?: number | null, order?: RemoteControlClientsListOrder | null, }; diff --git a/src/v2/RemoteControlClientsListResponse.ts b/src/v2/RemoteControlClientsListResponse.ts new file mode 100644 index 0000000..94ed6b3 --- /dev/null +++ b/src/v2/RemoteControlClientsListResponse.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { RemoteControlClient } from "./RemoteControlClient"; + +export type RemoteControlClientsListResponse = { data: Array, nextCursor: string | null, }; diff --git a/src/v2/RemoteControlClientsRevokeParams.ts b/src/v2/RemoteControlClientsRevokeParams.ts new file mode 100644 index 0000000..de37e62 --- /dev/null +++ b/src/v2/RemoteControlClientsRevokeParams.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type RemoteControlClientsRevokeParams = { environmentId: string, clientId: string, }; diff --git a/src/v2/RemoteControlClientsRevokeResponse.ts b/src/v2/RemoteControlClientsRevokeResponse.ts new file mode 100644 index 0000000..d30e90c --- /dev/null +++ b/src/v2/RemoteControlClientsRevokeResponse.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type RemoteControlClientsRevokeResponse = Record; diff --git a/src/v2/RemoteControlDisableParams.ts b/src/v2/RemoteControlDisableParams.ts new file mode 100644 index 0000000..30a59d3 --- /dev/null +++ b/src/v2/RemoteControlDisableParams.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type RemoteControlDisableParams = { ephemeral?: boolean, }; diff --git a/src/v2/RemoteControlEnableParams.ts b/src/v2/RemoteControlEnableParams.ts new file mode 100644 index 0000000..3848982 --- /dev/null +++ b/src/v2/RemoteControlEnableParams.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type RemoteControlEnableParams = { ephemeral?: boolean, }; diff --git a/src/v2/RemoteControlPairingStartParams.ts b/src/v2/RemoteControlPairingStartParams.ts new file mode 100644 index 0000000..1c0d10f --- /dev/null +++ b/src/v2/RemoteControlPairingStartParams.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type RemoteControlPairingStartParams = { manualCode?: boolean, }; diff --git a/src/v2/RemoteControlPairingStartResponse.ts b/src/v2/RemoteControlPairingStartResponse.ts new file mode 100644 index 0000000..9651077 --- /dev/null +++ b/src/v2/RemoteControlPairingStartResponse.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type RemoteControlPairingStartResponse = { pairingCode: string, manualPairingCode: string | null, environmentId: string, expiresAt: bigint, }; diff --git a/src/v2/RemoteControlPairingStatusParams.ts b/src/v2/RemoteControlPairingStatusParams.ts new file mode 100644 index 0000000..908cec0 --- /dev/null +++ b/src/v2/RemoteControlPairingStatusParams.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type RemoteControlPairingStatusParams = { pairingCode?: string | null, manualPairingCode?: string | null, }; diff --git a/src/v2/RemoteControlPairingStatusResponse.ts b/src/v2/RemoteControlPairingStatusResponse.ts new file mode 100644 index 0000000..73a5fb1 --- /dev/null +++ b/src/v2/RemoteControlPairingStatusResponse.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type RemoteControlPairingStatusResponse = { claimed: boolean, }; diff --git a/src/v2/SelectedCapabilityRoot.ts b/src/v2/SelectedCapabilityRoot.ts new file mode 100644 index 0000000..849d5c7 --- /dev/null +++ b/src/v2/SelectedCapabilityRoot.ts @@ -0,0 +1,17 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { CapabilityRootLocation } from "./CapabilityRootLocation"; + +/** + * A user-selected root that can expose one or more runtime capabilities. + */ +export type SelectedCapabilityRoot = { +/** + * Stable identifier supplied by the capability selection platform. + */ +id: string, +/** + * Where the selected root can be resolved. + */ +location: CapabilityRootLocation, }; diff --git a/src/v2/SkillMigration.ts b/src/v2/SkillMigration.ts new file mode 100644 index 0000000..0555ffc --- /dev/null +++ b/src/v2/SkillMigration.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type SkillMigration = { name: string, }; diff --git a/src/v2/SkillsExtraRootsSetParams.ts b/src/v2/SkillsExtraRootsSetParams.ts new file mode 100644 index 0000000..bcddb9f --- /dev/null +++ b/src/v2/SkillsExtraRootsSetParams.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { AbsolutePathBuf } from "../AbsolutePathBuf"; + +export type SkillsExtraRootsSetParams = { extraRoots: Array, }; diff --git a/src/v2/SkillsExtraRootsSetResponse.ts b/src/v2/SkillsExtraRootsSetResponse.ts new file mode 100644 index 0000000..63be081 --- /dev/null +++ b/src/v2/SkillsExtraRootsSetResponse.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type SkillsExtraRootsSetResponse = Record; diff --git a/src/v2/SpendControlLimitSnapshot.ts b/src/v2/SpendControlLimitSnapshot.ts new file mode 100644 index 0000000..077e590 --- /dev/null +++ b/src/v2/SpendControlLimitSnapshot.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type SpendControlLimitSnapshot = { limit: string, used: string, remainingPercent: number, resetsAt: number, }; diff --git a/src/v2/SubAgentActivityKind.ts b/src/v2/SubAgentActivityKind.ts new file mode 100644 index 0000000..5e3ce81 --- /dev/null +++ b/src/v2/SubAgentActivityKind.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type SubAgentActivityKind = "started" | "interacted" | "interrupted"; diff --git a/src/v2/Thread.ts b/src/v2/Thread.ts index d917094..7e99428 100644 --- a/src/v2/Thread.ts +++ b/src/v2/Thread.ts @@ -4,11 +4,21 @@ import type { AbsolutePathBuf } from "../AbsolutePathBuf"; import type { GitInfo } from "./GitInfo"; import type { SessionSource } from "./SessionSource"; +import type { ThreadExtra } from "./ThreadExtra"; +import type { ThreadHistoryMode } from "./ThreadHistoryMode"; import type { ThreadSource } from "./ThreadSource"; import type { ThreadStatus } from "./ThreadStatus"; import type { Turn } from "./Turn"; -export type Thread = { id: string, +export type Thread = { +/** + * Identifier for this thread. Codex-generated thread IDs are UUIDv7. + */ +id: string, +/** + * Optional implementation-specific thread data. + */ +extra: ThreadExtra | null, /** * Session id shared by threads that belong to the same session tree. */ @@ -17,6 +27,10 @@ sessionId: string, * Source thread id when this thread was created by forking another thread. */ forkedFromId: string | null, +/** + * The ID of the parent thread. This will only be set if this thread is a subagent. + */ +parentThreadId: string | null, /** * Usually the first user message in the thread, if available. */ @@ -25,6 +39,10 @@ preview: string, * Whether the thread is ephemeral and should not be materialized on disk. */ ephemeral: boolean, +/** + * Persisted thread history contract selected when this thread was created. + */ +historyMode: ThreadHistoryMode, /** * Model provider used for this thread (for example, 'openai'). */ @@ -37,6 +55,10 @@ createdAt: number, * Unix timestamp (in seconds) when the thread was last updated. */ updatedAt: number, +/** + * Unix timestamp (in seconds) used for thread recency ordering. + */ +recencyAt: number | null, /** * Current runtime status for the thread. */ diff --git a/src/v2/ThreadBackgroundTerminal.ts b/src/v2/ThreadBackgroundTerminal.ts new file mode 100644 index 0000000..b2e6e67 --- /dev/null +++ b/src/v2/ThreadBackgroundTerminal.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { AbsolutePathBuf } from "../AbsolutePathBuf"; + +export type ThreadBackgroundTerminal = { itemId: string, processId: string, command: string, cwd: AbsolutePathBuf, osPid: number | null, cpuPercent: number | null, rssKb: bigint | null, }; diff --git a/src/v2/ThreadBackgroundTerminalsListParams.ts b/src/v2/ThreadBackgroundTerminalsListParams.ts new file mode 100644 index 0000000..3958110 --- /dev/null +++ b/src/v2/ThreadBackgroundTerminalsListParams.ts @@ -0,0 +1,13 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ThreadBackgroundTerminalsListParams = { threadId: string, +/** + * Opaque pagination cursor returned by a previous call. + */ +cursor?: string | null, +/** + * Optional page size. + */ +limit?: number | null, }; diff --git a/src/v2/ThreadBackgroundTerminalsListResponse.ts b/src/v2/ThreadBackgroundTerminalsListResponse.ts new file mode 100644 index 0000000..6f19883 --- /dev/null +++ b/src/v2/ThreadBackgroundTerminalsListResponse.ts @@ -0,0 +1,11 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ThreadBackgroundTerminal } from "./ThreadBackgroundTerminal"; + +export type ThreadBackgroundTerminalsListResponse = { data: Array, +/** + * Opaque cursor to pass to the next call to continue after the last item. + * If None, there are no more items to return. + */ +nextCursor: string | null, }; diff --git a/src/v2/ThreadBackgroundTerminalsTerminateParams.ts b/src/v2/ThreadBackgroundTerminalsTerminateParams.ts new file mode 100644 index 0000000..aa3f0b9 --- /dev/null +++ b/src/v2/ThreadBackgroundTerminalsTerminateParams.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ThreadBackgroundTerminalsTerminateParams = { threadId: string, processId: string, }; diff --git a/src/v2/ThreadBackgroundTerminalsTerminateResponse.ts b/src/v2/ThreadBackgroundTerminalsTerminateResponse.ts new file mode 100644 index 0000000..5249226 --- /dev/null +++ b/src/v2/ThreadBackgroundTerminalsTerminateResponse.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ThreadBackgroundTerminalsTerminateResponse = { terminated: boolean, }; diff --git a/src/v2/ThreadDeleteParams.ts b/src/v2/ThreadDeleteParams.ts new file mode 100644 index 0000000..909ccda --- /dev/null +++ b/src/v2/ThreadDeleteParams.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ThreadDeleteParams = { threadId: string, }; diff --git a/src/v2/ThreadDeleteResponse.ts b/src/v2/ThreadDeleteResponse.ts new file mode 100644 index 0000000..1af1c30 --- /dev/null +++ b/src/v2/ThreadDeleteResponse.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ThreadDeleteResponse = Record; diff --git a/src/v2/ThreadDeletedNotification.ts b/src/v2/ThreadDeletedNotification.ts new file mode 100644 index 0000000..5122a22 --- /dev/null +++ b/src/v2/ThreadDeletedNotification.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ThreadDeletedNotification = { threadId: string, }; diff --git a/src/v2/ThreadExtra.ts b/src/v2/ThreadExtra.ts new file mode 100644 index 0000000..aa35e45 --- /dev/null +++ b/src/v2/ThreadExtra.ts @@ -0,0 +1,8 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Extra app-server data for a thread. + */ +export type ThreadExtra = Record; diff --git a/src/v2/ThreadForkParams.ts b/src/v2/ThreadForkParams.ts index 2369ae0..ec28721 100644 --- a/src/v2/ThreadForkParams.ts +++ b/src/v2/ThreadForkParams.ts @@ -1,6 +1,7 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { AbsolutePathBuf } from "../AbsolutePathBuf"; import type { JsonValue } from "../serde_json/JsonValue"; import type { ApprovalsReviewer } from "./ApprovalsReviewer"; import type { AskForApproval } from "./AskForApproval"; @@ -18,6 +19,13 @@ import type { ThreadSource } from "./ThreadSource"; * Prefer using thread_id whenever possible. */ export type ThreadForkParams = { threadId: string, +/** + * Optional last turn id to fork through, inclusive. + * + * When specified, turns after `last_turn_id` are omitted from the fork. + * The referenced turn cannot be in progress. + */ +lastTurnId?: string | null, /** * [UNSTABLE] Specify the rollout path to fork from. * If specified, the thread_id param will be ignored. @@ -28,10 +36,9 @@ path?: string | null, */ model?: string | null, modelProvider?: string | null, serviceTier?: string | null | null, cwd?: string | null, /** - * Replace the thread's runtime workspace roots. Relative paths are - * resolved against the effective cwd for the thread. + * Replace the thread's runtime workspace roots. Paths must be absolute. */ -runtimeWorkspaceRoots?: Array | null, approvalPolicy?: AskForApproval | null, +runtimeWorkspaceRoots?: Array | null, approvalPolicy?: AskForApproval | null, /** * Override where approval requests are routed for review on this thread * and subsequent turns. @@ -51,10 +58,4 @@ threadSource?: ThreadSource | null, * populating `thread.turns`. This is useful when the client plans to call * `thread/turns/list` immediately after forking. */ -excludeTurns?: boolean, -/** - * Deprecated and ignored by app-server. Kept only so older clients can - * continue sending the field while rollout persistence always uses the - * limited history policy. - */ -persistExtendedHistory?: boolean, }; +excludeTurns?: boolean, }; diff --git a/src/v2/ThreadForkResponse.ts b/src/v2/ThreadForkResponse.ts index 379b9b1..4b089a7 100644 --- a/src/v2/ThreadForkResponse.ts +++ b/src/v2/ThreadForkResponse.ts @@ -2,6 +2,8 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { AbsolutePathBuf } from "../AbsolutePathBuf"; +import type { LegacyAppPathString } from "../LegacyAppPathString"; +import type { MultiAgentMode } from "../MultiAgentMode"; import type { ReasoningEffort } from "../ReasoningEffort"; import type { ActivePermissionProfile } from "./ActivePermissionProfile"; import type { ApprovalsReviewer } from "./ApprovalsReviewer"; @@ -16,9 +18,9 @@ export type ThreadForkResponse = { thread: Thread, model: string, modelProvider: */ runtimeWorkspaceRoots: Array, /** - * Instruction source files currently loaded for this thread. + * Environment-native paths to instruction source files currently loaded for this thread. */ -instructionSources: Array, approvalPolicy: AskForApproval, +instructionSources: Array, approvalPolicy: AskForApproval, /** * Reviewer currently used for approval requests on this thread. */ @@ -32,4 +34,8 @@ sandbox: SandboxPolicy, * Named or implicit built-in profile that produced the active * permissions, when known. */ -activePermissionProfile: ActivePermissionProfile | null, reasoningEffort: ReasoningEffort | null, }; +activePermissionProfile: ActivePermissionProfile | null, reasoningEffort: ReasoningEffort | null, +/** + * @deprecated Always `explicitRequestOnly`. Use `reasoningEffort` for Ultra behavior. + */ +multiAgentMode: MultiAgentMode, }; diff --git a/src/v2/ThreadHistoryMode.ts b/src/v2/ThreadHistoryMode.ts new file mode 100644 index 0000000..db0f2d8 --- /dev/null +++ b/src/v2/ThreadHistoryMode.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ThreadHistoryMode = "legacy" | "paginated"; diff --git a/src/v2/ThreadItem.ts b/src/v2/ThreadItem.ts index 1b655b4..a445385 100644 --- a/src/v2/ThreadItem.ts +++ b/src/v2/ThreadItem.ts @@ -1,9 +1,11 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { AbsolutePathBuf } from "../AbsolutePathBuf"; +import type { ImageGenerationItem } from "../ImageGenerationItem"; +import type { LegacyAppPathString } from "../LegacyAppPathString"; import type { MessagePhase } from "../MessagePhase"; import type { ReasoningEffort } from "../ReasoningEffort"; +import type { WebSearchItem } from "../WebSearchItem"; import type { JsonValue } from "../serde_json/JsonValue"; import type { CollabAgentState } from "./CollabAgentState"; import type { CollabAgentTool } from "./CollabAgentTool"; @@ -15,15 +17,16 @@ import type { DynamicToolCallOutputContentItem } from "./DynamicToolCallOutputCo import type { DynamicToolCallStatus } from "./DynamicToolCallStatus"; import type { FileUpdateChange } from "./FileUpdateChange"; import type { HookPromptFragment } from "./HookPromptFragment"; +import type { McpToolCallAppContext } from "./McpToolCallAppContext"; import type { McpToolCallError } from "./McpToolCallError"; import type { McpToolCallResult } from "./McpToolCallResult"; import type { McpToolCallStatus } from "./McpToolCallStatus"; import type { MemoryCitation } from "./MemoryCitation"; import type { PatchApplyStatus } from "./PatchApplyStatus"; +import type { SubAgentActivityKind } from "./SubAgentActivityKind"; import type { UserInput } from "./UserInput"; -import type { WebSearchAction } from "./WebSearchAction"; -export type ThreadItem = { "type": "userMessage", id: string, content: Array, } | { "type": "hookPrompt", id: string, fragments: Array, } | { "type": "agentMessage", id: string, text: string, phase: MessagePhase | null, memoryCitation: MemoryCitation | null, } | { "type": "plan", id: string, text: string, } | { "type": "reasoning", id: string, summary: Array, content: Array, } | { "type": "commandExecution", id: string, +export type ThreadItem = { "type": "userMessage", id: string, clientId: string | null, content: Array, } | { "type": "hookPrompt", id: string, fragments: Array, } | { "type": "agentMessage", id: string, text: string, phase: MessagePhase | null, memoryCitation: MemoryCitation | null, } | { "type": "plan", id: string, text: string, } | { "type": "reasoning", id: string, summary: Array, content: Array, } | { "type": "commandExecution", id: string, /** * The command to be executed. */ @@ -31,7 +34,7 @@ command: string, /** * The command's working directory. */ -cwd: AbsolutePathBuf, +cwd: LegacyAppPathString, /** * Identifier for the underlying PTY process (when available). */ @@ -53,7 +56,11 @@ exitCode: number | null, /** * The duration of the command execution in milliseconds. */ -durationMs: number | null, } | { "type": "fileChange", id: string, changes: Array, status: PatchApplyStatus, } | { "type": "mcpToolCall", id: string, server: string, tool: string, status: McpToolCallStatus, arguments: JsonValue, mcpAppResourceUri?: string, pluginId: string | null, result: McpToolCallResult | null, error: McpToolCallError | null, +durationMs: number | null, } | { "type": "fileChange", id: string, changes: Array, status: PatchApplyStatus, } | { "type": "mcpToolCall", id: string, server: string, tool: string, status: McpToolCallStatus, arguments: JsonValue, appContext: McpToolCallAppContext | null, +/** + * Deprecated: use `appContext.resourceUri` instead. + */ +mcpAppResourceUri?: string, pluginId: string | null, result: McpToolCallResult | null, error: McpToolCallError | null, /** * The duration of the MCP tool call in milliseconds. */ @@ -98,4 +105,4 @@ reasoningEffort: ReasoningEffort | null, /** * Last known status of the target agents, when available. */ -agentsStates: { [key in string]?: CollabAgentState }, } | { "type": "webSearch", id: string, query: string, action: WebSearchAction | null, } | { "type": "imageView", id: string, path: AbsolutePathBuf, } | { "type": "imageGeneration", id: string, status: string, revisedPrompt: string | null, result: string, savedPath?: AbsolutePathBuf, } | { "type": "enteredReviewMode", id: string, review: string, } | { "type": "exitedReviewMode", id: string, review: string, } | { "type": "contextCompaction", id: string, }; +agentsStates: { [key in string]?: CollabAgentState }, } | { "type": "subAgentActivity", id: string, kind: SubAgentActivityKind, agentThreadId: string, agentPath: string, } | { "type": "webSearch" } & WebSearchItem | { "type": "imageView", id: string, path: LegacyAppPathString, } | { "type": "sleep", id: string, durationMs: number, } | { "type": "imageGeneration" } & ImageGenerationItem | { "type": "enteredReviewMode", id: string, review: string, } | { "type": "exitedReviewMode", id: string, review: string, } | { "type": "contextCompaction", id: string, }; diff --git a/src/v2/ThreadTurnsItemsListParams.ts b/src/v2/ThreadItemsListParams.ts similarity index 74% rename from src/v2/ThreadTurnsItemsListParams.ts rename to src/v2/ThreadItemsListParams.ts index 68c506a..c41e93f 100644 --- a/src/v2/ThreadTurnsItemsListParams.ts +++ b/src/v2/ThreadItemsListParams.ts @@ -3,7 +3,11 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { SortDirection } from "./SortDirection"; -export type ThreadTurnsItemsListParams = { threadId: string, turnId: string, +export type ThreadItemsListParams = { threadId: string, +/** + * Optional turn id to filter by. When omitted, returns items across the thread. + */ +turnId?: string | null, /** * Opaque cursor to pass to the next call to continue after the last item. */ diff --git a/src/v2/ThreadTurnsItemsListResponse.ts b/src/v2/ThreadItemsListResponse.ts similarity index 88% rename from src/v2/ThreadTurnsItemsListResponse.ts rename to src/v2/ThreadItemsListResponse.ts index 4375e29..4370e1f 100644 --- a/src/v2/ThreadTurnsItemsListResponse.ts +++ b/src/v2/ThreadItemsListResponse.ts @@ -3,7 +3,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ThreadItem } from "./ThreadItem"; -export type ThreadTurnsItemsListResponse = { data: Array, +export type ThreadItemsListResponse = { data: Array, /** * Opaque cursor to pass to the next call to continue after the last item. * if None, there are no more items to return. diff --git a/src/v2/ThreadListParams.ts b/src/v2/ThreadListParams.ts index ce5b6a7..015f453 100644 --- a/src/v2/ThreadListParams.ts +++ b/src/v2/ThreadListParams.ts @@ -51,4 +51,13 @@ useStateDbOnly?: boolean, /** * Optional substring filter for the extracted thread title. */ -searchTerm?: string | null, }; +searchTerm?: string | null, +/** + * Optional direct parent thread filter. Mutually exclusive with `ancestorThreadId`. + */ +parentThreadId?: string | null, +/** + * Optional ancestor thread filter. Returns spawned descendants at any depth, excluding the + * ancestor itself. Mutually exclusive with `parentThreadId`. + */ +ancestorThreadId?: string | null, }; diff --git a/src/v2/ThreadRealtimeAppendSpeechParams.ts b/src/v2/ThreadRealtimeAppendSpeechParams.ts new file mode 100644 index 0000000..5d36e69 --- /dev/null +++ b/src/v2/ThreadRealtimeAppendSpeechParams.ts @@ -0,0 +1,8 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * EXPERIMENTAL - append speakable text to thread realtime. + */ +export type ThreadRealtimeAppendSpeechParams = { threadId: string, text: string, }; diff --git a/src/v2/ThreadRealtimeAppendSpeechResponse.ts b/src/v2/ThreadRealtimeAppendSpeechResponse.ts new file mode 100644 index 0000000..4963999 --- /dev/null +++ b/src/v2/ThreadRealtimeAppendSpeechResponse.ts @@ -0,0 +1,8 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * EXPERIMENTAL - response for appending realtime speech. + */ +export type ThreadRealtimeAppendSpeechResponse = Record; diff --git a/src/v2/ThreadRealtimeAppendTextParams.ts b/src/v2/ThreadRealtimeAppendTextParams.ts index 6e3bef4..c0cb246 100644 --- a/src/v2/ThreadRealtimeAppendTextParams.ts +++ b/src/v2/ThreadRealtimeAppendTextParams.ts @@ -1,8 +1,9 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ConversationTextRole } from "../ConversationTextRole"; /** * EXPERIMENTAL - append text input to thread realtime. */ -export type ThreadRealtimeAppendTextParams = { threadId: string, text: string, }; +export type ThreadRealtimeAppendTextParams = { threadId: string, text: string, role: ConversationTextRole, }; diff --git a/src/v2/ThreadRealtimeStartParams.ts b/src/v2/ThreadRealtimeStartParams.ts index 1a14916..9a1bbc5 100644 --- a/src/v2/ThreadRealtimeStartParams.ts +++ b/src/v2/ThreadRealtimeStartParams.ts @@ -1,6 +1,7 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { RealtimeConversationVersion } from "../RealtimeConversationVersion"; import type { RealtimeOutputModality } from "../RealtimeOutputModality"; import type { RealtimeVoice } from "../RealtimeVoice"; import type { ThreadRealtimeStartTransport } from "./ThreadRealtimeStartTransport"; @@ -9,8 +10,44 @@ import type { ThreadRealtimeStartTransport } from "./ThreadRealtimeStartTranspor * EXPERIMENTAL - start a thread-scoped realtime session. */ export type ThreadRealtimeStartParams = { threadId: string, +/** + * Leaves Codex response handoffs to the client's explicit append calls instead of forwarding + * them automatically. Defaults to false. + */ +clientManagedHandoffs?: boolean | null, +/** + * Routes any transcript tail remaining at session end through Codex. Defaults to false. + * TODO: Remove this rollout knob once transcript-tail flushing is always enabled. + */ +flushTranscriptTailOnSessionEnd?: boolean | null, +/** + * Sends automatic Codex responses as realtime conversation items instead of handoff appends. + */ +codexResponsesAsItems?: boolean | null, +/** + * Optional prefix added to automatic Codex response items when `codexResponsesAsItems` is true. + */ +codexResponseItemPrefix?: string | null, +/** + * Optional prefix added to automatic V1 Codex commentary sent with + * `conversation.handoff.append` when `codexResponsesAsItems` is not true. Final answers are + * sent without the prefix. + */ +codexResponseHandoffPrefix?: string | null, +/** + * Overrides the configured realtime model for this session only. + */ +model?: string | null, /** * Selects text or audio output for the realtime session. Transport and voice stay * independent so clients can choose how they connect separately from what the model emits. */ -outputModality: RealtimeOutputModality, prompt?: string | null | null, realtimeSessionId?: string | null, transport?: ThreadRealtimeStartTransport | null, voice?: RealtimeVoice | null, }; +outputModality: RealtimeOutputModality, +/** + * Set to false to start without Codex's startup context. Omitted or null includes it. + */ +includeStartupContext?: boolean | null, prompt?: string | null | null, realtimeSessionId?: string | null, transport?: ThreadRealtimeStartTransport | null, +/** + * Overrides the configured realtime protocol version for this session only. + */ +version?: RealtimeConversationVersion | null, voice?: RealtimeVoice | null, }; diff --git a/src/v2/ThreadResumeInitialTurnsPageParams.ts b/src/v2/ThreadResumeInitialTurnsPageParams.ts new file mode 100644 index 0000000..2dbcd97 --- /dev/null +++ b/src/v2/ThreadResumeInitialTurnsPageParams.ts @@ -0,0 +1,19 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { SortDirection } from "./SortDirection"; +import type { TurnItemsView } from "./TurnItemsView"; + +export type ThreadResumeInitialTurnsPageParams = { +/** + * Optional turn page size. + */ +limit?: number | null, +/** + * Optional turn pagination direction; defaults to descending. + */ +sortDirection?: SortDirection | null, +/** + * How much item detail to include for each returned turn; defaults to summary. + */ +itemsView?: TurnItemsView | null, }; diff --git a/src/v2/ThreadResumeParams.ts b/src/v2/ThreadResumeParams.ts index 67febf4..5d29e97 100644 --- a/src/v2/ThreadResumeParams.ts +++ b/src/v2/ThreadResumeParams.ts @@ -1,12 +1,14 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { AbsolutePathBuf } from "../AbsolutePathBuf"; import type { Personality } from "../Personality"; import type { ResponseItem } from "../ResponseItem"; import type { JsonValue } from "../serde_json/JsonValue"; import type { ApprovalsReviewer } from "./ApprovalsReviewer"; import type { AskForApproval } from "./AskForApproval"; import type { SandboxMode } from "./SandboxMode"; +import type { ThreadResumeInitialTurnsPageParams } from "./ThreadResumeInitialTurnsPageParams"; /** * There are three ways to resume a thread: @@ -43,10 +45,9 @@ path?: string | null, */ model?: string | null, modelProvider?: string | null, serviceTier?: string | null | null, cwd?: string | null, /** - * Replace the thread's runtime workspace roots. Relative paths are - * resolved against the effective cwd for the thread. + * Replace the thread's runtime workspace roots. Paths must be absolute. */ -runtimeWorkspaceRoots?: Array | null, approvalPolicy?: AskForApproval | null, +runtimeWorkspaceRoots?: Array | null, approvalPolicy?: AskForApproval | null, /** * Override where approval requests are routed for review on this thread * and subsequent turns. @@ -64,8 +65,7 @@ permissions?: string | null, config?: { [key in string]?: JsonValue } | null, ba */ excludeTurns?: boolean, /** - * Deprecated and ignored by app-server. Kept only so older clients can - * continue sending the field while rollout persistence always uses the - * limited history policy. + * When present, include a `thread/turns/list` page in the resume response + * so clients can bootstrap recent turns without a second request. */ -persistExtendedHistory?: boolean, }; +initialTurnsPage?: ThreadResumeInitialTurnsPageParams | null, }; diff --git a/src/v2/ThreadResumeResponse.ts b/src/v2/ThreadResumeResponse.ts index 9db53d8..75b6847 100644 --- a/src/v2/ThreadResumeResponse.ts +++ b/src/v2/ThreadResumeResponse.ts @@ -2,12 +2,15 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { AbsolutePathBuf } from "../AbsolutePathBuf"; +import type { LegacyAppPathString } from "../LegacyAppPathString"; +import type { MultiAgentMode } from "../MultiAgentMode"; import type { ReasoningEffort } from "../ReasoningEffort"; import type { ActivePermissionProfile } from "./ActivePermissionProfile"; import type { ApprovalsReviewer } from "./ApprovalsReviewer"; import type { AskForApproval } from "./AskForApproval"; import type { SandboxPolicy } from "./SandboxPolicy"; import type { Thread } from "./Thread"; +import type { TurnsPage } from "./TurnsPage"; export type ThreadResumeResponse = { thread: Thread, model: string, modelProvider: string, serviceTier: string | null, cwd: AbsolutePathBuf, /** @@ -16,9 +19,9 @@ export type ThreadResumeResponse = { thread: Thread, model: string, modelProvide */ runtimeWorkspaceRoots: Array, /** - * Instruction source files currently loaded for this thread. + * Environment-native paths to instruction source files currently loaded for this thread. */ -instructionSources: Array, approvalPolicy: AskForApproval, +instructionSources: Array, approvalPolicy: AskForApproval, /** * Reviewer currently used for approval requests on this thread. */ @@ -32,4 +35,12 @@ sandbox: SandboxPolicy, * Named or implicit built-in profile that produced the active * permissions, when known. */ -activePermissionProfile: ActivePermissionProfile | null, reasoningEffort: ReasoningEffort | null, }; +activePermissionProfile: ActivePermissionProfile | null, reasoningEffort: ReasoningEffort | null, +/** + * @deprecated Always `explicitRequestOnly`. Use `reasoningEffort` for Ultra behavior. + */ +multiAgentMode: MultiAgentMode, +/** + * `thread/turns/list` page returned when requested by `initialTurnsPage`. + */ +initialTurnsPage: TurnsPage | null, }; diff --git a/src/v2/ThreadRollbackParams.ts b/src/v2/ThreadRollbackParams.ts index 1c938e3..af416d1 100644 --- a/src/v2/ThreadRollbackParams.ts +++ b/src/v2/ThreadRollbackParams.ts @@ -2,6 +2,9 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +/** + * DEPRECATED: `thread/rollback` will be removed soon. + */ export type ThreadRollbackParams = { threadId: string, /** * The number of turns to drop from the end of the thread. Must be >= 1. diff --git a/src/v2/ThreadSettings.ts b/src/v2/ThreadSettings.ts index bcfd0ad..5f2f104 100644 --- a/src/v2/ThreadSettings.ts +++ b/src/v2/ThreadSettings.ts @@ -3,6 +3,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { AbsolutePathBuf } from "../AbsolutePathBuf"; import type { CollaborationMode } from "../CollaborationMode"; +import type { MultiAgentMode } from "../MultiAgentMode"; import type { Personality } from "../Personality"; import type { ReasoningEffort } from "../ReasoningEffort"; import type { ReasoningSummary } from "../ReasoningSummary"; @@ -11,4 +12,8 @@ import type { ApprovalsReviewer } from "./ApprovalsReviewer"; import type { AskForApproval } from "./AskForApproval"; import type { SandboxPolicy } from "./SandboxPolicy"; -export type ThreadSettings = { cwd: AbsolutePathBuf, approvalPolicy: AskForApproval, approvalsReviewer: ApprovalsReviewer, sandboxPolicy: SandboxPolicy, activePermissionProfile: ActivePermissionProfile | null, model: string, modelProvider: string, serviceTier: string | null, effort: ReasoningEffort | null, summary: ReasoningSummary | null, collaborationMode: CollaborationMode, personality: Personality | null, }; +export type ThreadSettings = { cwd: AbsolutePathBuf, approvalPolicy: AskForApproval, approvalsReviewer: ApprovalsReviewer, sandboxPolicy: SandboxPolicy, activePermissionProfile: ActivePermissionProfile | null, model: string, modelProvider: string, serviceTier: string | null, effort: ReasoningEffort | null, summary: ReasoningSummary | null, collaborationMode: CollaborationMode, +/** + * @deprecated Always `explicitRequestOnly`. Use `effort` for Ultra behavior. + */ +multiAgentMode: MultiAgentMode, personality: Personality | null, }; diff --git a/src/v2/ThreadSettingsUpdateParams.ts b/src/v2/ThreadSettingsUpdateParams.ts index 551dd5b..617e66a 100644 --- a/src/v2/ThreadSettingsUpdateParams.ts +++ b/src/v2/ThreadSettingsUpdateParams.ts @@ -2,6 +2,7 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { CollaborationMode } from "../CollaborationMode"; +import type { MultiAgentMode } from "../MultiAgentMode"; import type { Personality } from "../Personality"; import type { ReasoningEffort } from "../ReasoningEffort"; import type { ReasoningSummary } from "../ReasoningSummary"; @@ -55,6 +56,10 @@ summary?: ReasoningSummary | null, * "use the built-in instructions for the selected mode". */ collaborationMode?: CollaborationMode | null, +/** + * @deprecated Ignored. Use `effort: "ultra"` for proactive multi-agent behavior. + */ +multiAgentMode?: MultiAgentMode | null, /** * Override the personality for subsequent turns. */ diff --git a/src/v2/ThreadSortKey.ts b/src/v2/ThreadSortKey.ts index dbf1b6c..d93f1c4 100644 --- a/src/v2/ThreadSortKey.ts +++ b/src/v2/ThreadSortKey.ts @@ -2,4 +2,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ThreadSortKey = "created_at" | "updated_at"; +export type ThreadSortKey = "created_at" | "updated_at" | "recency_at"; diff --git a/src/v2/ThreadSource.ts b/src/v2/ThreadSource.ts index 8f55524..f27154a 100644 --- a/src/v2/ThreadSource.ts +++ b/src/v2/ThreadSource.ts @@ -2,4 +2,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type ThreadSource = "user" | "subagent" | "memory_consolidation"; +export type ThreadSource = string; diff --git a/src/v2/ThreadStartParams.ts b/src/v2/ThreadStartParams.ts index bc03ab1..9889d31 100644 --- a/src/v2/ThreadStartParams.ts +++ b/src/v2/ThreadStartParams.ts @@ -1,22 +1,30 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { AbsolutePathBuf } from "../AbsolutePathBuf"; +import type { MultiAgentMode } from "../MultiAgentMode"; import type { Personality } from "../Personality"; import type { JsonValue } from "../serde_json/JsonValue"; import type { ApprovalsReviewer } from "./ApprovalsReviewer"; import type { AskForApproval } from "./AskForApproval"; import type { DynamicToolSpec } from "./DynamicToolSpec"; import type { SandboxMode } from "./SandboxMode"; +import type { SelectedCapabilityRoot } from "./SelectedCapabilityRoot"; +import type { ThreadHistoryMode } from "./ThreadHistoryMode"; import type { ThreadSource } from "./ThreadSource"; import type { ThreadStartSource } from "./ThreadStartSource"; import type { TurnEnvironmentParams } from "./TurnEnvironmentParams"; -export type ThreadStartParams = { model?: string | null, modelProvider?: string | null, serviceTier?: string | null | null, cwd?: string | null, +export type ThreadStartParams = { model?: string | null, modelProvider?: string | null, /** - * Replace the thread's runtime workspace roots. Relative paths are - * resolved against the effective cwd for the thread. + * Allow a provider with an authoritative static model catalog to replace an unavailable + * requested model with its default. */ -runtimeWorkspaceRoots?: Array | null, approvalPolicy?: AskForApproval | null, +allowProviderModelFallback?: boolean, serviceTier?: string | null | null, cwd?: string | null, +/** + * Replace the thread's runtime workspace roots. Paths must be absolute. + */ +runtimeWorkspaceRoots?: Array | null, approvalPolicy?: AskForApproval | null, /** * Override where approval requests are routed for review on this thread * and subsequent turns. @@ -25,7 +33,15 @@ approvalsReviewer?: ApprovalsReviewer | null, sandbox?: SandboxMode | null, /** * Named profile id for this thread. Cannot be combined with `sandbox`. */ -permissions?: string | null, config?: { [key in string]?: JsonValue } | null, serviceName?: string | null, baseInstructions?: string | null, developerInstructions?: string | null, personality?: Personality | null, ephemeral?: boolean | null, sessionStartSource?: ThreadStartSource | null, +permissions?: string | null, config?: { [key in string]?: JsonValue } | null, serviceName?: string | null, baseInstructions?: string | null, developerInstructions?: string | null, personality?: Personality | null, +/** + * @deprecated Ignored. Use Ultra reasoning effort for proactive multi-agent behavior. + */ +multiAgentMode?: MultiAgentMode | null, ephemeral?: boolean | null, +/** + * Persisted thread history contract to use for this new thread. + */ +historyMode?: ThreadHistoryMode | null, sessionStartSource?: ThreadStartSource | null, /** * Optional client-supplied analytics source classification for this thread. */ @@ -39,6 +55,10 @@ threadSource?: ThreadSource | null, * current turn environment. */ environments?: Array | null, dynamicTools?: Array | null, +/** + * Capability roots selected for this thread by the hosting platform. + */ +selectedCapabilityRoots?: Array | null, /** * Test-only experimental field used to validate experimental gating and * schema filtering behavior in a stable way. @@ -48,10 +68,4 @@ mockExperimentalField?: string | null, * If true, opt into emitting raw Responses API items on the event stream. * This is for internal use only (e.g. Codex Cloud). */ -experimentalRawEvents?: boolean, -/** - * Deprecated and ignored by app-server. Kept only so older clients can - * continue sending the field while rollout persistence always uses the - * limited history policy. - */ -persistExtendedHistory?: boolean, }; +experimentalRawEvents?: boolean, }; diff --git a/src/v2/ThreadStartResponse.ts b/src/v2/ThreadStartResponse.ts index bb48194..13cf8f9 100644 --- a/src/v2/ThreadStartResponse.ts +++ b/src/v2/ThreadStartResponse.ts @@ -2,6 +2,8 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { AbsolutePathBuf } from "../AbsolutePathBuf"; +import type { LegacyAppPathString } from "../LegacyAppPathString"; +import type { MultiAgentMode } from "../MultiAgentMode"; import type { ReasoningEffort } from "../ReasoningEffort"; import type { ActivePermissionProfile } from "./ActivePermissionProfile"; import type { ApprovalsReviewer } from "./ApprovalsReviewer"; @@ -16,9 +18,9 @@ export type ThreadStartResponse = { thread: Thread, model: string, modelProvider */ runtimeWorkspaceRoots: Array, /** - * Instruction source files currently loaded for this thread. + * Environment-native paths to instruction source files currently loaded for this thread. */ -instructionSources: Array, approvalPolicy: AskForApproval, +instructionSources: Array, approvalPolicy: AskForApproval, /** * Reviewer currently used for approval requests on this thread. */ @@ -32,4 +34,8 @@ sandbox: SandboxPolicy, * Named or implicit built-in profile that produced the active * permissions, when known. */ -activePermissionProfile: ActivePermissionProfile | null, reasoningEffort: ReasoningEffort | null, }; +activePermissionProfile: ActivePermissionProfile | null, reasoningEffort: ReasoningEffort | null, +/** + * @deprecated Always `explicitRequestOnly`. Use `reasoningEffort` for Ultra behavior. + */ +multiAgentMode: MultiAgentMode, }; diff --git a/src/v2/ToolRequestUserInputParams.ts b/src/v2/ToolRequestUserInputParams.ts index bee81cb..73ff8b6 100644 --- a/src/v2/ToolRequestUserInputParams.ts +++ b/src/v2/ToolRequestUserInputParams.ts @@ -6,4 +6,4 @@ import type { ToolRequestUserInputQuestion } from "./ToolRequestUserInputQuestio /** * EXPERIMENTAL. Params sent with a request_user_input event. */ -export type ToolRequestUserInputParams = { threadId: string, turnId: string, itemId: string, questions: Array, }; +export type ToolRequestUserInputParams = { threadId: string, turnId: string, itemId: string, questions: Array, autoResolutionMs: number | null, }; diff --git a/src/v2/Turn.ts b/src/v2/Turn.ts index 6505ec3..b868025 100644 --- a/src/v2/Turn.ts +++ b/src/v2/Turn.ts @@ -6,7 +6,11 @@ import type { TurnError } from "./TurnError"; import type { TurnItemsView } from "./TurnItemsView"; import type { TurnStatus } from "./TurnStatus"; -export type Turn = { id: string, +export type Turn = { +/** + * Identifier for this turn. Codex-generated turn IDs are UUIDv7. + */ +id: string, /** * Thread items currently included in this turn payload. */ diff --git a/src/v2/TurnEnvironmentParams.ts b/src/v2/TurnEnvironmentParams.ts index bb981b0..cb93ba3 100644 --- a/src/v2/TurnEnvironmentParams.ts +++ b/src/v2/TurnEnvironmentParams.ts @@ -1,6 +1,6 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { AbsolutePathBuf } from "../AbsolutePathBuf"; +import type { LegacyAppPathString } from "../LegacyAppPathString"; -export type TurnEnvironmentParams = { environmentId: string, cwd: AbsolutePathBuf, }; +export type TurnEnvironmentParams = { environmentId: string, cwd: LegacyAppPathString, }; diff --git a/src/v2/TurnModerationMetadataNotification.ts b/src/v2/TurnModerationMetadataNotification.ts new file mode 100644 index 0000000..1d46d1b --- /dev/null +++ b/src/v2/TurnModerationMetadataNotification.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { JsonValue } from "../serde_json/JsonValue"; + +export type TurnModerationMetadataNotification = { threadId: string, turnId: string, metadata: JsonValue, }; diff --git a/src/v2/TurnStartParams.ts b/src/v2/TurnStartParams.ts index 14eba86..7203dc8 100644 --- a/src/v2/TurnStartParams.ts +++ b/src/v2/TurnStartParams.ts @@ -1,7 +1,9 @@ // GENERATED CODE! DO NOT MODIFY BY HAND! // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { AbsolutePathBuf } from "../AbsolutePathBuf"; import type { CollaborationMode } from "../CollaborationMode"; +import type { MultiAgentMode } from "../MultiAgentMode"; import type { Personality } from "../Personality"; import type { ReasoningEffort } from "../ReasoningEffort"; import type { ReasoningSummary } from "../ReasoningSummary"; @@ -13,9 +15,15 @@ import type { SandboxPolicy } from "./SandboxPolicy"; import type { TurnEnvironmentParams } from "./TurnEnvironmentParams"; import type { UserInput } from "./UserInput"; -export type TurnStartParams = { threadId: string, input: Array, +export type TurnStartParams = { threadId: string, clientUserMessageId?: string | null, input: Array, /** - * Optional turn-scoped Responses API client metadata. + * Optional metadata to enrich Codex's ResponsesAPI turn metadata. + * + * Entries are flattened into the JSON string sent as + * `client_metadata["x-codex-turn-metadata"]` on ResponsesAPI HTTP and websocket requests. + * + * They are not sent as top-level ResponsesAPI `client_metadata` keys, and reserved keys + * such as `session_id`, `thread_id`, `turn_id`, and `window_id` cannot be overridden. */ responsesapiClientMetadata?: { [key in string]?: string } | null, /** @@ -23,7 +31,7 @@ responsesapiClientMetadata?: { [key in string]?: string } | null, */ additionalContext?: { [key in string]?: AdditionalContextEntry } | null, /** - * Optional turn-scoped environments. + * Optional environments for this turn and subsequent turns. * * Omitted uses the thread sticky environments. Empty disables * environment access for this turn. Non-empty selects the first @@ -36,10 +44,9 @@ environments?: Array | null, cwd?: string | null, /** * Replace the thread's runtime workspace roots for this turn and - * subsequent turns. Relative paths are resolved against the effective - * cwd for the turn. + * subsequent turns. Paths must be absolute. */ -runtimeWorkspaceRoots?: Array | null, +runtimeWorkspaceRoots?: Array | null, /** * Override the approval policy for this turn and subsequent turns. */ @@ -90,4 +97,8 @@ outputSchema?: JsonValue | null, * For `collaboration_mode.settings.developer_instructions`, `null` means * "use the built-in instructions for the selected mode". */ -collaborationMode?: CollaborationMode | null, }; +collaborationMode?: CollaborationMode | null, +/** + * @deprecated Ignored. Use `effort: "ultra"` for proactive multi-agent behavior. + */ +multiAgentMode?: MultiAgentMode | null, }; diff --git a/src/v2/TurnSteerParams.ts b/src/v2/TurnSteerParams.ts index c5ffae7..ae5da6f 100644 --- a/src/v2/TurnSteerParams.ts +++ b/src/v2/TurnSteerParams.ts @@ -4,9 +4,15 @@ import type { AdditionalContextEntry } from "./AdditionalContextEntry"; import type { UserInput } from "./UserInput"; -export type TurnSteerParams = { threadId: string, input: Array, +export type TurnSteerParams = { threadId: string, clientUserMessageId?: string | null, input: Array, /** - * Optional turn-scoped Responses API client metadata. + * Optional metadata to enrich Codex's ResponsesAPI turn metadata. + * + * Entries are flattened into the JSON string sent as + * `client_metadata["x-codex-turn-metadata"]` on ResponsesAPI HTTP and websocket requests. + * + * They are not sent as top-level ResponsesAPI `client_metadata` keys, and reserved keys + * such as `session_id`, `thread_id`, `turn_id`, and `window_id` cannot be overridden. */ responsesapiClientMetadata?: { [key in string]?: string } | null, /** diff --git a/src/v2/TurnsPage.ts b/src/v2/TurnsPage.ts new file mode 100644 index 0000000..e91865a --- /dev/null +++ b/src/v2/TurnsPage.ts @@ -0,0 +1,6 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { Turn } from "./Turn"; + +export type TurnsPage = { data: Array, nextCursor: string | null, backwardsCursor: string | null, }; diff --git a/src/v2/WorkspaceMessage.ts b/src/v2/WorkspaceMessage.ts new file mode 100644 index 0000000..b024ce1 --- /dev/null +++ b/src/v2/WorkspaceMessage.ts @@ -0,0 +1,14 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { WorkspaceMessageType } from "./WorkspaceMessageType"; + +export type WorkspaceMessage = { messageId: string, messageType: WorkspaceMessageType, messageBody: string, +/** + * Unix timestamp (in seconds) when the message was created. + */ +createdAt: number | null, +/** + * Unix timestamp (in seconds) when the message was archived. + */ +archivedAt: number | null, }; diff --git a/src/v2/WorkspaceMessageType.ts b/src/v2/WorkspaceMessageType.ts new file mode 100644 index 0000000..9d9438d --- /dev/null +++ b/src/v2/WorkspaceMessageType.ts @@ -0,0 +1,5 @@ +// GENERATED CODE! DO NOT MODIFY BY HAND! + +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type WorkspaceMessageType = "headline" | "announcement" | "unknown"; diff --git a/src/v2/index.ts b/src/v2/index.ts index 68f4bf0..f9c24fe 100644 --- a/src/v2/index.ts +++ b/src/v2/index.ts @@ -3,6 +3,8 @@ export type { Account } from "./Account"; export type { AccountLoginCompletedNotification } from "./AccountLoginCompletedNotification"; export type { AccountRateLimitsUpdatedNotification } from "./AccountRateLimitsUpdatedNotification"; +export type { AccountTokenUsageDailyBucket } from "./AccountTokenUsageDailyBucket"; +export type { AccountTokenUsageSummary } from "./AccountTokenUsageSummary"; export type { AccountUpdatedNotification } from "./AccountUpdatedNotification"; export type { ActivePermissionProfile } from "./ActivePermissionProfile"; export type { AddCreditsNudgeCreditType } from "./AddCreditsNudgeCreditType"; @@ -21,6 +23,8 @@ export type { AppMetadata } from "./AppMetadata"; export type { AppReview } from "./AppReview"; export type { AppScreenshot } from "./AppScreenshot"; export type { AppSummary } from "./AppSummary"; +export type { AppTemplateSummary } from "./AppTemplateSummary"; +export type { AppTemplateUnavailableReason } from "./AppTemplateUnavailableReason"; export type { AppToolApproval } from "./AppToolApproval"; export type { AppToolsConfig } from "./AppToolsConfig"; export type { ApprovalsReviewer } from "./ApprovalsReviewer"; @@ -36,6 +40,7 @@ export type { ByteRange } from "./ByteRange"; export type { CancelLoginAccountParams } from "./CancelLoginAccountParams"; export type { CancelLoginAccountResponse } from "./CancelLoginAccountResponse"; export type { CancelLoginAccountStatus } from "./CancelLoginAccountStatus"; +export type { CapabilityRootLocation } from "./CapabilityRootLocation"; export type { ChatgptAuthTokensRefreshParams } from "./ChatgptAuthTokensRefreshParams"; export type { ChatgptAuthTokensRefreshReason } from "./ChatgptAuthTokensRefreshReason"; export type { ChatgptAuthTokensRefreshResponse } from "./ChatgptAuthTokensRefreshResponse"; @@ -82,16 +87,27 @@ export type { ConfigWarningNotification } from "./ConfigWarningNotification"; export type { ConfigWriteResponse } from "./ConfigWriteResponse"; export type { ConfiguredHookHandler } from "./ConfiguredHookHandler"; export type { ConfiguredHookMatcherGroup } from "./ConfiguredHookMatcherGroup"; +export type { ConsumeAccountRateLimitResetCreditOutcome } from "./ConsumeAccountRateLimitResetCreditOutcome"; +export type { ConsumeAccountRateLimitResetCreditParams } from "./ConsumeAccountRateLimitResetCreditParams"; +export type { ConsumeAccountRateLimitResetCreditResponse } from "./ConsumeAccountRateLimitResetCreditResponse"; export type { ContextCompactedNotification } from "./ContextCompactedNotification"; export type { CreditsSnapshot } from "./CreditsSnapshot"; +export type { CurrentTimeReadParams } from "./CurrentTimeReadParams"; +export type { CurrentTimeReadResponse } from "./CurrentTimeReadResponse"; export type { DeprecationNoticeNotification } from "./DeprecationNoticeNotification"; export type { DynamicToolCallOutputContentItem } from "./DynamicToolCallOutputContentItem"; export type { DynamicToolCallParams } from "./DynamicToolCallParams"; export type { DynamicToolCallResponse } from "./DynamicToolCallResponse"; export type { DynamicToolCallStatus } from "./DynamicToolCallStatus"; +export type { DynamicToolFunctionSpec } from "./DynamicToolFunctionSpec"; +export type { DynamicToolNamespaceSpec } from "./DynamicToolNamespaceSpec"; +export type { DynamicToolNamespaceTool } from "./DynamicToolNamespaceTool"; export type { DynamicToolSpec } from "./DynamicToolSpec"; export type { EnvironmentAddParams } from "./EnvironmentAddParams"; export type { EnvironmentAddResponse } from "./EnvironmentAddResponse"; +export type { EnvironmentInfoParams } from "./EnvironmentInfoParams"; +export type { EnvironmentInfoResponse } from "./EnvironmentInfoResponse"; +export type { EnvironmentShellInfo } from "./EnvironmentShellInfo"; export type { ErrorNotification } from "./ErrorNotification"; export type { ExecPolicyAmendment } from "./ExecPolicyAmendment"; export type { ExperimentalFeature } from "./ExperimentalFeature"; @@ -103,8 +119,14 @@ export type { ExperimentalFeatureStage } from "./ExperimentalFeatureStage"; export type { ExternalAgentConfigDetectParams } from "./ExternalAgentConfigDetectParams"; export type { ExternalAgentConfigDetectResponse } from "./ExternalAgentConfigDetectResponse"; export type { ExternalAgentConfigImportCompletedNotification } from "./ExternalAgentConfigImportCompletedNotification"; +export type { ExternalAgentConfigImportHistoriesReadResponse } from "./ExternalAgentConfigImportHistoriesReadResponse"; +export type { ExternalAgentConfigImportHistory } from "./ExternalAgentConfigImportHistory"; +export type { ExternalAgentConfigImportItemTypeFailure } from "./ExternalAgentConfigImportItemTypeFailure"; +export type { ExternalAgentConfigImportItemTypeSuccess } from "./ExternalAgentConfigImportItemTypeSuccess"; export type { ExternalAgentConfigImportParams } from "./ExternalAgentConfigImportParams"; +export type { ExternalAgentConfigImportProgressNotification } from "./ExternalAgentConfigImportProgressNotification"; export type { ExternalAgentConfigImportResponse } from "./ExternalAgentConfigImportResponse"; +export type { ExternalAgentConfigImportTypeResult } from "./ExternalAgentConfigImportTypeResult"; export type { ExternalAgentConfigMigrationItem } from "./ExternalAgentConfigMigrationItem"; export type { ExternalAgentConfigMigrationItemType } from "./ExternalAgentConfigMigrationItemType"; export type { FeedbackUploadParams } from "./FeedbackUploadParams"; @@ -143,6 +165,8 @@ export type { FsWriteFileResponse } from "./FsWriteFileResponse"; export type { GetAccountParams } from "./GetAccountParams"; export type { GetAccountRateLimitsResponse } from "./GetAccountRateLimitsResponse"; export type { GetAccountResponse } from "./GetAccountResponse"; +export type { GetAccountTokenUsageResponse } from "./GetAccountTokenUsageResponse"; +export type { GetWorkspaceMessagesResponse } from "./GetWorkspaceMessagesResponse"; export type { GitInfo } from "./GitInfo"; export type { GrantedPermissionProfile } from "./GrantedPermissionProfile"; export type { GuardianApprovalReview } from "./GuardianApprovalReview"; @@ -179,6 +203,7 @@ export type { ListMcpServerStatusParams } from "./ListMcpServerStatusParams"; export type { ListMcpServerStatusResponse } from "./ListMcpServerStatusResponse"; export type { LoginAccountParams } from "./LoginAccountParams"; export type { LoginAccountResponse } from "./LoginAccountResponse"; +export type { LoginAppBrand } from "./LoginAppBrand"; export type { LogoutAccountResponse } from "./LogoutAccountResponse"; export type { ManagedHooksRequirements } from "./ManagedHooksRequirements"; export type { MarketplaceAddParams } from "./MarketplaceAddParams"; @@ -223,12 +248,14 @@ export type { McpServerOauthLoginCompletedNotification } from "./McpServerOauthL export type { McpServerOauthLoginParams } from "./McpServerOauthLoginParams"; export type { McpServerOauthLoginResponse } from "./McpServerOauthLoginResponse"; export type { McpServerRefreshResponse } from "./McpServerRefreshResponse"; +export type { McpServerStartupFailureReason } from "./McpServerStartupFailureReason"; export type { McpServerStartupState } from "./McpServerStartupState"; export type { McpServerStatus } from "./McpServerStatus"; export type { McpServerStatusDetail } from "./McpServerStatusDetail"; export type { McpServerStatusUpdatedNotification } from "./McpServerStatusUpdatedNotification"; export type { McpServerToolCallParams } from "./McpServerToolCallParams"; export type { McpServerToolCallResponse } from "./McpServerToolCallResponse"; +export type { McpToolCallAppContext } from "./McpToolCallAppContext"; export type { McpToolCallError } from "./McpToolCallError"; export type { McpToolCallProgressNotification } from "./McpToolCallProgressNotification"; export type { McpToolCallResult } from "./McpToolCallResult"; @@ -248,10 +275,12 @@ export type { ModelProviderCapabilitiesReadParams } from "./ModelProviderCapabil export type { ModelProviderCapabilitiesReadResponse } from "./ModelProviderCapabilitiesReadResponse"; export type { ModelRerouteReason } from "./ModelRerouteReason"; export type { ModelReroutedNotification } from "./ModelReroutedNotification"; +export type { ModelSafetyBufferingUpdatedNotification } from "./ModelSafetyBufferingUpdatedNotification"; export type { ModelServiceTier } from "./ModelServiceTier"; export type { ModelUpgradeInfo } from "./ModelUpgradeInfo"; export type { ModelVerification } from "./ModelVerification"; export type { ModelVerificationNotification } from "./ModelVerificationNotification"; +export type { ModelsRequirements } from "./ModelsRequirements"; export type { NetworkAccess } from "./NetworkAccess"; export type { NetworkApprovalContext } from "./NetworkApprovalContext"; export type { NetworkApprovalProtocol } from "./NetworkApprovalProtocol"; @@ -260,6 +289,7 @@ export type { NetworkPolicyAmendment } from "./NetworkPolicyAmendment"; export type { NetworkPolicyRuleAction } from "./NetworkPolicyRuleAction"; export type { NetworkRequirements } from "./NetworkRequirements"; export type { NetworkUnixSocketPermission } from "./NetworkUnixSocketPermission"; +export type { NewThreadModelDefaults } from "./NewThreadModelDefaults"; export type { NonSteerableTurnKind } from "./NonSteerableTurnKind"; export type { OverriddenMetadata } from "./OverriddenMetadata"; export type { PatchApplyStatus } from "./PatchApplyStatus"; @@ -277,6 +307,7 @@ export type { PluginDetail } from "./PluginDetail"; export type { PluginHookSummary } from "./PluginHookSummary"; export type { PluginInstallParams } from "./PluginInstallParams"; export type { PluginInstallPolicy } from "./PluginInstallPolicy"; +export type { PluginInstallPolicySource } from "./PluginInstallPolicySource"; export type { PluginInstallResponse } from "./PluginInstallResponse"; export type { PluginInstalledParams } from "./PluginInstalledParams"; export type { PluginInstalledResponse } from "./PluginInstalledResponse"; @@ -326,6 +357,10 @@ export type { ProcessTerminalSize } from "./ProcessTerminalSize"; export type { ProcessWriteStdinParams } from "./ProcessWriteStdinParams"; export type { ProcessWriteStdinResponse } from "./ProcessWriteStdinResponse"; export type { RateLimitReachedType } from "./RateLimitReachedType"; +export type { RateLimitResetCredit } from "./RateLimitResetCredit"; +export type { RateLimitResetCreditStatus } from "./RateLimitResetCreditStatus"; +export type { RateLimitResetCreditsSummary } from "./RateLimitResetCreditsSummary"; +export type { RateLimitResetType } from "./RateLimitResetType"; export type { RateLimitSnapshot } from "./RateLimitSnapshot"; export type { RateLimitWindow } from "./RateLimitWindow"; export type { RawResponseItemCompletedNotification } from "./RawResponseItemCompletedNotification"; @@ -333,9 +368,21 @@ export type { ReasoningEffortOption } from "./ReasoningEffortOption"; export type { ReasoningSummaryPartAddedNotification } from "./ReasoningSummaryPartAddedNotification"; export type { ReasoningSummaryTextDeltaNotification } from "./ReasoningSummaryTextDeltaNotification"; export type { ReasoningTextDeltaNotification } from "./ReasoningTextDeltaNotification"; +export type { RemoteControlClient } from "./RemoteControlClient"; +export type { RemoteControlClientsListOrder } from "./RemoteControlClientsListOrder"; +export type { RemoteControlClientsListParams } from "./RemoteControlClientsListParams"; +export type { RemoteControlClientsListResponse } from "./RemoteControlClientsListResponse"; +export type { RemoteControlClientsRevokeParams } from "./RemoteControlClientsRevokeParams"; +export type { RemoteControlClientsRevokeResponse } from "./RemoteControlClientsRevokeResponse"; export type { RemoteControlConnectionStatus } from "./RemoteControlConnectionStatus"; +export type { RemoteControlDisableParams } from "./RemoteControlDisableParams"; export type { RemoteControlDisableResponse } from "./RemoteControlDisableResponse"; +export type { RemoteControlEnableParams } from "./RemoteControlEnableParams"; export type { RemoteControlEnableResponse } from "./RemoteControlEnableResponse"; +export type { RemoteControlPairingStartParams } from "./RemoteControlPairingStartParams"; +export type { RemoteControlPairingStartResponse } from "./RemoteControlPairingStartResponse"; +export type { RemoteControlPairingStatusParams } from "./RemoteControlPairingStatusParams"; +export type { RemoteControlPairingStatusResponse } from "./RemoteControlPairingStatusResponse"; export type { RemoteControlStatusChangedNotification } from "./RemoteControlStatusChangedNotification"; export type { RemoteControlStatusReadResponse } from "./RemoteControlStatusReadResponse"; export type { RequestPermissionProfile } from "./RequestPermissionProfile"; @@ -347,6 +394,7 @@ export type { ReviewTarget } from "./ReviewTarget"; export type { SandboxMode } from "./SandboxMode"; export type { SandboxPolicy } from "./SandboxPolicy"; export type { SandboxWorkspaceWrite } from "./SandboxWorkspaceWrite"; +export type { SelectedCapabilityRoot } from "./SelectedCapabilityRoot"; export type { SendAddCreditsNudgeEmailParams } from "./SendAddCreditsNudgeEmailParams"; export type { SendAddCreditsNudgeEmailResponse } from "./SendAddCreditsNudgeEmailResponse"; export type { ServerRequestResolvedNotification } from "./ServerRequestResolvedNotification"; @@ -356,16 +404,21 @@ export type { SkillDependencies } from "./SkillDependencies"; export type { SkillErrorInfo } from "./SkillErrorInfo"; export type { SkillInterface } from "./SkillInterface"; export type { SkillMetadata } from "./SkillMetadata"; +export type { SkillMigration } from "./SkillMigration"; export type { SkillScope } from "./SkillScope"; export type { SkillSummary } from "./SkillSummary"; export type { SkillToolDependency } from "./SkillToolDependency"; export type { SkillsChangedNotification } from "./SkillsChangedNotification"; export type { SkillsConfigWriteParams } from "./SkillsConfigWriteParams"; export type { SkillsConfigWriteResponse } from "./SkillsConfigWriteResponse"; +export type { SkillsExtraRootsSetParams } from "./SkillsExtraRootsSetParams"; +export type { SkillsExtraRootsSetResponse } from "./SkillsExtraRootsSetResponse"; export type { SkillsListEntry } from "./SkillsListEntry"; export type { SkillsListParams } from "./SkillsListParams"; export type { SkillsListResponse } from "./SkillsListResponse"; export type { SortDirection } from "./SortDirection"; +export type { SpendControlLimitSnapshot } from "./SpendControlLimitSnapshot"; +export type { SubAgentActivityKind } from "./SubAgentActivityKind"; export type { SubagentMigration } from "./SubagentMigration"; export type { TerminalInteractionNotification } from "./TerminalInteractionNotification"; export type { TextElement } from "./TextElement"; @@ -378,13 +431,22 @@ export type { ThreadApproveGuardianDeniedActionResponse } from "./ThreadApproveG export type { ThreadArchiveParams } from "./ThreadArchiveParams"; export type { ThreadArchiveResponse } from "./ThreadArchiveResponse"; export type { ThreadArchivedNotification } from "./ThreadArchivedNotification"; +export type { ThreadBackgroundTerminal } from "./ThreadBackgroundTerminal"; export type { ThreadBackgroundTerminalsCleanParams } from "./ThreadBackgroundTerminalsCleanParams"; export type { ThreadBackgroundTerminalsCleanResponse } from "./ThreadBackgroundTerminalsCleanResponse"; +export type { ThreadBackgroundTerminalsListParams } from "./ThreadBackgroundTerminalsListParams"; +export type { ThreadBackgroundTerminalsListResponse } from "./ThreadBackgroundTerminalsListResponse"; +export type { ThreadBackgroundTerminalsTerminateParams } from "./ThreadBackgroundTerminalsTerminateParams"; +export type { ThreadBackgroundTerminalsTerminateResponse } from "./ThreadBackgroundTerminalsTerminateResponse"; export type { ThreadClosedNotification } from "./ThreadClosedNotification"; export type { ThreadCompactStartParams } from "./ThreadCompactStartParams"; export type { ThreadCompactStartResponse } from "./ThreadCompactStartResponse"; export type { ThreadDecrementElicitationParams } from "./ThreadDecrementElicitationParams"; export type { ThreadDecrementElicitationResponse } from "./ThreadDecrementElicitationResponse"; +export type { ThreadDeleteParams } from "./ThreadDeleteParams"; +export type { ThreadDeleteResponse } from "./ThreadDeleteResponse"; +export type { ThreadDeletedNotification } from "./ThreadDeletedNotification"; +export type { ThreadExtra } from "./ThreadExtra"; export type { ThreadForkParams } from "./ThreadForkParams"; export type { ThreadForkResponse } from "./ThreadForkResponse"; export type { ThreadGoal } from "./ThreadGoal"; @@ -397,11 +459,14 @@ export type { ThreadGoalSetParams } from "./ThreadGoalSetParams"; export type { ThreadGoalSetResponse } from "./ThreadGoalSetResponse"; export type { ThreadGoalStatus } from "./ThreadGoalStatus"; export type { ThreadGoalUpdatedNotification } from "./ThreadGoalUpdatedNotification"; +export type { ThreadHistoryMode } from "./ThreadHistoryMode"; export type { ThreadIncrementElicitationParams } from "./ThreadIncrementElicitationParams"; export type { ThreadIncrementElicitationResponse } from "./ThreadIncrementElicitationResponse"; export type { ThreadInjectItemsParams } from "./ThreadInjectItemsParams"; export type { ThreadInjectItemsResponse } from "./ThreadInjectItemsResponse"; export type { ThreadItem } from "./ThreadItem"; +export type { ThreadItemsListParams } from "./ThreadItemsListParams"; +export type { ThreadItemsListResponse } from "./ThreadItemsListResponse"; export type { ThreadListParams } from "./ThreadListParams"; export type { ThreadListResponse } from "./ThreadListResponse"; export type { ThreadLoadedListParams } from "./ThreadLoadedListParams"; @@ -416,6 +481,8 @@ export type { ThreadReadParams } from "./ThreadReadParams"; export type { ThreadReadResponse } from "./ThreadReadResponse"; export type { ThreadRealtimeAppendAudioParams } from "./ThreadRealtimeAppendAudioParams"; export type { ThreadRealtimeAppendAudioResponse } from "./ThreadRealtimeAppendAudioResponse"; +export type { ThreadRealtimeAppendSpeechParams } from "./ThreadRealtimeAppendSpeechParams"; +export type { ThreadRealtimeAppendSpeechResponse } from "./ThreadRealtimeAppendSpeechResponse"; export type { ThreadRealtimeAppendTextParams } from "./ThreadRealtimeAppendTextParams"; export type { ThreadRealtimeAppendTextResponse } from "./ThreadRealtimeAppendTextResponse"; export type { ThreadRealtimeAudioChunk } from "./ThreadRealtimeAudioChunk"; @@ -434,6 +501,7 @@ export type { ThreadRealtimeStopParams } from "./ThreadRealtimeStopParams"; export type { ThreadRealtimeStopResponse } from "./ThreadRealtimeStopResponse"; export type { ThreadRealtimeTranscriptDeltaNotification } from "./ThreadRealtimeTranscriptDeltaNotification"; export type { ThreadRealtimeTranscriptDoneNotification } from "./ThreadRealtimeTranscriptDoneNotification"; +export type { ThreadResumeInitialTurnsPageParams } from "./ThreadResumeInitialTurnsPageParams"; export type { ThreadResumeParams } from "./ThreadResumeParams"; export type { ThreadResumeResponse } from "./ThreadResumeResponse"; export type { ThreadRollbackParams } from "./ThreadRollbackParams"; @@ -460,8 +528,6 @@ export type { ThreadStatus } from "./ThreadStatus"; export type { ThreadStatusChangedNotification } from "./ThreadStatusChangedNotification"; export type { ThreadTokenUsage } from "./ThreadTokenUsage"; export type { ThreadTokenUsageUpdatedNotification } from "./ThreadTokenUsageUpdatedNotification"; -export type { ThreadTurnsItemsListParams } from "./ThreadTurnsItemsListParams"; -export type { ThreadTurnsItemsListResponse } from "./ThreadTurnsItemsListResponse"; export type { ThreadTurnsListParams } from "./ThreadTurnsListParams"; export type { ThreadTurnsListResponse } from "./ThreadTurnsListResponse"; export type { ThreadUnarchiveParams } from "./ThreadUnarchiveParams"; @@ -485,6 +551,7 @@ export type { TurnError } from "./TurnError"; export type { TurnInterruptParams } from "./TurnInterruptParams"; export type { TurnInterruptResponse } from "./TurnInterruptResponse"; export type { TurnItemsView } from "./TurnItemsView"; +export type { TurnModerationMetadataNotification } from "./TurnModerationMetadataNotification"; export type { TurnPlanStep } from "./TurnPlanStep"; export type { TurnPlanStepStatus } from "./TurnPlanStepStatus"; export type { TurnPlanUpdatedNotification } from "./TurnPlanUpdatedNotification"; @@ -494,6 +561,7 @@ export type { TurnStartedNotification } from "./TurnStartedNotification"; export type { TurnStatus } from "./TurnStatus"; export type { TurnSteerParams } from "./TurnSteerParams"; export type { TurnSteerResponse } from "./TurnSteerResponse"; +export type { TurnsPage } from "./TurnsPage"; export type { UserInput } from "./UserInput"; export type { WarningNotification } from "./WarningNotification"; export type { WebSearchAction } from "./WebSearchAction"; @@ -504,4 +572,6 @@ export type { WindowsSandboxSetupMode } from "./WindowsSandboxSetupMode"; export type { WindowsSandboxSetupStartParams } from "./WindowsSandboxSetupStartParams"; export type { WindowsSandboxSetupStartResponse } from "./WindowsSandboxSetupStartResponse"; export type { WindowsWorldWritableWarningNotification } from "./WindowsWorldWritableWarningNotification"; +export type { WorkspaceMessage } from "./WorkspaceMessage"; +export type { WorkspaceMessageType } from "./WorkspaceMessageType"; export type { WriteStatus } from "./WriteStatus";