Skip to content

Commit

Permalink
feat: async moderation config in app settings (#1039)
Browse files Browse the repository at this point in the history
  • Loading branch information
miagilepner authored Aug 25, 2022
1 parent edbcbe2 commit 54863d0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export type AppSettingsAPIResponse<StreamChatGenerics extends ExtendableGenerics
>;
reminders_interval: number;
agora_options?: AgoraOptions | null;
async_moderation_config?: AsyncModerationOptions;
async_url_enrich_enabled?: boolean;
auto_translation_enabled?: boolean;
before_message_send_hook_url?: string;
Expand Down Expand Up @@ -1505,6 +1506,14 @@ export type HMSOptions = {
role_map?: Record<string, string>;
};

export type AsyncModerationOptions = {
callback?: {
mode?: 'CALLBACK_MODE_NONE' | 'CALLBACK_MODE_REST' | 'CALLBACK_MODE_TWIRP';
server_url?: string;
};
timeout_ms?: number;
};

export type AppSettings = {
agora_options?: AgoraOptions | null;
apn_config?: {
Expand All @@ -1518,6 +1527,7 @@ export type AppSettings = {
p12_cert?: string;
team_id?: string;
};
async_moderation_config?: AsyncModerationOptions;
async_url_enrich_enabled?: boolean;
auto_translation_enabled?: boolean;
before_message_send_hook_url?: string;
Expand Down

0 comments on commit 54863d0

Please sign in to comment.