Skip to content
Open
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
8 changes: 5 additions & 3 deletions lib/getstream_ruby/generated/chat_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def get_campaign(_id, prev = nil, _next = nil, limit = nil)
#
# @param _id [String]
# @param update_campaign_request [UpdateCampaignRequest]
# @return [Models::CampaignResponse]
# @return [Models::UpdateCampaignResponse]
def update_campaign(_id, update_campaign_request)
path = '/api/v2/chat/campaigns/{id}'
# Replace path parameters
Expand Down Expand Up @@ -131,7 +131,7 @@ def start_campaign(_id, start_campaign_request)
#
# @param _id [String]
# @param stop_campaign_request [StopCampaignRequest]
# @return [Models::CampaignResponse]
# @return [Models::StopCampaignResponse]
def stop_campaign(_id, stop_campaign_request)
path = '/api/v2/chat/campaigns/{id}/stop'
# Replace path parameters
Expand Down Expand Up @@ -279,15 +279,17 @@ def get_or_create_distinct_channel(_type, channel_get_or_create_request)
# @param _type [String]
# @param _id [String]
# @param hard_delete [Boolean]
# @param skip_truncate [Boolean]
# @return [Models::DeleteChannelResponse]
def delete_channel(_type, _id, hard_delete = nil)
def delete_channel(_type, _id, hard_delete = nil, skip_truncate = nil)
path = '/api/v2/chat/channels/{type}/{id}'
# Replace path parameters
path = path.gsub('{type}', _type.to_s)
path = path.gsub('{id}', _id.to_s)
# Build query parameters
query_params = {}
query_params['hard_delete'] = hard_delete unless hard_delete.nil?
query_params['skip_truncate'] = skip_truncate unless skip_truncate.nil?

