diff --git a/src/types.ts b/src/types.ts index 8769f252b..c1405541d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -454,6 +454,7 @@ export type MessageResponse< export type MuteResponse = { user: UserResponse; created_at?: string; + expires?: string; target?: UserResponse; updated_at?: string; }; @@ -705,6 +706,8 @@ export type ListCommandsResponse< export type CreateChannelOptions = { automod?: ChannelConfigAutomod; automod_behavior?: ChannelConfigAutomodBehavior; + automod_thresholds?: ChannelConfigAutomodThresholds; + blocklist?: string; blocklist_behavior?: ChannelConfigAutomodBehavior; client_id?: string; commands?: CommandVariants[]; @@ -1257,6 +1260,7 @@ export type AppSettings = { notification_template?: string; server_key?: string; }; + image_moderation_enabled?: boolean; push_config?: { version?: string; }; @@ -1310,6 +1314,12 @@ export type ChannelConfigAutomod = '' | 'AI' | 'disabled' | 'simple'; export type ChannelConfigAutomodBehavior = '' | 'block' | 'flag'; +export type ChannelConfigAutomodThresholds = null | { + explicit?: { block?: number; flag?: number }; + spam?: { block?: number; flag?: number }; + toxic?: { block?: number; flag?: number }; +}; + export type ChannelConfigFields = { automod?: ChannelConfigAutomod; automod_behavior?: ChannelConfigAutomodBehavior;