@@ -71,12 +71,12 @@ def flag_message(message_id, reason, **options)
7171 sig { params ( entity_type : String , entity_id : String , entity_creator_id : String , reason : String , options : T . untyped ) . returns ( StreamChat ::StreamResponse ) }
7272 def flag ( entity_type , entity_id , entity_creator_id , reason , **options )
7373 @client . post ( 'api/v2/moderation/flag' , data : {
74- entity_type : entity_type ,
75- entity_id : entity_id ,
76- entity_creator_id : entity_creator_id ,
77- reason : reason ,
78- **options
79- } )
74+ entity_type : entity_type ,
75+ entity_id : entity_id ,
76+ entity_creator_id : entity_creator_id ,
77+ reason : reason ,
78+ **options
79+ } )
8080 end
8181
8282 # Mutes a user
@@ -88,9 +88,9 @@ def flag(entity_type, entity_id, entity_creator_id, reason, **options)
8888 sig { params ( target_id : String , options : T . untyped ) . returns ( StreamChat ::StreamResponse ) }
8989 def mute_user ( target_id , **options )
9090 @client . post ( 'api/v2/moderation/mute' , data : {
91- target_ids : [ target_id ] ,
92- **options
93- } )
91+ target_ids : [ target_id ] ,
92+ **options
93+ } )
9494 end
9595
9696 # Unmutes a user
@@ -101,9 +101,9 @@ def mute_user(target_id, **options)
101101 sig { params ( target_id : String , options : T . untyped ) . returns ( StreamChat ::StreamResponse ) }
102102 def unmute_user ( target_id , **options )
103103 @client . post ( 'api/v2/moderation/unmute' , data : {
104- target_ids : [ target_id ] ,
105- **options
106- } )
104+ target_ids : [ target_id ] ,
105+ **options
106+ } )
107107 end
108108
109109 # Gets moderation report for a user
@@ -116,9 +116,9 @@ def unmute_user(target_id, **options)
116116 sig { params ( user_id : String , options : T . untyped ) . returns ( StreamChat ::StreamResponse ) }
117117 def get_user_moderation_report ( user_id , **options )
118118 @client . get ( 'api/v2/moderation/user_report' , params : {
119- user_id : user_id ,
120- **options
121- } )
119+ user_id : user_id ,
120+ **options
121+ } )
122122 end
123123
124124 # Queries review queue
@@ -129,10 +129,10 @@ def get_user_moderation_report(user_id, **options)
129129 sig { params ( filter_conditions : T . untyped , sort : T . untyped , options : T . untyped ) . returns ( StreamChat ::StreamResponse ) }
130130 def query_review_queue ( filter_conditions = { } , sort = [ ] , **options )
131131 @client . post ( 'api/v2/moderation/review_queue' , data : {
132- filter : filter_conditions ,
133- sort : StreamChat . get_sort_fields ( sort ) ,
134- **options
135- } )
132+ filter : filter_conditions ,
133+ sort : StreamChat . get_sort_fields ( sort ) ,
134+ **options
135+ } )
136136 end
137137
138138 # Upserts moderation config
@@ -171,10 +171,10 @@ def delete_config(key, data = {})
171171 sig { params ( filter_conditions : T . untyped , sort : T . untyped , options : T . untyped ) . returns ( StreamChat ::StreamResponse ) }
172172 def query_configs ( filter_conditions , sort , **options )
173173 @client . post ( 'api/v2/moderation/configs' , data : {
174- filter : filter_conditions ,
175- sort : sort ,
176- **options
177- } )
174+ filter : filter_conditions ,
175+ sort : sort ,
176+ **options
177+ } )
178178 end
179179
180180 # Submits a moderation action
@@ -185,10 +185,10 @@ def query_configs(filter_conditions, sort, **options)
185185 sig { params ( action_type : String , item_id : String , options : T . untyped ) . returns ( StreamChat ::StreamResponse ) }
186186 def submit_action ( action_type , item_id , **options )
187187 @client . post ( 'api/v2/moderation/submit_action' , data : {
188- action_type : action_type ,
189- item_id : item_id ,
190- **options
191- } )
188+ action_type : action_type ,
189+ item_id : item_id ,
190+ **options
191+ } )
192192 end
193193
194194 # Checks content for moderation
@@ -203,13 +203,13 @@ def submit_action(action_type, item_id, **options)
203203 sig { params ( entity_type : String , entity_id : String , entity_creator_id : String , moderation_payload : T . untyped , config_key : String , options : T . untyped ) . returns ( StreamChat ::StreamResponse ) }
204204 def check ( entity_type , entity_id , entity_creator_id , moderation_payload , config_key , **options )
205205 @client . post ( 'api/v2/moderation/check' , data : {
206- entity_type : entity_type ,
207- entity_id : entity_id ,
208- entity_creator_id : entity_creator_id ,
209- moderation_payload : moderation_payload ,
210- config_key : config_key ,
211- options : options
212- } )
206+ entity_type : entity_type ,
207+ entity_id : entity_id ,
208+ entity_creator_id : entity_creator_id ,
209+ moderation_payload : moderation_payload ,
210+ config_key : config_key ,
211+ options : options
212+ } )
213213 end
214214
215215 # Adds custom flags to an entity
@@ -222,12 +222,12 @@ def check(entity_type, entity_id, entity_creator_id, moderation_payload, config_
222222 sig { params ( entity_type : String , entity_id : String , entity_creator_id : String , moderation_payload : T . untyped , flags : T ::Array [ T . untyped ] ) . returns ( StreamChat ::StreamResponse ) }
223223 def add_custom_flags ( entity_type , entity_id , entity_creator_id , moderation_payload , flags )
224224 @client . post ( 'api/v2/moderation/custom_check' , data : {
225- entity_type : entity_type ,
226- entity_id : entity_id ,
227- entity_creator_id : entity_creator_id ,
228- moderation_payload : moderation_payload ,
229- flags : flags
230- } )
225+ entity_type : entity_type ,
226+ entity_id : entity_id ,
227+ entity_creator_id : entity_creator_id ,
228+ moderation_payload : moderation_payload ,
229+ flags : flags
230+ } )
231231 end
232232
233233 # Adds custom flags to a message
0 commit comments