fix(discord): align DiscordAccountConfig.token type with SecretInput

The Zod schema (SecretInputSchema) and runtime token resolution
already accept SecretRef values, but the TypeScript type was still
`string`. Update to `SecretInput` so the type layer matches.

Closes #32445

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
scoootscooob 2026-03-02 19:42:35 -08:00 committed by joshavant
parent 44162e7ba5
commit 755c20d0c9
No known key found for this signature in database
GPG Key ID: 4463B60B0DD49BC4
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import type {
} from "./types.base.js";
import type { ChannelHeartbeatVisibilityConfig } from "./types.channels.js";
import type { DmConfig, ProviderCommandsConfig } from "./types.messages.js";
import type { SecretInput } from "./types.secrets.js";
import type { GroupToolPolicyBySenderConfig, GroupToolPolicyConfig } from "./types.tools.js";
import type { TtsConfig } from "./types.tts.js";
@ -218,7 +219,7 @@ export type DiscordAccountConfig = {
configWrites?: boolean;
/** If false, do not start this Discord account. Default: true. */
enabled?: boolean;
token?: string;
token?: SecretInput;
/** HTTP(S) proxy URL for Discord gateway WebSocket connections. */
proxy?: string;
/** Allow bot-authored messages to trigger replies (default: false). Set "mentions" to gate on mentions. */