File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
src/main/java/io/getstream/chat/java/models Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,10 @@ public class Message {
177177 @ JsonProperty ("member" )
178178 private ChannelMember member ;
179179
180+ @ Nullable
181+ @ JsonProperty ("moderation" )
182+ private ModerationV2Response moderation ;
183+
180184 @ NotNull @ JsonIgnore private Map <String , Object > additionalFields = new HashMap <>();
181185
182186 @ JsonAnyGetter
@@ -415,6 +419,46 @@ public static class Moderation {
415419 private Integer spam ;
416420 }
417421
422+ @ Data
423+ @ NoArgsConstructor
424+ public static class ModerationV2Response {
425+ @ Nullable
426+ @ JsonProperty ("action" )
427+ private String action ;
428+
429+ @ Nullable
430+ @ JsonProperty ("original_text" )
431+ private String originalText ;
432+
433+ @ Nullable
434+ @ JsonProperty ("text_harms" )
435+ private List <String > textHarms ;
436+
437+ @ Nullable
438+ @ JsonProperty ("image_harms" )
439+ private List <String > imageHarms ;
440+
441+ /**
442+ * @deprecated Use {@link #blocklistsMatched} instead. Kept for backward compatibility.
443+ */
444+ @ Deprecated
445+ @ Nullable
446+ @ JsonProperty ("blocklist_matched" )
447+ private String blocklistMatched ;
448+
449+ @ Nullable
450+ @ JsonProperty ("blocklists_matched" )
451+ private List <String > blocklistsMatched ;
452+
453+ @ Nullable
454+ @ JsonProperty ("semantic_filter_matched" )
455+ private String semanticFilterMatched ;
456+
457+ @ Nullable
458+ @ JsonProperty ("platform_circumvented" )
459+ private Boolean platformCircumvented ;
460+ }
461+
418462 @ Builder
419463 @ Setter
420464 @ Getter
You can’t perform that action at this time.
0 commit comments