diff --git a/src/config/types.agents-shared.ts b/src/config/types.agents-shared.ts index 8a46eb0e23d..351aba6eb10 100644 --- a/src/config/types.agents-shared.ts +++ b/src/config/types.agents-shared.ts @@ -28,8 +28,6 @@ export type AgentSandboxConfig = { sessionToolsVisibility?: "spawned" | "all"; /** Container/workspace scope for sandbox isolation. */ scope?: "session" | "agent" | "shared"; - /** @deprecated Legacy sandbox scope toggle; normalized to `scope` on load. */ - perSession?: boolean; workspaceRoot?: string; /** Docker-specific sandbox settings. */ docker?: SandboxDockerSettings; diff --git a/src/config/types.browser.ts b/src/config/types.browser.ts index 601720384dd..a1b9b707439 100644 --- a/src/config/types.browser.ts +++ b/src/config/types.browser.ts @@ -17,8 +17,6 @@ export type BrowserSnapshotDefaults = { mode?: "efficient"; }; export type BrowserSsrFPolicyConfig = { - /** @deprecated Legacy alias; normalized to `dangerouslyAllowPrivateNetwork` on load. */ - allowPrivateNetwork?: boolean; /** If true, permit browser navigation to private/internal networks. Default: true */ dangerouslyAllowPrivateNetwork?: boolean; /** diff --git a/src/config/types.gateway.ts b/src/config/types.gateway.ts index 14046b6834f..caa25a4e98c 100644 --- a/src/config/types.gateway.ts +++ b/src/config/types.gateway.ts @@ -75,16 +75,6 @@ export type TalkConfig = { provider?: string; /** Provider-specific Talk config keyed by provider id. */ providers?: Record; - /** @deprecated Legacy top-level Talk provider API key; normalized into talk.providers..apiKey on load. */ - apiKey?: SecretInput; - /** @deprecated Legacy top-level Talk voice id; normalized into talk.providers..voiceId on load. */ - voiceId?: string; - /** @deprecated Legacy top-level Talk voice aliases; normalized into talk.providers..voiceAliases on load. */ - voiceAliases?: Record; - /** @deprecated Legacy top-level Talk model id; normalized into talk.providers..modelId on load. */ - modelId?: string; - /** @deprecated Legacy top-level Talk output format; normalized into talk.providers..outputFormat on load. */ - outputFormat?: string; /** Stop speaking when user starts talking (default: true). */ interruptOnSpeech?: boolean; /** Milliseconds of user silence before Talk mode sends the transcript after a pause. */ diff --git a/src/config/types.slack.ts b/src/config/types.slack.ts index 907a556be1e..e68e7b043db 100644 --- a/src/config/types.slack.ts +++ b/src/config/types.slack.ts @@ -162,8 +162,6 @@ export type SlackAccountConfig = { * - "progress": show progress status, then send final text */ streaming?: SlackStreamingMode; - /** @deprecated Legacy draft streaming mode; normalized into `streaming` on load. */ - streamMode?: "replace" | "status_final" | "append"; /** * Slack native text streaming toggle (`chat.startStream` / `chat.appendStream` / `chat.stopStream`). * Used when `streaming` is `partial`. Default: true. diff --git a/src/config/types.telegram.ts b/src/config/types.telegram.ts index 448a7b683e5..2a68bf0f9df 100644 --- a/src/config/types.telegram.ts +++ b/src/config/types.telegram.ts @@ -1,5 +1,4 @@ import type { - BlockStreamingChunkConfig, BlockStreamingCoalesceConfig, ContextVisibilityMode, DmPolicy, @@ -158,12 +157,8 @@ export type TelegramAccountConfig = { * - "progress": alias that maps to "partial" on Telegram */ streaming?: TelegramStreamingMode; - /** @deprecated Legacy preview streaming key; normalized into `streaming` on load. */ - streamMode?: "off" | "partial" | "block" | "progress"; /** Disable block streaming for this account. */ blockStreaming?: boolean; - /** @deprecated Legacy chunking config from `streamMode: "block"`; ignored after migration. */ - draftChunk?: BlockStreamingChunkConfig; /** Merge streamed block replies before sending. */ blockStreamingCoalesce?: BlockStreamingCoalesceConfig; mediaMaxMb?: number; diff --git a/src/gateway/protocol/index.test.ts b/src/gateway/protocol/index.test.ts index ad452effd1f..fa65ed01a0b 100644 --- a/src/gateway/protocol/index.test.ts +++ b/src/gateway/protocol/index.test.ts @@ -89,11 +89,6 @@ describe("validateTalkConfigResult", () => { }, }, }, - apiKey: { - source: "env", - provider: "default", - id: "ELEVENLABS_API_KEY", - }, }, }, }), diff --git a/src/gateway/protocol/schema/channels.ts b/src/gateway/protocol/schema/channels.ts index 2fe602de24f..8694aae5858 100644 --- a/src/gateway/protocol/schema/channels.ts +++ b/src/gateway/protocol/schema/channels.ts @@ -54,21 +54,11 @@ const ResolvedTalkConfigSchema = Type.Object( { additionalProperties: false }, ); -const LegacyTalkConfigSchema = Type.Object( - { - ...talkProviderFieldSchemas, - interruptOnSpeech: Type.Optional(Type.Boolean()), - silenceTimeoutMs: Type.Optional(Type.Integer({ minimum: 1 })), - }, - { additionalProperties: false }, -); - -const NormalizedTalkConfigSchema = Type.Object( +const TalkConfigSchema = Type.Object( { provider: Type.Optional(Type.String()), providers: Type.Optional(Type.Record(Type.String(), TalkProviderConfigSchema)), resolved: ResolvedTalkConfigSchema, - ...talkProviderFieldSchemas, interruptOnSpeech: Type.Optional(Type.Boolean()), silenceTimeoutMs: Type.Optional(Type.Integer({ minimum: 1 })), }, @@ -79,7 +69,7 @@ export const TalkConfigResultSchema = Type.Object( { config: Type.Object( { - talk: Type.Optional(Type.Union([LegacyTalkConfigSchema, NormalizedTalkConfigSchema])), + talk: Type.Optional(TalkConfigSchema), session: Type.Optional( Type.Object( {