# Make the API request
@client.make_request(
Expand Down
6 changes: 5 additions & 1 deletion lib/getstream_ruby/generated/common_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1022,9 +1022,11 @@ def upsert_push_template(upsert_push_template_request)
# @param ios [Boolean]
# @param web [Boolean]
# @param unity [Boolean]
# @param unity_desktop [Boolean]
# @param unity_console [Boolean]
# @param endpoints [String]
# @return [Models::GetRateLimitsResponse]
def get_rate_limits(server_side = nil, android = nil, ios = nil, web = nil, unity = nil, endpoints = nil)
def get_rate_limits(server_side = nil, android = nil, ios = nil, web = nil, unity = nil, unity_desktop = nil, unity_console = nil, endpoints = nil)
path = '/api/v2/rate_limits'
# Build query parameters
query_params = {}
Expand All @@ -1033,6 +1035,8 @@ def get_rate_limits(server_side = nil, android = nil, ios = nil, web = nil, unit
query_params['ios'] = ios unless ios.nil?
query_params['web'] = web unless web.nil?
query_params['unity'] = unity unless unity.nil?
query_params['unity_desktop'] = unity_desktop unless unity_desktop.nil?
query_params['unity_console'] = unity_console unless unity_console.nil?
query_params['endpoints'] = endpoints unless endpoints.nil?

# Make the API request
Expand Down
10 changes: 7 additions & 3 deletions lib/getstream_ruby/generated/feeds_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def query_activities(query_activities_request, language = nil, translate_text =
)
end

# Returns a single user's reactions across a set of activity IDs, without activity payloads
# Returns a single user's activity reactions, optionally scoped to a set of activity IDs, without activity payloads
#
# @param batch_query_activity_reactions_request [BatchQueryActivityReactionsRequest]
# @return [Models::BatchQueryActivityReactionsResponse]
Expand Down Expand Up @@ -776,7 +776,7 @@ def query_comments(query_comments_request, language = nil, translate_text = nil)
)
end

# Returns a single user's reactions across a set of comment IDs, without comment payloads
# Returns a single user's comment reactions, optionally scoped to a set of comment IDs, without comment payloads
#
# @param batch_query_comment_reactions_request [BatchQueryCommentReactionsRequest]
# @return [Models::BatchQueryCommentReactionsResponse]
Expand Down Expand Up @@ -1776,9 +1776,11 @@ def query_feeds(query_feeds_request)
# @param ios [Boolean]
# @param web [Boolean]
# @param unity [Boolean]
# @param unity_desktop [Boolean]
# @param unity_console [Boolean]
# @param server_side [Boolean]
# @return [Models::GetFeedsRateLimitsResponse]
def get_feeds_rate_limits(endpoints = nil, android = nil, ios = nil, web = nil, unity = nil, server_side = nil)
def get_feeds_rate_limits(endpoints = nil, android = nil, ios = nil, web = nil, unity = nil, unity_desktop = nil, unity_console = nil, server_side = nil)
path = '/api/v2/feeds/feeds/rate_limits'
# Build query parameters
query_params = {}
Expand All @@ -1787,6 +1789,8 @@ def get_feeds_rate_limits(endpoints = nil, android = nil, ios = nil, web = nil,
query_params['ios'] = ios unless ios.nil?
query_params['web'] = web unless web.nil?
query_params['unity'] = unity unless unity.nil?
query_params['unity_desktop'] = unity_desktop unless unity_desktop.nil?
query_params['unity_console'] = unity_console unless unity_console.nil?
query_params['server_side'] = server_side unless server_side.nil?

# Make the API request
Expand Down
36 changes: 36 additions & 0 deletions lib/getstream_ruby/generated/models/activity_marks_config.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# frozen_string_literal: true

# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.

module GetStream
module Generated
module Models
#
class ActivityMarksConfig < GetStream::BaseModel

# Model attributes
# @!attribute track_read
# @return [Boolean] Whether to return per-activity read status on content feeds
attr_accessor :track_read
# @!attribute track_seen
# @return [Boolean] Whether to return per-activity seen status on content feeds
attr_accessor :track_seen

# Initialize with attributes
def initialize(attributes = {})
super(attributes)
@track_read = attributes[:track_read] || attributes['track_read'] || nil
@track_seen = attributes[:track_seen] || attributes['track_seen'] || nil
end

# Override field mappings for JSON serialization
def self.json_field_mappings
{
track_read: 'track_read',
track_seen: 'track_seen'
}
end
end
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ module Models
class ActivityProcessingConfig < GetStream::BaseModel

# Model attributes
# @!attribute send_allowed_tags_to_ai
# @return [Boolean] When true, this feed group's allowed_tags is given to the model as a constrained vocabulary so it maps its own wording onto a configured tag instead of that output being discarded. Improves how often a tag is produced, at the cost of sending the list on every request. Scoped to this group's own list: leaving it false keeps this group's tags out of the request even when another feed group on the same activity sets it true. Requires allowed_tags. Off by default.
attr_accessor :send_allowed_tags_to_ai
# @!attribute allowed_tags
# @return [Array<String>] When set, the LLM activity processors may only write interest tags from this list. Tags are matched literally after lower-casing and trimming, so a generic vocabulary matches more often than in-house terms. Mutually exclusive with blocked_tags.
# @return [Array<String>] When set, the LLM activity processors may only write interest tags from this list. By default the model is not told about the list, so a tag is only written when the model happens to produce that exact word after lower-casing and trimming, which for any vocabulary is often not the case; set send_allowed_tags_to_ai to have the model choose from the list instead. Mutually exclusive with blocked_tags.
attr_accessor :allowed_tags
# @!attribute blocked_tags
# @return [Array<String>] Interest tags the LLM activity processors are never allowed to write. Mutually exclusive with allowed_tags.
Expand All @@ -19,13 +22,15 @@ class ActivityProcessingConfig < GetStream::BaseModel
# Initialize with attributes
def initialize(attributes = {})
super(attributes)
@send_allowed_tags_to_ai = attributes[:send_allowed_tags_to_ai] || attributes['send_allowed_tags_to_ai'] || nil
@allowed_tags = attributes[:allowed_tags] || attributes['allowed_tags'] || nil
@blocked_tags = attributes[:blocked_tags] || attributes['blocked_tags'] || nil
end

# Override field mappings for JSON serialization
def self.json_field_mappings
{
send_allowed_tags_to_ai: 'send_allowed_tags_to_ai',
allowed_tags: 'allowed_tags',
blocked_tags: 'blocked_tags'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class ActivitySelectorConfig < GetStream::BaseModel
# @!attribute sort
# @return [Array<SortParamRequest>] Sort parameters for activity selection
attr_accessor :sort
# @!attribute feed_groups
# @return [FeedGroupScope]
attr_accessor :feed_groups
# @!attribute filter
# @return [Object] Filter for activity selection
attr_accessor :filter
Expand All @@ -39,6 +42,7 @@ def initialize(attributes = {})
@cutoff_window = attributes[:cutoff_window] || attributes['cutoff_window'] || nil
@min_popularity = attributes[:min_popularity] || attributes['min_popularity'] || nil
@sort = attributes[:sort] || attributes['sort'] || nil
@feed_groups = attributes[:feed_groups] || attributes['feed_groups'] || nil
@filter = attributes[:filter] || attributes['filter'] || nil
@params = attributes[:params] || attributes['params'] || nil
end
Expand All @@ -51,6 +55,7 @@ def self.json_field_mappings
cutoff_window: 'cutoff_window',
min_popularity: 'min_popularity',
sort: 'sort',
feed_groups: 'feed_groups',
filter: 'filter',
params: 'params'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class ActivitySelectorConfigResponse < GetStream::BaseModel
# @!attribute sort
# @return [Array<SortParamRequest>] Sort parameters for activity selection
attr_accessor :sort
# @!attribute feed_groups
# @return [FeedGroupScope]
attr_accessor :feed_groups
# @!attribute filter
# @return [Object] Filter for activity selection
attr_accessor :filter
Expand All @@ -39,6 +42,7 @@ def initialize(attributes = {})
@cutoff_window = attributes[:cutoff_window] || attributes['cutoff_window'] || nil
@min_popularity = attributes[:min_popularity] || attributes['min_popularity'] || nil
@sort = attributes[:sort] || attributes['sort'] || nil
@feed_groups = attributes[:feed_groups] || attributes['feed_groups'] || nil
@filter = attributes[:filter] || attributes['filter'] || nil
@params = attributes[:params] || attributes['params'] || nil
end
Expand All @@ -51,6 +55,7 @@ def self.json_field_mappings
cutoff_window: 'cutoff_window',
min_popularity: 'min_popularity',
sort: 'sort',
feed_groups: 'feed_groups',
filter: 'filter',
params: 'params'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def initialize(attributes = {})
@started_at = attributes[:started_at] || attributes['started_at']
@task_id = attributes[:task_id] || attributes['task_id']
@custom = attributes[:custom] || attributes['custom']
@type = attributes[:type] || attributes['type'] || "export.review_queue.error"
@type = attributes[:type] || attributes['type'] || "export.users.error"
@received_at = attributes[:received_at] || attributes['received_at'] || nil
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ module Models
class BatchQueryActivityReactionsRequest < GetStream::BaseModel

# Model attributes
# @!attribute activity_ids
# @return [Array<String>] Activity IDs to fetch the user's reactions for (max 100)
attr_accessor :activity_ids
# @!attribute limit
# @return [Integer]
attr_accessor :limit
Expand All @@ -24,11 +21,14 @@ class BatchQueryActivityReactionsRequest < GetStream::BaseModel
# @!attribute user_id
# @return [String] Server-side only. The user whose reactions to fetch; defaults to the authenticated user for client-side requests
attr_accessor :user_id
# @!attribute activity_ids
# @return [Array<String>] Activity IDs to fetch the user's reactions for (max 100). Omit to page over all of the user's activity reactions
attr_accessor :activity_ids
# @!attribute sort
# @return [Array<SortParamRequest>]
attr_accessor :sort
# @!attribute filter
# @return [Object] Optional filter on reaction_type or created_at
# @return [Object] Optional filter on reaction_type or created_at. To restrict by activity, prefer activity_ids over filter.activity_id: activity_ids is capped at 100 and served by the per-activity index, and filter.activity_id is rejected when activity_ids is omitted
attr_accessor :filter
# @!attribute user
# @return [UserRequest] User request object
Expand All @@ -37,11 +37,11 @@ class BatchQueryActivityReactionsRequest < GetStream::BaseModel
# Initialize with attributes
def initialize(attributes = {})
super(attributes)
@activity_ids = attributes[:activity_ids] || attributes['activity_ids']
@limit = attributes[:limit] || attributes['limit'] || nil
@next = attributes[:next] || attributes['next'] || nil
@prev = attributes[:prev] || attributes['prev'] || nil
@user_id = attributes[:user_id] || attributes['user_id'] || nil
@activity_ids = attributes[:activity_ids] || attributes['activity_ids'] || nil
@sort = attributes[:sort] || attributes['sort'] || nil
@filter = attributes[:filter] || attributes['filter'] || nil
@user = attributes[:user] || attributes['user'] || nil
Expand All @@ -50,11 +50,11 @@ def initialize(attributes = {})
# Override field mappings for JSON serialization
def self.json_field_mappings
{
activity_ids: 'activity_ids',
limit: 'limit',
next: 'next',
prev: 'prev',
user_id: 'user_id',
activity_ids: 'activity_ids',
sort: 'sort',
filter: 'filter',
user: 'user'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ module Models
class BatchQueryCommentReactionsRequest < GetStream::BaseModel

# Model attributes
# @!attribute comment_ids
# @return [Array<String>] Comment IDs to fetch the user's reactions for (max 100)
attr_accessor :comment_ids
# @!attribute limit
# @return [Integer]
attr_accessor :limit
Expand All @@ -24,11 +21,14 @@ class BatchQueryCommentReactionsRequest < GetStream::BaseModel
# @!attribute user_id
# @return [String] Server-side only. The user whose reactions to fetch; defaults to the authenticated user for client-side requests
attr_accessor :user_id
# @!attribute comment_ids
# @return [Array<String>] Comment IDs to fetch the user's reactions for (max 100). Omit to page over all of the user's comment reactions
attr_accessor :comment_ids
# @!attribute sort
# @return [Array<SortParamRequest>]
attr_accessor :sort
# @!attribute filter
# @return [Object] Optional filter on reaction_type or created_at
# @return [Object] Optional filter on reaction_type or created_at. To restrict by comment, prefer comment_ids over filter.comment_id: comment_ids is capped at 100 and served by the per-comment index, and filter.comment_id is rejected when comment_ids is omitted
attr_accessor :filter
# @!attribute user
# @return [UserRequest] User request object
Expand All @@ -37,11 +37,11 @@ class BatchQueryCommentReactionsRequest < GetStream::BaseModel
# Initialize with attributes
def initialize(attributes = {})
super(attributes)
@comment_ids = attributes[:comment_ids] || attributes['comment_ids']
@limit = attributes[:limit] || attributes['limit'] || nil
@next = attributes[:next] || attributes['next'] || nil
@prev = attributes[:prev] || attributes['prev'] || nil
@user_id = attributes[:user_id] || attributes['user_id'] || nil
@comment_ids = attributes[:comment_ids] || attributes['comment_ids'] || nil
@sort = attributes[:sort] || attributes['sort'] || nil
@filter = attributes[:filter] || attributes['filter'] || nil
@user = attributes[:user] || attributes['user'] || nil
Expand All @@ -50,11 +50,11 @@ def initialize(attributes = {})
# Override field mappings for JSON serialization
def self.json_field_mappings
{
comment_ids: 'comment_ids',
limit: 'limit',
next: 'next',
prev: 'prev',
user_id: 'user_id',
comment_ids: 'comment_ids',
sort: 'sort',
filter: 'filter',
user: 'user'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class CreateFeedGroupRequest < GetStream::BaseModel
# @!attribute activity_filter
# @return [ActivityFilterConfig]
attr_accessor :activity_filter
# @!attribute activity_marks
# @return [ActivityMarksConfig]
attr_accessor :activity_marks
# @!attribute activity_processing
# @return [ActivityProcessingConfig]
attr_accessor :activity_processing
Expand Down Expand Up @@ -58,6 +61,7 @@ def initialize(attributes = {})
@activity_processors = attributes[:activity_processors] || attributes['activity_processors'] || nil
@activity_selectors = attributes[:activity_selectors] || attributes['activity_selectors'] || nil
@activity_filter = attributes[:activity_filter] || attributes['activity_filter'] || nil
@activity_marks = attributes[:activity_marks] || attributes['activity_marks'] || nil
@activity_processing = attributes[:activity_processing] || attributes['activity_processing'] || nil
@aggregation = attributes[:aggregation] || attributes['aggregation'] || nil
@custom = attributes[:custom] || attributes['custom'] || nil
Expand All @@ -76,6 +80,7 @@ def self.json_field_mappings
activity_processors: 'activity_processors',
activity_selectors: 'activity_selectors',
activity_filter: 'activity_filter',
activity_marks: 'activity_marks',
activity_processing: 'activity_processing',
aggregation: 'aggregation',
custom: 'custom',
Expand Down
Loading
Loading