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
7 changes: 7 additions & 0 deletions src/main/java/io/getstream/Webhook.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import io.getstream.models.AsyncBulkImageModerationEvent;
import io.getstream.models.AsyncExportChannelsEvent;
import io.getstream.models.AsyncExportErrorEvent;
import io.getstream.models.AsyncExportFeedsSuccessEvent;
import io.getstream.models.AsyncExportLabelResultsEvent;
import io.getstream.models.AsyncExportModerationLogsEvent;
import io.getstream.models.AsyncExportReviewQueueEvent;
Expand Down Expand Up @@ -335,6 +336,8 @@ public static class EventType {
public static final String FEEDS_COMMENT_REACTION_UPDATED = "feeds.comment.reaction.updated";
public static final String FEEDS_COMMENT_RESTORED = "feeds.comment.restored";
public static final String FEEDS_COMMENT_UPDATED = "feeds.comment.updated";
public static final String FEEDS_EXPORT_ERROR = "feeds.export.error";
public static final String FEEDS_EXPORT_SUCCESS = "feeds.export.success";
public static final String FEEDS_FEED_CREATED = "feeds.feed.created";
public static final String FEEDS_FEED_DELETED = "feeds.feed.deleted";
public static final String FEEDS_FEED_UPDATED = "feeds.feed.updated";
Expand Down Expand Up @@ -729,6 +732,10 @@ private static Class<?> getEventClass(String eventType) {
return CommentRestoredEvent.class;
case "feeds.comment.updated":
return CommentUpdatedEvent.class;
case "feeds.export.error":
return AsyncExportErrorEvent.class;
case "feeds.export.success":
return AsyncExportFeedsSuccessEvent.class;
case "feeds.feed.created":
return FeedCreatedEvent.class;
case "feeds.feed.deleted":
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/io/getstream/models/AIImageConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public class AIImageConfig {
@JsonProperty("ocr_rules")
private List<OCRRule> ocrRules;

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

@Nullable
@JsonProperty("rules")
private List<AWSRekognitionRule> rules;
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 @@ -164,6 +164,10 @@ public class ActivityResponse {
@JsonProperty("latest_shares")
private List<ShareResponse> latestShares;

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

@Nullable
@JsonProperty("current_feed")
private FeedResponse currentFeed;
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 @@ -46,6 +46,10 @@ public class ActivitySelectorConfig {
@JsonProperty("time_budget_ms")
private Integer timeBudgetMs;

@Nullable
@JsonProperty("viewer_location_radius_km")
private Double viewerLocationRadiusKm;

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

@Nullable
@JsonProperty("viewer_location_radius_km")
private Double viewerLocationRadiusKm;

@Nullable
@JsonProperty("sort")
private List<SortParamRequest> sort;
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/io/getstream/models/AnalyzeRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

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

Expand All @@ -39,6 +40,10 @@ public class AnalyzeRequest {
@JsonProperty("content_published_at")
private Date contentPublishedAt;

/**
* @deprecated
*/
@Deprecated
@Nullable
@JsonProperty("country_code")
private String countryCode;
Expand All @@ -59,6 +64,10 @@ public class AnalyzeRequest {
@JsonProperty("user_id")
private String userID;

@Nullable
@JsonProperty("country_codes")
private List<String> countryCodes;

@Nullable
@JsonProperty("content_ids")
private Map<String, String> contentIds;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
* ========================================================================
* 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 AsyncExportFeedsSuccessEvent {

@JsonProperty("created_at")
private Date createdAt;

@JsonProperty("finished_at")
private Date finishedAt;

@JsonProperty("manifest_path")
private String manifestPath;

@JsonProperty("started_at")
private Date startedAt;

@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;
}
4 changes: 4 additions & 0 deletions src/main/java/io/getstream/models/BlockListConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ public class BlockListConfig {
@JsonProperty("enabled")
private Boolean enabled;

@Nullable
@JsonProperty("explicit_urls_only")
private Boolean explicitUrlsOnly;

@Nullable
@JsonProperty("match_substring")
private Boolean matchSubstring;
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/io/getstream/models/CallTranscription.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

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

/** CallTranscription represents a transcription of a call. */
@lombok.Data
Expand All @@ -36,4 +37,12 @@ public class CallTranscription {

@JsonProperty("url")
private String url;

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

@Nullable
@JsonProperty("translated")
private Boolean translated;
}
22 changes: 22 additions & 0 deletions src/main/java/io/getstream/models/CancelExportFeedsRequest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* ========================================================================
* 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;

/**
* Cancel a feeds export Cancels a queued or processing feeds export. A queued export is cancelled
* immediately; a processing one is stopped by the worker, which removes the files it wrote
*/
@lombok.Data
@lombok.Builder
@lombok.NoArgsConstructor
public class CancelExportFeedsRequest {}
26 changes: 26 additions & 0 deletions src/main/java/io/getstream/models/CancelExportFeedsResponse.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;

/** Response for cancelling a feeds export */
@lombok.Data
@lombok.Builder
@lombok.NoArgsConstructor
@lombok.AllArgsConstructor
public class CancelExportFeedsResponse {

@JsonProperty("duration")
private String duration;
}
12 changes: 12 additions & 0 deletions src/main/java/io/getstream/models/ChannelForkResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,19 @@ public class ChannelForkResponse {
@JsonProperty("message_id_map")
private Map<String, String> messageIDMap;

@Nullable
@JsonProperty("failed_reason")
private String failedReason;

@Nullable
@JsonProperty("oldest_source_message_id")
private String oldestSourceMessageID;

@Nullable
@JsonProperty("task_id")
private String taskID;

@Nullable
@JsonProperty("truncated")
private Boolean truncated;
}
12 changes: 12 additions & 0 deletions src/main/java/io/getstream/models/ChannelForkSummary.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,19 @@ public class ChannelForkSummary {
@JsonProperty("status")
private String status;

@Nullable
@JsonProperty("failed_reason")
private String failedReason;

@Nullable
@JsonProperty("oldest_source_message_id")
private String oldestSourceMessageID;

@Nullable
@JsonProperty("task_id")
private String taskID;

@Nullable
@JsonProperty("truncated")
private Boolean truncated;
}
7 changes: 6 additions & 1 deletion src/main/java/io/getstream/models/ChannelForkedEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
import java.util.Map;
import org.jetbrains.annotations.Nullable;

/** Emitted on an agent channel once a fork of it into a new agent channel is complete. */
/**
* Emitted once a fork of an agent channel into a new agent channel is finished, complete or failed
* (`fork.status` is `completed` or `failed`): on the source channel, and on the fork, whose members
* are told over WebSocket so a client showing the fork while it was backfilling reads it again.
* `cid` is the channel the event was sent on; `fork` names both.
*/
@lombok.Data
@lombok.Builder
@lombok.NoArgsConstructor
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/io/getstream/models/ChannelResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ public class ChannelResponse {
@JsonProperty("created_by")
private UserResponse createdBy;

@Nullable
@JsonProperty("fork")
private ChannelForkSummary fork;

@Nullable
@JsonProperty("truncated_by")
private UserResponse truncatedBy;
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/io/getstream/models/CheckRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

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

Expand Down Expand Up @@ -45,6 +46,10 @@ public class CheckRequest {
@JsonProperty("content_published_at")
private Date contentPublishedAt;

/**
* @deprecated
*/
@Deprecated
@Nullable
@JsonProperty("country_code")
private String countryCode;
Expand All @@ -57,6 +62,10 @@ public class CheckRequest {
@JsonProperty("user_id")
private String userID;

@Nullable
@JsonProperty("country_codes")
private List<String> countryCodes;

@Nullable
@JsonProperty("config")
private ModerationConfig config;
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 @@ -86,6 +86,10 @@ public class ConfigResponse {
@JsonProperty("block_list_config")
private BlockListConfig blockListConfig;

@Nullable
@JsonProperty("engine")
private ModerationEngineConfigResponse engine;

@Nullable
@JsonProperty("flood_config")
private FloodConfig floodConfig;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* ========================================================================
* 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;

/**
* Delete history window teams Puts up to ten teams back on the app&#39;s default history window.
* Only for apps with the history window enabled; other apps get 403. Server-side only.
*/
@lombok.Data
@lombok.Builder
@lombok.NoArgsConstructor
@lombok.AllArgsConstructor
public class DeleteHistoryWindowTeamsRequest {

@JsonProperty("teams")
private List<String> teams;
}
Loading
Loading