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
4 changes: 3 additions & 1 deletion lib/getstream_ruby/generated/chat_client.rb
Original file line number Diff line number Diff line change
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
6 changes: 5 additions & 1 deletion lib/getstream_ruby/generated/feeds_client.rb
Original file line number Diff line number Diff line change
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.channels.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 @@ -15,6 +15,9 @@ class ChannelBatchUpdateRequest < GetStream::BaseModel
# @!attribute filter
# @return [Object] Filter to apply to the query
attr_accessor :filter
# @!attribute hide_history_before
# @return [DateTime] Required with the `addMembersHideHistory` operation, and rejected with every other operation including `addMembers`. Hides each matched channel's history before this time from the members the operation adds. Members that already belong to a matched channel are never affected. Must be in RFC3339 format (e.g., "2024-01-01T10:00:00Z") and in the past.
attr_accessor :hide_history_before
# @!attribute custom_unset
# @return [Array<String>] `updateData` only. Deletes these keys from each channel's existing custom object, leaving every other custom key untouched. Keys are dot-paths; deleting a key that does not exist is a no-op. Cannot be combined with `data.custom`
attr_accessor :custom_unset
Expand All @@ -33,6 +36,7 @@ def initialize(attributes = {})
super(attributes)
@operation = attributes[:operation] || attributes['operation']
@filter = attributes[:filter] || attributes['filter']
@hide_history_before = attributes[:hide_history_before] || attributes['hide_history_before'] || nil
@custom_unset = attributes[:custom_unset] || attributes['custom_unset'] || nil
@members = attributes[:members] || attributes['members'] || nil
@custom_set = attributes[:custom_set] || attributes['custom_set'] || nil
Expand All @@ -44,6 +48,7 @@ def self.json_field_mappings
{
operation: 'operation',
filter: 'filter',
hide_history_before: 'hide_history_before',
custom_unset: 'custom_unset',
members: 'members',
custom_set: 'custom_set',
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,26 @@ class DeleteChannelsRequest < GetStream::BaseModel
# @return [Array<String>] All channels that should be deleted
attr_accessor :cids
# @!attribute hard_delete
# @return [Boolean] Specify if channels and all ressources should be hard deleted
# @return [Boolean] Server-side only. When true, the channels and all their resources are permanently deleted instead of soft-deleted.
attr_accessor :hard_delete
# @!attribute skip_truncate
# @return [Boolean] Server-side only. When true, the soft delete preserves message history instead of hiding it, so a later recreation of any of these channel IDs restores the full history. Only supported for distinct channels. Cannot be combined with hard_delete.
attr_accessor :skip_truncate

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

# Override field mappings for JSON serialization
def self.json_field_mappings
{
cids: 'cids',
hard_delete: 'hard_delete'
hard_delete: 'hard_delete',
skip_truncate: 'skip_truncate'
}
end
end
Expand Down
5 changes: 5 additions & 0 deletions lib/getstream_ruby/generated/models/feed_group_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ class FeedGroupResponse < 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 @@ -70,6 +73,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 @@ -91,6 +95,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
36 changes: 36 additions & 0 deletions lib/getstream_ruby/generated/models/feed_group_scope.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 FeedGroupScope < GetStream::BaseModel

# Model attributes
# @!attribute exclude
# @return [Array<String>] Select activities from every feed group except these. An activity cross-posted to an excluded and a non-excluded group is still selected. Mutually exclusive with include
attr_accessor :exclude
# @!attribute include
# @return [Array<String>] Select only activities that live in a feed belonging to one of these feed groups. Mutually exclusive with exclude
attr_accessor :include

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

# Override field mappings for JSON serialization
def self.json_field_mappings
{
exclude: 'exclude',
include: 'include'
}
end
end
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ class GetFeedsRateLimitsResponse < GetStream::BaseModel
# @!attribute unity
# @return [Hash<String, LimitInfoResponse>] Rate limits for Unity platform (endpoint name -> limit info)
attr_accessor :unity
# @!attribute unity_console
# @return [Hash<String, LimitInfoResponse>] Rate limits for Unity console platform (endpoint name -> limit info)
attr_accessor :unity_console
# @!attribute unity_desktop
# @return [Hash<String, LimitInfoResponse>] Rate limits for Unity desktop platform (endpoint name -> limit info)
attr_accessor :unity_desktop
# @!attribute web
# @return [Hash<String, LimitInfoResponse>] Rate limits for Web platform (endpoint name -> limit info)
attr_accessor :web
Expand All @@ -36,6 +42,8 @@ def initialize(attributes = {})
@ios = attributes[:ios] || attributes['ios'] || nil
@server_side = attributes[:server_side] || attributes['server_side'] || nil
@unity = attributes[:unity] || attributes['unity'] || nil
@unity_console = attributes[:unity_console] || attributes['unity_console'] || nil
@unity_desktop = attributes[:unity_desktop] || attributes['unity_desktop'] || nil
@web = attributes[:web] || attributes['web'] || nil
end

Expand All @@ -47,6 +55,8 @@ def self.json_field_mappings
ios: 'ios',
server_side: 'server_side',
unity: 'unity',
unity_console: 'unity_console',
unity_desktop: 'unity_desktop',
web: 'web'
}
end
Expand Down
Loading
Loading