From c0f352c74c4333f9a78b4bcbee2576fb3828c066 Mon Sep 17 00:00:00 2001 From: Aditya Agarwal Date: Mon, 26 Jan 2026 14:23:52 +0100 Subject: [PATCH] chore: sdk update --- lib/getstream_ruby/generated/common_client.rb | 67 +++++++++++++++ lib/getstream_ruby/generated/feeds_client.rb | 8 +- .../generated/models/activity_request.rb | 12 ++- .../generated/models/activity_response.rb | 5 ++ .../generated/models/add_activity_request.rb | 12 ++- .../generated/models/add_activity_response.rb | 7 +- .../models/add_comment_reaction_response.rb | 7 +- .../generated/models/add_comment_response.rb | 12 ++- .../generated/models/add_reaction_response.rb | 7 +- .../generated/models/appeal_accepted_event.rb | 51 ++++++++++++ .../generated/models/appeal_created_event.rb | 51 ++++++++++++ .../generated/models/appeal_item_response.rb | 81 +++++++++++++++++++ .../generated/models/appeal_rejected_event.rb | 51 ++++++++++++ .../generated/models/appeal_request.rb | 56 +++++++++++++ .../generated/models/appeal_response.rb | 36 +++++++++ .../models/call_recording_failed_event.rb | 5 ++ .../models/call_recording_ready_event.rb | 5 ++ .../models/call_recording_started_event.rb | 5 ++ .../models/call_recording_stopped_event.rb | 5 ++ .../generated/models/call_response.rb | 5 ++ .../generated/models/call_settings.rb | 10 +++ .../generated/models/call_settings_request.rb | 10 +++ .../models/call_settings_response.rb | 10 +++ .../models/call_stats_participant_counts.rb | 7 +- .../models/channel_batch_completed_event.rb | 81 +++++++++++++++++++ .../models/channel_batch_started_event.rb | 81 +++++++++++++++++++ .../generated/models/comment_response.rb | 5 ++ .../models/composite_recording_response.rb | 31 +++++++ .../models/create_import_v2_task_request.rb | 46 +++++++++++ .../models/create_import_v2_task_response.rb | 66 +++++++++++++++ .../models/delete_import_v2_task_response.rb | 31 +++++++ .../generated/models/egress_response.rb | 17 +++- .../generated/models/enrichment_options.rb | 41 +++++----- .../generated/models/event_hook.rb | 5 ++ .../generated/models/feed_own_data.rb | 5 ++ .../generated/models/feed_response.rb | 5 ++ .../models/feed_suggestion_response.rb | 5 ++ .../models/future_channel_ban_response.rb | 56 +++++++++++++ .../generated/models/get_appeal_response.rb | 36 +++++++++ .../models/get_import_v2_task_response.rb | 66 +++++++++++++++ .../generated/models/go_live_request.rb | 15 ++++ .../generated/models/import_v2_task_item.rb | 61 ++++++++++++++ .../models/import_v2_task_settings.rb | 36 +++++++++ .../models/import_v2_task_settings_s3.rb | 41 ++++++++++ .../models/individual_record_settings.rb | 31 +++++++ .../models/individual_recording_response.rb | 31 +++++++ .../individual_recording_settings_request.rb | 31 +++++++ .../individual_recording_settings_response.rb | 31 +++++++ .../generated/models/ingress_error_event.rb | 61 ++++++++++++++ .../generated/models/ingress_started_event.rb | 71 ++++++++++++++++ .../generated/models/ingress_stopped_event.rb | 51 ++++++++++++ .../models/list_import_v2_tasks_response.rb | 46 +++++++++++ .../generated/models/mark_reviewed_request.rb | 5 ++ .../generated/models/message_new_event.rb | 2 +- .../generated/models/own_batch_request.rb | 4 +- .../models/participant_session_details.rb | 61 ++++++++++++++ .../generated/models/poll_vote_response.rb | 5 ++ .../generated/models/query_appeals_request.rb | 61 ++++++++++++++ .../models/query_appeals_response.rb | 46 +++++++++++ ...uery_call_participant_sessions_response.rb | 76 +++++++++++++++++ .../models/query_channels_request.rb | 15 ++++ .../query_future_channel_bans_payload.rb | 56 +++++++++++++ .../query_future_channel_bans_response.rb | 36 +++++++++ .../generated/models/ranking_config.rb | 2 +- .../generated/models/raw_record_settings.rb | 31 +++++++ .../models/raw_recording_response.rb | 31 +++++++ .../models/raw_recording_settings_request.rb | 31 +++++++ .../models/raw_recording_settings_response.rb | 31 +++++++ .../generated/models/reject_appeal_request.rb | 31 +++++++ .../models/resolve_sip_inbound_request.rb | 5 ++ .../models/restore_action_request.rb | 19 ++++- .../models/review_queue_item_response.rb | 5 ++ .../models/rule_builder_condition.rb | 10 +++ .../generated/models/search_payload.rb | 5 ++ .../models/single_follow_response.rb | 7 +- .../generated/models/stop_live_request.rb | 15 ++++ .../generated/models/submit_action_request.rb | 22 ++++- .../models/submit_action_response.rb | 5 ++ .../generated/models/text_rule_parameters.rb | 10 +++ .../models/threaded_comment_response.rb | 5 ++ .../generated/models/unban_action_request.rb | 19 ++++- .../models/unblock_action_request.rb | 19 ++++- .../models/update_activity_partial_request.rb | 4 +- .../models/update_activity_request.rb | 10 +++ .../models/update_comment_request.rb | 5 ++ .../generated/models/update_feed_request.rb | 15 ++++ .../models/upsert_activities_response.rb | 7 +- ...user_identical_content_count_parameters.rb | 36 +++++++++ .../generated/models/user_role_parameters.rb | 36 +++++++++ .../generated/moderation_client.rb | 50 ++++++++++++ 90 files changed, 2401 insertions(+), 40 deletions(-) create mode 100644 lib/getstream_ruby/generated/models/appeal_accepted_event.rb create mode 100644 lib/getstream_ruby/generated/models/appeal_created_event.rb create mode 100644 lib/getstream_ruby/generated/models/appeal_item_response.rb create mode 100644 lib/getstream_ruby/generated/models/appeal_rejected_event.rb create mode 100644 lib/getstream_ruby/generated/models/appeal_request.rb create mode 100644 lib/getstream_ruby/generated/models/appeal_response.rb create mode 100644 lib/getstream_ruby/generated/models/channel_batch_completed_event.rb create mode 100644 lib/getstream_ruby/generated/models/channel_batch_started_event.rb create mode 100644 lib/getstream_ruby/generated/models/composite_recording_response.rb create mode 100644 lib/getstream_ruby/generated/models/create_import_v2_task_request.rb create mode 100644 lib/getstream_ruby/generated/models/create_import_v2_task_response.rb create mode 100644 lib/getstream_ruby/generated/models/delete_import_v2_task_response.rb create mode 100644 lib/getstream_ruby/generated/models/future_channel_ban_response.rb create mode 100644 lib/getstream_ruby/generated/models/get_appeal_response.rb create mode 100644 lib/getstream_ruby/generated/models/get_import_v2_task_response.rb create mode 100644 lib/getstream_ruby/generated/models/import_v2_task_item.rb create mode 100644 lib/getstream_ruby/generated/models/import_v2_task_settings.rb create mode 100644 lib/getstream_ruby/generated/models/import_v2_task_settings_s3.rb create mode 100644 lib/getstream_ruby/generated/models/individual_record_settings.rb create mode 100644 lib/getstream_ruby/generated/models/individual_recording_response.rb create mode 100644 lib/getstream_ruby/generated/models/individual_recording_settings_request.rb create mode 100644 lib/getstream_ruby/generated/models/individual_recording_settings_response.rb create mode 100644 lib/getstream_ruby/generated/models/ingress_error_event.rb create mode 100644 lib/getstream_ruby/generated/models/ingress_started_event.rb create mode 100644 lib/getstream_ruby/generated/models/ingress_stopped_event.rb create mode 100644 lib/getstream_ruby/generated/models/list_import_v2_tasks_response.rb create mode 100644 lib/getstream_ruby/generated/models/participant_session_details.rb create mode 100644 lib/getstream_ruby/generated/models/query_appeals_request.rb create mode 100644 lib/getstream_ruby/generated/models/query_appeals_response.rb create mode 100644 lib/getstream_ruby/generated/models/query_call_participant_sessions_response.rb create mode 100644 lib/getstream_ruby/generated/models/query_future_channel_bans_payload.rb create mode 100644 lib/getstream_ruby/generated/models/query_future_channel_bans_response.rb create mode 100644 lib/getstream_ruby/generated/models/raw_record_settings.rb create mode 100644 lib/getstream_ruby/generated/models/raw_recording_response.rb create mode 100644 lib/getstream_ruby/generated/models/raw_recording_settings_request.rb create mode 100644 lib/getstream_ruby/generated/models/raw_recording_settings_response.rb create mode 100644 lib/getstream_ruby/generated/models/reject_appeal_request.rb create mode 100644 lib/getstream_ruby/generated/models/user_identical_content_count_parameters.rb create mode 100644 lib/getstream_ruby/generated/models/user_role_parameters.rb diff --git a/lib/getstream_ruby/generated/common_client.rb b/lib/getstream_ruby/generated/common_client.rb index 6d8f1f7..475ab20 100644 --- a/lib/getstream_ruby/generated/common_client.rb +++ b/lib/getstream_ruby/generated/common_client.rb @@ -408,6 +408,73 @@ def create_import(create_import_request) ) end + # Lists all import v2 tasks for the app + # + # @param state [Integer] + # @return [Models::ListImportV2TasksResponse] + def list_import_v2_tasks(state = nil) + path = '/api/v2/imports/v2' + # Build query parameters + query_params = {} + query_params['state'] = state unless state.nil? + + # Make the API request + @client.make_request( + :get, + path, + query_params: query_params + ) + end + + # Creates a new import v2 task + # + # @param create_import_v2_task_request [CreateImportV2TaskRequest] + # @return [Models::CreateImportV2TaskResponse] + def create_import_v2_task(create_import_v2_task_request) + path = '/api/v2/imports/v2' + # Build request body + body = create_import_v2_task_request + + # Make the API request + @client.make_request( + :post, + path, + body: body + ) + end + + # Deletes an import v2 task. Can only delete tasks in queued state. + # + # @param _id [String] + # @return [Models::DeleteImportV2TaskResponse] + def delete_import_v2_task(_id) + path = '/api/v2/imports/v2/{id}' + # Replace path parameters + path = path.gsub('{id}', _id.to_s) + + # Make the API request + @client.make_request( + :delete, + path + ) + end + + # Gets a single import v2 task by ID + # + # @param _id [String] + # @return [Models::GetImportV2TaskResponse] + def get_import_v2_task(_id) + path = '/api/v2/imports/v2/{id}' + # Replace path parameters + path = path.gsub('{id}', _id.to_s) + + # Make the API request + @client.make_request( + :get, + path + ) + end + # Gets an import # # @param _id [String] diff --git a/lib/getstream_ruby/generated/feeds_client.rb b/lib/getstream_ruby/generated/feeds_client.rb index 6f732bb..1510cc4 100644 --- a/lib/getstream_ruby/generated/feeds_client.rb +++ b/lib/getstream_ruby/generated/feeds_client.rb @@ -516,11 +516,12 @@ def upsert_collections(upsert_collections_request) # @param depth [Integer] # @param sort [String] # @param replies_limit [Integer] + # @param user_id [String] # @param limit [Integer] # @param prev [String] # @param _next [String] # @return [Models::GetCommentsResponse] - def get_comments(object_id, object_type, depth = nil, sort = nil, replies_limit = nil, limit = nil, prev = nil, _next = nil) + def get_comments(object_id, object_type, depth = nil, sort = nil, replies_limit = nil, user_id = nil, limit = nil, prev = nil, _next = nil) path = '/api/v2/feeds/comments' # Build query parameters query_params = {} @@ -529,6 +530,7 @@ def get_comments(object_id, object_type, depth = nil, sort = nil, replies_limit query_params['depth'] = depth unless depth.nil? query_params['sort'] = sort unless sort.nil? query_params['replies_limit'] = replies_limit unless replies_limit.nil? + query_params['user_id'] = user_id unless user_id.nil? query_params['limit'] = limit unless limit.nil? query_params['prev'] = prev unless prev.nil? query_params['next'] = _next unless _next.nil? @@ -718,11 +720,12 @@ def delete_comment_reaction(_id, _type, user_id = nil) # @param depth [Integer] # @param sort [String] # @param replies_limit [Integer] + # @param user_id [String] # @param limit [Integer] # @param prev [String] # @param _next [String] # @return [Models::GetCommentRepliesResponse] - def get_comment_replies(_id, depth = nil, sort = nil, replies_limit = nil, limit = nil, prev = nil, _next = nil) + def get_comment_replies(_id, depth = nil, sort = nil, replies_limit = nil, user_id = nil, limit = nil, prev = nil, _next = nil) path = '/api/v2/feeds/comments/{id}/replies' # Replace path parameters path = path.gsub('{id}', _id.to_s) @@ -731,6 +734,7 @@ def get_comment_replies(_id, depth = nil, sort = nil, replies_limit = nil, limit query_params['depth'] = depth unless depth.nil? query_params['sort'] = sort unless sort.nil? query_params['replies_limit'] = replies_limit unless replies_limit.nil? + query_params['user_id'] = user_id unless user_id.nil? query_params['limit'] = limit unless limit.nil? query_params['prev'] = prev unless prev.nil? query_params['next'] = _next unless _next.nil? diff --git a/lib/getstream_ruby/generated/models/activity_request.rb b/lib/getstream_ruby/generated/models/activity_request.rb index f19279f..62b9ec4 100644 --- a/lib/getstream_ruby/generated/models/activity_request.rb +++ b/lib/getstream_ruby/generated/models/activity_request.rb @@ -13,8 +13,11 @@ class ActivityRequest < GetStream::BaseModel # @return [String] Type of activity attr_accessor :type # @!attribute feeds - # @return [Array] List of feed IDs to add the activity to + # @return [Array] List of feeds to add the activity to with a default max limit of 25 feeds attr_accessor :feeds + # @!attribute create_notification_activity + # @return [Boolean] Whether to create notification activities for mentioned users + attr_accessor :create_notification_activity # @!attribute expires_at # @return [String] Expiration time for the activity attr_accessor :expires_at @@ -33,6 +36,9 @@ class ActivityRequest < GetStream::BaseModel # @!attribute skip_enrich_url # @return [Boolean] Whether to skip URL enrichment for the activity attr_accessor :skip_enrich_url + # @!attribute skip_push + # @return [Boolean] Whether to skip push notifications + attr_accessor :skip_push # @!attribute text # @return [String] Text content of the activity attr_accessor :text @@ -75,12 +81,14 @@ def initialize(attributes = {}) super(attributes) @type = attributes[:type] || attributes['type'] @feeds = attributes[:feeds] || attributes['feeds'] + @create_notification_activity = attributes[:create_notification_activity] || attributes['create_notification_activity'] || nil @expires_at = attributes[:expires_at] || attributes['expires_at'] || nil @id = attributes[:id] || attributes['id'] || nil @parent_id = attributes[:parent_id] || attributes['parent_id'] || nil @poll_id = attributes[:poll_id] || attributes['poll_id'] || nil @restrict_replies = attributes[:restrict_replies] || attributes['restrict_replies'] || nil @skip_enrich_url = attributes[:skip_enrich_url] || attributes['skip_enrich_url'] || nil + @skip_push = attributes[:skip_push] || attributes['skip_push'] || nil @text = attributes[:text] || attributes['text'] || nil @user_id = attributes[:user_id] || attributes['user_id'] || nil @visibility = attributes[:visibility] || attributes['visibility'] || nil @@ -100,12 +108,14 @@ def self.json_field_mappings { type: 'type', feeds: 'feeds', + create_notification_activity: 'create_notification_activity', expires_at: 'expires_at', id: 'id', parent_id: 'parent_id', poll_id: 'poll_id', restrict_replies: 'restrict_replies', skip_enrich_url: 'skip_enrich_url', + skip_push: 'skip_push', text: 'text', user_id: 'user_id', visibility: 'visibility', diff --git a/lib/getstream_ruby/generated/models/activity_response.rb b/lib/getstream_ruby/generated/models/activity_response.rb index dd4c722..cc57ecd 100644 --- a/lib/getstream_ruby/generated/models/activity_response.rb +++ b/lib/getstream_ruby/generated/models/activity_response.rb @@ -108,6 +108,9 @@ class ActivityResponse < GetStream::BaseModel # @!attribute moderation_action # @return [String] attr_accessor :moderation_action + # @!attribute selector_source + # @return [String] Which activity selector provided this activity (e.g., 'following', 'popular', 'interest'). Only set when using multiple activity selectors with ranking. + attr_accessor :selector_source # @!attribute text # @return [String] Text content of the activity attr_accessor :text @@ -169,6 +172,7 @@ def initialize(attributes = {}) @expires_at = attributes[:expires_at] || attributes['expires_at'] || nil @is_watched = attributes[:is_watched] || attributes['is_watched'] || nil @moderation_action = attributes[:moderation_action] || attributes['moderation_action'] || nil + @selector_source = attributes[:selector_source] || attributes['selector_source'] || nil @text = attributes[:text] || attributes['text'] || nil @visibility_tag = attributes[:visibility_tag] || attributes['visibility_tag'] || nil @current_feed = attributes[:current_feed] || attributes['current_feed'] || nil @@ -215,6 +219,7 @@ def self.json_field_mappings expires_at: 'expires_at', is_watched: 'is_watched', moderation_action: 'moderation_action', + selector_source: 'selector_source', text: 'text', visibility_tag: 'visibility_tag', current_feed: 'current_feed', diff --git a/lib/getstream_ruby/generated/models/add_activity_request.rb b/lib/getstream_ruby/generated/models/add_activity_request.rb index 5fd32b2..c4e9c09 100644 --- a/lib/getstream_ruby/generated/models/add_activity_request.rb +++ b/lib/getstream_ruby/generated/models/add_activity_request.rb @@ -13,8 +13,11 @@ class AddActivityRequest < GetStream::BaseModel # @return [String] Type of activity attr_accessor :type # @!attribute feeds - # @return [Array] List of feed IDs to add the activity to + # @return [Array] List of feeds to add the activity to with a default max limit of 25 feeds attr_accessor :feeds + # @!attribute create_notification_activity + # @return [Boolean] Whether to create notification activities for mentioned users + attr_accessor :create_notification_activity # @!attribute expires_at # @return [String] Expiration time for the activity attr_accessor :expires_at @@ -33,6 +36,9 @@ class AddActivityRequest < GetStream::BaseModel # @!attribute skip_enrich_url # @return [Boolean] Whether to skip URL enrichment for the activity attr_accessor :skip_enrich_url + # @!attribute skip_push + # @return [Boolean] Whether to skip push notifications + attr_accessor :skip_push # @!attribute text # @return [String] Text content of the activity attr_accessor :text @@ -75,12 +81,14 @@ def initialize(attributes = {}) super(attributes) @type = attributes[:type] || attributes['type'] @feeds = attributes[:feeds] || attributes['feeds'] + @create_notification_activity = attributes[:create_notification_activity] || attributes['create_notification_activity'] || nil @expires_at = attributes[:expires_at] || attributes['expires_at'] || nil @id = attributes[:id] || attributes['id'] || nil @parent_id = attributes[:parent_id] || attributes['parent_id'] || nil @poll_id = attributes[:poll_id] || attributes['poll_id'] || nil @restrict_replies = attributes[:restrict_replies] || attributes['restrict_replies'] || nil @skip_enrich_url = attributes[:skip_enrich_url] || attributes['skip_enrich_url'] || nil + @skip_push = attributes[:skip_push] || attributes['skip_push'] || nil @text = attributes[:text] || attributes['text'] || nil @user_id = attributes[:user_id] || attributes['user_id'] || nil @visibility = attributes[:visibility] || attributes['visibility'] || nil @@ -100,12 +108,14 @@ def self.json_field_mappings { type: 'type', feeds: 'feeds', + create_notification_activity: 'create_notification_activity', expires_at: 'expires_at', id: 'id', parent_id: 'parent_id', poll_id: 'poll_id', restrict_replies: 'restrict_replies', skip_enrich_url: 'skip_enrich_url', + skip_push: 'skip_push', text: 'text', user_id: 'user_id', visibility: 'visibility', diff --git a/lib/getstream_ruby/generated/models/add_activity_response.rb b/lib/getstream_ruby/generated/models/add_activity_response.rb index 85fb354..4c9b633 100644 --- a/lib/getstream_ruby/generated/models/add_activity_response.rb +++ b/lib/getstream_ruby/generated/models/add_activity_response.rb @@ -15,19 +15,24 @@ class AddActivityResponse < GetStream::BaseModel # @!attribute activity # @return [ActivityResponse] attr_accessor :activity + # @!attribute mention_notifications_created + # @return [Integer] Number of mention notification activities created for mentioned users + attr_accessor :mention_notifications_created # Initialize with attributes def initialize(attributes = {}) super(attributes) @duration = attributes[:duration] || attributes['duration'] @activity = attributes[:activity] || attributes['activity'] + @mention_notifications_created = attributes[:mention_notifications_created] || attributes['mention_notifications_created'] || nil end # Override field mappings for JSON serialization def self.json_field_mappings { duration: 'duration', - activity: 'activity' + activity: 'activity', + mention_notifications_created: 'mention_notifications_created' } end end diff --git a/lib/getstream_ruby/generated/models/add_comment_reaction_response.rb b/lib/getstream_ruby/generated/models/add_comment_reaction_response.rb index 2661556..8534725 100644 --- a/lib/getstream_ruby/generated/models/add_comment_reaction_response.rb +++ b/lib/getstream_ruby/generated/models/add_comment_reaction_response.rb @@ -18,6 +18,9 @@ class AddCommentReactionResponse < GetStream::BaseModel # @!attribute reaction # @return [FeedsReactionResponse] attr_accessor :reaction + # @!attribute notification_created + # @return [Boolean] Whether a notification activity was successfully created + attr_accessor :notification_created # Initialize with attributes def initialize(attributes = {}) @@ -25,6 +28,7 @@ def initialize(attributes = {}) @duration = attributes[:duration] || attributes['duration'] @comment = attributes[:comment] || attributes['comment'] @reaction = attributes[:reaction] || attributes['reaction'] + @notification_created = attributes[:notification_created] || attributes['notification_created'] || nil end # Override field mappings for JSON serialization @@ -32,7 +36,8 @@ def self.json_field_mappings { duration: 'duration', comment: 'comment', - reaction: 'reaction' + reaction: 'reaction', + notification_created: 'notification_created' } end end diff --git a/lib/getstream_ruby/generated/models/add_comment_response.rb b/lib/getstream_ruby/generated/models/add_comment_response.rb index f0a769e..6765e51 100644 --- a/lib/getstream_ruby/generated/models/add_comment_response.rb +++ b/lib/getstream_ruby/generated/models/add_comment_response.rb @@ -15,19 +15,29 @@ class AddCommentResponse < GetStream::BaseModel # @!attribute comment # @return [CommentResponse] attr_accessor :comment + # @!attribute mention_notifications_created + # @return [Integer] Number of mention notification activities created for mentioned users + attr_accessor :mention_notifications_created + # @!attribute notification_created + # @return [Boolean] Whether a notification activity was successfully created + attr_accessor :notification_created # Initialize with attributes def initialize(attributes = {}) super(attributes) @duration = attributes[:duration] || attributes['duration'] @comment = attributes[:comment] || attributes['comment'] + @mention_notifications_created = attributes[:mention_notifications_created] || attributes['mention_notifications_created'] || nil + @notification_created = attributes[:notification_created] || attributes['notification_created'] || nil end # Override field mappings for JSON serialization def self.json_field_mappings { duration: 'duration', - comment: 'comment' + comment: 'comment', + mention_notifications_created: 'mention_notifications_created', + notification_created: 'notification_created' } end end diff --git a/lib/getstream_ruby/generated/models/add_reaction_response.rb b/lib/getstream_ruby/generated/models/add_reaction_response.rb index 93fea9d..1aa15f7 100644 --- a/lib/getstream_ruby/generated/models/add_reaction_response.rb +++ b/lib/getstream_ruby/generated/models/add_reaction_response.rb @@ -18,6 +18,9 @@ class AddReactionResponse < GetStream::BaseModel # @!attribute reaction # @return [FeedsReactionResponse] attr_accessor :reaction + # @!attribute notification_created + # @return [Boolean] Whether a notification activity was successfully created + attr_accessor :notification_created # Initialize with attributes def initialize(attributes = {}) @@ -25,6 +28,7 @@ def initialize(attributes = {}) @duration = attributes[:duration] || attributes['duration'] @activity = attributes[:activity] || attributes['activity'] @reaction = attributes[:reaction] || attributes['reaction'] + @notification_created = attributes[:notification_created] || attributes['notification_created'] || nil end # Override field mappings for JSON serialization @@ -32,7 +36,8 @@ def self.json_field_mappings { duration: 'duration', activity: 'activity', - reaction: 'reaction' + reaction: 'reaction', + notification_created: 'notification_created' } end end diff --git a/lib/getstream_ruby/generated/models/appeal_accepted_event.rb b/lib/getstream_ruby/generated/models/appeal_accepted_event.rb new file mode 100644 index 0000000..d34a513 --- /dev/null +++ b/lib/getstream_ruby/generated/models/appeal_accepted_event.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # This event is sent when an appeal is accepted + class AppealAcceptedEvent < GetStream::BaseModel + + # Model attributes + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute custom + # @return [Object] + attr_accessor :custom + # @!attribute type + # @return [String] + attr_accessor :type + # @!attribute received_at + # @return [DateTime] + attr_accessor :received_at + # @!attribute appeal + # @return [AppealItemResponse] + attr_accessor :appeal + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @created_at = attributes[:created_at] || attributes['created_at'] + @custom = attributes[:custom] || attributes['custom'] + @type = attributes[:type] || attributes['type'] || "appeal.accepted" + @received_at = attributes[:received_at] || attributes['received_at'] || nil + @appeal = attributes[:appeal] || attributes['appeal'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + created_at: 'created_at', + custom: 'custom', + type: 'type', + received_at: 'received_at', + appeal: 'appeal' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/appeal_created_event.rb b/lib/getstream_ruby/generated/models/appeal_created_event.rb new file mode 100644 index 0000000..01a11b5 --- /dev/null +++ b/lib/getstream_ruby/generated/models/appeal_created_event.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # This event is sent when an appeal is created + class AppealCreatedEvent < GetStream::BaseModel + + # Model attributes + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute custom + # @return [Object] + attr_accessor :custom + # @!attribute type + # @return [String] + attr_accessor :type + # @!attribute received_at + # @return [DateTime] + attr_accessor :received_at + # @!attribute appeal + # @return [AppealItemResponse] + attr_accessor :appeal + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @created_at = attributes[:created_at] || attributes['created_at'] + @custom = attributes[:custom] || attributes['custom'] + @type = attributes[:type] || attributes['type'] || "appeal.created" + @received_at = attributes[:received_at] || attributes['received_at'] || nil + @appeal = attributes[:appeal] || attributes['appeal'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + created_at: 'created_at', + custom: 'custom', + type: 'type', + received_at: 'received_at', + appeal: 'appeal' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/appeal_item_response.rb b/lib/getstream_ruby/generated/models/appeal_item_response.rb new file mode 100644 index 0000000..dc30320 --- /dev/null +++ b/lib/getstream_ruby/generated/models/appeal_item_response.rb @@ -0,0 +1,81 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class AppealItemResponse < GetStream::BaseModel + + # Model attributes + # @!attribute appeal_reason + # @return [String] Reason Text of the Appeal Item + attr_accessor :appeal_reason + # @!attribute created_at + # @return [DateTime] When the flag was created + attr_accessor :created_at + # @!attribute entity_id + # @return [String] ID of the entity + attr_accessor :entity_id + # @!attribute entity_type + # @return [String] Type of entity + attr_accessor :entity_type + # @!attribute id + # @return [String] + attr_accessor :id + # @!attribute status + # @return [String] Status of the Appeal Item + attr_accessor :status + # @!attribute updated_at + # @return [DateTime] When the flag was last updated + attr_accessor :updated_at + # @!attribute decision_reason + # @return [String] Decision Reason of the Appeal Item + attr_accessor :decision_reason + # @!attribute attachments + # @return [Array] Attachments(e.g. Images) of the Appeal Item + attr_accessor :attachments + # @!attribute entity_content + # @return [ModerationPayload] + attr_accessor :entity_content + # @!attribute user + # @return [UserResponse] + attr_accessor :user + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @appeal_reason = attributes[:appeal_reason] || attributes['appeal_reason'] + @created_at = attributes[:created_at] || attributes['created_at'] + @entity_id = attributes[:entity_id] || attributes['entity_id'] + @entity_type = attributes[:entity_type] || attributes['entity_type'] + @id = attributes[:id] || attributes['id'] + @status = attributes[:status] || attributes['status'] + @updated_at = attributes[:updated_at] || attributes['updated_at'] + @decision_reason = attributes[:decision_reason] || attributes['decision_reason'] || nil + @attachments = attributes[:attachments] || attributes['attachments'] || nil + @entity_content = attributes[:entity_content] || attributes['entity_content'] || nil + @user = attributes[:user] || attributes['user'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + appeal_reason: 'appeal_reason', + created_at: 'created_at', + entity_id: 'entity_id', + entity_type: 'entity_type', + id: 'id', + status: 'status', + updated_at: 'updated_at', + decision_reason: 'decision_reason', + attachments: 'attachments', + entity_content: 'entity_content', + user: 'user' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/appeal_rejected_event.rb b/lib/getstream_ruby/generated/models/appeal_rejected_event.rb new file mode 100644 index 0000000..10eb17c --- /dev/null +++ b/lib/getstream_ruby/generated/models/appeal_rejected_event.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # This event is sent when an appeal is rejected + class AppealRejectedEvent < GetStream::BaseModel + + # Model attributes + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute custom + # @return [Object] + attr_accessor :custom + # @!attribute type + # @return [String] + attr_accessor :type + # @!attribute received_at + # @return [DateTime] + attr_accessor :received_at + # @!attribute appeal + # @return [AppealItemResponse] + attr_accessor :appeal + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @created_at = attributes[:created_at] || attributes['created_at'] + @custom = attributes[:custom] || attributes['custom'] + @type = attributes[:type] || attributes['type'] || "appeal.rejected" + @received_at = attributes[:received_at] || attributes['received_at'] || nil + @appeal = attributes[:appeal] || attributes['appeal'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + created_at: 'created_at', + custom: 'custom', + type: 'type', + received_at: 'received_at', + appeal: 'appeal' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/appeal_request.rb b/lib/getstream_ruby/generated/models/appeal_request.rb new file mode 100644 index 0000000..ed3444b --- /dev/null +++ b/lib/getstream_ruby/generated/models/appeal_request.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class AppealRequest < GetStream::BaseModel + + # Model attributes + # @!attribute appeal_reason + # @return [String] Explanation for why the content is being appealed + attr_accessor :appeal_reason + # @!attribute entity_id + # @return [String] Unique identifier of the entity being appealed + attr_accessor :entity_id + # @!attribute entity_type + # @return [String] Type of entity being appealed (e.g., message, user) + attr_accessor :entity_type + # @!attribute user_id + # @return [String] + attr_accessor :user_id + # @!attribute attachments + # @return [Array] Array of Attachment URLs(e.g., images) + attr_accessor :attachments + # @!attribute user + # @return [UserRequest] + attr_accessor :user + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @appeal_reason = attributes[:appeal_reason] || attributes['appeal_reason'] + @entity_id = attributes[:entity_id] || attributes['entity_id'] + @entity_type = attributes[:entity_type] || attributes['entity_type'] + @user_id = attributes[:user_id] || attributes['user_id'] || nil + @attachments = attributes[:attachments] || attributes['attachments'] || nil + @user = attributes[:user] || attributes['user'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + appeal_reason: 'appeal_reason', + entity_id: 'entity_id', + entity_type: 'entity_type', + user_id: 'user_id', + attachments: 'attachments', + user: 'user' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/appeal_response.rb b/lib/getstream_ruby/generated/models/appeal_response.rb new file mode 100644 index 0000000..01e6759 --- /dev/null +++ b/lib/getstream_ruby/generated/models/appeal_response.rb @@ -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 AppealResponse < GetStream::BaseModel + + # Model attributes + # @!attribute appeal_id + # @return [String] Unique identifier of the created Appeal item + attr_accessor :appeal_id + # @!attribute duration + # @return [String] + attr_accessor :duration + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @appeal_id = attributes[:appeal_id] || attributes['appeal_id'] + @duration = attributes[:duration] || attributes['duration'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + appeal_id: 'appeal_id', + duration: 'duration' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/call_recording_failed_event.rb b/lib/getstream_ruby/generated/models/call_recording_failed_event.rb index a87e558..ab41ff4 100644 --- a/lib/getstream_ruby/generated/models/call_recording_failed_event.rb +++ b/lib/getstream_ruby/generated/models/call_recording_failed_event.rb @@ -18,6 +18,9 @@ class CallRecordingFailedEvent < GetStream::BaseModel # @!attribute egress_id # @return [String] attr_accessor :egress_id + # @!attribute recording_type + # @return [String] The type of recording + attr_accessor :recording_type # @!attribute type # @return [String] The type of event: "call.recording_failed" in this case attr_accessor :type @@ -28,6 +31,7 @@ def initialize(attributes = {}) @call_cid = attributes[:call_cid] || attributes['call_cid'] @created_at = attributes[:created_at] || attributes['created_at'] @egress_id = attributes[:egress_id] || attributes['egress_id'] + @recording_type = attributes[:recording_type] || attributes['recording_type'] @type = attributes[:type] || attributes['type'] || "call.recording_failed" end @@ -37,6 +41,7 @@ def self.json_field_mappings call_cid: 'call_cid', created_at: 'created_at', egress_id: 'egress_id', + recording_type: 'recording_type', type: 'type' } end diff --git a/lib/getstream_ruby/generated/models/call_recording_ready_event.rb b/lib/getstream_ruby/generated/models/call_recording_ready_event.rb index 71a5324..9ba7348 100644 --- a/lib/getstream_ruby/generated/models/call_recording_ready_event.rb +++ b/lib/getstream_ruby/generated/models/call_recording_ready_event.rb @@ -18,6 +18,9 @@ class CallRecordingReadyEvent < GetStream::BaseModel # @!attribute egress_id # @return [String] attr_accessor :egress_id + # @!attribute recording_type + # @return [String] The type of recording + attr_accessor :recording_type # @!attribute call_recording # @return [CallRecording] attr_accessor :call_recording @@ -31,6 +34,7 @@ def initialize(attributes = {}) @call_cid = attributes[:call_cid] || attributes['call_cid'] @created_at = attributes[:created_at] || attributes['created_at'] @egress_id = attributes[:egress_id] || attributes['egress_id'] + @recording_type = attributes[:recording_type] || attributes['recording_type'] @call_recording = attributes[:call_recording] || attributes['call_recording'] @type = attributes[:type] || attributes['type'] || "call.recording_ready" end @@ -41,6 +45,7 @@ def self.json_field_mappings call_cid: 'call_cid', created_at: 'created_at', egress_id: 'egress_id', + recording_type: 'recording_type', call_recording: 'call_recording', type: 'type' } diff --git a/lib/getstream_ruby/generated/models/call_recording_started_event.rb b/lib/getstream_ruby/generated/models/call_recording_started_event.rb index 785b2de..a1dcf60 100644 --- a/lib/getstream_ruby/generated/models/call_recording_started_event.rb +++ b/lib/getstream_ruby/generated/models/call_recording_started_event.rb @@ -18,6 +18,9 @@ class CallRecordingStartedEvent < GetStream::BaseModel # @!attribute egress_id # @return [String] attr_accessor :egress_id + # @!attribute recording_type + # @return [String] The type of recording + attr_accessor :recording_type # @!attribute type # @return [String] The type of event: "call.recording_started" in this case attr_accessor :type @@ -28,6 +31,7 @@ def initialize(attributes = {}) @call_cid = attributes[:call_cid] || attributes['call_cid'] @created_at = attributes[:created_at] || attributes['created_at'] @egress_id = attributes[:egress_id] || attributes['egress_id'] + @recording_type = attributes[:recording_type] || attributes['recording_type'] @type = attributes[:type] || attributes['type'] || "call.recording_started" end @@ -37,6 +41,7 @@ def self.json_field_mappings call_cid: 'call_cid', created_at: 'created_at', egress_id: 'egress_id', + recording_type: 'recording_type', type: 'type' } end diff --git a/lib/getstream_ruby/generated/models/call_recording_stopped_event.rb b/lib/getstream_ruby/generated/models/call_recording_stopped_event.rb index 7c74fa2..a194761 100644 --- a/lib/getstream_ruby/generated/models/call_recording_stopped_event.rb +++ b/lib/getstream_ruby/generated/models/call_recording_stopped_event.rb @@ -18,6 +18,9 @@ class CallRecordingStoppedEvent < GetStream::BaseModel # @!attribute egress_id # @return [String] attr_accessor :egress_id + # @!attribute recording_type + # @return [String] The type of recording + attr_accessor :recording_type # @!attribute type # @return [String] The type of event: "call.recording_stopped" in this case attr_accessor :type @@ -28,6 +31,7 @@ def initialize(attributes = {}) @call_cid = attributes[:call_cid] || attributes['call_cid'] @created_at = attributes[:created_at] || attributes['created_at'] @egress_id = attributes[:egress_id] || attributes['egress_id'] + @recording_type = attributes[:recording_type] || attributes['recording_type'] @type = attributes[:type] || attributes['type'] || "call.recording_stopped" end @@ -37,6 +41,7 @@ def self.json_field_mappings call_cid: 'call_cid', created_at: 'created_at', egress_id: 'egress_id', + recording_type: 'recording_type', type: 'type' } end diff --git a/lib/getstream_ruby/generated/models/call_response.rb b/lib/getstream_ruby/generated/models/call_response.rb index d6723e2..4787d92 100644 --- a/lib/getstream_ruby/generated/models/call_response.rb +++ b/lib/getstream_ruby/generated/models/call_response.rb @@ -69,6 +69,9 @@ class CallResponse < GetStream::BaseModel # @!attribute join_ahead_time_seconds # @return [Integer] attr_accessor :join_ahead_time_seconds + # @!attribute routing_number + # @return [String] 10-digit routing number for SIP routing + attr_accessor :routing_number # @!attribute starts_at # @return [DateTime] Date/time when the call will start attr_accessor :starts_at @@ -105,6 +108,7 @@ def initialize(attributes = {}) @channel_cid = attributes[:channel_cid] || attributes['channel_cid'] || nil @ended_at = attributes[:ended_at] || attributes['ended_at'] || nil @join_ahead_time_seconds = attributes[:join_ahead_time_seconds] || attributes['join_ahead_time_seconds'] || nil + @routing_number = attributes[:routing_number] || attributes['routing_number'] || nil @starts_at = attributes[:starts_at] || attributes['starts_at'] || nil @team = attributes[:team] || attributes['team'] || nil @session = attributes[:session] || attributes['session'] || nil @@ -134,6 +138,7 @@ def self.json_field_mappings channel_cid: 'channel_cid', ended_at: 'ended_at', join_ahead_time_seconds: 'join_ahead_time_seconds', + routing_number: 'routing_number', starts_at: 'starts_at', team: 'team', session: 'session', diff --git a/lib/getstream_ruby/generated/models/call_settings.rb b/lib/getstream_ruby/generated/models/call_settings.rb index b646949..8a44736 100644 --- a/lib/getstream_ruby/generated/models/call_settings.rb +++ b/lib/getstream_ruby/generated/models/call_settings.rb @@ -24,12 +24,18 @@ class CallSettings < GetStream::BaseModel # @!attribute geofencing # @return [GeofenceSettings] attr_accessor :geofencing + # @!attribute individual_recording + # @return [IndividualRecordSettings] + attr_accessor :individual_recording # @!attribute ingress # @return [IngressSettings] attr_accessor :ingress # @!attribute limits # @return [LimitsSettings] attr_accessor :limits + # @!attribute raw_recording + # @return [RawRecordSettings] + attr_accessor :raw_recording # @!attribute recording # @return [RecordSettings] attr_accessor :recording @@ -60,8 +66,10 @@ def initialize(attributes = {}) @broadcasting = attributes[:broadcasting] || attributes['broadcasting'] || nil @frame_recording = attributes[:frame_recording] || attributes['frame_recording'] || nil @geofencing = attributes[:geofencing] || attributes['geofencing'] || nil + @individual_recording = attributes[:individual_recording] || attributes['individual_recording'] || nil @ingress = attributes[:ingress] || attributes['ingress'] || nil @limits = attributes[:limits] || attributes['limits'] || nil + @raw_recording = attributes[:raw_recording] || attributes['raw_recording'] || nil @recording = attributes[:recording] || attributes['recording'] || nil @ring = attributes[:ring] || attributes['ring'] || nil @screensharing = attributes[:screensharing] || attributes['screensharing'] || nil @@ -79,8 +87,10 @@ def self.json_field_mappings broadcasting: 'broadcasting', frame_recording: 'frame_recording', geofencing: 'geofencing', + individual_recording: 'individual_recording', ingress: 'ingress', limits: 'limits', + raw_recording: 'raw_recording', recording: 'recording', ring: 'ring', screensharing: 'screensharing', diff --git a/lib/getstream_ruby/generated/models/call_settings_request.rb b/lib/getstream_ruby/generated/models/call_settings_request.rb index e0dfed3..b990728 100644 --- a/lib/getstream_ruby/generated/models/call_settings_request.rb +++ b/lib/getstream_ruby/generated/models/call_settings_request.rb @@ -24,12 +24,18 @@ class CallSettingsRequest < GetStream::BaseModel # @!attribute geofencing # @return [GeofenceSettingsRequest] attr_accessor :geofencing + # @!attribute individual_recording + # @return [IndividualRecordingSettingsRequest] + attr_accessor :individual_recording # @!attribute ingress # @return [IngressSettingsRequest] attr_accessor :ingress # @!attribute limits # @return [LimitsSettingsRequest] attr_accessor :limits + # @!attribute raw_recording + # @return [RawRecordingSettingsRequest] + attr_accessor :raw_recording # @!attribute recording # @return [RecordSettingsRequest] attr_accessor :recording @@ -60,8 +66,10 @@ def initialize(attributes = {}) @broadcasting = attributes[:broadcasting] || attributes['broadcasting'] || nil @frame_recording = attributes[:frame_recording] || attributes['frame_recording'] || nil @geofencing = attributes[:geofencing] || attributes['geofencing'] || nil + @individual_recording = attributes[:individual_recording] || attributes['individual_recording'] || nil @ingress = attributes[:ingress] || attributes['ingress'] || nil @limits = attributes[:limits] || attributes['limits'] || nil + @raw_recording = attributes[:raw_recording] || attributes['raw_recording'] || nil @recording = attributes[:recording] || attributes['recording'] || nil @ring = attributes[:ring] || attributes['ring'] || nil @screensharing = attributes[:screensharing] || attributes['screensharing'] || nil @@ -79,8 +87,10 @@ def self.json_field_mappings broadcasting: 'broadcasting', frame_recording: 'frame_recording', geofencing: 'geofencing', + individual_recording: 'individual_recording', ingress: 'ingress', limits: 'limits', + raw_recording: 'raw_recording', recording: 'recording', ring: 'ring', screensharing: 'screensharing', diff --git a/lib/getstream_ruby/generated/models/call_settings_response.rb b/lib/getstream_ruby/generated/models/call_settings_response.rb index bb28b75..dd67482 100644 --- a/lib/getstream_ruby/generated/models/call_settings_response.rb +++ b/lib/getstream_ruby/generated/models/call_settings_response.rb @@ -24,9 +24,15 @@ class CallSettingsResponse < GetStream::BaseModel # @!attribute geofencing # @return [GeofenceSettingsResponse] attr_accessor :geofencing + # @!attribute individual_recording + # @return [IndividualRecordingSettingsResponse] + attr_accessor :individual_recording # @!attribute limits # @return [LimitsSettingsResponse] attr_accessor :limits + # @!attribute raw_recording + # @return [RawRecordingSettingsResponse] + attr_accessor :raw_recording # @!attribute recording # @return [RecordSettingsResponse] attr_accessor :recording @@ -60,7 +66,9 @@ def initialize(attributes = {}) @broadcasting = attributes[:broadcasting] || attributes['broadcasting'] @frame_recording = attributes[:frame_recording] || attributes['frame_recording'] @geofencing = attributes[:geofencing] || attributes['geofencing'] + @individual_recording = attributes[:individual_recording] || attributes['individual_recording'] @limits = attributes[:limits] || attributes['limits'] + @raw_recording = attributes[:raw_recording] || attributes['raw_recording'] @recording = attributes[:recording] || attributes['recording'] @ring = attributes[:ring] || attributes['ring'] @screensharing = attributes[:screensharing] || attributes['screensharing'] @@ -79,7 +87,9 @@ def self.json_field_mappings broadcasting: 'broadcasting', frame_recording: 'frame_recording', geofencing: 'geofencing', + individual_recording: 'individual_recording', limits: 'limits', + raw_recording: 'raw_recording', recording: 'recording', ring: 'ring', screensharing: 'screensharing', diff --git a/lib/getstream_ruby/generated/models/call_stats_participant_counts.rb b/lib/getstream_ruby/generated/models/call_stats_participant_counts.rb index 8a2f1b1..e476be7 100644 --- a/lib/getstream_ruby/generated/models/call_stats_participant_counts.rb +++ b/lib/getstream_ruby/generated/models/call_stats_participant_counts.rb @@ -27,6 +27,9 @@ class CallStatsParticipantCounts < GetStream::BaseModel # @!attribute sessions # @return [Integer] attr_accessor :sessions + # @!attribute total_participant_duration + # @return [Integer] + attr_accessor :total_participant_duration # Initialize with attributes def initialize(attributes = {}) @@ -37,6 +40,7 @@ def initialize(attributes = {}) @peak_concurrent_users = attributes[:peak_concurrent_users] || attributes['peak_concurrent_users'] @publishers = attributes[:publishers] || attributes['publishers'] @sessions = attributes[:sessions] || attributes['sessions'] + @total_participant_duration = attributes[:total_participant_duration] || attributes['total_participant_duration'] || nil end # Override field mappings for JSON serialization @@ -47,7 +51,8 @@ def self.json_field_mappings peak_concurrent_sessions: 'peak_concurrent_sessions', peak_concurrent_users: 'peak_concurrent_users', publishers: 'publishers', - sessions: 'sessions' + sessions: 'sessions', + total_participant_duration: 'total_participant_duration' } end end diff --git a/lib/getstream_ruby/generated/models/channel_batch_completed_event.rb b/lib/getstream_ruby/generated/models/channel_batch_completed_event.rb new file mode 100644 index 0000000..864262c --- /dev/null +++ b/lib/getstream_ruby/generated/models/channel_batch_completed_event.rb @@ -0,0 +1,81 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class ChannelBatchCompletedEvent < GetStream::BaseModel + + # Model attributes + # @!attribute batch_created_at + # @return [DateTime] + attr_accessor :batch_created_at + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute finished_at + # @return [DateTime] + attr_accessor :finished_at + # @!attribute operation + # @return [String] + attr_accessor :operation + # @!attribute status + # @return [String] + attr_accessor :status + # @!attribute success_channels_count + # @return [Integer] + attr_accessor :success_channels_count + # @!attribute task_id + # @return [String] + attr_accessor :task_id + # @!attribute failed_channels + # @return [Array] + attr_accessor :failed_channels + # @!attribute custom + # @return [Object] + attr_accessor :custom + # @!attribute type + # @return [String] + attr_accessor :type + # @!attribute received_at + # @return [DateTime] + attr_accessor :received_at + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @batch_created_at = attributes[:batch_created_at] || attributes['batch_created_at'] + @created_at = attributes[:created_at] || attributes['created_at'] + @finished_at = attributes[:finished_at] || attributes['finished_at'] + @operation = attributes[:operation] || attributes['operation'] + @status = attributes[:status] || attributes['status'] + @success_channels_count = attributes[:success_channels_count] || attributes['success_channels_count'] + @task_id = attributes[:task_id] || attributes['task_id'] + @failed_channels = attributes[:failed_channels] || attributes['failed_channels'] + @custom = attributes[:custom] || attributes['custom'] + @type = attributes[:type] || attributes['type'] || "channel_batch_update.completed" + @received_at = attributes[:received_at] || attributes['received_at'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + batch_created_at: 'batch_created_at', + created_at: 'created_at', + finished_at: 'finished_at', + operation: 'operation', + status: 'status', + success_channels_count: 'success_channels_count', + task_id: 'task_id', + failed_channels: 'failed_channels', + custom: 'custom', + type: 'type', + received_at: 'received_at' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/channel_batch_started_event.rb b/lib/getstream_ruby/generated/models/channel_batch_started_event.rb new file mode 100644 index 0000000..9bdbbb3 --- /dev/null +++ b/lib/getstream_ruby/generated/models/channel_batch_started_event.rb @@ -0,0 +1,81 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class ChannelBatchStartedEvent < GetStream::BaseModel + + # Model attributes + # @!attribute batch_created_at + # @return [DateTime] + attr_accessor :batch_created_at + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute finished_at + # @return [DateTime] + attr_accessor :finished_at + # @!attribute operation + # @return [String] + attr_accessor :operation + # @!attribute status + # @return [String] + attr_accessor :status + # @!attribute success_channels_count + # @return [Integer] + attr_accessor :success_channels_count + # @!attribute task_id + # @return [String] + attr_accessor :task_id + # @!attribute failed_channels + # @return [Array] + attr_accessor :failed_channels + # @!attribute custom + # @return [Object] + attr_accessor :custom + # @!attribute type + # @return [String] + attr_accessor :type + # @!attribute received_at + # @return [DateTime] + attr_accessor :received_at + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @batch_created_at = attributes[:batch_created_at] || attributes['batch_created_at'] + @created_at = attributes[:created_at] || attributes['created_at'] + @finished_at = attributes[:finished_at] || attributes['finished_at'] + @operation = attributes[:operation] || attributes['operation'] + @status = attributes[:status] || attributes['status'] + @success_channels_count = attributes[:success_channels_count] || attributes['success_channels_count'] + @task_id = attributes[:task_id] || attributes['task_id'] + @failed_channels = attributes[:failed_channels] || attributes['failed_channels'] + @custom = attributes[:custom] || attributes['custom'] + @type = attributes[:type] || attributes['type'] || "channel_batch_update.started" + @received_at = attributes[:received_at] || attributes['received_at'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + batch_created_at: 'batch_created_at', + created_at: 'created_at', + finished_at: 'finished_at', + operation: 'operation', + status: 'status', + success_channels_count: 'success_channels_count', + task_id: 'task_id', + failed_channels: 'failed_channels', + custom: 'custom', + type: 'type', + received_at: 'received_at' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/comment_response.rb b/lib/getstream_ruby/generated/models/comment_response.rb index 070abde..d5b132f 100644 --- a/lib/getstream_ruby/generated/models/comment_response.rb +++ b/lib/getstream_ruby/generated/models/comment_response.rb @@ -60,6 +60,9 @@ class CommentResponse < GetStream::BaseModel # @!attribute deleted_at # @return [DateTime] When the comment was deleted attr_accessor :deleted_at + # @!attribute edited_at + # @return [DateTime] When the comment was last edited + attr_accessor :edited_at # @!attribute parent_id # @return [String] ID of parent comment for nested replies attr_accessor :parent_id @@ -102,6 +105,7 @@ def initialize(attributes = {}) @user = attributes[:user] || attributes['user'] @controversy_score = attributes[:controversy_score] || attributes['controversy_score'] || nil @deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil + @edited_at = attributes[:edited_at] || attributes['edited_at'] || nil @parent_id = attributes[:parent_id] || attributes['parent_id'] || nil @text = attributes[:text] || attributes['text'] || nil @attachments = attributes[:attachments] || attributes['attachments'] || nil @@ -131,6 +135,7 @@ def self.json_field_mappings user: 'user', controversy_score: 'controversy_score', deleted_at: 'deleted_at', + edited_at: 'edited_at', parent_id: 'parent_id', text: 'text', attachments: 'attachments', diff --git a/lib/getstream_ruby/generated/models/composite_recording_response.rb b/lib/getstream_ruby/generated/models/composite_recording_response.rb new file mode 100644 index 0000000..09d0052 --- /dev/null +++ b/lib/getstream_ruby/generated/models/composite_recording_response.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class CompositeRecordingResponse < GetStream::BaseModel + + # Model attributes + # @!attribute status + # @return [String] + attr_accessor :status + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @status = attributes[:status] || attributes['status'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + status: 'status' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/create_import_v2_task_request.rb b/lib/getstream_ruby/generated/models/create_import_v2_task_request.rb new file mode 100644 index 0000000..ed60de4 --- /dev/null +++ b/lib/getstream_ruby/generated/models/create_import_v2_task_request.rb @@ -0,0 +1,46 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # Client request + class CreateImportV2TaskRequest < GetStream::BaseModel + + # Model attributes + # @!attribute product + # @return [String] + attr_accessor :product + # @!attribute settings + # @return [ImportV2TaskSettings] + attr_accessor :settings + # @!attribute user_id + # @return [String] + attr_accessor :user_id + # @!attribute user + # @return [UserRequest] + attr_accessor :user + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @product = attributes[:product] || attributes['product'] + @settings = attributes[:settings] || attributes['settings'] + @user_id = attributes[:user_id] || attributes['user_id'] || nil + @user = attributes[:user] || attributes['user'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + product: 'product', + settings: 'settings', + user_id: 'user_id', + user: 'user' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/create_import_v2_task_response.rb b/lib/getstream_ruby/generated/models/create_import_v2_task_response.rb new file mode 100644 index 0000000..2331ee3 --- /dev/null +++ b/lib/getstream_ruby/generated/models/create_import_v2_task_response.rb @@ -0,0 +1,66 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # Basic response information + class CreateImportV2TaskResponse < GetStream::BaseModel + + # Model attributes + # @!attribute app_pk + # @return [Integer] + attr_accessor :app_pk + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute duration + # @return [String] Duration of the request in milliseconds + attr_accessor :duration + # @!attribute id + # @return [String] + attr_accessor :id + # @!attribute product + # @return [String] + attr_accessor :product + # @!attribute state + # @return [Integer] + attr_accessor :state + # @!attribute updated_at + # @return [DateTime] + attr_accessor :updated_at + # @!attribute settings + # @return [ImportV2TaskSettings] + attr_accessor :settings + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @app_pk = attributes[:app_pk] || attributes['app_pk'] + @created_at = attributes[:created_at] || attributes['created_at'] + @duration = attributes[:duration] || attributes['duration'] + @id = attributes[:id] || attributes['id'] + @product = attributes[:product] || attributes['product'] + @state = attributes[:state] || attributes['state'] + @updated_at = attributes[:updated_at] || attributes['updated_at'] + @settings = attributes[:settings] || attributes['settings'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + app_pk: 'app_pk', + created_at: 'created_at', + duration: 'duration', + id: 'id', + product: 'product', + state: 'state', + updated_at: 'updated_at', + settings: 'settings' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/delete_import_v2_task_response.rb b/lib/getstream_ruby/generated/models/delete_import_v2_task_response.rb new file mode 100644 index 0000000..eff47ad --- /dev/null +++ b/lib/getstream_ruby/generated/models/delete_import_v2_task_response.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # Basic response information + class DeleteImportV2TaskResponse < GetStream::BaseModel + + # Model attributes + # @!attribute duration + # @return [String] Duration of the request in milliseconds + attr_accessor :duration + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @duration = attributes[:duration] || attributes['duration'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + duration: 'duration' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/egress_response.rb b/lib/getstream_ruby/generated/models/egress_response.rb index ae5f635..5d5d7b6 100644 --- a/lib/getstream_ruby/generated/models/egress_response.rb +++ b/lib/getstream_ruby/generated/models/egress_response.rb @@ -15,20 +15,32 @@ class EgressResponse < GetStream::BaseModel # @!attribute rtmps # @return [Array] attr_accessor :rtmps + # @!attribute composite_recording + # @return [CompositeRecordingResponse] + attr_accessor :composite_recording # @!attribute frame_recording # @return [FrameRecordingResponse] attr_accessor :frame_recording # @!attribute hls # @return [EgressHLSResponse] attr_accessor :hls + # @!attribute individual_recording + # @return [IndividualRecordingResponse] + attr_accessor :individual_recording + # @!attribute raw_recording + # @return [RawRecordingResponse] + attr_accessor :raw_recording # Initialize with attributes def initialize(attributes = {}) super(attributes) @broadcasting = attributes[:broadcasting] || attributes['broadcasting'] @rtmps = attributes[:rtmps] || attributes['rtmps'] + @composite_recording = attributes[:composite_recording] || attributes['composite_recording'] || nil @frame_recording = attributes[:frame_recording] || attributes['frame_recording'] || nil @hls = attributes[:hls] || attributes['hls'] || nil + @individual_recording = attributes[:individual_recording] || attributes['individual_recording'] || nil + @raw_recording = attributes[:raw_recording] || attributes['raw_recording'] || nil end # Override field mappings for JSON serialization @@ -36,8 +48,11 @@ def self.json_field_mappings { broadcasting: 'broadcasting', rtmps: 'rtmps', + composite_recording: 'composite_recording', frame_recording: 'frame_recording', - hls: 'hls' + hls: 'hls', + individual_recording: 'individual_recording', + raw_recording: 'raw_recording' } end end diff --git a/lib/getstream_ruby/generated/models/enrichment_options.rb b/lib/getstream_ruby/generated/models/enrichment_options.rb index 6c1cd81..4751901 100644 --- a/lib/getstream_ruby/generated/models/enrichment_options.rb +++ b/lib/getstream_ruby/generated/models/enrichment_options.rb @@ -5,65 +5,69 @@ module GetStream module Generated module Models - # + # Options to skip specific enrichments to improve performance. Default is false (enrichments are included). Setting a field to true skips that enrichment. class EnrichmentOptions < GetStream::BaseModel # Model attributes + # @!attribute enrich_own_followings + # @return [Boolean] Default: false. When true, includes fetching and enriching own_followings (follows where activity author's feeds follow current user's feeds). + attr_accessor :enrich_own_followings # @!attribute skip_activity - # @return [Boolean] + # @return [Boolean] Default: false. When true, skips all activity enrichments. attr_accessor :skip_activity # @!attribute skip_activity_collections - # @return [Boolean] + # @return [Boolean] Default: false. When true, skips enriching collections on activities. attr_accessor :skip_activity_collections # @!attribute skip_activity_comments - # @return [Boolean] + # @return [Boolean] Default: false. When true, skips enriching comments on activities. attr_accessor :skip_activity_comments # @!attribute skip_activity_current_feed - # @return [Boolean] + # @return [Boolean] Default: false. When true, skips enriching current_feed on activities. Note: CurrentFeed is still computed for permission checks, but enrichment is skipped. attr_accessor :skip_activity_current_feed # @!attribute skip_activity_mentioned_users - # @return [Boolean] + # @return [Boolean] Default: false. When true, skips enriching mentioned users on activities. attr_accessor :skip_activity_mentioned_users # @!attribute skip_activity_own_bookmarks - # @return [Boolean] + # @return [Boolean] Default: false. When true, skips enriching own bookmarks on activities. attr_accessor :skip_activity_own_bookmarks # @!attribute skip_activity_parents - # @return [Boolean] + # @return [Boolean] Default: false. When true, skips enriching parent activities. attr_accessor :skip_activity_parents # @!attribute skip_activity_poll - # @return [Boolean] + # @return [Boolean] Default: false. When true, skips enriching poll data on activities. attr_accessor :skip_activity_poll # @!attribute skip_activity_reactions - # @return [Boolean] + # @return [Boolean] Default: false. When true, skips fetching and enriching latest and own reactions on activities. Note: If reactions are already denormalized in the database, they will still be included. attr_accessor :skip_activity_reactions # @!attribute skip_activity_refresh_image_urls - # @return [Boolean] + # @return [Boolean] Default: false. When true, skips refreshing image URLs on activities. attr_accessor :skip_activity_refresh_image_urls # @!attribute skip_all - # @return [Boolean] + # @return [Boolean] Default: false. When true, skips all enrichments. attr_accessor :skip_all # @!attribute skip_feed_member_user - # @return [Boolean] + # @return [Boolean] Default: false. When true, skips enriching user data on feed members. attr_accessor :skip_feed_member_user # @!attribute skip_followers - # @return [Boolean] + # @return [Boolean] Default: false. When true, skips fetching and enriching followers. Note: If followers_pagination is explicitly provided, followers will be fetched regardless of this setting. attr_accessor :skip_followers # @!attribute skip_following - # @return [Boolean] + # @return [Boolean] Default: false. When true, skips fetching and enriching following. Note: If following_pagination is explicitly provided, following will be fetched regardless of this setting. attr_accessor :skip_following # @!attribute skip_own_capabilities - # @return [Boolean] + # @return [Boolean] Default: false. When true, skips computing and including capabilities for feeds. attr_accessor :skip_own_capabilities # @!attribute skip_own_follows - # @return [Boolean] + # @return [Boolean] Default: false. When true, skips fetching and enriching own_follows (follows where user's feeds follow target feeds). attr_accessor :skip_own_follows # @!attribute skip_pins - # @return [Boolean] + # @return [Boolean] Default: false. When true, skips enriching pinned activities. attr_accessor :skip_pins # Initialize with attributes def initialize(attributes = {}) super(attributes) + @enrich_own_followings = attributes[:enrich_own_followings] || attributes['enrich_own_followings'] || nil @skip_activity = attributes[:skip_activity] || attributes['skip_activity'] || nil @skip_activity_collections = attributes[:skip_activity_collections] || attributes['skip_activity_collections'] || nil @skip_activity_comments = attributes[:skip_activity_comments] || attributes['skip_activity_comments'] || nil @@ -86,6 +90,7 @@ def initialize(attributes = {}) # Override field mappings for JSON serialization def self.json_field_mappings { + enrich_own_followings: 'enrich_own_followings', skip_activity: 'skip_activity', skip_activity_collections: 'skip_activity_collections', skip_activity_comments: 'skip_activity_comments', diff --git a/lib/getstream_ruby/generated/models/event_hook.rb b/lib/getstream_ruby/generated/models/event_hook.rb index 77a7bc0..3d8f114 100644 --- a/lib/getstream_ruby/generated/models/event_hook.rb +++ b/lib/getstream_ruby/generated/models/event_hook.rb @@ -30,6 +30,9 @@ class EventHook < GetStream::BaseModel # @!attribute sns_auth_type # @return [String] attr_accessor :sns_auth_type + # @!attribute sns_event_based_message_group_id_enabled + # @return [Boolean] + attr_accessor :sns_event_based_message_group_id_enabled # @!attribute sns_key # @return [String] attr_accessor :sns_key @@ -89,6 +92,7 @@ def initialize(attributes = {}) @product = attributes[:product] || attributes['product'] || nil @should_send_custom_events = attributes[:should_send_custom_events] || attributes['should_send_custom_events'] || nil @sns_auth_type = attributes[:sns_auth_type] || attributes['sns_auth_type'] || nil + @sns_event_based_message_group_id_enabled = attributes[:sns_event_based_message_group_id_enabled] || attributes['sns_event_based_message_group_id_enabled'] || nil @sns_key = attributes[:sns_key] || attributes['sns_key'] || nil @sns_region = attributes[:sns_region] || attributes['sns_region'] || nil @sns_role_arn = attributes[:sns_role_arn] || attributes['sns_role_arn'] || nil @@ -117,6 +121,7 @@ def self.json_field_mappings product: 'product', should_send_custom_events: 'should_send_custom_events', sns_auth_type: 'sns_auth_type', + sns_event_based_message_group_id_enabled: 'sns_event_based_message_group_id_enabled', sns_key: 'sns_key', sns_region: 'sns_region', sns_role_arn: 'sns_role_arn', diff --git a/lib/getstream_ruby/generated/models/feed_own_data.rb b/lib/getstream_ruby/generated/models/feed_own_data.rb index 17559ca..8f3c0c8 100644 --- a/lib/getstream_ruby/generated/models/feed_own_data.rb +++ b/lib/getstream_ruby/generated/models/feed_own_data.rb @@ -12,6 +12,9 @@ class FeedOwnData < GetStream::BaseModel # @!attribute own_capabilities # @return [Array] Capabilities the current user has for this feed attr_accessor :own_capabilities + # @!attribute own_followings + # @return [Array] Follow relationships where the feed owner's feeds are following the current user's feeds (up to 5 total) + attr_accessor :own_followings # @!attribute own_follows # @return [Array] Follow relationships where the current user's feeds are following this feed attr_accessor :own_follows @@ -23,6 +26,7 @@ class FeedOwnData < GetStream::BaseModel def initialize(attributes = {}) super(attributes) @own_capabilities = attributes[:own_capabilities] || attributes['own_capabilities'] || nil + @own_followings = attributes[:own_followings] || attributes['own_followings'] || nil @own_follows = attributes[:own_follows] || attributes['own_follows'] || nil @own_membership = attributes[:own_membership] || attributes['own_membership'] || nil end @@ -31,6 +35,7 @@ def initialize(attributes = {}) def self.json_field_mappings { own_capabilities: 'own_capabilities', + own_followings: 'own_followings', own_follows: 'own_follows', own_membership: 'own_membership' } diff --git a/lib/getstream_ruby/generated/models/feed_response.rb b/lib/getstream_ruby/generated/models/feed_response.rb index 7273c7a..bd0fc14 100644 --- a/lib/getstream_ruby/generated/models/feed_response.rb +++ b/lib/getstream_ruby/generated/models/feed_response.rb @@ -60,6 +60,9 @@ class FeedResponse < GetStream::BaseModel # @!attribute own_capabilities # @return [Array] Capabilities the current user has for this feed attr_accessor :own_capabilities + # @!attribute own_followings + # @return [Array] Follow relationships where the feed owner’s feeds are following the current user's feeds + attr_accessor :own_followings # @!attribute own_follows # @return [Array] Follow relationships where the current user's feeds are following this feed attr_accessor :own_follows @@ -90,6 +93,7 @@ def initialize(attributes = {}) @visibility = attributes[:visibility] || attributes['visibility'] || nil @filter_tags = attributes[:filter_tags] || attributes['filter_tags'] || nil @own_capabilities = attributes[:own_capabilities] || attributes['own_capabilities'] || nil + @own_followings = attributes[:own_followings] || attributes['own_followings'] || nil @own_follows = attributes[:own_follows] || attributes['own_follows'] || nil @custom = attributes[:custom] || attributes['custom'] || nil @own_membership = attributes[:own_membership] || attributes['own_membership'] || nil @@ -115,6 +119,7 @@ def self.json_field_mappings visibility: 'visibility', filter_tags: 'filter_tags', own_capabilities: 'own_capabilities', + own_followings: 'own_followings', own_follows: 'own_follows', custom: 'custom', own_membership: 'own_membership' diff --git a/lib/getstream_ruby/generated/models/feed_suggestion_response.rb b/lib/getstream_ruby/generated/models/feed_suggestion_response.rb index 5688bc8..2b20bc2 100644 --- a/lib/getstream_ruby/generated/models/feed_suggestion_response.rb +++ b/lib/getstream_ruby/generated/models/feed_suggestion_response.rb @@ -66,6 +66,9 @@ class FeedSuggestionResponse < GetStream::BaseModel # @!attribute own_capabilities # @return [Array] Capabilities the current user has for this feed attr_accessor :own_capabilities + # @!attribute own_followings + # @return [Array] Follow relationships where the feed owner’s feeds are following the current user's feeds + attr_accessor :own_followings # @!attribute own_follows # @return [Array] Follow relationships where the current user's feeds are following this feed attr_accessor :own_follows @@ -101,6 +104,7 @@ def initialize(attributes = {}) @visibility = attributes[:visibility] || attributes['visibility'] || nil @filter_tags = attributes[:filter_tags] || attributes['filter_tags'] || nil @own_capabilities = attributes[:own_capabilities] || attributes['own_capabilities'] || nil + @own_followings = attributes[:own_followings] || attributes['own_followings'] || nil @own_follows = attributes[:own_follows] || attributes['own_follows'] || nil @algorithm_scores = attributes[:algorithm_scores] || attributes['algorithm_scores'] || nil @custom = attributes[:custom] || attributes['custom'] || nil @@ -129,6 +133,7 @@ def self.json_field_mappings visibility: 'visibility', filter_tags: 'filter_tags', own_capabilities: 'own_capabilities', + own_followings: 'own_followings', own_follows: 'own_follows', algorithm_scores: 'algorithm_scores', custom: 'custom', diff --git a/lib/getstream_ruby/generated/models/future_channel_ban_response.rb b/lib/getstream_ruby/generated/models/future_channel_ban_response.rb new file mode 100644 index 0000000..e6770ad --- /dev/null +++ b/lib/getstream_ruby/generated/models/future_channel_ban_response.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class FutureChannelBanResponse < GetStream::BaseModel + + # Model attributes + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute expires + # @return [DateTime] + attr_accessor :expires + # @!attribute reason + # @return [String] + attr_accessor :reason + # @!attribute shadow + # @return [Boolean] + attr_accessor :shadow + # @!attribute banned_by + # @return [UserResponse] + attr_accessor :banned_by + # @!attribute user + # @return [UserResponse] + attr_accessor :user + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @created_at = attributes[:created_at] || attributes['created_at'] + @expires = attributes[:expires] || attributes['expires'] || nil + @reason = attributes[:reason] || attributes['reason'] || nil + @shadow = attributes[:shadow] || attributes['shadow'] || nil + @banned_by = attributes[:banned_by] || attributes['banned_by'] || nil + @user = attributes[:user] || attributes['user'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + created_at: 'created_at', + expires: 'expires', + reason: 'reason', + shadow: 'shadow', + banned_by: 'banned_by', + user: 'user' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/get_appeal_response.rb b/lib/getstream_ruby/generated/models/get_appeal_response.rb new file mode 100644 index 0000000..85bb9cc --- /dev/null +++ b/lib/getstream_ruby/generated/models/get_appeal_response.rb @@ -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 GetAppealResponse < GetStream::BaseModel + + # Model attributes + # @!attribute duration + # @return [String] + attr_accessor :duration + # @!attribute item + # @return [AppealItemResponse] + attr_accessor :item + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @duration = attributes[:duration] || attributes['duration'] + @item = attributes[:item] || attributes['item'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + duration: 'duration', + item: 'item' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/get_import_v2_task_response.rb b/lib/getstream_ruby/generated/models/get_import_v2_task_response.rb new file mode 100644 index 0000000..43be163 --- /dev/null +++ b/lib/getstream_ruby/generated/models/get_import_v2_task_response.rb @@ -0,0 +1,66 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # Basic response information + class GetImportV2TaskResponse < GetStream::BaseModel + + # Model attributes + # @!attribute app_pk + # @return [Integer] + attr_accessor :app_pk + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute duration + # @return [String] Duration of the request in milliseconds + attr_accessor :duration + # @!attribute id + # @return [String] + attr_accessor :id + # @!attribute product + # @return [String] + attr_accessor :product + # @!attribute state + # @return [Integer] + attr_accessor :state + # @!attribute updated_at + # @return [DateTime] + attr_accessor :updated_at + # @!attribute settings + # @return [ImportV2TaskSettings] + attr_accessor :settings + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @app_pk = attributes[:app_pk] || attributes['app_pk'] + @created_at = attributes[:created_at] || attributes['created_at'] + @duration = attributes[:duration] || attributes['duration'] + @id = attributes[:id] || attributes['id'] + @product = attributes[:product] || attributes['product'] + @state = attributes[:state] || attributes['state'] + @updated_at = attributes[:updated_at] || attributes['updated_at'] + @settings = attributes[:settings] || attributes['settings'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + app_pk: 'app_pk', + created_at: 'created_at', + duration: 'duration', + id: 'id', + product: 'product', + state: 'state', + updated_at: 'updated_at', + settings: 'settings' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/go_live_request.rb b/lib/getstream_ruby/generated/models/go_live_request.rb index 3cbfa38..519fbbe 100644 --- a/lib/getstream_ruby/generated/models/go_live_request.rb +++ b/lib/getstream_ruby/generated/models/go_live_request.rb @@ -15,9 +15,18 @@ class GoLiveRequest < GetStream::BaseModel # @!attribute start_closed_caption # @return [Boolean] attr_accessor :start_closed_caption + # @!attribute start_composite_recording + # @return [Boolean] + attr_accessor :start_composite_recording # @!attribute start_hls # @return [Boolean] attr_accessor :start_hls + # @!attribute start_individual_recording + # @return [Boolean] + attr_accessor :start_individual_recording + # @!attribute start_raw_recording + # @return [Boolean] + attr_accessor :start_raw_recording # @!attribute start_recording # @return [Boolean] attr_accessor :start_recording @@ -33,7 +42,10 @@ def initialize(attributes = {}) super(attributes) @recording_storage_name = attributes[:recording_storage_name] || attributes['recording_storage_name'] || nil @start_closed_caption = attributes[:start_closed_caption] || attributes['start_closed_caption'] || nil + @start_composite_recording = attributes[:start_composite_recording] || attributes['start_composite_recording'] || nil @start_hls = attributes[:start_hls] || attributes['start_hls'] || nil + @start_individual_recording = attributes[:start_individual_recording] || attributes['start_individual_recording'] || nil + @start_raw_recording = attributes[:start_raw_recording] || attributes['start_raw_recording'] || nil @start_recording = attributes[:start_recording] || attributes['start_recording'] || nil @start_transcription = attributes[:start_transcription] || attributes['start_transcription'] || nil @transcription_storage_name = attributes[:transcription_storage_name] || attributes['transcription_storage_name'] || nil @@ -44,7 +56,10 @@ def self.json_field_mappings { recording_storage_name: 'recording_storage_name', start_closed_caption: 'start_closed_caption', + start_composite_recording: 'start_composite_recording', start_hls: 'start_hls', + start_individual_recording: 'start_individual_recording', + start_raw_recording: 'start_raw_recording', start_recording: 'start_recording', start_transcription: 'start_transcription', transcription_storage_name: 'transcription_storage_name' diff --git a/lib/getstream_ruby/generated/models/import_v2_task_item.rb b/lib/getstream_ruby/generated/models/import_v2_task_item.rb new file mode 100644 index 0000000..dfae0ba --- /dev/null +++ b/lib/getstream_ruby/generated/models/import_v2_task_item.rb @@ -0,0 +1,61 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class ImportV2TaskItem < GetStream::BaseModel + + # Model attributes + # @!attribute app_pk + # @return [Integer] + attr_accessor :app_pk + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute id + # @return [String] + attr_accessor :id + # @!attribute product + # @return [String] + attr_accessor :product + # @!attribute state + # @return [Integer] + attr_accessor :state + # @!attribute updated_at + # @return [DateTime] + attr_accessor :updated_at + # @!attribute settings + # @return [ImportV2TaskSettings] + attr_accessor :settings + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @app_pk = attributes[:app_pk] || attributes['app_pk'] + @created_at = attributes[:created_at] || attributes['created_at'] + @id = attributes[:id] || attributes['id'] + @product = attributes[:product] || attributes['product'] + @state = attributes[:state] || attributes['state'] + @updated_at = attributes[:updated_at] || attributes['updated_at'] + @settings = attributes[:settings] || attributes['settings'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + app_pk: 'app_pk', + created_at: 'created_at', + id: 'id', + product: 'product', + state: 'state', + updated_at: 'updated_at', + settings: 'settings' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/import_v2_task_settings.rb b/lib/getstream_ruby/generated/models/import_v2_task_settings.rb new file mode 100644 index 0000000..9a06dbd --- /dev/null +++ b/lib/getstream_ruby/generated/models/import_v2_task_settings.rb @@ -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 ImportV2TaskSettings < GetStream::BaseModel + + # Model attributes + # @!attribute skip_references_check + # @return [Boolean] + attr_accessor :skip_references_check + # @!attribute s3 + # @return [ImportV2TaskSettingsS3] + attr_accessor :s3 + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @skip_references_check = attributes[:skip_references_check] || attributes['skip_references_check'] || nil + @s3 = attributes[:s3] || attributes['s3'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + skip_references_check: 'skip_references_check', + s3: 's3' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/import_v2_task_settings_s3.rb b/lib/getstream_ruby/generated/models/import_v2_task_settings_s3.rb new file mode 100644 index 0000000..b28f5dd --- /dev/null +++ b/lib/getstream_ruby/generated/models/import_v2_task_settings_s3.rb @@ -0,0 +1,41 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class ImportV2TaskSettingsS3 < GetStream::BaseModel + + # Model attributes + # @!attribute bucket + # @return [String] + attr_accessor :bucket + # @!attribute dir + # @return [String] + attr_accessor :dir + # @!attribute region + # @return [String] + attr_accessor :region + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @bucket = attributes[:bucket] || attributes['bucket'] || nil + @dir = attributes[:dir] || attributes['dir'] || nil + @region = attributes[:region] || attributes['region'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + bucket: 'bucket', + dir: 'dir', + region: 'region' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/individual_record_settings.rb b/lib/getstream_ruby/generated/models/individual_record_settings.rb new file mode 100644 index 0000000..63c0bcf --- /dev/null +++ b/lib/getstream_ruby/generated/models/individual_record_settings.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class IndividualRecordSettings < GetStream::BaseModel + + # Model attributes + # @!attribute mode + # @return [String] + attr_accessor :mode + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @mode = attributes[:mode] || attributes['mode'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + mode: 'mode' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/individual_recording_response.rb b/lib/getstream_ruby/generated/models/individual_recording_response.rb new file mode 100644 index 0000000..fabc60f --- /dev/null +++ b/lib/getstream_ruby/generated/models/individual_recording_response.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class IndividualRecordingResponse < GetStream::BaseModel + + # Model attributes + # @!attribute status + # @return [String] + attr_accessor :status + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @status = attributes[:status] || attributes['status'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + status: 'status' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/individual_recording_settings_request.rb b/lib/getstream_ruby/generated/models/individual_recording_settings_request.rb new file mode 100644 index 0000000..ae5716f --- /dev/null +++ b/lib/getstream_ruby/generated/models/individual_recording_settings_request.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class IndividualRecordingSettingsRequest < GetStream::BaseModel + + # Model attributes + # @!attribute mode + # @return [String] + attr_accessor :mode + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @mode = attributes[:mode] || attributes['mode'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + mode: 'mode' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/individual_recording_settings_response.rb b/lib/getstream_ruby/generated/models/individual_recording_settings_response.rb new file mode 100644 index 0000000..ab57f2a --- /dev/null +++ b/lib/getstream_ruby/generated/models/individual_recording_settings_response.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class IndividualRecordingSettingsResponse < GetStream::BaseModel + + # Model attributes + # @!attribute mode + # @return [String] + attr_accessor :mode + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @mode = attributes[:mode] || attributes['mode'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + mode: 'mode' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/ingress_error_event.rb b/lib/getstream_ruby/generated/models/ingress_error_event.rb new file mode 100644 index 0000000..f7d8342 --- /dev/null +++ b/lib/getstream_ruby/generated/models/ingress_error_event.rb @@ -0,0 +1,61 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # This event is sent when a critical error occurs that breaks the streaming pipeline + class IngressErrorEvent < GetStream::BaseModel + + # Model attributes + # @!attribute call_cid + # @return [String] + attr_accessor :call_cid + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute error + # @return [String] Human-readable error message + attr_accessor :error + # @!attribute ingress_stream_id + # @return [String] Unique identifier for the stream + attr_accessor :ingress_stream_id + # @!attribute user_id + # @return [String] User who was streaming + attr_accessor :user_id + # @!attribute type + # @return [String] The type of event: "ingress.error" in this case + attr_accessor :type + # @!attribute code + # @return [String] Error code + attr_accessor :code + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @call_cid = attributes[:call_cid] || attributes['call_cid'] + @created_at = attributes[:created_at] || attributes['created_at'] + @error = attributes[:error] || attributes['error'] + @ingress_stream_id = attributes[:ingress_stream_id] || attributes['ingress_stream_id'] + @user_id = attributes[:user_id] || attributes['user_id'] + @type = attributes[:type] || attributes['type'] || "ingress.error" + @code = attributes[:code] || attributes['code'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + call_cid: 'call_cid', + created_at: 'created_at', + error: 'error', + ingress_stream_id: 'ingress_stream_id', + user_id: 'user_id', + type: 'type', + code: 'code' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/ingress_started_event.rb b/lib/getstream_ruby/generated/models/ingress_started_event.rb new file mode 100644 index 0000000..b4fa88a --- /dev/null +++ b/lib/getstream_ruby/generated/models/ingress_started_event.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # This event is sent when a user begins streaming into a call + class IngressStartedEvent < GetStream::BaseModel + + # Model attributes + # @!attribute call_cid + # @return [String] + attr_accessor :call_cid + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute ingress_stream_id + # @return [String] Unique identifier for this stream + attr_accessor :ingress_stream_id + # @!attribute publisher_type + # @return [String] Streaming protocol (e.g., 'rtmps', 'srt', 'rtmp', 'rtsp') + attr_accessor :publisher_type + # @!attribute user_id + # @return [String] User who started the stream + attr_accessor :user_id + # @!attribute type + # @return [String] The type of event: "ingress.started" in this case + attr_accessor :type + # @!attribute client_ip + # @return [String] Client IP address + attr_accessor :client_ip + # @!attribute client_name + # @return [String] Streaming client software name (e.g., 'OBS Studio') + attr_accessor :client_name + # @!attribute version + # @return [String] Client software version + attr_accessor :version + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @call_cid = attributes[:call_cid] || attributes['call_cid'] + @created_at = attributes[:created_at] || attributes['created_at'] + @ingress_stream_id = attributes[:ingress_stream_id] || attributes['ingress_stream_id'] + @publisher_type = attributes[:publisher_type] || attributes['publisher_type'] + @user_id = attributes[:user_id] || attributes['user_id'] + @type = attributes[:type] || attributes['type'] || "ingress.started" + @client_ip = attributes[:client_ip] || attributes['client_ip'] || nil + @client_name = attributes[:client_name] || attributes['client_name'] || nil + @version = attributes[:version] || attributes['version'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + call_cid: 'call_cid', + created_at: 'created_at', + ingress_stream_id: 'ingress_stream_id', + publisher_type: 'publisher_type', + user_id: 'user_id', + type: 'type', + client_ip: 'client_ip', + client_name: 'client_name', + version: 'version' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/ingress_stopped_event.rb b/lib/getstream_ruby/generated/models/ingress_stopped_event.rb new file mode 100644 index 0000000..9e0b79a --- /dev/null +++ b/lib/getstream_ruby/generated/models/ingress_stopped_event.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # This event is sent when streaming stops due to user action or call ended + class IngressStoppedEvent < GetStream::BaseModel + + # Model attributes + # @!attribute call_cid + # @return [String] + attr_accessor :call_cid + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute ingress_stream_id + # @return [String] Unique identifier for the stream + attr_accessor :ingress_stream_id + # @!attribute user_id + # @return [String] User who was streaming + attr_accessor :user_id + # @!attribute type + # @return [String] The type of event: "ingress.stopped" in this case + attr_accessor :type + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @call_cid = attributes[:call_cid] || attributes['call_cid'] + @created_at = attributes[:created_at] || attributes['created_at'] + @ingress_stream_id = attributes[:ingress_stream_id] || attributes['ingress_stream_id'] + @user_id = attributes[:user_id] || attributes['user_id'] + @type = attributes[:type] || attributes['type'] || "ingress.stopped" + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + call_cid: 'call_cid', + created_at: 'created_at', + ingress_stream_id: 'ingress_stream_id', + user_id: 'user_id', + type: 'type' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/list_import_v2_tasks_response.rb b/lib/getstream_ruby/generated/models/list_import_v2_tasks_response.rb new file mode 100644 index 0000000..4fbd156 --- /dev/null +++ b/lib/getstream_ruby/generated/models/list_import_v2_tasks_response.rb @@ -0,0 +1,46 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # Basic response information + class ListImportV2TasksResponse < GetStream::BaseModel + + # Model attributes + # @!attribute duration + # @return [String] Duration of the request in milliseconds + attr_accessor :duration + # @!attribute import_tasks + # @return [Array] + attr_accessor :import_tasks + # @!attribute next + # @return [String] + attr_accessor :next + # @!attribute prev + # @return [String] + attr_accessor :prev + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @duration = attributes[:duration] || attributes['duration'] + @import_tasks = attributes[:import_tasks] || attributes['import_tasks'] + @next = attributes[:next] || attributes['next'] || nil + @prev = attributes[:prev] || attributes['prev'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + duration: 'duration', + import_tasks: 'import_tasks', + next: 'next', + prev: 'prev' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/mark_reviewed_request.rb b/lib/getstream_ruby/generated/models/mark_reviewed_request.rb index 116087d..70c7d91 100644 --- a/lib/getstream_ruby/generated/models/mark_reviewed_request.rb +++ b/lib/getstream_ruby/generated/models/mark_reviewed_request.rb @@ -12,6 +12,9 @@ class MarkReviewedRequest < GetStream::BaseModel # @!attribute content_to_mark_as_reviewed_limit # @return [Integer] attr_accessor :content_to_mark_as_reviewed_limit + # @!attribute decision_reason + # @return [String] + attr_accessor :decision_reason # @!attribute disable_marking_content_as_reviewed # @return [Boolean] attr_accessor :disable_marking_content_as_reviewed @@ -20,6 +23,7 @@ class MarkReviewedRequest < GetStream::BaseModel def initialize(attributes = {}) super(attributes) @content_to_mark_as_reviewed_limit = attributes[:content_to_mark_as_reviewed_limit] || attributes['content_to_mark_as_reviewed_limit'] || nil + @decision_reason = attributes[:decision_reason] || attributes['decision_reason'] || nil @disable_marking_content_as_reviewed = attributes[:disable_marking_content_as_reviewed] || attributes['disable_marking_content_as_reviewed'] || nil end @@ -27,6 +31,7 @@ def initialize(attributes = {}) def self.json_field_mappings { content_to_mark_as_reviewed_limit: 'content_to_mark_as_reviewed_limit', + decision_reason: 'decision_reason', disable_marking_content_as_reviewed: 'disable_marking_content_as_reviewed' } end diff --git a/lib/getstream_ruby/generated/models/message_new_event.rb b/lib/getstream_ruby/generated/models/message_new_event.rb index 7323e74..437ab92 100644 --- a/lib/getstream_ruby/generated/models/message_new_event.rb +++ b/lib/getstream_ruby/generated/models/message_new_event.rb @@ -48,7 +48,7 @@ def initialize(attributes = {}) @cid = attributes[:cid] || attributes['cid'] @created_at = attributes[:created_at] || attributes['created_at'] @watcher_count = attributes[:watcher_count] || attributes['watcher_count'] - @type = attributes[:type] || attributes['type'] || "notification.thread_message_new" + @type = attributes[:type] || attributes['type'] || "message.new" @team = attributes[:team] || attributes['team'] || nil @thread_participants = attributes[:thread_participants] || attributes['thread_participants'] || nil @message = attributes[:message] || attributes['message'] || nil diff --git a/lib/getstream_ruby/generated/models/own_batch_request.rb b/lib/getstream_ruby/generated/models/own_batch_request.rb index 4b4eb38..a841d74 100644 --- a/lib/getstream_ruby/generated/models/own_batch_request.rb +++ b/lib/getstream_ruby/generated/models/own_batch_request.rb @@ -5,7 +5,7 @@ module GetStream module Generated module Models - # Request to get own_follows, own_capabilities, and/or own_membership for multiple feeds. If fields is not specified, all three fields are returned. + # Request to get own_follows, own_followings, own_capabilities, and/or own_membership for multiple feeds. If fields is not specified, all fields are returned. class OwnBatchRequest < GetStream::BaseModel # Model attributes @@ -16,7 +16,7 @@ class OwnBatchRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute fields - # @return [Array] Optional list of specific fields to return. If not specified, all fields (own_follows, own_capabilities, own_membership) are returned + # @return [Array] Optional list of specific fields to return. If not specified, all fields (own_follows, own_followings, own_capabilities, own_membership) are returned attr_accessor :fields # @!attribute user # @return [UserRequest] diff --git a/lib/getstream_ruby/generated/models/participant_session_details.rb b/lib/getstream_ruby/generated/models/participant_session_details.rb new file mode 100644 index 0000000..a12312a --- /dev/null +++ b/lib/getstream_ruby/generated/models/participant_session_details.rb @@ -0,0 +1,61 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class ParticipantSessionDetails < GetStream::BaseModel + + # Model attributes + # @!attribute publisher_type + # @return [String] + attr_accessor :publisher_type + # @!attribute user_id + # @return [String] + attr_accessor :user_id + # @!attribute user_session_id + # @return [String] + attr_accessor :user_session_id + # @!attribute roles + # @return [Array] + attr_accessor :roles + # @!attribute duration_in_seconds + # @return [Integer] + attr_accessor :duration_in_seconds + # @!attribute joined_at + # @return [DateTime] + attr_accessor :joined_at + # @!attribute left_at + # @return [DateTime] + attr_accessor :left_at + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @publisher_type = attributes[:publisher_type] || attributes['publisher_type'] + @user_id = attributes[:user_id] || attributes['user_id'] + @user_session_id = attributes[:user_session_id] || attributes['user_session_id'] + @roles = attributes[:roles] || attributes['roles'] + @duration_in_seconds = attributes[:duration_in_seconds] || attributes['duration_in_seconds'] || nil + @joined_at = attributes[:joined_at] || attributes['joined_at'] || nil + @left_at = attributes[:left_at] || attributes['left_at'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + publisher_type: 'publisher_type', + user_id: 'user_id', + user_session_id: 'user_session_id', + roles: 'roles', + duration_in_seconds: 'duration_in_seconds', + joined_at: 'joined_at', + left_at: 'left_at' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/poll_vote_response.rb b/lib/getstream_ruby/generated/models/poll_vote_response.rb index 150fdbb..44e3623 100644 --- a/lib/getstream_ruby/generated/models/poll_vote_response.rb +++ b/lib/getstream_ruby/generated/models/poll_vote_response.rb @@ -12,6 +12,9 @@ class PollVoteResponse < GetStream::BaseModel # @!attribute duration # @return [String] Duration of the request in milliseconds attr_accessor :duration + # @!attribute poll + # @return [PollResponseData] + attr_accessor :poll # @!attribute vote # @return [PollVoteResponseData] attr_accessor :vote @@ -20,6 +23,7 @@ class PollVoteResponse < GetStream::BaseModel def initialize(attributes = {}) super(attributes) @duration = attributes[:duration] || attributes['duration'] + @poll = attributes[:poll] || attributes['poll'] || nil @vote = attributes[:vote] || attributes['vote'] || nil end @@ -27,6 +31,7 @@ def initialize(attributes = {}) def self.json_field_mappings { duration: 'duration', + poll: 'poll', vote: 'vote' } end diff --git a/lib/getstream_ruby/generated/models/query_appeals_request.rb b/lib/getstream_ruby/generated/models/query_appeals_request.rb new file mode 100644 index 0000000..67994d4 --- /dev/null +++ b/lib/getstream_ruby/generated/models/query_appeals_request.rb @@ -0,0 +1,61 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class QueryAppealsRequest < GetStream::BaseModel + + # Model attributes + # @!attribute limit + # @return [Integer] + attr_accessor :limit + # @!attribute next + # @return [String] + attr_accessor :next + # @!attribute prev + # @return [String] + attr_accessor :prev + # @!attribute user_id + # @return [String] + attr_accessor :user_id + # @!attribute sort + # @return [Array] Sorting parameters for appeals + attr_accessor :sort + # @!attribute filter + # @return [Object] Filter conditions for appeals + attr_accessor :filter + # @!attribute user + # @return [UserRequest] + attr_accessor :user + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @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 + @sort = attributes[:sort] || attributes['sort'] || nil + @filter = attributes[:filter] || attributes['filter'] || nil + @user = attributes[:user] || attributes['user'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + limit: 'limit', + next: 'next', + prev: 'prev', + user_id: 'user_id', + sort: 'sort', + filter: 'filter', + user: 'user' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/query_appeals_response.rb b/lib/getstream_ruby/generated/models/query_appeals_response.rb new file mode 100644 index 0000000..aaf4c8d --- /dev/null +++ b/lib/getstream_ruby/generated/models/query_appeals_response.rb @@ -0,0 +1,46 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class QueryAppealsResponse < GetStream::BaseModel + + # Model attributes + # @!attribute duration + # @return [String] + attr_accessor :duration + # @!attribute items + # @return [Array] List of Appeal Items + attr_accessor :items + # @!attribute next + # @return [String] + attr_accessor :next + # @!attribute prev + # @return [String] + attr_accessor :prev + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @duration = attributes[:duration] || attributes['duration'] + @items = attributes[:items] || attributes['items'] + @next = attributes[:next] || attributes['next'] || nil + @prev = attributes[:prev] || attributes['prev'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + duration: 'duration', + items: 'items', + next: 'next', + prev: 'prev' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/query_call_participant_sessions_response.rb b/lib/getstream_ruby/generated/models/query_call_participant_sessions_response.rb new file mode 100644 index 0000000..3640506 --- /dev/null +++ b/lib/getstream_ruby/generated/models/query_call_participant_sessions_response.rb @@ -0,0 +1,76 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # Basic response information + class QueryCallParticipantSessionsResponse < GetStream::BaseModel + + # Model attributes + # @!attribute call_id + # @return [String] + attr_accessor :call_id + # @!attribute call_session_id + # @return [String] + attr_accessor :call_session_id + # @!attribute call_type + # @return [String] + attr_accessor :call_type + # @!attribute duration + # @return [Integer] Duration of the request in milliseconds + attr_accessor :duration + # @!attribute total_participant_duration + # @return [Integer] + attr_accessor :total_participant_duration + # @!attribute total_participant_sessions + # @return [Integer] + attr_accessor :total_participant_sessions + # @!attribute participants_sessions + # @return [Array] + attr_accessor :participants_sessions + # @!attribute next + # @return [String] + attr_accessor :next + # @!attribute prev + # @return [String] + attr_accessor :prev + # @!attribute session + # @return [CallSessionResponse] + attr_accessor :session + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @call_id = attributes[:call_id] || attributes['call_id'] + @call_session_id = attributes[:call_session_id] || attributes['call_session_id'] + @call_type = attributes[:call_type] || attributes['call_type'] + @duration = attributes[:duration] || attributes['duration'] + @total_participant_duration = attributes[:total_participant_duration] || attributes['total_participant_duration'] + @total_participant_sessions = attributes[:total_participant_sessions] || attributes['total_participant_sessions'] + @participants_sessions = attributes[:participants_sessions] || attributes['participants_sessions'] + @next = attributes[:next] || attributes['next'] || nil + @prev = attributes[:prev] || attributes['prev'] || nil + @session = attributes[:session] || attributes['session'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + call_id: 'call_id', + call_session_id: 'call_session_id', + call_type: 'call_type', + duration: 'duration', + total_participant_duration: 'total_participant_duration', + total_participant_sessions: 'total_participant_sessions', + participants_sessions: 'participants_sessions', + next: 'next', + prev: 'prev', + session: 'session' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/query_channels_request.rb b/lib/getstream_ruby/generated/models/query_channels_request.rb index 317bbd9..5cd0b86 100644 --- a/lib/getstream_ruby/generated/models/query_channels_request.rb +++ b/lib/getstream_ruby/generated/models/query_channels_request.rb @@ -21,6 +21,9 @@ class QueryChannelsRequest < GetStream::BaseModel # @!attribute offset # @return [Integer] Channel pagination offset attr_accessor :offset + # @!attribute predefined_filter + # @return [String] ID of a predefined filter to use instead of filter_conditions + attr_accessor :predefined_filter # @!attribute state # @return [Boolean] Whether to update channel state or not attr_accessor :state @@ -33,6 +36,12 @@ class QueryChannelsRequest < GetStream::BaseModel # @!attribute filter_conditions # @return [Object] attr_accessor :filter_conditions + # @!attribute filter_values + # @return [Object] Values to interpolate into the predefined filter template + attr_accessor :filter_values + # @!attribute sort_values + # @return [Object] + attr_accessor :sort_values # @!attribute user # @return [UserRequest] attr_accessor :user @@ -44,10 +53,13 @@ def initialize(attributes = {}) @member_limit = attributes[:member_limit] || attributes['member_limit'] || nil @message_limit = attributes[:message_limit] || attributes['message_limit'] || nil @offset = attributes[:offset] || attributes['offset'] || nil + @predefined_filter = attributes[:predefined_filter] || attributes['predefined_filter'] || nil @state = attributes[:state] || attributes['state'] || nil @user_id = attributes[:user_id] || attributes['user_id'] || nil @sort = attributes[:sort] || attributes['sort'] || nil @filter_conditions = attributes[:filter_conditions] || attributes['filter_conditions'] || nil + @filter_values = attributes[:filter_values] || attributes['filter_values'] || nil + @sort_values = attributes[:sort_values] || attributes['sort_values'] || nil @user = attributes[:user] || attributes['user'] || nil end @@ -58,10 +70,13 @@ def self.json_field_mappings member_limit: 'member_limit', message_limit: 'message_limit', offset: 'offset', + predefined_filter: 'predefined_filter', state: 'state', user_id: 'user_id', sort: 'sort', filter_conditions: 'filter_conditions', + filter_values: 'filter_values', + sort_values: 'sort_values', user: 'user' } end diff --git a/lib/getstream_ruby/generated/models/query_future_channel_bans_payload.rb b/lib/getstream_ruby/generated/models/query_future_channel_bans_payload.rb new file mode 100644 index 0000000..773e4cf --- /dev/null +++ b/lib/getstream_ruby/generated/models/query_future_channel_bans_payload.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class QueryFutureChannelBansPayload < GetStream::BaseModel + + # Model attributes + # @!attribute exclude_expired_bans + # @return [Boolean] Whether to exclude expired bans or not + attr_accessor :exclude_expired_bans + # @!attribute limit + # @return [Integer] Number of records to return + attr_accessor :limit + # @!attribute offset + # @return [Integer] Number of records to offset + attr_accessor :offset + # @!attribute target_user_id + # @return [String] Filter by the target user ID. For server-side requests only. + attr_accessor :target_user_id + # @!attribute user_id + # @return [String] + attr_accessor :user_id + # @!attribute user + # @return [UserRequest] + attr_accessor :user + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @exclude_expired_bans = attributes[:exclude_expired_bans] || attributes['exclude_expired_bans'] || nil + @limit = attributes[:limit] || attributes['limit'] || nil + @offset = attributes[:offset] || attributes['offset'] || nil + @target_user_id = attributes[:target_user_id] || attributes['target_user_id'] || nil + @user_id = attributes[:user_id] || attributes['user_id'] || nil + @user = attributes[:user] || attributes['user'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + exclude_expired_bans: 'exclude_expired_bans', + limit: 'limit', + offset: 'offset', + target_user_id: 'target_user_id', + user_id: 'user_id', + user: 'user' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/query_future_channel_bans_response.rb b/lib/getstream_ruby/generated/models/query_future_channel_bans_response.rb new file mode 100644 index 0000000..1ee0cf2 --- /dev/null +++ b/lib/getstream_ruby/generated/models/query_future_channel_bans_response.rb @@ -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 QueryFutureChannelBansResponse < GetStream::BaseModel + + # Model attributes + # @!attribute duration + # @return [String] Duration of the request in milliseconds + attr_accessor :duration + # @!attribute bans + # @return [Array] List of found future channel bans + attr_accessor :bans + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @duration = attributes[:duration] || attributes['duration'] + @bans = attributes[:bans] || attributes['bans'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + duration: 'duration', + bans: 'bans' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/ranking_config.rb b/lib/getstream_ruby/generated/models/ranking_config.rb index 3573d6b..e6334b6 100644 --- a/lib/getstream_ruby/generated/models/ranking_config.rb +++ b/lib/getstream_ruby/generated/models/ranking_config.rb @@ -10,7 +10,7 @@ class RankingConfig < GetStream::BaseModel # Model attributes # @!attribute type - # @return [String] Type of ranking algorithm. Required. Must be one of: recency, expression, interest + # @return [String] Type of ranking algorithm. Required. Must be one of: expression, interest attr_accessor :type # @!attribute score # @return [String] Scoring formula. Required when type is 'expression' or 'interest' diff --git a/lib/getstream_ruby/generated/models/raw_record_settings.rb b/lib/getstream_ruby/generated/models/raw_record_settings.rb new file mode 100644 index 0000000..dbb8a14 --- /dev/null +++ b/lib/getstream_ruby/generated/models/raw_record_settings.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class RawRecordSettings < GetStream::BaseModel + + # Model attributes + # @!attribute mode + # @return [String] + attr_accessor :mode + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @mode = attributes[:mode] || attributes['mode'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + mode: 'mode' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/raw_recording_response.rb b/lib/getstream_ruby/generated/models/raw_recording_response.rb new file mode 100644 index 0000000..9fa09dd --- /dev/null +++ b/lib/getstream_ruby/generated/models/raw_recording_response.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class RawRecordingResponse < GetStream::BaseModel + + # Model attributes + # @!attribute status + # @return [String] + attr_accessor :status + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @status = attributes[:status] || attributes['status'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + status: 'status' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/raw_recording_settings_request.rb b/lib/getstream_ruby/generated/models/raw_recording_settings_request.rb new file mode 100644 index 0000000..a618d45 --- /dev/null +++ b/lib/getstream_ruby/generated/models/raw_recording_settings_request.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class RawRecordingSettingsRequest < GetStream::BaseModel + + # Model attributes + # @!attribute mode + # @return [String] + attr_accessor :mode + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @mode = attributes[:mode] || attributes['mode'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + mode: 'mode' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/raw_recording_settings_response.rb b/lib/getstream_ruby/generated/models/raw_recording_settings_response.rb new file mode 100644 index 0000000..72bf954 --- /dev/null +++ b/lib/getstream_ruby/generated/models/raw_recording_settings_response.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class RawRecordingSettingsResponse < GetStream::BaseModel + + # Model attributes + # @!attribute mode + # @return [String] + attr_accessor :mode + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @mode = attributes[:mode] || attributes['mode'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + mode: 'mode' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/reject_appeal_request.rb b/lib/getstream_ruby/generated/models/reject_appeal_request.rb new file mode 100644 index 0000000..c183a03 --- /dev/null +++ b/lib/getstream_ruby/generated/models/reject_appeal_request.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class RejectAppealRequest < GetStream::BaseModel + + # Model attributes + # @!attribute decision_reason + # @return [String] + attr_accessor :decision_reason + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @decision_reason = attributes[:decision_reason] || attributes['decision_reason'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + decision_reason: 'decision_reason' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/resolve_sip_inbound_request.rb b/lib/getstream_ruby/generated/models/resolve_sip_inbound_request.rb index 7c0b4a4..3900e42 100644 --- a/lib/getstream_ruby/generated/models/resolve_sip_inbound_request.rb +++ b/lib/getstream_ruby/generated/models/resolve_sip_inbound_request.rb @@ -18,6 +18,9 @@ class ResolveSipInboundRequest < GetStream::BaseModel # @!attribute challenge # @return [SIPChallenge] attr_accessor :challenge + # @!attribute routing_number + # @return [String] Optional routing number for routing number-based call routing (10 digits) + attr_accessor :routing_number # @!attribute sip_headers # @return [Hash] Optional SIP headers as key-value pairs attr_accessor :sip_headers @@ -28,6 +31,7 @@ def initialize(attributes = {}) @sip_caller_number = attributes[:sip_caller_number] || attributes['sip_caller_number'] @sip_trunk_number = attributes[:sip_trunk_number] || attributes['sip_trunk_number'] @challenge = attributes[:challenge] || attributes['challenge'] + @routing_number = attributes[:routing_number] || attributes['routing_number'] || nil @sip_headers = attributes[:sip_headers] || attributes['sip_headers'] || nil end @@ -37,6 +41,7 @@ def self.json_field_mappings sip_caller_number: 'sip_caller_number', sip_trunk_number: 'sip_trunk_number', challenge: 'challenge', + routing_number: 'routing_number', sip_headers: 'sip_headers' } end diff --git a/lib/getstream_ruby/generated/models/restore_action_request.rb b/lib/getstream_ruby/generated/models/restore_action_request.rb index bd53c67..6101294 100644 --- a/lib/getstream_ruby/generated/models/restore_action_request.rb +++ b/lib/getstream_ruby/generated/models/restore_action_request.rb @@ -7,7 +7,24 @@ module Generated module Models # class RestoreActionRequest < GetStream::BaseModel - # Empty model - inherits all functionality from BaseModel + + # Model attributes + # @!attribute decision_reason + # @return [String] + attr_accessor :decision_reason + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @decision_reason = attributes[:decision_reason] || attributes['decision_reason'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + decision_reason: 'decision_reason' + } + end end end end diff --git a/lib/getstream_ruby/generated/models/review_queue_item_response.rb b/lib/getstream_ruby/generated/models/review_queue_item_response.rb index be72bbd..5f403c5 100644 --- a/lib/getstream_ruby/generated/models/review_queue_item_response.rb +++ b/lib/getstream_ruby/generated/models/review_queue_item_response.rb @@ -75,6 +75,9 @@ class ReviewQueueItemResponse < GetStream::BaseModel # @!attribute activity # @return [EnrichedActivity] attr_accessor :activity + # @!attribute appeal + # @return [AppealItemResponse] + attr_accessor :appeal # @!attribute assigned_to # @return [UserResponse] attr_accessor :assigned_to @@ -131,6 +134,7 @@ def initialize(attributes = {}) @reviewed_at = attributes[:reviewed_at] || attributes['reviewed_at'] || nil @teams = attributes[:teams] || attributes['teams'] || nil @activity = attributes[:activity] || attributes['activity'] || nil + @appeal = attributes[:appeal] || attributes['appeal'] || nil @assigned_to = attributes[:assigned_to] || attributes['assigned_to'] || nil @call = attributes[:call] || attributes['call'] || nil @entity_creator = attributes[:entity_creator] || attributes['entity_creator'] || nil @@ -168,6 +172,7 @@ def self.json_field_mappings reviewed_at: 'reviewed_at', teams: 'teams', activity: 'activity', + appeal: 'appeal', assigned_to: 'assigned_to', call: 'call', entity_creator: 'entity_creator', diff --git a/lib/getstream_ruby/generated/models/rule_builder_condition.rb b/lib/getstream_ruby/generated/models/rule_builder_condition.rb index 12daf0f..68ec49d 100644 --- a/lib/getstream_ruby/generated/models/rule_builder_condition.rb +++ b/lib/getstream_ruby/generated/models/rule_builder_condition.rb @@ -42,6 +42,12 @@ class RuleBuilderCondition < GetStream::BaseModel # @!attribute user_flag_count_rule_params # @return [FlagCountRuleParameters] attr_accessor :user_flag_count_rule_params + # @!attribute user_identical_content_count_params + # @return [UserIdenticalContentCountParameters] + attr_accessor :user_identical_content_count_params + # @!attribute user_role_params + # @return [UserRoleParameters] + attr_accessor :user_role_params # @!attribute user_rule_params # @return [UserRuleParameters] attr_accessor :user_rule_params @@ -66,6 +72,8 @@ def initialize(attributes = {}) @user_created_within_params = attributes[:user_created_within_params] || attributes['user_created_within_params'] || nil @user_custom_property_params = attributes[:user_custom_property_params] || attributes['user_custom_property_params'] || nil @user_flag_count_rule_params = attributes[:user_flag_count_rule_params] || attributes['user_flag_count_rule_params'] || nil + @user_identical_content_count_params = attributes[:user_identical_content_count_params] || attributes['user_identical_content_count_params'] || nil + @user_role_params = attributes[:user_role_params] || attributes['user_role_params'] || nil @user_rule_params = attributes[:user_rule_params] || attributes['user_rule_params'] || nil @video_content_params = attributes[:video_content_params] || attributes['video_content_params'] || nil @video_rule_params = attributes[:video_rule_params] || attributes['video_rule_params'] || nil @@ -85,6 +93,8 @@ def self.json_field_mappings user_created_within_params: 'user_created_within_params', user_custom_property_params: 'user_custom_property_params', user_flag_count_rule_params: 'user_flag_count_rule_params', + user_identical_content_count_params: 'user_identical_content_count_params', + user_role_params: 'user_role_params', user_rule_params: 'user_rule_params', video_content_params: 'video_content_params', video_rule_params: 'video_rule_params' diff --git a/lib/getstream_ruby/generated/models/search_payload.rb b/lib/getstream_ruby/generated/models/search_payload.rb index 086d4c1..81df2df 100644 --- a/lib/getstream_ruby/generated/models/search_payload.rb +++ b/lib/getstream_ruby/generated/models/search_payload.rb @@ -15,6 +15,9 @@ class SearchPayload < GetStream::BaseModel # @!attribute force_default_search # @return [Boolean] attr_accessor :force_default_search + # @!attribute force_sql_v2_backend + # @return [Boolean] + attr_accessor :force_sql_v2_backend # @!attribute limit # @return [Integer] Number of messages to return attr_accessor :limit @@ -42,6 +45,7 @@ def initialize(attributes = {}) super(attributes) @filter_conditions = attributes[:filter_conditions] || attributes['filter_conditions'] @force_default_search = attributes[:force_default_search] || attributes['force_default_search'] || nil + @force_sql_v2_backend = attributes[:force_sql_v2_backend] || attributes['force_sql_v2_backend'] || nil @limit = attributes[:limit] || attributes['limit'] || nil @next = attributes[:next] || attributes['next'] || nil @offset = attributes[:offset] || attributes['offset'] || nil @@ -56,6 +60,7 @@ def self.json_field_mappings { filter_conditions: 'filter_conditions', force_default_search: 'force_default_search', + force_sql_v2_backend: 'force_sql_v2_backend', limit: 'limit', next: 'next', offset: 'offset', diff --git a/lib/getstream_ruby/generated/models/single_follow_response.rb b/lib/getstream_ruby/generated/models/single_follow_response.rb index 2262ebf..aa0e8bb 100644 --- a/lib/getstream_ruby/generated/models/single_follow_response.rb +++ b/lib/getstream_ruby/generated/models/single_follow_response.rb @@ -15,19 +15,24 @@ class SingleFollowResponse < GetStream::BaseModel # @!attribute follow # @return [FollowResponse] attr_accessor :follow + # @!attribute notification_created + # @return [Boolean] Whether a notification activity was successfully created + attr_accessor :notification_created # Initialize with attributes def initialize(attributes = {}) super(attributes) @duration = attributes[:duration] || attributes['duration'] @follow = attributes[:follow] || attributes['follow'] + @notification_created = attributes[:notification_created] || attributes['notification_created'] || nil end # Override field mappings for JSON serialization def self.json_field_mappings { duration: 'duration', - follow: 'follow' + follow: 'follow', + notification_created: 'notification_created' } end end diff --git a/lib/getstream_ruby/generated/models/stop_live_request.rb b/lib/getstream_ruby/generated/models/stop_live_request.rb index b567bc1..5d610ff 100644 --- a/lib/getstream_ruby/generated/models/stop_live_request.rb +++ b/lib/getstream_ruby/generated/models/stop_live_request.rb @@ -12,9 +12,18 @@ class StopLiveRequest < GetStream::BaseModel # @!attribute continue_closed_caption # @return [Boolean] attr_accessor :continue_closed_caption + # @!attribute continue_composite_recording + # @return [Boolean] + attr_accessor :continue_composite_recording # @!attribute continue_hls # @return [Boolean] attr_accessor :continue_hls + # @!attribute continue_individual_recording + # @return [Boolean] + attr_accessor :continue_individual_recording + # @!attribute continue_raw_recording + # @return [Boolean] + attr_accessor :continue_raw_recording # @!attribute continue_recording # @return [Boolean] attr_accessor :continue_recording @@ -29,7 +38,10 @@ class StopLiveRequest < GetStream::BaseModel def initialize(attributes = {}) super(attributes) @continue_closed_caption = attributes[:continue_closed_caption] || attributes['continue_closed_caption'] || nil + @continue_composite_recording = attributes[:continue_composite_recording] || attributes['continue_composite_recording'] || nil @continue_hls = attributes[:continue_hls] || attributes['continue_hls'] || nil + @continue_individual_recording = attributes[:continue_individual_recording] || attributes['continue_individual_recording'] || nil + @continue_raw_recording = attributes[:continue_raw_recording] || attributes['continue_raw_recording'] || nil @continue_recording = attributes[:continue_recording] || attributes['continue_recording'] || nil @continue_rtmp_broadcasts = attributes[:continue_rtmp_broadcasts] || attributes['continue_rtmp_broadcasts'] || nil @continue_transcription = attributes[:continue_transcription] || attributes['continue_transcription'] || nil @@ -39,7 +51,10 @@ def initialize(attributes = {}) def self.json_field_mappings { continue_closed_caption: 'continue_closed_caption', + continue_composite_recording: 'continue_composite_recording', continue_hls: 'continue_hls', + continue_individual_recording: 'continue_individual_recording', + continue_raw_recording: 'continue_raw_recording', continue_recording: 'continue_recording', continue_rtmp_broadcasts: 'continue_rtmp_broadcasts', continue_transcription: 'continue_transcription' diff --git a/lib/getstream_ruby/generated/models/submit_action_request.rb b/lib/getstream_ruby/generated/models/submit_action_request.rb index a35ec72..0d8309f 100644 --- a/lib/getstream_ruby/generated/models/submit_action_request.rb +++ b/lib/getstream_ruby/generated/models/submit_action_request.rb @@ -12,6 +12,9 @@ class SubmitActionRequest < GetStream::BaseModel # @!attribute action_type # @return [String] Type of moderation action to perform (mark_reviewed, delete_message, etc.) attr_accessor :action_type + # @!attribute appeal_id + # @return [String] UUID of the appeal to act on (required for reject_appeal, optional for other actions) + attr_accessor :appeal_id # @!attribute item_id # @return [String] UUID of the review queue item to act on attr_accessor :item_id @@ -45,12 +48,21 @@ class SubmitActionRequest < GetStream::BaseModel # @!attribute mark_reviewed # @return [MarkReviewedRequest] attr_accessor :mark_reviewed + # @!attribute reject_appeal + # @return [RejectAppealRequest] + attr_accessor :reject_appeal + # @!attribute restore + # @return [RestoreActionRequest] + attr_accessor :restore # @!attribute shadow_block # @return [ShadowBlockActionRequest] attr_accessor :shadow_block # @!attribute unban # @return [UnbanActionRequest] attr_accessor :unban + # @!attribute unblock + # @return [UnblockActionRequest] + attr_accessor :unblock # @!attribute user # @return [UserRequest] attr_accessor :user @@ -59,7 +71,8 @@ class SubmitActionRequest < GetStream::BaseModel def initialize(attributes = {}) super(attributes) @action_type = attributes[:action_type] || attributes['action_type'] - @item_id = attributes[:item_id] || attributes['item_id'] + @appeal_id = attributes[:appeal_id] || attributes['appeal_id'] || nil + @item_id = attributes[:item_id] || attributes['item_id'] || nil @user_id = attributes[:user_id] || attributes['user_id'] || nil @ban = attributes[:ban] || attributes['ban'] || nil @block = attributes[:block] || attributes['block'] || nil @@ -70,8 +83,11 @@ def initialize(attributes = {}) @delete_reaction = attributes[:delete_reaction] || attributes['delete_reaction'] || nil @delete_user = attributes[:delete_user] || attributes['delete_user'] || nil @mark_reviewed = attributes[:mark_reviewed] || attributes['mark_reviewed'] || nil + @reject_appeal = attributes[:reject_appeal] || attributes['reject_appeal'] || nil + @restore = attributes[:restore] || attributes['restore'] || nil @shadow_block = attributes[:shadow_block] || attributes['shadow_block'] || nil @unban = attributes[:unban] || attributes['unban'] || nil + @unblock = attributes[:unblock] || attributes['unblock'] || nil @user = attributes[:user] || attributes['user'] || nil end @@ -79,6 +95,7 @@ def initialize(attributes = {}) def self.json_field_mappings { action_type: 'action_type', + appeal_id: 'appeal_id', item_id: 'item_id', user_id: 'user_id', ban: 'ban', @@ -90,8 +107,11 @@ def self.json_field_mappings delete_reaction: 'delete_reaction', delete_user: 'delete_user', mark_reviewed: 'mark_reviewed', + reject_appeal: 'reject_appeal', + restore: 'restore', shadow_block: 'shadow_block', unban: 'unban', + unblock: 'unblock', user: 'user' } end diff --git a/lib/getstream_ruby/generated/models/submit_action_response.rb b/lib/getstream_ruby/generated/models/submit_action_response.rb index bd1cb4a..b266fdc 100644 --- a/lib/getstream_ruby/generated/models/submit_action_response.rb +++ b/lib/getstream_ruby/generated/models/submit_action_response.rb @@ -12,6 +12,9 @@ class SubmitActionResponse < GetStream::BaseModel # @!attribute duration # @return [String] attr_accessor :duration + # @!attribute appeal_item + # @return [AppealItemResponse] + attr_accessor :appeal_item # @!attribute item # @return [ReviewQueueItemResponse] attr_accessor :item @@ -20,6 +23,7 @@ class SubmitActionResponse < GetStream::BaseModel def initialize(attributes = {}) super(attributes) @duration = attributes[:duration] || attributes['duration'] + @appeal_item = attributes[:appeal_item] || attributes['appeal_item'] || nil @item = attributes[:item] || attributes['item'] || nil end @@ -27,6 +31,7 @@ def initialize(attributes = {}) def self.json_field_mappings { duration: 'duration', + appeal_item: 'appeal_item', item: 'item' } end diff --git a/lib/getstream_ruby/generated/models/text_rule_parameters.rb b/lib/getstream_ruby/generated/models/text_rule_parameters.rb index 43fb6fe..ef4cda7 100644 --- a/lib/getstream_ruby/generated/models/text_rule_parameters.rb +++ b/lib/getstream_ruby/generated/models/text_rule_parameters.rb @@ -12,6 +12,9 @@ class TextRuleParameters < GetStream::BaseModel # @!attribute contains_url # @return [Boolean] attr_accessor :contains_url + # @!attribute semantic_filter_min_threshold + # @return [Float] + attr_accessor :semantic_filter_min_threshold # @!attribute severity # @return [String] attr_accessor :severity @@ -27,6 +30,9 @@ class TextRuleParameters < GetStream::BaseModel # @!attribute harm_labels # @return [Array] attr_accessor :harm_labels + # @!attribute semantic_filter_names + # @return [Array] + attr_accessor :semantic_filter_names # @!attribute llm_harm_labels # @return [Hash] attr_accessor :llm_harm_labels @@ -35,11 +41,13 @@ class TextRuleParameters < GetStream::BaseModel def initialize(attributes = {}) super(attributes) @contains_url = attributes[:contains_url] || attributes['contains_url'] || nil + @semantic_filter_min_threshold = attributes[:semantic_filter_min_threshold] || attributes['semantic_filter_min_threshold'] || nil @severity = attributes[:severity] || attributes['severity'] || nil @threshold = attributes[:threshold] || attributes['threshold'] || nil @time_window = attributes[:time_window] || attributes['time_window'] || nil @blocklist_match = attributes[:blocklist_match] || attributes['blocklist_match'] || nil @harm_labels = attributes[:harm_labels] || attributes['harm_labels'] || nil + @semantic_filter_names = attributes[:semantic_filter_names] || attributes['semantic_filter_names'] || nil @llm_harm_labels = attributes[:llm_harm_labels] || attributes['llm_harm_labels'] || nil end @@ -47,11 +55,13 @@ def initialize(attributes = {}) def self.json_field_mappings { contains_url: 'contains_url', + semantic_filter_min_threshold: 'semantic_filter_min_threshold', severity: 'severity', threshold: 'threshold', time_window: 'time_window', blocklist_match: 'blocklist_match', harm_labels: 'harm_labels', + semantic_filter_names: 'semantic_filter_names', llm_harm_labels: 'llm_harm_labels' } end diff --git a/lib/getstream_ruby/generated/models/threaded_comment_response.rb b/lib/getstream_ruby/generated/models/threaded_comment_response.rb index e056d18..92989bb 100644 --- a/lib/getstream_ruby/generated/models/threaded_comment_response.rb +++ b/lib/getstream_ruby/generated/models/threaded_comment_response.rb @@ -60,6 +60,9 @@ class ThreadedCommentResponse < GetStream::BaseModel # @!attribute deleted_at # @return [DateTime] attr_accessor :deleted_at + # @!attribute edited_at + # @return [DateTime] + attr_accessor :edited_at # @!attribute parent_id # @return [String] attr_accessor :parent_id @@ -108,6 +111,7 @@ def initialize(attributes = {}) @user = attributes[:user] || attributes['user'] @controversy_score = attributes[:controversy_score] || attributes['controversy_score'] || nil @deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil + @edited_at = attributes[:edited_at] || attributes['edited_at'] || nil @parent_id = attributes[:parent_id] || attributes['parent_id'] || nil @text = attributes[:text] || attributes['text'] || nil @attachments = attributes[:attachments] || attributes['attachments'] || nil @@ -139,6 +143,7 @@ def self.json_field_mappings user: 'user', controversy_score: 'controversy_score', deleted_at: 'deleted_at', + edited_at: 'edited_at', parent_id: 'parent_id', text: 'text', attachments: 'attachments', diff --git a/lib/getstream_ruby/generated/models/unban_action_request.rb b/lib/getstream_ruby/generated/models/unban_action_request.rb index aca24ab..32b9095 100644 --- a/lib/getstream_ruby/generated/models/unban_action_request.rb +++ b/lib/getstream_ruby/generated/models/unban_action_request.rb @@ -7,7 +7,24 @@ module Generated module Models # class UnbanActionRequest < GetStream::BaseModel - # Empty model - inherits all functionality from BaseModel + + # Model attributes + # @!attribute decision_reason + # @return [String] + attr_accessor :decision_reason + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @decision_reason = attributes[:decision_reason] || attributes['decision_reason'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + decision_reason: 'decision_reason' + } + end end end end diff --git a/lib/getstream_ruby/generated/models/unblock_action_request.rb b/lib/getstream_ruby/generated/models/unblock_action_request.rb index 37aba33..5f168ce 100644 --- a/lib/getstream_ruby/generated/models/unblock_action_request.rb +++ b/lib/getstream_ruby/generated/models/unblock_action_request.rb @@ -7,7 +7,24 @@ module Generated module Models # class UnblockActionRequest < GetStream::BaseModel - # Empty model - inherits all functionality from BaseModel + + # Model attributes + # @!attribute decision_reason + # @return [String] + attr_accessor :decision_reason + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @decision_reason = attributes[:decision_reason] || attributes['decision_reason'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + decision_reason: 'decision_reason' + } + end end end end diff --git a/lib/getstream_ruby/generated/models/update_activity_partial_request.rb b/lib/getstream_ruby/generated/models/update_activity_partial_request.rb index 0435341..7556415 100644 --- a/lib/getstream_ruby/generated/models/update_activity_partial_request.rb +++ b/lib/getstream_ruby/generated/models/update_activity_partial_request.rb @@ -13,10 +13,10 @@ class UpdateActivityPartialRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute unset - # @return [Array] List of field names to remove. Supported fields: 'custom', 'location', 'expires_at', 'filter_tags', 'interest_tags', 'attachments', 'poll_id', 'mentioned_users'. Use dot-notation for nested custom fields (e.g., 'custom.field_name') + # @return [Array] List of field names to remove. Supported fields: 'custom', 'location', 'expires_at', 'filter_tags', 'interest_tags', 'attachments', 'poll_id', 'mentioned_user_ids'. Use dot-notation for nested custom fields (e.g., 'custom.field_name') attr_accessor :unset # @!attribute set - # @return [Object] Map of field names to new values. Supported fields: 'text', 'attachments', 'custom', 'visibility', 'restrict_replies' (values: 'everyone', 'people_i_follow', 'nobody'), 'location', 'expires_at', 'filter_tags', 'interest_tags', 'poll_id', 'feeds', 'mentioned_users'. For custom fields, use dot-notation (e.g., 'custom.field_name') + # @return [Object] Map of field names to new values. Supported fields: 'text', 'attachments', 'custom', 'visibility', 'visibility_tag', 'restrict_replies' (values: 'everyone', 'people_i_follow', 'nobody'), 'location', 'expires_at', 'filter_tags', 'interest_tags', 'poll_id', 'feeds', 'mentioned_user_ids'. For custom fields, use dot-notation (e.g., 'custom.field_name') attr_accessor :set # @!attribute user # @return [UserRequest] diff --git a/lib/getstream_ruby/generated/models/update_activity_request.rb b/lib/getstream_ruby/generated/models/update_activity_request.rb index 70b2fff..f10b9d4 100644 --- a/lib/getstream_ruby/generated/models/update_activity_request.rb +++ b/lib/getstream_ruby/generated/models/update_activity_request.rb @@ -30,6 +30,9 @@ class UpdateActivityRequest < GetStream::BaseModel # @!attribute visibility # @return [String] Visibility setting for the activity attr_accessor :visibility + # @!attribute visibility_tag + # @return [String] If visibility is 'tag', this is the tag name and is required + attr_accessor :visibility_tag # @!attribute attachments # @return [Array] List of attachments for the activity attr_accessor :attachments @@ -45,6 +48,9 @@ class UpdateActivityRequest < GetStream::BaseModel # @!attribute interest_tags # @return [Array] Tags indicating interest categories attr_accessor :interest_tags + # @!attribute mentioned_user_ids + # @return [Array] List of user IDs mentioned in the activity + attr_accessor :mentioned_user_ids # @!attribute custom # @return [Object] Custom data for the activity attr_accessor :custom @@ -65,11 +71,13 @@ def initialize(attributes = {}) @text = attributes[:text] || attributes['text'] || nil @user_id = attributes[:user_id] || attributes['user_id'] || nil @visibility = attributes[:visibility] || attributes['visibility'] || nil + @visibility_tag = attributes[:visibility_tag] || attributes['visibility_tag'] || nil @attachments = attributes[:attachments] || attributes['attachments'] || nil @collection_refs = attributes[:collection_refs] || attributes['collection_refs'] || nil @feeds = attributes[:feeds] || attributes['feeds'] || nil @filter_tags = attributes[:filter_tags] || attributes['filter_tags'] || nil @interest_tags = attributes[:interest_tags] || attributes['interest_tags'] || nil + @mentioned_user_ids = attributes[:mentioned_user_ids] || attributes['mentioned_user_ids'] || nil @custom = attributes[:custom] || attributes['custom'] || nil @location = attributes[:location] || attributes['location'] || nil @user = attributes[:user] || attributes['user'] || nil @@ -85,11 +93,13 @@ def self.json_field_mappings text: 'text', user_id: 'user_id', visibility: 'visibility', + visibility_tag: 'visibility_tag', attachments: 'attachments', collection_refs: 'collection_refs', feeds: 'feeds', filter_tags: 'filter_tags', interest_tags: 'interest_tags', + mentioned_user_ids: 'mentioned_user_ids', custom: 'custom', location: 'location', user: 'user' diff --git a/lib/getstream_ruby/generated/models/update_comment_request.rb b/lib/getstream_ruby/generated/models/update_comment_request.rb index 2a80a2d..61a5e4c 100644 --- a/lib/getstream_ruby/generated/models/update_comment_request.rb +++ b/lib/getstream_ruby/generated/models/update_comment_request.rb @@ -21,6 +21,9 @@ class UpdateCommentRequest < GetStream::BaseModel # @!attribute user_id # @return [String] attr_accessor :user_id + # @!attribute attachments + # @return [Array] Updated media attachments for the comment. Providing this field will replace all existing attachments. + attr_accessor :attachments # @!attribute custom # @return [Object] Updated custom data for the comment attr_accessor :custom @@ -35,6 +38,7 @@ def initialize(attributes = {}) @skip_enrich_url = attributes[:skip_enrich_url] || attributes['skip_enrich_url'] || nil @skip_push = attributes[:skip_push] || attributes['skip_push'] || nil @user_id = attributes[:user_id] || attributes['user_id'] || nil + @attachments = attributes[:attachments] || attributes['attachments'] || nil @custom = attributes[:custom] || attributes['custom'] || nil @user = attributes[:user] || attributes['user'] || nil end @@ -46,6 +50,7 @@ def self.json_field_mappings skip_enrich_url: 'skip_enrich_url', skip_push: 'skip_push', user_id: 'user_id', + attachments: 'attachments', custom: 'custom', user: 'user' } diff --git a/lib/getstream_ruby/generated/models/update_feed_request.rb b/lib/getstream_ruby/generated/models/update_feed_request.rb index 1e9f8f7..e40f389 100644 --- a/lib/getstream_ruby/generated/models/update_feed_request.rb +++ b/lib/getstream_ruby/generated/models/update_feed_request.rb @@ -12,6 +12,15 @@ class UpdateFeedRequest < GetStream::BaseModel # @!attribute created_by_id # @return [String] ID of the new feed creator (owner) attr_accessor :created_by_id + # @!attribute description + # @return [String] Description of the feed + attr_accessor :description + # @!attribute name + # @return [String] Name of the feed + attr_accessor :name + # @!attribute filter_tags + # @return [Array] Tags used for filtering feeds + attr_accessor :filter_tags # @!attribute custom # @return [Object] Custom data for the feed attr_accessor :custom @@ -20,6 +29,9 @@ class UpdateFeedRequest < GetStream::BaseModel def initialize(attributes = {}) super(attributes) @created_by_id = attributes[:created_by_id] || attributes['created_by_id'] || nil + @description = attributes[:description] || attributes['description'] || nil + @name = attributes[:name] || attributes['name'] || nil + @filter_tags = attributes[:filter_tags] || attributes['filter_tags'] || nil @custom = attributes[:custom] || attributes['custom'] || nil end @@ -27,6 +39,9 @@ def initialize(attributes = {}) def self.json_field_mappings { created_by_id: 'created_by_id', + description: 'description', + name: 'name', + filter_tags: 'filter_tags', custom: 'custom' } end diff --git a/lib/getstream_ruby/generated/models/upsert_activities_response.rb b/lib/getstream_ruby/generated/models/upsert_activities_response.rb index 63f1bbf..6de75a0 100644 --- a/lib/getstream_ruby/generated/models/upsert_activities_response.rb +++ b/lib/getstream_ruby/generated/models/upsert_activities_response.rb @@ -15,19 +15,24 @@ class UpsertActivitiesResponse < GetStream::BaseModel # @!attribute activities # @return [Array] List of created or updated activities attr_accessor :activities + # @!attribute mention_notifications_created + # @return [Integer] Total number of mention notification activities created for mentioned users across all activities + attr_accessor :mention_notifications_created # Initialize with attributes def initialize(attributes = {}) super(attributes) @duration = attributes[:duration] || attributes['duration'] @activities = attributes[:activities] || attributes['activities'] + @mention_notifications_created = attributes[:mention_notifications_created] || attributes['mention_notifications_created'] || nil end # Override field mappings for JSON serialization def self.json_field_mappings { duration: 'duration', - activities: 'activities' + activities: 'activities', + mention_notifications_created: 'mention_notifications_created' } end end diff --git a/lib/getstream_ruby/generated/models/user_identical_content_count_parameters.rb b/lib/getstream_ruby/generated/models/user_identical_content_count_parameters.rb new file mode 100644 index 0000000..6c2c00f --- /dev/null +++ b/lib/getstream_ruby/generated/models/user_identical_content_count_parameters.rb @@ -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 UserIdenticalContentCountParameters < GetStream::BaseModel + + # Model attributes + # @!attribute threshold + # @return [Integer] + attr_accessor :threshold + # @!attribute time_window + # @return [String] + attr_accessor :time_window + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @threshold = attributes[:threshold] || attributes['threshold'] || nil + @time_window = attributes[:time_window] || attributes['time_window'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + threshold: 'threshold', + time_window: 'time_window' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/user_role_parameters.rb b/lib/getstream_ruby/generated/models/user_role_parameters.rb new file mode 100644 index 0000000..9d0505e --- /dev/null +++ b/lib/getstream_ruby/generated/models/user_role_parameters.rb @@ -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 UserRoleParameters < GetStream::BaseModel + + # Model attributes + # @!attribute operator + # @return [String] + attr_accessor :operator + # @!attribute role + # @return [String] + attr_accessor :role + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @operator = attributes[:operator] || attributes['operator'] || nil + @role = attributes[:role] || attributes['role'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + operator: 'operator', + role: 'role' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/moderation_client.rb b/lib/getstream_ruby/generated/moderation_client.rb index 42e6a4a..0468613 100644 --- a/lib/getstream_ruby/generated/moderation_client.rb +++ b/lib/getstream_ruby/generated/moderation_client.rb @@ -12,6 +12,56 @@ class ModerationClient def initialize(client) @client = client end + # Appeal against the moderation decision + # + # @param appeal_request [AppealRequest] + # @return [Models::AppealResponse] + def appeal(appeal_request) + path = '/api/v2/moderation/appeal' + # Build request body + body = appeal_request + + # Make the API request + @client.make_request( + :post, + path, + body: body + ) + end + + # Retrieve a specific appeal item by its ID + # + # @param _id [String] + # @return [Models::GetAppealResponse] + def get_appeal(_id) + path = '/api/v2/moderation/appeal/{id}' + # Replace path parameters + path = path.gsub('{id}', _id.to_s) + + # Make the API request + @client.make_request( + :get, + path + ) + end + + # Query Appeals + # + # @param query_appeals_request [QueryAppealsRequest] + # @return [Models::QueryAppealsResponse] + def query_appeals(query_appeals_request) + path = '/api/v2/moderation/appeals' + # Build request body + body = query_appeals_request + + # Make the API request + @client.make_request( + :post, + path, + body: body + ) + end + # Ban a user from a channel or the entire app # # @param ban_request [BanRequest]