diff --git a/CHANGELOG.md b/CHANGELOG.md index 76cec33..f8e6638 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,57 @@ 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.153.4 - 2026-09-06 + +Generated from exact released `codex-cli 0.153.4` with the experimental surface. +827 generated TypeScript files, up from 671 in 0.144.0. The client request union +adds 33 methods and the server notification union adds 14 methods; neither +union removes a method. + +### Added + +- `ServerNotificationEnvelope` with optional `emittedAtMs` (Unix milliseconds) + for server emission time; older servers may omit it. This is live notification + timing, not historical item timing. +- Server-managed thread queue add, update, delete, reorder, list, and start + RPCs, plus queue change notifications and `turn/settings/update`. +- Project CRUD, import, and move RPCs; thread section management; project and + section assignments on threads; thread revert and occurrence search. +- Experimental `thread/timeline/list`, combining ordinary items, realtime + items, and turn boundaries, plus backwards hydration cursors on resume. +- Agent-message delivery and asynchronous question metadata, a + `functionCallOutput` thread-item variant, and `toolOutput` on turn start. +- Audio and local-audio user input, realtime item lifecycle/transcript + notifications, and an `existingCall` realtime transport. +- Bedrock discovery/setup, provider auth recovery notifications, environment + status and connection notifications, and server diagnostics. +- MCP event streams, client extension declarations, expanded MCP metadata, + plugin search/reconciliation, app reads, and installed-app queries. +- Thread model/reasoning-effort/direct-input metadata, per-turn service tier, + fork-before-turn support, deferred fork goal continuation, model multi-agent + metadata, cache-write token accounting, and raw response usage notifications. + +### Changed / consumer migration + +- **`ThreadItemsListResponse.data` now contains `ThreadItemEntry` envelopes + (`{ turnId, item }`) instead of bare `ThreadItem` values.** Consumers must + unwrap `entry.item` and can use `entry.turnId` for attribution. +- `ToolRequestUserInputParams` adds required `isBlocking`; use it instead of + deprecated `autoResolutionMs` to decide whether a question blocks. +- Removed `AmazonBedrockCredentialSource`; the Bedrock account variant now + reports `usesCodexManagedCredentials` instead of `credentialSource`. +- `ReviewDecision` changes `"denied"` to `{ denied: { rejection: string } }` + and adds `"approved_mcp_policy_amendment"`. +- Many response types add required nullable fields, including `Thread`, + `Model`, agent messages, and resume responses. Update typed fixtures and + exhaustive union handling; newer declarations do not upgrade older servers. +- Full-history hydration is deprecated for paginated threads; prefer metadata + reads and `thread/turns/list` / `thread/items/list` pagination. +- **Historical per-item timestamps are still absent**, including item-list + envelopes and ordinary timeline entries. Preserve known live lifecycle times + and leave unknown historical times absent. See the README for the upstream + investigation and proposal. + ## 0.144.0 - 2026-07-11 Generated from `codex-cli 0.144.0`. diff --git a/README.md b/README.md index 41a9d6d..f1b07e5 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.144.0` was generated by `codex-cli -0.144.0`. Provenance is also recorded in `package.json`: +So `@pwrdrvr/codex-app-server-protocol@0.153.4` was generated by `codex-cli +0.153.4`. Provenance is also recorded in `package.json`: ```jsonc { - "version": "0.144.0", - "codexCliVersion": "0.144.0", // the codex-cli that generated src/ + "version": "0.153.4", + "codexCliVersion": "0.153.4", // 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.144.0`** (671 generated `.ts` files; +Current generated source: **`codex-cli 0.153.4`** (827 generated `.ts` files; v1 surface in `src/`, v2 surface in `src/v2/`). ## Install @@ -103,6 +103,103 @@ The Rust source for the protocol lives in the Codex repo under `codex-rs/app-server/`. The generator emits one TS file per Rust type, plus barrel `index.ts` files. +## Historical item timing: upstream gap and proposal + +Investigated **2026-09-06** against the latest stable +[Codex release, `0.153.4`](https://github.com/openai/codex/releases/tag/rust-v0.153.4) +(published September 4; commit `3d2ee51ca2d5db578f328aa75e20aa22c0197c9a`). +It does **not** expose historical per-item timestamps for ordinary messages, +plans, or activities. This package mirrors **0.153.4** for its other protocol changes; this release +does not solve historical item timing. Type declarations cannot make an older +or newer server send additional data. + +| Wire surface in 0.153.4 | Timing available | +|---|---| +| `thread/read` → `thread.turns[].items[]` | Bare `ThreadItem`; no general item timestamp | +| `thread/turns/list` → `data[].items[]` | Bare `ThreadItem`; no general item timestamp | +| `thread/items/list` → `data[]` | `ThreadItemEntry` contains only `turnId` and `item` | +| Experimental `thread/timeline/list` → ordinary `item` entry | `position`, `turnId`, `item`; position is ordering, not time | +| `Turn` and timeline turn boundaries | `startedAt` / `completedAt` in Unix **seconds**, `durationMs` in milliseconds | +| Live notification envelope | Optional `emittedAtMs` in Unix **milliseconds**; server emission time | +| Live `item/started` notification | `startedAtMs` in Unix **milliseconds** | +| Live `item/completed` notification | `completedAtMs` in Unix **milliseconds** | + +These findings come from the released +[Rust history envelopes](https://github.com/openai/codex/blob/rust-v0.153.4/codex-rs/app-server-protocol/src/protocol/v2/thread.rs#L1743), +[generated Turn](https://github.com/openai/codex/blob/rust-v0.153.4/codex-rs/app-server-protocol/schema/typescript/v2/Turn.ts), +and [generated ThreadItem](https://github.com/openai/codex/blob/rust-v0.153.4/codex-rs/app-server-protocol/schema/typescript/v2/ThreadItem.ts). +The six relevant generated definitions (`ThreadItem`, `ThreadItemEntry`, +`Turn`, and the three read/list responses) were also identical on upstream +`main` at `3cd6004dc43c96c38946d9697a7cf72af1562563`. +Item-specific tool durations are not general message creation timestamps. + +### Where upstream loses the information + +- The [history projection](https://github.com/openai/codex/blob/rust-v0.153.4/codex-rs/app-server-protocol/src/protocol/thread_history_projection.rs#L70) + carries optional lifecycle start and completion times from persisted item + completion events into `ThreadHistoryItemChange`. +- The [item materializer](https://github.com/openai/codex/blob/rust-v0.153.4/codex-rs/thread-store/src/local/thread_history.rs#L430) + uses lifecycle start, or a persisted record timestamp fallback, as + `created_at_ms`. It preserves the first creation value when updating an item. + The [fallback source](https://github.com/openai/codex/blob/rust-v0.153.4/codex-rs/thread-store/src/local/thread_history_materialization.rs#L220) + is the record timestamp, not a guaranteed lifecycle start. +- [StoredThreadItem](https://github.com/openai/codex/blob/rust-v0.153.4/codex-rs/thread-store/src/types.rs#L491) + exposes `created_at_ms` internally, but no separate lifecycle start/completion + fields. The [items response conversion](https://github.com/openai/codex/blob/rust-v0.153.4/codex-rs/app-server/src/request_processors/thread_processor.rs#L3427) + retains only `turn_id` and deserialized `item_json`. +- The [stored-turn conversion](https://github.com/openai/codex/blob/rust-v0.153.4/codex-rs/app-server/src/request_processors/thread_processor.rs#L5687) + likewise deserializes items without their metadata. The legacy + [history builder](https://github.com/openai/codex/blob/rust-v0.153.4/codex-rs/app-server-protocol/src/protocol/thread_history.rs#L1450) + records changed items with unknown lifecycle times. Adding a response field + alone would not repair all history paths. + +Only public upstream source code and repository types were inspected; +no local Codex rollout, session, or SQLite data was accessed. + +### Proposed upstream change (not an existing API) + +Add a shared `ThreadItemTiming` type with nullable `startedAtMs` and +`completedAtMs`, explicitly defined as lifecycle times in Unix milliseconds. +Add optional `timing` to `ThreadItemEntry` and ordinary timeline item entries. +To preserve the existing `Turn.items: ThreadItem[]` shape, add an optional +`Turn.itemTimings` map keyed by item ID, populated for the returned items in +both full and summary views. Omit it for `notLoaded` views. Use the same +metadata for read, resume, and live turn snapshots. + +Carry both lifecycle fields through the history projection, durable item +representation, store reads, and API conversions. Keep projection creation +time separate: if exposed as `createdAtMs`, document its fallback semantics +and provenance instead of labeling it a lifecycle start. Legacy replay must +associate available lifecycle events with the correct stable item IDs; +missing evidence remains null. Never substitute turn start, replay time, or +an ordinal. Any migration/backfill belongs inside Codex, through its supported +history handling, rather than requiring consumers to access its storage. + +Upstream acceptance tests should cover two commentary items emitted hours +apart within one turn; cold read and resume; full/summary turn pagination; +item and timeline pagination; partial and legacy timing; duplicate updates; +stable IDs and timestamps across restart; rollback/fork handling; and seconds +versus milliseconds. Verify serialized responses and generated schemas, +including preservation of a known start when only a completion update arrives. +Release Codex with those changes before regenerating this package from that +exact released binary and following [PUBLISHING.md](PUBLISHING.md). + +### Consumer integration now + +Upgrading to 0.153.4 does not supply missing historical times. Capture live +`startedAtMs` and +`completedAtMs` by `(threadId, turnId, item.id)` and preserve those known values +when history refreshes. Treat locally observed receipt time as separate from +server lifecycle time. For cold history with no known item time, leave the +timestamp absent; use turn timing only to label the turn. Do not derive item +time from UUIDs, cursors, timeline positions, or turn boundaries. + +After an upstream release implements the proposal, update the server binary +and matching type package together, consume the actual released field names, +and tolerate absent metadata from older servers. `thread/items/list` can +return JSON-RPC `-32601` for unsupported stores; keep a history fallback that +preserves unknown timestamps. No upstream issue or comment has been submitted. + ## License MIT © PwrDrvr LLC. The generated type definitions describe OpenAI's diff --git a/package.json b/package.json index 3810078..623acc2 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "@pwrdrvr/codex-app-server-protocol", - "version": "0.144.0", + "version": "0.153.4", "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.144.0", + "codexCliVersion": "0.153.4", "codexExperimental": true, "keywords": [ "codex", diff --git a/src/AuthMode.ts b/src/AuthMode.ts index b248876..b346c72 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" | "headers" | "agentIdentity" | "personalAccessToken" | "bedrockApiKey"; +export type AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens" | "headers" | "agentIdentity" | "personalAccessToken" | "bedrockApiKey" | "bedrockAccessKeys"; diff --git a/src/ClientRequest.ts b/src/ClientRequest.ts index 7695c5a..ab9ea65 100644 --- a/src/ClientRequest.ts +++ b/src/ClientRequest.ts @@ -10,7 +10,11 @@ import type { GetConversationSummaryParams } from "./GetConversationSummaryParam import type { GitDiffToRemoteParams } from "./GitDiffToRemoteParams"; import type { InitializeParams } from "./InitializeParams"; import type { RequestId } from "./RequestId"; +import type { AppsInstalledParams } from "./v2/AppsInstalledParams"; import type { AppsListParams } from "./v2/AppsListParams"; +import type { AppsReadParams } from "./v2/AppsReadParams"; +import type { BedrockDiscoverParams } from "./v2/BedrockDiscoverParams"; +import type { BedrockSetupParams } from "./v2/BedrockSetupParams"; import type { CancelLoginAccountParams } from "./v2/CancelLoginAccountParams"; import type { CollaborationModeListParams } from "./v2/CollaborationModeListParams"; import type { CommandExecParams } from "./v2/CommandExecParams"; @@ -23,9 +27,11 @@ 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 { EnvironmentStatusParams } from "./v2/EnvironmentStatusParams"; import type { ExperimentalFeatureEnablementSetParams } from "./v2/ExperimentalFeatureEnablementSetParams"; import type { ExperimentalFeatureListParams } from "./v2/ExperimentalFeatureListParams"; import type { ExternalAgentConfigDetectParams } from "./v2/ExternalAgentConfigDetectParams"; +import type { ExternalAgentConfigImportHistoryRecordParams } from "./v2/ExternalAgentConfigImportHistoryRecordParams"; import type { ExternalAgentConfigImportParams } from "./v2/ExternalAgentConfigImportParams"; import type { FeedbackUploadParams } from "./v2/FeedbackUploadParams"; import type { FsCopyParams } from "./v2/FsCopyParams"; @@ -38,6 +44,7 @@ import type { FsUnwatchParams } from "./v2/FsUnwatchParams"; import type { FsWatchParams } from "./v2/FsWatchParams"; import type { FsWriteFileParams } from "./v2/FsWriteFileParams"; import type { GetAccountParams } from "./v2/GetAccountParams"; +import type { GetAccountTokenUsageParams } from "./v2/GetAccountTokenUsageParams"; import type { HooksListParams } from "./v2/HooksListParams"; import type { ListMcpServerStatusParams } from "./v2/ListMcpServerStatusParams"; import type { LoginAccountParams } from "./v2/LoginAccountParams"; @@ -45,6 +52,8 @@ import type { MarketplaceAddParams } from "./v2/MarketplaceAddParams"; import type { MarketplaceRemoveParams } from "./v2/MarketplaceRemoveParams"; import type { MarketplaceUpgradeParams } from "./v2/MarketplaceUpgradeParams"; import type { McpResourceReadParams } from "./v2/McpResourceReadParams"; +import type { McpServerEventStreamStartParams } from "./v2/McpServerEventStreamStartParams"; +import type { McpServerEventStreamStopParams } from "./v2/McpServerEventStreamStopParams"; import type { McpServerOauthLoginParams } from "./v2/McpServerOauthLoginParams"; import type { McpServerToolCallParams } from "./v2/McpServerToolCallParams"; import type { MockExperimentalMethodParams } from "./v2/MockExperimentalMethodParams"; @@ -55,6 +64,8 @@ import type { PluginInstallParams } from "./v2/PluginInstallParams"; import type { PluginInstalledParams } from "./v2/PluginInstalledParams"; import type { PluginListParams } from "./v2/PluginListParams"; import type { PluginReadParams } from "./v2/PluginReadParams"; +import type { PluginReconcileParams } from "./v2/PluginReconcileParams"; +import type { PluginSearchParams } from "./v2/PluginSearchParams"; import type { PluginShareCheckoutParams } from "./v2/PluginShareCheckoutParams"; import type { PluginShareDeleteParams } from "./v2/PluginShareDeleteParams"; import type { PluginShareListParams } from "./v2/PluginShareListParams"; @@ -66,6 +77,13 @@ 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 { ProjectCreateParams } from "./v2/ProjectCreateParams"; +import type { ProjectDeleteParams } from "./v2/ProjectDeleteParams"; +import type { ProjectImportParams } from "./v2/ProjectImportParams"; +import type { ProjectListParams } from "./v2/ProjectListParams"; +import type { ProjectMoveParams } from "./v2/ProjectMoveParams"; +import type { ProjectReadParams } from "./v2/ProjectReadParams"; +import type { ProjectUpdateParams } from "./v2/ProjectUpdateParams"; import type { RemoteControlClientsListParams } from "./v2/RemoteControlClientsListParams"; import type { RemoteControlClientsRevokeParams } from "./v2/RemoteControlClientsRevokeParams"; import type { RemoteControlDisableParams } from "./v2/RemoteControlDisableParams"; @@ -74,6 +92,7 @@ import type { RemoteControlPairingStartParams } from "./v2/RemoteControlPairingS import type { RemoteControlPairingStatusParams } from "./v2/RemoteControlPairingStatusParams"; import type { ReviewStartParams } from "./v2/ReviewStartParams"; import type { SendAddCreditsNudgeEmailParams } from "./v2/SendAddCreditsNudgeEmailParams"; +import type { ServerDiagnosticsParams } from "./v2/ServerDiagnosticsParams"; import type { SkillsConfigWriteParams } from "./v2/SkillsConfigWriteParams"; import type { SkillsExtraRootsSetParams } from "./v2/SkillsExtraRootsSetParams"; import type { SkillsListParams } from "./v2/SkillsListParams"; @@ -96,6 +115,12 @@ 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 { ThreadQueueAddParams } from "./v2/ThreadQueueAddParams"; +import type { ThreadQueueDeleteParams } from "./v2/ThreadQueueDeleteParams"; +import type { ThreadQueueListParams } from "./v2/ThreadQueueListParams"; +import type { ThreadQueueReorderParams } from "./v2/ThreadQueueReorderParams"; +import type { ThreadQueueStartParams } from "./v2/ThreadQueueStartParams"; +import type { ThreadQueueUpdateParams } from "./v2/ThreadQueueUpdateParams"; import type { ThreadReadParams } from "./v2/ThreadReadParams"; import type { ThreadRealtimeAppendAudioParams } from "./v2/ThreadRealtimeAppendAudioParams"; import type { ThreadRealtimeAppendSpeechParams } from "./v2/ThreadRealtimeAppendSpeechParams"; @@ -104,16 +129,25 @@ import type { ThreadRealtimeListVoicesParams } from "./v2/ThreadRealtimeListVoic import type { ThreadRealtimeStartParams } from "./v2/ThreadRealtimeStartParams"; import type { ThreadRealtimeStopParams } from "./v2/ThreadRealtimeStopParams"; import type { ThreadResumeParams } from "./v2/ThreadResumeParams"; +import type { ThreadRevertParams } from "./v2/ThreadRevertParams"; import type { ThreadRollbackParams } from "./v2/ThreadRollbackParams"; +import type { ThreadSearchOccurrencesParams } from "./v2/ThreadSearchOccurrencesParams"; import type { ThreadSearchParams } from "./v2/ThreadSearchParams"; +import type { ThreadSectionCreateParams } from "./v2/ThreadSectionCreateParams"; +import type { ThreadSectionDeleteParams } from "./v2/ThreadSectionDeleteParams"; +import type { ThreadSectionListParams } from "./v2/ThreadSectionListParams"; +import type { ThreadSectionMoveParams } from "./v2/ThreadSectionMoveParams"; +import type { ThreadSectionUpdateParams } from "./v2/ThreadSectionUpdateParams"; 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 { ThreadTimelineListParams } from "./v2/ThreadTimelineListParams"; import type { ThreadTurnsListParams } from "./v2/ThreadTurnsListParams"; import type { ThreadUnarchiveParams } from "./v2/ThreadUnarchiveParams"; import type { ThreadUnsubscribeParams } from "./v2/ThreadUnsubscribeParams"; import type { TurnInterruptParams } from "./v2/TurnInterruptParams"; +import type { TurnSettingsUpdateParams } from "./v2/TurnSettingsUpdateParams"; import type { TurnStartParams } from "./v2/TurnStartParams"; import type { TurnSteerParams } from "./v2/TurnSteerParams"; import type { WindowsSandboxSetupStartParams } from "./v2/WindowsSandboxSetupStartParams"; @@ -121,4 +155,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/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, }; +export type ClientRequest = { "method": "initialize", id: RequestId, params: InitializeParams, } | { "method": "server/diagnostics", id: RequestId, params: ServerDiagnosticsParams, } | { "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/queue/add", id: RequestId, params: ThreadQueueAddParams, } | { "method": "thread/queue/list", id: RequestId, params: ThreadQueueListParams, } | { "method": "thread/queue/update", id: RequestId, params: ThreadQueueUpdateParams, } | { "method": "thread/queue/delete", id: RequestId, params: ThreadQueueDeleteParams, } | { "method": "thread/queue/reorder", id: RequestId, params: ThreadQueueReorderParams, } | { "method": "thread/queue/start", id: RequestId, params: ThreadQueueStartParams, } | { "method": "thread/metadata/update", id: RequestId, params: ThreadMetadataUpdateParams, } | { "method": "thread/section/move", id: RequestId, params: ThreadSectionMoveParams, } | { "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/revert", id: RequestId, params: ThreadRevertParams, } | { "method": "thread/list", id: RequestId, params: ThreadListParams, } | { "method": "project/list", id: RequestId, params: ProjectListParams, } | { "method": "project/read", id: RequestId, params: ProjectReadParams, } | { "method": "project/create", id: RequestId, params: ProjectCreateParams, } | { "method": "project/import", id: RequestId, params: ProjectImportParams, } | { "method": "project/update", id: RequestId, params: ProjectUpdateParams, } | { "method": "project/move", id: RequestId, params: ProjectMoveParams, } | { "method": "project/delete", id: RequestId, params: ProjectDeleteParams, } | { "method": "threadSection/list", id: RequestId, params: ThreadSectionListParams, } | { "method": "threadSection/create", id: RequestId, params: ThreadSectionCreateParams, } | { "method": "threadSection/update", id: RequestId, params: ThreadSectionUpdateParams, } | { "method": "threadSection/delete", id: RequestId, params: ThreadSectionDeleteParams, } | { "method": "thread/search", id: RequestId, params: ThreadSearchParams, } | { "method": "thread/searchOccurrences", id: RequestId, params: ThreadSearchOccurrencesParams, } | { "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/search", id: RequestId, params: PluginSearchParams, } | { "method": "plugin/installed", id: RequestId, params: PluginInstalledParams, } | { "method": "plugin/reconcile", id: RequestId, params: PluginReconcileParams, } | { "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/read", id: RequestId, params: AppsReadParams, } | { "method": "app/list", id: RequestId, params: AppsListParams, } | { "method": "app/installed", id: RequestId, params: AppsInstalledParams, } | { "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/settings/update", id: RequestId, params: TurnSettingsUpdateParams, } | { "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/timeline/list", id: RequestId, params: ThreadTimelineListParams, } | { "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": "environment/status", id: RequestId, params: EnvironmentStatusParams, } | { "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/event/stream/start", id: RequestId, params: McpServerEventStreamStartParams, } | { "method": "mcpServer/event/stream/stop", id: RequestId, params: McpServerEventStreamStopParams, } | { "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/bedrock/discover", id: RequestId, params: BedrockDiscoverParams, } | { "method": "account/bedrock/setup", id: RequestId, params: BedrockSetupParams, } | { "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?: GetAccountTokenUsageParams | 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/recordHistory", id: RequestId, params: ExternalAgentConfigImportHistoryRecordParams, } | { "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/CodexResponseHandoffMode.ts b/src/CodexResponseHandoffMode.ts new file mode 100644 index 0000000..3eb90da --- /dev/null +++ b/src/CodexResponseHandoffMode.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 CodexResponseHandoffMode = "thinking" | "commentary" | "bemTags"; diff --git a/src/ContentItem.ts b/src/ContentItem.ts index 21cd8d0..9e53b5f 100644 --- a/src/ContentItem.ts +++ b/src/ContentItem.ts @@ -3,4 +3,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ImageDetail } from "./ImageDetail"; -export type ContentItem = { "type": "input_text", text: string, } | { "type": "input_image", image_url: string, detail?: ImageDetail, } | { "type": "output_text", text: string, }; +export type ContentItem = { "type": "input_text", text: string, } | { "type": "input_image", image_url: string, detail?: ImageDetail, } | { "type": "input_audio", audio_url: string, } | { "type": "output_text", text: string, }; diff --git a/src/FunctionCallOutputContentItem.ts b/src/FunctionCallOutputContentItem.ts index cd18908..6c2ab2a 100644 --- a/src/FunctionCallOutputContentItem.ts +++ b/src/FunctionCallOutputContentItem.ts @@ -7,4 +7,4 @@ import type { ImageDetail } from "./ImageDetail"; * Responses API compatible content items that can be returned by a tool call. * This is a subset of ContentItem with the types we support as function call outputs. */ -export type FunctionCallOutputContentItem = { "type": "input_text", text: string, } | { "type": "input_image", image_url: string, detail?: ImageDetail, } | { "type": "encrypted_content", encrypted_content: string, }; +export type FunctionCallOutputContentItem = { "type": "input_text", text: string, } | { "type": "input_image", image_url: string, detail?: ImageDetail, } | { "type": "input_audio", audio_url: string, } | { "type": "encrypted_content", encrypted_content: string, }; diff --git a/src/ImageGenerationFailure.ts b/src/ImageGenerationFailure.ts new file mode 100644 index 0000000..00cd17d --- /dev/null +++ b/src/ImageGenerationFailure.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 ImageGenerationFailure = { "type": "usageLimitExceeded", limitId: string, resetsAt: number | null, }; diff --git a/src/ImageGenerationItem.ts b/src/ImageGenerationItem.ts index 26cd628..645d275 100644 --- a/src/ImageGenerationItem.ts +++ b/src/ImageGenerationItem.ts @@ -2,5 +2,6 @@ // 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 { ImageGenerationFailure } from "./ImageGenerationFailure"; -export type ImageGenerationItem = { id: string, status: string, revisedPrompt: string | null, result: string, savedPath?: AbsolutePathBuf, }; +export type ImageGenerationItem = { id: string, status: string, revisedPrompt: string | null, result: string, transparentBackground?: boolean, failure: ImageGenerationFailure | null, savedPath?: AbsolutePathBuf, }; diff --git a/src/InitializeCapabilities.ts b/src/InitializeCapabilities.ts index dcc4dff..6b4afd1 100644 --- a/src/InitializeCapabilities.ts +++ b/src/InitializeCapabilities.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"; /** * Client-declared capabilities negotiated during initialize. @@ -15,11 +16,17 @@ experimentalApi: boolean, */ requestAttestation: boolean, /** - * Allow downstream MCP servers to request OpenAI extended form elicitations. + * Legacy opt-in for the `openai/form` MCP extension. + * + * New clients should declare `openai/form` in [`Self::extensions`]. */ mcpServerOpenaiFormElicitation?: boolean, /** * Exact notification method names that should be suppressed for this * connection (for example `thread/started`). */ -optOutNotificationMethods?: Array | null, }; +optOutNotificationMethods?: Array | null, +/** + * MCP extension settings declared by the app-server client. + */ +extensions?: { [key in string]?: JsonValue } | null, }; diff --git a/src/InputModality.ts b/src/InputModality.ts index 7366193..40d598d 100644 --- a/src/InputModality.ts +++ b/src/InputModality.ts @@ -5,4 +5,4 @@ /** * Canonical user-input modality tags advertised by a model. */ -export type InputModality = "text" | "image"; +export type InputModality = "text" | "image" | "audio"; diff --git a/src/InternalSessionSource.ts b/src/InternalSessionSource.ts index 47417c5..d847e34 100644 --- a/src/InternalSessionSource.ts +++ b/src/InternalSessionSource.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 InternalSessionSource = "memory_consolidation"; +export type InternalSessionSource = "memory_consolidation" | "guardian"; diff --git a/src/LegacyAppPathString.ts b/src/LegacyAppPathString.ts index e39784a..5c0a1b1 100644 --- a/src/LegacyAppPathString.ts +++ b/src/LegacyAppPathString.ts @@ -16,11 +16,12 @@ * 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. + * Deserialization and [`Self::from_string`] accept any UTF-8 string without + * interpreting or validating it. Use [`Self::from_string`] when a caller + * already owns legacy app-server path text and needs to preserve its wire + * spelling; use [`Self::from_path`], [`Self::from_abs_path`], or + * [`Self::from_path_uri`] when converting an actual path value. 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/PathUri.ts b/src/PathUri.ts index 5b32b95..ba11296 100644 --- a/src/PathUri.ts +++ b/src/PathUri.ts @@ -12,14 +12,16 @@ * 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. + * of the current host, except that Windows drive letters are canonicalized to + * uppercase. 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. + * Windows drive or UNC roots from path text. Windows path equality and hashing + * ignore ASCII case, while POSIX paths remain case-sensitive. Native path + * normalization, filesystem aliases, symlinks, 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 diff --git a/src/PlanType.ts b/src/PlanType.ts index 4489146..3f27f24 100644 --- a/src/PlanType.ts +++ b/src/PlanType.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 PlanType = "free" | "go" | "plus" | "pro" | "prolite" | "team" | "self_serve_business_usage_based" | "business" | "enterprise_cbp_usage_based" | "enterprise" | "edu" | "unknown"; +export type PlanType = "free" | "go" | "plus" | "pro" | "prolite" | "team" | "self_serve_business_prolite" | "self_serve_business_usage_based" | "business" | "ent26" | "enterprise_cbp_automation" | "enterprise_cbp_usage_based" | "enterprise" | "edu" | "edu_plus" | "edu_pro" | "unknown"; diff --git a/src/RealtimeConversationVersion.ts b/src/RealtimeConversationVersion.ts index cedc4bb..81b8d31 100644 --- a/src/RealtimeConversationVersion.ts +++ b/src/RealtimeConversationVersion.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 RealtimeConversationVersion = "v1" | "v2"; +export type RealtimeConversationVersion = "v1" | "v2" | "v3"; diff --git a/src/ResponseItem.ts b/src/ResponseItem.ts index 769b1b0..178cd65 100644 --- a/src/ResponseItem.ts +++ b/src/ResponseItem.ts @@ -10,14 +10,15 @@ import type { LocalShellStatus } from "./LocalShellStatus"; import type { MessagePhase } from "./MessagePhase"; import type { ReasoningItemContent } from "./ReasoningItemContent"; import type { ReasoningItemReasoningSummary } from "./ReasoningItemReasoningSummary"; +import type { ResponseItemId } from "./ResponseItemId"; import type { WebSearchAction } from "./WebSearchAction"; -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", +export type ResponseItem = { "type": "message", id?: ResponseItemId, role: string, content: Array, phase?: MessagePhase, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "agent_message", id?: ResponseItemId, author: string, recipient: string, content: Array, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "reasoning", id?: ResponseItemId, 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, +id?: ResponseItemId, /** * Set when using the Responses API. */ -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" }; +call_id: string | null, status: LocalShellStatus, action: LocalShellAction, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "function_call", id?: ResponseItemId, name: string, namespace?: string, arguments: string, encrypted_function_args?: Array, call_id: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "tool_search_call", id?: ResponseItemId, call_id: string | null, status?: string, execution: string, arguments: unknown, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "function_call_output", id?: ResponseItemId, call_id?: string, name?: string, namespace?: string, output: FunctionCallOutputBody, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "custom_tool_call", id?: ResponseItemId, status?: string, call_id: string, name: string, namespace?: string, input: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "custom_tool_call_output", id?: ResponseItemId, call_id: string, name?: string, output: FunctionCallOutputBody, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "tool_search_output", id?: ResponseItemId, call_id: string | null, status: string, execution: string, tools: unknown[], internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "web_search_call", id?: ResponseItemId, status?: string, action?: WebSearchAction, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "image_generation_call", id?: ResponseItemId, status: string, revised_prompt?: string, result: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "compaction", id?: ResponseItemId, encrypted_content: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "compaction_trigger", } | { "type": "context_compaction", id?: ResponseItemId, encrypted_content?: string, internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough, } | { "type": "other" }; diff --git a/src/ResponseItemId.ts b/src/ResponseItemId.ts new file mode 100644 index 0000000..c4f17ec --- /dev/null +++ b/src/ResponseItemId.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. + +/** + * A Responses API item ID. New IDs require an explicit prefix; deserialization + * remains permissive so legacy rollouts can still be read. + */ +export type ResponseItemId = string; diff --git a/src/ReviewDecision.ts b/src/ReviewDecision.ts index 109f729..e2a499f 100644 --- a/src/ReviewDecision.ts +++ b/src/ReviewDecision.ts @@ -7,4 +7,4 @@ import type { NetworkPolicyAmendment } from "./NetworkPolicyAmendment"; /** * User's decision in response to an ExecApprovalRequest. */ -export type ReviewDecision = "approved" | { "approved_execpolicy_amendment": { proposed_execpolicy_amendment: ExecPolicyAmendment, } } | "approved_for_session" | { "network_policy_amendment": { network_policy_amendment: NetworkPolicyAmendment, } } | "denied" | "timed_out" | "abort"; +export type ReviewDecision = "approved" | { "approved_execpolicy_amendment": { proposed_execpolicy_amendment: ExecPolicyAmendment, } } | "approved_for_session" | "approved_mcp_policy_amendment" | { "network_policy_amendment": { network_policy_amendment: NetworkPolicyAmendment, } } | { "denied": { rejection: string, } } | "timed_out" | "abort"; diff --git a/src/ServerNotification.ts b/src/ServerNotification.ts index f3f828b..c65fccb 100644 --- a/src/ServerNotification.ts +++ b/src/ServerNotification.ts @@ -8,11 +8,13 @@ import type { AccountRateLimitsUpdatedNotification } from "./v2/AccountRateLimit import type { AccountUpdatedNotification } from "./v2/AccountUpdatedNotification"; import type { AgentMessageDeltaNotification } from "./v2/AgentMessageDeltaNotification"; import type { AppListUpdatedNotification } from "./v2/AppListUpdatedNotification"; +import type { AuthRecoveryNotification } from "./v2/AuthRecoveryNotification"; import type { CommandExecOutputDeltaNotification } from "./v2/CommandExecOutputDeltaNotification"; import type { CommandExecutionOutputDeltaNotification } from "./v2/CommandExecutionOutputDeltaNotification"; import type { ConfigWarningNotification } from "./v2/ConfigWarningNotification"; import type { ContextCompactedNotification } from "./v2/ContextCompactedNotification"; import type { DeprecationNoticeNotification } from "./v2/DeprecationNoticeNotification"; +import type { EnvironmentConnectionNotification } from "./v2/EnvironmentConnectionNotification"; import type { ErrorNotification } from "./v2/ErrorNotification"; import type { ExternalAgentConfigImportCompletedNotification } from "./v2/ExternalAgentConfigImportCompletedNotification"; import type { ExternalAgentConfigImportProgressNotification } from "./v2/ExternalAgentConfigImportProgressNotification"; @@ -26,6 +28,7 @@ import type { ItemCompletedNotification } from "./v2/ItemCompletedNotification"; import type { ItemGuardianApprovalReviewCompletedNotification } from "./v2/ItemGuardianApprovalReviewCompletedNotification"; import type { ItemGuardianApprovalReviewStartedNotification } from "./v2/ItemGuardianApprovalReviewStartedNotification"; import type { ItemStartedNotification } from "./v2/ItemStartedNotification"; +import type { McpServerEventStreamNotification } from "./v2/McpServerEventStreamNotification"; import type { McpServerOauthLoginCompletedNotification } from "./v2/McpServerOauthLoginCompletedNotification"; import type { McpServerStatusUpdatedNotification } from "./v2/McpServerStatusUpdatedNotification"; import type { McpToolCallProgressNotification } from "./v2/McpToolCallProgressNotification"; @@ -35,6 +38,8 @@ import type { ModelVerificationNotification } from "./v2/ModelVerificationNotifi import type { PlanDeltaNotification } from "./v2/PlanDeltaNotification"; import type { ProcessExitedNotification } from "./v2/ProcessExitedNotification"; import type { ProcessOutputDeltaNotification } from "./v2/ProcessOutputDeltaNotification"; +import type { ProjectChangedNotification } from "./v2/ProjectChangedNotification"; +import type { RawResponseCompletedNotification } from "./v2/RawResponseCompletedNotification"; import type { RawResponseItemCompletedNotification } from "./v2/RawResponseItemCompletedNotification"; import type { ReasoningSummaryPartAddedNotification } from "./v2/ReasoningSummaryPartAddedNotification"; import type { ReasoningSummaryTextDeltaNotification } from "./v2/ReasoningSummaryTextDeltaNotification"; @@ -42,6 +47,7 @@ import type { ReasoningTextDeltaNotification } from "./v2/ReasoningTextDeltaNoti import type { RemoteControlStatusChangedNotification } from "./v2/RemoteControlStatusChangedNotification"; import type { ServerRequestResolvedNotification } from "./v2/ServerRequestResolvedNotification"; import type { SkillsChangedNotification } from "./v2/SkillsChangedNotification"; +import type { StrictReviewRequiredNotification } from "./v2/StrictReviewRequiredNotification"; import type { TerminalInteractionNotification } from "./v2/TerminalInteractionNotification"; import type { ThreadArchivedNotification } from "./v2/ThreadArchivedNotification"; import type { ThreadClosedNotification } from "./v2/ThreadClosedNotification"; @@ -49,14 +55,20 @@ import type { ThreadDeletedNotification } from "./v2/ThreadDeletedNotification"; import type { ThreadGoalClearedNotification } from "./v2/ThreadGoalClearedNotification"; import type { ThreadGoalUpdatedNotification } from "./v2/ThreadGoalUpdatedNotification"; import type { ThreadNameUpdatedNotification } from "./v2/ThreadNameUpdatedNotification"; +import type { ThreadProjectUpdatedNotification } from "./v2/ThreadProjectUpdatedNotification"; +import type { ThreadQueueChangedNotification } from "./v2/ThreadQueueChangedNotification"; import type { ThreadRealtimeClosedNotification } from "./v2/ThreadRealtimeClosedNotification"; import type { ThreadRealtimeErrorNotification } from "./v2/ThreadRealtimeErrorNotification"; import type { ThreadRealtimeItemAddedNotification } from "./v2/ThreadRealtimeItemAddedNotification"; +import type { ThreadRealtimeItemCompletedNotification } from "./v2/ThreadRealtimeItemCompletedNotification"; +import type { ThreadRealtimeItemStartedNotification } from "./v2/ThreadRealtimeItemStartedNotification"; +import type { ThreadRealtimeItemTranscriptDeltaNotification } from "./v2/ThreadRealtimeItemTranscriptDeltaNotification"; import type { ThreadRealtimeOutputAudioDeltaNotification } from "./v2/ThreadRealtimeOutputAudioDeltaNotification"; import type { ThreadRealtimeSdpNotification } from "./v2/ThreadRealtimeSdpNotification"; import type { ThreadRealtimeStartedNotification } from "./v2/ThreadRealtimeStartedNotification"; import type { ThreadRealtimeTranscriptDeltaNotification } from "./v2/ThreadRealtimeTranscriptDeltaNotification"; import type { ThreadRealtimeTranscriptDoneNotification } from "./v2/ThreadRealtimeTranscriptDoneNotification"; +import type { ThreadRevertedNotification } from "./v2/ThreadRevertedNotification"; import type { ThreadSettingsUpdatedNotification } from "./v2/ThreadSettingsUpdatedNotification"; import type { ThreadStartedNotification } from "./v2/ThreadStartedNotification"; import type { ThreadStatusChangedNotification } from "./v2/ThreadStatusChangedNotification"; @@ -74,4 +86,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/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 }; +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": "thread/reverted", "params": ThreadRevertedNotification } | { "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/queue/changed", "params": ThreadQueueChangedNotification } | { "method": "project/changed", "params": ProjectChangedNotification } | { "method": "thread/project/updated", "params": ThreadProjectUpdatedNotification } | { "method": "thread/environment/connected", "params": EnvironmentConnectionNotification } | { "method": "thread/environment/disconnected", "params": EnvironmentConnectionNotification } | { "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": "autoApprovalReview/strictReviewRequired", "params": StrictReviewRequiredNotification } | { "method": "item/completed", "params": ItemCompletedNotification } | { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification } | { "method": "rawResponse/completed", "params": RawResponseCompletedNotification } | { "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": "mcpServer/event/stream/notification", "params": McpServerEventStreamNotification } | { "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": "modelProvider/authRecoveryStarted", "params": AuthRecoveryNotification } | { "method": "modelProvider/authRecoveryCompleted", "params": AuthRecoveryNotification } | { "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/item/started", "params": ThreadRealtimeItemStartedNotification } | { "method": "thread/realtime/item/transcript/delta", "params": ThreadRealtimeItemTranscriptDeltaNotification } | { "method": "thread/realtime/item/completed", "params": ThreadRealtimeItemCompletedNotification } | { "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/ServerNotificationEnvelope.ts b/src/ServerNotificationEnvelope.ts new file mode 100644 index 0000000..bb5799a --- /dev/null +++ b/src/ServerNotificationEnvelope.ts @@ -0,0 +1,99 @@ +// 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 { FuzzyFileSearchSessionCompletedNotification } from "./FuzzyFileSearchSessionCompletedNotification"; +import type { FuzzyFileSearchSessionUpdatedNotification } from "./FuzzyFileSearchSessionUpdatedNotification"; +import type { AccountLoginCompletedNotification } from "./v2/AccountLoginCompletedNotification"; +import type { AccountRateLimitsUpdatedNotification } from "./v2/AccountRateLimitsUpdatedNotification"; +import type { AccountUpdatedNotification } from "./v2/AccountUpdatedNotification"; +import type { AgentMessageDeltaNotification } from "./v2/AgentMessageDeltaNotification"; +import type { AppListUpdatedNotification } from "./v2/AppListUpdatedNotification"; +import type { AuthRecoveryNotification } from "./v2/AuthRecoveryNotification"; +import type { CommandExecOutputDeltaNotification } from "./v2/CommandExecOutputDeltaNotification"; +import type { CommandExecutionOutputDeltaNotification } from "./v2/CommandExecutionOutputDeltaNotification"; +import type { ConfigWarningNotification } from "./v2/ConfigWarningNotification"; +import type { ContextCompactedNotification } from "./v2/ContextCompactedNotification"; +import type { DeprecationNoticeNotification } from "./v2/DeprecationNoticeNotification"; +import type { EnvironmentConnectionNotification } from "./v2/EnvironmentConnectionNotification"; +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"; +import type { GuardianWarningNotification } from "./v2/GuardianWarningNotification"; +import type { HookCompletedNotification } from "./v2/HookCompletedNotification"; +import type { HookStartedNotification } from "./v2/HookStartedNotification"; +import type { ItemCompletedNotification } from "./v2/ItemCompletedNotification"; +import type { ItemGuardianApprovalReviewCompletedNotification } from "./v2/ItemGuardianApprovalReviewCompletedNotification"; +import type { ItemGuardianApprovalReviewStartedNotification } from "./v2/ItemGuardianApprovalReviewStartedNotification"; +import type { ItemStartedNotification } from "./v2/ItemStartedNotification"; +import type { McpServerEventStreamNotification } from "./v2/McpServerEventStreamNotification"; +import type { McpServerOauthLoginCompletedNotification } from "./v2/McpServerOauthLoginCompletedNotification"; +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"; +import type { ProcessOutputDeltaNotification } from "./v2/ProcessOutputDeltaNotification"; +import type { ProjectChangedNotification } from "./v2/ProjectChangedNotification"; +import type { RawResponseCompletedNotification } from "./v2/RawResponseCompletedNotification"; +import type { RawResponseItemCompletedNotification } from "./v2/RawResponseItemCompletedNotification"; +import type { ReasoningSummaryPartAddedNotification } from "./v2/ReasoningSummaryPartAddedNotification"; +import type { ReasoningSummaryTextDeltaNotification } from "./v2/ReasoningSummaryTextDeltaNotification"; +import type { ReasoningTextDeltaNotification } from "./v2/ReasoningTextDeltaNotification"; +import type { RemoteControlStatusChangedNotification } from "./v2/RemoteControlStatusChangedNotification"; +import type { ServerRequestResolvedNotification } from "./v2/ServerRequestResolvedNotification"; +import type { SkillsChangedNotification } from "./v2/SkillsChangedNotification"; +import type { StrictReviewRequiredNotification } from "./v2/StrictReviewRequiredNotification"; +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"; +import type { ThreadProjectUpdatedNotification } from "./v2/ThreadProjectUpdatedNotification"; +import type { ThreadQueueChangedNotification } from "./v2/ThreadQueueChangedNotification"; +import type { ThreadRealtimeClosedNotification } from "./v2/ThreadRealtimeClosedNotification"; +import type { ThreadRealtimeErrorNotification } from "./v2/ThreadRealtimeErrorNotification"; +import type { ThreadRealtimeItemAddedNotification } from "./v2/ThreadRealtimeItemAddedNotification"; +import type { ThreadRealtimeItemCompletedNotification } from "./v2/ThreadRealtimeItemCompletedNotification"; +import type { ThreadRealtimeItemStartedNotification } from "./v2/ThreadRealtimeItemStartedNotification"; +import type { ThreadRealtimeItemTranscriptDeltaNotification } from "./v2/ThreadRealtimeItemTranscriptDeltaNotification"; +import type { ThreadRealtimeOutputAudioDeltaNotification } from "./v2/ThreadRealtimeOutputAudioDeltaNotification"; +import type { ThreadRealtimeSdpNotification } from "./v2/ThreadRealtimeSdpNotification"; +import type { ThreadRealtimeStartedNotification } from "./v2/ThreadRealtimeStartedNotification"; +import type { ThreadRealtimeTranscriptDeltaNotification } from "./v2/ThreadRealtimeTranscriptDeltaNotification"; +import type { ThreadRealtimeTranscriptDoneNotification } from "./v2/ThreadRealtimeTranscriptDoneNotification"; +import type { ThreadRevertedNotification } from "./v2/ThreadRevertedNotification"; +import type { ThreadSettingsUpdatedNotification } from "./v2/ThreadSettingsUpdatedNotification"; +import type { ThreadStartedNotification } from "./v2/ThreadStartedNotification"; +import type { ThreadStatusChangedNotification } from "./v2/ThreadStatusChangedNotification"; +import type { ThreadTokenUsageUpdatedNotification } from "./v2/ThreadTokenUsageUpdatedNotification"; +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"; +import type { WindowsSandboxSetupCompletedNotification } from "./v2/WindowsSandboxSetupCompletedNotification"; +import type { WindowsWorldWritableWarningNotification } from "./v2/WindowsWorldWritableWarningNotification"; + +/** + * Server notification envelope sent over app-server transports. + * + * `emitted_at_ms` records when app-server emitted the notification, before it + * is fanned out to individual connections. + */ +export type ServerNotificationEnvelope = { +/** + * Unix timestamp (in milliseconds) when app-server emitted this notification. + * + * Optional so clients can decode notifications from older app-server + * versions. Current app-server versions always populate it. + */ +emittedAtMs?: number, } & ({ "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": "thread/reverted", "params": ThreadRevertedNotification } | { "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/queue/changed", "params": ThreadQueueChangedNotification } | { "method": "project/changed", "params": ProjectChangedNotification } | { "method": "thread/project/updated", "params": ThreadProjectUpdatedNotification } | { "method": "thread/environment/connected", "params": EnvironmentConnectionNotification } | { "method": "thread/environment/disconnected", "params": EnvironmentConnectionNotification } | { "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": "autoApprovalReview/strictReviewRequired", "params": StrictReviewRequiredNotification } | { "method": "item/completed", "params": ItemCompletedNotification } | { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification } | { "method": "rawResponse/completed", "params": RawResponseCompletedNotification } | { "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": "mcpServer/event/stream/notification", "params": McpServerEventStreamNotification } | { "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": "modelProvider/authRecoveryStarted", "params": AuthRecoveryNotification } | { "method": "modelProvider/authRecoveryCompleted", "params": AuthRecoveryNotification } | { "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/item/started", "params": ThreadRealtimeItemStartedNotification } | { "method": "thread/realtime/item/transcript/delta", "params": ThreadRealtimeItemTranscriptDeltaNotification } | { "method": "thread/realtime/item/completed", "params": ThreadRealtimeItemCompletedNotification } | { "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/SleepItem.ts b/src/SleepItem.ts new file mode 100644 index 0000000..b399551 --- /dev/null +++ b/src/SleepItem.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. + +/** + * Display item emitted by the interruptible `clock.sleep` tool. + */ +export type SleepItem = { id: string, durationMs: number, }; diff --git a/src/WebSearchItem.ts b/src/WebSearchItem.ts index bc1e6d5..9ce72a2 100644 --- a/src/WebSearchItem.ts +++ b/src/WebSearchItem.ts @@ -1,6 +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 { JsonValue } from "./serde_json/JsonValue"; import type { WebSearchAction } from "./v2/WebSearchAction"; -export type WebSearchItem = { id: string, query: string, action: WebSearchAction | null, }; +export type WebSearchItem = { id: string, query: string, action: WebSearchAction | null, +/** + * Structured search results returned out-of-band by standalone web search. + * + * These stay as opaque JSON at the extension/app-server boundary so new + * result fields and result types can pass through without a Codex release. + */ +results: Array | null, }; diff --git a/src/index.ts b/src/index.ts index e9695c1..cb39e54 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,7 +3,6 @@ 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"; @@ -11,6 +10,7 @@ export type { AutoCompactTokenLimitScope } from "./AutoCompactTokenLimitScope"; export type { ClientInfo } from "./ClientInfo"; export type { ClientNotification } from "./ClientNotification"; export type { ClientRequest } from "./ClientRequest"; +export type { CodexResponseHandoffMode } from "./CodexResponseHandoffMode"; export type { CollaborationMode } from "./CollaborationMode"; export type { ContentItem } from "./ContentItem"; export type { ConversationGitInfo } from "./ConversationGitInfo"; @@ -43,6 +43,7 @@ export type { GitDiffToRemoteParams } from "./GitDiffToRemoteParams"; export type { GitDiffToRemoteResponse } from "./GitDiffToRemoteResponse"; export type { GitSha } from "./GitSha"; export type { ImageDetail } from "./ImageDetail"; +export type { ImageGenerationFailure } from "./ImageGenerationFailure"; export type { ImageGenerationItem } from "./ImageGenerationItem"; export type { InitializeCapabilities } from "./InitializeCapabilities"; export type { InitializeParams } from "./InitializeParams"; @@ -77,11 +78,14 @@ export type { Resource } from "./Resource"; export type { ResourceContent } from "./ResourceContent"; export type { ResourceTemplate } from "./ResourceTemplate"; export type { ResponseItem } from "./ResponseItem"; +export type { ResponseItemId } from "./ResponseItemId"; export type { ReviewDecision } from "./ReviewDecision"; export type { ServerNotification } from "./ServerNotification"; +export type { ServerNotificationEnvelope } from "./ServerNotificationEnvelope"; export type { ServerRequest } from "./ServerRequest"; export type { SessionSource } from "./SessionSource"; export type { Settings } from "./Settings"; +export type { SleepItem } from "./SleepItem"; export type { SubAgentSource } from "./SubAgentSource"; export type { ThreadId } from "./ThreadId"; export type { ThreadMemoryMode } from "./ThreadMemoryMode"; diff --git a/src/v2/Account.ts b/src/v2/Account.ts index 1b7953e..1f1ad85 100644 --- a/src/v2/Account.ts +++ b/src/v2/Account.ts @@ -1,7 +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 { AmazonBedrockCredentialSource } from "../AmazonBedrockCredentialSource"; import type { PlanType } from "../PlanType"; -export type Account = { "type": "apiKey", } | { "type": "chatgpt", email: string | null, planType: PlanType, } | { "type": "amazonBedrock", credentialSource: AmazonBedrockCredentialSource, }; +export type Account = { "type": "apiKey", } | { "type": "chatgpt", email: string | null, planType: PlanType, } | { "type": "amazonBedrock", usesCodexManagedCredentials: boolean, }; diff --git a/src/v2/AccountLoginCompletedNotification.ts b/src/v2/AccountLoginCompletedNotification.ts index 587237b..65e251e 100644 --- a/src/v2/AccountLoginCompletedNotification.ts +++ b/src/v2/AccountLoginCompletedNotification.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 { DesktopOnboardingEntrypoint } from "./DesktopOnboardingEntrypoint"; -export type AccountLoginCompletedNotification = { loginId: string | null, success: boolean, error: string | null, }; +export type AccountLoginCompletedNotification = { loginId: string | null, success: boolean, error: string | null, onboardingEntrypoint: DesktopOnboardingEntrypoint | null, }; diff --git a/src/AmazonBedrockCredentialSource.ts b/src/v2/AgentMessageDelivery.ts similarity index 67% rename from src/AmazonBedrockCredentialSource.ts rename to src/v2/AgentMessageDelivery.ts index 7822a2f..bc6547e 100644 --- a/src/AmazonBedrockCredentialSource.ts +++ b/src/v2/AgentMessageDelivery.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 AmazonBedrockCredentialSource = "codexManaged" | "awsManaged"; +export type AgentMessageDelivery = "async"; diff --git a/src/v2/AllowDenyRequirement.ts b/src/v2/AllowDenyRequirement.ts new file mode 100644 index 0000000..ec13796 --- /dev/null +++ b/src/v2/AllowDenyRequirement.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 AllowDenyRequirement = "allow" | "deny"; diff --git a/src/v2/AppLinksConfig.ts b/src/v2/AppLinksConfig.ts new file mode 100644 index 0000000..c016c92 --- /dev/null +++ b/src/v2/AppLinksConfig.ts @@ -0,0 +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 { AppToolApproval } from "./AppToolApproval"; +import type { ApprovalsReviewer } from "./ApprovalsReviewer"; + +/** + * Account settings for a single app. + */ +export type AppLinksConfig = { [key in string]?: { approvals_reviewer: ApprovalsReviewer | null, default_tools_approval_mode: AppToolApproval | null, } }; diff --git a/src/v2/AppMetadata.ts b/src/v2/AppMetadata.ts index f1a5001..d4f0a95 100644 --- a/src/v2/AppMetadata.ts +++ b/src/v2/AppMetadata.ts @@ -4,4 +4,4 @@ import type { AppReview } from "./AppReview"; import type { AppScreenshot } from "./AppScreenshot"; -export type AppMetadata = { review: AppReview | null, categories: Array | null, subCategories: Array | null, seoDescription: string | null, screenshots: Array | null, developer: string | null, version: string | null, versionId: string | null, versionNotes: string | null, firstPartyType: string | null, firstPartyRequiresInstall: boolean | null, showInComposerWhenUnlinked: boolean | null, }; +export type AppMetadata = { review: AppReview | null, categories: Array | null, subCategories: Array | null, seoDescription: string | null, screenshots: Array | null, developer: string | null, version: string | null, versionId: string | null, versionNotes: string | null, firstPartyRequiresInstall: boolean | null, showInComposerWhenUnlinked: boolean | null, }; diff --git a/src/v2/AppToolSummary.ts b/src/v2/AppToolSummary.ts new file mode 100644 index 0000000..6ab5c16 --- /dev/null +++ b/src/v2/AppToolSummary.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 - metadata returned by app/read. + */ +export type AppToolSummary = { name: string, title: string | null, description: string, isEnabled: boolean, disabledReason: string | null, isReadOnly: boolean, }; diff --git a/src/v2/AppsConfig.ts b/src/v2/AppsConfig.ts index a4a0f22..ea07dc3 100644 --- a/src/v2/AppsConfig.ts +++ b/src/v2/AppsConfig.ts @@ -1,9 +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 { AppLinksConfig } from "./AppLinksConfig"; 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, 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, } }); +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, +/** + * Per-account approval settings keyed by link ID. + */ +links: AppLinksConfig | null, } }); diff --git a/src/v2/AppsInstalledParams.ts b/src/v2/AppsInstalledParams.ts new file mode 100644 index 0000000..d832da6 --- /dev/null +++ b/src/v2/AppsInstalledParams.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. + +/** + * Read the committed installed connector runtime snapshot. + */ +export type AppsInstalledParams = { +/** + * Optional loaded thread id used to evaluate effective app configuration. + */ +threadId?: string | null, +/** + * When true and Apps are permitted, refresh and publish the hosted connector runtime tool + * snapshot first. + */ +forceRefresh?: boolean, }; diff --git a/src/v2/AppsInstalledResponse.ts b/src/v2/AppsInstalledResponse.ts new file mode 100644 index 0000000..4978452 --- /dev/null +++ b/src/v2/AppsInstalledResponse.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 { InstalledApp } from "./InstalledApp"; + +/** + * The installed connectors in one committed runtime snapshot. + */ +export type AppsInstalledResponse = { apps: Array, }; diff --git a/src/v2/AppsReadParams.ts b/src/v2/AppsReadParams.ts new file mode 100644 index 0000000..19a0e8f --- /dev/null +++ b/src/v2/AppsReadParams.ts @@ -0,0 +1,21 @@ +// 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 - read metadata for specific apps/connectors. + */ +export type AppsReadParams = { +/** + * App ids to read. The server accepts at most 100 ids and deduplicates repeated ids while + * preserving their first-request order. + */ +appIds: Array, +/** + * Optional loaded thread id used to evaluate effective app configuration. + */ +threadId?: string | null, +/** + * When true, include display-only public tool summaries in the returned metadata. + */ +includeTools?: boolean, }; diff --git a/src/v2/AppsReadResponse.ts b/src/v2/AppsReadResponse.ts new file mode 100644 index 0000000..308d7dd --- /dev/null +++ b/src/v2/AppsReadResponse.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 { ConnectorMetadata } from "./ConnectorMetadata"; + +/** + * EXPERIMENTAL - app/read response. + */ +export type AppsReadResponse = { apps: Array, missingAppIds: Array, }; diff --git a/src/v2/AsyncUserInputQuestion.ts b/src/v2/AsyncUserInputQuestion.ts new file mode 100644 index 0000000..bac5531 --- /dev/null +++ b/src/v2/AsyncUserInputQuestion.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 AsyncUserInputQuestion = { title: string, options: Array | null, }; diff --git a/src/v2/AuthRecoveryNotification.ts b/src/v2/AuthRecoveryNotification.ts new file mode 100644 index 0000000..62d8d06 --- /dev/null +++ b/src/v2/AuthRecoveryNotification.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 AuthRecoveryNotification = { threadId: string, turnId: string, provider: string, message: string, }; diff --git a/src/v2/AutoReviewRequirements.ts b/src/v2/AutoReviewRequirements.ts new file mode 100644 index 0000000..04036ba --- /dev/null +++ b/src/v2/AutoReviewRequirements.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 AutoReviewRequirements = { requiredOnModels: Array | null, ignoreRules: Array | null, }; diff --git a/src/v2/AwsCredentialType.ts b/src/v2/AwsCredentialType.ts new file mode 100644 index 0000000..cc88efa --- /dev/null +++ b/src/v2/AwsCredentialType.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 AwsCredentialType = "accessKeys" | "bedrockApiKey"; diff --git a/src/v2/BedrockAwsProfile.ts b/src/v2/BedrockAwsProfile.ts new file mode 100644 index 0000000..f5c2838 --- /dev/null +++ b/src/v2/BedrockAwsProfile.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 BedrockAwsProfile = { name: string, region: string | null, }; diff --git a/src/v2/BedrockDiscoverParams.ts b/src/v2/BedrockDiscoverParams.ts new file mode 100644 index 0000000..61ab5fc --- /dev/null +++ b/src/v2/BedrockDiscoverParams.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 BedrockDiscoverParams = Record; diff --git a/src/v2/BedrockDiscoverResponse.ts b/src/v2/BedrockDiscoverResponse.ts new file mode 100644 index 0000000..10d5d8d --- /dev/null +++ b/src/v2/BedrockDiscoverResponse.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 { BedrockAwsProfile } from "./BedrockAwsProfile"; +import type { BedrockEnvironmentCredential } from "./BedrockEnvironmentCredential"; + +export type BedrockDiscoverResponse = { profiles: Array, environmentCredentials: Array, }; diff --git a/src/v2/BedrockEnvironmentCredential.ts b/src/v2/BedrockEnvironmentCredential.ts new file mode 100644 index 0000000..f6ba04d --- /dev/null +++ b/src/v2/BedrockEnvironmentCredential.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 { AwsCredentialType } from "./AwsCredentialType"; + +export type BedrockEnvironmentCredential = { type: AwsCredentialType, region: string | null, }; diff --git a/src/v2/BedrockSetupParams.ts b/src/v2/BedrockSetupParams.ts new file mode 100644 index 0000000..ab8031d --- /dev/null +++ b/src/v2/BedrockSetupParams.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 BedrockSetupParams = { "type": "profile", profile: string, region: string, } | { "type": "environment", region: string, }; diff --git a/src/v2/BedrockSetupResponse.ts b/src/v2/BedrockSetupResponse.ts new file mode 100644 index 0000000..c76ba9b --- /dev/null +++ b/src/v2/BedrockSetupResponse.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 BedrockSetupResponse = Record; diff --git a/src/v2/BrowserUseAccessApprovalLifetime.ts b/src/v2/BrowserUseAccessApprovalLifetime.ts new file mode 100644 index 0000000..f86b59e --- /dev/null +++ b/src/v2/BrowserUseAccessApprovalLifetime.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 BrowserUseAccessApprovalLifetime = "turn" | "thread"; diff --git a/src/v2/BrowserUseConfig.ts b/src/v2/BrowserUseConfig.ts new file mode 100644 index 0000000..5cea396 --- /dev/null +++ b/src/v2/BrowserUseConfig.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 { BrowserUseOriginPolicyConfig } from "./BrowserUseOriginPolicyConfig"; + +export type BrowserUseConfig = { allow_history_access: boolean | null, default_origin_policy: BrowserUseOriginPolicyConfig | null, origins: { [key in string]?: BrowserUseOriginPolicyConfig } | null, }; diff --git a/src/v2/BrowserUseOriginPolicy.ts b/src/v2/BrowserUseOriginPolicy.ts new file mode 100644 index 0000000..117330d --- /dev/null +++ b/src/v2/BrowserUseOriginPolicy.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 { AllowDenyRequirement } from "./AllowDenyRequirement"; +import type { BrowserUseAccessApprovalLifetime } from "./BrowserUseAccessApprovalLifetime"; + +export type BrowserUseOriginPolicy = { access: AllowDenyRequirement | null, downloads: AllowDenyRequirement | null, uploads: AllowDenyRequirement | null, fullCdpAccess: AllowDenyRequirement | null, autoReview: AllowDenyRequirement | null, persistentApproval: boolean | null, accessApprovalLifetime: BrowserUseAccessApprovalLifetime | null, }; diff --git a/src/v2/BrowserUseOriginPolicyConfig.ts b/src/v2/BrowserUseOriginPolicyConfig.ts new file mode 100644 index 0000000..caf024d --- /dev/null +++ b/src/v2/BrowserUseOriginPolicyConfig.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 { AllowDenyRequirement } from "./AllowDenyRequirement"; + +export type BrowserUseOriginPolicyConfig = { access: AllowDenyRequirement | null, downloads: AllowDenyRequirement | null, uploads: AllowDenyRequirement | null, full_cdp_access: AllowDenyRequirement | null, }; diff --git a/src/v2/BrowserUseRequirements.ts b/src/v2/BrowserUseRequirements.ts new file mode 100644 index 0000000..894caa9 --- /dev/null +++ b/src/v2/BrowserUseRequirements.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 { BrowserUseOriginPolicy } from "./BrowserUseOriginPolicy"; + +export type BrowserUseRequirements = { allowHistoryAccess: boolean | null, disableAutoReview: boolean | null, allowGlobalPersistentApproval: boolean | null, defaultOriginPolicy: BrowserUseOriginPolicy | null, origins: { [key in string]?: BrowserUseOriginPolicy } | null, }; diff --git a/src/v2/CliAuthCredentialsStoreMode.ts b/src/v2/CliAuthCredentialsStoreMode.ts new file mode 100644 index 0000000..366d748 --- /dev/null +++ b/src/v2/CliAuthCredentialsStoreMode.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 CliAuthCredentialsStoreMode = "file" | "keyring" | "auto" | "ephemeral"; diff --git a/src/v2/CodexErrorInfo.ts b/src/v2/CodexErrorInfo.ts index ec50328..e93d7fd 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" | "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"; +export type CodexErrorInfo = "contextWindowExceeded" | "sessionBudgetExceeded" | "usageLimitExceeded" | "rateLimitExceeded" | "serverOverloaded" | "cyberPolicy" | "misalignmentPolicyViolation" | { "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/CollabAgentTool.ts b/src/v2/CollabAgentTool.ts index 3637853..9d8673e 100644 --- a/src/v2/CollabAgentTool.ts +++ b/src/v2/CollabAgentTool.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 CollabAgentTool = "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent"; +export type CollabAgentTool = "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent" | "sendMessage" | "followupTask" | "interruptAgent" | "listAgents"; diff --git a/src/v2/CollabAgentToolCallStatus.ts b/src/v2/CollabAgentToolCallStatus.ts index f21f7bd..2309bb8 100644 --- a/src/v2/CollabAgentToolCallStatus.ts +++ b/src/v2/CollabAgentToolCallStatus.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 CollabAgentToolCallStatus = "inProgress" | "completed" | "failed"; +export type CollabAgentToolCallStatus = "inProgress" | "completed" | "failed" | "interrupted"; diff --git a/src/v2/CommandAction.ts b/src/v2/CommandAction.ts index a17fb06..91c92c9 100644 --- a/src/v2/CommandAction.ts +++ b/src/v2/CommandAction.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 CommandAction = { "type": "read", command: string, name: string, path: AbsolutePathBuf, } | { "type": "listFiles", command: string, path: string | null, } | { "type": "search", command: string, query: string | null, path: string | null, } | { "type": "unknown", command: string, }; +export type CommandAction = { "type": "read", command: string, name: string, path: LegacyAppPathString, } | { "type": "listFiles", command: string, path: string | null, } | { "type": "search", command: string, query: string | null, path: string | null, } | { "type": "unknown", command: string, }; diff --git a/src/v2/CommandExecutionApprovalKind.ts b/src/v2/CommandExecutionApprovalKind.ts new file mode 100644 index 0000000..f94eac8 --- /dev/null +++ b/src/v2/CommandExecutionApprovalKind.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. + +/** + * Distinguishes a command approval from input sent to an existing terminal. + */ +export type CommandExecutionApprovalKind = "command" | "writeStdin"; diff --git a/src/v2/CommandExecutionRequestApprovalParams.ts b/src/v2/CommandExecutionRequestApprovalParams.ts index 4a32722..b17dde2 100644 --- a/src/v2/CommandExecutionRequestApprovalParams.ts +++ b/src/v2/CommandExecutionRequestApprovalParams.ts @@ -5,11 +5,16 @@ import type { LegacyAppPathString } from "../LegacyAppPathString"; import type { AdditionalPermissionProfile } from "./AdditionalPermissionProfile"; import type { CommandAction } from "./CommandAction"; import type { CommandExecutionApprovalDecision } from "./CommandExecutionApprovalDecision"; +import type { CommandExecutionApprovalKind } from "./CommandExecutionApprovalKind"; import type { ExecPolicyAmendment } from "./ExecPolicyAmendment"; import type { NetworkApprovalContext } from "./NetworkApprovalContext"; import type { NetworkPolicyAmendment } from "./NetworkPolicyAmendment"; -export type CommandExecutionRequestApprovalParams = { threadId: string, turnId: string, itemId: string, +export type CommandExecutionRequestApprovalParams = { +/** + * Kind of action under review. Defaults to `command` for older servers. + */ +kind: CommandExecutionApprovalKind, threadId: string, turnId: string, itemId: string, /** * Unix timestamp (in milliseconds) when this approval request started. */ @@ -22,6 +27,7 @@ startedAtMs: number, * For zsh-exec-bridge subcommand approvals, multiple callbacks can belong to * one parent `itemId`, so `approvalId` is a distinct opaque callback id * (a UUID) used to disambiguate routing. + * Stdin approvals also use a distinct callback id; inspect `kind` to distinguish them. */ approvalId?: string | null, /** diff --git a/src/v2/ComputerUseConfig.ts b/src/v2/ComputerUseConfig.ts new file mode 100644 index 0000000..0069ddd --- /dev/null +++ b/src/v2/ComputerUseConfig.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 { AllowDenyRequirement } from "./AllowDenyRequirement"; +import type { ComputerUseMacosConfig } from "./ComputerUseMacosConfig"; +import type { ComputerUseWindowsConfig } from "./ComputerUseWindowsConfig"; + +export type ComputerUseConfig = { default_app_access: AllowDenyRequirement | null, macos: ComputerUseMacosConfig | null, windows: ComputerUseWindowsConfig | null, }; diff --git a/src/v2/ComputerUseMacosConfig.ts b/src/v2/ComputerUseMacosConfig.ts new file mode 100644 index 0000000..91b03c3 --- /dev/null +++ b/src/v2/ComputerUseMacosConfig.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 { AllowDenyRequirement } from "./AllowDenyRequirement"; + +export type ComputerUseMacosConfig = { bundle_ids: { [key in string]?: AllowDenyRequirement } | null, }; diff --git a/src/v2/ComputerUseMacosRequirements.ts b/src/v2/ComputerUseMacosRequirements.ts new file mode 100644 index 0000000..e5577ae --- /dev/null +++ b/src/v2/ComputerUseMacosRequirements.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 { AllowDenyRequirement } from "./AllowDenyRequirement"; + +export type ComputerUseMacosRequirements = { bundleIds: { [key in string]?: AllowDenyRequirement } | null, }; diff --git a/src/v2/ComputerUseRequirements.ts b/src/v2/ComputerUseRequirements.ts index 7a82e7a..f0894b1 100644 --- a/src/v2/ComputerUseRequirements.ts +++ b/src/v2/ComputerUseRequirements.ts @@ -1,5 +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 { AllowDenyRequirement } from "./AllowDenyRequirement"; +import type { ComputerUseMacosRequirements } from "./ComputerUseMacosRequirements"; +import type { ComputerUseWindowsRequirements } from "./ComputerUseWindowsRequirements"; -export type ComputerUseRequirements = { allowLockedComputerUse: boolean | null, }; +export type ComputerUseRequirements = { allowLockedComputerUse: boolean | null, allowPersistentApproval: boolean | null, defaultAppAccess: AllowDenyRequirement | null, macos: ComputerUseMacosRequirements | null, windows: ComputerUseWindowsRequirements | null, }; diff --git a/src/v2/ComputerUseWindowsConfig.ts b/src/v2/ComputerUseWindowsConfig.ts new file mode 100644 index 0000000..9fe64ef --- /dev/null +++ b/src/v2/ComputerUseWindowsConfig.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 { AllowDenyRequirement } from "./AllowDenyRequirement"; +import type { ComputerUseWindowsExeConfig } from "./ComputerUseWindowsExeConfig"; + +export type ComputerUseWindowsConfig = { aumids: { [key in string]?: AllowDenyRequirement } | null, exes: Array | null, }; diff --git a/src/v2/ComputerUseWindowsExeConfig.ts b/src/v2/ComputerUseWindowsExeConfig.ts new file mode 100644 index 0000000..afd4ff2 --- /dev/null +++ b/src/v2/ComputerUseWindowsExeConfig.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 { AllowDenyRequirement } from "./AllowDenyRequirement"; + +export type ComputerUseWindowsExeConfig = { publisher_name: string, product_name: string, binary_name: string | null, access: AllowDenyRequirement, }; diff --git a/src/v2/ComputerUseWindowsExeRequirement.ts b/src/v2/ComputerUseWindowsExeRequirement.ts new file mode 100644 index 0000000..e7fa076 --- /dev/null +++ b/src/v2/ComputerUseWindowsExeRequirement.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 { AllowDenyRequirement } from "./AllowDenyRequirement"; + +export type ComputerUseWindowsExeRequirement = { publisherName: string, productName: string, binaryName: string | null, access: AllowDenyRequirement, }; diff --git a/src/v2/ComputerUseWindowsRequirements.ts b/src/v2/ComputerUseWindowsRequirements.ts new file mode 100644 index 0000000..1f9f42e --- /dev/null +++ b/src/v2/ComputerUseWindowsRequirements.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 { AllowDenyRequirement } from "./AllowDenyRequirement"; +import type { ComputerUseWindowsExeRequirement } from "./ComputerUseWindowsExeRequirement"; + +export type ComputerUseWindowsRequirements = { aumids: { [key in string]?: AllowDenyRequirement } | null, exes: Array | null, }; diff --git a/src/v2/Config.ts b/src/v2/Config.ts index 2b38eca..f49a4b1 100644 --- a/src/v2/Config.ts +++ b/src/v2/Config.ts @@ -12,6 +12,8 @@ import type { AnalyticsConfig } from "./AnalyticsConfig"; import type { ApprovalsReviewer } from "./ApprovalsReviewer"; import type { AppsConfig } from "./AppsConfig"; import type { AskForApproval } from "./AskForApproval"; +import type { BrowserUseConfig } from "./BrowserUseConfig"; +import type { ComputerUseConfig } from "./ComputerUseConfig"; import type { ForcedChatgptWorkspaceIds } from "./ForcedChatgptWorkspaceIds"; import type { SandboxMode } from "./SandboxMode"; import type { SandboxWorkspaceWrite } from "./SandboxWorkspaceWrite"; @@ -22,4 +24,4 @@ export type Config = { model: string | null, review_model: string | null, model_ * [UNSTABLE] Optional default for where approval requests are routed for * review. */ -approvals_reviewer: ApprovalsReviewer | null, sandbox_mode: SandboxMode | null, sandbox_workspace_write: SandboxWorkspaceWrite | null, forced_chatgpt_workspace_id: ForcedChatgptWorkspaceIds | null, forced_login_method: ForcedLoginMethod | null, web_search: WebSearchMode | null, tools: ToolsV2 | null, instructions: string | null, developer_instructions: string | null, compact_prompt: string | null, model_reasoning_effort: ReasoningEffort | null, model_reasoning_summary: ReasoningSummary | null, model_verbosity: Verbosity | null, service_tier: string | null, analytics: AnalyticsConfig | null, apps: AppsConfig | null, desktop: { [key in string]?: JsonValue } | null, } & ({ [key in string]?: number | string | boolean | Array | { [key in string]?: JsonValue } | null }); +approvals_reviewer: ApprovalsReviewer | null, sandbox_mode: SandboxMode | null, sandbox_workspace_write: SandboxWorkspaceWrite | null, forced_chatgpt_workspace_id: ForcedChatgptWorkspaceIds | null, forced_login_method: ForcedLoginMethod | null, web_search: WebSearchMode | null, tools: ToolsV2 | null, instructions: string | null, developer_instructions: string | null, compact_prompt: string | null, model_reasoning_effort: ReasoningEffort | null, model_reasoning_summary: ReasoningSummary | null, model_verbosity: Verbosity | null, service_tier: string | null, analytics: AnalyticsConfig | null, apps: AppsConfig | null, browser_use: BrowserUseConfig | null, computer_use: ComputerUseConfig | null, desktop: { [key in string]?: JsonValue } | null, } & ({ [key in string]?: number | string | boolean | Array | { [key in string]?: JsonValue } | null }); diff --git a/src/v2/ConfigBatchWriteParams.ts b/src/v2/ConfigBatchWriteParams.ts index 352eac2..fe82988 100644 --- a/src/v2/ConfigBatchWriteParams.ts +++ b/src/v2/ConfigBatchWriteParams.ts @@ -9,6 +9,8 @@ export type ConfigBatchWriteParams = { edits: Array, */ filePath?: string | null, expectedVersion?: string | null, /** - * When true, hot-reload the updated user config into all loaded threads after writing. + * When true, hot-reload updated runtime settings into loaded threads after writing. + * Session-static model, reasoning-effort, Plan-mode reasoning-effort, service-tier, and + * personality defaults are not reloaded. */ reloadUserConfig?: boolean, }; diff --git a/src/v2/ConfigLayerSource.ts b/src/v2/ConfigLayerSource.ts index 963c331..431d9dc 100644 --- a/src/v2/ConfigLayerSource.ts +++ b/src/v2/ConfigLayerSource.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 { AbsolutePathBuf } from "../AbsolutePathBuf"; -export type ConfigLayerSource = { "type": "mdm", domain: string, key: string, } | { "type": "system", +export type ConfigLayerSource = { "type": "packagedDefaults", +/** + * Path to the packaged default configuration file. + */ +file: AbsolutePathBuf, } | { "type": "mdm", domain: string, key: string, } | { "type": "system", /** * This is the path to the system config.toml file, though it is not * guaranteed to exist. diff --git a/src/v2/ConfigRequirements.ts b/src/v2/ConfigRequirements.ts index e5fbbd0..751f980 100644 --- a/src/v2/ConfigRequirements.ts +++ b/src/v2/ConfigRequirements.ts @@ -1,10 +1,16 @@ // 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 { WebSearchMode } from "../WebSearchMode"; import type { ApprovalsReviewer } from "./ApprovalsReviewer"; import type { AskForApproval } from "./AskForApproval"; +import type { AutoReviewRequirements } from "./AutoReviewRequirements"; +import type { BrowserUseRequirements } from "./BrowserUseRequirements"; +import type { CliAuthCredentialsStoreMode } from "./CliAuthCredentialsStoreMode"; import type { ComputerUseRequirements } from "./ComputerUseRequirements"; +import type { FeedbackRequirements } from "./FeedbackRequirements"; +import type { InAppBrowserRequirements } from "./InAppBrowserRequirements"; import type { ManagedHooksRequirements } from "./ManagedHooksRequirements"; import type { ModelsRequirements } from "./ModelsRequirements"; import type { NetworkRequirements } from "./NetworkRequirements"; @@ -12,4 +18,4 @@ 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, 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, }; +export type ConfigRequirements = { cliAuthCredentialsStore: CliAuthCredentialsStoreMode | null, chatgptBaseUrl: string | null, additionalDeveloperInstructions: string | null, 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, allowBrowserAndComputerUse: boolean | null, allowAppshots: boolean | null, allowRemoteControl: boolean | null, computerUse: ComputerUseRequirements | null, browserUse: BrowserUseRequirements | null, inAppBrowser: InAppBrowserRequirements | null, featureRequirements: { [key in string]?: boolean } | null, hooks: ManagedHooksRequirements | null, enforceResidency: ResidencyRequirement | null, network: NetworkRequirements | null, autoReview: AutoReviewRequirements | null, models: ModelsRequirements | null, sqliteHome: PathUri | null, logDir: PathUri | null, modelCatalogJson: PathUri | null, checkForUpdateOnStartup: boolean | null, allowLoginShell: boolean | null, feedback: FeedbackRequirements | null, windowsSandboxPrivateDesktop: boolean | null, }; diff --git a/src/v2/ConfiguredHookHandler.ts b/src/v2/ConfiguredHookHandler.ts index 42b05cf..6ee1b16 100644 --- a/src/v2/ConfiguredHookHandler.ts +++ b/src/v2/ConfiguredHookHandler.ts @@ -1,5 +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. +import type { JsonValue } from "../serde_json/JsonValue"; -export type ConfiguredHookHandler = { "type": "command", command: string, commandWindows: string | null, timeoutSec: bigint | null, async: boolean, statusMessage: string | null, } | { "type": "prompt", } | { "type": "agent", }; +export type ConfiguredHookHandler = { "type": "command", command: string, commandWindows: string | null, timeoutSec: bigint | null, async: boolean, statusMessage: string | null, +/** + * Approximate token threshold for spilling this hook's `additionalContext` to disk. + * `null` uses 2,500 tokens; `0` disables spilling for this hook. The threshold is + * evaluated against the original context; a spilled preview also includes recovery + * metadata. + */ +additionalContextLimit: number | null, } | { "type": "mcp_tool", server: string, tool: string, input: { [key in string]?: JsonValue }, timeoutSec: bigint | null, statusMessage: string | null, } | { "type": "prompt", } | { "type": "agent", }; diff --git a/src/v2/ConnectorMetadata.ts b/src/v2/ConnectorMetadata.ts new file mode 100644 index 0000000..54c18a7 --- /dev/null +++ b/src/v2/ConnectorMetadata.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 { AppToolSummary } from "./AppToolSummary"; + +/** + * EXPERIMENTAL - metadata returned by app/read. + */ +export type ConnectorMetadata = { id: string, name: string, description: string | null, iconUrl: string | null, iconUrlDark: string | null, distributionChannel: string | null, installUrl: string | null, pluginDisplayNames: Array, toolSummaries: Array | null, }; diff --git a/src/v2/CyberAccessProgram.ts b/src/v2/CyberAccessProgram.ts new file mode 100644 index 0000000..ccd4118 --- /dev/null +++ b/src/v2/CyberAccessProgram.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. + +/** + * Requested cyber treatment for a ChatGPT-authenticated Codex turn. + * Authorization and model-tier restrictions remain server-owned. + */ +export type CyberAccessProgram = "standard" | "daybreakBlue" | "daybreakRed"; diff --git a/src/v2/DesktopOnboardingEntrypoint.ts b/src/v2/DesktopOnboardingEntrypoint.ts new file mode 100644 index 0000000..75a7321 --- /dev/null +++ b/src/v2/DesktopOnboardingEntrypoint.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 DesktopOnboardingEntrypoint = "life_sciences"; diff --git a/src/v2/DynamicToolCallOutputContentItem.ts b/src/v2/DynamicToolCallOutputContentItem.ts index 8f43210..9be1a80 100644 --- a/src/v2/DynamicToolCallOutputContentItem.ts +++ b/src/v2/DynamicToolCallOutputContentItem.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 DynamicToolCallOutputContentItem = { "type": "inputText", text: string, } | { "type": "inputImage", imageUrl: string, }; +export type DynamicToolCallOutputContentItem = { "type": "inputText", text: string, } | { "type": "inputImage", imageUrl: string, } | { "type": "inputAudio", audioUrl: string, }; diff --git a/src/v2/EnvironmentConnectionNotification.ts b/src/v2/EnvironmentConnectionNotification.ts new file mode 100644 index 0000000..518f75c --- /dev/null +++ b/src/v2/EnvironmentConnectionNotification.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 EnvironmentConnectionNotification = { threadId: string, environmentId: string, }; diff --git a/src/v2/EnvironmentStatusKind.ts b/src/v2/EnvironmentStatusKind.ts new file mode 100644 index 0000000..cc535a2 --- /dev/null +++ b/src/v2/EnvironmentStatusKind.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. + +/** + * Current status observed by app-server without starting or recovering an environment. + * + * For a currently ready remote environment, app-server asks the existing + * exec-server connection for `environment/status` without allowing recovery. + */ +export type EnvironmentStatusKind = "ready" | "pending" | "disconnected" | "unknown"; diff --git a/src/v2/EnvironmentStatusParams.ts b/src/v2/EnvironmentStatusParams.ts new file mode 100644 index 0000000..8dddc47 --- /dev/null +++ b/src/v2/EnvironmentStatusParams.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. + +/** + * Parameters for reading the current status of one configured environment. + */ +export type EnvironmentStatusParams = { +/** + * Environment id to inspect. + */ +environmentId: string, }; diff --git a/src/v2/EnvironmentStatusResponse.ts b/src/v2/EnvironmentStatusResponse.ts new file mode 100644 index 0000000..94aec2c --- /dev/null +++ b/src/v2/EnvironmentStatusResponse.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 { EnvironmentStatusKind } from "./EnvironmentStatusKind"; + +/** + * Current status for the requested environment. + */ +export type EnvironmentStatusResponse = { +/** + * Current status observed without starting or recovering the environment. + */ +status: EnvironmentStatusKind, +/** + * Human-readable detail for `disconnected` and `unknown`; omitted for other statuses. + */ +error?: string, }; diff --git a/src/v2/ExternalAgentConfigDetectParams.ts b/src/v2/ExternalAgentConfigDetectParams.ts index 48b55e9..b6abb7e 100644 --- a/src/v2/ExternalAgentConfigDetectParams.ts +++ b/src/v2/ExternalAgentConfigDetectParams.ts @@ -10,4 +10,21 @@ includeHome?: boolean, /** * Zero or more working directories to include for repo-scoped detection. */ -cwds?: Array | null, }; +cwds?: Array | null, +/** + * Maximum age in days for detected sessions. Missing values use the default limit. + */ +maxSessionAgeDays?: number | null, +/** + * Maximum number of sessions to detect. Missing values use the default limit. + */ +maxSessions?: number | null, +/** + * Deprecated field retained for compatibility. This field is ignored; use `migrationSource` + * to select the migration source. + */ +source?: string | null, +/** + * Optional migration-source selector. Missing or unrecognized values use the default source. + */ +migrationSource?: string | null, }; diff --git a/src/v2/ExternalAgentConfigDetectResponse.ts b/src/v2/ExternalAgentConfigDetectResponse.ts index f220e3b..5df7e69 100644 --- a/src/v2/ExternalAgentConfigDetectResponse.ts +++ b/src/v2/ExternalAgentConfigDetectResponse.ts @@ -2,5 +2,6 @@ // 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"; +import type { ExternalAgentDetectedConnectorCandidate } from "./ExternalAgentDetectedConnectorCandidate"; -export type ExternalAgentConfigDetectResponse = { items: Array, }; +export type ExternalAgentConfigDetectResponse = { items: Array, connectors: Array, }; diff --git a/src/v2/ExternalAgentConfigImportHistoriesReadResponse.ts b/src/v2/ExternalAgentConfigImportHistoriesReadResponse.ts index 9df61f5..b48aa22 100644 --- a/src/v2/ExternalAgentConfigImportHistoriesReadResponse.ts +++ b/src/v2/ExternalAgentConfigImportHistoriesReadResponse.ts @@ -2,5 +2,6 @@ // 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"; +import type { ExternalAgentImportedConnectorCandidate } from "./ExternalAgentImportedConnectorCandidate"; -export type ExternalAgentConfigImportHistoriesReadResponse = { data: Array, }; +export type ExternalAgentConfigImportHistoriesReadResponse = { data: Array, connectors: Array, }; diff --git a/src/v2/ExternalAgentConfigImportHistory.ts b/src/v2/ExternalAgentConfigImportHistory.ts index 37273fc..0531aa6 100644 --- a/src/v2/ExternalAgentConfigImportHistory.ts +++ b/src/v2/ExternalAgentConfigImportHistory.ts @@ -4,4 +4,4 @@ import type { ExternalAgentConfigImportItemTypeFailure } from "./ExternalAgentConfigImportItemTypeFailure"; import type { ExternalAgentConfigImportItemTypeSuccess } from "./ExternalAgentConfigImportItemTypeSuccess"; -export type ExternalAgentConfigImportHistory = { importId: string, completedAtMs: bigint, successes: Array, failures: Array, }; +export type ExternalAgentConfigImportHistory = { importId: string, providerId: string | null, completedAtMs: bigint, successes: Array, failures: Array, }; diff --git a/src/v2/ExternalAgentConfigImportHistoryRecordParams.ts b/src/v2/ExternalAgentConfigImportHistoryRecordParams.ts new file mode 100644 index 0000000..379c1e1 --- /dev/null +++ b/src/v2/ExternalAgentConfigImportHistoryRecordParams.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 { ExternalAgentConfigImportHistoryRecordTypeResultParams } from "./ExternalAgentConfigImportHistoryRecordTypeResultParams"; + +export type ExternalAgentConfigImportHistoryRecordParams = { +/** + * Opaque provider identifier for the externally completed import. + */ +providerId: string, +/** + * Completed results grouped by imported item type. + */ +itemTypeResults: Array, }; diff --git a/src/v2/ExternalAgentConfigImportHistoryRecordResponse.ts b/src/v2/ExternalAgentConfigImportHistoryRecordResponse.ts new file mode 100644 index 0000000..dbb14d6 --- /dev/null +++ b/src/v2/ExternalAgentConfigImportHistoryRecordResponse.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 ExternalAgentConfigImportHistoryRecordResponse = { importId: string, }; diff --git a/src/v2/ExternalAgentConfigImportHistoryRecordSuccessParams.ts b/src/v2/ExternalAgentConfigImportHistoryRecordSuccessParams.ts new file mode 100644 index 0000000..a2f475d --- /dev/null +++ b/src/v2/ExternalAgentConfigImportHistoryRecordSuccessParams.ts @@ -0,0 +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 { ExternalAgentConfigMigrationItemType } from "./ExternalAgentConfigMigrationItemType"; + +export type ExternalAgentConfigImportHistoryRecordSuccessParams = { itemType: ExternalAgentConfigMigrationItemType, cwd: string | null, source: string | null, target: string | null, +/** + * Original title for an imported session, when available. + */ +title?: string | null, }; diff --git a/src/v2/ExternalAgentConfigImportHistoryRecordTypeResultParams.ts b/src/v2/ExternalAgentConfigImportHistoryRecordTypeResultParams.ts new file mode 100644 index 0000000..6a5d053 --- /dev/null +++ b/src/v2/ExternalAgentConfigImportHistoryRecordTypeResultParams.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 { ExternalAgentConfigImportHistoryRecordSuccessParams } from "./ExternalAgentConfigImportHistoryRecordSuccessParams"; +import type { ExternalAgentConfigImportItemTypeFailure } from "./ExternalAgentConfigImportItemTypeFailure"; +import type { ExternalAgentConfigMigrationItemType } from "./ExternalAgentConfigMigrationItemType"; + +export type ExternalAgentConfigImportHistoryRecordTypeResultParams = { itemType: ExternalAgentConfigMigrationItemType, successes: Array, failures: Array, }; diff --git a/src/v2/ExternalAgentConfigImportItemTypeFailure.ts b/src/v2/ExternalAgentConfigImportItemTypeFailure.ts index 13e02bf..f2f6ebc 100644 --- a/src/v2/ExternalAgentConfigImportItemTypeFailure.ts +++ b/src/v2/ExternalAgentConfigImportItemTypeFailure.ts @@ -3,4 +3,4 @@ // 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, }; +export type ExternalAgentConfigImportItemTypeFailure = { itemType: ExternalAgentConfigMigrationItemType, errorType: string | null, subErrorType: string | null, failureStage: string, message: string, cwd: string | null, source: string | null, }; diff --git a/src/v2/ExternalAgentConfigImportItemTypeSuccess.ts b/src/v2/ExternalAgentConfigImportItemTypeSuccess.ts index d94ad4a..5142313 100644 --- a/src/v2/ExternalAgentConfigImportItemTypeSuccess.ts +++ b/src/v2/ExternalAgentConfigImportItemTypeSuccess.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 { ExternalAgentConfigMigrationItemType } from "./ExternalAgentConfigMigrationItemType"; -export type ExternalAgentConfigImportItemTypeSuccess = { itemType: ExternalAgentConfigMigrationItemType, cwd: string | null, source: string | null, target: string | null, }; +export type ExternalAgentConfigImportItemTypeSuccess = { itemType: ExternalAgentConfigMigrationItemType, cwd: string | null, source: string | null, target: string | null, +/** + * Original title for an imported session; null for other item types. + */ +title: string | null, }; diff --git a/src/v2/ExternalAgentConfigImportParams.ts b/src/v2/ExternalAgentConfigImportParams.ts index be7f7ff..ebe23a7 100644 --- a/src/v2/ExternalAgentConfigImportParams.ts +++ b/src/v2/ExternalAgentConfigImportParams.ts @@ -5,6 +5,16 @@ import type { ExternalAgentConfigMigrationItem } from "./ExternalAgentConfigMigr export type ExternalAgentConfigImportParams = { migrationItems: Array, /** - * Source product that produced the migration items. Missing means unspecified. + * Optional identifier for the product that initiated the import. */ -source?: string | null, }; +source?: string | null, +/** + * Opaque provider identifier supplied by the caller for analytics attribution and import + * history display. This does not select the migration source. + */ +providerId?: string | null, +/** + * Migration-source selector used to produce the migration items. Pass the same value to + * detection and import; missing or unrecognized values use the default source. + */ +migrationSource?: string | null, }; diff --git a/src/v2/ExternalAgentConfigMigrationItemType.ts b/src/v2/ExternalAgentConfigMigrationItemType.ts index d857693..b356690 100644 --- a/src/v2/ExternalAgentConfigMigrationItemType.ts +++ b/src/v2/ExternalAgentConfigMigrationItemType.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 ExternalAgentConfigMigrationItemType = "AGENTS_MD" | "CONFIG" | "SKILLS" | "PLUGINS" | "MCP_SERVER_CONFIG" | "SUBAGENTS" | "HOOKS" | "COMMANDS" | "SESSIONS"; +export type ExternalAgentConfigMigrationItemType = "AGENTS_MD" | "CONFIG" | "SKILLS" | "PLUGINS" | "MCP_SERVER_CONFIG" | "SUBAGENTS" | "HOOKS" | "COMMANDS" | "MEMORY" | "SESSIONS"; diff --git a/src/v2/ExternalAgentDetectedConnectorCandidate.ts b/src/v2/ExternalAgentDetectedConnectorCandidate.ts new file mode 100644 index 0000000..d1932d7 --- /dev/null +++ b/src/v2/ExternalAgentDetectedConnectorCandidate.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 { ExternalAgentDetectedConnectorSource } from "./ExternalAgentDetectedConnectorSource"; + +export type ExternalAgentDetectedConnectorCandidate = { name: string, sessionCount: number, source: ExternalAgentDetectedConnectorSource, }; diff --git a/src/v2/ExternalAgentDetectedConnectorSource.ts b/src/v2/ExternalAgentDetectedConnectorSource.ts new file mode 100644 index 0000000..c4c608c --- /dev/null +++ b/src/v2/ExternalAgentDetectedConnectorSource.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 ExternalAgentDetectedConnectorSource = "remoteMcpServersConfig" | "sessionToolUse"; diff --git a/src/v2/ExternalAgentImportedConnectorCandidate.ts b/src/v2/ExternalAgentImportedConnectorCandidate.ts new file mode 100644 index 0000000..9aad5f5 --- /dev/null +++ b/src/v2/ExternalAgentImportedConnectorCandidate.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 { ExternalAgentImportedConnectorSource } from "./ExternalAgentImportedConnectorSource"; + +export type ExternalAgentImportedConnectorCandidate = { name: string, sessionCount: number, source: ExternalAgentImportedConnectorSource, }; diff --git a/src/v2/ExternalAgentImportedConnectorSource.ts b/src/v2/ExternalAgentImportedConnectorSource.ts new file mode 100644 index 0000000..5398eb4 --- /dev/null +++ b/src/v2/ExternalAgentImportedConnectorSource.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 ExternalAgentImportedConnectorSource = "remoteMcpServersConfig"; diff --git a/src/v2/FeedbackRequirements.ts b/src/v2/FeedbackRequirements.ts new file mode 100644 index 0000000..8d0a200 --- /dev/null +++ b/src/v2/FeedbackRequirements.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 FeedbackRequirements = { enabled: boolean | null, }; diff --git a/src/v2/FileSystemSpecialPath.ts b/src/v2/FileSystemSpecialPath.ts index f4dc2b0..10c69e3 100644 --- a/src/v2/FileSystemSpecialPath.ts +++ b/src/v2/FileSystemSpecialPath.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 { LegacyAppPathString } from "../LegacyAppPathString"; -export type FileSystemSpecialPath = { "kind": "root" } | { "kind": "minimal" } | { "kind": "project_roots", subpath: string | null, } | { "kind": "tmpdir" } | { "kind": "slash_tmp" } | { "kind": "unknown", path: string, subpath: string | null, }; +export type FileSystemSpecialPath = { "kind": "root" } | { "kind": "minimal" } | { "kind": "project_roots", subpath: LegacyAppPathString | null, } | { "kind": "tmpdir" } | { "kind": "slash_tmp" } | { "kind": "unknown", path: string, subpath: LegacyAppPathString | null, }; diff --git a/src/v2/GetAccountRateLimitsResponse.ts b/src/v2/GetAccountRateLimitsResponse.ts index af40063..548bd95 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 { JsonValue } from "../serde_json/JsonValue"; import type { RateLimitResetCreditsSummary } from "./RateLimitResetCreditsSummary"; import type { RateLimitSnapshot } from "./RateLimitSnapshot"; @@ -12,4 +13,13 @@ rateLimits: RateLimitSnapshot, /** * Multi-bucket view keyed by metered `limit_id` (for example, `codex`). */ -rateLimitsByLimitId: { [key in string]?: RateLimitSnapshot } | null, rateLimitResetCredits: RateLimitResetCreditsSummary | null, }; +rateLimitsByLimitId: { [key in string]?: RateLimitSnapshot } | null, rateLimitResetCredits: RateLimitResetCreditsSummary | null, +/** + * Account associated with this usage snapshot, when supplied by the backend. + */ +accountId: string | null, +/** + * Optional backend-owned banner from the same usage read. Its nested keys retain the + * backend's snake_case contract; an absent banner leaves the client's existing UI unchanged. + */ +rateLimitUpsell: JsonValue | null, }; diff --git a/src/v2/GetAccountTokenUsageParams.ts b/src/v2/GetAccountTokenUsageParams.ts new file mode 100644 index 0000000..62e27ba --- /dev/null +++ b/src/v2/GetAccountTokenUsageParams.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 GetAccountTokenUsageParams = { +/** + * When present, read estimated usage for this thread instead of account-wide token activity. + */ +threadId?: string | null, }; diff --git a/src/v2/GetAccountTokenUsageResponse.ts b/src/v2/GetAccountTokenUsageResponse.ts index 175c915..f7b5f24 100644 --- a/src/v2/GetAccountTokenUsageResponse.ts +++ b/src/v2/GetAccountTokenUsageResponse.ts @@ -3,5 +3,10 @@ // 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"; +import type { ThreadUsage } from "./ThreadUsage"; -export type GetAccountTokenUsageResponse = { summary: AccountTokenUsageSummary, dailyUsageBuckets: Array | null, }; +export type GetAccountTokenUsageResponse = { summary: AccountTokenUsageSummary, dailyUsageBuckets: Array | null, +/** + * Estimated usage when a thread was requested and its billing route is available. + */ +threadUsage?: ThreadUsage | null, }; diff --git a/src/v2/GuardianApprovalReviewAction.ts b/src/v2/GuardianApprovalReviewAction.ts index 4f00e37..8c21a9e 100644 --- a/src/v2/GuardianApprovalReviewAction.ts +++ b/src/v2/GuardianApprovalReviewAction.ts @@ -2,8 +2,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 { LegacyAppPathString } from "../LegacyAppPathString"; import type { GuardianCommandSource } from "./GuardianCommandSource"; import type { NetworkApprovalProtocol } from "./NetworkApprovalProtocol"; import type { RequestPermissionProfile } from "./RequestPermissionProfile"; -export type GuardianApprovalReviewAction = { "type": "command", source: GuardianCommandSource, command: string, cwd: AbsolutePathBuf, } | { "type": "execve", source: GuardianCommandSource, program: string, argv: Array, cwd: AbsolutePathBuf, } | { "type": "applyPatch", cwd: AbsolutePathBuf, files: Array, } | { "type": "networkAccess", target: string, host: string, protocol: NetworkApprovalProtocol, port: number, } | { "type": "mcpToolCall", server: string, toolName: string, connectorId: string | null, connectorName: string | null, toolTitle: string | null, } | { "type": "requestPermissions", reason: string | null, permissions: RequestPermissionProfile, }; +export type GuardianApprovalReviewAction = { "type": "command", source: GuardianCommandSource, command: string, cwd: AbsolutePathBuf, } | { "type": "execve", source: GuardianCommandSource, program: string, argv: Array, cwd: AbsolutePathBuf, } | { "type": "writeStdin", approvalId: string, processId: string, stdin: string, cwd: LegacyAppPathString, } | { "type": "applyPatch", cwd: AbsolutePathBuf, files: Array, } | { "type": "networkAccess", target: string, host: string, protocol: NetworkApprovalProtocol, port: number, } | { "type": "mcpToolCall", server: string, toolName: string, connectorId: string | null, connectorName: string | null, toolTitle: string | null, } | { "type": "requestPermissions", reason: string | null, permissions: RequestPermissionProfile, }; diff --git a/src/v2/HookEventName.ts b/src/v2/HookEventName.ts index 4774762..5425272 100644 --- a/src/v2/HookEventName.ts +++ b/src/v2/HookEventName.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 HookEventName = "preToolUse" | "permissionRequest" | "postToolUse" | "preCompact" | "postCompact" | "sessionStart" | "userPromptSubmit" | "subagentStart" | "subagentStop" | "stop"; +export type HookEventName = "preToolUse" | "permissionRequest" | "postToolUse" | "preCompact" | "postCompact" | "sessionStart" | "sessionEnd" | "userPromptSubmit" | "subagentStart" | "subagentStop" | "stop" | "interrupt"; diff --git a/src/v2/HookHandlerType.ts b/src/v2/HookHandlerType.ts index dc3f087..7dd671e 100644 --- a/src/v2/HookHandlerType.ts +++ b/src/v2/HookHandlerType.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 HookHandlerType = "command" | "prompt" | "agent"; +export type HookHandlerType = "command" | "mcpTool" | "prompt" | "agent"; diff --git a/src/v2/HookMetadata.ts b/src/v2/HookMetadata.ts index 94e3c30..04358a9 100644 --- a/src/v2/HookMetadata.ts +++ b/src/v2/HookMetadata.ts @@ -3,8 +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"; import type { HookEventName } from "./HookEventName"; -import type { HookHandlerType } from "./HookHandlerType"; import type { HookSource } from "./HookSource"; import type { HookTrustStatus } from "./HookTrustStatus"; -export type HookMetadata = { key: string, eventName: HookEventName, handlerType: HookHandlerType, matcher: string | null, command: string | null, timeoutSec: bigint, statusMessage: string | null, sourcePath: AbsolutePathBuf, source: HookSource, pluginId: string | null, displayOrder: bigint, enabled: boolean, isManaged: boolean, currentHash: string, trustStatus: HookTrustStatus, }; +export type HookMetadata = { key: string, eventName: HookEventName, matcher: string | null, timeoutSec: bigint, statusMessage: string | null, +/** + * Configured `additionalContext` spill threshold. + * `null` uses 2,500 tokens; `0` disables spilling. + */ +additionalContextLimit: number | null, sourcePath: AbsolutePathBuf, source: HookSource, pluginId: string | null, displayOrder: bigint, enabled: boolean, isManaged: boolean, currentHash: string, trustStatus: HookTrustStatus, } & ({ "handlerType": "command", command: string, async: boolean, } | { "handlerType": "mcpTool", server: string, tool: string, } | { "handlerType": "prompt", } | { "handlerType": "agent", }); diff --git a/src/v2/InAppBrowserRequirements.ts b/src/v2/InAppBrowserRequirements.ts new file mode 100644 index 0000000..5bafbf0 --- /dev/null +++ b/src/v2/InAppBrowserRequirements.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 InAppBrowserRequirements = { allowExternalBrowserSettingsImport: boolean | null, }; diff --git a/src/v2/InstalledApp.ts b/src/v2/InstalledApp.ts new file mode 100644 index 0000000..9fce592 --- /dev/null +++ b/src/v2/InstalledApp.ts @@ -0,0 +1,23 @@ +// 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. + +/** + * Installed connector runtime state. + */ +export type InstalledApp = { id: string, +/** + * Best-effort name carried by the runtime tool catalog. Canonical app metadata remains owned + * by `app/read`. + */ +runtimeName: string | null, +/** + * Effective enabled state after applying global, workspace, local, and managed configuration + * at read time. + */ +enabled: boolean, +/** + * Whether the connector is enabled and has a non-synthetic, model-visible tool allowed by + * effective MCP and app/tool policy in the committed runtime snapshot. + */ +callable: boolean, }; diff --git a/src/v2/ItemGuardianApprovalReviewCompletedNotification.ts b/src/v2/ItemGuardianApprovalReviewCompletedNotification.ts index 32d12be..d28059d 100644 --- a/src/v2/ItemGuardianApprovalReviewCompletedNotification.ts +++ b/src/v2/ItemGuardianApprovalReviewCompletedNotification.ts @@ -28,6 +28,8 @@ reviewId: string, * In most cases, one review maps to one target item. The exceptions are * - execve reviews, where a single command may contain multiple execve * calls to review (only possible when using the shell_zsh_fork feature) + * - stdin reviews, which refer to the existing parent command item and + * have a separate approval ID in the action payload * - network policy reviews, where there is no target item * * A network call is triggered by a CommandExecution item, so having a diff --git a/src/v2/ItemGuardianApprovalReviewStartedNotification.ts b/src/v2/ItemGuardianApprovalReviewStartedNotification.ts index 92d34fd..79b548d 100644 --- a/src/v2/ItemGuardianApprovalReviewStartedNotification.ts +++ b/src/v2/ItemGuardianApprovalReviewStartedNotification.ts @@ -23,6 +23,8 @@ reviewId: string, * In most cases, one review maps to one target item. The exceptions are * - execve reviews, where a single command may contain multiple execve * calls to review (only possible when using the shell_zsh_fork feature) + * - stdin reviews, which refer to the existing parent command item and + * have a separate approval ID in the action payload * - network policy reviews, where there is no target item * * A network call is triggered by a CommandExecution item, so having a diff --git a/src/v2/LoginAccountParams.ts b/src/v2/LoginAccountParams.ts index 1606f16..c316cac 100644 --- a/src/v2/LoginAccountParams.ts +++ b/src/v2/LoginAccountParams.ts @@ -19,4 +19,4 @@ chatgptAccountId: string, * When `null`, Codex attempts to derive the plan type from access-token * claims. If unavailable, the plan defaults to `unknown`. */ -chatgptPlanType?: string | null, }; +chatgptPlanType?: string | null, } | { "type": "amazonBedrock", apiKey: string, region: string, } | { "type": "amazonBedrockAccessKeys", accessKeyId: string, secretAccessKey: string, sessionToken?: string | null, region: string, }; diff --git a/src/v2/LoginAccountResponse.ts b/src/v2/LoginAccountResponse.ts index 34bccd6..5a9f34e 100644 --- a/src/v2/LoginAccountResponse.ts +++ b/src/v2/LoginAccountResponse.ts @@ -14,4 +14,4 @@ verificationUrl: string, /** * One-time code the user must enter after signing in. */ -userCode: string, } | { "type": "chatgptAuthTokens", }; +userCode: string, } | { "type": "chatgptAuthTokens", } | { "type": "amazonBedrock", }; diff --git a/src/v2/ManagedHooksRequirements.ts b/src/v2/ManagedHooksRequirements.ts index 1143bd0..777a531 100644 --- a/src/v2/ManagedHooksRequirements.ts +++ b/src/v2/ManagedHooksRequirements.ts @@ -3,4 +3,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ConfiguredHookMatcherGroup } from "./ConfiguredHookMatcherGroup"; -export type ManagedHooksRequirements = { managedDir: string | null, windowsManagedDir: string | null, PreToolUse: Array, PermissionRequest: Array, PostToolUse: Array, PreCompact: Array, PostCompact: Array, SessionStart: Array, UserPromptSubmit: Array, SubagentStart: Array, SubagentStop: Array, Stop: Array, }; +export type ManagedHooksRequirements = { managedDir: string | null, windowsManagedDir: string | null, PreToolUse: Array, PermissionRequest: Array, PostToolUse: Array, PreCompact: Array, PostCompact: Array, SessionStart: Array, SessionEnd: Array, UserPromptSubmit: Array, SubagentStart: Array, SubagentStop: Array, Stop: Array, Interrupt: Array, }; diff --git a/src/v2/McpAuthStatus.ts b/src/v2/McpAuthStatus.ts index 6903a12..67d1233 100644 --- a/src/v2/McpAuthStatus.ts +++ b/src/v2/McpAuthStatus.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 McpAuthStatus = "unsupported" | "notLoggedIn" | "bearerToken" | "oAuth"; +export type McpAuthStatus = "unknown" | "unsupported" | "notLoggedIn" | "bearerToken" | "oAuth"; diff --git a/src/v2/McpResourceReadParams.ts b/src/v2/McpResourceReadParams.ts index c48795f..7e15066 100644 --- a/src/v2/McpResourceReadParams.ts +++ b/src/v2/McpResourceReadParams.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 McpResourceReadParams = { threadId?: string | null, server: string, uri: string, }; +export type McpResourceReadParams = { threadId?: string | null, +/** + * Originating MCP tool call used to select the resource's app. + */ +originCallId?: string | null, server: string, uri: string, connectorId?: string | null, }; diff --git a/src/v2/McpResourceReadResponse.ts b/src/v2/McpResourceReadResponse.ts index 2af1dbc..2b1194d 100644 --- a/src/v2/McpResourceReadResponse.ts +++ b/src/v2/McpResourceReadResponse.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 { ResourceContent } from "../ResourceContent"; -export type McpResourceReadResponse = { contents: Array, }; +export type McpResourceReadResponse = { contents: Array, +/** + * Originating call when the server applied app-specific resource scoping. + */ +originCallId: string | null, }; diff --git a/src/v2/McpServerConnectionStatus.ts b/src/v2/McpServerConnectionStatus.ts new file mode 100644 index 0000000..42645ec --- /dev/null +++ b/src/v2/McpServerConnectionStatus.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 McpServerConnectionStatus = "notStarted" | "starting" | "connected" | "authenticationRequired" | "failed" | "cancelled" | "disabled"; diff --git a/src/v2/McpServerElicitationRequestParams.ts b/src/v2/McpServerElicitationRequestParams.ts index a4f1e73..3c86739 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": "openai/form", _meta: JsonValue | null, message: string, requestedSchema: JsonValue, } | { "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": "openaiForm", _meta: JsonValue | null, message: string, requestedSchema: JsonValue, } | { "mode": "url", _meta: JsonValue | null, message: string, url: string, elicitationId: string, }); diff --git a/src/v2/McpServerEventNotification.ts b/src/v2/McpServerEventNotification.ts new file mode 100644 index 0000000..fd01cbe --- /dev/null +++ b/src/v2/McpServerEventNotification.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 McpServerEventNotification = { method: string, params: JsonValue, }; diff --git a/src/v2/McpServerEventStreamNotification.ts b/src/v2/McpServerEventStreamNotification.ts new file mode 100644 index 0000000..81f1234 --- /dev/null +++ b/src/v2/McpServerEventStreamNotification.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 { McpServerEventNotification } from "./McpServerEventNotification"; + +export type McpServerEventStreamNotification = { subscriptionId: string, notification: McpServerEventNotification, }; diff --git a/src/v2/McpServerEventStreamStartParams.ts b/src/v2/McpServerEventStreamStartParams.ts new file mode 100644 index 0000000..cfb4d53 --- /dev/null +++ b/src/v2/McpServerEventStreamStartParams.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 McpServerEventStreamStartParams = { threadId: string, server: string, subscriptionId: string, name: string, arguments: JsonValue, _meta?: JsonValue | null, }; diff --git a/src/v2/McpServerEventStreamStartResponse.ts b/src/v2/McpServerEventStreamStartResponse.ts new file mode 100644 index 0000000..382bc67 --- /dev/null +++ b/src/v2/McpServerEventStreamStartResponse.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 McpServerEventStreamStartResponse = Record; diff --git a/src/v2/McpServerEventStreamStopParams.ts b/src/v2/McpServerEventStreamStopParams.ts new file mode 100644 index 0000000..43997ed --- /dev/null +++ b/src/v2/McpServerEventStreamStopParams.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 McpServerEventStreamStopParams = { subscriptionId: string, }; diff --git a/src/v2/McpServerEventStreamStopResponse.ts b/src/v2/McpServerEventStreamStopResponse.ts new file mode 100644 index 0000000..9e9c2e9 --- /dev/null +++ b/src/v2/McpServerEventStreamStopResponse.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 McpServerEventStreamStopResponse = Record; diff --git a/src/v2/McpServerOauthClientRegistration.ts b/src/v2/McpServerOauthClientRegistration.ts new file mode 100644 index 0000000..052150b --- /dev/null +++ b/src/v2/McpServerOauthClientRegistration.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 McpServerOauthClientRegistration = "auto" | "cimd" | "dcr"; diff --git a/src/v2/McpServerOauthLoginParams.ts b/src/v2/McpServerOauthLoginParams.ts index ff088b8..3d3aebd 100644 --- a/src/v2/McpServerOauthLoginParams.ts +++ b/src/v2/McpServerOauthLoginParams.ts @@ -1,5 +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 { McpServerOauthClientRegistration } from "./McpServerOauthClientRegistration"; -export type McpServerOauthLoginParams = { name: string, threadId?: string | null, scopes?: Array | null, timeoutSecs?: bigint | null, }; +export type McpServerOauthLoginParams = { name: string, threadId?: string | null, +/** + * Registration strategy for this login only; omission selects automatic discovery. + */ +clientRegistration?: McpServerOauthClientRegistration | null, scopes?: Array | null, timeoutSecs?: bigint | null, }; diff --git a/src/v2/McpServerStatus.ts b/src/v2/McpServerStatus.ts index d2e99ce..9a95414 100644 --- a/src/v2/McpServerStatus.ts +++ b/src/v2/McpServerStatus.ts @@ -6,5 +6,10 @@ import type { Resource } from "../Resource"; import type { ResourceTemplate } from "../ResourceTemplate"; import type { Tool } from "../Tool"; import type { McpAuthStatus } from "./McpAuthStatus"; +import type { McpServerConnectionStatus } from "./McpServerConnectionStatus"; -export type McpServerStatus = { name: string, serverInfo: McpServerInfo | null, tools: { [key in string]?: Tool }, resources: Array, resourceTemplates: Array, authStatus: McpAuthStatus, }; +export type McpServerStatus = { name: string, +/** + * Current thread-runtime connection state; null when unavailable or the configuration changed. + */ +runtimeStatus: McpServerConnectionStatus | null, pluginId: string | null, serverInfo: McpServerInfo | null, tools: { [key in string]?: Tool }, resources: Array, resourceTemplates: Array, authStatus: McpAuthStatus, }; diff --git a/src/v2/McpToolCallAppContext.ts b/src/v2/McpToolCallAppContext.ts index e4bc5a1..28c2845 100644 --- a/src/v2/McpToolCallAppContext.ts +++ b/src/v2/McpToolCallAppContext.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 McpToolCallAppContext = { connectorId: string, linkId: string | null, resourceUri: string | null, appName: string | null, templateId: string | null, actionName: string | null, }; +export type McpToolCallAppContext = { connectorId: string, linkId: string | null, resourceUri: string | null, appName: string | null, actionName: string | null, }; diff --git a/src/v2/MigrationDetails.ts b/src/v2/MigrationDetails.ts index 21f7798..3c99c3e 100644 --- a/src/v2/MigrationDetails.ts +++ b/src/v2/MigrationDetails.ts @@ -9,4 +9,4 @@ import type { SessionMigration } from "./SessionMigration"; import type { SkillMigration } from "./SkillMigration"; import type { SubagentMigration } from "./SubagentMigration"; -export type MigrationDetails = { plugins: Array, skills: 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, memory?: Array, }; diff --git a/src/v2/MisalignmentErrorDetails.ts b/src/v2/MisalignmentErrorDetails.ts new file mode 100644 index 0000000..3f6e449 --- /dev/null +++ b/src/v2/MisalignmentErrorDetails.ts @@ -0,0 +1,18 @@ +// 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 { MisalignmentSteer } from "./MisalignmentSteer"; + +export type MisalignmentErrorDetails = { +/** + * Open-ended classification; clients must accept categories added by Responses. + */ +errorType: string | null, +/** + * A substantive localized explanation is required before offering continuation. + */ +detailedExplanation: string | null, +/** + * Instruction to submit as the next turn's user input if continuation is confirmed. + */ +steer: MisalignmentSteer | null, }; diff --git a/src/v2/MisalignmentSteer.ts b/src/v2/MisalignmentSteer.ts new file mode 100644 index 0000000..f0c4304 --- /dev/null +++ b/src/v2/MisalignmentSteer.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 MisalignmentSteer = { message: string, }; diff --git a/src/v2/Model.ts b/src/v2/Model.ts index e9dbf15..29defcd 100644 --- a/src/v2/Model.ts +++ b/src/v2/Model.ts @@ -6,9 +6,14 @@ import type { ReasoningEffort } from "../ReasoningEffort"; import type { ModelAvailabilityNux } from "./ModelAvailabilityNux"; import type { ModelServiceTier } from "./ModelServiceTier"; import type { ModelUpgradeInfo } from "./ModelUpgradeInfo"; +import type { MultiAgentVersion } from "./MultiAgentVersion"; import type { ReasoningEffortOption } from "./ReasoningEffortOption"; -export type Model = { id: string, model: string, upgrade: string | null, upgradeInfo: ModelUpgradeInfo | null, availabilityNux: ModelAvailabilityNux | null, displayName: string, description: string, hidden: boolean, supportedReasoningEfforts: Array, defaultReasoningEffort: ReasoningEffort, inputModalities: Array, supportsPersonality: boolean, +export type Model = { id: string, model: string, upgrade: string | null, upgradeInfo: ModelUpgradeInfo | null, availabilityNux: ModelAvailabilityNux | null, displayName: string, description: string, modelSpecialty: string | null, hidden: boolean, supportedReasoningEfforts: Array, defaultReasoningEffort: ReasoningEffort, inputModalities: Array, supportsPersonality: boolean, +/** + * Multi-agent runtime declared by this model, when available. + */ +multiAgentVersion: MultiAgentVersion | null, /** * Deprecated: use `serviceTiers` instead. */ diff --git a/src/v2/ModelUpgradeInfo.ts b/src/v2/ModelUpgradeInfo.ts index 82d73e9..8374735 100644 --- a/src/v2/ModelUpgradeInfo.ts +++ b/src/v2/ModelUpgradeInfo.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 ModelUpgradeInfo = { model: string, upgradeCopy: string | null, modelLink: string | null, migrationMarkdown: string | null, }; +export type ModelUpgradeInfo = { model: string, upgradeCopy: string | null, modelLink: string | null, migrationMarkdown: string | null, +/** + * Informational Unix timestamp for this upgrade's scheduled retirement, if known. + */ +retirementAt: number | null, }; diff --git a/src/v2/MultiAgentVersion.ts b/src/v2/MultiAgentVersion.ts new file mode 100644 index 0000000..b71323e --- /dev/null +++ b/src/v2/MultiAgentVersion.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. + +/** + * Multi-agent runtime supported by a model. + */ +export type MultiAgentVersion = "disabled" | "v1" | "v2"; diff --git a/src/v2/PluginDetail.ts b/src/v2/PluginDetail.ts index ab2e3fd..d4bf3f8 100644 --- a/src/v2/PluginDetail.ts +++ b/src/v2/PluginDetail.ts @@ -6,6 +6,7 @@ import type { AppSummary } from "./AppSummary"; import type { AppTemplateSummary } from "./AppTemplateSummary"; import type { PluginHookSummary } from "./PluginHookSummary"; import type { PluginSummary } from "./PluginSummary"; +import type { ScheduledTaskSummary } from "./ScheduledTaskSummary"; import type { SkillSummary } from "./SkillSummary"; -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, }; +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, scheduledTasks: Array | null, }; diff --git a/src/v2/PluginDisabledReason.ts b/src/v2/PluginDisabledReason.ts new file mode 100644 index 0000000..01799dd --- /dev/null +++ b/src/v2/PluginDisabledReason.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 PluginDisabledReason = "disabled_by_admin" | "plan_not_eligible" | "required_app_unavailable" | "unknown"; diff --git a/src/v2/PluginInstallParams.ts b/src/v2/PluginInstallParams.ts index 257dc47..fae3fbd 100644 --- a/src/v2/PluginInstallParams.ts +++ b/src/v2/PluginInstallParams.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 { AbsolutePathBuf } from "../AbsolutePathBuf"; -export type PluginInstallParams = { marketplacePath?: AbsolutePathBuf | null, remoteMarketplaceName?: string | null, pluginName: string, }; +export type PluginInstallParams = { marketplacePath?: AbsolutePathBuf | null, remoteMarketplaceName?: string | null, +/** + * Client-generated identifier used to correlate one installation attempt. + */ +installAttemptId?: string | null, pluginName: string, }; diff --git a/src/v2/PluginListParams.ts b/src/v2/PluginListParams.ts index 6dd86b8..ecd1225 100644 --- a/src/v2/PluginListParams.ts +++ b/src/v2/PluginListParams.ts @@ -14,4 +14,8 @@ cwds?: Array | null, * Optional marketplace kind filter. When omitted, only local marketplaces are queried, plus * the default remote catalog when enabled by feature flag. */ -marketplaceKinds?: Array | null, }; +marketplaceKinds?: Array | null, +/** + * Whether the client requests a fresh remote plugin catalog fetch. + */ +forceRefetch?: boolean, }; diff --git a/src/v2/PluginReconcileChangedPlugin.ts b/src/v2/PluginReconcileChangedPlugin.ts new file mode 100644 index 0000000..1e36b01 --- /dev/null +++ b/src/v2/PluginReconcileChangedPlugin.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. + +/** + * Runtime categories affected by this change, not just capabilities currently present. + * Flags describe declarations before runtime policy filtering. Updates OR the old and new + * bundle flags; enablement changes and cached reinstalls use the cached bundle; removals retain + * the old bundle's flags. + */ +export type PluginReconcileChangedPlugin = { +/** + * Local plugin ID (`name@marketplace`), matching `PluginSummary.id`. + */ +id: string, hasMcps: boolean, hasApps: boolean, hasHooks: boolean, +/** + * Whether either bundle declares skill roots; not a validated inventory of enabled skills. + */ +hasSkills: boolean, }; diff --git a/src/v2/PluginReconcileParams.ts b/src/v2/PluginReconcileParams.ts new file mode 100644 index 0000000..8f647f4 --- /dev/null +++ b/src/v2/PluginReconcileParams.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 PluginReconcileParams = { +/** + * Optional client-provided reason recorded with the reconciliation attempt. + */ +reason?: string | null, }; diff --git a/src/v2/PluginReconcileResponse.ts b/src/v2/PluginReconcileResponse.ts new file mode 100644 index 0000000..f7d2c00 --- /dev/null +++ b/src/v2/PluginReconcileResponse.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. +import type { PluginReconcileChangedPlugin } from "./PluginReconcileChangedPlugin"; + +/** + * Bundle and installed-state changes observed by this pass, not a runtime-readiness + * acknowledgement or a cumulative diff since the client's last request. Other metadata-only + * changes are not listed. + */ +export type PluginReconcileResponse = { +/** + * Plugins affected by bundle changes, enablement changes, or removals. + * Installed-state changes compare against the previous cached snapshot, including + * cached reinstalls. Removal hints survive cache cleanup failures; unchanged plugins are omitted. + */ +changedPlugins: Array, +/** + * Backend remote plugin IDs whose bundle or identity update failed. + */ +failedRemotePluginIds: Array, +/** + * Subset of failures for which the requested bundle could not be materialized. + * A previously cached version may still be available. + */ +failedMaterializationRemotePluginIds: Array, }; diff --git a/src/v2/PluginSearchParams.ts b/src/v2/PluginSearchParams.ts new file mode 100644 index 0000000..be7a2f5 --- /dev/null +++ b/src/v2/PluginSearchParams.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 { AbsolutePathBuf } from "../AbsolutePathBuf"; +import type { PluginSearchScope } from "./PluginSearchScope"; + +export type PluginSearchParams = { searchTerm: string, scope?: PluginSearchScope | null, cwds?: Array | null, cursor?: string | null, limit?: number | null, }; diff --git a/src/v2/PluginSearchResponse.ts b/src/v2/PluginSearchResponse.ts new file mode 100644 index 0000000..35cbe59 --- /dev/null +++ b/src/v2/PluginSearchResponse.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 { PluginSearchResult } from "./PluginSearchResult"; + +export type PluginSearchResponse = { data: Array, nextCursor: string | null, }; diff --git a/src/v2/PluginSearchResult.ts b/src/v2/PluginSearchResult.ts new file mode 100644 index 0000000..94a2895 --- /dev/null +++ b/src/v2/PluginSearchResult.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 { AbsolutePathBuf } from "../AbsolutePathBuf"; +import type { PluginSummary } from "./PluginSummary"; + +export type PluginSearchResult = { plugin: PluginSummary, marketplaceName: string, marketplacePath: AbsolutePathBuf | null, }; diff --git a/src/v2/PluginSearchScope.ts b/src/v2/PluginSearchScope.ts new file mode 100644 index 0000000..0def10b --- /dev/null +++ b/src/v2/PluginSearchScope.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 PluginSearchScope = "global" | "workspace" | "personal"; diff --git a/src/v2/PluginShareContext.ts b/src/v2/PluginShareContext.ts index 99b8f46..24445c8 100644 --- a/src/v2/PluginShareContext.ts +++ b/src/v2/PluginShareContext.ts @@ -8,4 +8,4 @@ export type PluginShareContext = { remotePluginId: string, /** * Version of the remote shared plugin release when available. */ -remoteVersion: string | null, discoverability: PluginShareDiscoverability | null, shareUrl: string | null, creatorAccountUserId: string | null, creatorName: string | null, sharePrincipals: Array | null, }; +remoteVersion: string | null, discoverability: PluginShareDiscoverability | null, shareUrl: string | null, creatorAccountUserId: string | null, creatorName: string | null, sharePrincipals: Array | null, canPublishToWorkspace: boolean | null, }; diff --git a/src/v2/PluginShareSaveResponse.ts b/src/v2/PluginShareSaveResponse.ts index b53ace0..fba7630 100644 --- a/src/v2/PluginShareSaveResponse.ts +++ b/src/v2/PluginShareSaveResponse.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 PluginShareSaveResponse = { remotePluginId: string, shareUrl: string, }; +export type PluginShareSaveResponse = { remotePluginId: string, shareUrl: string, canPublishToWorkspace: boolean | null, }; diff --git a/src/v2/PluginShareUpdateDiscoverability.ts b/src/v2/PluginShareUpdateDiscoverability.ts index fd60198..767acae 100644 --- a/src/v2/PluginShareUpdateDiscoverability.ts +++ b/src/v2/PluginShareUpdateDiscoverability.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 PluginShareUpdateDiscoverability = "UNLISTED" | "PRIVATE"; +export type PluginShareUpdateDiscoverability = "UNLISTED" | "PRIVATE" | "LISTED"; diff --git a/src/v2/PluginSummary.ts b/src/v2/PluginSummary.ts index 10fd5aa..6dedc1b 100644 --- a/src/v2/PluginSummary.ts +++ b/src/v2/PluginSummary.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 { PluginAuthPolicy } from "./PluginAuthPolicy"; import type { PluginAvailability } from "./PluginAvailability"; +import type { PluginDisabledReason } from "./PluginDisabledReason"; import type { PluginInstallPolicy } from "./PluginInstallPolicy"; import type { PluginInstallPolicySource } from "./PluginInstallPolicySource"; import type { PluginInterface } from "./PluginInterface"; @@ -25,8 +26,20 @@ 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, installPolicySource: PluginInstallPolicySource | null, authPolicy: PluginAuthPolicy, +shareContext: PluginShareContext | null, source: PluginSource, installed: boolean, +/** + * Unix timestamp in seconds when the remote plugin was installed, when available. + */ +installedAt: number | null, enabled: boolean, installPolicy: PluginInstallPolicy, installPolicySource: PluginInstallPolicySource | null, mustShowInstallationInterstitial: boolean | null, authPolicy: PluginAuthPolicy, /** * Availability state for installing and using the plugin. */ -availability: PluginAvailability, interface: PluginInterface | null, keywords: Array, }; +availability: PluginAvailability, +/** + * Why the remote plugin is unavailable, when provided by plugin-service. + */ +disabledReason: PluginDisabledReason | null, +/** + * Raw plugin-service plan identifiers eligible to install the plugin. + */ +eligiblePlanTypes: Array | null, interface: PluginInterface | null, keywords: Array, }; diff --git a/src/v2/Project.ts b/src/v2/Project.ts new file mode 100644 index 0000000..7d40f67 --- /dev/null +++ b/src/v2/Project.ts @@ -0,0 +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 { ProjectRoot } from "./ProjectRoot"; + +export type Project = { id: string, name: string, roots: Array, metadata: { [key in string]?: string }, position: number, createdAt: number, updatedAt: number, +/** + * Newest non-archived member thread's recency, in Unix seconds; null when none exist. + */ +recencyAt: number | null, }; diff --git a/src/v2/ProjectChangeType.ts b/src/v2/ProjectChangeType.ts new file mode 100644 index 0000000..7c589c0 --- /dev/null +++ b/src/v2/ProjectChangeType.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 ProjectChangeType = "created" | "updated" | "deleted"; diff --git a/src/v2/ProjectChangedNotification.ts b/src/v2/ProjectChangedNotification.ts new file mode 100644 index 0000000..ed61bdb --- /dev/null +++ b/src/v2/ProjectChangedNotification.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 { ProjectChangeType } from "./ProjectChangeType"; + +export type ProjectChangedNotification = { projectId: string, changeType: ProjectChangeType, }; diff --git a/src/v2/ProjectCreateParams.ts b/src/v2/ProjectCreateParams.ts new file mode 100644 index 0000000..9996eff --- /dev/null +++ b/src/v2/ProjectCreateParams.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 { ProjectRoot } from "./ProjectRoot"; + +export type ProjectCreateParams = { name: string, roots: Array, metadata?: { [key in string]?: string } | null, idempotencyKey: string, }; diff --git a/src/v2/ProjectCreateResponse.ts b/src/v2/ProjectCreateResponse.ts new file mode 100644 index 0000000..e10467f --- /dev/null +++ b/src/v2/ProjectCreateResponse.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 { Project } from "./Project"; + +export type ProjectCreateResponse = { project: Project, }; diff --git a/src/v2/ProjectDeleteParams.ts b/src/v2/ProjectDeleteParams.ts new file mode 100644 index 0000000..a6c1787 --- /dev/null +++ b/src/v2/ProjectDeleteParams.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 ProjectDeleteParams = { projectId: string, }; diff --git a/src/v2/ProjectDeleteResponse.ts b/src/v2/ProjectDeleteResponse.ts new file mode 100644 index 0000000..772fd2d --- /dev/null +++ b/src/v2/ProjectDeleteResponse.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 ProjectDeleteResponse = Record; diff --git a/src/v2/ProjectImportParams.ts b/src/v2/ProjectImportParams.ts new file mode 100644 index 0000000..e596e61 --- /dev/null +++ b/src/v2/ProjectImportParams.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 { ProjectRoot } from "./ProjectRoot"; + +export type ProjectImportParams = { name: string, roots: Array, metadata?: { [key in string]?: string } | null, threads?: Array | null, idempotencyKey: string, }; diff --git a/src/v2/ProjectImportResponse.ts b/src/v2/ProjectImportResponse.ts new file mode 100644 index 0000000..140014f --- /dev/null +++ b/src/v2/ProjectImportResponse.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 { Project } from "./Project"; + +export type ProjectImportResponse = { project: Project, }; diff --git a/src/v2/ProjectListParams.ts b/src/v2/ProjectListParams.ts new file mode 100644 index 0000000..6b9a312 --- /dev/null +++ b/src/v2/ProjectListParams.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. +import type { ProjectSortKey } from "./ProjectSortKey"; +import type { SortDirection } from "./SortDirection"; + +export type ProjectListParams = { cursor?: string | null, limit?: number | null, +/** + * Defaults to position. Recency sorting always places empty projects last. + */ +sortKey?: ProjectSortKey | null, +/** + * Requires sortKey. Defaults to asc for position and desc for recencyAt. + */ +sortDirection?: SortDirection | null, }; diff --git a/src/v2/ProjectListResponse.ts b/src/v2/ProjectListResponse.ts new file mode 100644 index 0000000..4a8f0c3 --- /dev/null +++ b/src/v2/ProjectListResponse.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 { Project } from "./Project"; + +export type ProjectListResponse = { data: Array, nextCursor: string | null, }; diff --git a/src/v2/ProjectMoveParams.ts b/src/v2/ProjectMoveParams.ts new file mode 100644 index 0000000..8fce365 --- /dev/null +++ b/src/v2/ProjectMoveParams.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 ProjectMoveParams = { projectId: string, beforeProjectId?: string | null, }; diff --git a/src/v2/ProjectMoveResponse.ts b/src/v2/ProjectMoveResponse.ts new file mode 100644 index 0000000..38a1485 --- /dev/null +++ b/src/v2/ProjectMoveResponse.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 ProjectMoveResponse = Record; diff --git a/src/v2/ProjectReadParams.ts b/src/v2/ProjectReadParams.ts new file mode 100644 index 0000000..0c7d763 --- /dev/null +++ b/src/v2/ProjectReadParams.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 ProjectReadParams = { projectId: string, }; diff --git a/src/v2/ProjectReadResponse.ts b/src/v2/ProjectReadResponse.ts new file mode 100644 index 0000000..ea5ecf0 --- /dev/null +++ b/src/v2/ProjectReadResponse.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 { Project } from "./Project"; + +export type ProjectReadResponse = { project: Project, }; diff --git a/src/v2/ProjectRoot.ts b/src/v2/ProjectRoot.ts new file mode 100644 index 0000000..3b3718a --- /dev/null +++ b/src/v2/ProjectRoot.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 ProjectRoot = { path: AbsolutePathBuf, }; diff --git a/src/v2/ProjectSortKey.ts b/src/v2/ProjectSortKey.ts new file mode 100644 index 0000000..de6252a --- /dev/null +++ b/src/v2/ProjectSortKey.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 ProjectSortKey = "position" | "recencyAt"; diff --git a/src/v2/ProjectUpdateParams.ts b/src/v2/ProjectUpdateParams.ts new file mode 100644 index 0000000..df1823c --- /dev/null +++ b/src/v2/ProjectUpdateParams.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 { ProjectRoot } from "./ProjectRoot"; + +export type ProjectUpdateParams = { projectId: string, name?: string | null, roots?: Array | null, metadata?: { [key in string]?: string } | null, }; diff --git a/src/v2/ProjectUpdateResponse.ts b/src/v2/ProjectUpdateResponse.ts new file mode 100644 index 0000000..5657b9e --- /dev/null +++ b/src/v2/ProjectUpdateResponse.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 { Project } from "./Project"; + +export type ProjectUpdateResponse = { project: Project, }; diff --git a/src/v2/QueuedSubmission.ts b/src/v2/QueuedSubmission.ts new file mode 100644 index 0000000..f364b8c --- /dev/null +++ b/src/v2/QueuedSubmission.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 { UserInput } from "./UserInput"; + +export type QueuedSubmission = { id: string, input: Array, clientUserMessageId: string, }; diff --git a/src/v2/RateLimitSnapshot.ts b/src/v2/RateLimitSnapshot.ts index c1e3953..13c1604 100644 --- a/src/v2/RateLimitSnapshot.ts +++ b/src/v2/RateLimitSnapshot.ts @@ -7,4 +7,8 @@ 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, individualLimit: SpendControlLimitSnapshot | 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, +/** + * Backend-reported spend-control state. `None` is unavailable, not a sparse-update recovery. + */ +spendControlReached: boolean | null, planType: PlanType | null, rateLimitReachedType: RateLimitReachedType | null, }; diff --git a/src/v2/RawResponseCompletedNotification.ts b/src/v2/RawResponseCompletedNotification.ts new file mode 100644 index 0000000..a442f75 --- /dev/null +++ b/src/v2/RawResponseCompletedNotification.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 { ResponseUsageMetadata } from "./ResponseUsageMetadata"; +import type { TokenUsageBreakdown } from "./TokenUsageBreakdown"; + +/** + * Internal-only notification containing the exact usage from one upstream + * Responses API completion. + */ +export type RawResponseCompletedNotification = { threadId: string, turnId: string, responseId: string, usage: TokenUsageBreakdown | null, usageMetadata: ResponseUsageMetadata | null, }; diff --git a/src/v2/ResponseUsageMetadata.ts b/src/v2/ResponseUsageMetadata.ts new file mode 100644 index 0000000..34b492b --- /dev/null +++ b/src/v2/ResponseUsageMetadata.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"; + +/** + * Usage metadata reported for one upstream response. + */ +export type ResponseUsageMetadata = { amount: string | null, metadata: JsonValue | null, }; diff --git a/src/v2/ScheduledTaskSchedule.ts b/src/v2/ScheduledTaskSchedule.ts new file mode 100644 index 0000000..c817127 --- /dev/null +++ b/src/v2/ScheduledTaskSchedule.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 { ScheduledTaskWeekday } from "./ScheduledTaskWeekday"; + +export type ScheduledTaskSchedule = { "type": "hourly", intervalHours: number, days: Array | null, } | { "type": "daily", time: string, } | { "type": "weekdays", time: string, } | { "type": "weekly", days: Array, time: string, }; diff --git a/src/v2/ScheduledTaskSummary.ts b/src/v2/ScheduledTaskSummary.ts new file mode 100644 index 0000000..91f7f95 --- /dev/null +++ b/src/v2/ScheduledTaskSummary.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 { ScheduledTaskSchedule } from "./ScheduledTaskSchedule"; + +export type ScheduledTaskSummary = { key: string, name: string, prompt: string, schedule: ScheduledTaskSchedule, }; diff --git a/src/v2/ScheduledTaskWeekday.ts b/src/v2/ScheduledTaskWeekday.ts new file mode 100644 index 0000000..bf21096 --- /dev/null +++ b/src/v2/ScheduledTaskWeekday.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 ScheduledTaskWeekday = "MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU"; diff --git a/src/v2/ServerDiagnosticsGauge.ts b/src/v2/ServerDiagnosticsGauge.ts new file mode 100644 index 0000000..df4ab12 --- /dev/null +++ b/src/v2/ServerDiagnosticsGauge.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 ServerDiagnosticsGauge = { name: string, value: number, }; diff --git a/src/v2/ServerDiagnosticsParams.ts b/src/v2/ServerDiagnosticsParams.ts new file mode 100644 index 0000000..aa1d659 --- /dev/null +++ b/src/v2/ServerDiagnosticsParams.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 ServerDiagnosticsParams = Record; diff --git a/src/v2/ServerDiagnosticsProcess.ts b/src/v2/ServerDiagnosticsProcess.ts new file mode 100644 index 0000000..5fc4e79 --- /dev/null +++ b/src/v2/ServerDiagnosticsProcess.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 ServerDiagnosticsProcess = { id: number, residentMemoryBytes: number | null, physicalFootprintBytes: number | null, }; diff --git a/src/v2/ServerDiagnosticsResponse.ts b/src/v2/ServerDiagnosticsResponse.ts new file mode 100644 index 0000000..ee6c902 --- /dev/null +++ b/src/v2/ServerDiagnosticsResponse.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 { ServerDiagnosticsGauge } from "./ServerDiagnosticsGauge"; +import type { ServerDiagnosticsProcess } from "./ServerDiagnosticsProcess"; + +export type ServerDiagnosticsResponse = { process: ServerDiagnosticsProcess, gauges: Array, }; diff --git a/src/v2/SkillInterface.ts b/src/v2/SkillInterface.ts index 2361afc..1ac1db8 100644 --- a/src/v2/SkillInterface.ts +++ b/src/v2/SkillInterface.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 SkillInterface = { displayName?: string, shortDescription?: string, iconSmall?: AbsolutePathBuf, iconLarge?: AbsolutePathBuf, brandColor?: string, defaultPrompt?: string, }; +export type SkillInterface = { displayName?: string, shortDescription?: string, iconSmall?: AbsolutePathBuf, iconLarge?: AbsolutePathBuf, +/** + * Remote small icon URL from the plugin catalog. + */ +iconSmallUrl: string | null, +/** + * Remote large icon URL from the plugin catalog. + */ +iconLargeUrl: string | null, brandColor?: string, defaultPrompt?: string, }; diff --git a/src/v2/SkillMetadata.ts b/src/v2/SkillMetadata.ts index e43484d..7428421 100644 --- a/src/v2/SkillMetadata.ts +++ b/src/v2/SkillMetadata.ts @@ -10,4 +10,8 @@ export type SkillMetadata = { name: string, description: string, /** * Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description. */ -shortDescription?: string, interface?: SkillInterface, dependencies?: SkillDependencies, path: AbsolutePathBuf, scope: SkillScope, enabled: boolean, }; +shortDescription?: string, interface?: SkillInterface, dependencies?: SkillDependencies, path: AbsolutePathBuf, scope: SkillScope, enabled: boolean, +/** + * Owning plugin ID, matching `PluginSummary.id`, when known. + */ +pluginId: string | null, }; diff --git a/src/v2/StrictReviewRequiredNotification.ts b/src/v2/StrictReviewRequiredNotification.ts new file mode 100644 index 0000000..cae1a57 --- /dev/null +++ b/src/v2/StrictReviewRequiredNotification.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 StrictReviewRequiredNotification = { threadId: string, turnId: string, +/** + * Unix timestamp (in milliseconds) when this review started. + */ +startedAtMs: number, }; diff --git a/src/v2/SubAgentActivityKind.ts b/src/v2/SubAgentActivityKind.ts index 5e3ce81..8dcacee 100644 --- a/src/v2/SubAgentActivityKind.ts +++ b/src/v2/SubAgentActivityKind.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 SubAgentActivityKind = "started" | "interacted" | "interrupted"; +export type SubAgentActivityKind = "started" | "interacted" | "interrupted" | "completed"; diff --git a/src/v2/Thread.ts b/src/v2/Thread.ts index 7e99428..ded7b7d 100644 --- a/src/v2/Thread.ts +++ b/src/v2/Thread.ts @@ -2,10 +2,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"; +import type { ReasoningEffort } from "../ReasoningEffort"; import type { GitInfo } from "./GitInfo"; import type { SessionSource } from "./SessionSource"; import type { ThreadExtra } from "./ThreadExtra"; import type { ThreadHistoryMode } from "./ThreadHistoryMode"; +import type { ThreadSection } from "./ThreadSection"; import type { ThreadSource } from "./ThreadSource"; import type { ThreadStatus } from "./ThreadStatus"; import type { Turn } from "./Turn"; @@ -39,6 +41,18 @@ preview: string, * Whether the thread is ephemeral and should not be materialized on disk. */ ephemeral: boolean, +/** + * The independently persisted section selected for this thread, if any. + */ +section: ThreadSection | null, +/** + * Unix timestamp in seconds when the thread entered its current section. + */ +sectionEnteredAt: number | null, +/** + * Canonical project assignment owned by app-server, if any. + */ +projectId: string | null, /** * Persisted thread history contract selected when this thread was created. */ @@ -47,6 +61,16 @@ historyMode: ThreadHistoryMode, * Model provider used for this thread (for example, 'openai'). */ modelProvider: string, +/** + * Current configured model when loaded, otherwise the latest persisted model. + * Null when unavailable. This is not per-turn execution telemetry. + */ +model: string | null, +/** + * Current configured reasoning effort when loaded, otherwise the latest persisted effort. + * Null when unset or unavailable. This is not per-turn execution telemetry. + */ +reasoningEffort: ReasoningEffort | null, /** * Unix timestamp (in seconds) when the thread was created. */ @@ -79,6 +103,11 @@ cliVersion: string, * Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.). */ source: SessionSource, +/** + * Whether the app server accepts direct turn input for this loaded thread. + * `None` means the capability is unavailable, such as for an unloaded stored thread. + */ +canAcceptDirectInput: boolean | null, /** * Optional analytics source classification for this thread. */ diff --git a/src/v2/ThreadBackgroundTerminal.ts b/src/v2/ThreadBackgroundTerminal.ts index b2e6e67..3d66667 100644 --- a/src/v2/ThreadBackgroundTerminal.ts +++ b/src/v2/ThreadBackgroundTerminal.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 ThreadBackgroundTerminal = { itemId: string, processId: string, command: string, cwd: AbsolutePathBuf, osPid: number | null, cpuPercent: number | null, rssKb: bigint | null, }; +export type ThreadBackgroundTerminal = { itemId: string, processId: string, command: string, cwd: LegacyAppPathString, osPid: number | null, cpuPercent: number | null, rssKb: bigint | null, }; diff --git a/src/v2/ThreadForkParams.ts b/src/v2/ThreadForkParams.ts index ec28721..5e0661f 100644 --- a/src/v2/ThreadForkParams.ts +++ b/src/v2/ThreadForkParams.ts @@ -26,6 +26,11 @@ export type ThreadForkParams = { threadId: string, * The referenced turn cannot be in progress. */ lastTurnId?: string | null, +/** + * Optional turn id to fork before, excluding that turn and all later turns. + * Cannot be combined with `last_turn_id`. + */ +beforeTurnId?: string | null, /** * [UNSTABLE] Specify the rollout path to fork from. * If specified, the thread_id param will be ignored. @@ -56,6 +61,14 @@ threadSource?: ThreadSource | null, /** * When true, return only thread metadata and live fork state without * populating `thread.turns`. This is useful when the client plans to call - * `thread/turns/list` immediately after forking. + * `thread/turns/list` immediately after forking. Full-history hydration + * is deprecated for paginated threads; use this with `thread/turns/list` + * and `thread/items/list` instead. + */ +excludeTurns?: boolean, +/** + * When true, carry the source thread's current goal into the fork without + * starting its initial automatic continuation. The next explicit turn owns + * the goal lifecycle, and normal automatic continuation resumes after it. */ -excludeTurns?: boolean, }; +deferGoalContinuation?: boolean, }; diff --git a/src/v2/ThreadItem.ts b/src/v2/ThreadItem.ts index a445385..ae8c00a 100644 --- a/src/v2/ThreadItem.ts +++ b/src/v2/ThreadItem.ts @@ -1,12 +1,16 @@ // 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 { FunctionCallOutputBody } from "../FunctionCallOutputBody"; import type { ImageGenerationItem } from "../ImageGenerationItem"; import type { LegacyAppPathString } from "../LegacyAppPathString"; import type { MessagePhase } from "../MessagePhase"; import type { ReasoningEffort } from "../ReasoningEffort"; +import type { SleepItem } from "../SleepItem"; import type { WebSearchItem } from "../WebSearchItem"; import type { JsonValue } from "../serde_json/JsonValue"; +import type { AgentMessageDelivery } from "./AgentMessageDelivery"; +import type { AsyncUserInputQuestion } from "./AsyncUserInputQuestion"; import type { CollabAgentState } from "./CollabAgentState"; import type { CollabAgentTool } from "./CollabAgentTool"; import type { CollabAgentToolCallStatus } from "./CollabAgentToolCallStatus"; @@ -26,7 +30,15 @@ import type { PatchApplyStatus } from "./PatchApplyStatus"; import type { SubAgentActivityKind } from "./SubAgentActivityKind"; import type { UserInput } from "./UserInput"; -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, +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, delivery: AgentMessageDelivery | null, questions: Array | null, } | { "type": "functionCallOutput", id: string, name: string, namespace: string | null, output: FunctionCallOutputBody, } | { "type": "plan", id: string, text: string, } | { "type": "reasoning", id: string, summary: Array, content: Array, } | { "type": "commandExecution", id: string, +/** + * Trusted first-party plugin id when this command resolves to one plugin script. + */ +pluginId: string | null, +/** + * Safe plugin-relative path when this command resolves to one plugin script. + */ +scriptPath: string | null, /** * The command to be executed. */ @@ -60,7 +72,7 @@ durationMs: number | null, } | { "type": "fileChange", id: string, changes: Arra /** * Deprecated: use `appContext.resourceUri` instead. */ -mcpAppResourceUri?: string, pluginId: string | null, result: McpToolCallResult | null, error: McpToolCallError | null, +mcpAppResourceUri?: string, pluginId: string | null, readOnlyHint: boolean | null, result: McpToolCallResult | null, error: McpToolCallError | null, /** * The duration of the MCP tool call in milliseconds. */ @@ -105,4 +117,4 @@ reasoningEffort: ReasoningEffort | null, /** * Last known status of the target agents, when available. */ -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, }; +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" } & SleepItem | { "type": "imageGeneration" } & ImageGenerationItem | { "type": "enteredReviewMode", id: string, review: string, } | { "type": "exitedReviewMode", id: string, review: string, } | { "type": "contextCompaction", id: string, }; diff --git a/src/v2/ThreadItemEntry.ts b/src/v2/ThreadItemEntry.ts new file mode 100644 index 0000000..c59564f --- /dev/null +++ b/src/v2/ThreadItemEntry.ts @@ -0,0 +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 { ThreadItem } from "./ThreadItem"; + +export type ThreadItemEntry = { +/** + * Turn containing this item. + */ +turnId: string, item: ThreadItem, }; diff --git a/src/v2/ThreadItemsListResponse.ts b/src/v2/ThreadItemsListResponse.ts index 4370e1f..7b176ff 100644 --- a/src/v2/ThreadItemsListResponse.ts +++ b/src/v2/ThreadItemsListResponse.ts @@ -1,9 +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 { ThreadItem } from "./ThreadItem"; +import type { ThreadItemEntry } from "./ThreadItemEntry"; -export type ThreadItemsListResponse = { 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 015f453..014ec7f 100644 --- a/src/v2/ThreadListParams.ts +++ b/src/v2/ThreadListParams.ts @@ -37,6 +37,16 @@ sourceKinds?: Array | null, * If false or null, only non-archived threads are returned. */ archived?: boolean | null, +/** + * Omit to include every section, set to `null` for unsectioned threads, + * or provide a section ID to return only threads in that section. + */ +sectionId?: string | null, +/** + * Omit to include every project, set to null for unassigned threads, + * or provide a project ID to return only threads in that project. + */ +projectId?: string | null, /** * Optional cwd filter or filters; when set, only threads whose session cwd * exactly matches one of these paths are returned. diff --git a/src/v2/ThreadMetadataUpdateParams.ts b/src/v2/ThreadMetadataUpdateParams.ts index bec4bc1..c757ed4 100644 --- a/src/v2/ThreadMetadataUpdateParams.ts +++ b/src/v2/ThreadMetadataUpdateParams.ts @@ -4,6 +4,11 @@ import type { ThreadMetadataGitInfoUpdateParams } from "./ThreadMetadataGitInfoUpdateParams"; export type ThreadMetadataUpdateParams = { threadId: string, +/** + * Omit to leave the project unchanged, use an empty string to clear it, + * or provide an existing project ID to assign it. + */ +projectId?: string | null, /** * Patch the stored Git metadata for this thread. * Omit a field to leave it unchanged, set it to `null` to clear it, or diff --git a/src/v2/ThreadProjectUpdatedNotification.ts b/src/v2/ThreadProjectUpdatedNotification.ts new file mode 100644 index 0000000..ca045f3 --- /dev/null +++ b/src/v2/ThreadProjectUpdatedNotification.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 ThreadProjectUpdatedNotification = { threadId: string, projectId: string | null, }; diff --git a/src/v2/ThreadQueueAddParams.ts b/src/v2/ThreadQueueAddParams.ts new file mode 100644 index 0000000..96449d1 --- /dev/null +++ b/src/v2/ThreadQueueAddParams.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 { UserInput } from "./UserInput"; + +export type ThreadQueueAddParams = { threadId: string, input: Array, clientUserMessageId: string, }; diff --git a/src/v2/ThreadQueueAddResponse.ts b/src/v2/ThreadQueueAddResponse.ts new file mode 100644 index 0000000..e06bb78 --- /dev/null +++ b/src/v2/ThreadQueueAddResponse.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 { QueuedSubmission } from "./QueuedSubmission"; + +export type ThreadQueueAddResponse = { queuedSubmission: QueuedSubmission, }; diff --git a/src/v2/ThreadQueueChangedNotification.ts b/src/v2/ThreadQueueChangedNotification.ts new file mode 100644 index 0000000..55fd1b2 --- /dev/null +++ b/src/v2/ThreadQueueChangedNotification.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 ThreadQueueChangedNotification = { threadId: string, }; diff --git a/src/v2/ThreadQueueDeleteParams.ts b/src/v2/ThreadQueueDeleteParams.ts new file mode 100644 index 0000000..2011451 --- /dev/null +++ b/src/v2/ThreadQueueDeleteParams.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 ThreadQueueDeleteParams = { threadId: string, queuedSubmissionId: string, }; diff --git a/src/v2/ThreadQueueDeleteResponse.ts b/src/v2/ThreadQueueDeleteResponse.ts new file mode 100644 index 0000000..49d0b63 --- /dev/null +++ b/src/v2/ThreadQueueDeleteResponse.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 ThreadQueueDeleteResponse = { deleted: boolean, }; diff --git a/src/v2/ThreadQueueListParams.ts b/src/v2/ThreadQueueListParams.ts new file mode 100644 index 0000000..fbe7191 --- /dev/null +++ b/src/v2/ThreadQueueListParams.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 ThreadQueueListParams = { threadId: string, +/** + * Opaque pagination cursor returned by a previous call. + */ +cursor?: string | null, +/** + * Optional page size; defaults to the standard thread-list page size. + */ +limit?: number | null, }; diff --git a/src/v2/ThreadQueueListResponse.ts b/src/v2/ThreadQueueListResponse.ts new file mode 100644 index 0000000..3f2b19c --- /dev/null +++ b/src/v2/ThreadQueueListResponse.ts @@ -0,0 +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 { QueuedSubmission } from "./QueuedSubmission"; + +export type ThreadQueueListResponse = { data: Array, +/** + * Opaque cursor for the next page, or `null` when no submissions remain. + */ +nextCursor: string | null, }; diff --git a/src/v2/ThreadQueueReorderParams.ts b/src/v2/ThreadQueueReorderParams.ts new file mode 100644 index 0000000..6cc01e6 --- /dev/null +++ b/src/v2/ThreadQueueReorderParams.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 ThreadQueueReorderParams = { threadId: string, queuedSubmissionIds: Array, }; diff --git a/src/v2/ThreadQueueReorderResponse.ts b/src/v2/ThreadQueueReorderResponse.ts new file mode 100644 index 0000000..3208aa5 --- /dev/null +++ b/src/v2/ThreadQueueReorderResponse.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 ThreadQueueReorderResponse = Record; diff --git a/src/v2/ThreadQueueStartParams.ts b/src/v2/ThreadQueueStartParams.ts new file mode 100644 index 0000000..aa85d27 --- /dev/null +++ b/src/v2/ThreadQueueStartParams.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 ThreadQueueStartParams = { threadId: string, queuedSubmissionId?: string | null, }; diff --git a/src/v2/ThreadQueueStartResponse.ts b/src/v2/ThreadQueueStartResponse.ts new file mode 100644 index 0000000..8c9e22a --- /dev/null +++ b/src/v2/ThreadQueueStartResponse.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 ThreadQueueStartResponse = { turn: Turn, }; diff --git a/src/v2/ThreadQueueUpdateParams.ts b/src/v2/ThreadQueueUpdateParams.ts new file mode 100644 index 0000000..3c2e331 --- /dev/null +++ b/src/v2/ThreadQueueUpdateParams.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 { UserInput } from "./UserInput"; + +export type ThreadQueueUpdateParams = { threadId: string, queuedSubmissionId: string, input: Array, }; diff --git a/src/v2/ThreadQueueUpdateResponse.ts b/src/v2/ThreadQueueUpdateResponse.ts new file mode 100644 index 0000000..1c41a49 --- /dev/null +++ b/src/v2/ThreadQueueUpdateResponse.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 { QueuedSubmission } from "./QueuedSubmission"; + +export type ThreadQueueUpdateResponse = { queuedSubmission: QueuedSubmission, }; diff --git a/src/v2/ThreadReadParams.ts b/src/v2/ThreadReadParams.ts index c26e896..9a17ee6 100644 --- a/src/v2/ThreadReadParams.ts +++ b/src/v2/ThreadReadParams.ts @@ -5,5 +5,8 @@ export type ThreadReadParams = { threadId: string, /** * When true, include turns and their items from rollout history. + * Full-history hydration is deprecated for paginated threads; prefer a + * metadata-only read and page with `thread/turns/list` and + * `thread/items/list`. */ includeTurns?: boolean, }; diff --git a/src/v2/ThreadRealtimeBemItemPresentation.ts b/src/v2/ThreadRealtimeBemItemPresentation.ts new file mode 100644 index 0000000..61a1193 --- /dev/null +++ b/src/v2/ThreadRealtimeBemItemPresentation.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 - how an existing agent item appears in a realtime conversation. + */ +export type ThreadRealtimeBemItemPresentation = { "type": "wholeItem" } | { "type": "inlineMarkdown" } | { "type": "inlineVisualization", index: number, }; diff --git a/src/v2/ThreadRealtimeInitialItem.ts b/src/v2/ThreadRealtimeInitialItem.ts new file mode 100644 index 0000000..6801b94 --- /dev/null +++ b/src/v2/ThreadRealtimeInitialItem.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 { ConversationTextRole } from "../ConversationTextRole"; + +/** + * EXPERIMENTAL - role-bearing text item included when a realtime V3 session starts. + */ +export type ThreadRealtimeInitialItem = { role: ConversationTextRole, text: string, }; diff --git a/src/v2/ThreadRealtimeItem.ts b/src/v2/ThreadRealtimeItem.ts new file mode 100644 index 0000000..5ac5de9 --- /dev/null +++ b/src/v2/ThreadRealtimeItem.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 { ThreadRealtimeBemItemPresentation } from "./ThreadRealtimeBemItemPresentation"; +import type { ThreadRealtimeSessionOutcome } from "./ThreadRealtimeSessionOutcome"; +import type { ThreadRealtimeTranscriptRole } from "./ThreadRealtimeTranscriptRole"; + +/** + * EXPERIMENTAL - a thread-scoped realtime item in the canonical timeline. + */ +export type ThreadRealtimeItem = { id: string, realtimeSessionId: string, } & ({ "type": "realtimeSessionStarted" } | { "type": "transcriptSegment", role: ThreadRealtimeTranscriptRole, text: string, } | { "type": "bemItemPromoted", turnId: string, itemId: string, presentation: ThreadRealtimeBemItemPresentation, } | { "type": "realtimeSessionClosed", outcome: ThreadRealtimeSessionOutcome, }); diff --git a/src/v2/ThreadRealtimeItemCompletedNotification.ts b/src/v2/ThreadRealtimeItemCompletedNotification.ts new file mode 100644 index 0000000..2a77b0c --- /dev/null +++ b/src/v2/ThreadRealtimeItemCompletedNotification.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 { ThreadRealtimeItem } from "./ThreadRealtimeItem"; + +/** + * EXPERIMENTAL - a realtime timeline item published after canonical commit. + */ +export type ThreadRealtimeItemCompletedNotification = { threadId: string, item: ThreadRealtimeItem, }; diff --git a/src/v2/ThreadRealtimeItemStartedNotification.ts b/src/v2/ThreadRealtimeItemStartedNotification.ts new file mode 100644 index 0000000..cec5b8b --- /dev/null +++ b/src/v2/ThreadRealtimeItemStartedNotification.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 { ThreadRealtimeItem } from "./ThreadRealtimeItem"; + +/** + * EXPERIMENTAL - a realtime timeline item started before its content streams. + */ +export type ThreadRealtimeItemStartedNotification = { threadId: string, item: ThreadRealtimeItem, }; diff --git a/src/v2/ThreadRealtimeItemTranscriptDeltaNotification.ts b/src/v2/ThreadRealtimeItemTranscriptDeltaNotification.ts new file mode 100644 index 0000000..550b55b --- /dev/null +++ b/src/v2/ThreadRealtimeItemTranscriptDeltaNotification.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 - text appended to an active realtime transcript item. + */ +export type ThreadRealtimeItemTranscriptDeltaNotification = { threadId: string, itemId: string, delta: string, }; diff --git a/src/v2/ThreadRealtimeSessionOutcome.ts b/src/v2/ThreadRealtimeSessionOutcome.ts new file mode 100644 index 0000000..c3c73df --- /dev/null +++ b/src/v2/ThreadRealtimeSessionOutcome.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 ThreadRealtimeSessionOutcome = "ended" | "failed"; diff --git a/src/v2/ThreadRealtimeStartParams.ts b/src/v2/ThreadRealtimeStartParams.ts index 9a1bbc5..f1b6212 100644 --- a/src/v2/ThreadRealtimeStartParams.ts +++ b/src/v2/ThreadRealtimeStartParams.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 { CodexResponseHandoffMode } from "../CodexResponseHandoffMode"; import type { RealtimeConversationVersion } from "../RealtimeConversationVersion"; import type { RealtimeOutputModality } from "../RealtimeOutputModality"; import type { RealtimeVoice } from "../RealtimeVoice"; +import type { ThreadRealtimeInitialItem } from "./ThreadRealtimeInitialItem"; import type { ThreadRealtimeStartTransport } from "./ThreadRealtimeStartTransport"; /** @@ -15,6 +17,11 @@ export type ThreadRealtimeStartParams = { threadId: string, * them automatically. Defaults to false. */ clientManagedHandoffs?: boolean | null, +/** + * Controls whether a realtime V3 delegation produces an acknowledgement filler. + * Omitted values preserve the Realtime API's default behavior. + */ +delegationAckFiller?: 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. @@ -29,11 +36,15 @@ codexResponsesAsItems?: boolean | null, */ 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. + * Selects how automatic Codex responses are routed in Frameless Bidi sessions. Omitted values + * default to `thinking`. Realtime V1 and V2 ignore this setting. */ -codexResponseHandoffPrefix?: string | null, +codexResponseHandoffMode?: CodexResponseHandoffMode | null, +/** + * Overrides BEM channel prefixes by `analysis`, `commentary`, or `final`. + * Omitted channels retain their default uppercase bracketed prefixes. + */ +codexResponseHandoffChannelPrefixes?: { [key in string]?: Array } | null, /** * Overrides the configured realtime model for this session only. */ @@ -46,7 +57,21 @@ 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, +includeStartupContext?: boolean | null, +/** + * Adds complete role-bearing text items to the initial Frameless Bidi session history. + * This is only supported by realtime V3 and is sent during session startup. Requests are + * limited to 128 items and 8,192 estimated text tokens in total. + */ +initialItems?: Array | null, +/** + * Developer instructions given to the backing Codex model when this realtime session starts. + */ +realtimeStartInstructions?: string | null, +/** + * Developer instructions given to the backing Codex model when this realtime session ends. + */ +realtimeEndInstructions?: string | null, prompt?: string | null | null, realtimeSessionId?: string | null, transport?: ThreadRealtimeStartTransport | null, /** * Overrides the configured realtime protocol version for this session only. */ diff --git a/src/v2/ThreadRealtimeStartTransport.ts b/src/v2/ThreadRealtimeStartTransport.ts index 339e1b1..eabc5ea 100644 --- a/src/v2/ThreadRealtimeStartTransport.ts +++ b/src/v2/ThreadRealtimeStartTransport.ts @@ -10,4 +10,8 @@ export type ThreadRealtimeStartTransport = { "type": "websocket" } | { "type": " * SDP offer generated by a WebRTC RTCPeerConnection after configuring audio and the * realtime events data channel. */ -sdp: string, }; +sdp: string, } | { "type": "existingCall", +/** + * Identifier of a realtime call already created and negotiated by the client. + */ +callId: string, }; diff --git a/src/v2/ThreadRealtimeTranscriptRole.ts b/src/v2/ThreadRealtimeTranscriptRole.ts new file mode 100644 index 0000000..d957a42 --- /dev/null +++ b/src/v2/ThreadRealtimeTranscriptRole.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 ThreadRealtimeTranscriptRole = "user" | "assistant"; diff --git a/src/v2/ThreadResumeParams.ts b/src/v2/ThreadResumeParams.ts index 5d29e97..8e19c93 100644 --- a/src/v2/ThreadResumeParams.ts +++ b/src/v2/ThreadResumeParams.ts @@ -61,7 +61,9 @@ permissions?: string | null, config?: { [key in string]?: JsonValue } | null, ba /** * When true, return only thread metadata and live-resume state without * populating `thread.turns`. This is useful when the client plans to call - * `thread/turns/list` immediately after resuming. + * `thread/turns/list` immediately after resuming. Full-history hydration + * is deprecated for paginated threads; use this with `thread/turns/list` + * and `thread/items/list` instead. */ excludeTurns?: boolean, /** diff --git a/src/v2/ThreadResumeResponse.ts b/src/v2/ThreadResumeResponse.ts index 75b6847..b7b3228 100644 --- a/src/v2/ThreadResumeResponse.ts +++ b/src/v2/ThreadResumeResponse.ts @@ -43,4 +43,18 @@ multiAgentMode: MultiAgentMode, /** * `thread/turns/list` page returned when requested by `initialTurnsPage`. */ -initialTurnsPage: TurnsPage | null, }; +initialTurnsPage: TurnsPage | null, +/** + * Opaque cursor for hydrating paginated turns backwards. + * + * Pass this as `cursor` to `thread/turns/list` with + * `sortDirection: "desc"`. The first page includes the turn identified by the cursor. + */ +turnsBackwardsCursor: string | null, +/** + * Opaque cursor for hydrating paginated items backwards. + * + * Pass this as `cursor` to `thread/items/list` with + * `sortDirection: "desc"`. The first page includes the item identified by the cursor. + */ +itemsBackwardsCursor: string | null, }; diff --git a/src/v2/ThreadRevertParams.ts b/src/v2/ThreadRevertParams.ts new file mode 100644 index 0000000..1090a5c --- /dev/null +++ b/src/v2/ThreadRevertParams.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. + +/** + * Replace a paginated thread's durable history with the prefix before one turn. + * + * This only changes persisted conversation history. It does not revert local file changes. + */ +export type ThreadRevertParams = { threadId: string, +/** + * Turn excluded from the replacement history, together with every later turn. + */ +beforeTurnId: string, }; diff --git a/src/v2/ThreadRevertResponse.ts b/src/v2/ThreadRevertResponse.ts new file mode 100644 index 0000000..afc389a --- /dev/null +++ b/src/v2/ThreadRevertResponse.ts @@ -0,0 +1,25 @@ +// 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 { Thread } from "./Thread"; + +export type ThreadRevertResponse = { +/** + * Updated loaded thread metadata. `turns` is always empty; hydrate retained history through + * `thread/turns/list`. + */ +thread: Thread, +/** + * Opaque cursor for hydrating paginated turns backwards. + * + * Pass this as `cursor` to `thread/turns/list` with + * `sortDirection: "desc"`. The first page includes the turn identified by the cursor. + */ +turnsBackwardsCursor: string | null, +/** + * Opaque cursor for hydrating paginated items backwards. + * + * Pass this as `cursor` to `thread/items/list` with + * `sortDirection: "desc"`. The first page includes the item identified by the cursor. + */ +itemsBackwardsCursor: string | null, }; diff --git a/src/v2/ThreadRevertedNotification.ts b/src/v2/ThreadRevertedNotification.ts new file mode 100644 index 0000000..803d1cc --- /dev/null +++ b/src/v2/ThreadRevertedNotification.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 ThreadRevertedNotification = { threadId: string, }; diff --git a/src/v2/ThreadSearchOccurrence.ts b/src/v2/ThreadSearchOccurrence.ts new file mode 100644 index 0000000..e856492 --- /dev/null +++ b/src/v2/ThreadSearchOccurrence.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 { ThreadSearchTextRange } from "./ThreadSearchTextRange"; + +/** + * One visible message occurrence returned by [`ThreadSearchOccurrencesResponse`]. + */ +export type ThreadSearchOccurrence = { turnId: string, itemId: string, snippet: string, +/** + * Match range within `snippet`, in UTF-16 code units. + */ +snippetMatchRange: ThreadSearchTextRange, +/** + * Opaque inclusive cursor accepted by `thread/turns/list` for this turn. + */ +turnCursor: string, }; diff --git a/src/v2/ThreadSearchOccurrencesParams.ts b/src/v2/ThreadSearchOccurrencesParams.ts new file mode 100644 index 0000000..58dbf4e --- /dev/null +++ b/src/v2/ThreadSearchOccurrencesParams.ts @@ -0,0 +1,21 @@ +// 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. + +/** + * Parameters for searching visible message occurrences within one paginated thread. + */ +export type ThreadSearchOccurrencesParams = { threadId: string, +/** + * Case-insensitive literal substring to find in visible user messages and final assistant + * messages. + */ +searchTerm: string, +/** + * Opaque cursor returned by a previous call for the same thread and search term. + */ +cursor?: string | null, +/** + * Optional occurrence page size. + */ +limit?: number | null, }; diff --git a/src/v2/ThreadSearchOccurrencesResponse.ts b/src/v2/ThreadSearchOccurrencesResponse.ts new file mode 100644 index 0000000..e65f194 --- /dev/null +++ b/src/v2/ThreadSearchOccurrencesResponse.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 { ThreadSearchOccurrence } from "./ThreadSearchOccurrence"; + +export type ThreadSearchOccurrencesResponse = { +/** + * Occurrences in chronological message order. + */ +data: Array, +/** + * Opaque cursor to continue after the last returned occurrence. + */ +nextCursor: string | null, }; diff --git a/src/v2/ThreadSearchParams.ts b/src/v2/ThreadSearchParams.ts index 4c548d5..338191c 100644 --- a/src/v2/ThreadSearchParams.ts +++ b/src/v2/ThreadSearchParams.ts @@ -2,7 +2,7 @@ // 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 { ThreadSortKey } from "./ThreadSortKey"; +import type { ThreadSearchSortKey } from "./ThreadSearchSortKey"; import type { ThreadSourceKind } from "./ThreadSourceKind"; export type ThreadSearchParams = { @@ -17,7 +17,7 @@ limit?: number | null, /** * Optional sort key; defaults to created_at. */ -sortKey?: ThreadSortKey | null, +sortKey?: ThreadSearchSortKey | null, /** * Optional sort direction; defaults to descending (newest first). */ diff --git a/src/v2/ThreadSearchSortKey.ts b/src/v2/ThreadSearchSortKey.ts new file mode 100644 index 0000000..4abf271 --- /dev/null +++ b/src/v2/ThreadSearchSortKey.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 ThreadSearchSortKey = "created_at" | "updated_at" | "recency_at"; diff --git a/src/v2/ThreadSearchTextRange.ts b/src/v2/ThreadSearchTextRange.ts new file mode 100644 index 0000000..bee1595 --- /dev/null +++ b/src/v2/ThreadSearchTextRange.ts @@ -0,0 +1,16 @@ +// 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. + +/** + * UTF-16 code-unit range within `snippet`. + */ +export type ThreadSearchTextRange = { +/** + * Inclusive UTF-16 code-unit offset. + */ +start: number, +/** + * Exclusive UTF-16 code-unit offset. + */ +end: number, }; diff --git a/src/v2/ThreadSection.ts b/src/v2/ThreadSection.ts new file mode 100644 index 0000000..17cde81 --- /dev/null +++ b/src/v2/ThreadSection.ts @@ -0,0 +1,21 @@ +// 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 { ThreadSectionAppearance } from "./ThreadSectionAppearance"; + +/** + * An independently persisted, user-visible thread section. + */ +export type ThreadSection = { +/** + * Opaque UUIDv7 identity that remains stable when the section is renamed. + */ +id: string, +/** + * The current user-visible section name. + */ +name: string, +/** + * Optional appearance synchronized across clients. + */ +appearance: ThreadSectionAppearance | null, }; diff --git a/src/v2/ThreadSectionAppearance.ts b/src/v2/ThreadSectionAppearance.ts new file mode 100644 index 0000000..c6eab73 --- /dev/null +++ b/src/v2/ThreadSectionAppearance.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. + +/** + * Extensible visual presentation for a custom thread section. + */ +export type ThreadSectionAppearance = { icon: string | null, color: string | null, }; diff --git a/src/v2/ThreadSectionCreateParams.ts b/src/v2/ThreadSectionCreateParams.ts new file mode 100644 index 0000000..e6272c3 --- /dev/null +++ b/src/v2/ThreadSectionCreateParams.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. +import type { ThreadSectionAppearance } from "./ThreadSectionAppearance"; + +/** + * Parameters for creating an independently persisted thread section. + */ +export type ThreadSectionCreateParams = { +/** + * The user-visible name of the section. + */ +name: string, appearance?: ThreadSectionAppearance | null, }; diff --git a/src/v2/ThreadSectionCreateResponse.ts b/src/v2/ThreadSectionCreateResponse.ts new file mode 100644 index 0000000..ef51ca0 --- /dev/null +++ b/src/v2/ThreadSectionCreateResponse.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 { ThreadSection } from "./ThreadSection"; + +/** + * The independently persisted section created by the server. + */ +export type ThreadSectionCreateResponse = { section: ThreadSection, }; diff --git a/src/v2/ThreadSectionDeleteParams.ts b/src/v2/ThreadSectionDeleteParams.ts new file mode 100644 index 0000000..2cb21bc --- /dev/null +++ b/src/v2/ThreadSectionDeleteParams.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. + +/** + * Parameters for deleting an independently persisted thread section. + */ +export type ThreadSectionDeleteParams = { +/** + * The stable, server-generated identity of the section to delete. + */ +sectionId: string, }; diff --git a/src/v2/ThreadSectionDeleteResponse.ts b/src/v2/ThreadSectionDeleteResponse.ts new file mode 100644 index 0000000..0ad58d0 --- /dev/null +++ b/src/v2/ThreadSectionDeleteResponse.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. + +/** + * Successful deletion does not return additional section data. + */ +export type ThreadSectionDeleteResponse = Record; diff --git a/src/v2/ThreadSectionListParams.ts b/src/v2/ThreadSectionListParams.ts new file mode 100644 index 0000000..57a28c7 --- /dev/null +++ b/src/v2/ThreadSectionListParams.ts @@ -0,0 +1,16 @@ +// 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. + +/** + * Parameters for listing independently persisted thread sections. + */ +export type ThreadSectionListParams = { +/** + * Opaque pagination cursor returned by a previous call. + */ +cursor?: string | null, +/** + * Maximum number of sections to return. + */ +limit?: number | null, }; diff --git a/src/v2/ThreadSectionListResponse.ts b/src/v2/ThreadSectionListResponse.ts new file mode 100644 index 0000000..08bebab --- /dev/null +++ b/src/v2/ThreadSectionListResponse.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. +import type { ThreadSection } from "./ThreadSection"; + +/** + * One page of independently persisted thread sections. + */ +export type ThreadSectionListResponse = { data: Array, +/** + * Opaque cursor for the next page, or `null` when no sections remain. + */ +nextCursor: string | null, }; diff --git a/src/v2/ThreadSectionMoveParams.ts b/src/v2/ThreadSectionMoveParams.ts new file mode 100644 index 0000000..b3b70cb --- /dev/null +++ b/src/v2/ThreadSectionMoveParams.ts @@ -0,0 +1,20 @@ +// 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. + +/** + * Parameters for moving a thread within a server-owned section ordering. + */ +export type ThreadSectionMoveParams = { +/** + * Thread to move into, within, or out of a section. + */ +threadId: string, +/** + * Destination section, or `null` to remove the thread from its section. + */ +sectionId: string | null, +/** + * Existing thread to insert before; omission or null appends to the section. + */ +beforeThreadId?: string | null, }; diff --git a/src/v2/ThreadSectionMoveResponse.ts b/src/v2/ThreadSectionMoveResponse.ts new file mode 100644 index 0000000..e9e0f43 --- /dev/null +++ b/src/v2/ThreadSectionMoveResponse.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 ThreadSectionMoveResponse = Record; diff --git a/src/v2/ThreadSectionUpdateParams.ts b/src/v2/ThreadSectionUpdateParams.ts new file mode 100644 index 0000000..1010200 --- /dev/null +++ b/src/v2/ThreadSectionUpdateParams.ts @@ -0,0 +1,21 @@ +// 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 { ThreadSectionAppearance } from "./ThreadSectionAppearance"; + +/** + * Parameters for updating an independently persisted thread section. + */ +export type ThreadSectionUpdateParams = { +/** + * The stable, server-generated identity of the section to update. + */ +sectionId: string, +/** + * The updated user-visible name of the section. + */ +name: string, +/** + * Omit to preserve appearance, use `null` to clear it, or provide a replacement. + */ +appearance?: ThreadSectionAppearance | null, }; diff --git a/src/v2/ThreadSectionUpdateResponse.ts b/src/v2/ThreadSectionUpdateResponse.ts new file mode 100644 index 0000000..54f4c15 --- /dev/null +++ b/src/v2/ThreadSectionUpdateResponse.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 { ThreadSection } from "./ThreadSection"; + +/** + * The independently persisted section after its name is updated. + */ +export type ThreadSectionUpdateResponse = { section: ThreadSection, }; diff --git a/src/v2/ThreadShellCommandParams.ts b/src/v2/ThreadShellCommandParams.ts index 2761dee..e1f87e1 100644 --- a/src/v2/ThreadShellCommandParams.ts +++ b/src/v2/ThreadShellCommandParams.ts @@ -9,4 +9,10 @@ export type ThreadShellCommandParams = { threadId: string, * such as pipes, redirects, and quoting. This runs unsandboxed with full * access rather than inheriting the thread sandbox policy. */ -command: string, }; +command: string, +/** + * Maximum execution time in milliseconds. Defaults to one hour when omitted + * or null. Must be non-negative; zero requests an immediate timeout, not + * unlimited execution. Does not affect the immediate RPC acknowledgement. + */ +timeoutMs?: number | null, }; diff --git a/src/v2/ThreadSortKey.ts b/src/v2/ThreadSortKey.ts index d93f1c4..21eae4e 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" | "recency_at"; +export type ThreadSortKey = "created_at" | "updated_at" | "recency_at" | "section_position"; diff --git a/src/v2/ThreadStartParams.ts b/src/v2/ThreadStartParams.ts index 9889d31..8912ec9 100644 --- a/src/v2/ThreadStartParams.ts +++ b/src/v2/ThreadStartParams.ts @@ -46,6 +46,11 @@ historyMode?: ThreadHistoryMode | null, sessionStartSource?: ThreadStartSource | * Optional client-supplied analytics source classification for this thread. */ threadSource?: ThreadSource | null, +/** + * Optional project identity for this new thread. Durable threads persist + * the assignment; ephemeral threads expose it only in live responses. + */ +projectId?: string | null, /** * Optional sticky environments for this thread. * diff --git a/src/v2/ThreadTimelineEntry.ts b/src/v2/ThreadTimelineEntry.ts new file mode 100644 index 0000000..f528548 --- /dev/null +++ b/src/v2/ThreadTimelineEntry.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. +import type { ThreadItem } from "./ThreadItem"; +import type { ThreadRealtimeItem } from "./ThreadRealtimeItem"; +import type { TurnError } from "./TurnError"; +import type { TurnStatus } from "./TurnStatus"; + +/** + * EXPERIMENTAL - one item or turn boundary in canonical rollout order. + */ +export type ThreadTimelineEntry = { "type": "item", position: number, turnId: string, item: ThreadItem, } | { "type": "realtime", position: number, item: ThreadRealtimeItem, } | { "type": "turnStarted", position: number, turnId: string, startedAt: number | null, } | { "type": "turnCompleted", position: number, turnId: string, status: TurnStatus, error: TurnError | null, startedAt: number | null, completedAt: number | null, durationMs: number | null, }; diff --git a/src/v2/ThreadTimelineListParams.ts b/src/v2/ThreadTimelineListParams.ts new file mode 100644 index 0000000..400fa6d --- /dev/null +++ b/src/v2/ThreadTimelineListParams.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 - list ordinary and realtime thread history in rollout order. + */ +export type ThreadTimelineListParams = { threadId: string, cursor?: string | null, limit?: number | null, }; diff --git a/src/v2/ThreadTimelineListResponse.ts b/src/v2/ThreadTimelineListResponse.ts new file mode 100644 index 0000000..c7b8e6c --- /dev/null +++ b/src/v2/ThreadTimelineListResponse.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 { ThreadTimelineEntry } from "./ThreadTimelineEntry"; + +/** + * EXPERIMENTAL - a bounded timeline page with its resolved opening voice state. + */ +export type ThreadTimelineListResponse = { data: Array, nextCursor: string | null, activeRealtimeSessionAtPageStart: string | null, }; diff --git a/src/v2/ThreadUsage.ts b/src/v2/ThreadUsage.ts new file mode 100644 index 0000000..1fcf444 --- /dev/null +++ b/src/v2/ThreadUsage.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 { ThreadUsageBreakdownGroup } from "./ThreadUsageBreakdownGroup"; + +export type ThreadUsage = { threadId: string, estimatedUsageCreditsMicros: bigint, estimatedUsageUsdMicros: bigint | null, groups: Array, }; diff --git a/src/v2/ThreadUsageBreakdownGroup.ts b/src/v2/ThreadUsageBreakdownGroup.ts new file mode 100644 index 0000000..e1e9593 --- /dev/null +++ b/src/v2/ThreadUsageBreakdownGroup.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 ThreadUsageBreakdownGroup = { model: string | null, reasoningEffort: string | null, speed: string | null, estimatedUsageCreditsMicros: bigint, netNewInputTokens: bigint | null, cachedInputTokens: bigint | null, inputTokens: bigint | null, outputTokens: bigint | null, totalTokens: bigint | null, }; diff --git a/src/v2/TokenUsageBreakdown.ts b/src/v2/TokenUsageBreakdown.ts index 1d4e408..dbb1b1f 100644 --- a/src/v2/TokenUsageBreakdown.ts +++ b/src/v2/TokenUsageBreakdown.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 TokenUsageBreakdown = { totalTokens: number, inputTokens: number, cachedInputTokens: number, outputTokens: number, reasoningOutputTokens: number, }; +export type TokenUsageBreakdown = { totalTokens: number, inputTokens: number, cachedInputTokens: number, cacheWriteInputTokens: number, outputTokens: number, reasoningOutputTokens: number, }; diff --git a/src/v2/ToolRequestUserInputParams.ts b/src/v2/ToolRequestUserInputParams.ts index 73ff8b6..135389f 100644 --- a/src/v2/ToolRequestUserInputParams.ts +++ b/src/v2/ToolRequestUserInputParams.ts @@ -6,4 +6,8 @@ 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, autoResolutionMs: number | null, }; +export type ToolRequestUserInputParams = { threadId: string, turnId: string, itemId: string, questions: Array, isBlocking: boolean, +/** + * @deprecated Use `isBlocking` to decide whether the request should block. + */ +autoResolutionMs: number | null, }; diff --git a/src/v2/TurnEnvironmentParams.ts b/src/v2/TurnEnvironmentParams.ts index cb93ba3..f51fcf3 100644 --- a/src/v2/TurnEnvironmentParams.ts +++ b/src/v2/TurnEnvironmentParams.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 { LegacyAppPathString } from "../LegacyAppPathString"; -export type TurnEnvironmentParams = { environmentId: string, cwd: LegacyAppPathString, }; +export type TurnEnvironmentParams = { environmentId: string, cwd: LegacyAppPathString, +/** + * Environment-native runtime workspace roots. Omitted defaults to `cwd`. + */ +runtimeWorkspaceRoots?: Array | null, }; diff --git a/src/v2/TurnError.ts b/src/v2/TurnError.ts index 765a8e0..2893b58 100644 --- a/src/v2/TurnError.ts +++ b/src/v2/TurnError.ts @@ -2,5 +2,10 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { CodexErrorInfo } from "./CodexErrorInfo"; +import type { MisalignmentErrorDetails } from "./MisalignmentErrorDetails"; -export type TurnError = { message: string, codexErrorInfo: CodexErrorInfo | null, additionalDetails: string | null, }; +export type TurnError = { message: string, codexErrorInfo: CodexErrorInfo | null, additionalDetails: string | null, +/** + * Optional public explanation and continuation instruction for a misalignment block. + */ +misalignment: MisalignmentErrorDetails | null, }; diff --git a/src/v2/TurnSettingsUpdateParams.ts b/src/v2/TurnSettingsUpdateParams.ts new file mode 100644 index 0000000..674d5d7 --- /dev/null +++ b/src/v2/TurnSettingsUpdateParams.ts @@ -0,0 +1,35 @@ +// 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"; +import type { ReasoningSummary } from "../ReasoningSummary"; +import type { ApprovalsReviewer } from "./ApprovalsReviewer"; + +/** + * Experimental settings changes for one running turn, not future turns. + * Unsupported fields are rejected rather than silently ignored. + * Any live task kind may accept publication. Child sessions and consumers of + * frozen initial settings are unchanged. + */ +export type TurnSettingsUpdateParams = { threadId: string, turnId: string, +/** + * Changes the active turn's reviewer without changing future thread settings. + * Already captured steps and pending approvals retain their original reviewer. + */ +approvalsReviewer?: ApprovalsReviewer | null, +/** + * Omission or `null` leaves the model unchanged. + */ +model?: string | null, +/** + * Omission or `null` leaves the effort unchanged. + */ +effort?: ReasoningEffort | null, +/** + * Omission or `null` leaves the summary preference unchanged. + */ +summary?: ReasoningSummary | null, +/** + * `null` clears the requested tier; omission leaves it unchanged. + */ +serviceTier?: string | null | null, }; diff --git a/src/v2/TurnSettingsUpdateResponse.ts b/src/v2/TurnSettingsUpdateResponse.ts new file mode 100644 index 0000000..952ada1 --- /dev/null +++ b/src/v2/TurnSettingsUpdateResponse.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 { TurnSettingsUpdateStatus } from "./TurnSettingsUpdateStatus"; + +export type TurnSettingsUpdateResponse = { status: TurnSettingsUpdateStatus, }; diff --git a/src/v2/TurnSettingsUpdateStatus.ts b/src/v2/TurnSettingsUpdateStatus.ts new file mode 100644 index 0000000..9c95c5f --- /dev/null +++ b/src/v2/TurnSettingsUpdateStatus.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 TurnSettingsUpdateStatus = "applied" | "targetUnavailable"; diff --git a/src/v2/TurnStartParams.ts b/src/v2/TurnStartParams.ts index 7203dc8..fbba68c 100644 --- a/src/v2/TurnStartParams.ts +++ b/src/v2/TurnStartParams.ts @@ -11,11 +11,18 @@ import type { JsonValue } from "../serde_json/JsonValue"; import type { AdditionalContextEntry } from "./AdditionalContextEntry"; import type { ApprovalsReviewer } from "./ApprovalsReviewer"; import type { AskForApproval } from "./AskForApproval"; +import type { CyberAccessProgram } from "./CyberAccessProgram"; import type { SandboxPolicy } from "./SandboxPolicy"; import type { TurnEnvironmentParams } from "./TurnEnvironmentParams"; +import type { TurnToolOutput } from "./TurnToolOutput"; import type { UserInput } from "./UserInput"; export type TurnStartParams = { threadId: string, clientUserMessageId?: string | null, input: Array, +/** + * Optional source classification for the caller that starts this turn. + * Ignored when this request steers an already-active turn. + */ +turnTrigger?: string | null, toolOutput?: TurnToolOutput | null, /** * Optional metadata to enrich Codex's ResponsesAPI turn metadata. * @@ -73,6 +80,12 @@ model?: string | null, * Override the service tier for this turn and subsequent turns. */ serviceTier?: string | null | null, +/** + * Override the service tier only when this request starts a new turn. + * Use "default" for standard speed. Omitted or null inherits the thread's tier. + * Does not change the thread's tier or a turn being steered. + */ +serviceTierForTurn?: string | null, /** * Override the reasoning effort for this turn and subsequent turns. */ @@ -101,4 +114,9 @@ collaborationMode?: CollaborationMode | null, /** * @deprecated Ignored. Use `effort: "ultra"` for proactive multi-agent behavior. */ -multiAgentMode?: MultiAgentMode | null, }; +multiAgentMode?: MultiAgentMode | null, +/** + * EXPERIMENTAL - Request a workspace-authorized cyber program for this + * turn. Omission preserves automatic behavior. This does not grant access. + */ +cyberAccessProgram?: CyberAccessProgram | null, }; diff --git a/src/v2/TurnToolOutput.ts b/src/v2/TurnToolOutput.ts new file mode 100644 index 0000000..77df888 --- /dev/null +++ b/src/v2/TurnToolOutput.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 { FunctionCallOutputBody } from "../FunctionCallOutputBody"; + +export type TurnToolOutput = { name: string, namespace: string | null, output: FunctionCallOutputBody, }; diff --git a/src/v2/UserInput.ts b/src/v2/UserInput.ts index 2ac37c5..c268cb4 100644 --- a/src/v2/UserInput.ts +++ b/src/v2/UserInput.ts @@ -8,4 +8,4 @@ export type UserInput = { "type": "text", text: string, /** * UI-defined spans within `text` used to render or persist special elements. */ -text_elements: Array, } | { "type": "image", detail?: ImageDetail, url: string, } | { "type": "localImage", detail?: ImageDetail, path: string, } | { "type": "skill", name: string, path: string, } | { "type": "mention", name: string, path: string, }; +text_elements: Array, } | { "type": "image", detail?: ImageDetail, url: string, } | { "type": "localImage", detail?: ImageDetail, path: string, } | { "type": "audio", url: string, } | { "type": "localAudio", path: string, } | { "type": "skill", name: string, path: string, } | { "type": "mention", name: string, path: string, }; diff --git a/src/v2/index.ts b/src/v2/index.ts index f9c24fe..8f9c034 100644 --- a/src/v2/index.ts +++ b/src/v2/index.ts @@ -14,10 +14,13 @@ export type { AdditionalContextKind } from "./AdditionalContextKind"; export type { AdditionalFileSystemPermissions } from "./AdditionalFileSystemPermissions"; export type { AdditionalNetworkPermissions } from "./AdditionalNetworkPermissions"; export type { AdditionalPermissionProfile } from "./AdditionalPermissionProfile"; +export type { AgentMessageDelivery } from "./AgentMessageDelivery"; export type { AgentMessageDeltaNotification } from "./AgentMessageDeltaNotification"; +export type { AllowDenyRequirement } from "./AllowDenyRequirement"; export type { AnalyticsConfig } from "./AnalyticsConfig"; export type { AppBranding } from "./AppBranding"; export type { AppInfo } from "./AppInfo"; +export type { AppLinksConfig } from "./AppLinksConfig"; export type { AppListUpdatedNotification } from "./AppListUpdatedNotification"; export type { AppMetadata } from "./AppMetadata"; export type { AppReview } from "./AppReview"; @@ -26,16 +29,36 @@ export type { AppSummary } from "./AppSummary"; export type { AppTemplateSummary } from "./AppTemplateSummary"; export type { AppTemplateUnavailableReason } from "./AppTemplateUnavailableReason"; export type { AppToolApproval } from "./AppToolApproval"; +export type { AppToolSummary } from "./AppToolSummary"; export type { AppToolsConfig } from "./AppToolsConfig"; export type { ApprovalsReviewer } from "./ApprovalsReviewer"; export type { AppsConfig } from "./AppsConfig"; export type { AppsDefaultConfig } from "./AppsDefaultConfig"; +export type { AppsInstalledParams } from "./AppsInstalledParams"; +export type { AppsInstalledResponse } from "./AppsInstalledResponse"; export type { AppsListParams } from "./AppsListParams"; export type { AppsListResponse } from "./AppsListResponse"; +export type { AppsReadParams } from "./AppsReadParams"; +export type { AppsReadResponse } from "./AppsReadResponse"; export type { AskForApproval } from "./AskForApproval"; +export type { AsyncUserInputQuestion } from "./AsyncUserInputQuestion"; export type { AttestationGenerateParams } from "./AttestationGenerateParams"; export type { AttestationGenerateResponse } from "./AttestationGenerateResponse"; +export type { AuthRecoveryNotification } from "./AuthRecoveryNotification"; export type { AutoReviewDecisionSource } from "./AutoReviewDecisionSource"; +export type { AutoReviewRequirements } from "./AutoReviewRequirements"; +export type { AwsCredentialType } from "./AwsCredentialType"; +export type { BedrockAwsProfile } from "./BedrockAwsProfile"; +export type { BedrockDiscoverParams } from "./BedrockDiscoverParams"; +export type { BedrockDiscoverResponse } from "./BedrockDiscoverResponse"; +export type { BedrockEnvironmentCredential } from "./BedrockEnvironmentCredential"; +export type { BedrockSetupParams } from "./BedrockSetupParams"; +export type { BedrockSetupResponse } from "./BedrockSetupResponse"; +export type { BrowserUseAccessApprovalLifetime } from "./BrowserUseAccessApprovalLifetime"; +export type { BrowserUseConfig } from "./BrowserUseConfig"; +export type { BrowserUseOriginPolicy } from "./BrowserUseOriginPolicy"; +export type { BrowserUseOriginPolicyConfig } from "./BrowserUseOriginPolicyConfig"; +export type { BrowserUseRequirements } from "./BrowserUseRequirements"; export type { ByteRange } from "./ByteRange"; export type { CancelLoginAccountParams } from "./CancelLoginAccountParams"; export type { CancelLoginAccountResponse } from "./CancelLoginAccountResponse"; @@ -44,6 +67,7 @@ export type { CapabilityRootLocation } from "./CapabilityRootLocation"; export type { ChatgptAuthTokensRefreshParams } from "./ChatgptAuthTokensRefreshParams"; export type { ChatgptAuthTokensRefreshReason } from "./ChatgptAuthTokensRefreshReason"; export type { ChatgptAuthTokensRefreshResponse } from "./ChatgptAuthTokensRefreshResponse"; +export type { CliAuthCredentialsStoreMode } from "./CliAuthCredentialsStoreMode"; export type { CodexErrorInfo } from "./CodexErrorInfo"; export type { CollabAgentState } from "./CollabAgentState"; export type { CollabAgentStatus } from "./CollabAgentStatus"; @@ -65,13 +89,21 @@ export type { CommandExecTerminateResponse } from "./CommandExecTerminateRespons export type { CommandExecWriteParams } from "./CommandExecWriteParams"; export type { CommandExecWriteResponse } from "./CommandExecWriteResponse"; export type { CommandExecutionApprovalDecision } from "./CommandExecutionApprovalDecision"; +export type { CommandExecutionApprovalKind } from "./CommandExecutionApprovalKind"; export type { CommandExecutionOutputDeltaNotification } from "./CommandExecutionOutputDeltaNotification"; export type { CommandExecutionRequestApprovalParams } from "./CommandExecutionRequestApprovalParams"; export type { CommandExecutionRequestApprovalResponse } from "./CommandExecutionRequestApprovalResponse"; export type { CommandExecutionSource } from "./CommandExecutionSource"; export type { CommandExecutionStatus } from "./CommandExecutionStatus"; export type { CommandMigration } from "./CommandMigration"; +export type { ComputerUseConfig } from "./ComputerUseConfig"; +export type { ComputerUseMacosConfig } from "./ComputerUseMacosConfig"; +export type { ComputerUseMacosRequirements } from "./ComputerUseMacosRequirements"; export type { ComputerUseRequirements } from "./ComputerUseRequirements"; +export type { ComputerUseWindowsConfig } from "./ComputerUseWindowsConfig"; +export type { ComputerUseWindowsExeConfig } from "./ComputerUseWindowsExeConfig"; +export type { ComputerUseWindowsExeRequirement } from "./ComputerUseWindowsExeRequirement"; +export type { ComputerUseWindowsRequirements } from "./ComputerUseWindowsRequirements"; export type { Config } from "./Config"; export type { ConfigBatchWriteParams } from "./ConfigBatchWriteParams"; export type { ConfigEdit } from "./ConfigEdit"; @@ -87,6 +119,7 @@ export type { ConfigWarningNotification } from "./ConfigWarningNotification"; export type { ConfigWriteResponse } from "./ConfigWriteResponse"; export type { ConfiguredHookHandler } from "./ConfiguredHookHandler"; export type { ConfiguredHookMatcherGroup } from "./ConfiguredHookMatcherGroup"; +export type { ConnectorMetadata } from "./ConnectorMetadata"; export type { ConsumeAccountRateLimitResetCreditOutcome } from "./ConsumeAccountRateLimitResetCreditOutcome"; export type { ConsumeAccountRateLimitResetCreditParams } from "./ConsumeAccountRateLimitResetCreditParams"; export type { ConsumeAccountRateLimitResetCreditResponse } from "./ConsumeAccountRateLimitResetCreditResponse"; @@ -94,7 +127,9 @@ export type { ContextCompactedNotification } from "./ContextCompactedNotificatio export type { CreditsSnapshot } from "./CreditsSnapshot"; export type { CurrentTimeReadParams } from "./CurrentTimeReadParams"; export type { CurrentTimeReadResponse } from "./CurrentTimeReadResponse"; +export type { CyberAccessProgram } from "./CyberAccessProgram"; export type { DeprecationNoticeNotification } from "./DeprecationNoticeNotification"; +export type { DesktopOnboardingEntrypoint } from "./DesktopOnboardingEntrypoint"; export type { DynamicToolCallOutputContentItem } from "./DynamicToolCallOutputContentItem"; export type { DynamicToolCallParams } from "./DynamicToolCallParams"; export type { DynamicToolCallResponse } from "./DynamicToolCallResponse"; @@ -105,9 +140,13 @@ export type { DynamicToolNamespaceTool } from "./DynamicToolNamespaceTool"; export type { DynamicToolSpec } from "./DynamicToolSpec"; export type { EnvironmentAddParams } from "./EnvironmentAddParams"; export type { EnvironmentAddResponse } from "./EnvironmentAddResponse"; +export type { EnvironmentConnectionNotification } from "./EnvironmentConnectionNotification"; export type { EnvironmentInfoParams } from "./EnvironmentInfoParams"; export type { EnvironmentInfoResponse } from "./EnvironmentInfoResponse"; export type { EnvironmentShellInfo } from "./EnvironmentShellInfo"; +export type { EnvironmentStatusKind } from "./EnvironmentStatusKind"; +export type { EnvironmentStatusParams } from "./EnvironmentStatusParams"; +export type { EnvironmentStatusResponse } from "./EnvironmentStatusResponse"; export type { ErrorNotification } from "./ErrorNotification"; export type { ExecPolicyAmendment } from "./ExecPolicyAmendment"; export type { ExperimentalFeature } from "./ExperimentalFeature"; @@ -121,6 +160,10 @@ export type { ExternalAgentConfigDetectResponse } from "./ExternalAgentConfigDet export type { ExternalAgentConfigImportCompletedNotification } from "./ExternalAgentConfigImportCompletedNotification"; export type { ExternalAgentConfigImportHistoriesReadResponse } from "./ExternalAgentConfigImportHistoriesReadResponse"; export type { ExternalAgentConfigImportHistory } from "./ExternalAgentConfigImportHistory"; +export type { ExternalAgentConfigImportHistoryRecordParams } from "./ExternalAgentConfigImportHistoryRecordParams"; +export type { ExternalAgentConfigImportHistoryRecordResponse } from "./ExternalAgentConfigImportHistoryRecordResponse"; +export type { ExternalAgentConfigImportHistoryRecordSuccessParams } from "./ExternalAgentConfigImportHistoryRecordSuccessParams"; +export type { ExternalAgentConfigImportHistoryRecordTypeResultParams } from "./ExternalAgentConfigImportHistoryRecordTypeResultParams"; export type { ExternalAgentConfigImportItemTypeFailure } from "./ExternalAgentConfigImportItemTypeFailure"; export type { ExternalAgentConfigImportItemTypeSuccess } from "./ExternalAgentConfigImportItemTypeSuccess"; export type { ExternalAgentConfigImportParams } from "./ExternalAgentConfigImportParams"; @@ -129,6 +172,11 @@ export type { ExternalAgentConfigImportResponse } from "./ExternalAgentConfigImp export type { ExternalAgentConfigImportTypeResult } from "./ExternalAgentConfigImportTypeResult"; export type { ExternalAgentConfigMigrationItem } from "./ExternalAgentConfigMigrationItem"; export type { ExternalAgentConfigMigrationItemType } from "./ExternalAgentConfigMigrationItemType"; +export type { ExternalAgentDetectedConnectorCandidate } from "./ExternalAgentDetectedConnectorCandidate"; +export type { ExternalAgentDetectedConnectorSource } from "./ExternalAgentDetectedConnectorSource"; +export type { ExternalAgentImportedConnectorCandidate } from "./ExternalAgentImportedConnectorCandidate"; +export type { ExternalAgentImportedConnectorSource } from "./ExternalAgentImportedConnectorSource"; +export type { FeedbackRequirements } from "./FeedbackRequirements"; export type { FeedbackUploadParams } from "./FeedbackUploadParams"; export type { FeedbackUploadResponse } from "./FeedbackUploadResponse"; export type { FileChangeApprovalDecision } from "./FileChangeApprovalDecision"; @@ -165,6 +213,7 @@ export type { FsWriteFileResponse } from "./FsWriteFileResponse"; export type { GetAccountParams } from "./GetAccountParams"; export type { GetAccountRateLimitsResponse } from "./GetAccountRateLimitsResponse"; export type { GetAccountResponse } from "./GetAccountResponse"; +export type { GetAccountTokenUsageParams } from "./GetAccountTokenUsageParams"; export type { GetAccountTokenUsageResponse } from "./GetAccountTokenUsageResponse"; export type { GetWorkspaceMessagesResponse } from "./GetWorkspaceMessagesResponse"; export type { GitInfo } from "./GitInfo"; @@ -195,6 +244,8 @@ export type { HookTrustStatus } from "./HookTrustStatus"; export type { HooksListEntry } from "./HooksListEntry"; export type { HooksListParams } from "./HooksListParams"; export type { HooksListResponse } from "./HooksListResponse"; +export type { InAppBrowserRequirements } from "./InAppBrowserRequirements"; +export type { InstalledApp } from "./InstalledApp"; export type { ItemCompletedNotification } from "./ItemCompletedNotification"; export type { ItemGuardianApprovalReviewCompletedNotification } from "./ItemGuardianApprovalReviewCompletedNotification"; export type { ItemGuardianApprovalReviewStartedNotification } from "./ItemGuardianApprovalReviewStartedNotification"; @@ -240,10 +291,18 @@ export type { McpElicitationUntitledMultiSelectEnumSchema } from "./McpElicitati export type { McpElicitationUntitledSingleSelectEnumSchema } from "./McpElicitationUntitledSingleSelectEnumSchema"; export type { McpResourceReadParams } from "./McpResourceReadParams"; export type { McpResourceReadResponse } from "./McpResourceReadResponse"; +export type { McpServerConnectionStatus } from "./McpServerConnectionStatus"; export type { McpServerElicitationAction } from "./McpServerElicitationAction"; export type { McpServerElicitationRequestParams } from "./McpServerElicitationRequestParams"; export type { McpServerElicitationRequestResponse } from "./McpServerElicitationRequestResponse"; +export type { McpServerEventNotification } from "./McpServerEventNotification"; +export type { McpServerEventStreamNotification } from "./McpServerEventStreamNotification"; +export type { McpServerEventStreamStartParams } from "./McpServerEventStreamStartParams"; +export type { McpServerEventStreamStartResponse } from "./McpServerEventStreamStartResponse"; +export type { McpServerEventStreamStopParams } from "./McpServerEventStreamStopParams"; +export type { McpServerEventStreamStopResponse } from "./McpServerEventStreamStopResponse"; export type { McpServerMigration } from "./McpServerMigration"; +export type { McpServerOauthClientRegistration } from "./McpServerOauthClientRegistration"; export type { McpServerOauthLoginCompletedNotification } from "./McpServerOauthLoginCompletedNotification"; export type { McpServerOauthLoginParams } from "./McpServerOauthLoginParams"; export type { McpServerOauthLoginResponse } from "./McpServerOauthLoginResponse"; @@ -265,6 +324,8 @@ export type { MemoryCitationEntry } from "./MemoryCitationEntry"; export type { MemoryResetResponse } from "./MemoryResetResponse"; export type { MergeStrategy } from "./MergeStrategy"; export type { MigrationDetails } from "./MigrationDetails"; +export type { MisalignmentErrorDetails } from "./MisalignmentErrorDetails"; +export type { MisalignmentSteer } from "./MisalignmentSteer"; export type { MockExperimentalMethodParams } from "./MockExperimentalMethodParams"; export type { MockExperimentalMethodResponse } from "./MockExperimentalMethodResponse"; export type { Model } from "./Model"; @@ -281,6 +342,7 @@ export type { ModelUpgradeInfo } from "./ModelUpgradeInfo"; export type { ModelVerification } from "./ModelVerification"; export type { ModelVerificationNotification } from "./ModelVerificationNotification"; export type { ModelsRequirements } from "./ModelsRequirements"; +export type { MultiAgentVersion } from "./MultiAgentVersion"; export type { NetworkAccess } from "./NetworkAccess"; export type { NetworkApprovalContext } from "./NetworkApprovalContext"; export type { NetworkApprovalProtocol } from "./NetworkApprovalProtocol"; @@ -304,6 +366,7 @@ export type { PlanDeltaNotification } from "./PlanDeltaNotification"; export type { PluginAuthPolicy } from "./PluginAuthPolicy"; export type { PluginAvailability } from "./PluginAvailability"; export type { PluginDetail } from "./PluginDetail"; +export type { PluginDisabledReason } from "./PluginDisabledReason"; export type { PluginHookSummary } from "./PluginHookSummary"; export type { PluginInstallParams } from "./PluginInstallParams"; export type { PluginInstallPolicy } from "./PluginInstallPolicy"; @@ -318,6 +381,13 @@ export type { PluginListResponse } from "./PluginListResponse"; export type { PluginMarketplaceEntry } from "./PluginMarketplaceEntry"; export type { PluginReadParams } from "./PluginReadParams"; export type { PluginReadResponse } from "./PluginReadResponse"; +export type { PluginReconcileChangedPlugin } from "./PluginReconcileChangedPlugin"; +export type { PluginReconcileParams } from "./PluginReconcileParams"; +export type { PluginReconcileResponse } from "./PluginReconcileResponse"; +export type { PluginSearchParams } from "./PluginSearchParams"; +export type { PluginSearchResponse } from "./PluginSearchResponse"; +export type { PluginSearchResult } from "./PluginSearchResult"; +export type { PluginSearchScope } from "./PluginSearchScope"; export type { PluginShareCheckoutParams } from "./PluginShareCheckoutParams"; export type { PluginShareCheckoutResponse } from "./PluginShareCheckoutResponse"; export type { PluginShareContext } from "./PluginShareContext"; @@ -356,6 +426,26 @@ export type { ProcessSpawnResponse } from "./ProcessSpawnResponse"; export type { ProcessTerminalSize } from "./ProcessTerminalSize"; export type { ProcessWriteStdinParams } from "./ProcessWriteStdinParams"; export type { ProcessWriteStdinResponse } from "./ProcessWriteStdinResponse"; +export type { Project } from "./Project"; +export type { ProjectChangeType } from "./ProjectChangeType"; +export type { ProjectChangedNotification } from "./ProjectChangedNotification"; +export type { ProjectCreateParams } from "./ProjectCreateParams"; +export type { ProjectCreateResponse } from "./ProjectCreateResponse"; +export type { ProjectDeleteParams } from "./ProjectDeleteParams"; +export type { ProjectDeleteResponse } from "./ProjectDeleteResponse"; +export type { ProjectImportParams } from "./ProjectImportParams"; +export type { ProjectImportResponse } from "./ProjectImportResponse"; +export type { ProjectListParams } from "./ProjectListParams"; +export type { ProjectListResponse } from "./ProjectListResponse"; +export type { ProjectMoveParams } from "./ProjectMoveParams"; +export type { ProjectMoveResponse } from "./ProjectMoveResponse"; +export type { ProjectReadParams } from "./ProjectReadParams"; +export type { ProjectReadResponse } from "./ProjectReadResponse"; +export type { ProjectRoot } from "./ProjectRoot"; +export type { ProjectSortKey } from "./ProjectSortKey"; +export type { ProjectUpdateParams } from "./ProjectUpdateParams"; +export type { ProjectUpdateResponse } from "./ProjectUpdateResponse"; +export type { QueuedSubmission } from "./QueuedSubmission"; export type { RateLimitReachedType } from "./RateLimitReachedType"; export type { RateLimitResetCredit } from "./RateLimitResetCredit"; export type { RateLimitResetCreditStatus } from "./RateLimitResetCreditStatus"; @@ -363,6 +453,7 @@ export type { RateLimitResetCreditsSummary } from "./RateLimitResetCreditsSummar export type { RateLimitResetType } from "./RateLimitResetType"; export type { RateLimitSnapshot } from "./RateLimitSnapshot"; export type { RateLimitWindow } from "./RateLimitWindow"; +export type { RawResponseCompletedNotification } from "./RawResponseCompletedNotification"; export type { RawResponseItemCompletedNotification } from "./RawResponseItemCompletedNotification"; export type { ReasoningEffortOption } from "./ReasoningEffortOption"; export type { ReasoningSummaryPartAddedNotification } from "./ReasoningSummaryPartAddedNotification"; @@ -387,6 +478,7 @@ export type { RemoteControlStatusChangedNotification } from "./RemoteControlStat export type { RemoteControlStatusReadResponse } from "./RemoteControlStatusReadResponse"; export type { RequestPermissionProfile } from "./RequestPermissionProfile"; export type { ResidencyRequirement } from "./ResidencyRequirement"; +export type { ResponseUsageMetadata } from "./ResponseUsageMetadata"; export type { ReviewDelivery } from "./ReviewDelivery"; export type { ReviewStartParams } from "./ReviewStartParams"; export type { ReviewStartResponse } from "./ReviewStartResponse"; @@ -394,9 +486,16 @@ export type { ReviewTarget } from "./ReviewTarget"; export type { SandboxMode } from "./SandboxMode"; export type { SandboxPolicy } from "./SandboxPolicy"; export type { SandboxWorkspaceWrite } from "./SandboxWorkspaceWrite"; +export type { ScheduledTaskSchedule } from "./ScheduledTaskSchedule"; +export type { ScheduledTaskSummary } from "./ScheduledTaskSummary"; +export type { ScheduledTaskWeekday } from "./ScheduledTaskWeekday"; export type { SelectedCapabilityRoot } from "./SelectedCapabilityRoot"; export type { SendAddCreditsNudgeEmailParams } from "./SendAddCreditsNudgeEmailParams"; export type { SendAddCreditsNudgeEmailResponse } from "./SendAddCreditsNudgeEmailResponse"; +export type { ServerDiagnosticsGauge } from "./ServerDiagnosticsGauge"; +export type { ServerDiagnosticsParams } from "./ServerDiagnosticsParams"; +export type { ServerDiagnosticsProcess } from "./ServerDiagnosticsProcess"; +export type { ServerDiagnosticsResponse } from "./ServerDiagnosticsResponse"; export type { ServerRequestResolvedNotification } from "./ServerRequestResolvedNotification"; export type { SessionMigration } from "./SessionMigration"; export type { SessionSource } from "./SessionSource"; @@ -418,6 +517,7 @@ export type { SkillsListParams } from "./SkillsListParams"; export type { SkillsListResponse } from "./SkillsListResponse"; export type { SortDirection } from "./SortDirection"; export type { SpendControlLimitSnapshot } from "./SpendControlLimitSnapshot"; +export type { StrictReviewRequiredNotification } from "./StrictReviewRequiredNotification"; export type { SubAgentActivityKind } from "./SubAgentActivityKind"; export type { SubagentMigration } from "./SubagentMigration"; export type { TerminalInteractionNotification } from "./TerminalInteractionNotification"; @@ -465,6 +565,7 @@ export type { ThreadIncrementElicitationResponse } from "./ThreadIncrementElicit export type { ThreadInjectItemsParams } from "./ThreadInjectItemsParams"; export type { ThreadInjectItemsResponse } from "./ThreadInjectItemsResponse"; export type { ThreadItem } from "./ThreadItem"; +export type { ThreadItemEntry } from "./ThreadItemEntry"; export type { ThreadItemsListParams } from "./ThreadItemsListParams"; export type { ThreadItemsListResponse } from "./ThreadItemsListResponse"; export type { ThreadListParams } from "./ThreadListParams"; @@ -477,6 +578,20 @@ export type { ThreadMetadataGitInfoUpdateParams } from "./ThreadMetadataGitInfoU export type { ThreadMetadataUpdateParams } from "./ThreadMetadataUpdateParams"; export type { ThreadMetadataUpdateResponse } from "./ThreadMetadataUpdateResponse"; export type { ThreadNameUpdatedNotification } from "./ThreadNameUpdatedNotification"; +export type { ThreadProjectUpdatedNotification } from "./ThreadProjectUpdatedNotification"; +export type { ThreadQueueAddParams } from "./ThreadQueueAddParams"; +export type { ThreadQueueAddResponse } from "./ThreadQueueAddResponse"; +export type { ThreadQueueChangedNotification } from "./ThreadQueueChangedNotification"; +export type { ThreadQueueDeleteParams } from "./ThreadQueueDeleteParams"; +export type { ThreadQueueDeleteResponse } from "./ThreadQueueDeleteResponse"; +export type { ThreadQueueListParams } from "./ThreadQueueListParams"; +export type { ThreadQueueListResponse } from "./ThreadQueueListResponse"; +export type { ThreadQueueReorderParams } from "./ThreadQueueReorderParams"; +export type { ThreadQueueReorderResponse } from "./ThreadQueueReorderResponse"; +export type { ThreadQueueStartParams } from "./ThreadQueueStartParams"; +export type { ThreadQueueStartResponse } from "./ThreadQueueStartResponse"; +export type { ThreadQueueUpdateParams } from "./ThreadQueueUpdateParams"; +export type { ThreadQueueUpdateResponse } from "./ThreadQueueUpdateResponse"; export type { ThreadReadParams } from "./ThreadReadParams"; export type { ThreadReadResponse } from "./ThreadReadResponse"; export type { ThreadRealtimeAppendAudioParams } from "./ThreadRealtimeAppendAudioParams"; @@ -486,13 +601,20 @@ export type { ThreadRealtimeAppendSpeechResponse } from "./ThreadRealtimeAppendS export type { ThreadRealtimeAppendTextParams } from "./ThreadRealtimeAppendTextParams"; export type { ThreadRealtimeAppendTextResponse } from "./ThreadRealtimeAppendTextResponse"; export type { ThreadRealtimeAudioChunk } from "./ThreadRealtimeAudioChunk"; +export type { ThreadRealtimeBemItemPresentation } from "./ThreadRealtimeBemItemPresentation"; export type { ThreadRealtimeClosedNotification } from "./ThreadRealtimeClosedNotification"; export type { ThreadRealtimeErrorNotification } from "./ThreadRealtimeErrorNotification"; +export type { ThreadRealtimeInitialItem } from "./ThreadRealtimeInitialItem"; +export type { ThreadRealtimeItem } from "./ThreadRealtimeItem"; export type { ThreadRealtimeItemAddedNotification } from "./ThreadRealtimeItemAddedNotification"; +export type { ThreadRealtimeItemCompletedNotification } from "./ThreadRealtimeItemCompletedNotification"; +export type { ThreadRealtimeItemStartedNotification } from "./ThreadRealtimeItemStartedNotification"; +export type { ThreadRealtimeItemTranscriptDeltaNotification } from "./ThreadRealtimeItemTranscriptDeltaNotification"; export type { ThreadRealtimeListVoicesParams } from "./ThreadRealtimeListVoicesParams"; export type { ThreadRealtimeListVoicesResponse } from "./ThreadRealtimeListVoicesResponse"; export type { ThreadRealtimeOutputAudioDeltaNotification } from "./ThreadRealtimeOutputAudioDeltaNotification"; export type { ThreadRealtimeSdpNotification } from "./ThreadRealtimeSdpNotification"; +export type { ThreadRealtimeSessionOutcome } from "./ThreadRealtimeSessionOutcome"; export type { ThreadRealtimeStartParams } from "./ThreadRealtimeStartParams"; export type { ThreadRealtimeStartResponse } from "./ThreadRealtimeStartResponse"; export type { ThreadRealtimeStartTransport } from "./ThreadRealtimeStartTransport"; @@ -501,14 +623,35 @@ export type { ThreadRealtimeStopParams } from "./ThreadRealtimeStopParams"; export type { ThreadRealtimeStopResponse } from "./ThreadRealtimeStopResponse"; export type { ThreadRealtimeTranscriptDeltaNotification } from "./ThreadRealtimeTranscriptDeltaNotification"; export type { ThreadRealtimeTranscriptDoneNotification } from "./ThreadRealtimeTranscriptDoneNotification"; +export type { ThreadRealtimeTranscriptRole } from "./ThreadRealtimeTranscriptRole"; export type { ThreadResumeInitialTurnsPageParams } from "./ThreadResumeInitialTurnsPageParams"; export type { ThreadResumeParams } from "./ThreadResumeParams"; export type { ThreadResumeResponse } from "./ThreadResumeResponse"; +export type { ThreadRevertParams } from "./ThreadRevertParams"; +export type { ThreadRevertResponse } from "./ThreadRevertResponse"; +export type { ThreadRevertedNotification } from "./ThreadRevertedNotification"; export type { ThreadRollbackParams } from "./ThreadRollbackParams"; export type { ThreadRollbackResponse } from "./ThreadRollbackResponse"; +export type { ThreadSearchOccurrence } from "./ThreadSearchOccurrence"; +export type { ThreadSearchOccurrencesParams } from "./ThreadSearchOccurrencesParams"; +export type { ThreadSearchOccurrencesResponse } from "./ThreadSearchOccurrencesResponse"; export type { ThreadSearchParams } from "./ThreadSearchParams"; export type { ThreadSearchResponse } from "./ThreadSearchResponse"; export type { ThreadSearchResult } from "./ThreadSearchResult"; +export type { ThreadSearchSortKey } from "./ThreadSearchSortKey"; +export type { ThreadSearchTextRange } from "./ThreadSearchTextRange"; +export type { ThreadSection } from "./ThreadSection"; +export type { ThreadSectionAppearance } from "./ThreadSectionAppearance"; +export type { ThreadSectionCreateParams } from "./ThreadSectionCreateParams"; +export type { ThreadSectionCreateResponse } from "./ThreadSectionCreateResponse"; +export type { ThreadSectionDeleteParams } from "./ThreadSectionDeleteParams"; +export type { ThreadSectionDeleteResponse } from "./ThreadSectionDeleteResponse"; +export type { ThreadSectionListParams } from "./ThreadSectionListParams"; +export type { ThreadSectionListResponse } from "./ThreadSectionListResponse"; +export type { ThreadSectionMoveParams } from "./ThreadSectionMoveParams"; +export type { ThreadSectionMoveResponse } from "./ThreadSectionMoveResponse"; +export type { ThreadSectionUpdateParams } from "./ThreadSectionUpdateParams"; +export type { ThreadSectionUpdateResponse } from "./ThreadSectionUpdateResponse"; export type { ThreadSetNameParams } from "./ThreadSetNameParams"; export type { ThreadSetNameResponse } from "./ThreadSetNameResponse"; export type { ThreadSettings } from "./ThreadSettings"; @@ -526,6 +669,9 @@ export type { ThreadStartSource } from "./ThreadStartSource"; export type { ThreadStartedNotification } from "./ThreadStartedNotification"; export type { ThreadStatus } from "./ThreadStatus"; export type { ThreadStatusChangedNotification } from "./ThreadStatusChangedNotification"; +export type { ThreadTimelineEntry } from "./ThreadTimelineEntry"; +export type { ThreadTimelineListParams } from "./ThreadTimelineListParams"; +export type { ThreadTimelineListResponse } from "./ThreadTimelineListResponse"; export type { ThreadTokenUsage } from "./ThreadTokenUsage"; export type { ThreadTokenUsageUpdatedNotification } from "./ThreadTokenUsageUpdatedNotification"; export type { ThreadTurnsListParams } from "./ThreadTurnsListParams"; @@ -536,6 +682,8 @@ export type { ThreadUnarchivedNotification } from "./ThreadUnarchivedNotificatio export type { ThreadUnsubscribeParams } from "./ThreadUnsubscribeParams"; export type { ThreadUnsubscribeResponse } from "./ThreadUnsubscribeResponse"; export type { ThreadUnsubscribeStatus } from "./ThreadUnsubscribeStatus"; +export type { ThreadUsage } from "./ThreadUsage"; +export type { ThreadUsageBreakdownGroup } from "./ThreadUsageBreakdownGroup"; export type { TokenUsageBreakdown } from "./TokenUsageBreakdown"; export type { ToolRequestUserInputAnswer } from "./ToolRequestUserInputAnswer"; export type { ToolRequestUserInputOption } from "./ToolRequestUserInputOption"; @@ -555,12 +703,16 @@ export type { TurnModerationMetadataNotification } from "./TurnModerationMetadat export type { TurnPlanStep } from "./TurnPlanStep"; export type { TurnPlanStepStatus } from "./TurnPlanStepStatus"; export type { TurnPlanUpdatedNotification } from "./TurnPlanUpdatedNotification"; +export type { TurnSettingsUpdateParams } from "./TurnSettingsUpdateParams"; +export type { TurnSettingsUpdateResponse } from "./TurnSettingsUpdateResponse"; +export type { TurnSettingsUpdateStatus } from "./TurnSettingsUpdateStatus"; export type { TurnStartParams } from "./TurnStartParams"; export type { TurnStartResponse } from "./TurnStartResponse"; export type { TurnStartedNotification } from "./TurnStartedNotification"; export type { TurnStatus } from "./TurnStatus"; export type { TurnSteerParams } from "./TurnSteerParams"; export type { TurnSteerResponse } from "./TurnSteerResponse"; +export type { TurnToolOutput } from "./TurnToolOutput"; export type { TurnsPage } from "./TurnsPage"; export type { UserInput } from "./UserInput"; export type { WarningNotification } from "./WarningNotification";