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.
This commit is contained in:
Jonathan Jing
2026-03-10 11:13:44 -07:00
committed by Muhammed Mukhthar CM
parent 4e6080d476
commit b63c1379d1

View File

@@ -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 = {