Variable settingsFormSchemaConst
settingsFormSchema: ZodObject<
{
clientId: ZodString;
clientSecret: ZodString;
redirectUri: ZodString;
fileLogLevel: ZodEnum<["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]>;
logLineCount: ZodNumber;
maxLogFiles: ZodNumber;
logRetentionDays: ZodNumber;
skipThreshold: ZodNumber;
timeframeInDays: ZodNumber;
autoStartMonitoring: ZodDefault<ZodBoolean>;
autoUnlike: ZodDefault<ZodBoolean>;
pollingInterval: ZodDefault<ZodNumber>;
},
"strip",
ZodTypeAny,
{
clientId: string;
clientSecret: string;
redirectUri: string;
fileLogLevel: "DEBUG"
| "INFO"
| "WARNING"
| "ERROR"
| "CRITICAL";
logLineCount: number;
maxLogFiles: number;
logRetentionDays: number;
skipThreshold: number;
timeframeInDays: number;
autoStartMonitoring: boolean;
autoUnlike: boolean;
pollingInterval: number;
},
{
clientId: string;
clientSecret: string;
redirectUri: string;
fileLogLevel: "DEBUG"
| "INFO"
| "WARNING"
| "ERROR"
| "CRITICAL";
logLineCount: number;
maxLogFiles: number;
logRetentionDays: number;
skipThreshold: number;
timeframeInDays: number;
autoStartMonitoring?: boolean;
autoUnlike?: boolean;
pollingInterval?: number;
},
> = ...
Settings Form Validation Schema
Comprehensive validation schema for all application settings with field-specific constraints, type coercion, and validation error messages. Defines the complete contract for application configuration.
Security considerations:
Performance boundaries: