@@ -95,6 +95,7 @@ export type AppSettingsAPIResponse = APIResponse & {
9595 connect_events ?: boolean ;
9696 created_at ?: string ;
9797 custom_events ?: boolean ;
98+ delivery_events ?: boolean ;
9899 mark_messages_pending ?: boolean ;
99100 max_message_length ?: number ;
100101 message_retention ?: string ;
@@ -1015,6 +1016,7 @@ export type CreateChannelOptions = {
10151016 connect_events ?: boolean ;
10161017 connection_id ?: string ;
10171018 custom_events ?: boolean ;
1019+ delivery_events ?: boolean ;
10181020 grants ?: Record < string , string [ ] > ;
10191021 mark_messages_pending ?: boolean ;
10201022 max_message_length ?: number ;
@@ -1120,6 +1122,7 @@ export type UpdateChannelTypeRequest =
11201122 commands ?: CommandVariants [ ] ;
11211123 connect_events ?: boolean ;
11221124 custom_events ?: boolean ;
1125+ delivery_events ?: boolean ;
11231126 grants ?: Record < string , string [ ] > ;
11241127 mark_messages_pending ?: boolean ;
11251128 mutes ?: boolean ;
@@ -1151,6 +1154,7 @@ export type UpdateChannelTypeResponse = {
11511154 connect_events : boolean ;
11521155 created_at : string ;
11531156 custom_events : boolean ;
1157+ delivery_events : boolean ;
11541158 duration : string ;
11551159 grants : Record < string , string [ ] > ;
11561160 mark_messages_pending : boolean ;
@@ -1188,6 +1192,7 @@ export type GetChannelTypeResponse = {
11881192 connect_events : boolean ;
11891193 created_at : string ;
11901194 custom_events : boolean ;
1195+ delivery_events : boolean ;
11911196 duration : string ;
11921197 grants : Record < string , string [ ] > ;
11931198 mark_messages_pending : boolean ;
@@ -2384,6 +2389,7 @@ export type ChannelConfigFields = {
23842389 blocklist_behavior ?: ChannelConfigAutomodBehavior ;
23852390 connect_events ?: boolean ;
23862391 custom_events ?: boolean ;
2392+ delivery_events ?: boolean ;
23872393 mark_messages_pending ?: boolean ;
23882394 max_message_length ?: number ;
23892395 message_retention ?: string ;
@@ -2397,6 +2403,7 @@ export type ChannelConfigFields = {
23972403 replies ?: boolean ;
23982404 search ?: boolean ;
23992405 shared_locations ?: boolean ;
2406+ skip_last_msg_update_for_system_msgs ?: boolean ;
24002407 count_messages ?: boolean ;
24012408 typing_events ?: boolean ;
24022409 uploads ?: boolean ;
@@ -3889,6 +3896,7 @@ export type ModerationConfig = {
38893896 automod_semantic_filters_config ?: AutomodSemanticFiltersConfig ;
38903897 automod_toxicity_config ?: AutomodToxicityConfig ;
38913898 block_list_config ?: BlockListConfig ;
3899+ llm_config ?: LLMConfig ;
38923900 team ?: string ;
38933901} ;
38943902
@@ -4119,6 +4127,8 @@ export type ModerationActionType =
41194127 | 'bounce_flag'
41204128 | 'bounce_remove' ;
41214129
4130+ export type ModerationSeverity = 'low' | 'medium' | 'high' | 'critical' ;
4131+
41224132export type AutomodRule = {
41234133 action : ModerationActionType ;
41244134 label : string ;
@@ -4136,6 +4146,24 @@ export type BlockListConfig = {
41364146 async ?: boolean ;
41374147} ;
41384148
4149+ export type LLMConfig = {
4150+ rules : LLMRule [ ] ;
4151+ severity_descriptions ?: Record < ModerationSeverity , string > ;
4152+ app_context ?: string ;
4153+ } ;
4154+
4155+ export type LLMRule = {
4156+ label : string ;
4157+ description : string ;
4158+ action : ModerationActionType ;
4159+ severity_rules ?: LLMSeverityRule [ ] ;
4160+ } ;
4161+
4162+ export type LLMSeverityRule = {
4163+ severity : ModerationSeverity ;
4164+ action : ModerationActionType ;
4165+ } ;
4166+
41394167export type AutomodToxicityConfig = {
41404168 enabled : boolean ;
41414169 rules : AutomodRule [ ] ;
@@ -4162,7 +4190,7 @@ export type AutomodSemanticFiltersConfig = {
41624190
41634191export type AITextSeverityRule = {
41644192 action : ModerationActionType ;
4165- severity : 'low' | 'medium' | 'high' | 'critical' ;
4193+ severity : ModerationSeverity ;
41664194} ;
41674195
41684196export type AITextRule = {
0 commit comments