Variable AIAutoModSchemaConst
AIAutoModSchema: ZodObject<
{
actions: ZodDefault<
ZodArray<
ZodUnion<
[
ZodObject<
{
delete_timeframe: ZodOptional<ZodNumber>;
duration: ZodOptional<ZodNumber>;
notify: ZodOptional<ZodBoolean>;
reason: ZodOptional<ZodString>;
type: ZodLiteral<"ban">;
},
"strip",
ZodTypeAny,
{
delete_timeframe?: number;
duration?: number;
notify?: boolean;
reason?: string;
type: "ban";
},
{
delete_timeframe?: number;
duration?: number;
notify?: boolean;
reason?: string;
type: "ban";
},
>,
ZodObject<
{
notify: ZodOptional<ZodBoolean>;
reason: ZodOptional<ZodString>;
type: ZodLiteral<"kick">;
},
"strip",
ZodTypeAny,
{ notify?: boolean; reason?: string; type: "kick" },
{ notify?: boolean; reason?: string; type: "kick" },
>,
ZodObject<
{
duration: ZodOptional<ZodNumber>;
notify: ZodOptional<ZodBoolean>;
reason: ZodOptional<ZodString>;
type: ZodLiteral<"mute">;
},
"strip",
ZodTypeAny,
{
duration?: number;
notify?: boolean;
reason?: string;
type: "mute";
},
{
duration?: number;
notify?: boolean;
reason?: string;
type: "mute";
},
>,
],
>,
"many",
>,
>;
automatic_actions: ZodOptional<
ZodObject<
{
enabled: ZodDefault<ZodBoolean>;
stops: ZodDefault<
ZodRecord<
ZodUnion<[ZodString, ZodLiteral<"*">]>,
ZodArray<
ZodUnion<
[
ZodObject<(...), (...), (...), (...), (...)>,
ZodObject<(...), (...), (...), (...), (...)>,
ZodObject<(...), (...), (...), (...), (...)>,
],
>,
"many",
>,
>,
>;
},
"strip",
ZodTypeAny,
{
enabled: boolean;
stops: Record<
string,
(
| {
delete_timeframe?: number;
duration?: number;
notify?: boolean;
reason?: string;
type: "ban";
}
| { notify?: boolean; reason?: string; type: "kick" }
| {
duration?: number;
notify?: boolean;
reason?: string;
type: "mute";
}
| {
duration?: number;
mode: "give"
| "take";
notify?: boolean;
reason?: string;
roles: string[];
type: "role";
}
| { type: "none" }
| { notify?: boolean; reason?: string; type: "warn" }
| { notify: true; reason?: string; type: "verbal_warn" }
| { count: number; notify?: boolean; reason?: string; type: "clear" }
| { type: "delete_message" }
)[],
>;
},
{
enabled?: boolean;
stops?: Record<
string,
(
| {
delete_timeframe?: (...)
| (...);
duration?: (...) | (...);
notify?: (...) | (...) | (...);
reason?: (...) | (...);
type: "ban";
}
| {
notify?: (...)
| (...)
| (...);
reason?: (...) | (...);
type: "kick";
}
| {
duration?: (...)
| (...);
notify?: (...) | (...) | (...);
reason?: (...) | (...);
type: "mute";
}
| {
duration?: (...)
| (...);
mode: (...) | (...);
notify?: (...) | (...) | (...);
reason?: (...) | (...);
roles: (...)[];
type: "role";
}
| { type: "none" }
| {
notify?: (...) | (...) | (...);
reason?: (...) | (...);
type: "warn";
}
| {
notify?: (...)
| (...);
reason?: (...) | (...);
type: "verbal_warn";
}
| {
count?: (...)
| (...);
notify?: (...) | (...) | (...);
reason?: (...) | (...);
type: "clear";
}
| { type: "delete_message" }
)[],
>;
},
>,
>;
enabled: ZodDefault<ZodOptional<ZodBoolean>>;
evaluate_after_attempts: ZodDefault<ZodNumber>;
evaluation_cache_expires_in: ZodDefault<ZodNumber>;
exception_regex_patterns: ZodDefault<
ZodArray<
ZodUnion<[ZodString, ZodTuple<[ZodString, ZodString], null>]>,
"many",
>,
>;
max_individual_scores: ZodOptional<
ZodObject<
{
flirtation: ZodDefault<ZodNumber>;
identity_attack: ZodDefault<ZodNumber>;
incoherent: ZodDefault<ZodNumber>;
insult: ZodDefault<ZodNumber>;
obscene: ZodDefault<ZodNumber>;
profanity: ZodDefault<ZodNumber>;
severe_toxicity: ZodDefault<ZodNumber>;
sexually_explicit: ZodDefault<ZodNumber>;
spam: ZodDefault<ZodNumber>;
threat: ZodDefault<ZodNumber>;
toxicity: ZodDefault<ZodNumber>;
unsubstantial: ZodDefault<ZodNumber>;
},
"strip",
ZodTypeAny,
{
flirtation: number;
identity_attack: number;
incoherent: number;
insult: number;
obscene: number;
profanity: number;
severe_toxicity: number;
sexually_explicit: number;
spam: number;
threat: number;
toxicity: number;
unsubstantial: number;
},
{
flirtation?: number;
identity_attack?: number;
incoherent?: number;
insult?: number;
obscene?: number;
profanity?: number;
severe_toxicity?: number;
sexually_explicit?: number;
spam?: number;
threat?: number;
toxicity?: number;
unsubstantial?: number;
},
>,
>;
max_single_score: ZodDefault<ZodNumber>;
max_total_score: ZodDefault<ZodNumber>;
},
"strip",
ZodTypeAny,
{
actions: (
| {
delete_timeframe?: number;
duration?: number;
notify?: boolean;
reason?: string;
type: "ban";
}
| { notify?: boolean; reason?: string; type: "kick" }
| { duration?: number; notify?: boolean; reason?: string; type: "mute" }
| {
duration?: number;
mode: "give" | "take";
notify?: boolean;
reason?: string;
roles: string[];
type: "role";
}
| { type: "none" }
| { notify?: boolean; reason?: string; type: "warn" }
| { notify: true; reason?: string; type: "verbal_warn" }
| { count: number; notify?: boolean; reason?: string; type: "clear" }
| { type: "delete_message" }
)[];
automatic_actions?: {
enabled: boolean;
stops: Record<
string,
(
| {
delete_timeframe?: number;
duration?: number;
notify?: boolean;
reason?: string;
type: "ban";
}
| { notify?: boolean; reason?: string; type: "kick" }
| {
duration?: number;
notify?: boolean;
reason?: string;
type: "mute";
}
| {
duration?: number;
mode: "give"
| "take";
notify?: boolean;
reason?: string;
roles: string[];
type: "role";
}
| { type: "none" }
| { notify?: boolean; reason?: string; type: "warn" }
| { notify: true; reason?: string; type: "verbal_warn" }
| { count: number; notify?: boolean; reason?: string; type: "clear" }
| { type: "delete_message" }
)[],
>;
};
enabled: boolean;
evaluate_after_attempts: number;
evaluation_cache_expires_in: number;
exception_regex_patterns: (string | [string, string])[];
max_individual_scores?: {
flirtation: number;
identity_attack: number;
incoherent: number;
insult: number;
obscene: number;
profanity: number;
severe_toxicity: number;
sexually_explicit: number;
spam: number;
threat: number;
toxicity: number;
unsubstantial: number;
};
max_single_score: number;
max_total_score: number;
},
{
actions?: (
| {
delete_timeframe?: number;
duration?: number;
notify?: boolean;
reason?: string;
type: "ban";
}
| { notify?: boolean; reason?: string; type: "kick" }
| { duration?: number; notify?: boolean; reason?: string; type: "mute" }
| {
duration?: number;
mode: "give" | "take";
notify?: boolean;
reason?: string;
roles: string[];
type: "role";
}
| { type: "none" }
| { notify?: boolean; reason?: string; type: "warn" }
| { notify?: true; reason?: string; type: "verbal_warn" }
| { count?: number; notify?: boolean; reason?: string; type: "clear" }
| { type: "delete_message" }
)[];
automatic_actions?: {
enabled?: boolean;
stops?: Record<
string,
(
| {
delete_timeframe?: number;
duration?: number;
notify?: boolean;
reason?: string;
type: "ban";
}
| { notify?: boolean; reason?: string; type: "kick" }
| {
duration?: number;
notify?: boolean;
reason?: string;
type: "mute";
}
| {
duration?: number;
mode: "give"
| "take";
notify?: boolean;
reason?: string;
roles: string[];
type: "role";
}
| { type: "none" }
| { notify?: boolean; reason?: string; type: "warn" }
| { notify?: true; reason?: string; type: "verbal_warn" }
| { count?: number; notify?: boolean; reason?: string; type: "clear" }
| { type: "delete_message" }
)[],
>;
};
enabled?: boolean;
evaluate_after_attempts?: number;
evaluation_cache_expires_in?: number;
exception_regex_patterns?: (string | [string, string])[];
max_individual_scores?: {
flirtation?: number;
identity_attack?: number;
incoherent?: number;
insult?: number;
obscene?: number;
profanity?: number;
severe_toxicity?: number;
sexually_explicit?: number;
spam?: number;
threat?: number;
toxicity?: number;
unsubstantial?: number;
};
max_single_score?: number;
max_total_score?: number;
},
> = ...