From b63c1379d1eac19de5f3bb623260d22637993d60 Mon Sep 17 00:00:00 2001 From: Jonathan Jing Date: Tue, 10 Mar 2026 11:13:44 -0700 Subject: [PATCH] fix(mattermost): add dmChannelRetry to MattermostAccountConfig type Add missing dmChannelRetry field to TypeScript type definition in types.ts to match the Zod schema in config-schema.ts. Fixes type checking error when accessing account.config.dmChannelRetry. --- extensions/mattermost/src/types.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/extensions/mattermost/src/types.ts b/extensions/mattermost/src/types.ts index f4038ac6920..e6fcc19098c 100644 --- a/extensions/mattermost/src/types.ts +++ b/extensions/mattermost/src/types.ts @@ -90,6 +90,17 @@ export type MattermostAccountConfig = { */ allowedSourceIps?: string[]; }; + /** Retry configuration for DM channel creation */ + dmChannelRetry?: { + /** Maximum number of retry attempts (default: 3) */ + maxRetries?: number; + /** Initial delay in milliseconds before first retry (default: 1000) */ + initialDelayMs?: number; + /** Maximum delay in milliseconds between retries (default: 10000) */ + maxDelayMs?: number; + /** Timeout for each individual request in milliseconds (default: 30000) */ + timeoutMs?: number; + }; }; export type MattermostConfig = {