diff --git a/lib/getstream_ruby/generated/models/add_activity_request.rb b/lib/getstream_ruby/generated/models/add_activity_request.rb index 34c24dd..780264c 100644 --- a/lib/getstream_ruby/generated/models/add_activity_request.rb +++ b/lib/getstream_ruby/generated/models/add_activity_request.rb @@ -22,6 +22,9 @@ class AddActivityRequest < GetStream::BaseModel # @!attribute create_notification_activity # @return [Boolean] Whether to create notification activities for mentioned users attr_accessor :create_notification_activity + # @!attribute create_users + # @return [Boolean] + attr_accessor :create_users # @!attribute enrich_own_fields # @return [Boolean] attr_accessor :enrich_own_fields @@ -93,6 +96,7 @@ def initialize(attributes = {}) @feeds = attributes[:feeds] || attributes['feeds'] @copy_custom_to_notification = attributes[:copy_custom_to_notification] || attributes['copy_custom_to_notification'] || nil @create_notification_activity = attributes[:create_notification_activity] || attributes['create_notification_activity'] || nil + @create_users = attributes[:create_users] || attributes['create_users'] || nil @enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil @expires_at = attributes[:expires_at] || attributes['expires_at'] || nil @force_moderation = attributes[:force_moderation] || attributes['force_moderation'] || nil @@ -123,6 +127,7 @@ def self.json_field_mappings feeds: 'feeds', copy_custom_to_notification: 'copy_custom_to_notification', create_notification_activity: 'create_notification_activity', + create_users: 'create_users', enrich_own_fields: 'enrich_own_fields', expires_at: 'expires_at', force_moderation: 'force_moderation', diff --git a/lib/getstream_ruby/generated/models/add_reaction_request.rb b/lib/getstream_ruby/generated/models/add_reaction_request.rb index 0ae809c..ffbd8cb 100644 --- a/lib/getstream_ruby/generated/models/add_reaction_request.rb +++ b/lib/getstream_ruby/generated/models/add_reaction_request.rb @@ -19,6 +19,9 @@ class AddReactionRequest < GetStream::BaseModel # @!attribute create_notification_activity # @return [Boolean] Whether to create a notification activity for this reaction attr_accessor :create_notification_activity + # @!attribute create_users + # @return [Boolean] Server-side only. If true, auto-creates the reacting user identified by user_id when they don't already exist. Default: false. + attr_accessor :create_users # @!attribute enforce_unique # @return [Boolean] Whether to enforce unique reactions per user (remove other reaction types from the user when adding this one) attr_accessor :enforce_unique @@ -41,6 +44,7 @@ def initialize(attributes = {}) @type = attributes[:type] || attributes['type'] @copy_custom_to_notification = attributes[:copy_custom_to_notification] || attributes['copy_custom_to_notification'] || nil @create_notification_activity = attributes[:create_notification_activity] || attributes['create_notification_activity'] || nil + @create_users = attributes[:create_users] || attributes['create_users'] || nil @enforce_unique = attributes[:enforce_unique] || attributes['enforce_unique'] || nil @skip_push = attributes[:skip_push] || attributes['skip_push'] || nil @user_id = attributes[:user_id] || attributes['user_id'] || nil @@ -54,6 +58,7 @@ def self.json_field_mappings type: 'type', copy_custom_to_notification: 'copy_custom_to_notification', create_notification_activity: 'create_notification_activity', + create_users: 'create_users', enforce_unique: 'enforce_unique', skip_push: 'skip_push', user_id: 'user_id', diff --git a/lib/getstream_ruby/generated/models/async_export_error_event.rb b/lib/getstream_ruby/generated/models/async_export_error_event.rb index f785b8c..1e922a8 100644 --- a/lib/getstream_ruby/generated/models/async_export_error_event.rb +++ b/lib/getstream_ruby/generated/models/async_export_error_event.rb @@ -43,7 +43,7 @@ def initialize(attributes = {}) @started_at = attributes[:started_at] || attributes['started_at'] @task_id = attributes[:task_id] || attributes['task_id'] @custom = attributes[:custom] || attributes['custom'] - @type = attributes[:type] || attributes['type'] || "export.bulk_image_moderation.error" + @type = attributes[:type] || attributes['type'] || "export.users.error" @received_at = attributes[:received_at] || attributes['received_at'] || nil end diff --git a/lib/getstream_ruby/generated/models/bodyguard_profile_summary.rb b/lib/getstream_ruby/generated/models/bodyguard_profile_summary.rb index 61c92d9..5425b4f 100644 --- a/lib/getstream_ruby/generated/models/bodyguard_profile_summary.rb +++ b/lib/getstream_ruby/generated/models/bodyguard_profile_summary.rb @@ -15,19 +15,24 @@ class BodyguardProfileSummary < GetStream::BaseModel # @!attribute display_name # @return [String] attr_accessor :display_name + # @!attribute text_type + # @return [String] + attr_accessor :text_type # Initialize with attributes def initialize(attributes = {}) super(attributes) @name = attributes[:name] || attributes['name'] @display_name = attributes[:display_name] || attributes['display_name'] || nil + @text_type = attributes[:text_type] || attributes['text_type'] || nil end # Override field mappings for JSON serialization def self.json_field_mappings { name: 'name', - display_name: 'display_name' + display_name: 'display_name', + text_type: 'text_type' } end end diff --git a/lib/getstream_ruby/generated/models/chat_draft_payload_response.rb b/lib/getstream_ruby/generated/models/chat_draft_payload_response.rb new file mode 100644 index 0000000..0fbfb99 --- /dev/null +++ b/lib/getstream_ruby/generated/models/chat_draft_payload_response.rb @@ -0,0 +1,91 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class ChatDraftPayloadResponse < GetStream::BaseModel + + # Model attributes + # @!attribute id + # @return [String] + attr_accessor :id + # @!attribute text + # @return [String] + attr_accessor :text + # @!attribute custom + # @return [Object] + attr_accessor :custom + # @!attribute html + # @return [String] + attr_accessor :html + # @!attribute mml + # @return [String] + attr_accessor :mml + # @!attribute parent_id + # @return [String] + attr_accessor :parent_id + # @!attribute poll_id + # @return [String] + attr_accessor :poll_id + # @!attribute quoted_message_id + # @return [String] + attr_accessor :quoted_message_id + # @!attribute show_in_channel + # @return [Boolean] + attr_accessor :show_in_channel + # @!attribute silent + # @return [Boolean] + attr_accessor :silent + # @!attribute type + # @return [String] + attr_accessor :type + # @!attribute attachments + # @return [Array] + attr_accessor :attachments + # @!attribute mentioned_users + # @return [Array] + attr_accessor :mentioned_users + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @id = attributes[:id] || attributes['id'] + @text = attributes[:text] || attributes['text'] + @custom = attributes[:custom] || attributes['custom'] + @html = attributes[:html] || attributes['html'] || nil + @mml = attributes[:mml] || attributes['mml'] || nil + @parent_id = attributes[:parent_id] || attributes['parent_id'] || nil + @poll_id = attributes[:poll_id] || attributes['poll_id'] || nil + @quoted_message_id = attributes[:quoted_message_id] || attributes['quoted_message_id'] || nil + @show_in_channel = attributes[:show_in_channel] || attributes['show_in_channel'] || nil + @silent = attributes[:silent] || attributes['silent'] || nil + @type = attributes[:type] || attributes['type'] || nil + @attachments = attributes[:attachments] || attributes['attachments'] || nil + @mentioned_users = attributes[:mentioned_users] || attributes['mentioned_users'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + id: 'id', + text: 'text', + custom: 'custom', + html: 'html', + mml: 'mml', + parent_id: 'parent_id', + poll_id: 'poll_id', + quoted_message_id: 'quoted_message_id', + show_in_channel: 'show_in_channel', + silent: 'silent', + type: 'type', + attachments: 'attachments', + mentioned_users: 'mentioned_users' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/chat_draft_response.rb b/lib/getstream_ruby/generated/models/chat_draft_response.rb new file mode 100644 index 0000000..0b396d3 --- /dev/null +++ b/lib/getstream_ruby/generated/models/chat_draft_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 ChatDraftResponse < GetStream::BaseModel + + # Model attributes + # @!attribute channel_cid + # @return [String] + attr_accessor :channel_cid + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute message + # @return [ChatDraftPayloadResponse] + attr_accessor :message + # @!attribute parent_id + # @return [String] + attr_accessor :parent_id + # @!attribute parent_message + # @return [ChatMessageResponse] + attr_accessor :parent_message + # @!attribute quoted_message + # @return [ChatMessageResponse] + attr_accessor :quoted_message + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @channel_cid = attributes[:channel_cid] || attributes['channel_cid'] + @created_at = attributes[:created_at] || attributes['created_at'] + @message = attributes[:message] || attributes['message'] + @parent_id = attributes[:parent_id] || attributes['parent_id'] || nil + @parent_message = attributes[:parent_message] || attributes['parent_message'] || nil + @quoted_message = attributes[:quoted_message] || attributes['quoted_message'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + channel_cid: 'channel_cid', + created_at: 'created_at', + message: 'message', + parent_id: 'parent_id', + parent_message: 'parent_message', + quoted_message: 'quoted_message' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/chat_message_response.rb b/lib/getstream_ruby/generated/models/chat_message_response.rb index 0511b6e..0204fc7 100644 --- a/lib/getstream_ruby/generated/models/chat_message_response.rb +++ b/lib/getstream_ruby/generated/models/chat_message_response.rb @@ -52,16 +52,16 @@ class ChatMessageResponse < GetStream::BaseModel # @return [DateTime] attr_accessor :updated_at # @!attribute attachments - # @return [Array] + # @return [Array] attr_accessor :attachments # @!attribute latest_reactions - # @return [Array] + # @return [Array] attr_accessor :latest_reactions # @!attribute mentioned_users # @return [Array] attr_accessor :mentioned_users # @!attribute own_reactions - # @return [Array] + # @return [Array] attr_accessor :own_reactions # @!attribute restricted_visibility # @return [Array] @@ -84,6 +84,9 @@ class ChatMessageResponse < GetStream::BaseModel # @!attribute deleted_at # @return [DateTime] attr_accessor :deleted_at + # @!attribute deleted_for_me + # @return [Boolean] + attr_accessor :deleted_for_me # @!attribute message_text_updated_at # @return [DateTime] attr_accessor :message_text_updated_at @@ -108,18 +111,48 @@ class ChatMessageResponse < GetStream::BaseModel # @!attribute show_in_channel # @return [Boolean] attr_accessor :show_in_channel + # @!attribute mentioned_group_ids + # @return [Array] + attr_accessor :mentioned_group_ids + # @!attribute mentioned_roles + # @return [Array] + attr_accessor :mentioned_roles + # @!attribute thread_participants + # @return [Array] + attr_accessor :thread_participants + # @!attribute draft + # @return [ChatDraftResponse] + attr_accessor :draft # @!attribute i18n # @return [Hash] attr_accessor :i18n # @!attribute image_labels # @return [Hash>] attr_accessor :image_labels + # @!attribute member + # @return [ChannelMemberResponse] + attr_accessor :member + # @!attribute moderation + # @return [ChatModerationV2Response] + attr_accessor :moderation # @!attribute pinned_by # @return [UserResponse] attr_accessor :pinned_by + # @!attribute poll + # @return [PollResponseData] + attr_accessor :poll # @!attribute quoted_message # @return [ChatMessageResponse] attr_accessor :quoted_message + # @!attribute reaction_groups + # @return [Hash] + attr_accessor :reaction_groups + # @!attribute reminder + # @return [ChatReminderResponseData] + attr_accessor :reminder + # @!attribute shared_location + # @return [ChatSharedLocationResponseData] + attr_accessor :shared_location # Initialize with attributes def initialize(attributes = {}) @@ -149,6 +182,7 @@ def initialize(attributes = {}) @user = attributes[:user] || attributes['user'] @command = attributes[:command] || attributes['command'] || nil @deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil + @deleted_for_me = attributes[:deleted_for_me] || attributes['deleted_for_me'] || nil @message_text_updated_at = attributes[:message_text_updated_at] || attributes['message_text_updated_at'] || nil @mml = attributes[:mml] || attributes['mml'] || nil @parent_id = attributes[:parent_id] || attributes['parent_id'] || nil @@ -157,10 +191,20 @@ def initialize(attributes = {}) @poll_id = attributes[:poll_id] || attributes['poll_id'] || nil @quoted_message_id = attributes[:quoted_message_id] || attributes['quoted_message_id'] || nil @show_in_channel = attributes[:show_in_channel] || attributes['show_in_channel'] || nil + @mentioned_group_ids = attributes[:mentioned_group_ids] || attributes['mentioned_group_ids'] || nil + @mentioned_roles = attributes[:mentioned_roles] || attributes['mentioned_roles'] || nil + @thread_participants = attributes[:thread_participants] || attributes['thread_participants'] || nil + @draft = attributes[:draft] || attributes['draft'] || nil @i18n = attributes[:i18n] || attributes['i18n'] || nil @image_labels = attributes[:image_labels] || attributes['image_labels'] || nil + @member = attributes[:member] || attributes['member'] || nil + @moderation = attributes[:moderation] || attributes['moderation'] || nil @pinned_by = attributes[:pinned_by] || attributes['pinned_by'] || nil + @poll = attributes[:poll] || attributes['poll'] || nil @quoted_message = attributes[:quoted_message] || attributes['quoted_message'] || nil + @reaction_groups = attributes[:reaction_groups] || attributes['reaction_groups'] || nil + @reminder = attributes[:reminder] || attributes['reminder'] || nil + @shared_location = attributes[:shared_location] || attributes['shared_location'] || nil end # Override field mappings for JSON serialization @@ -191,6 +235,7 @@ def self.json_field_mappings user: 'user', command: 'command', deleted_at: 'deleted_at', + deleted_for_me: 'deleted_for_me', message_text_updated_at: 'message_text_updated_at', mml: 'mml', parent_id: 'parent_id', @@ -199,10 +244,20 @@ def self.json_field_mappings poll_id: 'poll_id', quoted_message_id: 'quoted_message_id', show_in_channel: 'show_in_channel', + mentioned_group_ids: 'mentioned_group_ids', + mentioned_roles: 'mentioned_roles', + thread_participants: 'thread_participants', + draft: 'draft', i18n: 'i18n', image_labels: 'image_labels', + member: 'member', + moderation: 'moderation', pinned_by: 'pinned_by', - quoted_message: 'quoted_message' + poll: 'poll', + quoted_message: 'quoted_message', + reaction_groups: 'reaction_groups', + reminder: 'reminder', + shared_location: 'shared_location' } end end diff --git a/lib/getstream_ruby/generated/models/chat_moderation_v2_response.rb b/lib/getstream_ruby/generated/models/chat_moderation_v2_response.rb new file mode 100644 index 0000000..7586bcc --- /dev/null +++ b/lib/getstream_ruby/generated/models/chat_moderation_v2_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 + # + class ChatModerationV2Response < GetStream::BaseModel + + # Model attributes + # @!attribute action + # @return [String] + attr_accessor :action + # @!attribute original_text + # @return [String] + attr_accessor :original_text + # @!attribute blocklist_matched + # @return [String] + attr_accessor :blocklist_matched + # @!attribute platform_circumvented + # @return [Boolean] + attr_accessor :platform_circumvented + # @!attribute semantic_filter_matched + # @return [String] + attr_accessor :semantic_filter_matched + # @!attribute blocklists_matched + # @return [Array] + attr_accessor :blocklists_matched + # @!attribute image_harms + # @return [Array] + attr_accessor :image_harms + # @!attribute text_harms + # @return [Array] + attr_accessor :text_harms + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @action = attributes[:action] || attributes['action'] + @original_text = attributes[:original_text] || attributes['original_text'] + @blocklist_matched = attributes[:blocklist_matched] || attributes['blocklist_matched'] || nil + @platform_circumvented = attributes[:platform_circumvented] || attributes['platform_circumvented'] || nil + @semantic_filter_matched = attributes[:semantic_filter_matched] || attributes['semantic_filter_matched'] || nil + @blocklists_matched = attributes[:blocklists_matched] || attributes['blocklists_matched'] || nil + @image_harms = attributes[:image_harms] || attributes['image_harms'] || nil + @text_harms = attributes[:text_harms] || attributes['text_harms'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + action: 'action', + original_text: 'original_text', + blocklist_matched: 'blocklist_matched', + platform_circumvented: 'platform_circumvented', + semantic_filter_matched: 'semantic_filter_matched', + blocklists_matched: 'blocklists_matched', + image_harms: 'image_harms', + text_harms: 'text_harms' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/chat_reaction_group_response.rb b/lib/getstream_ruby/generated/models/chat_reaction_group_response.rb new file mode 100644 index 0000000..d88d11c --- /dev/null +++ b/lib/getstream_ruby/generated/models/chat_reaction_group_response.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 + # + class ChatReactionGroupResponse < GetStream::BaseModel + + # Model attributes + # @!attribute count + # @return [Integer] + attr_accessor :count + # @!attribute first_reaction_at + # @return [DateTime] + attr_accessor :first_reaction_at + # @!attribute last_reaction_at + # @return [DateTime] + attr_accessor :last_reaction_at + # @!attribute sum_scores + # @return [Integer] + attr_accessor :sum_scores + # @!attribute latest_reactions_by + # @return [Array] + attr_accessor :latest_reactions_by + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @count = attributes[:count] || attributes['count'] + @first_reaction_at = attributes[:first_reaction_at] || attributes['first_reaction_at'] + @last_reaction_at = attributes[:last_reaction_at] || attributes['last_reaction_at'] + @sum_scores = attributes[:sum_scores] || attributes['sum_scores'] + @latest_reactions_by = attributes[:latest_reactions_by] || attributes['latest_reactions_by'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + count: 'count', + first_reaction_at: 'first_reaction_at', + last_reaction_at: 'last_reaction_at', + sum_scores: 'sum_scores', + latest_reactions_by: 'latest_reactions_by' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/chat_reaction_group_user_response.rb b/lib/getstream_ruby/generated/models/chat_reaction_group_user_response.rb new file mode 100644 index 0000000..bab08b9 --- /dev/null +++ b/lib/getstream_ruby/generated/models/chat_reaction_group_user_response.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 ChatReactionGroupUserResponse < GetStream::BaseModel + + # Model attributes + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute user_id + # @return [String] + attr_accessor :user_id + # @!attribute user + # @return [UserResponse] + attr_accessor :user + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @created_at = attributes[:created_at] || attributes['created_at'] + @user_id = attributes[:user_id] || attributes['user_id'] + @user = attributes[:user] || attributes['user'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + created_at: 'created_at', + user_id: 'user_id', + user: 'user' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/chat_reaction_response.rb b/lib/getstream_ruby/generated/models/chat_reaction_response.rb new file mode 100644 index 0000000..4cf2cb4 --- /dev/null +++ b/lib/getstream_ruby/generated/models/chat_reaction_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 + # + class ChatReactionResponse < GetStream::BaseModel + + # Model attributes + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute message_id + # @return [String] + attr_accessor :message_id + # @!attribute score + # @return [Integer] + attr_accessor :score + # @!attribute type + # @return [String] + attr_accessor :type + # @!attribute updated_at + # @return [DateTime] + attr_accessor :updated_at + # @!attribute user_id + # @return [String] + attr_accessor :user_id + # @!attribute custom + # @return [Object] + attr_accessor :custom + # @!attribute user + # @return [UserResponse] + attr_accessor :user + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @created_at = attributes[:created_at] || attributes['created_at'] + @message_id = attributes[:message_id] || attributes['message_id'] + @score = attributes[:score] || attributes['score'] + @type = attributes[:type] || attributes['type'] + @updated_at = attributes[:updated_at] || attributes['updated_at'] + @user_id = attributes[:user_id] || attributes['user_id'] + @custom = attributes[:custom] || attributes['custom'] + @user = attributes[:user] || attributes['user'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + created_at: 'created_at', + message_id: 'message_id', + score: 'score', + type: 'type', + updated_at: 'updated_at', + user_id: 'user_id', + custom: 'custom', + user: 'user' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/chat_reminder_response_data.rb b/lib/getstream_ruby/generated/models/chat_reminder_response_data.rb new file mode 100644 index 0000000..11d88d3 --- /dev/null +++ b/lib/getstream_ruby/generated/models/chat_reminder_response_data.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 + # + class ChatReminderResponseData < GetStream::BaseModel + + # Model attributes + # @!attribute channel_cid + # @return [String] + attr_accessor :channel_cid + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute message_id + # @return [String] + attr_accessor :message_id + # @!attribute updated_at + # @return [DateTime] + attr_accessor :updated_at + # @!attribute user_id + # @return [String] + attr_accessor :user_id + # @!attribute remind_at + # @return [DateTime] + attr_accessor :remind_at + # @!attribute message + # @return [ChatMessageResponse] + attr_accessor :message + # @!attribute user + # @return [UserResponse] + attr_accessor :user + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @channel_cid = attributes[:channel_cid] || attributes['channel_cid'] + @created_at = attributes[:created_at] || attributes['created_at'] + @message_id = attributes[:message_id] || attributes['message_id'] + @updated_at = attributes[:updated_at] || attributes['updated_at'] + @user_id = attributes[:user_id] || attributes['user_id'] + @remind_at = attributes[:remind_at] || attributes['remind_at'] || nil + @message = attributes[:message] || attributes['message'] || nil + @user = attributes[:user] || attributes['user'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + channel_cid: 'channel_cid', + created_at: 'created_at', + message_id: 'message_id', + updated_at: 'updated_at', + user_id: 'user_id', + remind_at: 'remind_at', + message: 'message', + user: 'user' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/chat_shared_location_response_data.rb b/lib/getstream_ruby/generated/models/chat_shared_location_response_data.rb new file mode 100644 index 0000000..b25a560 --- /dev/null +++ b/lib/getstream_ruby/generated/models/chat_shared_location_response_data.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 + # + class ChatSharedLocationResponseData < GetStream::BaseModel + + # Model attributes + # @!attribute channel_cid + # @return [String] + attr_accessor :channel_cid + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute created_by_device_id + # @return [String] + attr_accessor :created_by_device_id + # @!attribute latitude + # @return [Float] + attr_accessor :latitude + # @!attribute longitude + # @return [Float] + attr_accessor :longitude + # @!attribute message_id + # @return [String] + attr_accessor :message_id + # @!attribute updated_at + # @return [DateTime] + attr_accessor :updated_at + # @!attribute user_id + # @return [String] + attr_accessor :user_id + # @!attribute end_at + # @return [DateTime] + attr_accessor :end_at + # @!attribute message + # @return [ChatMessageResponse] + attr_accessor :message + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @channel_cid = attributes[:channel_cid] || attributes['channel_cid'] + @created_at = attributes[:created_at] || attributes['created_at'] + @created_by_device_id = attributes[:created_by_device_id] || attributes['created_by_device_id'] + @latitude = attributes[:latitude] || attributes['latitude'] + @longitude = attributes[:longitude] || attributes['longitude'] + @message_id = attributes[:message_id] || attributes['message_id'] + @updated_at = attributes[:updated_at] || attributes['updated_at'] + @user_id = attributes[:user_id] || attributes['user_id'] + @end_at = attributes[:end_at] || attributes['end_at'] || nil + @message = attributes[:message] || attributes['message'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + channel_cid: 'channel_cid', + created_at: 'created_at', + created_by_device_id: 'created_by_device_id', + latitude: 'latitude', + longitude: 'longitude', + message_id: 'message_id', + updated_at: 'updated_at', + user_id: 'user_id', + end_at: 'end_at', + message: 'message' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/feeds_activity_location.rb b/lib/getstream_ruby/generated/models/feeds_activity_location.rb new file mode 100644 index 0000000..6767d7c --- /dev/null +++ b/lib/getstream_ruby/generated/models/feeds_activity_location.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 FeedsActivityLocation < GetStream::BaseModel + + # Model attributes + # @!attribute lat + # @return [Float] + attr_accessor :lat + # @!attribute lng + # @return [Float] + attr_accessor :lng + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @lat = attributes[:lat] || attributes['lat'] + @lng = attributes[:lng] || attributes['lng'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + lat: 'lat', + lng: 'lng' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/feeds_bookmark_response.rb b/lib/getstream_ruby/generated/models/feeds_bookmark_response.rb new file mode 100644 index 0000000..a759735 --- /dev/null +++ b/lib/getstream_ruby/generated/models/feeds_bookmark_response.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 FeedsBookmarkResponse < GetStream::BaseModel + + # Model attributes + # @!attribute _object_id + # @return [String] + attr_accessor :_object_id + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute object_type + # @return [String] + attr_accessor :object_type + # @!attribute updated_at + # @return [DateTime] + attr_accessor :updated_at + # @!attribute user + # @return [UserResponse] + attr_accessor :user + # @!attribute activity_id + # @return [String] + attr_accessor :activity_id + # @!attribute custom + # @return [Object] + attr_accessor :custom + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @_object_id = attributes[:_object_id] || attributes['object_id'] + @created_at = attributes[:created_at] || attributes['created_at'] + @object_type = attributes[:object_type] || attributes['object_type'] + @updated_at = attributes[:updated_at] || attributes['updated_at'] + @user = attributes[:user] || attributes['user'] + @activity_id = attributes[:activity_id] || attributes['activity_id'] || nil + @custom = attributes[:custom] || attributes['custom'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + _object_id: 'object_id', + created_at: 'created_at', + object_type: 'object_type', + updated_at: 'updated_at', + user: 'user', + activity_id: 'activity_id', + custom: 'custom' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/feeds_enriched_collection_response.rb b/lib/getstream_ruby/generated/models/feeds_enriched_collection_response.rb new file mode 100644 index 0000000..2680850 --- /dev/null +++ b/lib/getstream_ruby/generated/models/feeds_enriched_collection_response.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 FeedsEnrichedCollectionResponse < GetStream::BaseModel + + # Model attributes + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute id + # @return [String] + attr_accessor :id + # @!attribute name + # @return [String] + attr_accessor :name + # @!attribute status + # @return [String] + attr_accessor :status + # @!attribute updated_at + # @return [DateTime] + attr_accessor :updated_at + # @!attribute user_id + # @return [String] + attr_accessor :user_id + # @!attribute custom + # @return [Object] + attr_accessor :custom + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @created_at = attributes[:created_at] || attributes['created_at'] + @id = attributes[:id] || attributes['id'] + @name = attributes[:name] || attributes['name'] + @status = attributes[:status] || attributes['status'] + @updated_at = attributes[:updated_at] || attributes['updated_at'] + @user_id = attributes[:user_id] || attributes['user_id'] + @custom = attributes[:custom] || attributes['custom'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + created_at: 'created_at', + id: 'id', + name: 'name', + status: 'status', + updated_at: 'updated_at', + user_id: 'user_id', + custom: 'custom' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/feeds_feed_response.rb b/lib/getstream_ruby/generated/models/feeds_feed_response.rb new file mode 100644 index 0000000..411e31d --- /dev/null +++ b/lib/getstream_ruby/generated/models/feeds_feed_response.rb @@ -0,0 +1,116 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class FeedsFeedResponse < GetStream::BaseModel + + # Model attributes + # @!attribute activity_count + # @return [Integer] + attr_accessor :activity_count + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute description + # @return [String] + attr_accessor :description + # @!attribute feed + # @return [String] + attr_accessor :feed + # @!attribute follower_count + # @return [Integer] + attr_accessor :follower_count + # @!attribute following_count + # @return [Integer] + attr_accessor :following_count + # @!attribute group_id + # @return [String] + attr_accessor :group_id + # @!attribute id + # @return [String] + attr_accessor :id + # @!attribute member_count + # @return [Integer] + attr_accessor :member_count + # @!attribute name + # @return [String] + attr_accessor :name + # @!attribute pin_count + # @return [Integer] + attr_accessor :pin_count + # @!attribute updated_at + # @return [DateTime] + attr_accessor :updated_at + # @!attribute created_by + # @return [UserResponse] + attr_accessor :created_by + # @!attribute deleted_at + # @return [DateTime] + attr_accessor :deleted_at + # @!attribute visibility + # @return [String] + attr_accessor :visibility + # @!attribute filter_tags + # @return [Array] + attr_accessor :filter_tags + # @!attribute custom + # @return [Object] + attr_accessor :custom + # @!attribute location + # @return [FeedsActivityLocation] + attr_accessor :location + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @activity_count = attributes[:activity_count] || attributes['activity_count'] + @created_at = attributes[:created_at] || attributes['created_at'] + @description = attributes[:description] || attributes['description'] + @feed = attributes[:feed] || attributes['feed'] + @follower_count = attributes[:follower_count] || attributes['follower_count'] + @following_count = attributes[:following_count] || attributes['following_count'] + @group_id = attributes[:group_id] || attributes['group_id'] + @id = attributes[:id] || attributes['id'] + @member_count = attributes[:member_count] || attributes['member_count'] + @name = attributes[:name] || attributes['name'] + @pin_count = attributes[:pin_count] || attributes['pin_count'] + @updated_at = attributes[:updated_at] || attributes['updated_at'] + @created_by = attributes[:created_by] || attributes['created_by'] + @deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil + @visibility = attributes[:visibility] || attributes['visibility'] || nil + @filter_tags = attributes[:filter_tags] || attributes['filter_tags'] || nil + @custom = attributes[:custom] || attributes['custom'] || nil + @location = attributes[:location] || attributes['location'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + activity_count: 'activity_count', + created_at: 'created_at', + description: 'description', + feed: 'feed', + follower_count: 'follower_count', + following_count: 'following_count', + group_id: 'group_id', + id: 'id', + member_count: 'member_count', + name: 'name', + pin_count: 'pin_count', + updated_at: 'updated_at', + created_by: 'created_by', + deleted_at: 'deleted_at', + visibility: 'visibility', + filter_tags: 'filter_tags', + custom: 'custom', + location: 'location' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/feeds_notification_comment.rb b/lib/getstream_ruby/generated/models/feeds_notification_comment.rb new file mode 100644 index 0000000..1fba76b --- /dev/null +++ b/lib/getstream_ruby/generated/models/feeds_notification_comment.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 FeedsNotificationComment < GetStream::BaseModel + + # Model attributes + # @!attribute comment + # @return [String] + attr_accessor :comment + # @!attribute id + # @return [String] + attr_accessor :id + # @!attribute user_id + # @return [String] + attr_accessor :user_id + # @!attribute attachments + # @return [Array] + attr_accessor :attachments + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @comment = attributes[:comment] || attributes['comment'] + @id = attributes[:id] || attributes['id'] + @user_id = attributes[:user_id] || attributes['user_id'] + @attachments = attributes[:attachments] || attributes['attachments'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + comment: 'comment', + id: 'id', + user_id: 'user_id', + attachments: 'attachments' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/feeds_notification_context.rb b/lib/getstream_ruby/generated/models/feeds_notification_context.rb new file mode 100644 index 0000000..81f0fbd --- /dev/null +++ b/lib/getstream_ruby/generated/models/feeds_notification_context.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 FeedsNotificationContext < GetStream::BaseModel + + # Model attributes + # @!attribute target + # @return [FeedsNotificationTarget] + attr_accessor :target + # @!attribute trigger + # @return [FeedsNotificationTrigger] + attr_accessor :trigger + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @target = attributes[:target] || attributes['target'] || nil + @trigger = attributes[:trigger] || attributes['trigger'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + target: 'target', + trigger: 'trigger' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/feeds_notification_parent_activity.rb b/lib/getstream_ruby/generated/models/feeds_notification_parent_activity.rb new file mode 100644 index 0000000..e52e1e9 --- /dev/null +++ b/lib/getstream_ruby/generated/models/feeds_notification_parent_activity.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 + # + class FeedsNotificationParentActivity < GetStream::BaseModel + + # Model attributes + # @!attribute id + # @return [String] + attr_accessor :id + # @!attribute text + # @return [String] + attr_accessor :text + # @!attribute type + # @return [String] + attr_accessor :type + # @!attribute user_id + # @return [String] + attr_accessor :user_id + # @!attribute attachments + # @return [Array] + attr_accessor :attachments + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @id = attributes[:id] || attributes['id'] + @text = attributes[:text] || attributes['text'] || nil + @type = attributes[:type] || attributes['type'] || nil + @user_id = attributes[:user_id] || attributes['user_id'] || nil + @attachments = attributes[:attachments] || attributes['attachments'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + id: 'id', + text: 'text', + type: 'type', + user_id: 'user_id', + attachments: 'attachments' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/feeds_notification_target.rb b/lib/getstream_ruby/generated/models/feeds_notification_target.rb new file mode 100644 index 0000000..2f17da2 --- /dev/null +++ b/lib/getstream_ruby/generated/models/feeds_notification_target.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 + # + class FeedsNotificationTarget < GetStream::BaseModel + + # Model attributes + # @!attribute id + # @return [String] + attr_accessor :id + # @!attribute name + # @return [String] + attr_accessor :name + # @!attribute text + # @return [String] + attr_accessor :text + # @!attribute type + # @return [String] + attr_accessor :type + # @!attribute user_id + # @return [String] + attr_accessor :user_id + # @!attribute attachments + # @return [Array] + attr_accessor :attachments + # @!attribute comment + # @return [FeedsNotificationComment] + attr_accessor :comment + # @!attribute custom + # @return [Object] + attr_accessor :custom + # @!attribute parent_activity + # @return [FeedsNotificationParentActivity] + attr_accessor :parent_activity + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @id = attributes[:id] || attributes['id'] + @name = attributes[:name] || attributes['name'] || nil + @text = attributes[:text] || attributes['text'] || nil + @type = attributes[:type] || attributes['type'] || nil + @user_id = attributes[:user_id] || attributes['user_id'] || nil + @attachments = attributes[:attachments] || attributes['attachments'] || nil + @comment = attributes[:comment] || attributes['comment'] || nil + @custom = attributes[:custom] || attributes['custom'] || nil + @parent_activity = attributes[:parent_activity] || attributes['parent_activity'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + id: 'id', + name: 'name', + text: 'text', + type: 'type', + user_id: 'user_id', + attachments: 'attachments', + comment: 'comment', + custom: 'custom', + parent_activity: 'parent_activity' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/feeds_notification_trigger.rb b/lib/getstream_ruby/generated/models/feeds_notification_trigger.rb new file mode 100644 index 0000000..0185540 --- /dev/null +++ b/lib/getstream_ruby/generated/models/feeds_notification_trigger.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 FeedsNotificationTrigger < GetStream::BaseModel + + # Model attributes + # @!attribute text + # @return [String] + attr_accessor :text + # @!attribute type + # @return [String] + attr_accessor :type + # @!attribute comment + # @return [FeedsNotificationComment] + attr_accessor :comment + # @!attribute custom + # @return [Object] + attr_accessor :custom + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @text = attributes[:text] || attributes['text'] + @type = attributes[:type] || attributes['type'] + @comment = attributes[:comment] || attributes['comment'] || nil + @custom = attributes[:custom] || attributes['custom'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + text: 'text', + type: 'type', + comment: 'comment', + custom: 'custom' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/feeds_reaction_group_response.rb b/lib/getstream_ruby/generated/models/feeds_reaction_group_response.rb index 2dd5c7c..e8d8fef 100644 --- a/lib/getstream_ruby/generated/models/feeds_reaction_group_response.rb +++ b/lib/getstream_ruby/generated/models/feeds_reaction_group_response.rb @@ -10,13 +10,13 @@ class FeedsReactionGroupResponse < GetStream::BaseModel # Model attributes # @!attribute count - # @return [Integer] Number of reactions in this group + # @return [Integer] attr_accessor :count # @!attribute first_reaction_at - # @return [DateTime] Time of the first reaction + # @return [DateTime] attr_accessor :first_reaction_at # @!attribute last_reaction_at - # @return [DateTime] Time of the most recent reaction + # @return [DateTime] attr_accessor :last_reaction_at # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/feeds_reaction_response.rb b/lib/getstream_ruby/generated/models/feeds_reaction_response.rb index cceafb3..8d27964 100644 --- a/lib/getstream_ruby/generated/models/feeds_reaction_response.rb +++ b/lib/getstream_ruby/generated/models/feeds_reaction_response.rb @@ -10,25 +10,25 @@ class FeedsReactionResponse < GetStream::BaseModel # Model attributes # @!attribute activity_id - # @return [String] ID of the activity that was reacted to + # @return [String] attr_accessor :activity_id # @!attribute created_at - # @return [DateTime] When the reaction was created + # @return [DateTime] attr_accessor :created_at # @!attribute type - # @return [String] Type of reaction + # @return [String] attr_accessor :type # @!attribute updated_at - # @return [DateTime] When the reaction was last updated + # @return [DateTime] attr_accessor :updated_at # @!attribute user # @return [UserResponse] attr_accessor :user # @!attribute comment_id - # @return [String] ID of the comment that was reacted to + # @return [String] attr_accessor :comment_id # @!attribute custom - # @return [Object] Custom data for the reaction + # @return [Object] attr_accessor :custom # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb b/lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb index 3fccc79..948b1ca 100644 --- a/lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb +++ b/lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb @@ -67,25 +67,25 @@ class FeedsV3ActivityResponse < GetStream::BaseModel # @return [Array] attr_accessor :interest_tags # @!attribute latest_reactions - # @return [Array] + # @return [Array] attr_accessor :latest_reactions # @!attribute mentioned_users # @return [Array] attr_accessor :mentioned_users # @!attribute own_bookmarks - # @return [Array] + # @return [Array] attr_accessor :own_bookmarks # @!attribute own_reactions - # @return [Array] + # @return [Array] attr_accessor :own_reactions # @!attribute collections - # @return [Hash] + # @return [Hash] attr_accessor :collections # @!attribute custom # @return [Object] attr_accessor :custom # @!attribute reaction_groups - # @return [Hash] + # @return [Hash] attr_accessor :reaction_groups # @!attribute search_data # @return [Object] @@ -102,21 +102,57 @@ class FeedsV3ActivityResponse < GetStream::BaseModel # @!attribute expires_at # @return [DateTime] attr_accessor :expires_at + # @!attribute friend_reaction_count + # @return [Integer] + attr_accessor :friend_reaction_count + # @!attribute is_read + # @return [Boolean] + attr_accessor :is_read + # @!attribute is_seen + # @return [Boolean] + attr_accessor :is_seen + # @!attribute is_watched + # @return [Boolean] + attr_accessor :is_watched # @!attribute moderation_action # @return [String] attr_accessor :moderation_action + # @!attribute selector_source + # @return [String] + attr_accessor :selector_source # @!attribute text # @return [String] attr_accessor :text # @!attribute visibility_tag # @return [String] attr_accessor :visibility_tag + # @!attribute friend_reactions + # @return [Array] + attr_accessor :friend_reactions + # @!attribute current_feed + # @return [FeedsFeedResponse] + attr_accessor :current_feed + # @!attribute location + # @return [FeedsActivityLocation] + attr_accessor :location # @!attribute metrics # @return [Hash] attr_accessor :metrics # @!attribute moderation # @return [ModerationV2Response] attr_accessor :moderation + # @!attribute notification_context + # @return [FeedsNotificationContext] + attr_accessor :notification_context + # @!attribute parent + # @return [FeedsV3ActivityResponse] + attr_accessor :parent + # @!attribute poll + # @return [PollResponseData] + attr_accessor :poll + # @!attribute score_vars + # @return [Object] + attr_accessor :score_vars # Initialize with attributes def initialize(attributes = {}) @@ -152,11 +188,23 @@ def initialize(attributes = {}) @deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil @edited_at = attributes[:edited_at] || attributes['edited_at'] || nil @expires_at = attributes[:expires_at] || attributes['expires_at'] || nil + @friend_reaction_count = attributes[:friend_reaction_count] || attributes['friend_reaction_count'] || nil + @is_read = attributes[:is_read] || attributes['is_read'] || nil + @is_seen = attributes[:is_seen] || attributes['is_seen'] || 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 + @friend_reactions = attributes[:friend_reactions] || attributes['friend_reactions'] || nil + @current_feed = attributes[:current_feed] || attributes['current_feed'] || nil + @location = attributes[:location] || attributes['location'] || nil @metrics = attributes[:metrics] || attributes['metrics'] || nil @moderation = attributes[:moderation] || attributes['moderation'] || nil + @notification_context = attributes[:notification_context] || attributes['notification_context'] || nil + @parent = attributes[:parent] || attributes['parent'] || nil + @poll = attributes[:poll] || attributes['poll'] || nil + @score_vars = attributes[:score_vars] || attributes['score_vars'] || nil end # Override field mappings for JSON serialization @@ -193,11 +241,23 @@ def self.json_field_mappings deleted_at: 'deleted_at', edited_at: 'edited_at', expires_at: 'expires_at', + friend_reaction_count: 'friend_reaction_count', + is_read: 'is_read', + is_seen: 'is_seen', + is_watched: 'is_watched', moderation_action: 'moderation_action', + selector_source: 'selector_source', text: 'text', visibility_tag: 'visibility_tag', + friend_reactions: 'friend_reactions', + current_feed: 'current_feed', + location: 'location', metrics: 'metrics', - moderation: 'moderation' + moderation: 'moderation', + notification_context: 'notification_context', + parent: 'parent', + poll: 'poll', + score_vars: 'score_vars' } end end diff --git a/lib/getstream_ruby/generated/models/feeds_v3_comment_response.rb b/lib/getstream_ruby/generated/models/feeds_v3_comment_response.rb index 30d0937..830d04e 100644 --- a/lib/getstream_ruby/generated/models/feeds_v3_comment_response.rb +++ b/lib/getstream_ruby/generated/models/feeds_v3_comment_response.rb @@ -12,6 +12,9 @@ class FeedsV3CommentResponse < GetStream::BaseModel # @!attribute _object_id # @return [String] attr_accessor :_object_id + # @!attribute bookmark_count + # @return [Integer] + attr_accessor :bookmark_count # @!attribute confidence_score # @return [Float] attr_accessor :confidence_score @@ -49,7 +52,7 @@ class FeedsV3CommentResponse < GetStream::BaseModel # @return [Array] attr_accessor :mentioned_users # @!attribute own_reactions - # @return [Array] + # @return [Array] attr_accessor :own_reactions # @!attribute user # @return [UserResponse] @@ -72,17 +75,24 @@ class FeedsV3CommentResponse < GetStream::BaseModel # @!attribute attachments # @return [Array] attr_accessor :attachments + # @!attribute latest_reactions + # @return [Array] + attr_accessor :latest_reactions # @!attribute custom # @return [Object] attr_accessor :custom # @!attribute moderation # @return [ModerationV2Response] attr_accessor :moderation + # @!attribute reaction_groups + # @return [Hash] + attr_accessor :reaction_groups # Initialize with attributes def initialize(attributes = {}) super(attributes) @_object_id = attributes[:_object_id] || attributes['object_id'] + @bookmark_count = attributes[:bookmark_count] || attributes['bookmark_count'] @confidence_score = attributes[:confidence_score] || attributes['confidence_score'] @created_at = attributes[:created_at] || attributes['created_at'] @downvote_count = attributes[:downvote_count] || attributes['downvote_count'] @@ -103,14 +113,17 @@ def initialize(attributes = {}) @parent_id = attributes[:parent_id] || attributes['parent_id'] || nil @text = attributes[:text] || attributes['text'] || nil @attachments = attributes[:attachments] || attributes['attachments'] || nil + @latest_reactions = attributes[:latest_reactions] || attributes['latest_reactions'] || nil @custom = attributes[:custom] || attributes['custom'] || nil @moderation = attributes[:moderation] || attributes['moderation'] || nil + @reaction_groups = attributes[:reaction_groups] || attributes['reaction_groups'] || nil end # Override field mappings for JSON serialization def self.json_field_mappings { _object_id: 'object_id', + bookmark_count: 'bookmark_count', confidence_score: 'confidence_score', created_at: 'created_at', downvote_count: 'downvote_count', @@ -131,8 +144,10 @@ def self.json_field_mappings parent_id: 'parent_id', text: 'text', attachments: 'attachments', + latest_reactions: 'latest_reactions', custom: 'custom', - moderation: 'moderation' + moderation: 'moderation', + reaction_groups: 'reaction_groups' } end end diff --git a/lib/getstream_ruby/generated/models/submit_moderation_feedback_request.rb b/lib/getstream_ruby/generated/models/submit_moderation_feedback_request.rb new file mode 100644 index 0000000..05b40b7 --- /dev/null +++ b/lib/getstream_ruby/generated/models/submit_moderation_feedback_request.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 + # + class SubmitModerationFeedbackRequest < GetStream::BaseModel + + # Model attributes + # @!attribute message + # @return [String] The moderated content the moderator is providing feedback on + attr_accessor :message + # @!attribute published_at + # @return [String] Original publication time of the moderated content (RFC3339) + attr_accessor :published_at + # @!attribute reference + # @return [String] Provider-side reference identifying the moderated content + attr_accessor :reference + # @!attribute channel_id + # @return [String] Optional moderation channel UUID for context + attr_accessor :channel_id + # @!attribute current_recommended_action + # @return [String] Action originally produced by the moderation system + attr_accessor :current_recommended_action + # @!attribute description + # @return [String] Optional free-form note explaining why the classification was wrong + attr_accessor :description + # @!attribute expected_recommended_action + # @return [String] Optional moderator-supplied action + attr_accessor :expected_recommended_action + # @!attribute current_labels + # @return [Array] Classifications originally produced by the moderation system + attr_accessor :current_labels + # @!attribute expected_labels + # @return [Array] Optional moderator-supplied classifications (up to 16 entries) + attr_accessor :expected_labels + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @message = attributes[:message] || attributes['message'] + @published_at = attributes[:published_at] || attributes['published_at'] + @reference = attributes[:reference] || attributes['reference'] + @channel_id = attributes[:channel_id] || attributes['channel_id'] || nil + @current_recommended_action = attributes[:current_recommended_action] || attributes['current_recommended_action'] || nil + @description = attributes[:description] || attributes['description'] || nil + @expected_recommended_action = attributes[:expected_recommended_action] || attributes['expected_recommended_action'] || nil + @current_labels = attributes[:current_labels] || attributes['current_labels'] || nil + @expected_labels = attributes[:expected_labels] || attributes['expected_labels'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + message: 'message', + published_at: 'published_at', + reference: 'reference', + channel_id: 'channel_id', + current_recommended_action: 'current_recommended_action', + description: 'description', + expected_recommended_action: 'expected_recommended_action', + current_labels: 'current_labels', + expected_labels: 'expected_labels' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/submit_moderation_feedback_response.rb b/lib/getstream_ruby/generated/models/submit_moderation_feedback_response.rb new file mode 100644 index 0000000..5e02610 --- /dev/null +++ b/lib/getstream_ruby/generated/models/submit_moderation_feedback_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 SubmitModerationFeedbackResponse < GetStream::BaseModel + + # Model attributes + # @!attribute duration + # @return [String] + 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/update_app_request.rb b/lib/getstream_ruby/generated/models/update_app_request.rb index 20b0854..401341c 100644 --- a/lib/getstream_ruby/generated/models/update_app_request.rb +++ b/lib/getstream_ruby/generated/models/update_app_request.rb @@ -33,6 +33,9 @@ class UpdateAppRequest < GetStream::BaseModel # @!attribute disable_permissions_checks # @return [Boolean] attr_accessor :disable_permissions_checks + # @!attribute enable_hook_payload_compression + # @return [Boolean] + attr_accessor :enable_hook_payload_compression # @!attribute enforce_unique_usernames # @return [String] attr_accessor :enforce_unique_usernames @@ -171,6 +174,7 @@ def initialize(attributes = {}) @custom_action_handler_url = attributes[:custom_action_handler_url] || attributes['custom_action_handler_url'] || nil @disable_auth_checks = attributes[:disable_auth_checks] || attributes['disable_auth_checks'] || nil @disable_permissions_checks = attributes[:disable_permissions_checks] || attributes['disable_permissions_checks'] || nil + @enable_hook_payload_compression = attributes[:enable_hook_payload_compression] || attributes['enable_hook_payload_compression'] || nil @enforce_unique_usernames = attributes[:enforce_unique_usernames] || attributes['enforce_unique_usernames'] || nil @feeds_moderation_enabled = attributes[:feeds_moderation_enabled] || attributes['feeds_moderation_enabled'] || nil @feeds_v2_region = attributes[:feeds_v2_region] || attributes['feeds_v2_region'] || nil @@ -226,6 +230,7 @@ def self.json_field_mappings custom_action_handler_url: 'custom_action_handler_url', disable_auth_checks: 'disable_auth_checks', disable_permissions_checks: 'disable_permissions_checks', + enable_hook_payload_compression: 'enable_hook_payload_compression', enforce_unique_usernames: 'enforce_unique_usernames', feeds_moderation_enabled: 'feeds_moderation_enabled', feeds_v2_region: 'feeds_v2_region', diff --git a/lib/getstream_ruby/generated/models/upsert_activities_request.rb b/lib/getstream_ruby/generated/models/upsert_activities_request.rb index e768eee..bbe6168 100644 --- a/lib/getstream_ruby/generated/models/upsert_activities_request.rb +++ b/lib/getstream_ruby/generated/models/upsert_activities_request.rb @@ -12,6 +12,9 @@ class UpsertActivitiesRequest < GetStream::BaseModel # @!attribute activities # @return [Array] List of activities to create or update attr_accessor :activities + # @!attribute create_users + # @return [Boolean] Server-side only. If true, auto-creates users referenced by activity user_id values that don't already exist. Default: false. + attr_accessor :create_users # @!attribute enrich_own_fields # @return [Boolean] If true, enriches the activities' current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance. attr_accessor :enrich_own_fields @@ -23,6 +26,7 @@ class UpsertActivitiesRequest < GetStream::BaseModel def initialize(attributes = {}) super(attributes) @activities = attributes[:activities] || attributes['activities'] + @create_users = attributes[:create_users] || attributes['create_users'] || nil @enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil @force_moderation = attributes[:force_moderation] || attributes['force_moderation'] || nil end @@ -31,6 +35,7 @@ def initialize(attributes = {}) def self.json_field_mappings { activities: 'activities', + create_users: 'create_users', enrich_own_fields: 'enrich_own_fields', force_moderation: 'force_moderation' } diff --git a/lib/getstream_ruby/generated/moderation_client.rb b/lib/getstream_ruby/generated/moderation_client.rb index 02e99f4..d202486 100644 --- a/lib/getstream_ruby/generated/moderation_client.rb +++ b/lib/getstream_ruby/generated/moderation_client.rb @@ -634,6 +634,23 @@ def submit_action(submit_action_request) ) end + # Forward a moderator-supplied correction to the moderation feedback pipeline. Server-side only. + # + # @param submit_moderation_feedback_request [SubmitModerationFeedbackRequest] + # @return [Models::SubmitModerationFeedbackResponse] + def submit_moderation_feedback(submit_moderation_feedback_request) + path = '/api/v2/moderation/submit_moderation_feedback' + # Build request body + body = submit_moderation_feedback_request + + # Make the API request + @client.make_request( + :post, + path, + body: body + ) + end + # Unban a user from a channel or globally. # # @param unban_request [UnbanRequest]