Skip to content

Commit a78bc0d

Browse files
authored
Merge branch 'main' into feat/add-query-team-usage-stats-api
2 parents 59051ff + 39b3b42 commit a78bc0d

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [1.41.0](https://github.com/GetStream/stream-chat-java/compare/1.40.0...1.41.0) (2026-02-16)
6+
57
## [1.40.0](https://github.com/GetStream/stream-chat-java/compare/1.39.0...1.40.0) (2026-01-22)
68

79
## [1.39.0](https://github.com/GetStream/stream-chat-java/compare/1.38.0...1.39.0) (2026-01-21)

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
}
99

1010
group = 'io.getstream'
11-
version = '1.40.0'
11+
version = '1.41.0'
1212
description = 'Stream Chat official Java SDK'
1313

1414
java {

src/main/java/io/getstream/chat/java/models/Message.java

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)