Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/getstream_ruby/generated/models/add_activity_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
5 changes: 5 additions & 0 deletions lib/getstream_ruby/generated/models/add_reaction_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def initialize(attributes = {})
@started_at = attributes[:started_at] || attributes['started_at']
@task_id = attributes[:task_id] || attributes['task_id']
@custom = attributes[:custom] || attributes['custom']
@type = attributes[:type] || attributes['type'] || "export.bulk_image_moderation.error"
@type = attributes[:type] || attributes['type'] || "export.users.error"
@received_at = attributes[:received_at] || attributes['received_at'] || nil
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
91 changes: 91 additions & 0 deletions lib/getstream_ruby/generated/models/chat_draft_payload_response.rb
Original file line number Diff line number Diff line change
@@ -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<Attachment>]
attr_accessor :attachments
# @!attribute mentioned_users
# @return [Array<UserResponse>]
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
56 changes: 56 additions & 0 deletions lib/getstream_ruby/generated/models/chat_draft_response.rb
Original file line number Diff line number Diff line change
@@ -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
63 changes: 59 additions & 4 deletions lib/getstream_ruby/generated/models/chat_message_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ class ChatMessageResponse < GetStream::BaseModel
# @return [DateTime]
attr_accessor :updated_at
# @!attribute attachments
# @return [Array]
# @return [Array<Attachment>]
attr_accessor :attachments
# @!attribute latest_reactions
# @return [Array]
# @return [Array<ChatReactionResponse>]
attr_accessor :latest_reactions
# @!attribute mentioned_users
# @return [Array<UserResponse>]
attr_accessor :mentioned_users
# @!attribute own_reactions
# @return [Array]
# @return [Array<ChatReactionResponse>]
attr_accessor :own_reactions
# @!attribute restricted_visibility
# @return [Array<String>]
Expand All @@ -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
Expand All @@ -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<String>]
attr_accessor :mentioned_group_ids
# @!attribute mentioned_roles
# @return [Array<String>]
attr_accessor :mentioned_roles
# @!attribute thread_participants
# @return [Array<UserResponse>]
attr_accessor :thread_participants
# @!attribute draft
# @return [ChatDraftResponse]
attr_accessor :draft
# @!attribute i18n
# @return [Hash<String, String>]
attr_accessor :i18n
# @!attribute image_labels
# @return [Hash<String, Array<String>>]
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<String, ChatReactionGroupResponse>]
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 = {})
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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',
Expand All @@ -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
Expand Down
Loading
Loading