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: 12 additions & 0 deletions src/main/java/io/getstream/Webhook.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
import io.getstream.models.AsyncExportModerationLogsEvent;
import io.getstream.models.AsyncExportReviewQueueEvent;
import io.getstream.models.AsyncExportUsersEvent;
import io.getstream.models.AsyncImportErrorEvent;
import io.getstream.models.AsyncImportSuccessEvent;
import io.getstream.models.BlockedUserEvent;
import io.getstream.models.BookmarkAddedEvent;
import io.getstream.models.BookmarkDeletedEvent;
Expand Down Expand Up @@ -121,6 +123,7 @@
import io.getstream.models.IngressErrorEvent;
import io.getstream.models.IngressStartedEvent;
import io.getstream.models.IngressStoppedEvent;
import io.getstream.models.IntentDetectedEvent;
import io.getstream.models.KickedUserEvent;
import io.getstream.models.MaxStreakChangedEvent;
import io.getstream.models.MemberAddedEvent;
Expand Down Expand Up @@ -328,6 +331,8 @@ public static class EventType {
public static final String FEEDS_NOTIFICATION_FEED_UPDATED = "feeds.notification_feed.updated";
public static final String FEEDS_STORIES_FEED_UPDATED = "feeds.stories_feed.updated";
public static final String FLAG_UPDATED = "flag.updated";
public static final String IMPORT_ERROR = "import.error";
public static final String IMPORT_SUCCESS = "import.success";
public static final String INGRESS_ERROR = "ingress.error";
public static final String INGRESS_STARTED = "ingress.started";
public static final String INGRESS_STOPPED = "ingress.stopped";
Expand All @@ -347,6 +352,7 @@ public static class EventType {
public static final String MODERATION_FLAGGED = "moderation.flagged";
public static final String MODERATION_IMAGE_ANALYSIS_COMPLETE =
"moderation.image_analysis.complete";
public static final String MODERATION_INTENT_DETECTED = "moderation.intent_detected";
public static final String MODERATION_MARK_REVIEWED = "moderation.mark_reviewed";
public static final String MODERATION_TEXT_ANALYSIS_COMPLETE =
"moderation.text_analysis.complete";
Expand Down Expand Up @@ -714,6 +720,10 @@ private static Class<?> getEventClass(String eventType) {
return StoriesFeedUpdatedEvent.class;
case "flag.updated":
return FlagUpdatedEvent.class;
case "import.error":
return AsyncImportErrorEvent.class;
case "import.success":
return AsyncImportSuccessEvent.class;
case "ingress.error":
return IngressErrorEvent.class;
case "ingress.started":
Expand Down Expand Up @@ -750,6 +760,8 @@ private static Class<?> getEventClass(String eventType) {
return ModerationFlaggedEvent.class;
case "moderation.image_analysis.complete":
return ModerationImageAnalysisCompleteEvent.class;
case "moderation.intent_detected":
return IntentDetectedEvent.class;
case "moderation.mark_reviewed":
return ModerationMarkReviewedEvent.class;
case "moderation.text_analysis.complete":
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/io/getstream/models/ActivityResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ public class ActivityResponse {
@JsonProperty("text")
private String text;

@Nullable
@JsonProperty("top_level_comment_count")
private Integer topLevelCommentCount;

@Nullable
@JsonProperty("visibility_tag")
private String visibilityTag;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/io/getstream/models/ActivitySelectorConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public class ActivitySelectorConfig {
@JsonProperty("min_popularity")
private Integer minPopularity;

@Nullable
@JsonProperty("ranking_candidate_limit")
private Integer rankingCandidateLimit;

@Nullable
@JsonProperty("sort")
private List<SortParamRequest> sort;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ public class ActivitySelectorConfigResponse {
@JsonProperty("min_popularity")
private Integer minPopularity;

@Nullable
@JsonProperty("ranking_candidate_limit")
private Integer rankingCandidateLimit;

@Nullable
@JsonProperty("sort")
private List<SortParamRequest> sort;
Expand Down
57 changes: 57 additions & 0 deletions src/main/java/io/getstream/models/AsyncImportErrorEvent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/*
* ========================================================================
* WARNING: GENERATED CODE -- DO NOT EDIT!
* ========================================================================
*
* This file was auto-generated by GetStream internal OpenAPI
*
* Any modifications to this file will be lost upon regeneration.
* To make changes, please modify the source templates and regenerate.
*
* ========================================================================
*/
package io.getstream.models;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Date;
import java.util.Map;
import org.jetbrains.annotations.Nullable;

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

@JsonProperty("created_at")
private Date createdAt;

@JsonProperty("error")
private String error;

@JsonProperty("finished_at")
private Date finishedAt;

@JsonProperty("product")
private String product;

@JsonProperty("state")
private String state;

@JsonProperty("task_id")
private String taskID;

@JsonProperty("custom")
private Map<String, Object> custom;

@JsonProperty("type")
private String type;

@Nullable
@JsonProperty("received_at")
private Date receivedAt;

@Nullable
@JsonProperty("started_at")
private Date startedAt;
}
54 changes: 54 additions & 0 deletions src/main/java/io/getstream/models/AsyncImportSuccessEvent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/*
* ========================================================================
* WARNING: GENERATED CODE -- DO NOT EDIT!
* ========================================================================
*
* This file was auto-generated by GetStream internal OpenAPI
*
* Any modifications to this file will be lost upon regeneration.
* To make changes, please modify the source templates and regenerate.
*
* ========================================================================
*/
package io.getstream.models;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Date;
import java.util.Map;
import org.jetbrains.annotations.Nullable;

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

@JsonProperty("created_at")
private Date createdAt;

@JsonProperty("finished_at")
private Date finishedAt;

@JsonProperty("product")
private String product;

@JsonProperty("state")
private String state;

@JsonProperty("task_id")
private String taskID;

@JsonProperty("custom")
private Map<String, Object> custom;

@JsonProperty("type")
private String type;

@Nullable
@JsonProperty("received_at")
private Date receivedAt;

@Nullable
@JsonProperty("started_at")
private Date startedAt;
}
16 changes: 16 additions & 0 deletions src/main/java/io/getstream/models/CheckResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ public class CheckResponse {
@JsonProperty("status")
private String status;

@Nullable
@JsonProperty("intent_matched_topic")
private String intentMatchedTopic;

@Nullable
@JsonProperty("intent_score")
private Double intentScore;

@Nullable
@JsonProperty("intent_score_threshold")
private Double intentScoreThreshold;

@Nullable
@JsonProperty("intent_would_fire")
private Boolean intentWouldFire;

@Nullable
@JsonProperty("task_id")
private String taskID;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/io/getstream/models/ConfigResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ public class ConfigResponse {
@JsonProperty("flood_config")
private FloodConfig floodConfig;

@Nullable
@JsonProperty("intent_config")
private IntentConfigResponse intentConfig;

@Nullable
@JsonProperty("llm_config")
private LLMConfig llmConfig;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/io/getstream/models/FilterConfigResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ public class FilterConfigResponse {
@JsonProperty("ai_image_labels")
private List<String> aiImageLabels;

@Nullable
@JsonProperty("ai_image_ocr_labels")
private List<String> aiImageOcrLabels;

@Nullable
@JsonProperty("ai_text_labels")
private List<String> aiTextLabels;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/io/getstream/models/GetActivityRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,8 @@ public class GetActivityRequest {
@Query("translate_text")
@JsonIgnore
private Boolean TranslateText;

@Query("include_top_level_comment_count")
@JsonIgnore
private Boolean IncludeTopLevelCommentCount;
}
4 changes: 4 additions & 0 deletions src/main/java/io/getstream/models/GetCommentsRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,8 @@ public class GetCommentsRequest {
@Query("next")
@JsonIgnore
private String Next;

@Query("include_top_level_comment_count")
@JsonIgnore
private Boolean IncludeTopLevelCommentCount;
}
7 changes: 7 additions & 0 deletions src/main/java/io/getstream/models/GetCommentsResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
@lombok.AllArgsConstructor
public class GetCommentsResponse {

@JsonProperty("comment_count")
private Integer commentCount;

@JsonProperty("duration")
private String duration;

Expand All @@ -38,4 +41,8 @@ public class GetCommentsResponse {
@Nullable
@JsonProperty("prev")
private String prev;

@Nullable
@JsonProperty("top_level_comment_count")
private Integer topLevelCommentCount;
}
35 changes: 35 additions & 0 deletions src/main/java/io/getstream/models/IntentBufferedItem.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* ========================================================================
* WARNING: GENERATED CODE -- DO NOT EDIT!
* ========================================================================
*
* This file was auto-generated by GetStream internal OpenAPI
*
* Any modifications to this file will be lost upon regeneration.
* To make changes, please modify the source templates and regenerate.
*
* ========================================================================
*/
package io.getstream.models;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Date;

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

@JsonProperty("author_user_id")
private String authorUserID;

@JsonProperty("created_at")
private Date createdAt;

@JsonProperty("id")
private String id;

@JsonProperty("text")
private String text;
}
28 changes: 28 additions & 0 deletions src/main/java/io/getstream/models/IntentConfigRequest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* ========================================================================
* WARNING: GENERATED CODE -- DO NOT EDIT!
* ========================================================================
*
* This file was auto-generated by GetStream internal OpenAPI
*
* Any modifications to this file will be lost upon regeneration.
* To make changes, please modify the source templates and regenerate.
*
* ========================================================================
*/
package io.getstream.models;

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

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

@Nullable
@JsonProperty("topics")
private List<IntentTopicRequest> topics;
}
26 changes: 26 additions & 0 deletions src/main/java/io/getstream/models/IntentConfigResponse.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* ========================================================================
* WARNING: GENERATED CODE -- DO NOT EDIT!
* ========================================================================
*
* This file was auto-generated by GetStream internal OpenAPI
*
* Any modifications to this file will be lost upon regeneration.
* To make changes, please modify the source templates and regenerate.
*
* ========================================================================
*/
package io.getstream.models;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

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

@JsonProperty("topics")
private List<IntentTopicResponse> topics;
}
Loading
Loading