Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ dependencies {

testRuntimeOnly("org.junit.platform:junit-platform-launcher")

// This dependency is exported to consumers, that is to say found on their compile classpath.
api(libs.commons.math3)

// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation(libs.guava)

implementation(platform("com.squareup.okhttp3:okhttp-bom:4.12.0"))
implementation("com.squareup.okhttp3:okhttp")
implementation("com.fasterxml.jackson.core:jackson-databind:2.18.2")
Expand All @@ -48,7 +42,7 @@ dependencies {
runtimeOnly("io.jsonwebtoken:jjwt-impl:0.12.6")
runtimeOnly("io.jsonwebtoken:jjwt-jackson:0.12.6")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.8.2")
testImplementation("org.apache.commons:commons-lang3:3.12.0")
testImplementation("org.apache.commons:commons-lang3:3.18.0")
compileOnly("org.projectlombok:lombok:1.18.32")
annotationProcessor("org.projectlombok:lombok:1.18.32")
testCompileOnly("org.projectlombok:lombok:1.18.32")
Expand All @@ -68,7 +62,7 @@ tasks.named<Test>("test") {

doFirst {
// Inject local properties into tests runtime system properties
localProperties.forEach { k, v ->
localProperties.forEach { (k, v) ->
systemProperty(k.toString(), v.toString())
}
}
Expand All @@ -95,7 +89,7 @@ sourceSets {

spotless {
java {
googleJavaFormat()
googleJavaFormat("1.28.0")
}
}

Expand Down
4 changes: 0 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
# https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format

[versions]
commons-math3 = "3.6.1"
guava = "33.0.0-jre"
junit-jupiter = "5.10.2"

[libraries]
commons-math3 = { module = "org.apache.commons:commons-math3", version.ref = "commons-math3" }
guava = { module = "com.google.guava:guava", version.ref = "guava" }
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit-jupiter" }
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
13 changes: 6 additions & 7 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@
*/

rootProject.name = "stream-sdk-java"
include("lib")
11 changes: 7 additions & 4 deletions src/main/java/io/getstream/models/AIImageConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,19 @@
@lombok.AllArgsConstructor
public class AIImageConfig {

@Nullable
@JsonProperty("async")
private Boolean async;

@Nullable
@JsonProperty("enabled")
private Boolean enabled;

@Nullable
@JsonProperty("ocr_rules")
private List<OCRRule> ocrRules;

@Nullable
@JsonProperty("rules")
private List<AWSRekognitionRule> rules;

@Nullable
@JsonProperty("async")
private Boolean async;
}
12 changes: 8 additions & 4 deletions src/main/java/io/getstream/models/AITextConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,23 @@
@lombok.AllArgsConstructor
public class AITextConfig {

@Nullable
@JsonProperty("async")
private Boolean async;

@Nullable
@JsonProperty("enabled")
private Boolean enabled;

@Nullable
@JsonProperty("profile")
private String profile;

@Nullable
@JsonProperty("rules")
private List<BodyguardRule> rules;

@Nullable
@JsonProperty("severity_rules")
private List<BodyguardSeverityRule> severityRules;

@Nullable
@JsonProperty("async")
private Boolean async;
}
10 changes: 6 additions & 4 deletions src/main/java/io/getstream/models/AIVideoConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@
@lombok.AllArgsConstructor
public class AIVideoConfig {

@Nullable
@JsonProperty("async")
private Boolean async;

@Nullable
@JsonProperty("enabled")
private Boolean enabled;

@Nullable
@JsonProperty("rules")
private List<AWSRekognitionRule> rules;

@Nullable
@JsonProperty("async")
private Boolean async;
}
8 changes: 8 additions & 0 deletions src/main/java/io/getstream/models/ActionSequence.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,39 @@
package io.getstream.models;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.jetbrains.annotations.Nullable;

@lombok.Data
@lombok.Builder
@lombok.NoArgsConstructor
@lombok.AllArgsConstructor
public class ActionSequence {

@Nullable
@JsonProperty("action")
private String action;

@Nullable
@JsonProperty("blur")
private Boolean blur;

@Nullable
@JsonProperty("cooldown_period")
private Integer cooldownPeriod;

@Nullable
@JsonProperty("threshold")
private Integer threshold;

@Nullable
@JsonProperty("time_window")
private Integer timeWindow;

@Nullable
@JsonProperty("warning")
private Boolean warning;

@Nullable
@JsonProperty("warning_text")
private String warningText;
}
2 changes: 1 addition & 1 deletion src/main/java/io/getstream/models/ActivityResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public class ActivityResponse {

@Nullable
@JsonProperty("notification_context")
private Map<String, Object> notificationContext;
private NotificationContext notificationContext;

@Nullable
@JsonProperty("parent")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ public class AddCommentReactionRequest {
@JsonProperty("create_notification_activity")
private Boolean createNotificationActivity;

@Nullable
@JsonProperty("enforce_unique")
private Boolean enforceUnique;

@Nullable
@JsonProperty("skip_push")
private Boolean skipPush;

@Nullable
@JsonProperty("user_id")
private String userID;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/io/getstream/models/AddCommentRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ public class AddCommentRequest {
@JsonProperty("parent_id")
private String parentID;

@Nullable
@JsonProperty("skip_push")
private Boolean skipPush;

@Nullable
@JsonProperty("user_id")
private String userID;
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/io/getstream/models/AddReactionRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ public class AddReactionRequest {
@JsonProperty("create_notification_activity")
private Boolean createNotificationActivity;

@Nullable
@JsonProperty("enforce_unique")
private Boolean enforceUnique;

@Nullable
@JsonProperty("skip_push")
private Boolean skipPush;

@Nullable
@JsonProperty("user_id")
private String userID;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public class AggregatedActivityResponse {
@JsonProperty("user_count")
private Integer userCount;

@JsonProperty("user_count_truncated")
private Boolean userCountTruncated;

@JsonProperty("activities")
private List<ActivityResponse> activities;
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@
@lombok.AllArgsConstructor
public class AutomodPlatformCircumventionConfig {

@Nullable
@JsonProperty("async")
private Boolean async;

@Nullable
@JsonProperty("enabled")
private Boolean enabled;

@Nullable
@JsonProperty("rules")
private List<AutomodRule> rules;

@Nullable
@JsonProperty("async")
private Boolean async;
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@
@lombok.AllArgsConstructor
public class AutomodSemanticFiltersConfig {

@Nullable
@JsonProperty("async")
private Boolean async;

@Nullable
@JsonProperty("enabled")
private Boolean enabled;

@Nullable
@JsonProperty("rules")
private List<AutomodSemanticFiltersRule> rules;

@Nullable
@JsonProperty("async")
private Boolean async;
}
10 changes: 6 additions & 4 deletions src/main/java/io/getstream/models/AutomodToxicityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@
@lombok.AllArgsConstructor
public class AutomodToxicityConfig {

@Nullable
@JsonProperty("async")
private Boolean async;

@Nullable
@JsonProperty("enabled")
private Boolean enabled;

@Nullable
@JsonProperty("rules")
private List<AutomodRule> rules;

@Nullable
@JsonProperty("async")
private Boolean async;
}
Loading