diff --git a/lib/getstream_ruby/generated/chat_client.rb b/lib/getstream_ruby/generated/chat_client.rb index bc534c8..9db0b4d 100644 --- a/lib/getstream_ruby/generated/chat_client.rb +++ b/lib/getstream_ruby/generated/chat_client.rb @@ -297,7 +297,7 @@ def delete_channel(_type, _id, hard_delete = nil) ) end - # Returns a channel by its CID without creating it. Responds with 404 when the channel does not exist, so it doubles as an existence check. Pass state=true to also load messages, read state and watchers. + # Returns a channel by its CID without creating it. Responds with 404 when the channel does not exist, so it doubles as an existence check. Pass state=true to also load messages, read state and watchers, and the messages_id_* parameters to page those messages by message ID. # # @param _type [String] # @param _id [String] @@ -305,8 +305,14 @@ def delete_channel(_type, _id, hard_delete = nil) # @param messages_limit [Integer] # @param members_limit [Integer] # @param watchers_limit [Integer] + # @param messages_id_lt [String] + # @param messages_id_lte [String] + # @param messages_id_gt [String] + # @param messages_id_gte [String] + # @param messages_id_around [String] + # @param user_id [String] # @return [Models::ChannelStateResponse] - def get_channel(_type, _id, state = nil, messages_limit = nil, members_limit = nil, watchers_limit = nil) + def get_channel(_type, _id, state = nil, messages_limit = nil, members_limit = nil, watchers_limit = nil, messages_id_lt = nil, messages_id_lte = nil, messages_id_gt = nil, messages_id_gte = nil, messages_id_around = nil, user_id = nil) path = '/api/v2/chat/channels/{type}/{id}' # Replace path parameters path = path.gsub('{type}', _type.to_s) @@ -317,6 +323,12 @@ def get_channel(_type, _id, state = nil, messages_limit = nil, members_limit = n query_params['messages_limit'] = messages_limit unless messages_limit.nil? query_params['members_limit'] = members_limit unless members_limit.nil? query_params['watchers_limit'] = watchers_limit unless watchers_limit.nil? + query_params['messages_id_lt'] = messages_id_lt unless messages_id_lt.nil? + query_params['messages_id_lte'] = messages_id_lte unless messages_id_lte.nil? + query_params['messages_id_gt'] = messages_id_gt unless messages_id_gt.nil? + query_params['messages_id_gte'] = messages_id_gte unless messages_id_gte.nil? + query_params['messages_id_around'] = messages_id_around unless messages_id_around.nil? + query_params['user_id'] = user_id unless user_id.nil? # Make the API request @client.make_request( @@ -581,7 +593,7 @@ def update_member_partial(_type, _id, update_member_partial_request, user_id = n ) end - # Sends new message to the specified channelSends events:- message.new- message.updated + # Sends new message to the specified channelSends events:- channel.visible- message.new- message.updated # # @param _type [String] # @param _id [String] @@ -608,8 +620,9 @@ def send_message(_type, _id, send_message_request) # @param _type [String] # @param _id [String] # @param ids [Array] + # @param member_custom_include [Array] # @return [Models::GetManyMessagesResponse] - def get_many_messages(_type, _id, ids) + def get_many_messages(_type, _id, ids, member_custom_include = nil) path = '/api/v2/chat/channels/{type}/{id}/messages' # Replace path parameters path = path.gsub('{type}', _type.to_s) @@ -617,6 +630,7 @@ def get_many_messages(_type, _id, ids) # Build query parameters query_params = {} query_params['ids'] = ids unless ids.nil? + query_params['member_custom_include'] = member_custom_include unless member_custom_include.nil? # Make the API request @client.make_request( @@ -917,7 +931,7 @@ def query_drafts(query_drafts_request) ) end - # Exports channel data to JSON file + # Exports channel data to a JSON or CSV file (CSV requires version=v2) # # @param export_channels_request [ExportChannelsRequest] # @return [Models::ExportChannelsResponse] @@ -1359,8 +1373,9 @@ def create_reminder(message_id, create_reminder_request) # @param id_lt [String] # @param id_around [String] # @param sort [Array] + # @param member_custom_include [Array] # @return [Models::GetRepliesResponse] - def get_replies(parent_id, limit = nil, id_gte = nil, id_gt = nil, id_lte = nil, id_lt = nil, id_around = nil, sort = nil) + def get_replies(parent_id, limit = nil, id_gte = nil, id_gt = nil, id_lte = nil, id_lt = nil, id_around = nil, sort = nil, member_custom_include = nil) path = '/api/v2/chat/messages/{parent_id}/replies' # Replace path parameters path = path.gsub('{parent_id}', parent_id.to_s) @@ -1373,6 +1388,7 @@ def get_replies(parent_id, limit = nil, id_gte = nil, id_gt = nil, id_lte = nil, query_params['id_lt'] = id_lt unless id_lt.nil? query_params['id_around'] = id_around unless id_around.nil? query_params['sort'] = sort unless sort.nil? + query_params['member_custom_include'] = member_custom_include unless member_custom_include.nil? # Make the API request @client.make_request( diff --git a/lib/getstream_ruby/generated/common_client.rb b/lib/getstream_ruby/generated/common_client.rb index bd7da47..da5d948 100644 --- a/lib/getstream_ruby/generated/common_client.rb +++ b/lib/getstream_ruby/generated/common_client.rb @@ -45,12 +45,16 @@ def update_app(update_app_request) # Returns all available block lists # # @param team [String] + # @param cursor [String] + # @param limit [Integer] # @return [Models::ListBlockListResponse] - def list_block_lists(team = nil) + def list_block_lists(team = nil, cursor = nil, limit = nil) path = '/api/v2/blocklists' # Build query parameters query_params = {} query_params['team'] = team unless team.nil? + query_params['cursor'] = cursor unless cursor.nil? + query_params['limit'] = limit unless limit.nil? # Make the API request @client.make_request( @@ -77,18 +81,40 @@ def create_block_list(create_block_list_request) ) end + # Enqueues an asynchronous bulk import of items into an existing blocklist.Returns a task ID that can be polled via GET /tasks/{id} to observe progress.AddItems is idempotent: items already present are skipped without error.For lists exceeding the HTTP request-body cap, issue repeated import calls eachcarrying a bounded slice of items — the task result accumulates correctly. + # + # @param _id [String] + # @param import_block_list_request [ImportBlockListRequest] + # @return [Models::ImportBlockListResponse] + def import_block_list(_id, import_block_list_request) + path = '/api/v2/blocklists/{id}/import' + # Replace path parameters + path = path.gsub('{id}', _id.to_s) + # Build request body + body = import_block_list_request + + # Make the API request + @client.make_request( + :post, + path, + body: body + ) + end + # Deletes previously created application blocklist # # @param name [String] # @param team [String] + # @param user_id [String] # @return [Models::Response] - def delete_block_list(name, team = nil) + def delete_block_list(name, team = nil, user_id = nil) path = '/api/v2/blocklists/{name}' # Replace path parameters path = path.gsub('{name}', name.to_s) # Build query parameters query_params = {} query_params['team'] = team unless team.nil? + query_params['user_id'] = user_id unless user_id.nil? # Make the API request @client.make_request( @@ -469,7 +495,7 @@ def get_importer_external_storage() ) end - # Creates or updates the external storage configuration for the app. Currently only AWS S3 (via cross-account IAM role assumption) is supported. + # Creates or updates the external storage configuration for the app. Supports AWS S3 (via cross-account IAM role assumption) and GCS (via service-account JSON credentials). # # @param upsert_external_storage_request [UpsertExternalStorageRequest] # @return [Models::UpsertExternalStorageResponse] @@ -486,7 +512,7 @@ def upsert_importer_external_storage(upsert_external_storage_request) ) end - # Validates the configured external S3 storage by performing a live STS AssumeRole and S3 ListObjectsV2 check. + # Validates the configured external storage. For AWS S3, performs a live STS AssumeRole and S3 ListObjectsV2 check. For GCS, performs a live bucket listing check using the configured service-account credentials. # # @return [Models::ValidateExternalStorageResponse] def validate_importer_external_storage() @@ -795,22 +821,17 @@ def delete_poll_option(poll_id, option_id, user_id = nil) # # @param poll_id [String] # @param option_id [String] - # @param user_id [String] # @return [Models::PollOptionResponse] - def get_poll_option(poll_id, option_id, user_id = nil) + def get_poll_option(poll_id, option_id) path = '/api/v2/polls/{poll_id}/options/{option_id}' # Replace path parameters path = path.gsub('{poll_id}', poll_id.to_s) path = path.gsub('{option_id}', option_id.to_s) - # Build query parameters - query_params = {} - query_params['user_id'] = user_id unless user_id.nil? # Make the API request @client.make_request( :get, - path, - query_params: query_params + path ) end @@ -947,9 +968,10 @@ def upsert_push_template(upsert_push_template_request) # @param android [Boolean] # @param ios [Boolean] # @param web [Boolean] + # @param unity [Boolean] # @param endpoints [String] # @return [Models::GetRateLimitsResponse] - def get_rate_limits(server_side = nil, android = nil, ios = nil, web = nil, endpoints = nil) + def get_rate_limits(server_side = nil, android = nil, ios = nil, web = nil, unity = nil, endpoints = nil) path = '/api/v2/rate_limits' # Build query parameters query_params = {} @@ -957,6 +979,7 @@ def get_rate_limits(server_side = nil, android = nil, ios = nil, web = nil, endp query_params['android'] = android unless android.nil? query_params['ios'] = ios unless ios.nil? query_params['web'] = web unless web.nil? + query_params['unity'] = unity unless unity.nil? query_params['endpoints'] = endpoints unless endpoints.nil? # Make the API request diff --git a/lib/getstream_ruby/generated/feeds_client.rb b/lib/getstream_ruby/generated/feeds_client.rb index a6c257e..4e0d873 100644 --- a/lib/getstream_ruby/generated/feeds_client.rb +++ b/lib/getstream_ruby/generated/feeds_client.rb @@ -384,23 +384,23 @@ def delete_activity(_id, hard_delete = nil, delete_notification_activity = nil) # Returns activity by ID # # @param _id [String] - # @param language [String] - # @param translate_text [Boolean] # @param comment_sort [String] # @param comment_limit [Integer] # @param user_id [String] + # @param language [String] + # @param translate_text [Boolean] # @return [Models::GetActivityResponse] - def get_activity(_id, language = nil, translate_text = nil, comment_sort = nil, comment_limit = nil, user_id = nil) + def get_activity(_id, comment_sort = nil, comment_limit = nil, user_id = nil, language = nil, translate_text = nil) path = '/api/v2/feeds/activities/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build query parameters query_params = {} - query_params['language'] = language unless language.nil? - query_params['translate_text'] = translate_text unless translate_text.nil? query_params['comment_sort'] = comment_sort unless comment_sort.nil? query_params['comment_limit'] = comment_limit unless comment_limit.nil? query_params['user_id'] = user_id unless user_id.nil? + query_params['language'] = language unless language.nil? + query_params['translate_text'] = translate_text unless translate_text.nil? # Make the API request @client.make_request( @@ -882,19 +882,19 @@ def delete_comment(_id, hard_delete = nil, delete_notification_activity = nil) # Get a comment by ID # # @param _id [String] + # @param user_id [String] # @param language [String] # @param translate_text [Boolean] - # @param user_id [String] # @return [Models::GetCommentResponse] - def get_comment(_id, language = nil, translate_text = nil, user_id = nil) + def get_comment(_id, user_id = nil, language = nil, translate_text = nil) path = '/api/v2/feeds/comments/{id}' # Replace path parameters path = path.gsub('{id}', _id.to_s) # Build query parameters query_params = {} + query_params['user_id'] = user_id unless user_id.nil? query_params['language'] = language unless language.nil? query_params['translate_text'] = translate_text unless translate_text.nil? - query_params['user_id'] = user_id unless user_id.nil? # Make the API request @client.make_request( @@ -1757,9 +1757,10 @@ def query_feeds(query_feeds_request) # @param android [Boolean] # @param ios [Boolean] # @param web [Boolean] + # @param unity [Boolean] # @param server_side [Boolean] # @return [Models::GetFeedsRateLimitsResponse] - def get_feeds_rate_limits(endpoints = nil, android = nil, ios = nil, web = nil, server_side = nil) + def get_feeds_rate_limits(endpoints = nil, android = nil, ios = nil, web = nil, unity = nil, server_side = nil) path = '/api/v2/feeds/feeds/rate_limits' # Build query parameters query_params = {} @@ -1767,6 +1768,7 @@ def get_feeds_rate_limits(endpoints = nil, android = nil, ios = nil, web = nil, query_params['android'] = android unless android.nil? query_params['ios'] = ios unless ios.nil? query_params['web'] = web unless web.nil? + query_params['unity'] = unity unless unity.nil? query_params['server_side'] = server_side unless server_side.nil? # Make the API request diff --git a/lib/getstream_ruby/generated/models/absent_metric.rb b/lib/getstream_ruby/generated/models/absent_metric.rb new file mode 100644 index 0000000..3a8ce2c --- /dev/null +++ b/lib/getstream_ruby/generated/models/absent_metric.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 AbsentMetric < GetStream::BaseModel + + # Model attributes + # @!attribute metric + # @return [String] + attr_accessor :metric + # @!attribute reason + # @return [String] + attr_accessor :reason + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @metric = attributes[:metric] || attributes['metric'] + @reason = attributes[:reason] || attributes['reason'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + metric: 'metric', + reason: 'reason' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/accept_feed_member_invite_request.rb b/lib/getstream_ruby/generated/models/accept_feed_member_invite_request.rb index f284de4..01b957e 100644 --- a/lib/getstream_ruby/generated/models/accept_feed_member_invite_request.rb +++ b/lib/getstream_ruby/generated/models/accept_feed_member_invite_request.rb @@ -13,7 +13,7 @@ class AcceptFeedMemberInviteRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/action_log_response.rb b/lib/getstream_ruby/generated/models/action_log_response.rb index 52e9037..9611ec2 100644 --- a/lib/getstream_ruby/generated/models/action_log_response.rb +++ b/lib/getstream_ruby/generated/models/action_log_response.rb @@ -40,10 +40,10 @@ class ActionLogResponse < GetStream::BaseModel # @return [ReviewQueueItemResponse] attr_accessor :review_queue_item # @!attribute target_user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :target_user # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/activity_feedback_event_payload.rb b/lib/getstream_ruby/generated/models/activity_feedback_event_payload.rb index 12c41a9..a64aac8 100644 --- a/lib/getstream_ruby/generated/models/activity_feedback_event_payload.rb +++ b/lib/getstream_ruby/generated/models/activity_feedback_event_payload.rb @@ -25,7 +25,7 @@ class ActivityFeedbackEventPayload < GetStream::BaseModel # @return [String] The feedback value (true/false) attr_accessor :value # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/activity_feedback_request.rb b/lib/getstream_ruby/generated/models/activity_feedback_request.rb index bb3c72d..a00edfd 100644 --- a/lib/getstream_ruby/generated/models/activity_feedback_request.rb +++ b/lib/getstream_ruby/generated/models/activity_feedback_request.rb @@ -22,7 +22,7 @@ class ActivityFeedbackRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/activity_pin_response.rb b/lib/getstream_ruby/generated/models/activity_pin_response.rb index 03251df..de7bd89 100644 --- a/lib/getstream_ruby/generated/models/activity_pin_response.rb +++ b/lib/getstream_ruby/generated/models/activity_pin_response.rb @@ -22,7 +22,7 @@ class ActivityPinResponse < GetStream::BaseModel # @return [ActivityResponse] attr_accessor :activity # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/activity_request.rb b/lib/getstream_ruby/generated/models/activity_request.rb index 3cf73af..64921eb 100644 --- a/lib/getstream_ruby/generated/models/activity_request.rb +++ b/lib/getstream_ruby/generated/models/activity_request.rb @@ -61,6 +61,9 @@ class ActivityRequest < GetStream::BaseModel # @!attribute collection_refs # @return [Array] Collections that this activity references attr_accessor :collection_refs + # @!attribute collections + # @return [Array] Collections to create or update as part of this request, so an activity and the collections it references can be written in one call. Their refs (name:id) are added to collection_refs automatically; you do not need to restate them, and they count toward the same per-activity collection-reference limit, which is the effective cap here. A collection that already exists has its custom data updated. Use collection_refs instead when the collection already exists and you are only referencing it, which requires no collection permissions. + attr_accessor :collections # @!attribute filter_tags # @return [Array] Tags for filtering activities attr_accessor :filter_tags @@ -100,6 +103,7 @@ def initialize(attributes = {}) @visibility_tag = attributes[:visibility_tag] || attributes['visibility_tag'] || nil @attachments = attributes[:attachments] || attributes['attachments'] || nil @collection_refs = attributes[:collection_refs] || attributes['collection_refs'] || nil + @collections = attributes[:collections] || attributes['collections'] || 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 @@ -128,6 +132,7 @@ def self.json_field_mappings visibility_tag: 'visibility_tag', attachments: 'attachments', collection_refs: 'collection_refs', + collections: 'collections', filter_tags: 'filter_tags', interest_tags: 'interest_tags', mentioned_user_ids: 'mentioned_user_ids', diff --git a/lib/getstream_ruby/generated/models/activity_response.rb b/lib/getstream_ruby/generated/models/activity_response.rb index 532ee12..bebb8d2 100644 --- a/lib/getstream_ruby/generated/models/activity_response.rb +++ b/lib/getstream_ruby/generated/models/activity_response.rb @@ -91,7 +91,7 @@ class ActivityResponse < GetStream::BaseModel # @return [Object] Data for search indexing attr_accessor :search_data # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute deleted_at # @return [DateTime] When the activity was deleted diff --git a/lib/getstream_ruby/generated/models/add_activity_request.rb b/lib/getstream_ruby/generated/models/add_activity_request.rb index 780264c..0a1de9b 100644 --- a/lib/getstream_ruby/generated/models/add_activity_request.rb +++ b/lib/getstream_ruby/generated/models/add_activity_request.rb @@ -70,6 +70,9 @@ class AddActivityRequest < GetStream::BaseModel # @!attribute collection_refs # @return [Array] Collections that this activity references attr_accessor :collection_refs + # @!attribute collections + # @return [Array] Collections to create or update as part of this request, so an activity and the collections it references can be written in one call. Their refs (name:id) are added to collection_refs automatically; you do not need to restate them, and they count toward the same per-activity collection-reference limit, which is the effective cap here. A collection that already exists has its custom data updated. Use collection_refs instead when the collection already exists and you are only referencing it, which requires no collection permissions. + attr_accessor :collections # @!attribute filter_tags # @return [Array] Tags for filtering activities attr_accessor :filter_tags @@ -112,6 +115,7 @@ def initialize(attributes = {}) @visibility_tag = attributes[:visibility_tag] || attributes['visibility_tag'] || nil @attachments = attributes[:attachments] || attributes['attachments'] || nil @collection_refs = attributes[:collection_refs] || attributes['collection_refs'] || nil + @collections = attributes[:collections] || attributes['collections'] || 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 @@ -143,6 +147,7 @@ def self.json_field_mappings visibility_tag: 'visibility_tag', attachments: 'attachments', collection_refs: 'collection_refs', + collections: 'collections', filter_tags: 'filter_tags', interest_tags: 'interest_tags', mentioned_user_ids: 'mentioned_user_ids', diff --git a/lib/getstream_ruby/generated/models/add_bookmark_request.rb b/lib/getstream_ruby/generated/models/add_bookmark_request.rb index 8d99b5a..9866814 100644 --- a/lib/getstream_ruby/generated/models/add_bookmark_request.rb +++ b/lib/getstream_ruby/generated/models/add_bookmark_request.rb @@ -22,7 +22,7 @@ class AddBookmarkRequest < GetStream::BaseModel # @return [AddFolderRequest] attr_accessor :new_folder # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/add_comment_bookmark_request.rb b/lib/getstream_ruby/generated/models/add_comment_bookmark_request.rb index 66bb703..2889964 100644 --- a/lib/getstream_ruby/generated/models/add_comment_bookmark_request.rb +++ b/lib/getstream_ruby/generated/models/add_comment_bookmark_request.rb @@ -22,7 +22,7 @@ class AddCommentBookmarkRequest < GetStream::BaseModel # @return [AddFolderRequest] attr_accessor :new_folder # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/add_comment_reaction_request.rb b/lib/getstream_ruby/generated/models/add_comment_reaction_request.rb index 888aa8b..23e7605 100644 --- a/lib/getstream_ruby/generated/models/add_comment_reaction_request.rb +++ b/lib/getstream_ruby/generated/models/add_comment_reaction_request.rb @@ -35,7 +35,7 @@ class AddCommentReactionRequest < GetStream::BaseModel # @return [Object] Optional custom data to add to the reaction attr_accessor :custom # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/add_comment_request.rb b/lib/getstream_ruby/generated/models/add_comment_request.rb index 3824b4a..0900153 100644 --- a/lib/getstream_ruby/generated/models/add_comment_request.rb +++ b/lib/getstream_ruby/generated/models/add_comment_request.rb @@ -53,7 +53,7 @@ class AddCommentRequest < GetStream::BaseModel # @return [Object] Custom data for the comment attr_accessor :custom # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/add_reaction_request.rb b/lib/getstream_ruby/generated/models/add_reaction_request.rb index c9c265b..745c028 100644 --- a/lib/getstream_ruby/generated/models/add_reaction_request.rb +++ b/lib/getstream_ruby/generated/models/add_reaction_request.rb @@ -38,7 +38,7 @@ class AddReactionRequest < GetStream::BaseModel # @return [Object] Custom data for the reaction attr_accessor :custom # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/analyze_request.rb b/lib/getstream_ruby/generated/models/analyze_request.rb index 00a6666..cce0cce 100644 --- a/lib/getstream_ruby/generated/models/analyze_request.rb +++ b/lib/getstream_ruby/generated/models/analyze_request.rb @@ -40,7 +40,7 @@ class AnalyzeRequest < GetStream::BaseModel # @return [Hash] Named text fields to moderate, keyed by caller label (e.g. title, description). attr_accessor :texts # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/app_response_fields.rb b/lib/getstream_ruby/generated/models/app_response_fields.rb index 83d15a6..f212470 100644 --- a/lib/getstream_ruby/generated/models/app_response_fields.rb +++ b/lib/getstream_ruby/generated/models/app_response_fields.rb @@ -51,6 +51,9 @@ class AppResponseFields < GetStream::BaseModel # @!attribute max_aggregated_activities_length # @return [Integer] attr_accessor :max_aggregated_activities_length + # @!attribute member_custom_on_messages_enabled + # @return [Boolean] + attr_accessor :member_custom_on_messages_enabled # @!attribute moderation_audio_call_moderation_enabled # @return [Boolean] attr_accessor :moderation_audio_call_moderation_enabled @@ -156,6 +159,9 @@ class AppResponseFields < GetStream::BaseModel # @!attribute before_message_send_hook_url # @return [String] attr_accessor :before_message_send_hook_url + # @!attribute chat_primary_use_case + # @return [String] + attr_accessor :chat_primary_use_case # @!attribute moderation_onboarding_complete # @return [Boolean] attr_accessor :moderation_onboarding_complete @@ -204,6 +210,7 @@ def initialize(attributes = {}) @id = attributes[:id] || attributes['id'] @image_moderation_enabled = attributes[:image_moderation_enabled] || attributes['image_moderation_enabled'] @max_aggregated_activities_length = attributes[:max_aggregated_activities_length] || attributes['max_aggregated_activities_length'] + @member_custom_on_messages_enabled = attributes[:member_custom_on_messages_enabled] || attributes['member_custom_on_messages_enabled'] @moderation_audio_call_moderation_enabled = attributes[:moderation_audio_call_moderation_enabled] || attributes['moderation_audio_call_moderation_enabled'] @moderation_enabled = attributes[:moderation_enabled] || attributes['moderation_enabled'] @moderation_llm_configurability_enabled = attributes[:moderation_llm_configurability_enabled] || attributes['moderation_llm_configurability_enabled'] @@ -239,6 +246,7 @@ def initialize(attributes = {}) @push_notifications = attributes[:push_notifications] || attributes['push_notifications'] @before_message_send_hook_attempt_timeout_ms = attributes[:before_message_send_hook_attempt_timeout_ms] || attributes['before_message_send_hook_attempt_timeout_ms'] || nil @before_message_send_hook_url = attributes[:before_message_send_hook_url] || attributes['before_message_send_hook_url'] || nil + @chat_primary_use_case = attributes[:chat_primary_use_case] || attributes['chat_primary_use_case'] || nil @moderation_onboarding_complete = attributes[:moderation_onboarding_complete] || attributes['moderation_onboarding_complete'] || nil @moderation_s3_image_access_role_arn = attributes[:moderation_s3_image_access_role_arn] || attributes['moderation_s3_image_access_role_arn'] || nil @revoke_tokens_issued_before = attributes[:revoke_tokens_issued_before] || attributes['revoke_tokens_issued_before'] || nil @@ -268,6 +276,7 @@ def self.json_field_mappings id: 'id', image_moderation_enabled: 'image_moderation_enabled', max_aggregated_activities_length: 'max_aggregated_activities_length', + member_custom_on_messages_enabled: 'member_custom_on_messages_enabled', moderation_audio_call_moderation_enabled: 'moderation_audio_call_moderation_enabled', moderation_enabled: 'moderation_enabled', moderation_llm_configurability_enabled: 'moderation_llm_configurability_enabled', @@ -303,6 +312,7 @@ def self.json_field_mappings push_notifications: 'push_notifications', before_message_send_hook_attempt_timeout_ms: 'before_message_send_hook_attempt_timeout_ms', before_message_send_hook_url: 'before_message_send_hook_url', + chat_primary_use_case: 'chat_primary_use_case', moderation_onboarding_complete: 'moderation_onboarding_complete', moderation_s3_image_access_role_arn: 'moderation_s3_image_access_role_arn', revoke_tokens_issued_before: 'revoke_tokens_issued_before', diff --git a/lib/getstream_ruby/generated/models/appeal_item_response.rb b/lib/getstream_ruby/generated/models/appeal_item_response.rb index 4beab2b..f1ca1d1 100644 --- a/lib/getstream_ruby/generated/models/appeal_item_response.rb +++ b/lib/getstream_ruby/generated/models/appeal_item_response.rb @@ -76,7 +76,7 @@ class AppealItemResponse < GetStream::BaseModel # @return [ActionLogResponse] attr_accessor :original_moderation_action # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/appeal_request.rb b/lib/getstream_ruby/generated/models/appeal_request.rb index 219ebe3..825e2c7 100644 --- a/lib/getstream_ruby/generated/models/appeal_request.rb +++ b/lib/getstream_ruby/generated/models/appeal_request.rb @@ -28,7 +28,7 @@ class AppealRequest < GetStream::BaseModel # @return [Array] Array of Attachment URLs(e.g., images) attr_accessor :attachments # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes 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 e297b0e..93f6071 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.channels.error" + @type = attributes[:type] || attributes['type'] || "export.review_queue.error" @received_at = attributes[:received_at] || attributes['received_at'] || nil end diff --git a/lib/getstream_ruby/generated/models/audience.rb b/lib/getstream_ruby/generated/models/audience.rb new file mode 100644 index 0000000..35b2938 --- /dev/null +++ b/lib/getstream_ruby/generated/models/audience.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 Audience < GetStream::BaseModel + + # Model attributes + # @!attribute avg_concurrent_viewers + # @return [Integer] + attr_accessor :avg_concurrent_viewers + # @!attribute hours_watched + # @return [Float] + attr_accessor :hours_watched + # @!attribute peak_concurrent_viewers + # @return [Integer] + attr_accessor :peak_concurrent_viewers + # @!attribute unique_viewers + # @return [Integer] + attr_accessor :unique_viewers + # @!attribute viewer_connections + # @return [Integer] + attr_accessor :viewer_connections + # @!attribute concurrency_by_minute + # @return [Array] + attr_accessor :concurrency_by_minute + # @!attribute peak_at + # @return [String] + attr_accessor :peak_at + # @!attribute ramp_up_min_to_90pct_peak + # @return [Integer] + attr_accessor :ramp_up_min_to_90pct_peak + # @!attribute retention_at_90pct_mark + # @return [Float] + attr_accessor :retention_at_90pct_mark + # @!attribute retention_at_midpoint + # @return [Float] + attr_accessor :retention_at_midpoint + # @!attribute shape + # @return [String] + attr_accessor :shape + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @avg_concurrent_viewers = attributes[:avg_concurrent_viewers] || attributes['avg_concurrent_viewers'] + @hours_watched = attributes[:hours_watched] || attributes['hours_watched'] + @peak_concurrent_viewers = attributes[:peak_concurrent_viewers] || attributes['peak_concurrent_viewers'] + @unique_viewers = attributes[:unique_viewers] || attributes['unique_viewers'] + @viewer_connections = attributes[:viewer_connections] || attributes['viewer_connections'] + @concurrency_by_minute = attributes[:concurrency_by_minute] || attributes['concurrency_by_minute'] + @peak_at = attributes[:peak_at] || attributes['peak_at'] || nil + @ramp_up_min_to_90pct_peak = attributes[:ramp_up_min_to_90pct_peak] || attributes['ramp_up_min_to_90pct_peak'] || nil + @retention_at_90pct_mark = attributes[:retention_at_90pct_mark] || attributes['retention_at_90pct_mark'] || nil + @retention_at_midpoint = attributes[:retention_at_midpoint] || attributes['retention_at_midpoint'] || nil + @shape = attributes[:shape] || attributes['shape'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + avg_concurrent_viewers: 'avg_concurrent_viewers', + hours_watched: 'hours_watched', + peak_concurrent_viewers: 'peak_concurrent_viewers', + unique_viewers: 'unique_viewers', + viewer_connections: 'viewer_connections', + concurrency_by_minute: 'concurrency_by_minute', + peak_at: 'peak_at', + ramp_up_min_to_90pct_peak: 'ramp_up_min_to_90pct_peak', + retention_at_90pct_mark: 'retention_at_90pct_mark', + retention_at_midpoint: 'retention_at_midpoint', + shape: 'shape' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/automod_details_response.rb b/lib/getstream_ruby/generated/models/automod_details_response.rb index 2357dda..20af9ef 100644 --- a/lib/getstream_ruby/generated/models/automod_details_response.rb +++ b/lib/getstream_ruby/generated/models/automod_details_response.rb @@ -22,7 +22,7 @@ class AutomodDetailsResponse < GetStream::BaseModel # @return [FlagMessageDetailsResponse] attr_accessor :message_details # @!attribute result - # @return [MessageModerationResult] + # @return [MessageModerationResult] Result of the message moderation attr_accessor :result # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/ban_info_response.rb b/lib/getstream_ruby/generated/models/ban_info_response.rb index 4a3fbd0..176bfea 100644 --- a/lib/getstream_ruby/generated/models/ban_info_response.rb +++ b/lib/getstream_ruby/generated/models/ban_info_response.rb @@ -12,6 +12,9 @@ class BanInfoResponse < GetStream::BaseModel # @!attribute created_at # @return [DateTime] When the ban was created attr_accessor :created_at + # @!attribute channel_cid + # @return [String] The channel this ban applies to. Empty if this is an app-wide (global) ban rather than a per-channel ban. + attr_accessor :channel_cid # @!attribute expires # @return [DateTime] When the ban expires attr_accessor :expires @@ -21,20 +24,25 @@ class BanInfoResponse < GetStream::BaseModel # @!attribute shadow # @return [Boolean] Whether this is a shadow ban attr_accessor :shadow + # @!attribute channel + # @return [ChannelMetadata] + attr_accessor :channel # @!attribute created_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :created_by # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes def initialize(attributes = {}) super(attributes) @created_at = attributes[:created_at] || attributes['created_at'] + @channel_cid = attributes[:channel_cid] || attributes['channel_cid'] || nil @expires = attributes[:expires] || attributes['expires'] || nil @reason = attributes[:reason] || attributes['reason'] || nil @shadow = attributes[:shadow] || attributes['shadow'] || nil + @channel = attributes[:channel] || attributes['channel'] || nil @created_by = attributes[:created_by] || attributes['created_by'] || nil @user = attributes[:user] || attributes['user'] || nil end @@ -43,9 +51,11 @@ def initialize(attributes = {}) def self.json_field_mappings { created_at: 'created_at', + channel_cid: 'channel_cid', expires: 'expires', reason: 'reason', shadow: 'shadow', + channel: 'channel', created_by: 'created_by', user: 'user' } diff --git a/lib/getstream_ruby/generated/models/ban_request.rb b/lib/getstream_ruby/generated/models/ban_request.rb index ffd897d..aa8cd49 100644 --- a/lib/getstream_ruby/generated/models/ban_request.rb +++ b/lib/getstream_ruby/generated/models/ban_request.rb @@ -34,7 +34,7 @@ class BanRequest < GetStream::BaseModel # @return [Integer] Duration of the ban in minutes attr_accessor :timeout # @!attribute banned_by - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :banned_by # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/ban_response.rb b/lib/getstream_ruby/generated/models/ban_response.rb index 7fa3487..d9afd98 100644 --- a/lib/getstream_ruby/generated/models/ban_response.rb +++ b/lib/getstream_ruby/generated/models/ban_response.rb @@ -22,13 +22,13 @@ class BanResponse < GetStream::BaseModel # @return [Boolean] attr_accessor :shadow # @!attribute banned_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :banned_by # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/batch_query_activity_reactions_request.rb b/lib/getstream_ruby/generated/models/batch_query_activity_reactions_request.rb index 2b084c6..d03c312 100644 --- a/lib/getstream_ruby/generated/models/batch_query_activity_reactions_request.rb +++ b/lib/getstream_ruby/generated/models/batch_query_activity_reactions_request.rb @@ -31,7 +31,7 @@ class BatchQueryActivityReactionsRequest < GetStream::BaseModel # @return [Object] Optional filter on reaction_type or created_at attr_accessor :filter # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/batch_query_comment_reactions_request.rb b/lib/getstream_ruby/generated/models/batch_query_comment_reactions_request.rb index c986f6c..30284a5 100644 --- a/lib/getstream_ruby/generated/models/batch_query_comment_reactions_request.rb +++ b/lib/getstream_ruby/generated/models/batch_query_comment_reactions_request.rb @@ -31,7 +31,7 @@ class BatchQueryCommentReactionsRequest < GetStream::BaseModel # @return [Object] Optional filter on reaction_type or created_at attr_accessor :filter # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/block_list_response.rb b/lib/getstream_ruby/generated/models/block_list_response.rb index ee77d76..52dd0fa 100644 --- a/lib/getstream_ruby/generated/models/block_list_response.rb +++ b/lib/getstream_ruby/generated/models/block_list_response.rb @@ -36,6 +36,9 @@ class BlockListResponse < GetStream::BaseModel # @!attribute id # @return [String] attr_accessor :id + # @!attribute owner_user_id + # @return [String] + attr_accessor :owner_user_id # @!attribute team # @return [String] attr_accessor :team @@ -55,6 +58,7 @@ def initialize(attributes = {}) @words = attributes[:words] || attributes['words'] @created_at = attributes[:created_at] || attributes['created_at'] || nil @id = attributes[:id] || attributes['id'] || nil + @owner_user_id = attributes[:owner_user_id] || attributes['owner_user_id'] || nil @team = attributes[:team] || attributes['team'] || nil @updated_at = attributes[:updated_at] || attributes['updated_at'] || nil end @@ -71,6 +75,7 @@ def self.json_field_mappings words: 'words', created_at: 'created_at', id: 'id', + owner_user_id: 'owner_user_id', team: 'team', updated_at: 'updated_at' } diff --git a/lib/getstream_ruby/generated/models/block_users_request.rb b/lib/getstream_ruby/generated/models/block_users_request.rb index 91b8ab2..a5b34a6 100644 --- a/lib/getstream_ruby/generated/models/block_users_request.rb +++ b/lib/getstream_ruby/generated/models/block_users_request.rb @@ -16,7 +16,7 @@ class BlockUsersRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/blocked_user_event.rb b/lib/getstream_ruby/generated/models/blocked_user_event.rb index 8258ffe..fe5f298 100644 --- a/lib/getstream_ruby/generated/models/blocked_user_event.rb +++ b/lib/getstream_ruby/generated/models/blocked_user_event.rb @@ -16,13 +16,13 @@ class BlockedUserEvent < GetStream::BaseModel # @return [DateTime] attr_accessor :created_at # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute type # @return [String] The type of event: "call.blocked_user" in this case attr_accessor :type # @!attribute blocked_by_user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :blocked_by_user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/blocked_user_response.rb b/lib/getstream_ruby/generated/models/blocked_user_response.rb index 7c91505..5ae8731 100644 --- a/lib/getstream_ruby/generated/models/blocked_user_response.rb +++ b/lib/getstream_ruby/generated/models/blocked_user_response.rb @@ -19,10 +19,10 @@ class BlockedUserResponse < GetStream::BaseModel # @return [String] ID of the user who blocked another user attr_accessor :user_id # @!attribute blocked_user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :blocked_user # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/bookmark_folder_response.rb b/lib/getstream_ruby/generated/models/bookmark_folder_response.rb index c1aa246..4e517d6 100644 --- a/lib/getstream_ruby/generated/models/bookmark_folder_response.rb +++ b/lib/getstream_ruby/generated/models/bookmark_folder_response.rb @@ -22,7 +22,7 @@ class BookmarkFolderResponse < GetStream::BaseModel # @return [DateTime] When the folder was last updated attr_accessor :updated_at # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute custom # @return [Object] Custom data for the folder diff --git a/lib/getstream_ruby/generated/models/bookmark_response.rb b/lib/getstream_ruby/generated/models/bookmark_response.rb index b9a5b37..7d78781 100644 --- a/lib/getstream_ruby/generated/models/bookmark_response.rb +++ b/lib/getstream_ruby/generated/models/bookmark_response.rb @@ -25,7 +25,7 @@ class BookmarkResponse < GetStream::BaseModel # @return [ActivityResponse] attr_accessor :activity # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute activity_id # @return [String] diff --git a/lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb b/lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb new file mode 100644 index 0000000..1b2f1c9 --- /dev/null +++ b/lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb @@ -0,0 +1,86 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class BroadcastDailyRollup < GetStream::BaseModel + + # Model attributes + # @!attribute broadcasts + # @return [Integer] + attr_accessor :broadcasts + # @!attribute day + # @return [String] + attr_accessor :day + # @!attribute dead_air_s + # @return [Integer] + attr_accessor :dead_air_s + # @!attribute hours_watched + # @return [Float] + attr_accessor :hours_watched + # @!attribute incident_windows + # @return [Integer] + attr_accessor :incident_windows + # @!attribute max_peak_concurrent_viewers + # @return [Integer] + attr_accessor :max_peak_concurrent_viewers + # @!attribute note + # @return [String] + attr_accessor :note + # @!attribute schema_version + # @return [String] + attr_accessor :schema_version + # @!attribute source_drops + # @return [Integer] + attr_accessor :source_drops + # @!attribute unique_viewers_sum + # @return [Integer] + attr_accessor :unique_viewers_sum + # @!attribute top_broadcasts + # @return [Array] + attr_accessor :top_broadcasts + # @!attribute poor_viewers_by_cause + # @return [PoorByCause] + attr_accessor :poor_viewers_by_cause + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @broadcasts = attributes[:broadcasts] || attributes['broadcasts'] + @day = attributes[:day] || attributes['day'] + @dead_air_s = attributes[:dead_air_s] || attributes['dead_air_s'] + @hours_watched = attributes[:hours_watched] || attributes['hours_watched'] + @incident_windows = attributes[:incident_windows] || attributes['incident_windows'] + @max_peak_concurrent_viewers = attributes[:max_peak_concurrent_viewers] || attributes['max_peak_concurrent_viewers'] + @note = attributes[:note] || attributes['note'] + @schema_version = attributes[:schema_version] || attributes['schema_version'] + @source_drops = attributes[:source_drops] || attributes['source_drops'] + @unique_viewers_sum = attributes[:unique_viewers_sum] || attributes['unique_viewers_sum'] + @top_broadcasts = attributes[:top_broadcasts] || attributes['top_broadcasts'] + @poor_viewers_by_cause = attributes[:poor_viewers_by_cause] || attributes['poor_viewers_by_cause'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + broadcasts: 'broadcasts', + day: 'day', + dead_air_s: 'dead_air_s', + hours_watched: 'hours_watched', + incident_windows: 'incident_windows', + max_peak_concurrent_viewers: 'max_peak_concurrent_viewers', + note: 'note', + schema_version: 'schema_version', + source_drops: 'source_drops', + unique_viewers_sum: 'unique_viewers_sum', + top_broadcasts: 'top_broadcasts', + poor_viewers_by_cause: 'poor_viewers_by_cause' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/broadcast_digest.rb b/lib/getstream_ruby/generated/models/broadcast_digest.rb new file mode 100644 index 0000000..a0988c5 --- /dev/null +++ b/lib/getstream_ruby/generated/models/broadcast_digest.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 BroadcastDigest < GetStream::BaseModel + + # Model attributes + # @!attribute schema_version + # @return [String] + attr_accessor :schema_version + # @!attribute audience + # @return [Audience] + attr_accessor :audience + # @!attribute broadcast + # @return [BroadcastInfo] + attr_accessor :broadcast + # @!attribute coverage + # @return [Coverage] + attr_accessor :coverage + # @!attribute joins + # @return [Joins] + attr_accessor :joins + # @!attribute poor_tail + # @return [PoorTail] + attr_accessor :poor_tail + # @!attribute quality + # @return [Quality] + attr_accessor :quality + # @!attribute segments + # @return [Segments] + attr_accessor :segments + # @!attribute source + # @return [SourceHealth] + attr_accessor :source + # @!attribute viewers + # @return [ViewerBehavior] + attr_accessor :viewers + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @schema_version = attributes[:schema_version] || attributes['schema_version'] + @audience = attributes[:audience] || attributes['audience'] + @broadcast = attributes[:broadcast] || attributes['broadcast'] + @coverage = attributes[:coverage] || attributes['coverage'] + @joins = attributes[:joins] || attributes['joins'] + @poor_tail = attributes[:poor_tail] || attributes['poor_tail'] + @quality = attributes[:quality] || attributes['quality'] + @segments = attributes[:segments] || attributes['segments'] + @source = attributes[:source] || attributes['source'] + @viewers = attributes[:viewers] || attributes['viewers'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + schema_version: 'schema_version', + audience: 'audience', + broadcast: 'broadcast', + coverage: 'coverage', + joins: 'joins', + poor_tail: 'poor_tail', + quality: 'quality', + segments: 'segments', + source: 'source', + viewers: 'viewers' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/broadcast_info.rb b/lib/getstream_ruby/generated/models/broadcast_info.rb new file mode 100644 index 0000000..d8ce8fc --- /dev/null +++ b/lib/getstream_ruby/generated/models/broadcast_info.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 BroadcastInfo < GetStream::BaseModel + + # Model attributes + # @!attribute app_id + # @return [Integer] + attr_accessor :app_id + # @!attribute call_cid + # @return [String] + attr_accessor :call_cid + # @!attribute call_session_id + # @return [String] + attr_accessor :call_session_id + # @!attribute call_type + # @return [String] + attr_accessor :call_type + # @!attribute duration_min + # @return [Float] + attr_accessor :duration_min + # @!attribute ended_at + # @return [String] + attr_accessor :ended_at + # @!attribute started_at + # @return [String] + attr_accessor :started_at + # @!attribute creators + # @return [Array] + attr_accessor :creators + # @!attribute source_mode + # @return [String] + attr_accessor :source_mode + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @app_id = attributes[:app_id] || attributes['app_id'] + @call_cid = attributes[:call_cid] || attributes['call_cid'] + @call_session_id = attributes[:call_session_id] || attributes['call_session_id'] + @call_type = attributes[:call_type] || attributes['call_type'] + @duration_min = attributes[:duration_min] || attributes['duration_min'] + @ended_at = attributes[:ended_at] || attributes['ended_at'] + @started_at = attributes[:started_at] || attributes['started_at'] + @creators = attributes[:creators] || attributes['creators'] + @source_mode = attributes[:source_mode] || attributes['source_mode'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + app_id: 'app_id', + call_cid: 'call_cid', + call_session_id: 'call_session_id', + call_type: 'call_type', + duration_min: 'duration_min', + ended_at: 'ended_at', + started_at: 'started_at', + creators: 'creators', + source_mode: 'source_mode' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/broadcast_segment.rb b/lib/getstream_ruby/generated/models/broadcast_segment.rb new file mode 100644 index 0000000..30754b1 --- /dev/null +++ b/lib/getstream_ruby/generated/models/broadcast_segment.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 BroadcastSegment < GetStream::BaseModel + + # Model attributes + # @!attribute key + # @return [String] + attr_accessor :key + # @!attribute sessions + # @return [Integer] + attr_accessor :sessions + # @!attribute avg_quality_score + # @return [Float] + attr_accessor :avg_quality_score + # @!attribute p5_quality_score + # @return [Float] + attr_accessor :p5_quality_score + # @!attribute poor_pct + # @return [Float] + attr_accessor :poor_pct + # @!attribute share_pct + # @return [Float] + attr_accessor :share_pct + # @!attribute watch_share_pct + # @return [Float] + attr_accessor :watch_share_pct + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @key = attributes[:key] || attributes['key'] + @sessions = attributes[:sessions] || attributes['sessions'] + @avg_quality_score = attributes[:avg_quality_score] || attributes['avg_quality_score'] || nil + @p5_quality_score = attributes[:p5_quality_score] || attributes['p5_quality_score'] || nil + @poor_pct = attributes[:poor_pct] || attributes['poor_pct'] || nil + @share_pct = attributes[:share_pct] || attributes['share_pct'] || nil + @watch_share_pct = attributes[:watch_share_pct] || attributes['watch_share_pct'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + key: 'key', + sessions: 'sessions', + avg_quality_score: 'avg_quality_score', + p5_quality_score: 'p5_quality_score', + poor_pct: 'poor_pct', + share_pct: 'share_pct', + watch_share_pct: 'watch_share_pct' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/broadcast_settings_response.rb b/lib/getstream_ruby/generated/models/broadcast_settings_response.rb index 917dffc..f98ac70 100644 --- a/lib/getstream_ruby/generated/models/broadcast_settings_response.rb +++ b/lib/getstream_ruby/generated/models/broadcast_settings_response.rb @@ -13,10 +13,10 @@ class BroadcastSettingsResponse < GetStream::BaseModel # @return [Boolean] attr_accessor :enabled # @!attribute hls - # @return [HLSSettingsResponse] + # @return [HLSSettingsResponse] HLSSettings is the payload for HLS settings attr_accessor :hls # @!attribute rtmp - # @return [RTMPSettingsResponse] + # @return [RTMPSettingsResponse] RTMPSettingsResponse is the payload for RTMP settings attr_accessor :rtmp # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb b/lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb index 32d5df3..ab1dbce 100644 --- a/lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb +++ b/lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb @@ -19,22 +19,22 @@ class BulkActionAppealsRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute mark_reviewed - # @return [MarkReviewedRequestPayload] + # @return [MarkReviewedRequestPayload] Configuration for mark reviewed action attr_accessor :mark_reviewed # @!attribute reject_appeal - # @return [RejectAppealRequestPayload] + # @return [RejectAppealRequestPayload] Configuration for rejecting an appeal attr_accessor :reject_appeal # @!attribute restore - # @return [RestoreActionRequestPayload] + # @return [RestoreActionRequestPayload] Configuration for restore action attr_accessor :restore # @!attribute unban - # @return [UnbanActionRequestPayload] + # @return [UnbanActionRequestPayload] Configuration for unban moderation action attr_accessor :unban # @!attribute unblock - # @return [UnblockActionRequestPayload] + # @return [UnblockActionRequestPayload] Configuration for unblock action attr_accessor :unblock # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/bulk_delete_action_config_request.rb b/lib/getstream_ruby/generated/models/bulk_delete_action_config_request.rb index 7195fa3..9cb04fd 100644 --- a/lib/getstream_ruby/generated/models/bulk_delete_action_config_request.rb +++ b/lib/getstream_ruby/generated/models/bulk_delete_action_config_request.rb @@ -16,7 +16,7 @@ class BulkDeleteActionConfigRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/bulk_upsert_action_config_request.rb b/lib/getstream_ruby/generated/models/bulk_upsert_action_config_request.rb index 29bafbd..344b929 100644 --- a/lib/getstream_ruby/generated/models/bulk_upsert_action_config_request.rb +++ b/lib/getstream_ruby/generated/models/bulk_upsert_action_config_request.rb @@ -16,7 +16,7 @@ class BulkUpsertActionConfigRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/call_accepted_event.rb b/lib/getstream_ruby/generated/models/call_accepted_event.rb index 0e2b813..6ffdf81 100644 --- a/lib/getstream_ruby/generated/models/call_accepted_event.rb +++ b/lib/getstream_ruby/generated/models/call_accepted_event.rb @@ -16,10 +16,10 @@ class CallAcceptedEvent < GetStream::BaseModel # @return [DateTime] attr_accessor :created_at # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute type # @return [String] The type of event: "call.accepted" in this case diff --git a/lib/getstream_ruby/generated/models/call_closed_caption.rb b/lib/getstream_ruby/generated/models/call_closed_caption.rb index 87b3974..fc442f3 100644 --- a/lib/getstream_ruby/generated/models/call_closed_caption.rb +++ b/lib/getstream_ruby/generated/models/call_closed_caption.rb @@ -31,7 +31,7 @@ class CallClosedCaption < GetStream::BaseModel # @return [Boolean] attr_accessor :translated # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute service # @return [String] diff --git a/lib/getstream_ruby/generated/models/call_created_event.rb b/lib/getstream_ruby/generated/models/call_created_event.rb index 9cb2630..80faf9b 100644 --- a/lib/getstream_ruby/generated/models/call_created_event.rb +++ b/lib/getstream_ruby/generated/models/call_created_event.rb @@ -19,7 +19,7 @@ class CallCreatedEvent < GetStream::BaseModel # @return [Array] the members added to this call attr_accessor :members # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute type # @return [String] The type of event: "call.created" in this case diff --git a/lib/getstream_ruby/generated/models/call_deleted_event.rb b/lib/getstream_ruby/generated/models/call_deleted_event.rb index 7c30e76..d0a6786 100644 --- a/lib/getstream_ruby/generated/models/call_deleted_event.rb +++ b/lib/getstream_ruby/generated/models/call_deleted_event.rb @@ -16,7 +16,7 @@ class CallDeletedEvent < GetStream::BaseModel # @return [DateTime] attr_accessor :created_at # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute type # @return [String] The type of event: "call.deleted" in this case diff --git a/lib/getstream_ruby/generated/models/call_dtmf_event.rb b/lib/getstream_ruby/generated/models/call_dtmf_event.rb index 171557c..0832fda 100644 --- a/lib/getstream_ruby/generated/models/call_dtmf_event.rb +++ b/lib/getstream_ruby/generated/models/call_dtmf_event.rb @@ -28,7 +28,7 @@ class CallDTMFEvent < GetStream::BaseModel # @return [DateTime] When the digit press ended and was detected attr_accessor :timestamp # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute type # @return [String] The type of event: "call.dtmf" in this case diff --git a/lib/getstream_ruby/generated/models/call_ended_event.rb b/lib/getstream_ruby/generated/models/call_ended_event.rb index d4dbc21..29c22e8 100644 --- a/lib/getstream_ruby/generated/models/call_ended_event.rb +++ b/lib/getstream_ruby/generated/models/call_ended_event.rb @@ -16,7 +16,7 @@ class CallEndedEvent < GetStream::BaseModel # @return [DateTime] attr_accessor :created_at # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute type # @return [String] The type of event: "call.ended" in this case @@ -28,7 +28,7 @@ class CallEndedEvent < GetStream::BaseModel # @return [Array] The list of members in the call attr_accessor :members # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/call_frame_recording_failed_event.rb b/lib/getstream_ruby/generated/models/call_frame_recording_failed_event.rb index 6514de9..4a21f2b 100644 --- a/lib/getstream_ruby/generated/models/call_frame_recording_failed_event.rb +++ b/lib/getstream_ruby/generated/models/call_frame_recording_failed_event.rb @@ -19,7 +19,7 @@ class CallFrameRecordingFailedEvent < GetStream::BaseModel # @return [String] attr_accessor :egress_id # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute type # @return [String] The type of event: "call.frame_recording_failed" in this case diff --git a/lib/getstream_ruby/generated/models/call_frame_recording_started_event.rb b/lib/getstream_ruby/generated/models/call_frame_recording_started_event.rb index 5330ec6..fba0362 100644 --- a/lib/getstream_ruby/generated/models/call_frame_recording_started_event.rb +++ b/lib/getstream_ruby/generated/models/call_frame_recording_started_event.rb @@ -19,7 +19,7 @@ class CallFrameRecordingStartedEvent < GetStream::BaseModel # @return [String] attr_accessor :egress_id # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute type # @return [String] The type of event: "call.frame_recording_started" in this case diff --git a/lib/getstream_ruby/generated/models/call_frame_recording_stopped_event.rb b/lib/getstream_ruby/generated/models/call_frame_recording_stopped_event.rb index 32c32d9..d531ede 100644 --- a/lib/getstream_ruby/generated/models/call_frame_recording_stopped_event.rb +++ b/lib/getstream_ruby/generated/models/call_frame_recording_stopped_event.rb @@ -19,7 +19,7 @@ class CallFrameRecordingStoppedEvent < GetStream::BaseModel # @return [String] attr_accessor :egress_id # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute type # @return [String] The type of event: "call.frame_recording_stopped" in this case diff --git a/lib/getstream_ruby/generated/models/call_hls_broadcasting_started_event.rb b/lib/getstream_ruby/generated/models/call_hls_broadcasting_started_event.rb index dfb0348..b81683c 100644 --- a/lib/getstream_ruby/generated/models/call_hls_broadcasting_started_event.rb +++ b/lib/getstream_ruby/generated/models/call_hls_broadcasting_started_event.rb @@ -19,7 +19,7 @@ class CallHLSBroadcastingStartedEvent < GetStream::BaseModel # @return [String] attr_accessor :hls_playlist_url # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute type # @return [String] The type of event: "call.hls_broadcasting_started" in this case diff --git a/lib/getstream_ruby/generated/models/call_ingress_response.rb b/lib/getstream_ruby/generated/models/call_ingress_response.rb index f15004e..3ff6250 100644 --- a/lib/getstream_ruby/generated/models/call_ingress_response.rb +++ b/lib/getstream_ruby/generated/models/call_ingress_response.rb @@ -10,7 +10,7 @@ class CallIngressResponse < GetStream::BaseModel # Model attributes # @!attribute rtmp - # @return [RTMPIngress] + # @return [RTMPIngress] RTMP input settings attr_accessor :rtmp # @!attribute srt # @return [SRTIngress] diff --git a/lib/getstream_ruby/generated/models/call_live_started_event.rb b/lib/getstream_ruby/generated/models/call_live_started_event.rb index 02a4753..99627e1 100644 --- a/lib/getstream_ruby/generated/models/call_live_started_event.rb +++ b/lib/getstream_ruby/generated/models/call_live_started_event.rb @@ -16,7 +16,7 @@ class CallLiveStartedEvent < GetStream::BaseModel # @return [DateTime] attr_accessor :created_at # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute type # @return [String] The type of event: "call.live_started" in this case diff --git a/lib/getstream_ruby/generated/models/call_member_added_event.rb b/lib/getstream_ruby/generated/models/call_member_added_event.rb index 56210f0..23d9c02 100644 --- a/lib/getstream_ruby/generated/models/call_member_added_event.rb +++ b/lib/getstream_ruby/generated/models/call_member_added_event.rb @@ -19,7 +19,7 @@ class CallMemberAddedEvent < GetStream::BaseModel # @return [Array] the members added to this call attr_accessor :members # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute type # @return [String] The type of event: "call.member_added" in this case diff --git a/lib/getstream_ruby/generated/models/call_member_removed_event.rb b/lib/getstream_ruby/generated/models/call_member_removed_event.rb index 526ad20..e211ea3 100644 --- a/lib/getstream_ruby/generated/models/call_member_removed_event.rb +++ b/lib/getstream_ruby/generated/models/call_member_removed_event.rb @@ -19,7 +19,7 @@ class CallMemberRemovedEvent < GetStream::BaseModel # @return [Array] the list of member IDs removed from the call attr_accessor :members # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute type # @return [String] The type of event: "call.member_removed" in this case diff --git a/lib/getstream_ruby/generated/models/call_member_updated_event.rb b/lib/getstream_ruby/generated/models/call_member_updated_event.rb index 469c6c2..e7c2971 100644 --- a/lib/getstream_ruby/generated/models/call_member_updated_event.rb +++ b/lib/getstream_ruby/generated/models/call_member_updated_event.rb @@ -19,7 +19,7 @@ class CallMemberUpdatedEvent < GetStream::BaseModel # @return [Array] The list of members that were updated attr_accessor :members # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute type # @return [String] The type of event: "call.member_updated" in this case diff --git a/lib/getstream_ruby/generated/models/call_member_updated_permission_event.rb b/lib/getstream_ruby/generated/models/call_member_updated_permission_event.rb index 3e816d8..264f9e4 100644 --- a/lib/getstream_ruby/generated/models/call_member_updated_permission_event.rb +++ b/lib/getstream_ruby/generated/models/call_member_updated_permission_event.rb @@ -19,7 +19,7 @@ class CallMemberUpdatedPermissionEvent < GetStream::BaseModel # @return [Array] The list of members that were updated attr_accessor :members # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute capabilities_by_role # @return [Hash>] The capabilities by role for this call diff --git a/lib/getstream_ruby/generated/models/call_missed_event.rb b/lib/getstream_ruby/generated/models/call_missed_event.rb index caf3802..83ba90a 100644 --- a/lib/getstream_ruby/generated/models/call_missed_event.rb +++ b/lib/getstream_ruby/generated/models/call_missed_event.rb @@ -25,10 +25,10 @@ class CallMissedEvent < GetStream::BaseModel # @return [Array] List of members who missed the call attr_accessor :members # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute type # @return [String] The type of event: "call.notification" in this case diff --git a/lib/getstream_ruby/generated/models/call_notification_event.rb b/lib/getstream_ruby/generated/models/call_notification_event.rb index e100a9c..8ade789 100644 --- a/lib/getstream_ruby/generated/models/call_notification_event.rb +++ b/lib/getstream_ruby/generated/models/call_notification_event.rb @@ -22,10 +22,10 @@ class CallNotificationEvent < GetStream::BaseModel # @return [Array] Call members attr_accessor :members # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute type # @return [String] The type of event: "call.notification" in this case diff --git a/lib/getstream_ruby/generated/models/call_participant_response.rb b/lib/getstream_ruby/generated/models/call_participant_response.rb index fbe2ae1..f576f91 100644 --- a/lib/getstream_ruby/generated/models/call_participant_response.rb +++ b/lib/getstream_ruby/generated/models/call_participant_response.rb @@ -19,7 +19,7 @@ class CallParticipantResponse < GetStream::BaseModel # @return [String] attr_accessor :user_session_id # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes 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 9ba7348..41d576b 100644 --- a/lib/getstream_ruby/generated/models/call_recording_ready_event.rb +++ b/lib/getstream_ruby/generated/models/call_recording_ready_event.rb @@ -22,7 +22,7 @@ class CallRecordingReadyEvent < GetStream::BaseModel # @return [String] The type of recording attr_accessor :recording_type # @!attribute call_recording - # @return [CallRecording] + # @return [CallRecording] CallRecording represents a recording of a call. attr_accessor :call_recording # @!attribute type # @return [String] The type of event: "call.recording_ready" in this case diff --git a/lib/getstream_ruby/generated/models/call_rejected_event.rb b/lib/getstream_ruby/generated/models/call_rejected_event.rb index f806264..8b69825 100644 --- a/lib/getstream_ruby/generated/models/call_rejected_event.rb +++ b/lib/getstream_ruby/generated/models/call_rejected_event.rb @@ -16,10 +16,10 @@ class CallRejectedEvent < GetStream::BaseModel # @return [DateTime] attr_accessor :created_at # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute type # @return [String] The type of event: "call.rejected" in this case diff --git a/lib/getstream_ruby/generated/models/call_request.rb b/lib/getstream_ruby/generated/models/call_request.rb index 41924c5..643c448 100644 --- a/lib/getstream_ruby/generated/models/call_request.rb +++ b/lib/getstream_ruby/generated/models/call_request.rb @@ -28,7 +28,7 @@ class CallRequest < GetStream::BaseModel # @return [Array] attr_accessor :members # @!attribute created_by - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :created_by # @!attribute custom # @return [Object] diff --git a/lib/getstream_ruby/generated/models/call_response.rb b/lib/getstream_ruby/generated/models/call_response.rb index 4787d92..4738e2c 100644 --- a/lib/getstream_ruby/generated/models/call_response.rb +++ b/lib/getstream_ruby/generated/models/call_response.rb @@ -46,7 +46,7 @@ class CallResponse < GetStream::BaseModel # @return [Array] attr_accessor :blocked_user_ids # @!attribute created_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :created_by # @!attribute custom # @return [Object] Custom data for this object @@ -55,7 +55,7 @@ class CallResponse < GetStream::BaseModel # @return [EgressResponse] attr_accessor :egress # @!attribute ingress - # @return [CallIngressResponse] + # @return [CallIngressResponse] CallIngressResponse is the payload for ingress settings attr_accessor :ingress # @!attribute settings # @return [CallSettingsResponse] diff --git a/lib/getstream_ruby/generated/models/call_ring_event.rb b/lib/getstream_ruby/generated/models/call_ring_event.rb index 5640290..a27dc8c 100644 --- a/lib/getstream_ruby/generated/models/call_ring_event.rb +++ b/lib/getstream_ruby/generated/models/call_ring_event.rb @@ -25,10 +25,10 @@ class CallRingEvent < GetStream::BaseModel # @return [Array] Call members attr_accessor :members # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute type # @return [String] The type of event: "call.notification" in this case diff --git a/lib/getstream_ruby/generated/models/call_session_ended_event.rb b/lib/getstream_ruby/generated/models/call_session_ended_event.rb index df17a4c..f9757ae 100644 --- a/lib/getstream_ruby/generated/models/call_session_ended_event.rb +++ b/lib/getstream_ruby/generated/models/call_session_ended_event.rb @@ -19,7 +19,7 @@ class CallSessionEndedEvent < GetStream::BaseModel # @return [String] Call session ID attr_accessor :session_id # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute type # @return [String] The type of event: "call.session_ended" in this case diff --git a/lib/getstream_ruby/generated/models/call_session_started_event.rb b/lib/getstream_ruby/generated/models/call_session_started_event.rb index 2f42d87..756fd52 100644 --- a/lib/getstream_ruby/generated/models/call_session_started_event.rb +++ b/lib/getstream_ruby/generated/models/call_session_started_event.rb @@ -19,7 +19,7 @@ class CallSessionStartedEvent < GetStream::BaseModel # @return [String] Call session ID attr_accessor :session_id # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute type # @return [String] The type of event: "call.session_started" in this case diff --git a/lib/getstream_ruby/generated/models/call_settings_request.rb b/lib/getstream_ruby/generated/models/call_settings_request.rb index b990728..358ed6b 100644 --- a/lib/getstream_ruby/generated/models/call_settings_request.rb +++ b/lib/getstream_ruby/generated/models/call_settings_request.rb @@ -18,6 +18,9 @@ class CallSettingsRequest < GetStream::BaseModel # @!attribute broadcasting # @return [BroadcastSettingsRequest] attr_accessor :broadcasting + # @!attribute encryption + # @return [EncryptionSettingsRequest] + attr_accessor :encryption # @!attribute frame_recording # @return [FrameRecordingSettingsRequest] attr_accessor :frame_recording @@ -64,6 +67,7 @@ def initialize(attributes = {}) @audio = attributes[:audio] || attributes['audio'] || nil @backstage = attributes[:backstage] || attributes['backstage'] || nil @broadcasting = attributes[:broadcasting] || attributes['broadcasting'] || nil + @encryption = attributes[:encryption] || attributes['encryption'] || 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 @@ -85,6 +89,7 @@ def self.json_field_mappings audio: 'audio', backstage: 'backstage', broadcasting: 'broadcasting', + encryption: 'encryption', frame_recording: 'frame_recording', geofencing: 'geofencing', individual_recording: 'individual_recording', diff --git a/lib/getstream_ruby/generated/models/call_settings_response.rb b/lib/getstream_ruby/generated/models/call_settings_response.rb index dd67482..0bed05c 100644 --- a/lib/getstream_ruby/generated/models/call_settings_response.rb +++ b/lib/getstream_ruby/generated/models/call_settings_response.rb @@ -16,8 +16,11 @@ class CallSettingsResponse < GetStream::BaseModel # @return [BackstageSettingsResponse] attr_accessor :backstage # @!attribute broadcasting - # @return [BroadcastSettingsResponse] + # @return [BroadcastSettingsResponse] BroadcastSettingsResponse is the payload for broadcasting settings attr_accessor :broadcasting + # @!attribute encryption + # @return [EncryptionSettingsResponse] EncryptionSettings is the payload for end-to-end encryption settings + attr_accessor :encryption # @!attribute frame_recording # @return [FrameRecordingSettingsResponse] attr_accessor :frame_recording @@ -34,7 +37,7 @@ class CallSettingsResponse < GetStream::BaseModel # @return [RawRecordingSettingsResponse] attr_accessor :raw_recording # @!attribute recording - # @return [RecordSettingsResponse] + # @return [RecordSettingsResponse] RecordSettings is the payload for recording settings attr_accessor :recording # @!attribute ring # @return [RingSettingsResponse] @@ -64,6 +67,7 @@ def initialize(attributes = {}) @audio = attributes[:audio] || attributes['audio'] @backstage = attributes[:backstage] || attributes['backstage'] @broadcasting = attributes[:broadcasting] || attributes['broadcasting'] + @encryption = attributes[:encryption] || attributes['encryption'] @frame_recording = attributes[:frame_recording] || attributes['frame_recording'] @geofencing = attributes[:geofencing] || attributes['geofencing'] @individual_recording = attributes[:individual_recording] || attributes['individual_recording'] @@ -85,6 +89,7 @@ def self.json_field_mappings audio: 'audio', backstage: 'backstage', broadcasting: 'broadcasting', + encryption: 'encryption', frame_recording: 'frame_recording', geofencing: 'geofencing', individual_recording: 'individual_recording', diff --git a/lib/getstream_ruby/generated/models/call_state_response_fields.rb b/lib/getstream_ruby/generated/models/call_state_response_fields.rb index 4d688ef..838adf2 100644 --- a/lib/getstream_ruby/generated/models/call_state_response_fields.rb +++ b/lib/getstream_ruby/generated/models/call_state_response_fields.rb @@ -16,7 +16,7 @@ class CallStateResponseFields < GetStream::BaseModel # @return [Array] attr_accessor :own_capabilities # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/call_transcription_ready_event.rb b/lib/getstream_ruby/generated/models/call_transcription_ready_event.rb index 8a6b1f3..8123928 100644 --- a/lib/getstream_ruby/generated/models/call_transcription_ready_event.rb +++ b/lib/getstream_ruby/generated/models/call_transcription_ready_event.rb @@ -19,7 +19,7 @@ class CallTranscriptionReadyEvent < GetStream::BaseModel # @return [String] attr_accessor :egress_id # @!attribute call_transcription - # @return [CallTranscription] + # @return [CallTranscription] CallTranscription represents a transcription of a call. attr_accessor :call_transcription # @!attribute type # @return [String] The type of event: "call.transcription_ready" in this case diff --git a/lib/getstream_ruby/generated/models/call_updated_event.rb b/lib/getstream_ruby/generated/models/call_updated_event.rb index a1c0ed4..bec5668 100644 --- a/lib/getstream_ruby/generated/models/call_updated_event.rb +++ b/lib/getstream_ruby/generated/models/call_updated_event.rb @@ -16,7 +16,7 @@ class CallUpdatedEvent < GetStream::BaseModel # @return [DateTime] attr_accessor :created_at # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute capabilities_by_role # @return [Hash>] The capabilities by role for this call diff --git a/lib/getstream_ruby/generated/models/call_user_feedback_submitted_event.rb b/lib/getstream_ruby/generated/models/call_user_feedback_submitted_event.rb index 33fdf01..6a55e2d 100644 --- a/lib/getstream_ruby/generated/models/call_user_feedback_submitted_event.rb +++ b/lib/getstream_ruby/generated/models/call_user_feedback_submitted_event.rb @@ -22,7 +22,7 @@ class CallUserFeedbackSubmittedEvent < GetStream::BaseModel # @return [String] Call session ID attr_accessor :session_id # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute type # @return [String] The type of event, "call.user_feedback" in this case diff --git a/lib/getstream_ruby/generated/models/campaign_response.rb b/lib/getstream_ruby/generated/models/campaign_response.rb index b653d35..0cc9c74 100644 --- a/lib/getstream_ruby/generated/models/campaign_response.rb +++ b/lib/getstream_ruby/generated/models/campaign_response.rb @@ -76,7 +76,7 @@ class CampaignResponse < GetStream::BaseModel # @return [CampaignMessageTemplate] attr_accessor :message_template # @!attribute sender - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :sender # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/cast_poll_vote_request.rb b/lib/getstream_ruby/generated/models/cast_poll_vote_request.rb index a81a1c6..991a8b5 100644 --- a/lib/getstream_ruby/generated/models/cast_poll_vote_request.rb +++ b/lib/getstream_ruby/generated/models/cast_poll_vote_request.rb @@ -13,7 +13,7 @@ class CastPollVoteRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # @!attribute vote # @return [VoteData] diff --git a/lib/getstream_ruby/generated/models/channel_batch_update_request.rb b/lib/getstream_ruby/generated/models/channel_batch_update_request.rb index 00c5005..1ae73a6 100644 --- a/lib/getstream_ruby/generated/models/channel_batch_update_request.rb +++ b/lib/getstream_ruby/generated/models/channel_batch_update_request.rb @@ -13,7 +13,7 @@ class ChannelBatchUpdateRequest < GetStream::BaseModel # @return [String] attr_accessor :operation # @!attribute filter - # @return [Object] + # @return [Object] Filter to apply to the query attr_accessor :filter # @!attribute members # @return [Array] diff --git a/lib/getstream_ruby/generated/models/channel_config.rb b/lib/getstream_ruby/generated/models/channel_config.rb index 97fa29c..8715050 100644 --- a/lib/getstream_ruby/generated/models/channel_config.rb +++ b/lib/getstream_ruby/generated/models/channel_config.rb @@ -112,7 +112,7 @@ class ChannelConfig < GetStream::BaseModel # @return [Array] attr_accessor :blocklists # @!attribute automod_thresholds - # @return [Thresholds] + # @return [Thresholds] Sets thresholds for AI moderation attr_accessor :automod_thresholds # @!attribute chat_preferences # @return [ChatPreferences] diff --git a/lib/getstream_ruby/generated/models/channel_config_with_info.rb b/lib/getstream_ruby/generated/models/channel_config_with_info.rb index e619397..8652f61 100644 --- a/lib/getstream_ruby/generated/models/channel_config_with_info.rb +++ b/lib/getstream_ruby/generated/models/channel_config_with_info.rb @@ -112,7 +112,7 @@ class ChannelConfigWithInfo < GetStream::BaseModel # @return [Array] attr_accessor :blocklists # @!attribute automod_thresholds - # @return [Thresholds] + # @return [Thresholds] Sets thresholds for AI moderation attr_accessor :automod_thresholds # @!attribute chat_preferences # @return [ChatPreferences] diff --git a/lib/getstream_ruby/generated/models/channel_context_response.rb b/lib/getstream_ruby/generated/models/channel_context_response.rb new file mode 100644 index 0000000..bc315d8 --- /dev/null +++ b/lib/getstream_ruby/generated/models/channel_context_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 + # Slim channel object: identity plus creator + class ChannelContextResponse < GetStream::BaseModel + + # Model attributes + # @!attribute cid + # @return [String] Channel CID (:) + attr_accessor :cid + # @!attribute id + # @return [String] Channel ID + attr_accessor :id + # @!attribute type + # @return [String] Channel type + attr_accessor :type + # @!attribute created_by + # @return [UserResponse] User response object + attr_accessor :created_by + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @cid = attributes[:cid] || attributes['cid'] + @id = attributes[:id] || attributes['id'] + @type = attributes[:type] || attributes['type'] + @created_by = attributes[:created_by] || attributes['created_by'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + cid: 'cid', + id: 'id', + type: 'type', + created_by: 'created_by' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/channel_created_event.rb b/lib/getstream_ruby/generated/models/channel_created_event.rb index 91a8579..be9d287 100644 --- a/lib/getstream_ruby/generated/models/channel_created_event.rb +++ b/lib/getstream_ruby/generated/models/channel_created_event.rb @@ -13,7 +13,7 @@ class ChannelCreatedEvent < GetStream::BaseModel # @return [DateTime] Date/time of creation attr_accessor :created_at # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute custom # @return [Object] diff --git a/lib/getstream_ruby/generated/models/channel_data_update.rb b/lib/getstream_ruby/generated/models/channel_data_update.rb index 31f321d..a4bc2c4 100644 --- a/lib/getstream_ruby/generated/models/channel_data_update.rb +++ b/lib/getstream_ruby/generated/models/channel_data_update.rb @@ -25,7 +25,7 @@ class ChannelDataUpdate < GetStream::BaseModel # @return [String] attr_accessor :team # @!attribute config_overrides - # @return [ChannelConfigOverrides] + # @return [ChannelConfigOverrides] Channel configuration overrides attr_accessor :config_overrides # @!attribute custom # @return [Object] diff --git a/lib/getstream_ruby/generated/models/channel_deleted_event.rb b/lib/getstream_ruby/generated/models/channel_deleted_event.rb index d415e62..db1e160 100644 --- a/lib/getstream_ruby/generated/models/channel_deleted_event.rb +++ b/lib/getstream_ruby/generated/models/channel_deleted_event.rb @@ -13,7 +13,7 @@ class ChannelDeletedEvent < GetStream::BaseModel # @return [DateTime] Date/time of creation attr_accessor :created_at # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute custom # @return [Object] diff --git a/lib/getstream_ruby/generated/models/channel_get_or_create_request.rb b/lib/getstream_ruby/generated/models/channel_get_or_create_request.rb index 856ddb6..03704a2 100644 --- a/lib/getstream_ruby/generated/models/channel_get_or_create_request.rb +++ b/lib/getstream_ruby/generated/models/channel_get_or_create_request.rb @@ -18,6 +18,9 @@ class ChannelGetOrCreateRequest < GetStream::BaseModel # @!attribute thread_unread_counts # @return [Boolean] attr_accessor :thread_unread_counts + # @!attribute member_custom_include + # @return [Array] Top-level keys of the message sender's channel-member custom data to include under member.custom (max 8 keys, 64 chars each) + attr_accessor :member_custom_include # @!attribute data # @return [ChannelInput] attr_accessor :data @@ -37,6 +40,7 @@ def initialize(attributes = {}) @hide_for_creator = attributes[:hide_for_creator] || attributes['hide_for_creator'] || nil @state = attributes[:state] || attributes['state'] || nil @thread_unread_counts = attributes[:thread_unread_counts] || attributes['thread_unread_counts'] || nil + @member_custom_include = attributes[:member_custom_include] || attributes['member_custom_include'] || nil @data = attributes[:data] || attributes['data'] || nil @members = attributes[:members] || attributes['members'] || nil @messages = attributes[:messages] || attributes['messages'] || nil @@ -49,6 +53,7 @@ def self.json_field_mappings hide_for_creator: 'hide_for_creator', state: 'state', thread_unread_counts: 'thread_unread_counts', + member_custom_include: 'member_custom_include', data: 'data', members: 'members', messages: 'messages', diff --git a/lib/getstream_ruby/generated/models/channel_hidden_event.rb b/lib/getstream_ruby/generated/models/channel_hidden_event.rb index a223032..9b17a6d 100644 --- a/lib/getstream_ruby/generated/models/channel_hidden_event.rb +++ b/lib/getstream_ruby/generated/models/channel_hidden_event.rb @@ -16,7 +16,7 @@ class ChannelHiddenEvent < GetStream::BaseModel # @return [DateTime] Date/time of creation attr_accessor :created_at # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute custom # @return [Object] diff --git a/lib/getstream_ruby/generated/models/channel_input.rb b/lib/getstream_ruby/generated/models/channel_input.rb index 9e48c58..c5d19f7 100644 --- a/lib/getstream_ruby/generated/models/channel_input.rb +++ b/lib/getstream_ruby/generated/models/channel_input.rb @@ -13,7 +13,7 @@ class ChannelInput < GetStream::BaseModel # @return [Boolean] Enable or disable auto translation attr_accessor :auto_translation_enabled # @!attribute auto_translation_language - # @return [String] Switch auto translation language + # @return [String] Language (or comma-separated list of languages) to translate to when auto translation is active attr_accessor :auto_translation_language # @!attribute created_by_id # @return [String] @@ -40,10 +40,10 @@ class ChannelInput < GetStream::BaseModel # @return [Array] attr_accessor :members # @!attribute config_overrides - # @return [ChannelConfigOverrides] + # @return [ChannelConfigOverrides] Channel configuration overrides attr_accessor :config_overrides # @!attribute created_by - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :created_by # @!attribute custom # @return [Object] diff --git a/lib/getstream_ruby/generated/models/channel_input_request.rb b/lib/getstream_ruby/generated/models/channel_input_request.rb index 124ddf9..ec1ea38 100644 --- a/lib/getstream_ruby/generated/models/channel_input_request.rb +++ b/lib/getstream_ruby/generated/models/channel_input_request.rb @@ -31,10 +31,10 @@ class ChannelInputRequest < GetStream::BaseModel # @return [Array] attr_accessor :members # @!attribute config_overrides - # @return [ConfigOverridesRequest] + # @return [ConfigOverridesRequest] Channel configuration overrides attr_accessor :config_overrides # @!attribute created_by - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :created_by # @!attribute custom # @return [Object] diff --git a/lib/getstream_ruby/generated/models/channel_member_partial_response.rb b/lib/getstream_ruby/generated/models/channel_member_partial_response.rb new file mode 100644 index 0000000..7e0cca9 --- /dev/null +++ b/lib/getstream_ruby/generated/models/channel_member_partial_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 ChannelMemberPartialResponse < GetStream::BaseModel + + # Model attributes + # @!attribute channel_role + # @return [String] Role of the member in the channel + attr_accessor :channel_role + # @!attribute notifications_muted + # @return [Boolean] Whether the user muted notifications for this channel + attr_accessor :notifications_muted + # @!attribute custom + # @return [Object] Channel-member custom fields projected via `member_custom_include` + attr_accessor :custom + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @channel_role = attributes[:channel_role] || attributes['channel_role'] + @notifications_muted = attributes[:notifications_muted] || attributes['notifications_muted'] + @custom = attributes[:custom] || attributes['custom'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + channel_role: 'channel_role', + notifications_muted: 'notifications_muted', + custom: 'custom' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/channel_member_request.rb b/lib/getstream_ruby/generated/models/channel_member_request.rb index 427aea8..da64c40 100644 --- a/lib/getstream_ruby/generated/models/channel_member_request.rb +++ b/lib/getstream_ruby/generated/models/channel_member_request.rb @@ -19,7 +19,7 @@ class ChannelMemberRequest < GetStream::BaseModel # @return [Object] attr_accessor :custom # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/channel_member_response.rb b/lib/getstream_ruby/generated/models/channel_member_response.rb index d8c575c..726cb6f 100644 --- a/lib/getstream_ruby/generated/models/channel_member_response.rb +++ b/lib/getstream_ruby/generated/models/channel_member_response.rb @@ -36,9 +36,15 @@ class ChannelMemberResponse < GetStream::BaseModel # @!attribute ban_expires # @return [DateTime] Expiration date of the ban attr_accessor :ban_expires + # @!attribute ban_from_future_channels + # @return [Boolean] Whether the member's ban also applies to channels the channel's creator will create in the future (an active future channel ban by the creator targets this member) + attr_accessor :ban_from_future_channels # @!attribute deleted_at # @return [DateTime] attr_accessor :deleted_at + # @!attribute future_channel_ban_expires + # @return [DateTime] Expiration date of the future channel ban; absent when the future channel ban is permanent + attr_accessor :future_channel_ban_expires # @!attribute invite_accepted_at # @return [DateTime] Date when invite was accepted attr_accessor :invite_accepted_at @@ -67,7 +73,7 @@ class ChannelMemberResponse < GetStream::BaseModel # @return [Array] attr_accessor :deleted_messages # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes @@ -82,7 +88,9 @@ def initialize(attributes = {}) @custom = attributes[:custom] || attributes['custom'] @archived_at = attributes[:archived_at] || attributes['archived_at'] || nil @ban_expires = attributes[:ban_expires] || attributes['ban_expires'] || nil + @ban_from_future_channels = attributes[:ban_from_future_channels] || attributes['ban_from_future_channels'] || nil @deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil + @future_channel_ban_expires = attributes[:future_channel_ban_expires] || attributes['future_channel_ban_expires'] || nil @invite_accepted_at = attributes[:invite_accepted_at] || attributes['invite_accepted_at'] || nil @invite_rejected_at = attributes[:invite_rejected_at] || attributes['invite_rejected_at'] || nil @invited = attributes[:invited] || attributes['invited'] || nil @@ -107,7 +115,9 @@ def self.json_field_mappings custom: 'custom', archived_at: 'archived_at', ban_expires: 'ban_expires', + ban_from_future_channels: 'ban_from_future_channels', deleted_at: 'deleted_at', + future_channel_ban_expires: 'future_channel_ban_expires', invite_accepted_at: 'invite_accepted_at', invite_rejected_at: 'invite_rejected_at', invited: 'invited', diff --git a/lib/getstream_ruby/generated/models/channel_messages_response.rb b/lib/getstream_ruby/generated/models/channel_messages_response.rb index 983907f..57ecdb5 100644 --- a/lib/getstream_ruby/generated/models/channel_messages_response.rb +++ b/lib/getstream_ruby/generated/models/channel_messages_response.rb @@ -13,7 +13,7 @@ class ChannelMessagesResponse < GetStream::BaseModel # @return [Array] List of messages attr_accessor :messages # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/channel_metadata.rb b/lib/getstream_ruby/generated/models/channel_metadata.rb new file mode 100644 index 0000000..1e6c2f2 --- /dev/null +++ b/lib/getstream_ruby/generated/models/channel_metadata.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 ChannelMetadata < GetStream::BaseModel + + # Model attributes + # @!attribute cid + # @return [String] + attr_accessor :cid + # @!attribute id + # @return [String] + attr_accessor :id + # @!attribute type + # @return [String] + attr_accessor :type + # @!attribute custom + # @return [Object] + attr_accessor :custom + # @!attribute last_message_at + # @return [DateTime] + attr_accessor :last_message_at + # @!attribute member_count + # @return [Integer] + attr_accessor :member_count + # @!attribute message_count + # @return [Integer] + attr_accessor :message_count + # @!attribute push_level + # @return [String] + attr_accessor :push_level + # @!attribute team + # @return [String] + attr_accessor :team + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @cid = attributes[:cid] || attributes['cid'] + @id = attributes[:id] || attributes['id'] + @type = attributes[:type] || attributes['type'] + @custom = attributes[:custom] || attributes['custom'] + @last_message_at = attributes[:last_message_at] || attributes['last_message_at'] || nil + @member_count = attributes[:member_count] || attributes['member_count'] || nil + @message_count = attributes[:message_count] || attributes['message_count'] || nil + @push_level = attributes[:push_level] || attributes['push_level'] || nil + @team = attributes[:team] || attributes['team'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + cid: 'cid', + id: 'id', + type: 'type', + custom: 'custom', + last_message_at: 'last_message_at', + member_count: 'member_count', + message_count: 'message_count', + push_level: 'push_level', + team: 'team' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/channel_mute.rb b/lib/getstream_ruby/generated/models/channel_mute.rb index 7dfaf4f..8e5cb7a 100644 --- a/lib/getstream_ruby/generated/models/channel_mute.rb +++ b/lib/getstream_ruby/generated/models/channel_mute.rb @@ -19,10 +19,10 @@ class ChannelMute < GetStream::BaseModel # @return [DateTime] Date/time of mute expiration attr_accessor :expires # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/channel_response.rb b/lib/getstream_ruby/generated/models/channel_response.rb index 1796d47..5ffdb61 100644 --- a/lib/getstream_ruby/generated/models/channel_response.rb +++ b/lib/getstream_ruby/generated/models/channel_response.rb @@ -37,7 +37,7 @@ class ChannelResponse < GetStream::BaseModel # @return [Boolean] Whether auto translation is enabled or not attr_accessor :auto_translation_enabled # @!attribute auto_translation_language - # @return [String] Language to translate to when auto translation is active + # @return [String] Language (or comma-separated list of languages) to translate to when auto translation is active attr_accessor :auto_translation_language # @!attribute blocked # @return [Boolean] Whether this channel is blocked by current user or not @@ -88,10 +88,10 @@ class ChannelResponse < GetStream::BaseModel # @return [ChannelConfigWithInfo] attr_accessor :config # @!attribute created_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :created_by # @!attribute truncated_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :truncated_by # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/channel_state_response.rb b/lib/getstream_ruby/generated/models/channel_state_response.rb index b580bff..b625f60 100644 --- a/lib/getstream_ruby/generated/models/channel_state_response.rb +++ b/lib/getstream_ruby/generated/models/channel_state_response.rb @@ -46,7 +46,7 @@ class ChannelStateResponse < GetStream::BaseModel # @return [Array] attr_accessor :watchers # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute draft # @return [DraftResponse] diff --git a/lib/getstream_ruby/generated/models/channel_state_response_fields.rb b/lib/getstream_ruby/generated/models/channel_state_response_fields.rb index 36ff083..9cc47c7 100644 --- a/lib/getstream_ruby/generated/models/channel_state_response_fields.rb +++ b/lib/getstream_ruby/generated/models/channel_state_response_fields.rb @@ -43,7 +43,7 @@ class ChannelStateResponseFields < GetStream::BaseModel # @return [Array] List of user who is watching the channel attr_accessor :watchers # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute draft # @return [DraftResponse] diff --git a/lib/getstream_ruby/generated/models/channel_truncated_event.rb b/lib/getstream_ruby/generated/models/channel_truncated_event.rb index bad97ec..02c88fc 100644 --- a/lib/getstream_ruby/generated/models/channel_truncated_event.rb +++ b/lib/getstream_ruby/generated/models/channel_truncated_event.rb @@ -13,7 +13,7 @@ class ChannelTruncatedEvent < GetStream::BaseModel # @return [DateTime] Date/time of creation attr_accessor :created_at # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute custom # @return [Object] @@ -49,7 +49,7 @@ class ChannelTruncatedEvent < GetStream::BaseModel # @return [Object] attr_accessor :channel_custom # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute user # @return [UserResponseCommonFields] diff --git a/lib/getstream_ruby/generated/models/channel_type_config.rb b/lib/getstream_ruby/generated/models/channel_type_config.rb index 2f56a42..1516e3b 100644 --- a/lib/getstream_ruby/generated/models/channel_type_config.rb +++ b/lib/getstream_ruby/generated/models/channel_type_config.rb @@ -118,7 +118,7 @@ class ChannelTypeConfig < GetStream::BaseModel # @return [Array] attr_accessor :blocklists # @!attribute automod_thresholds - # @return [Thresholds] + # @return [Thresholds] Sets thresholds for AI moderation attr_accessor :automod_thresholds # @!attribute chat_preferences # @return [ChatPreferences] diff --git a/lib/getstream_ruby/generated/models/channel_updated_event.rb b/lib/getstream_ruby/generated/models/channel_updated_event.rb index 779b3b7..46e6bfb 100644 --- a/lib/getstream_ruby/generated/models/channel_updated_event.rb +++ b/lib/getstream_ruby/generated/models/channel_updated_event.rb @@ -13,7 +13,7 @@ class ChannelUpdatedEvent < GetStream::BaseModel # @return [DateTime] Date/time of creation attr_accessor :created_at # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute custom # @return [Object] @@ -49,7 +49,7 @@ class ChannelUpdatedEvent < GetStream::BaseModel # @return [Object] attr_accessor :channel_custom # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute user # @return [UserResponseCommonFields] diff --git a/lib/getstream_ruby/generated/models/channel_visible_event.rb b/lib/getstream_ruby/generated/models/channel_visible_event.rb index 8ddeabc..5eac8aa 100644 --- a/lib/getstream_ruby/generated/models/channel_visible_event.rb +++ b/lib/getstream_ruby/generated/models/channel_visible_event.rb @@ -13,7 +13,7 @@ class ChannelVisibleEvent < GetStream::BaseModel # @return [DateTime] Date/time of creation attr_accessor :created_at # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute custom # @return [Object] diff --git a/lib/getstream_ruby/generated/models/chat_message_response.rb b/lib/getstream_ruby/generated/models/chat_message_response.rb index 0c7b488..e088133 100644 --- a/lib/getstream_ruby/generated/models/chat_message_response.rb +++ b/lib/getstream_ruby/generated/models/chat_message_response.rb @@ -76,7 +76,7 @@ class ChatMessageResponse < GetStream::BaseModel # @return [Hash] attr_accessor :reaction_scores # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute command # @return [String] @@ -133,13 +133,13 @@ class ChatMessageResponse < GetStream::BaseModel # @return [Hash>] attr_accessor :image_labels # @!attribute member - # @return [ChannelMemberResponse] + # @return [ChannelMemberPartialResponse] attr_accessor :member # @!attribute moderation # @return [ChatModerationV2Response] attr_accessor :moderation # @!attribute pinned_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :pinned_by # @!attribute poll # @return [PollResponseData] 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 index bab08b9..8e2681e 100644 --- a/lib/getstream_ruby/generated/models/chat_reaction_group_user_response.rb +++ b/lib/getstream_ruby/generated/models/chat_reaction_group_user_response.rb @@ -16,7 +16,7 @@ class ChatReactionGroupUserResponse < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/chat_reaction_response.rb b/lib/getstream_ruby/generated/models/chat_reaction_response.rb index 4cf2cb4..df9ddf9 100644 --- a/lib/getstream_ruby/generated/models/chat_reaction_response.rb +++ b/lib/getstream_ruby/generated/models/chat_reaction_response.rb @@ -31,7 +31,7 @@ class ChatReactionResponse < GetStream::BaseModel # @return [Object] attr_accessor :custom # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/chat_reminder_response_data.rb b/lib/getstream_ruby/generated/models/chat_reminder_response_data.rb index 11d88d3..7c438e0 100644 --- a/lib/getstream_ruby/generated/models/chat_reminder_response_data.rb +++ b/lib/getstream_ruby/generated/models/chat_reminder_response_data.rb @@ -31,7 +31,7 @@ class ChatReminderResponseData < GetStream::BaseModel # @return [ChatMessageResponse] attr_accessor :message # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/check_push_request.rb b/lib/getstream_ruby/generated/models/check_push_request.rb index 2661447..b28eb32 100644 --- a/lib/getstream_ruby/generated/models/check_push_request.rb +++ b/lib/getstream_ruby/generated/models/check_push_request.rb @@ -37,7 +37,7 @@ class CheckPushRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/check_request.rb b/lib/getstream_ruby/generated/models/check_request.rb index b698dbd..d86098e 100644 --- a/lib/getstream_ruby/generated/models/check_request.rb +++ b/lib/getstream_ruby/generated/models/check_request.rb @@ -43,7 +43,7 @@ class CheckRequest < GetStream::BaseModel # @return [Object] Additional moderation configuration options attr_accessor :options # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/client_event.rb b/lib/getstream_ruby/generated/models/client_event.rb index fb34299..5b5011a 100644 --- a/lib/getstream_ruby/generated/models/client_event.rb +++ b/lib/getstream_ruby/generated/models/client_event.rb @@ -33,6 +33,9 @@ class ClientEvent < GetStream::BaseModel # @!attribute join_attempt_id # @return [String] UUID generated by the client and shared across JoinInitiated and the join-lifecycle events (CoordinatorJoin, WSJoin, PeerConnectionConnect) of the same overall join attempt. Required on every join event except CoordinatorWS, which is reported before a join attempt is established. attr_accessor :join_attempt_id + # @!attribute join_reason + # @return [String] Reason the client initiated the join. Optional on CoordinatorJoin events; empty when not provided. + attr_accessor :join_reason # @!attribute microphone_permission_status # @return [String] Microphone permission status: INITIATED, FAILED, GRANTED, or NOT_INITIATED. Required on every MediaDevicePermission event. attr_accessor :microphone_permission_status @@ -99,6 +102,7 @@ def initialize(attributes = {}) @ice_state = attributes[:ice_state] || attributes['ice_state'] || nil @id = attributes[:id] || attributes['id'] || nil @join_attempt_id = attributes[:join_attempt_id] || attributes['join_attempt_id'] || nil + @join_reason = attributes[:join_reason] || attributes['join_reason'] || nil @microphone_permission_status = attributes[:microphone_permission_status] || attributes['microphone_permission_status'] || nil @outcome = attributes[:outcome] || attributes['outcome'] || nil @peer_connection = attributes[:peer_connection] || attributes['peer_connection'] || nil @@ -130,6 +134,7 @@ def self.json_field_mappings ice_state: 'ice_state', id: 'id', join_attempt_id: 'join_attempt_id', + join_reason: 'join_reason', microphone_permission_status: 'microphone_permission_status', outcome: 'outcome', peer_connection: 'peer_connection', diff --git a/lib/getstream_ruby/generated/models/closed_caption_event.rb b/lib/getstream_ruby/generated/models/closed_caption_event.rb index 4864652..23d06a0 100644 --- a/lib/getstream_ruby/generated/models/closed_caption_event.rb +++ b/lib/getstream_ruby/generated/models/closed_caption_event.rb @@ -16,7 +16,7 @@ class ClosedCaptionEvent < GetStream::BaseModel # @return [DateTime] attr_accessor :created_at # @!attribute closed_caption - # @return [CallClosedCaption] + # @return [CallClosedCaption] CallClosedCaption represents a closed caption of a call. attr_accessor :closed_caption # @!attribute type # @return [String] The type of event: "call.closed_caption" in this case diff --git a/lib/getstream_ruby/generated/models/comment_response.rb b/lib/getstream_ruby/generated/models/comment_response.rb index fe41434..9780903 100644 --- a/lib/getstream_ruby/generated/models/comment_response.rb +++ b/lib/getstream_ruby/generated/models/comment_response.rb @@ -55,7 +55,7 @@ class CommentResponse < GetStream::BaseModel # @return [Array] Current user's reactions to this activity attr_accessor :own_reactions # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute controversy_score # @return [Float] Controversy score of the comment diff --git a/lib/getstream_ruby/generated/models/concurrency_minute.rb b/lib/getstream_ruby/generated/models/concurrency_minute.rb new file mode 100644 index 0000000..92e66db --- /dev/null +++ b/lib/getstream_ruby/generated/models/concurrency_minute.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 ConcurrencyMinute < GetStream::BaseModel + + # Model attributes + # @!attribute joins + # @return [Integer] + attr_accessor :joins + # @!attribute leaves + # @return [Integer] + attr_accessor :leaves + # @!attribute max + # @return [Integer] + attr_accessor :max + # @!attribute min + # @return [Integer] + attr_accessor :min + # @!attribute minute + # @return [String] + attr_accessor :minute + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @joins = attributes[:joins] || attributes['joins'] + @leaves = attributes[:leaves] || attributes['leaves'] + @max = attributes[:max] || attributes['max'] + @min = attributes[:min] || attributes['min'] + @minute = attributes[:minute] || attributes['minute'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + joins: 'joins', + leaves: 'leaves', + max: 'max', + min: 'min', + minute: 'minute' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/coverage.rb b/lib/getstream_ruby/generated/models/coverage.rb new file mode 100644 index 0000000..ecf71b2 --- /dev/null +++ b/lib/getstream_ruby/generated/models/coverage.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 Coverage < GetStream::BaseModel + + # Model attributes + # @!attribute publisher_encoding_profiles + # @return [Integer] + attr_accessor :publisher_encoding_profiles + # @!attribute absent + # @return [Array] + attr_accessor :absent + # @!attribute metrics_pct + # @return [MetricsPct] + attr_accessor :metrics_pct + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @publisher_encoding_profiles = attributes[:publisher_encoding_profiles] || attributes['publisher_encoding_profiles'] + @absent = attributes[:absent] || attributes['absent'] + @metrics_pct = attributes[:metrics_pct] || attributes['metrics_pct'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + publisher_encoding_profiles: 'publisher_encoding_profiles', + absent: 'absent', + metrics_pct: 'metrics_pct' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/create_block_list_request.rb b/lib/getstream_ruby/generated/models/create_block_list_request.rb index 39c3ba2..586c048 100644 --- a/lib/getstream_ruby/generated/models/create_block_list_request.rb +++ b/lib/getstream_ruby/generated/models/create_block_list_request.rb @@ -33,6 +33,12 @@ class CreateBlockListRequest < GetStream::BaseModel # @!attribute type # @return [String] Block list type. One of: regex, domain, domain_allowlist, email, email_allowlist, word attr_accessor :type + # @!attribute user_id + # @return [String] + attr_accessor :user_id + # @!attribute user + # @return [UserRequest] User request object + attr_accessor :user # Initialize with attributes def initialize(attributes = {}) @@ -45,6 +51,8 @@ def initialize(attributes = {}) @is_substring_matching_enabled = attributes[:is_substring_matching_enabled] || attributes['is_substring_matching_enabled'] || nil @team = attributes[:team] || attributes['team'] || nil @type = attributes[:type] || attributes['type'] || nil + @user_id = attributes[:user_id] || attributes['user_id'] || nil + @user = attributes[:user] || attributes['user'] || nil end # Override field mappings for JSON serialization @@ -57,7 +65,9 @@ def self.json_field_mappings is_plural_check_enabled: 'is_plural_check_enabled', is_substring_matching_enabled: 'is_substring_matching_enabled', team: 'team', - type: 'type' + type: 'type', + user_id: 'user_id', + user: 'user' } end end diff --git a/lib/getstream_ruby/generated/models/create_block_list_response.rb b/lib/getstream_ruby/generated/models/create_block_list_response.rb index 5981a29..ba61e9e 100644 --- a/lib/getstream_ruby/generated/models/create_block_list_response.rb +++ b/lib/getstream_ruby/generated/models/create_block_list_response.rb @@ -13,7 +13,7 @@ class CreateBlockListResponse < GetStream::BaseModel # @return [String] Duration of the request in milliseconds attr_accessor :duration # @!attribute blocklist - # @return [BlockListResponse] + # @return [BlockListResponse] Block list contains restricted words attr_accessor :blocklist # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/create_channel_type_response.rb b/lib/getstream_ruby/generated/models/create_channel_type_response.rb index e9314f4..e442ddc 100644 --- a/lib/getstream_ruby/generated/models/create_channel_type_response.rb +++ b/lib/getstream_ruby/generated/models/create_channel_type_response.rb @@ -121,7 +121,7 @@ class CreateChannelTypeResponse < GetStream::BaseModel # @return [Array] attr_accessor :blocklists # @!attribute automod_thresholds - # @return [Thresholds] + # @return [Thresholds] Sets thresholds for AI moderation attr_accessor :automod_thresholds # @!attribute chat_preferences # @return [ChatPreferences] diff --git a/lib/getstream_ruby/generated/models/create_collections_request.rb b/lib/getstream_ruby/generated/models/create_collections_request.rb index e040001..8df051e 100644 --- a/lib/getstream_ruby/generated/models/create_collections_request.rb +++ b/lib/getstream_ruby/generated/models/create_collections_request.rb @@ -16,7 +16,7 @@ class CreateCollectionsRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/create_command_response.rb b/lib/getstream_ruby/generated/models/create_command_response.rb index 1d9cc3a..1f51059 100644 --- a/lib/getstream_ruby/generated/models/create_command_response.rb +++ b/lib/getstream_ruby/generated/models/create_command_response.rb @@ -13,7 +13,7 @@ class CreateCommandResponse < GetStream::BaseModel # @return [String] attr_accessor :duration # @!attribute command - # @return [Command] + # @return [Command] Represents custom chat command attr_accessor :command # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/create_device_request.rb b/lib/getstream_ruby/generated/models/create_device_request.rb index a2f60a4..e94bb4f 100644 --- a/lib/getstream_ruby/generated/models/create_device_request.rb +++ b/lib/getstream_ruby/generated/models/create_device_request.rb @@ -28,7 +28,7 @@ class CreateDeviceRequest < GetStream::BaseModel # @return [Boolean] When true the token is for Apple VoIP push notifications attr_accessor :voip_token # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/create_external_storage_request.rb b/lib/getstream_ruby/generated/models/create_external_storage_request.rb index 22786f5..e479d1b 100644 --- a/lib/getstream_ruby/generated/models/create_external_storage_request.rb +++ b/lib/getstream_ruby/generated/models/create_external_storage_request.rb @@ -25,10 +25,10 @@ class CreateExternalStorageRequest < GetStream::BaseModel # @return [String] The path prefix to use for storing files attr_accessor :path # @!attribute aws_s3 - # @return [S3Request] + # @return [S3Request] Config for creating Amazon S3 storage. attr_accessor :aws_s3 # @!attribute azure_blob - # @return [AzureRequest] + # @return [AzureRequest] Config for creating Azure Blob Storage storage attr_accessor :azure_blob # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/create_guest_request.rb b/lib/getstream_ruby/generated/models/create_guest_request.rb index 74898ff..604aa7c 100644 --- a/lib/getstream_ruby/generated/models/create_guest_request.rb +++ b/lib/getstream_ruby/generated/models/create_guest_request.rb @@ -10,7 +10,7 @@ class CreateGuestRequest < GetStream::BaseModel # Model attributes # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/create_guest_response.rb b/lib/getstream_ruby/generated/models/create_guest_response.rb index 4f58542..6f1f1b4 100644 --- a/lib/getstream_ruby/generated/models/create_guest_response.rb +++ b/lib/getstream_ruby/generated/models/create_guest_response.rb @@ -16,7 +16,7 @@ class CreateGuestResponse < GetStream::BaseModel # @return [String] Duration of the request in milliseconds attr_accessor :duration # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes 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 index ed60de4..ef4b59a 100644 --- a/lib/getstream_ruby/generated/models/create_import_v2_task_request.rb +++ b/lib/getstream_ruby/generated/models/create_import_v2_task_request.rb @@ -19,7 +19,7 @@ class CreateImportV2TaskRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/create_policy_test_set_request.rb b/lib/getstream_ruby/generated/models/create_policy_test_set_request.rb new file mode 100644 index 0000000..8046ad5 --- /dev/null +++ b/lib/getstream_ruby/generated/models/create_policy_test_set_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 CreatePolicyTestSetRequest < GetStream::BaseModel + + # Model attributes + # @!attribute name + # @return [String] Display name; unique within an app + attr_accessor :name + # @!attribute config_key + # @return [String] Moderation config key (default: app default) + attr_accessor :config_key + # @!attribute mode + # @return [String] Execution target: 'check' or 'labels'. Optional — defaults to 'labels' when the org has the labels API enabled, 'check' otherwise + attr_accessor :mode + # @!attribute team + # @return [String] Team scope for the config (optional) + attr_accessor :team + # @!attribute rows + # @return [Array] Messages to test; capped at 1000. Mutually exclusive with seed + attr_accessor :rows + # @!attribute seed + # @return [PolicyTestSeedSpec] + attr_accessor :seed + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @name = attributes[:name] || attributes['name'] + @config_key = attributes[:config_key] || attributes['config_key'] || nil + @mode = attributes[:mode] || attributes['mode'] || nil + @team = attributes[:team] || attributes['team'] || nil + @rows = attributes[:rows] || attributes['rows'] || nil + @seed = attributes[:seed] || attributes['seed'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + name: 'name', + config_key: 'config_key', + mode: 'mode', + team: 'team', + rows: 'rows', + seed: 'seed' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/create_poll_option_request.rb b/lib/getstream_ruby/generated/models/create_poll_option_request.rb index 1e71d95..1770cb1 100644 --- a/lib/getstream_ruby/generated/models/create_poll_option_request.rb +++ b/lib/getstream_ruby/generated/models/create_poll_option_request.rb @@ -16,10 +16,10 @@ class CreatePollOptionRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute custom - # @return [Object] + # @return [Object] Custom data for this object attr_accessor :custom # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes @@ -27,7 +27,7 @@ def initialize(attributes = {}) super(attributes) @text = attributes[:text] || attributes['text'] @user_id = attributes[:user_id] || attributes['user_id'] || nil - @custom = attributes[:custom] || attributes['Custom'] || nil + @custom = attributes[:custom] || attributes['custom'] || nil @user = attributes[:user] || attributes['user'] || nil end @@ -36,7 +36,7 @@ def self.json_field_mappings { text: 'text', user_id: 'user_id', - custom: 'Custom', + custom: 'custom', user: 'user' } end diff --git a/lib/getstream_ruby/generated/models/create_poll_request.rb b/lib/getstream_ruby/generated/models/create_poll_request.rb index b28bbeb..a52bb60 100644 --- a/lib/getstream_ruby/generated/models/create_poll_request.rb +++ b/lib/getstream_ruby/generated/models/create_poll_request.rb @@ -43,10 +43,10 @@ class CreatePollRequest < GetStream::BaseModel # @return [Array] attr_accessor :options # @!attribute custom - # @return [Object] + # @return [Object] Custom data for this object attr_accessor :custom # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes @@ -63,7 +63,7 @@ def initialize(attributes = {}) @user_id = attributes[:user_id] || attributes['user_id'] || nil @voting_visibility = attributes[:voting_visibility] || attributes['voting_visibility'] || nil @options = attributes[:options] || attributes['options'] || nil - @custom = attributes[:custom] || attributes['Custom'] || nil + @custom = attributes[:custom] || attributes['custom'] || nil @user = attributes[:user] || attributes['user'] || nil end @@ -81,7 +81,7 @@ def self.json_field_mappings user_id: 'user_id', voting_visibility: 'voting_visibility', options: 'options', - custom: 'Custom', + custom: 'custom', user: 'user' } end diff --git a/lib/getstream_ruby/generated/models/create_queue_request.rb b/lib/getstream_ruby/generated/models/create_queue_request.rb index 32340d6..f2535e8 100644 --- a/lib/getstream_ruby/generated/models/create_queue_request.rb +++ b/lib/getstream_ruby/generated/models/create_queue_request.rb @@ -28,7 +28,7 @@ class CreateQueueRequest < GetStream::BaseModel # @return [Object] attr_accessor :filters # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/create_reminder_request.rb b/lib/getstream_ruby/generated/models/create_reminder_request.rb index 4aec92b..f8e6173 100644 --- a/lib/getstream_ruby/generated/models/create_reminder_request.rb +++ b/lib/getstream_ruby/generated/models/create_reminder_request.rb @@ -16,7 +16,7 @@ class CreateReminderRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/create_sip_trunk_response.rb b/lib/getstream_ruby/generated/models/create_sip_trunk_response.rb index b03253d..9a80767 100644 --- a/lib/getstream_ruby/generated/models/create_sip_trunk_response.rb +++ b/lib/getstream_ruby/generated/models/create_sip_trunk_response.rb @@ -13,7 +13,7 @@ class CreateSIPTrunkResponse < GetStream::BaseModel # @return [String] attr_accessor :duration # @!attribute sip_trunk - # @return [SIPTrunkResponse] + # @return [SIPTrunkResponse] SIP trunk information attr_accessor :sip_trunk # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/custom_check_request.rb b/lib/getstream_ruby/generated/models/custom_check_request.rb index 828eee3..62cd7f0 100644 --- a/lib/getstream_ruby/generated/models/custom_check_request.rb +++ b/lib/getstream_ruby/generated/models/custom_check_request.rb @@ -25,10 +25,10 @@ class CustomCheckRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute moderation_payload - # @return [ModerationPayloadRequest] + # @return [ModerationPayloadRequest] Content payload for moderation attr_accessor :moderation_payload # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/custom_video_event.rb b/lib/getstream_ruby/generated/models/custom_video_event.rb index 45728a5..97872e0 100644 --- a/lib/getstream_ruby/generated/models/custom_video_event.rb +++ b/lib/getstream_ruby/generated/models/custom_video_event.rb @@ -19,7 +19,7 @@ class CustomVideoEvent < GetStream::BaseModel # @return [Object] Custom data for this object attr_accessor :custom # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute type # @return [String] The type of event, "custom" in this case diff --git a/lib/getstream_ruby/generated/models/daily_digest_call_session_summary.rb b/lib/getstream_ruby/generated/models/daily_digest_call_session_summary.rb new file mode 100644 index 0000000..4d69527 --- /dev/null +++ b/lib/getstream_ruby/generated/models/daily_digest_call_session_summary.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 DailyDigestCallSessionSummary < GetStream::BaseModel + + # Model attributes + # @!attribute call_cid + # @return [String] + attr_accessor :call_cid + # @!attribute call_session_id + # @return [String] + attr_accessor :call_session_id + # @!attribute has_digest + # @return [Boolean] + attr_accessor :has_digest + # @!attribute counts + # @return [CallStatsParticipantCounts] + attr_accessor :counts + # @!attribute digest_error + # @return [String] + attr_accessor :digest_error + # @!attribute session_ended_at + # @return [String] + attr_accessor :session_ended_at + # @!attribute session_started_at + # @return [String] + attr_accessor :session_started_at + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @call_cid = attributes[:call_cid] || attributes['call_cid'] + @call_session_id = attributes[:call_session_id] || attributes['call_session_id'] + @has_digest = attributes[:has_digest] || attributes['has_digest'] + @counts = attributes[:counts] || attributes['counts'] + @digest_error = attributes[:digest_error] || attributes['digest_error'] || nil + @session_ended_at = attributes[:session_ended_at] || attributes['session_ended_at'] || nil + @session_started_at = attributes[:session_started_at] || attributes['session_started_at'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + call_cid: 'call_cid', + call_session_id: 'call_session_id', + has_digest: 'has_digest', + counts: 'counts', + digest_error: 'digest_error', + session_ended_at: 'session_ended_at', + session_started_at: 'session_started_at' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/deactivate_user_response.rb b/lib/getstream_ruby/generated/models/deactivate_user_response.rb index f9dcb13..b4338a1 100644 --- a/lib/getstream_ruby/generated/models/deactivate_user_response.rb +++ b/lib/getstream_ruby/generated/models/deactivate_user_response.rb @@ -13,7 +13,7 @@ class DeactivateUserResponse < GetStream::BaseModel # @return [String] Duration of the request in milliseconds attr_accessor :duration # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/delete_activities_request.rb b/lib/getstream_ruby/generated/models/delete_activities_request.rb index aad42c9..f24d634 100644 --- a/lib/getstream_ruby/generated/models/delete_activities_request.rb +++ b/lib/getstream_ruby/generated/models/delete_activities_request.rb @@ -22,7 +22,7 @@ class DeleteActivitiesRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/delete_call_response.rb b/lib/getstream_ruby/generated/models/delete_call_response.rb index 88a4b69..7f45cc3 100644 --- a/lib/getstream_ruby/generated/models/delete_call_response.rb +++ b/lib/getstream_ruby/generated/models/delete_call_response.rb @@ -13,7 +13,7 @@ class DeleteCallResponse < GetStream::BaseModel # @return [String] attr_accessor :duration # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # @!attribute task_id # @return [String] diff --git a/lib/getstream_ruby/generated/models/delete_channel_response.rb b/lib/getstream_ruby/generated/models/delete_channel_response.rb index c327e45..51327a6 100644 --- a/lib/getstream_ruby/generated/models/delete_channel_response.rb +++ b/lib/getstream_ruby/generated/models/delete_channel_response.rb @@ -13,7 +13,7 @@ class DeleteChannelResponse < GetStream::BaseModel # @return [String] Duration of the request in milliseconds attr_accessor :duration # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/delete_message_response.rb b/lib/getstream_ruby/generated/models/delete_message_response.rb index 59b0ff6..ffc400e 100644 --- a/lib/getstream_ruby/generated/models/delete_message_response.rb +++ b/lib/getstream_ruby/generated/models/delete_message_response.rb @@ -13,7 +13,7 @@ class DeleteMessageResponse < GetStream::BaseModel # @return [String] Duration of the request in milliseconds attr_accessor :duration # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/delete_queue_request.rb b/lib/getstream_ruby/generated/models/delete_queue_request.rb index e2e9470..ac6577c 100644 --- a/lib/getstream_ruby/generated/models/delete_queue_request.rb +++ b/lib/getstream_ruby/generated/models/delete_queue_request.rb @@ -13,7 +13,7 @@ class DeleteQueueRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/delete_reaction_response.rb b/lib/getstream_ruby/generated/models/delete_reaction_response.rb index 1807ff0..1b962f9 100644 --- a/lib/getstream_ruby/generated/models/delete_reaction_response.rb +++ b/lib/getstream_ruby/generated/models/delete_reaction_response.rb @@ -13,7 +13,7 @@ class DeleteReactionResponse < GetStream::BaseModel # @return [String] Duration of the request in milliseconds attr_accessor :duration # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute reaction # @return [ReactionResponse] diff --git a/lib/getstream_ruby/generated/models/delete_user_messages_request_payload.rb b/lib/getstream_ruby/generated/models/delete_user_messages_request_payload.rb new file mode 100644 index 0000000..7b58d76 --- /dev/null +++ b/lib/getstream_ruby/generated/models/delete_user_messages_request_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 + # Configuration for deleting all of a user's chat messages without banning them or deleting their account + class DeleteUserMessagesRequestPayload < GetStream::BaseModel + + # Model attributes + # @!attribute delete_messages + # @return [String] Message deletion mode: soft, pruning, or hard + attr_accessor :delete_messages + # @!attribute channel_cid + # @return [String] Optional: scope deletion to a single channel (alternative to app-wide deletion) + attr_accessor :channel_cid + # @!attribute delete_reactions + # @return [Boolean] Whether to also delete the user's reactions on other users' messages + attr_accessor :delete_reactions + # @!attribute entity_id + # @return [String] ID of the user whose messages should be deleted (alternative to item_id) + attr_accessor :entity_id + # @!attribute entity_type + # @return [String] Type of the entity + attr_accessor :entity_type + # @!attribute reason + # @return [String] Reason for the deletion + attr_accessor :reason + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @delete_messages = attributes[:delete_messages] || attributes['delete_messages'] + @channel_cid = attributes[:channel_cid] || attributes['channel_cid'] || nil + @delete_reactions = attributes[:delete_reactions] || attributes['delete_reactions'] || nil + @entity_id = attributes[:entity_id] || attributes['entity_id'] || nil + @entity_type = attributes[:entity_type] || attributes['entity_type'] || nil + @reason = attributes[:reason] || attributes['reason'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + delete_messages: 'delete_messages', + channel_cid: 'channel_cid', + delete_reactions: 'delete_reactions', + entity_id: 'entity_id', + entity_type: 'entity_type', + reason: 'reason' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/delivery_zone_segment.rb b/lib/getstream_ruby/generated/models/delivery_zone_segment.rb new file mode 100644 index 0000000..f608b04 --- /dev/null +++ b/lib/getstream_ruby/generated/models/delivery_zone_segment.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 DeliveryZoneSegment < GetStream::BaseModel + + # Model attributes + # @!attribute key + # @return [String] + attr_accessor :key + # @!attribute outlier + # @return [Boolean] + attr_accessor :outlier + # @!attribute sessions + # @return [Integer] + attr_accessor :sessions + # @!attribute avg_quality_score + # @return [Float] + attr_accessor :avg_quality_score + # @!attribute p5_quality_score + # @return [Float] + attr_accessor :p5_quality_score + # @!attribute poor_pct + # @return [Float] + attr_accessor :poor_pct + # @!attribute share_pct + # @return [Float] + attr_accessor :share_pct + # @!attribute watch_share_pct + # @return [Float] + attr_accessor :watch_share_pct + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @key = attributes[:key] || attributes['key'] + @outlier = attributes[:outlier] || attributes['outlier'] + @sessions = attributes[:sessions] || attributes['sessions'] + @avg_quality_score = attributes[:avg_quality_score] || attributes['avg_quality_score'] || nil + @p5_quality_score = attributes[:p5_quality_score] || attributes['p5_quality_score'] || nil + @poor_pct = attributes[:poor_pct] || attributes['poor_pct'] || nil + @share_pct = attributes[:share_pct] || attributes['share_pct'] || nil + @watch_share_pct = attributes[:watch_share_pct] || attributes['watch_share_pct'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + key: 'key', + outlier: 'outlier', + sessions: 'sessions', + avg_quality_score: 'avg_quality_score', + p5_quality_score: 'p5_quality_score', + poor_pct: 'poor_pct', + share_pct: 'share_pct', + watch_share_pct: 'watch_share_pct' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/draft_response.rb b/lib/getstream_ruby/generated/models/draft_response.rb index 74ae6d6..52b9ed7 100644 --- a/lib/getstream_ruby/generated/models/draft_response.rb +++ b/lib/getstream_ruby/generated/models/draft_response.rb @@ -16,19 +16,19 @@ class DraftResponse < GetStream::BaseModel # @return [DateTime] attr_accessor :created_at # @!attribute message - # @return [DraftPayloadResponse] + # @return [DraftPayloadResponse] Contains the draft message content attr_accessor :message # @!attribute parent_id # @return [String] attr_accessor :parent_id # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute parent_message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :parent_message # @!attribute quoted_message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :quoted_message # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/encoding_profile.rb b/lib/getstream_ruby/generated/models/encoding_profile.rb new file mode 100644 index 0000000..a402da9 --- /dev/null +++ b/lib/getstream_ruby/generated/models/encoding_profile.rb @@ -0,0 +1,101 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class EncodingProfile < GetStream::BaseModel + + # Model attributes + # @!attribute getstats_snapshots + # @return [Integer] + attr_accessor :getstats_snapshots + # @!attribute source_file + # @return [String] + attr_accessor :source_file + # @!attribute svc_modes + # @return [Array] + attr_accessor :svc_modes + # @!attribute quality_limitation_durations_s + # @return [Hash] + attr_accessor :quality_limitation_durations_s + # @!attribute quality_limitation_samples + # @return [Hash] + attr_accessor :quality_limitation_samples + # @!attribute avg_send_kbps + # @return [Integer] + attr_accessor :avg_send_kbps + # @!attribute codec + # @return [String] + attr_accessor :codec + # @!attribute encoder_impl + # @return [String] + attr_accessor :encoder_impl + # @!attribute fps_p10 + # @return [Integer] + attr_accessor :fps_p10 + # @!attribute fps_p50 + # @return [Integer] + attr_accessor :fps_p50 + # @!attribute hardware_encode + # @return [Boolean] + attr_accessor :hardware_encode + # @!attribute ladder_type + # @return [String] + attr_accessor :ladder_type + # @!attribute power_efficient + # @return [Boolean] + attr_accessor :power_efficient + # @!attribute resolution + # @return [String] + attr_accessor :resolution + # @!attribute simulcast_layers + # @return [Integer] + attr_accessor :simulcast_layers + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @getstats_snapshots = attributes[:getstats_snapshots] || attributes['getstats_snapshots'] + @source_file = attributes[:source_file] || attributes['source_file'] + @svc_modes = attributes[:svc_modes] || attributes['svc_modes'] + @quality_limitation_durations_s = attributes[:quality_limitation_durations_s] || attributes['quality_limitation_durations_s'] + @quality_limitation_samples = attributes[:quality_limitation_samples] || attributes['quality_limitation_samples'] + @avg_send_kbps = attributes[:avg_send_kbps] || attributes['avg_send_kbps'] || nil + @codec = attributes[:codec] || attributes['codec'] || nil + @encoder_impl = attributes[:encoder_impl] || attributes['encoder_impl'] || nil + @fps_p10 = attributes[:fps_p10] || attributes['fps_p10'] || nil + @fps_p50 = attributes[:fps_p50] || attributes['fps_p50'] || nil + @hardware_encode = attributes[:hardware_encode] || attributes['hardware_encode'] || nil + @ladder_type = attributes[:ladder_type] || attributes['ladder_type'] || nil + @power_efficient = attributes[:power_efficient] || attributes['power_efficient'] || nil + @resolution = attributes[:resolution] || attributes['resolution'] || nil + @simulcast_layers = attributes[:simulcast_layers] || attributes['simulcast_layers'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + getstats_snapshots: 'getstats_snapshots', + source_file: 'source_file', + svc_modes: 'svc_modes', + quality_limitation_durations_s: 'quality_limitation_durations_s', + quality_limitation_samples: 'quality_limitation_samples', + avg_send_kbps: 'avg_send_kbps', + codec: 'codec', + encoder_impl: 'encoder_impl', + fps_p10: 'fps_p10', + fps_p50: 'fps_p50', + hardware_encode: 'hardware_encode', + ladder_type: 'ladder_type', + power_efficient: 'power_efficient', + resolution: 'resolution', + simulcast_layers: 'simulcast_layers' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/encryption_settings_request.rb b/lib/getstream_ruby/generated/models/encryption_settings_request.rb new file mode 100644 index 0000000..d148ceb --- /dev/null +++ b/lib/getstream_ruby/generated/models/encryption_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 EncryptionSettingsRequest < GetStream::BaseModel + + # Model attributes + # @!attribute mode + # @return [String] Encryption mode. One of: available, disabled, auto-on + attr_accessor :mode + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @mode = attributes[:mode] || attributes['mode'] || nil + 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/encryption_settings_response.rb b/lib/getstream_ruby/generated/models/encryption_settings_response.rb new file mode 100644 index 0000000..ff1cf59 --- /dev/null +++ b/lib/getstream_ruby/generated/models/encryption_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 + # EncryptionSettings is the payload for end-to-end encryption settings + class EncryptionSettingsResponse < GetStream::BaseModel + + # Model attributes + # @!attribute mode + # @return [String] the resolved encryption mode for the call + 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/event_request.rb b/lib/getstream_ruby/generated/models/event_request.rb index ec92537..8755158 100644 --- a/lib/getstream_ruby/generated/models/event_request.rb +++ b/lib/getstream_ruby/generated/models/event_request.rb @@ -22,7 +22,7 @@ class EventRequest < GetStream::BaseModel # @return [Object] attr_accessor :custom # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/event_response.rb b/lib/getstream_ruby/generated/models/event_response.rb index 5eb5cfd..fa38db3 100644 --- a/lib/getstream_ruby/generated/models/event_response.rb +++ b/lib/getstream_ruby/generated/models/event_response.rb @@ -13,7 +13,7 @@ class EventResponse < GetStream::BaseModel # @return [String] Duration of the request in milliseconds attr_accessor :duration # @!attribute event - # @return [WSEvent] + # @return [WSEvent] Represents an BaseEvent that happened in Stream Chat attr_accessor :event # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/export_channels_request.rb b/lib/getstream_ruby/generated/models/export_channels_request.rb index 817c97c..06d3c3c 100644 --- a/lib/getstream_ruby/generated/models/export_channels_request.rb +++ b/lib/getstream_ruby/generated/models/export_channels_request.rb @@ -18,6 +18,9 @@ class ExportChannelsRequest < GetStream::BaseModel # @!attribute export_users # @return [Boolean] attr_accessor :export_users + # @!attribute format + # @return [String] Output format: 'json' (default) or 'csv'. csv requires version=v2 and is incompatible with export_users + attr_accessor :format # @!attribute include_soft_deleted_channels # @return [Boolean] Set if you want to include deleted channels attr_accessor :include_soft_deleted_channels @@ -27,6 +30,9 @@ class ExportChannelsRequest < GetStream::BaseModel # @!attribute version # @return [String] Export version attr_accessor :version + # @!attribute include_fields + # @return [Array] For csv format: subset of message columns to include (defaults to a standard set) + attr_accessor :include_fields # Initialize with attributes def initialize(attributes = {}) @@ -34,9 +40,11 @@ def initialize(attributes = {}) @channels = attributes[:channels] || attributes['channels'] @clear_deleted_message_text = attributes[:clear_deleted_message_text] || attributes['clear_deleted_message_text'] || nil @export_users = attributes[:export_users] || attributes['export_users'] || nil + @format = attributes[:format] || attributes['format'] || nil @include_soft_deleted_channels = attributes[:include_soft_deleted_channels] || attributes['include_soft_deleted_channels'] || nil @include_truncated_messages = attributes[:include_truncated_messages] || attributes['include_truncated_messages'] || nil @version = attributes[:version] || attributes['version'] || nil + @include_fields = attributes[:include_fields] || attributes['include_fields'] || nil end # Override field mappings for JSON serialization @@ -45,9 +53,11 @@ def self.json_field_mappings channels: 'channels', clear_deleted_message_text: 'clear_deleted_message_text', export_users: 'export_users', + format: 'format', include_soft_deleted_channels: 'include_soft_deleted_channels', include_truncated_messages: 'include_truncated_messages', - version: 'version' + version: 'version', + include_fields: 'include_fields' } end end diff --git a/lib/getstream_ruby/generated/models/export_user_response.rb b/lib/getstream_ruby/generated/models/export_user_response.rb index 4955dd6..72190ff 100644 --- a/lib/getstream_ruby/generated/models/export_user_response.rb +++ b/lib/getstream_ruby/generated/models/export_user_response.rb @@ -19,7 +19,7 @@ class ExportUserResponse < GetStream::BaseModel # @return [Array] List of exported reactions attr_accessor :reactions # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/feed_member_response.rb b/lib/getstream_ruby/generated/models/feed_member_response.rb index d4709c3..6125dd7 100644 --- a/lib/getstream_ruby/generated/models/feed_member_response.rb +++ b/lib/getstream_ruby/generated/models/feed_member_response.rb @@ -22,7 +22,7 @@ class FeedMemberResponse < GetStream::BaseModel # @return [DateTime] When the membership was last updated attr_accessor :updated_at # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute invite_accepted_at # @return [DateTime] When the invite was accepted diff --git a/lib/getstream_ruby/generated/models/feed_response.rb b/lib/getstream_ruby/generated/models/feed_response.rb index d968512..4afd327 100644 --- a/lib/getstream_ruby/generated/models/feed_response.rb +++ b/lib/getstream_ruby/generated/models/feed_response.rb @@ -46,7 +46,7 @@ class FeedResponse < GetStream::BaseModel # @return [DateTime] When the feed was last updated attr_accessor :updated_at # @!attribute created_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :created_by # @!attribute deleted_at # @return [DateTime] When the feed was deleted diff --git a/lib/getstream_ruby/generated/models/feed_suggestion_response.rb b/lib/getstream_ruby/generated/models/feed_suggestion_response.rb index efeb0c6..b019014 100644 --- a/lib/getstream_ruby/generated/models/feed_suggestion_response.rb +++ b/lib/getstream_ruby/generated/models/feed_suggestion_response.rb @@ -46,7 +46,7 @@ class FeedSuggestionResponse < GetStream::BaseModel # @return [DateTime] When the feed was last updated attr_accessor :updated_at # @!attribute created_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :created_by # @!attribute deleted_at # @return [DateTime] When the feed was deleted diff --git a/lib/getstream_ruby/generated/models/feeds_bookmark_response.rb b/lib/getstream_ruby/generated/models/feeds_bookmark_response.rb index a759735..a20dcf8 100644 --- a/lib/getstream_ruby/generated/models/feeds_bookmark_response.rb +++ b/lib/getstream_ruby/generated/models/feeds_bookmark_response.rb @@ -22,7 +22,7 @@ class FeedsBookmarkResponse < GetStream::BaseModel # @return [DateTime] attr_accessor :updated_at # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute activity_id # @return [String] diff --git a/lib/getstream_ruby/generated/models/feeds_feed_response.rb b/lib/getstream_ruby/generated/models/feeds_feed_response.rb index 411e31d..e6c8946 100644 --- a/lib/getstream_ruby/generated/models/feeds_feed_response.rb +++ b/lib/getstream_ruby/generated/models/feeds_feed_response.rb @@ -46,7 +46,7 @@ class FeedsFeedResponse < GetStream::BaseModel # @return [DateTime] attr_accessor :updated_at # @!attribute created_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :created_by # @!attribute deleted_at # @return [DateTime] diff --git a/lib/getstream_ruby/generated/models/feeds_reaction_response.rb b/lib/getstream_ruby/generated/models/feeds_reaction_response.rb index 8d27964..af65184 100644 --- a/lib/getstream_ruby/generated/models/feeds_reaction_response.rb +++ b/lib/getstream_ruby/generated/models/feeds_reaction_response.rb @@ -22,7 +22,7 @@ class FeedsReactionResponse < GetStream::BaseModel # @return [DateTime] attr_accessor :updated_at # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute comment_id # @return [String] diff --git a/lib/getstream_ruby/generated/models/feeds_share_response.rb b/lib/getstream_ruby/generated/models/feeds_share_response.rb index 6886610..c704f44 100644 --- a/lib/getstream_ruby/generated/models/feeds_share_response.rb +++ b/lib/getstream_ruby/generated/models/feeds_share_response.rb @@ -16,7 +16,7 @@ class FeedsShareResponse < GetStream::BaseModel # @return [DateTime] attr_accessor :created_at # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # 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 c90b433..d3136ed 100644 --- a/lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb +++ b/lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb @@ -91,7 +91,7 @@ class FeedsV3ActivityResponse < GetStream::BaseModel # @return [Object] attr_accessor :search_data # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute deleted_at # @return [DateTime] 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 a69abbc..3ba94c5 100644 --- a/lib/getstream_ruby/generated/models/feeds_v3_comment_response.rb +++ b/lib/getstream_ruby/generated/models/feeds_v3_comment_response.rb @@ -55,7 +55,7 @@ class FeedsV3CommentResponse < GetStream::BaseModel # @return [Array] attr_accessor :own_reactions # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute controversy_score # @return [Float] diff --git a/lib/getstream_ruby/generated/models/filter_config_response.rb b/lib/getstream_ruby/generated/models/filter_config_response.rb index 9e127d5..152df2b 100644 --- a/lib/getstream_ruby/generated/models/filter_config_response.rb +++ b/lib/getstream_ruby/generated/models/filter_config_response.rb @@ -24,6 +24,9 @@ class FilterConfigResponse < GetStream::BaseModel # @!attribute filterable_custom_keys # @return [Array] The moderation_payload.custom keys the app has configured as review-queue filter chips (via moderation_dashboard_preferences.filterable_custom_keys). Discovery hint for the dashboard only — the filter accepts any custom key regardless of this list. attr_accessor :filterable_custom_keys + # @!attribute ai_image_taxonomy + # @return [Hash>] AI image moderation labels available as filter values, as a map of L1 label to its L2 sub-labels. Reflects the app's effective image taxonomy: custom Bodyguard taxonomy when enabled, otherwise the standard catalogue of the org's enabled image providers. + attr_accessor :ai_image_taxonomy # Initialize with attributes def initialize(attributes = {}) @@ -33,6 +36,7 @@ def initialize(attributes = {}) @ai_text_labels = attributes[:ai_text_labels] || attributes['ai_text_labels'] || nil @config_keys = attributes[:config_keys] || attributes['config_keys'] || nil @filterable_custom_keys = attributes[:filterable_custom_keys] || attributes['filterable_custom_keys'] || nil + @ai_image_taxonomy = attributes[:ai_image_taxonomy] || attributes['ai_image_taxonomy'] || nil end # Override field mappings for JSON serialization @@ -42,7 +46,8 @@ def self.json_field_mappings ai_image_labels: 'ai_image_labels', ai_text_labels: 'ai_text_labels', config_keys: 'config_keys', - filterable_custom_keys: 'filterable_custom_keys' + filterable_custom_keys: 'filterable_custom_keys', + ai_image_taxonomy: 'ai_image_taxonomy' } end end diff --git a/lib/getstream_ruby/generated/models/flag_request.rb b/lib/getstream_ruby/generated/models/flag_request.rb index 522f011..1a33e97 100644 --- a/lib/getstream_ruby/generated/models/flag_request.rb +++ b/lib/getstream_ruby/generated/models/flag_request.rb @@ -31,7 +31,7 @@ class FlagRequest < GetStream::BaseModel # @return [ModerationPayload] attr_accessor :moderation_payload # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/flag_response.rb b/lib/getstream_ruby/generated/models/flag_response.rb index 91a7efd..7326030 100644 --- a/lib/getstream_ruby/generated/models/flag_response.rb +++ b/lib/getstream_ruby/generated/models/flag_response.rb @@ -43,13 +43,13 @@ class FlagResponse < GetStream::BaseModel # @return [FlagDetails] attr_accessor :details # @!attribute target_message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :target_message # @!attribute target_user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :target_user # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/flag_updated_event.rb b/lib/getstream_ruby/generated/models/flag_updated_event.rb index bef53f8..6d0da94 100644 --- a/lib/getstream_ruby/generated/models/flag_updated_event.rb +++ b/lib/getstream_ruby/generated/models/flag_updated_event.rb @@ -22,13 +22,13 @@ class FlagUpdatedEvent < GetStream::BaseModel # @return [DateTime] attr_accessor :received_at # @!attribute created_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :created_by # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/flood_config.rb b/lib/getstream_ruby/generated/models/flood_config.rb index 1333eb9..320959d 100644 --- a/lib/getstream_ruby/generated/models/flood_config.rb +++ b/lib/getstream_ruby/generated/models/flood_config.rb @@ -9,6 +9,9 @@ module Models class FloodConfig < GetStream::BaseModel # Model attributes + # @!attribute allowlist + # @return [Array] + attr_accessor :allowlist # @!attribute identical # @return [FloodIdenticalConfig] attr_accessor :identical @@ -19,6 +22,7 @@ class FloodConfig < GetStream::BaseModel # Initialize with attributes def initialize(attributes = {}) super(attributes) + @allowlist = attributes[:allowlist] || attributes['allowlist'] || nil @identical = attributes[:identical] || attributes['identical'] || nil @similar = attributes[:similar] || attributes['similar'] || nil end @@ -26,6 +30,7 @@ def initialize(attributes = {}) # Override field mappings for JSON serialization def self.json_field_mappings { + allowlist: 'allowlist', identical: 'identical', similar: 'similar' } diff --git a/lib/getstream_ruby/generated/models/flood_identical_rule_parameters.rb b/lib/getstream_ruby/generated/models/flood_identical_rule_parameters.rb new file mode 100644 index 0000000..64bf09c --- /dev/null +++ b/lib/getstream_ruby/generated/models/flood_identical_rule_parameters.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 FloodIdenticalRuleParameters < GetStream::BaseModel + + # Model attributes + # @!attribute threshold + # @return [Integer] + attr_accessor :threshold + # @!attribute time_window + # @return [String] + attr_accessor :time_window + # @!attribute allowlist + # @return [Array] + attr_accessor :allowlist + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @threshold = attributes[:threshold] || attributes['threshold'] || nil + @time_window = attributes[:time_window] || attributes['time_window'] || nil + @allowlist = attributes[:allowlist] || attributes['allowlist'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + threshold: 'threshold', + time_window: 'time_window', + allowlist: 'allowlist' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/flood_similar_rule_parameters.rb b/lib/getstream_ruby/generated/models/flood_similar_rule_parameters.rb new file mode 100644 index 0000000..1c9b582 --- /dev/null +++ b/lib/getstream_ruby/generated/models/flood_similar_rule_parameters.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 FloodSimilarRuleParameters < GetStream::BaseModel + + # Model attributes + # @!attribute similarity_distance + # @return [Integer] + attr_accessor :similarity_distance + # @!attribute threshold + # @return [Integer] + attr_accessor :threshold + # @!attribute time_window + # @return [String] + attr_accessor :time_window + # @!attribute allowlist + # @return [Array] + attr_accessor :allowlist + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @similarity_distance = attributes[:similarity_distance] || attributes['similarity_distance'] || nil + @threshold = attributes[:threshold] || attributes['threshold'] || nil + @time_window = attributes[:time_window] || attributes['time_window'] || nil + @allowlist = attributes[:allowlist] || attributes['allowlist'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + similarity_distance: 'similarity_distance', + threshold: 'threshold', + time_window: 'time_window', + allowlist: 'allowlist' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/future_channel_ban_response.rb b/lib/getstream_ruby/generated/models/future_channel_ban_response.rb index e6770ad..6ef81e3 100644 --- a/lib/getstream_ruby/generated/models/future_channel_ban_response.rb +++ b/lib/getstream_ruby/generated/models/future_channel_ban_response.rb @@ -22,10 +22,10 @@ class FutureChannelBanResponse < GetStream::BaseModel # @return [Boolean] attr_accessor :shadow # @!attribute banned_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :banned_by # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/get_block_list_response.rb b/lib/getstream_ruby/generated/models/get_block_list_response.rb index 2a33ff6..04e5989 100644 --- a/lib/getstream_ruby/generated/models/get_block_list_response.rb +++ b/lib/getstream_ruby/generated/models/get_block_list_response.rb @@ -13,7 +13,7 @@ class GetBlockListResponse < GetStream::BaseModel # @return [String] attr_accessor :duration # @!attribute blocklist - # @return [BlockListResponse] + # @return [BlockListResponse] Block list contains restricted words attr_accessor :blocklist # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/get_call_report_response.rb b/lib/getstream_ruby/generated/models/get_call_report_response.rb index 6d6ed76..3974af7 100644 --- a/lib/getstream_ruby/generated/models/get_call_report_response.rb +++ b/lib/getstream_ruby/generated/models/get_call_report_response.rb @@ -24,6 +24,9 @@ class GetCallReportResponse < GetStream::BaseModel # @!attribute chat_activity # @return [ChatActivityStatsResponse] attr_accessor :chat_activity + # @!attribute digest + # @return [BroadcastDigest] + attr_accessor :digest # @!attribute session # @return [CallSessionResponse] attr_accessor :session @@ -36,6 +39,7 @@ def initialize(attributes = {}) @report = attributes[:report] || attributes['report'] @video_reactions = attributes[:video_reactions] || attributes['video_reactions'] || nil @chat_activity = attributes[:chat_activity] || attributes['chat_activity'] || nil + @digest = attributes[:digest] || attributes['digest'] || nil @session = attributes[:session] || attributes['session'] || nil end @@ -47,6 +51,7 @@ def self.json_field_mappings report: 'report', video_reactions: 'video_reactions', chat_activity: 'chat_activity', + digest: 'digest', session: 'session' } end diff --git a/lib/getstream_ruby/generated/models/get_call_response.rb b/lib/getstream_ruby/generated/models/get_call_response.rb index f887eab..86af15f 100644 --- a/lib/getstream_ruby/generated/models/get_call_response.rb +++ b/lib/getstream_ruby/generated/models/get_call_response.rb @@ -19,7 +19,7 @@ class GetCallResponse < GetStream::BaseModel # @return [Array] attr_accessor :own_capabilities # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/get_channel_type_response.rb b/lib/getstream_ruby/generated/models/get_channel_type_response.rb index 09cdcf8..a2b7281 100644 --- a/lib/getstream_ruby/generated/models/get_channel_type_response.rb +++ b/lib/getstream_ruby/generated/models/get_channel_type_response.rb @@ -121,7 +121,7 @@ class GetChannelTypeResponse < GetStream::BaseModel # @return [Array] attr_accessor :blocklists # @!attribute automod_thresholds - # @return [Thresholds] + # @return [Thresholds] Sets thresholds for AI moderation attr_accessor :automod_thresholds # @!attribute chat_preferences # @return [ChatPreferences] diff --git a/lib/getstream_ruby/generated/models/get_daily_digest_response.rb b/lib/getstream_ruby/generated/models/get_daily_digest_response.rb new file mode 100644 index 0000000..a4e0593 --- /dev/null +++ b/lib/getstream_ruby/generated/models/get_daily_digest_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 + # Basic response information + class GetDailyDigestResponse < GetStream::BaseModel + + # Model attributes + # @!attribute date + # @return [String] + attr_accessor :date + # @!attribute duration + # @return [String] Duration of the request in milliseconds + attr_accessor :duration + # @!attribute status + # @return [String] + attr_accessor :status + # @!attribute generated_at + # @return [String] + attr_accessor :generated_at + # @!attribute retry_after + # @return [Integer] + attr_accessor :retry_after + # @!attribute revision + # @return [Integer] + attr_accessor :revision + # @!attribute schema_version + # @return [String] + attr_accessor :schema_version + # @!attribute broadcasts + # @return [Array] + attr_accessor :broadcasts + # @!attribute call_sessions + # @return [Array] + attr_accessor :call_sessions + # @!attribute digest_kinds + # @return [Array] + attr_accessor :digest_kinds + # @!attribute broadcast_rollup + # @return [BroadcastDailyRollup] + attr_accessor :broadcast_rollup + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @date = attributes[:date] || attributes['date'] + @duration = attributes[:duration] || attributes['duration'] + @status = attributes[:status] || attributes['status'] + @generated_at = attributes[:generated_at] || attributes['generated_at'] || nil + @retry_after = attributes[:retry_after] || attributes['retry_after'] || nil + @revision = attributes[:revision] || attributes['revision'] || nil + @schema_version = attributes[:schema_version] || attributes['schema_version'] || nil + @broadcasts = attributes[:broadcasts] || attributes['broadcasts'] || nil + @call_sessions = attributes[:call_sessions] || attributes['call_sessions'] || nil + @digest_kinds = attributes[:digest_kinds] || attributes['digest_kinds'] || nil + @broadcast_rollup = attributes[:broadcast_rollup] || attributes['broadcast_rollup'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + date: 'date', + duration: 'duration', + status: 'status', + generated_at: 'generated_at', + retry_after: 'retry_after', + revision: 'revision', + schema_version: 'schema_version', + broadcasts: 'broadcasts', + call_sessions: 'call_sessions', + digest_kinds: 'digest_kinds', + broadcast_rollup: 'broadcast_rollup' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/get_external_storage_gcs_response.rb b/lib/getstream_ruby/generated/models/get_external_storage_gcs_response.rb new file mode 100644 index 0000000..19c3a58 --- /dev/null +++ b/lib/getstream_ruby/generated/models/get_external_storage_gcs_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 GetExternalStorageGCSResponse < GetStream::BaseModel + + # Model attributes + # @!attribute bucket + # @return [String] + attr_accessor :bucket + # @!attribute credentials_set + # @return [Boolean] + attr_accessor :credentials_set + # @!attribute path_prefix + # @return [String] + attr_accessor :path_prefix + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @bucket = attributes[:bucket] || attributes['bucket'] + @credentials_set = attributes[:credentials_set] || attributes['credentials_set'] + @path_prefix = attributes[:path_prefix] || attributes['path_prefix'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + bucket: 'bucket', + credentials_set: 'credentials_set', + path_prefix: 'path_prefix' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/get_external_storage_response.rb b/lib/getstream_ruby/generated/models/get_external_storage_response.rb index 2189bf1..434ed30 100644 --- a/lib/getstream_ruby/generated/models/get_external_storage_response.rb +++ b/lib/getstream_ruby/generated/models/get_external_storage_response.rb @@ -24,6 +24,9 @@ class GetExternalStorageResponse < GetStream::BaseModel # @!attribute aws_s3 # @return [GetExternalStorageAWSS3Response] attr_accessor :aws_s3 + # @!attribute gcs + # @return [GetExternalStorageGCSResponse] + attr_accessor :gcs # Initialize with attributes def initialize(attributes = {}) @@ -33,6 +36,7 @@ def initialize(attributes = {}) @type = attributes[:type] || attributes['type'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @aws_s3 = attributes[:aws_s3] || attributes['aws_s3'] || nil + @gcs = attributes[:gcs] || attributes['gcs'] || nil end # Override field mappings for JSON serialization @@ -42,7 +46,8 @@ def self.json_field_mappings duration: 'duration', type: 'type', updated_at: 'updated_at', - aws_s3: 'aws_s3' + aws_s3: 'aws_s3', + gcs: 'gcs' } end end diff --git a/lib/getstream_ruby/generated/models/get_feeds_rate_limits_response.rb b/lib/getstream_ruby/generated/models/get_feeds_rate_limits_response.rb index 4bb96c5..37ba6c9 100644 --- a/lib/getstream_ruby/generated/models/get_feeds_rate_limits_response.rb +++ b/lib/getstream_ruby/generated/models/get_feeds_rate_limits_response.rb @@ -21,6 +21,9 @@ class GetFeedsRateLimitsResponse < GetStream::BaseModel # @!attribute server_side # @return [Hash] Rate limits for server-side platform (endpoint name -> limit info) attr_accessor :server_side + # @!attribute unity + # @return [Hash] Rate limits for Unity platform (endpoint name -> limit info) + attr_accessor :unity # @!attribute web # @return [Hash] Rate limits for Web platform (endpoint name -> limit info) attr_accessor :web @@ -32,6 +35,7 @@ def initialize(attributes = {}) @android = attributes[:android] || attributes['android'] || nil @ios = attributes[:ios] || attributes['ios'] || nil @server_side = attributes[:server_side] || attributes['server_side'] || nil + @unity = attributes[:unity] || attributes['unity'] || nil @web = attributes[:web] || attributes['web'] || nil end @@ -42,6 +46,7 @@ def self.json_field_mappings android: 'android', ios: 'ios', server_side: 'server_side', + unity: 'unity', web: 'web' } end diff --git a/lib/getstream_ruby/generated/models/get_message_response.rb b/lib/getstream_ruby/generated/models/get_message_response.rb index 3faf322..bff9999 100644 --- a/lib/getstream_ruby/generated/models/get_message_response.rb +++ b/lib/getstream_ruby/generated/models/get_message_response.rb @@ -13,7 +13,7 @@ class GetMessageResponse < GetStream::BaseModel # @return [String] Duration of the request in milliseconds attr_accessor :duration # @!attribute message - # @return [MessageWithChannelResponse] + # @return [MessageWithChannelResponse] Represents any chat message attr_accessor :message # @!attribute pending_message_metadata # @return [Hash] diff --git a/lib/getstream_ruby/generated/models/get_or_create_call_request.rb b/lib/getstream_ruby/generated/models/get_or_create_call_request.rb index 0190dca..d1d6798 100644 --- a/lib/getstream_ruby/generated/models/get_or_create_call_request.rb +++ b/lib/getstream_ruby/generated/models/get_or_create_call_request.rb @@ -22,7 +22,7 @@ class GetOrCreateCallRequest < GetStream::BaseModel # @return [Boolean] attr_accessor :video # @!attribute data - # @return [CallRequest] + # @return [CallRequest] CallRequest is the payload for creating a call. attr_accessor :data # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/get_or_create_call_response.rb b/lib/getstream_ruby/generated/models/get_or_create_call_response.rb index 8f2afe0..06a0e45 100644 --- a/lib/getstream_ruby/generated/models/get_or_create_call_response.rb +++ b/lib/getstream_ruby/generated/models/get_or_create_call_response.rb @@ -22,7 +22,7 @@ class GetOrCreateCallResponse < GetStream::BaseModel # @return [Array] attr_accessor :own_capabilities # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/get_or_create_feed_request.rb b/lib/getstream_ruby/generated/models/get_or_create_feed_request.rb index 921e279..bec10b6 100644 --- a/lib/getstream_ruby/generated/models/get_or_create_feed_request.rb +++ b/lib/getstream_ruby/generated/models/get_or_create_feed_request.rb @@ -37,7 +37,7 @@ class GetOrCreateFeedRequest < GetStream::BaseModel # @return [FeedInput] attr_accessor :data # @!attribute enrichment_options - # @return [EnrichmentOptions] + # @return [EnrichmentOptions] Options to skip specific enrichments to improve performance. Default is false (enrichments are included). Setting a field to true skips that enrichment. attr_accessor :enrichment_options # @!attribute external_ranking # @return [Object] @@ -52,7 +52,7 @@ class GetOrCreateFeedRequest < GetStream::BaseModel # @return [PagerRequest] attr_accessor :following_pagination # @!attribute friend_reactions_options - # @return [FriendReactionsOptions] + # @return [FriendReactionsOptions] Options to control fetching reactions from friends (users you follow or have mutual follows with). attr_accessor :friend_reactions_options # @!attribute interest_weights # @return [Hash] @@ -61,7 +61,7 @@ class GetOrCreateFeedRequest < GetStream::BaseModel # @return [PagerRequest] attr_accessor :member_pagination # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/get_rate_limits_response.rb b/lib/getstream_ruby/generated/models/get_rate_limits_response.rb index b76dcf0..c9a6762 100644 --- a/lib/getstream_ruby/generated/models/get_rate_limits_response.rb +++ b/lib/getstream_ruby/generated/models/get_rate_limits_response.rb @@ -21,6 +21,9 @@ class GetRateLimitsResponse < GetStream::BaseModel # @!attribute server_side # @return [Hash] Map of endpoint rate limits for the server-side platform attr_accessor :server_side + # @!attribute unity + # @return [Hash] Map of endpoint rate limits for the Unity platform + attr_accessor :unity # @!attribute web # @return [Hash] Map of endpoint rate limits for the web platform attr_accessor :web @@ -32,6 +35,7 @@ def initialize(attributes = {}) @android = attributes[:android] || attributes['android'] || nil @ios = attributes[:ios] || attributes['ios'] || nil @server_side = attributes[:server_side] || attributes['server_side'] || nil + @unity = attributes[:unity] || attributes['unity'] || nil @web = attributes[:web] || attributes['web'] || nil end @@ -42,6 +46,7 @@ def self.json_field_mappings android: 'android', ios: 'ios', server_side: 'server_side', + unity: 'unity', web: 'web' } end diff --git a/lib/getstream_ruby/generated/models/go_live_response.rb b/lib/getstream_ruby/generated/models/go_live_response.rb index 8016166..c12a850 100644 --- a/lib/getstream_ruby/generated/models/go_live_response.rb +++ b/lib/getstream_ruby/generated/models/go_live_response.rb @@ -13,7 +13,7 @@ class GoLiveResponse < GetStream::BaseModel # @return [String] Duration of the request in milliseconds attr_accessor :duration # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/grouped_query_channels_request.rb b/lib/getstream_ruby/generated/models/grouped_query_channels_request.rb index 880f767..4f8ccff 100644 --- a/lib/getstream_ruby/generated/models/grouped_query_channels_request.rb +++ b/lib/getstream_ruby/generated/models/grouped_query_channels_request.rb @@ -19,7 +19,7 @@ class GroupedQueryChannelsRequest < GetStream::BaseModel # @return [Hash] Groups to return, keyed by group name. Each group can define limit, next, or prev. 'next' and 'prev' cursors are only allowed when the request contains exactly one group; multi-group pagination is rejected. attr_accessor :groups # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/hide_channel_request.rb b/lib/getstream_ruby/generated/models/hide_channel_request.rb index bed0725..a14e7cb 100644 --- a/lib/getstream_ruby/generated/models/hide_channel_request.rb +++ b/lib/getstream_ruby/generated/models/hide_channel_request.rb @@ -16,7 +16,7 @@ class HideChannelRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/import_block_list_request.rb b/lib/getstream_ruby/generated/models/import_block_list_request.rb new file mode 100644 index 0000000..df58a94 --- /dev/null +++ b/lib/getstream_ruby/generated/models/import_block_list_request.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 ImportBlockListRequest < GetStream::BaseModel + + # Model attributes + # @!attribute items + # @return [Array] + attr_accessor :items + # @!attribute chunk_size + # @return [Integer] + attr_accessor :chunk_size + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @items = attributes[:items] || attributes['items'] + @chunk_size = attributes[:chunk_size] || attributes['chunk_size'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + items: 'items', + chunk_size: 'chunk_size' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/import_block_list_response.rb b/lib/getstream_ruby/generated/models/import_block_list_response.rb new file mode 100644 index 0000000..c78c84a --- /dev/null +++ b/lib/getstream_ruby/generated/models/import_block_list_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 + # Basic response information + class ImportBlockListResponse < GetStream::BaseModel + + # Model attributes + # @!attribute duration + # @return [String] Duration of the request in milliseconds + attr_accessor :duration + # @!attribute task_id + # @return [String] + attr_accessor :task_id + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @duration = attributes[:duration] || attributes['duration'] + @task_id = attributes[:task_id] || attributes['task_id'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + duration: 'duration', + task_id: 'task_id' + } + 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 index 878369b..a9e804e 100644 --- a/lib/getstream_ruby/generated/models/import_v2_task_settings.rb +++ b/lib/getstream_ruby/generated/models/import_v2_task_settings.rb @@ -21,9 +21,6 @@ class ImportV2TaskSettings < GetStream::BaseModel # @!attribute skip_references_check # @return [Boolean] attr_accessor :skip_references_check - # @!attribute source - # @return [String] - attr_accessor :source # @!attribute use_import_time_as_op_time # @return [Boolean] attr_accessor :use_import_time_as_op_time @@ -38,7 +35,6 @@ def initialize(attributes = {}) @mode = attributes[:mode] || attributes['mode'] || nil @path = attributes[:path] || attributes['path'] || nil @skip_references_check = attributes[:skip_references_check] || attributes['skip_references_check'] || nil - @source = attributes[:source] || attributes['source'] || nil @use_import_time_as_op_time = attributes[:use_import_time_as_op_time] || attributes['use_import_time_as_op_time'] || nil @s3 = attributes[:s3] || attributes['s3'] || nil end @@ -50,7 +46,6 @@ def self.json_field_mappings mode: 'mode', path: 'path', skip_references_check: 'skip_references_check', - source: 'source', use_import_time_as_op_time: 'use_import_time_as_op_time', s3: 's3' } diff --git a/lib/getstream_ruby/generated/models/incident.rb b/lib/getstream_ruby/generated/models/incident.rb new file mode 100644 index 0000000..e5eca18 --- /dev/null +++ b/lib/getstream_ruby/generated/models/incident.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 Incident < GetStream::BaseModel + + # Model attributes + # @!attribute from + # @return [String] + attr_accessor :from + # @!attribute peak_concurrency + # @return [Integer] + attr_accessor :peak_concurrency + # @!attribute to + # @return [String] + attr_accessor :to + # @!attribute viewers_interrupted + # @return [Integer] + attr_accessor :viewers_interrupted + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @from = attributes[:from] || attributes['from'] + @peak_concurrency = attributes[:peak_concurrency] || attributes['peak_concurrency'] + @to = attributes[:to] || attributes['to'] + @viewers_interrupted = attributes[:viewers_interrupted] || attributes['viewers_interrupted'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + from: 'from', + peak_concurrency: 'peak_concurrency', + to: 'to', + viewers_interrupted: 'viewers_interrupted' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/ip_content_count_rule_parameters.rb b/lib/getstream_ruby/generated/models/ip_content_count_rule_parameters.rb new file mode 100644 index 0000000..bd28e61 --- /dev/null +++ b/lib/getstream_ruby/generated/models/ip_content_count_rule_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 IPContentCountRuleParameters < 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/ip_flag_count_rule_parameters.rb b/lib/getstream_ruby/generated/models/ip_flag_count_rule_parameters.rb new file mode 100644 index 0000000..1d43eda --- /dev/null +++ b/lib/getstream_ruby/generated/models/ip_flag_count_rule_parameters.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 IPFlagCountRuleParameters < GetStream::BaseModel + + # Model attributes + # @!attribute severity + # @return [String] + attr_accessor :severity + # @!attribute threshold + # @return [Integer] + attr_accessor :threshold + # @!attribute time_window + # @return [String] + attr_accessor :time_window + # @!attribute harm_labels + # @return [Array] + attr_accessor :harm_labels + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @severity = attributes[:severity] || attributes['severity'] || nil + @threshold = attributes[:threshold] || attributes['threshold'] || nil + @time_window = attributes[:time_window] || attributes['time_window'] || nil + @harm_labels = attributes[:harm_labels] || attributes['harm_labels'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + severity: 'severity', + threshold: 'threshold', + time_window: 'time_window', + harm_labels: 'harm_labels' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/joins.rb b/lib/getstream_ruby/generated/models/joins.rb new file mode 100644 index 0000000..6e42e5f --- /dev/null +++ b/lib/getstream_ruby/generated/models/joins.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 Joins < GetStream::BaseModel + + # Model attributes + # @!attribute reason + # @return [String] + attr_accessor :reason + # @!attribute disconnect_reasons + # @return [Hash] + attr_accessor :disconnect_reasons + # @!attribute failure_stages + # @return [Hash] + attr_accessor :failure_stages + # @!attribute join_attempts + # @return [Integer] + attr_accessor :join_attempts + # @!attribute join_success_rate + # @return [Float] + attr_accessor :join_success_rate + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @reason = attributes[:reason] || attributes['reason'] + @disconnect_reasons = attributes[:disconnect_reasons] || attributes['disconnect_reasons'] + @failure_stages = attributes[:failure_stages] || attributes['failure_stages'] + @join_attempts = attributes[:join_attempts] || attributes['join_attempts'] || nil + @join_success_rate = attributes[:join_success_rate] || attributes['join_success_rate'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + reason: 'reason', + disconnect_reasons: 'disconnect_reasons', + failure_stages: 'failure_stages', + join_attempts: 'join_attempts', + join_success_rate: 'join_success_rate' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/kick_user_request.rb b/lib/getstream_ruby/generated/models/kick_user_request.rb index 2b45a8c..059dcf2 100644 --- a/lib/getstream_ruby/generated/models/kick_user_request.rb +++ b/lib/getstream_ruby/generated/models/kick_user_request.rb @@ -19,7 +19,7 @@ class KickUserRequest < GetStream::BaseModel # @return [String] Server-side: ID of the user performing the action attr_accessor :kicked_by_id # @!attribute kicked_by - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :kicked_by # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/kicked_user_event.rb b/lib/getstream_ruby/generated/models/kicked_user_event.rb index e6f2afd..f2257be 100644 --- a/lib/getstream_ruby/generated/models/kicked_user_event.rb +++ b/lib/getstream_ruby/generated/models/kicked_user_event.rb @@ -16,13 +16,13 @@ class KickedUserEvent < GetStream::BaseModel # @return [DateTime] attr_accessor :created_at # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute type # @return [String] The type of event: "call.kicked_user" in this case attr_accessor :type # @!attribute kicked_by_user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :kicked_by_user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/list_block_list_response.rb b/lib/getstream_ruby/generated/models/list_block_list_response.rb index d55c340..3a6bdda 100644 --- a/lib/getstream_ruby/generated/models/list_block_list_response.rb +++ b/lib/getstream_ruby/generated/models/list_block_list_response.rb @@ -15,19 +15,24 @@ class ListBlockListResponse < GetStream::BaseModel # @!attribute blocklists # @return [Array] attr_accessor :blocklists + # @!attribute next_cursor + # @return [String] + attr_accessor :next_cursor # Initialize with attributes def initialize(attributes = {}) super(attributes) @duration = attributes[:duration] || attributes['duration'] @blocklists = attributes[:blocklists] || attributes['blocklists'] + @next_cursor = attributes[:next_cursor] || attributes['next_cursor'] || nil end # Override field mappings for JSON serialization def self.json_field_mappings { duration: 'duration', - blocklists: 'blocklists' + blocklists: 'blocklists', + next_cursor: 'next_cursor' } end end diff --git a/lib/getstream_ruby/generated/models/mark_activity_request.rb b/lib/getstream_ruby/generated/models/mark_activity_request.rb index 43731e1..30d8af6 100644 --- a/lib/getstream_ruby/generated/models/mark_activity_request.rb +++ b/lib/getstream_ruby/generated/models/mark_activity_request.rb @@ -28,7 +28,7 @@ class MarkActivityRequest < GetStream::BaseModel # @return [Array] List of activity IDs to mark as watched (for stories) attr_accessor :mark_watched # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/mark_channels_read_request.rb b/lib/getstream_ruby/generated/models/mark_channels_read_request.rb index 57c588f..c9c83a3 100644 --- a/lib/getstream_ruby/generated/models/mark_channels_read_request.rb +++ b/lib/getstream_ruby/generated/models/mark_channels_read_request.rb @@ -16,7 +16,7 @@ class MarkChannelsReadRequest < GetStream::BaseModel # @return [Hash] Map of channel ID to last read message ID attr_accessor :read_by_channel # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/mark_read_request.rb b/lib/getstream_ruby/generated/models/mark_read_request.rb index d232bf0..6dec045 100644 --- a/lib/getstream_ruby/generated/models/mark_read_request.rb +++ b/lib/getstream_ruby/generated/models/mark_read_request.rb @@ -19,7 +19,7 @@ class MarkReadRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/mark_read_response_event.rb b/lib/getstream_ruby/generated/models/mark_read_response_event.rb index 7b90ab0..a88e634 100644 --- a/lib/getstream_ruby/generated/models/mark_read_response_event.rb +++ b/lib/getstream_ruby/generated/models/mark_read_response_event.rb @@ -34,7 +34,7 @@ class MarkReadResponseEvent < GetStream::BaseModel # @return [String] attr_accessor :team # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute thread # @return [ThreadResponse] diff --git a/lib/getstream_ruby/generated/models/mark_unread_request.rb b/lib/getstream_ruby/generated/models/mark_unread_request.rb index 4c10e4f..2582c94 100644 --- a/lib/getstream_ruby/generated/models/mark_unread_request.rb +++ b/lib/getstream_ruby/generated/models/mark_unread_request.rb @@ -22,7 +22,7 @@ class MarkUnreadRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/matched_content.rb b/lib/getstream_ruby/generated/models/matched_content.rb index ff2f845..f0970b7 100644 --- a/lib/getstream_ruby/generated/models/matched_content.rb +++ b/lib/getstream_ruby/generated/models/matched_content.rb @@ -24,6 +24,9 @@ class MatchedContent < GetStream::BaseModel # @!attribute severity # @return [String] Text and OCR entries. Aggregate (max) Bodyguard severity level (`LOW` / `MEDIUM` / `HIGH` / `CRITICAL`). Absent on image-classification entries. attr_accessor :severity + # @!attribute text + # @return [String] + attr_accessor :text # @!attribute classifications # @return [Array] Image-classification entries (keyframe rule, Type=image) carry nested L1 → L2 classifications. Text entries (closed_caption rule, Type=text) carry flat label + severity. Resolved against the app's effective taxonomy on the image side. attr_accessor :classifications @@ -39,6 +42,7 @@ def initialize(attributes = {}) @type = attributes[:type] || attributes['type'] @confidence = attributes[:confidence] || attributes['confidence'] || nil @severity = attributes[:severity] || attributes['severity'] || nil + @text = attributes[:text] || attributes['text'] || nil @classifications = attributes[:classifications] || attributes['classifications'] || nil @ocr_classifications = attributes[:ocr_classifications] || attributes['ocr_classifications'] || nil end @@ -51,6 +55,7 @@ def self.json_field_mappings type: 'type', confidence: 'confidence', severity: 'severity', + text: 'text', classifications: 'classifications', ocr_classifications: 'ocr_classifications' } diff --git a/lib/getstream_ruby/generated/models/member_added_event.rb b/lib/getstream_ruby/generated/models/member_added_event.rb index 8b41d8d..0999c7b 100644 --- a/lib/getstream_ruby/generated/models/member_added_event.rb +++ b/lib/getstream_ruby/generated/models/member_added_event.rb @@ -13,7 +13,7 @@ class MemberAddedEvent < GetStream::BaseModel # @return [DateTime] Date/time of creation attr_accessor :created_at # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute custom # @return [Object] diff --git a/lib/getstream_ruby/generated/models/member_removed_event.rb b/lib/getstream_ruby/generated/models/member_removed_event.rb index ae2748c..ae137cb 100644 --- a/lib/getstream_ruby/generated/models/member_removed_event.rb +++ b/lib/getstream_ruby/generated/models/member_removed_event.rb @@ -13,7 +13,7 @@ class MemberRemovedEvent < GetStream::BaseModel # @return [DateTime] Date/time of creation attr_accessor :created_at # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute custom # @return [Object] diff --git a/lib/getstream_ruby/generated/models/member_response.rb b/lib/getstream_ruby/generated/models/member_response.rb index d2e4a1e..4f75cea 100644 --- a/lib/getstream_ruby/generated/models/member_response.rb +++ b/lib/getstream_ruby/generated/models/member_response.rb @@ -22,7 +22,7 @@ class MemberResponse < GetStream::BaseModel # @return [Object] Custom member response data attr_accessor :custom # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute deleted_at # @return [DateTime] Date/time of deletion diff --git a/lib/getstream_ruby/generated/models/member_updated_event.rb b/lib/getstream_ruby/generated/models/member_updated_event.rb index 54a2dd6..37810a7 100644 --- a/lib/getstream_ruby/generated/models/member_updated_event.rb +++ b/lib/getstream_ruby/generated/models/member_updated_event.rb @@ -13,7 +13,7 @@ class MemberUpdatedEvent < GetStream::BaseModel # @return [DateTime] Date/time of creation attr_accessor :created_at # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute custom # @return [Object] diff --git a/lib/getstream_ruby/generated/models/message_action_request.rb b/lib/getstream_ruby/generated/models/message_action_request.rb index 50cb732..d3b7396 100644 --- a/lib/getstream_ruby/generated/models/message_action_request.rb +++ b/lib/getstream_ruby/generated/models/message_action_request.rb @@ -16,7 +16,7 @@ class MessageActionRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/message_action_response.rb b/lib/getstream_ruby/generated/models/message_action_response.rb index 408844f..fc10052 100644 --- a/lib/getstream_ruby/generated/models/message_action_response.rb +++ b/lib/getstream_ruby/generated/models/message_action_response.rb @@ -13,7 +13,7 @@ class MessageActionResponse < GetStream::BaseModel # @return [String] Duration of the request in milliseconds attr_accessor :duration # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/message_deleted_event.rb b/lib/getstream_ruby/generated/models/message_deleted_event.rb index f3b5868..368eff8 100644 --- a/lib/getstream_ruby/generated/models/message_deleted_event.rb +++ b/lib/getstream_ruby/generated/models/message_deleted_event.rb @@ -22,7 +22,7 @@ class MessageDeletedEvent < GetStream::BaseModel # @return [Object] attr_accessor :custom # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute type # @return [String] The type of event: "message.deleted" in this case diff --git a/lib/getstream_ruby/generated/models/message_flag_response.rb b/lib/getstream_ruby/generated/models/message_flag_response.rb index 51d3c1b..81c01ef 100644 --- a/lib/getstream_ruby/generated/models/message_flag_response.rb +++ b/lib/getstream_ruby/generated/models/message_flag_response.rb @@ -37,19 +37,19 @@ class MessageFlagResponse < GetStream::BaseModel # @return [FlagDetailsResponse] attr_accessor :details # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute moderation_feedback # @return [FlagFeedbackResponse] attr_accessor :moderation_feedback # @!attribute moderation_result - # @return [MessageModerationResult] + # @return [MessageModerationResult] Result of the message moderation attr_accessor :moderation_result # @!attribute reviewed_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :reviewed_by # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/message_flagged_event.rb b/lib/getstream_ruby/generated/models/message_flagged_event.rb index e94775f..10fe2de 100644 --- a/lib/getstream_ruby/generated/models/message_flagged_event.rb +++ b/lib/getstream_ruby/generated/models/message_flagged_event.rb @@ -16,7 +16,7 @@ class MessageFlaggedEvent < GetStream::BaseModel # @return [String] attr_accessor :message_id # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute type # @return [String] The type of event: "message.flagged" in this case @@ -55,7 +55,7 @@ class MessageFlaggedEvent < GetStream::BaseModel # @return [Object] Custom data attr_accessor :custom # @!attribute details - # @return [MessageModerationResult] + # @return [MessageModerationResult] Result of the message moderation attr_accessor :details # @!attribute flag # @return [FlagResponse] diff --git a/lib/getstream_ruby/generated/models/message_history_entry_response.rb b/lib/getstream_ruby/generated/models/message_history_entry_response.rb index 0720a1f..2a8e958 100644 --- a/lib/getstream_ruby/generated/models/message_history_entry_response.rb +++ b/lib/getstream_ruby/generated/models/message_history_entry_response.rb @@ -40,7 +40,7 @@ def initialize(attributes = {}) @message_updated_by_id = attributes[:message_updated_by_id] || attributes['message_updated_by_id'] @text = attributes[:text] || attributes['text'] @attachments = attributes[:attachments] || attributes['attachments'] - @custom = attributes[:custom] || attributes['Custom'] + @custom = attributes[:custom] || attributes['custom'] end # Override field mappings for JSON serialization @@ -52,7 +52,7 @@ def self.json_field_mappings message_updated_by_id: 'message_updated_by_id', text: 'text', attachments: 'attachments', - custom: 'Custom' + custom: 'custom' } end end diff --git a/lib/getstream_ruby/generated/models/message_moderation_result.rb b/lib/getstream_ruby/generated/models/message_moderation_result.rb index 1121777..d3c3685 100644 --- a/lib/getstream_ruby/generated/models/message_moderation_result.rb +++ b/lib/getstream_ruby/generated/models/message_moderation_result.rb @@ -40,7 +40,7 @@ class MessageModerationResult < GetStream::BaseModel # @return [ModerationResponse] attr_accessor :ai_moderation_response # @!attribute moderation_thresholds - # @return [Thresholds] + # @return [Thresholds] Sets thresholds for AI moderation attr_accessor :moderation_thresholds # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/message_new_event.rb b/lib/getstream_ruby/generated/models/message_new_event.rb index 4655de1..7bc217c 100644 --- a/lib/getstream_ruby/generated/models/message_new_event.rb +++ b/lib/getstream_ruby/generated/models/message_new_event.rb @@ -22,7 +22,7 @@ class MessageNewEvent < GetStream::BaseModel # @return [Object] attr_accessor :custom # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute type # @return [String] The type of event: "message.new" in this case @@ -64,7 +64,7 @@ class MessageNewEvent < GetStream::BaseModel # @return [Array] The participants of the thread attr_accessor :thread_participants # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute channel_custom # @return [Object] diff --git a/lib/getstream_ruby/generated/models/message_options.rb b/lib/getstream_ruby/generated/models/message_options.rb index 75f472d..309174a 100644 --- a/lib/getstream_ruby/generated/models/message_options.rb +++ b/lib/getstream_ruby/generated/models/message_options.rb @@ -12,17 +12,22 @@ class MessageOptions < GetStream::BaseModel # @!attribute include_thread_participants # @return [Boolean] attr_accessor :include_thread_participants + # @!attribute member_custom_include + # @return [Array] + attr_accessor :member_custom_include # Initialize with attributes def initialize(attributes = {}) super(attributes) @include_thread_participants = attributes[:include_thread_participants] || attributes['include_thread_participants'] || nil + @member_custom_include = attributes[:member_custom_include] || attributes['member_custom_include'] || nil end # Override field mappings for JSON serialization def self.json_field_mappings { - include_thread_participants: 'include_thread_participants' + include_thread_participants: 'include_thread_participants', + member_custom_include: 'member_custom_include' } end end diff --git a/lib/getstream_ruby/generated/models/message_read_event.rb b/lib/getstream_ruby/generated/models/message_read_event.rb index 7629611..901f2bf 100644 --- a/lib/getstream_ruby/generated/models/message_read_event.rb +++ b/lib/getstream_ruby/generated/models/message_read_event.rb @@ -43,7 +43,7 @@ class MessageReadEvent < GetStream::BaseModel # @return [String] The team ID attr_accessor :team # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute channel_custom # @return [Object] diff --git a/lib/getstream_ruby/generated/models/message_request.rb b/lib/getstream_ruby/generated/models/message_request.rb index cf57c93..ab70d5f 100644 --- a/lib/getstream_ruby/generated/models/message_request.rb +++ b/lib/getstream_ruby/generated/models/message_request.rb @@ -79,7 +79,7 @@ class MessageRequest < GetStream::BaseModel # @return [SharedLocation] attr_accessor :shared_location # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/message_response.rb b/lib/getstream_ruby/generated/models/message_response.rb index 0be0da3..46ddf34 100644 --- a/lib/getstream_ruby/generated/models/message_response.rb +++ b/lib/getstream_ruby/generated/models/message_response.rb @@ -76,7 +76,7 @@ class MessageResponse < GetStream::BaseModel # @return [Hash] An object containing scores of reactions of each type. Key: reaction type (string), value: total score of reactions (int) attr_accessor :reaction_scores # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute command # @return [String] Contains provided slash command @@ -133,19 +133,19 @@ class MessageResponse < GetStream::BaseModel # @return [Hash>] Contains image moderation information attr_accessor :image_labels # @!attribute member - # @return [ChannelMemberResponse] + # @return [ChannelMemberPartialResponse] attr_accessor :member # @!attribute moderation # @return [ModerationV2Response] attr_accessor :moderation # @!attribute pinned_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :pinned_by # @!attribute poll # @return [PollResponseData] attr_accessor :poll # @!attribute quoted_message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :quoted_message # @!attribute reaction_groups # @return [Hash] diff --git a/lib/getstream_ruby/generated/models/message_unblocked_event.rb b/lib/getstream_ruby/generated/models/message_unblocked_event.rb index 99930b2..02e92b4 100644 --- a/lib/getstream_ruby/generated/models/message_unblocked_event.rb +++ b/lib/getstream_ruby/generated/models/message_unblocked_event.rb @@ -19,7 +19,7 @@ class MessageUnblockedEvent < GetStream::BaseModel # @return [Object] attr_accessor :custom # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute type # @return [String] The type of event: "message.unblocked" in this case diff --git a/lib/getstream_ruby/generated/models/message_undeleted_event.rb b/lib/getstream_ruby/generated/models/message_undeleted_event.rb index 3dfc22d..4a62925 100644 --- a/lib/getstream_ruby/generated/models/message_undeleted_event.rb +++ b/lib/getstream_ruby/generated/models/message_undeleted_event.rb @@ -19,7 +19,7 @@ class MessageUndeletedEvent < GetStream::BaseModel # @return [Object] attr_accessor :custom # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute type # @return [String] The type of event: "message.undeleted" in this case diff --git a/lib/getstream_ruby/generated/models/message_updated_event.rb b/lib/getstream_ruby/generated/models/message_updated_event.rb index 65d2ef3..6b32a6a 100644 --- a/lib/getstream_ruby/generated/models/message_updated_event.rb +++ b/lib/getstream_ruby/generated/models/message_updated_event.rb @@ -19,7 +19,7 @@ class MessageUpdatedEvent < GetStream::BaseModel # @return [Object] attr_accessor :custom # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute type # @return [String] The type of event: "message.updated" in this case diff --git a/lib/getstream_ruby/generated/models/message_with_channel_response.rb b/lib/getstream_ruby/generated/models/message_with_channel_response.rb index 82e369a..5f489c4 100644 --- a/lib/getstream_ruby/generated/models/message_with_channel_response.rb +++ b/lib/getstream_ruby/generated/models/message_with_channel_response.rb @@ -67,7 +67,7 @@ class MessageWithChannelResponse < GetStream::BaseModel # @return [Array] A list of user ids that have restricted visibility to the message, if the list is not empty, the message is only visible to the users in the list attr_accessor :restricted_visibility # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute custom # @return [Object] @@ -79,7 +79,7 @@ class MessageWithChannelResponse < GetStream::BaseModel # @return [Hash] An object containing scores of reactions of each type. Key: reaction type (string), value: total score of reactions (int) attr_accessor :reaction_scores # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute command # @return [String] Contains provided slash command @@ -136,19 +136,19 @@ class MessageWithChannelResponse < GetStream::BaseModel # @return [Hash>] Contains image moderation information attr_accessor :image_labels # @!attribute member - # @return [ChannelMemberResponse] + # @return [ChannelMemberPartialResponse] attr_accessor :member # @!attribute moderation # @return [ModerationV2Response] attr_accessor :moderation # @!attribute pinned_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :pinned_by # @!attribute poll # @return [PollResponseData] attr_accessor :poll # @!attribute quoted_message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :quoted_message # @!attribute reaction_groups # @return [Hash] diff --git a/lib/getstream_ruby/generated/models/metrics_pct.rb b/lib/getstream_ruby/generated/models/metrics_pct.rb new file mode 100644 index 0000000..335233c --- /dev/null +++ b/lib/getstream_ruby/generated/models/metrics_pct.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 MetricsPct < GetStream::BaseModel + + # Model attributes + # @!attribute freezes + # @return [Float] + attr_accessor :freezes + # @!attribute geo + # @return [Float] + attr_accessor :geo + # @!attribute jitter + # @return [Float] + attr_accessor :jitter + # @!attribute latency + # @return [Float] + attr_accessor :latency + # @!attribute quality_score + # @return [Float] + attr_accessor :quality_score + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @freezes = attributes[:freezes] || attributes['freezes'] || nil + @geo = attributes[:geo] || attributes['geo'] || nil + @jitter = attributes[:jitter] || attributes['jitter'] || nil + @latency = attributes[:latency] || attributes['latency'] || nil + @quality_score = attributes[:quality_score] || attributes['quality_score'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + freezes: 'freezes', + geo: 'geo', + jitter: 'jitter', + latency: 'latency', + quality_score: 'quality_score' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/moderation_analysis_failed_event.rb b/lib/getstream_ruby/generated/models/moderation_analysis_failed_event.rb new file mode 100644 index 0000000..21c4efb --- /dev/null +++ b/lib/getstream_ruby/generated/models/moderation_analysis_failed_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 + # An /analyze call was acknowledged but its moderation could not be completed, so no verdict exists for the content. The content was NOT screened — treat it as unverified rather than clean, and re-submit if a verdict is required. + class ModerationAnalysisFailedEvent < GetStream::BaseModel + + # Model attributes + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute type + # @return [String] + attr_accessor :type + # @!attribute config_key + # @return [String] The moderation policy key the request targeted. + attr_accessor :config_key + # @!attribute entity_creator_id + # @return [String] Echo of the `entity_creator_id` on the /analyze request. + attr_accessor :entity_creator_id + # @!attribute entity_id + # @return [String] Echo of the `entity_id` on the /analyze request. + attr_accessor :entity_id + # @!attribute entity_type + # @return [String] Echo of the `entity_type` on the /analyze request. + attr_accessor :entity_type + # @!attribute received_at + # @return [DateTime] + attr_accessor :received_at + # @!attribute content_ids + # @return [Hash] Echo of the request's `content_ids`, keyed by text/image label. On keyframe and caption streams every request repeats the same entity_type/entity_id/entity_creator_id, so this is what identifies the specific submission that went unscreened. + attr_accessor :content_ids + # @!attribute custom + # @return [Object] Echo of the `custom` metadata on the /analyze request. + attr_accessor :custom + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @created_at = attributes[:created_at] || attributes['created_at'] + @type = attributes[:type] || attributes['type'] || "moderation.analysis.failed" + @config_key = attributes[:config_key] || attributes['config_key'] || nil + @entity_creator_id = attributes[:entity_creator_id] || attributes['entity_creator_id'] || nil + @entity_id = attributes[:entity_id] || attributes['entity_id'] || nil + @entity_type = attributes[:entity_type] || attributes['entity_type'] || nil + @received_at = attributes[:received_at] || attributes['received_at'] || nil + @content_ids = attributes[:content_ids] || attributes['content_ids'] || nil + @custom = attributes[:custom] || attributes['custom'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + created_at: 'created_at', + type: 'type', + config_key: 'config_key', + entity_creator_id: 'entity_creator_id', + entity_id: 'entity_id', + entity_type: 'entity_type', + received_at: 'received_at', + content_ids: 'content_ids', + custom: 'custom' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/moderation_call_response.rb b/lib/getstream_ruby/generated/models/moderation_call_response.rb index b449074..dd97fa3 100644 --- a/lib/getstream_ruby/generated/models/moderation_call_response.rb +++ b/lib/getstream_ruby/generated/models/moderation_call_response.rb @@ -67,7 +67,7 @@ class ModerationCallResponse < GetStream::BaseModel # @return [String] attr_accessor :team # @!attribute created_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :created_by # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/moderation_custom_action_event.rb b/lib/getstream_ruby/generated/models/moderation_custom_action_event.rb index 0510342..9bbb39d 100644 --- a/lib/getstream_ruby/generated/models/moderation_custom_action_event.rb +++ b/lib/getstream_ruby/generated/models/moderation_custom_action_event.rb @@ -31,7 +31,7 @@ class ModerationCustomActionEvent < GetStream::BaseModel # @return [Object] Additional options passed to the custom action attr_accessor :action_options # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/moderation_flag_response.rb b/lib/getstream_ruby/generated/models/moderation_flag_response.rb index 703f62e..df7dba9 100644 --- a/lib/getstream_ruby/generated/models/moderation_flag_response.rb +++ b/lib/getstream_ruby/generated/models/moderation_flag_response.rb @@ -46,13 +46,13 @@ class ModerationFlagResponse < GetStream::BaseModel # @return [Object] attr_accessor :custom # @!attribute moderation_payload - # @return [ModerationPayloadResponse] + # @return [ModerationPayloadResponse] Content payload for moderation attr_accessor :moderation_payload # @!attribute review_queue_item # @return [ReviewQueueItemResponse] attr_accessor :review_queue_item # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/moderation_mark_reviewed_event.rb b/lib/getstream_ruby/generated/models/moderation_mark_reviewed_event.rb index ff2370c..a6cb028 100644 --- a/lib/getstream_ruby/generated/models/moderation_mark_reviewed_event.rb +++ b/lib/getstream_ruby/generated/models/moderation_mark_reviewed_event.rb @@ -25,7 +25,7 @@ class ModerationMarkReviewedEvent < GetStream::BaseModel # @return [DateTime] attr_accessor :received_at # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/moderation_payload.rb b/lib/getstream_ruby/generated/models/moderation_payload.rb index 9ada0f5..936f7b1 100644 --- a/lib/getstream_ruby/generated/models/moderation_payload.rb +++ b/lib/getstream_ruby/generated/models/moderation_payload.rb @@ -18,6 +18,9 @@ class ModerationPayload < GetStream::BaseModel # @!attribute images # @return [Array] attr_accessor :images + # @!attribute other_media + # @return [Array] + attr_accessor :other_media # @!attribute text_ordered_keys # @return [Array] attr_accessor :text_ordered_keys @@ -43,6 +46,7 @@ def initialize(attributes = {}) @audios = attributes[:audios] || attributes['audios'] || nil @image_ordered_keys = attributes[:image_ordered_keys] || attributes['image_ordered_keys'] || nil @images = attributes[:images] || attributes['images'] || nil + @other_media = attributes[:other_media] || attributes['other_media'] || nil @text_ordered_keys = attributes[:text_ordered_keys] || attributes['text_ordered_keys'] || nil @texts = attributes[:texts] || attributes['texts'] || nil @videos = attributes[:videos] || attributes['videos'] || nil @@ -57,6 +61,7 @@ def self.json_field_mappings audios: 'audios', image_ordered_keys: 'image_ordered_keys', images: 'images', + other_media: 'other_media', text_ordered_keys: 'text_ordered_keys', texts: 'texts', videos: 'videos', diff --git a/lib/getstream_ruby/generated/models/moderation_payload_response.rb b/lib/getstream_ruby/generated/models/moderation_payload_response.rb index c7b066c..1846eda 100644 --- a/lib/getstream_ruby/generated/models/moderation_payload_response.rb +++ b/lib/getstream_ruby/generated/models/moderation_payload_response.rb @@ -18,6 +18,9 @@ class ModerationPayloadResponse < GetStream::BaseModel # @!attribute images # @return [Array] Image URLs to moderate attr_accessor :images + # @!attribute other_media + # @return [Array] Media URLs from attachments outside the typed image/video/audio lists (custom attachment types such as GIF pickers) + attr_accessor :other_media # @!attribute text_ordered_keys # @return [Array] Caller-supplied keys for texts (e.g. "title", "description"), index-aligned with texts[] attr_accessor :text_ordered_keys @@ -43,6 +46,7 @@ def initialize(attributes = {}) @audios = attributes[:audios] || attributes['audios'] || nil @image_ordered_keys = attributes[:image_ordered_keys] || attributes['image_ordered_keys'] || nil @images = attributes[:images] || attributes['images'] || nil + @other_media = attributes[:other_media] || attributes['other_media'] || nil @text_ordered_keys = attributes[:text_ordered_keys] || attributes['text_ordered_keys'] || nil @texts = attributes[:texts] || attributes['texts'] || nil @videos = attributes[:videos] || attributes['videos'] || nil @@ -57,6 +61,7 @@ def self.json_field_mappings audios: 'audios', image_ordered_keys: 'image_ordered_keys', images: 'images', + other_media: 'other_media', text_ordered_keys: 'text_ordered_keys', texts: 'texts', videos: 'videos', diff --git a/lib/getstream_ruby/generated/models/mute_channel_request.rb b/lib/getstream_ruby/generated/models/mute_channel_request.rb index e26ade0..4b908f1 100644 --- a/lib/getstream_ruby/generated/models/mute_channel_request.rb +++ b/lib/getstream_ruby/generated/models/mute_channel_request.rb @@ -19,7 +19,7 @@ class MuteChannelRequest < GetStream::BaseModel # @return [Array] Channel CIDs to mute (if multiple channels) attr_accessor :channel_cids # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/mute_request.rb b/lib/getstream_ruby/generated/models/mute_request.rb index b45804f..06ca00d 100644 --- a/lib/getstream_ruby/generated/models/mute_request.rb +++ b/lib/getstream_ruby/generated/models/mute_request.rb @@ -19,7 +19,7 @@ class MuteRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/mute_users_request.rb b/lib/getstream_ruby/generated/models/mute_users_request.rb index 9289496..4928ebb 100644 --- a/lib/getstream_ruby/generated/models/mute_users_request.rb +++ b/lib/getstream_ruby/generated/models/mute_users_request.rb @@ -31,7 +31,7 @@ class MuteUsersRequest < GetStream::BaseModel # @return [Array] attr_accessor :user_ids # @!attribute muted_by - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :muted_by # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/notification_mark_unread_event.rb b/lib/getstream_ruby/generated/models/notification_mark_unread_event.rb index 77cb640..a9387ac 100644 --- a/lib/getstream_ruby/generated/models/notification_mark_unread_event.rb +++ b/lib/getstream_ruby/generated/models/notification_mark_unread_event.rb @@ -70,7 +70,7 @@ class NotificationMarkUnreadEvent < GetStream::BaseModel # @return [Integer] The number of unread threads attr_accessor :unread_threads # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute channel_custom # @return [Object] diff --git a/lib/getstream_ruby/generated/models/notification_thread_message_new_event.rb b/lib/getstream_ruby/generated/models/notification_thread_message_new_event.rb index 1f87f71..aed6352 100644 --- a/lib/getstream_ruby/generated/models/notification_thread_message_new_event.rb +++ b/lib/getstream_ruby/generated/models/notification_thread_message_new_event.rb @@ -22,13 +22,13 @@ class NotificationThreadMessageNewEvent < GetStream::BaseModel # @return [Integer] The number of watchers attr_accessor :watcher_count # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute custom # @return [Object] attr_accessor :custom # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute type # @return [String] The type of event: "notification.message_new" in this case diff --git a/lib/getstream_ruby/generated/models/own_batch_request.rb b/lib/getstream_ruby/generated/models/own_batch_request.rb index a841d74..a391fe4 100644 --- a/lib/getstream_ruby/generated/models/own_batch_request.rb +++ b/lib/getstream_ruby/generated/models/own_batch_request.rb @@ -19,7 +19,7 @@ class OwnBatchRequest < GetStream::BaseModel # @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] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/pending_message_event.rb b/lib/getstream_ruby/generated/models/pending_message_event.rb index 3d0acda..9a30aed 100644 --- a/lib/getstream_ruby/generated/models/pending_message_event.rb +++ b/lib/getstream_ruby/generated/models/pending_message_event.rb @@ -25,16 +25,16 @@ class PendingMessageEvent < GetStream::BaseModel # @return [DateTime] attr_accessor :received_at # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute metadata # @return [Hash] Metadata attached to the pending message attr_accessor :metadata # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/pending_message_response.rb b/lib/getstream_ruby/generated/models/pending_message_response.rb index f5df096..975f41c 100644 --- a/lib/getstream_ruby/generated/models/pending_message_response.rb +++ b/lib/getstream_ruby/generated/models/pending_message_response.rb @@ -10,16 +10,16 @@ class PendingMessageResponse < GetStream::BaseModel # Model attributes # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute metadata # @return [Hash] attr_accessor :metadata # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/percentiles.rb b/lib/getstream_ruby/generated/models/percentiles.rb new file mode 100644 index 0000000..7fbb250 --- /dev/null +++ b/lib/getstream_ruby/generated/models/percentiles.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 Percentiles < GetStream::BaseModel + + # Model attributes + # @!attribute p50 + # @return [Float] + attr_accessor :p50 + # @!attribute p95 + # @return [Float] + attr_accessor :p95 + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @p50 = attributes[:p50] || attributes['p50'] || nil + @p95 = attributes[:p95] || attributes['p95'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + p50: 'p50', + p95: 'p95' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/permission_request_event.rb b/lib/getstream_ruby/generated/models/permission_request_event.rb index 4e0370d..1d2053b 100644 --- a/lib/getstream_ruby/generated/models/permission_request_event.rb +++ b/lib/getstream_ruby/generated/models/permission_request_event.rb @@ -19,7 +19,7 @@ class PermissionRequestEvent < GetStream::BaseModel # @return [Array] The list of permissions requested by the user attr_accessor :permissions # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute type # @return [String] The type of event: "call.permission_request" in this case diff --git a/lib/getstream_ruby/generated/models/pin_activity_request.rb b/lib/getstream_ruby/generated/models/pin_activity_request.rb index 5d149ed..bcf3ab6 100644 --- a/lib/getstream_ruby/generated/models/pin_activity_request.rb +++ b/lib/getstream_ruby/generated/models/pin_activity_request.rb @@ -16,7 +16,7 @@ class PinActivityRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/policy_test_label_drift.rb b/lib/getstream_ruby/generated/models/policy_test_label_drift.rb new file mode 100644 index 0000000..a11a827 --- /dev/null +++ b/lib/getstream_ruby/generated/models/policy_test_label_drift.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 PolicyTestLabelDrift < GetStream::BaseModel + + # Model attributes + # @!attribute changed + # @return [Integer] + attr_accessor :changed + # @!attribute same + # @return [Integer] + attr_accessor :same + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @changed = attributes[:changed] || attributes['changed'] + @same = attributes[:same] || attributes['same'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + changed: 'changed', + same: 'same' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/policy_test_result.rb b/lib/getstream_ruby/generated/models/policy_test_result.rb new file mode 100644 index 0000000..2bfca83 --- /dev/null +++ b/lib/getstream_ruby/generated/models/policy_test_result.rb @@ -0,0 +1,96 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class PolicyTestResult < GetStream::BaseModel + + # Model attributes + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute id + # @return [Integer] + attr_accessor :id + # @!attribute message_text + # @return [String] + attr_accessor :message_text + # @!attribute row_index + # @return [Integer] + attr_accessor :row_index + # @!attribute run_id + # @return [String] + attr_accessor :run_id + # @!attribute scored + # @return [Boolean] + attr_accessor :scored + # @!attribute actual_action + # @return [String] + attr_accessor :actual_action + # @!attribute expected_action + # @return [String] + attr_accessor :expected_action + # @!attribute failure_reason + # @return [String] + attr_accessor :failure_reason + # @!attribute passed + # @return [Boolean] + attr_accessor :passed + # @!attribute severity + # @return [String] + attr_accessor :severity + # @!attribute actual_labels + # @return [Array] + attr_accessor :actual_labels + # @!attribute expected_labels + # @return [Array] + attr_accessor :expected_labels + # @!attribute raw_response + # @return [Object] + attr_accessor :raw_response + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @created_at = attributes[:created_at] || attributes['created_at'] + @id = attributes[:id] || attributes['id'] + @message_text = attributes[:message_text] || attributes['message_text'] + @row_index = attributes[:row_index] || attributes['row_index'] + @run_id = attributes[:run_id] || attributes['run_id'] + @scored = attributes[:scored] || attributes['scored'] + @actual_action = attributes[:actual_action] || attributes['actual_action'] || nil + @expected_action = attributes[:expected_action] || attributes['expected_action'] || nil + @failure_reason = attributes[:failure_reason] || attributes['failure_reason'] || nil + @passed = attributes[:passed] || attributes['passed'] || nil + @severity = attributes[:severity] || attributes['severity'] || nil + @actual_labels = attributes[:actual_labels] || attributes['actual_labels'] || nil + @expected_labels = attributes[:expected_labels] || attributes['expected_labels'] || nil + @raw_response = attributes[:raw_response] || attributes['raw_response'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + created_at: 'created_at', + id: 'id', + message_text: 'message_text', + row_index: 'row_index', + run_id: 'run_id', + scored: 'scored', + actual_action: 'actual_action', + expected_action: 'expected_action', + failure_reason: 'failure_reason', + passed: 'passed', + severity: 'severity', + actual_labels: 'actual_labels', + expected_labels: 'expected_labels', + raw_response: 'raw_response' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/policy_test_row.rb b/lib/getstream_ruby/generated/models/policy_test_row.rb new file mode 100644 index 0000000..4aa8f32 --- /dev/null +++ b/lib/getstream_ruby/generated/models/policy_test_row.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 PolicyTestRow < GetStream::BaseModel + + # Model attributes + # @!attribute content_type + # @return [String] + attr_accessor :content_type + # @!attribute policy + # @return [String] + attr_accessor :policy + # @!attribute recommended_action + # @return [String] + attr_accessor :recommended_action + # @!attribute text + # @return [String] + attr_accessor :text + # @!attribute labels + # @return [Array] + attr_accessor :labels + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @content_type = attributes[:content_type] || attributes['content_type'] || nil + @policy = attributes[:policy] || attributes['policy'] || nil + @recommended_action = attributes[:recommended_action] || attributes['recommended_action'] || nil + @text = attributes[:text] || attributes['text'] || nil + @labels = attributes[:labels] || attributes['labels'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + content_type: 'content_type', + policy: 'policy', + recommended_action: 'recommended_action', + text: 'text', + labels: 'labels' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/policy_test_run.rb b/lib/getstream_ruby/generated/models/policy_test_run.rb new file mode 100644 index 0000000..0b9a5da --- /dev/null +++ b/lib/getstream_ruby/generated/models/policy_test_run.rb @@ -0,0 +1,96 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class PolicyTestRun < GetStream::BaseModel + + # Model attributes + # @!attribute config_key + # @return [String] + attr_accessor :config_key + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute id + # @return [String] + attr_accessor :id + # @!attribute rows_completed + # @return [Integer] + attr_accessor :rows_completed + # @!attribute rows_total + # @return [Integer] + attr_accessor :rows_total + # @!attribute set_id + # @return [String] + attr_accessor :set_id + # @!attribute status + # @return [String] + attr_accessor :status + # @!attribute task_id + # @return [String] + attr_accessor :task_id + # @!attribute triggered_by + # @return [String] + attr_accessor :triggered_by + # @!attribute completed_at + # @return [DateTime] + attr_accessor :completed_at + # @!attribute config_updated_at + # @return [DateTime] + attr_accessor :config_updated_at + # @!attribute error_message + # @return [String] + attr_accessor :error_message + # @!attribute started_at + # @return [DateTime] + attr_accessor :started_at + # @!attribute metrics + # @return [PolicyTestRunMetrics] + attr_accessor :metrics + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @config_key = attributes[:config_key] || attributes['config_key'] + @created_at = attributes[:created_at] || attributes['created_at'] + @id = attributes[:id] || attributes['id'] + @rows_completed = attributes[:rows_completed] || attributes['rows_completed'] + @rows_total = attributes[:rows_total] || attributes['rows_total'] + @set_id = attributes[:set_id] || attributes['set_id'] + @status = attributes[:status] || attributes['status'] + @task_id = attributes[:task_id] || attributes['task_id'] + @triggered_by = attributes[:triggered_by] || attributes['triggered_by'] + @completed_at = attributes[:completed_at] || attributes['completed_at'] || nil + @config_updated_at = attributes[:config_updated_at] || attributes['config_updated_at'] || nil + @error_message = attributes[:error_message] || attributes['error_message'] || nil + @started_at = attributes[:started_at] || attributes['started_at'] || nil + @metrics = attributes[:metrics] || attributes['metrics'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + config_key: 'config_key', + created_at: 'created_at', + id: 'id', + rows_completed: 'rows_completed', + rows_total: 'rows_total', + set_id: 'set_id', + status: 'status', + task_id: 'task_id', + triggered_by: 'triggered_by', + completed_at: 'completed_at', + config_updated_at: 'config_updated_at', + error_message: 'error_message', + started_at: 'started_at', + metrics: 'metrics' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/policy_test_run_metrics.rb b/lib/getstream_ruby/generated/models/policy_test_run_metrics.rb new file mode 100644 index 0000000..74638e2 --- /dev/null +++ b/lib/getstream_ruby/generated/models/policy_test_run_metrics.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 PolicyTestRunMetrics < GetStream::BaseModel + + # Model attributes + # @!attribute mode + # @return [String] + attr_accessor :mode + # @!attribute totals + # @return [PolicyTestTotals] + attr_accessor :totals + # @!attribute by_label + # @return [Hash] + attr_accessor :by_label + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @mode = attributes[:mode] || attributes['mode'] + @totals = attributes[:totals] || attributes['totals'] + @by_label = attributes[:by_label] || attributes['by_label'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + mode: 'mode', + totals: 'totals', + by_label: 'by_label' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/policy_test_run_response.rb b/lib/getstream_ruby/generated/models/policy_test_run_response.rb new file mode 100644 index 0000000..55b53c8 --- /dev/null +++ b/lib/getstream_ruby/generated/models/policy_test_run_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 PolicyTestRunResponse < GetStream::BaseModel + + # Model attributes + # @!attribute duration + # @return [String] + attr_accessor :duration + # @!attribute results + # @return [Array] Per-row results (only present once the run has finished) + attr_accessor :results + # @!attribute run + # @return [PolicyTestRun] + attr_accessor :run + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @duration = attributes[:duration] || attributes['duration'] + @results = attributes[:results] || attributes['results'] || nil + @run = attributes[:run] || attributes['run'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + duration: 'duration', + results: 'results', + run: 'run' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/policy_test_seed_spec.rb b/lib/getstream_ruby/generated/models/policy_test_seed_spec.rb new file mode 100644 index 0000000..22fed75 --- /dev/null +++ b/lib/getstream_ruby/generated/models/policy_test_seed_spec.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 PolicyTestSeedSpec < GetStream::BaseModel + + # Model attributes + # @!attribute limit + # @return [Integer] How many rows to sample, newest first; capped at 1000 + attr_accessor :limit + # @!attribute labels + # @return [Array] Sample only records carrying any of these labels; empty samples everything + attr_accessor :labels + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @limit = attributes[:limit] || attributes['limit'] + @labels = attributes[:labels] || attributes['labels'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + limit: 'limit', + labels: 'labels' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/policy_test_set.rb b/lib/getstream_ruby/generated/models/policy_test_set.rb new file mode 100644 index 0000000..5c7a872 --- /dev/null +++ b/lib/getstream_ruby/generated/models/policy_test_set.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 PolicyTestSet < GetStream::BaseModel + + # Model attributes + # @!attribute config_key + # @return [String] + attr_accessor :config_key + # @!attribute created_at + # @return [DateTime] + attr_accessor :created_at + # @!attribute created_by + # @return [String] + attr_accessor :created_by + # @!attribute id + # @return [String] + attr_accessor :id + # @!attribute mode + # @return [String] + attr_accessor :mode + # @!attribute name + # @return [String] + attr_accessor :name + # @!attribute row_count + # @return [Integer] + attr_accessor :row_count + # @!attribute updated_at + # @return [DateTime] + attr_accessor :updated_at + # @!attribute team + # @return [String] + attr_accessor :team + # @!attribute rows + # @return [Array] + attr_accessor :rows + # @!attribute last_run + # @return [PolicyTestRun] + attr_accessor :last_run + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @config_key = attributes[:config_key] || attributes['config_key'] + @created_at = attributes[:created_at] || attributes['created_at'] + @created_by = attributes[:created_by] || attributes['created_by'] + @id = attributes[:id] || attributes['id'] + @mode = attributes[:mode] || attributes['mode'] + @name = attributes[:name] || attributes['name'] + @row_count = attributes[:row_count] || attributes['row_count'] + @updated_at = attributes[:updated_at] || attributes['updated_at'] + @team = attributes[:team] || attributes['team'] || nil + @rows = attributes[:rows] || attributes['rows'] || nil + @last_run = attributes[:last_run] || attributes['last_run'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + config_key: 'config_key', + created_at: 'created_at', + created_by: 'created_by', + id: 'id', + mode: 'mode', + name: 'name', + row_count: 'row_count', + updated_at: 'updated_at', + team: 'team', + rows: 'rows', + last_run: 'last_run' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/policy_test_set_list_response.rb b/lib/getstream_ruby/generated/models/policy_test_set_list_response.rb new file mode 100644 index 0000000..d0ab12c --- /dev/null +++ b/lib/getstream_ruby/generated/models/policy_test_set_list_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 PolicyTestSetListResponse < GetStream::BaseModel + + # Model attributes + # @!attribute duration + # @return [String] + attr_accessor :duration + # @!attribute sets + # @return [Array] List of policy test sets for the app + attr_accessor :sets + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @duration = attributes[:duration] || attributes['duration'] + @sets = attributes[:sets] || attributes['sets'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + duration: 'duration', + sets: 'sets' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/policy_test_set_response.rb b/lib/getstream_ruby/generated/models/policy_test_set_response.rb new file mode 100644 index 0000000..4e407f2 --- /dev/null +++ b/lib/getstream_ruby/generated/models/policy_test_set_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 PolicyTestSetResponse < GetStream::BaseModel + + # Model attributes + # @!attribute duration + # @return [String] + attr_accessor :duration + # @!attribute baseline_run_id + # @return [String] The set's baseline run (earliest completed run); later runs are scored against it. Absent until the first run completes + attr_accessor :baseline_run_id + # @!attribute recent_runs + # @return [Array] Retained run history for this set, newest first + attr_accessor :recent_runs + # @!attribute set + # @return [PolicyTestSet] + attr_accessor :set + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @duration = attributes[:duration] || attributes['duration'] + @baseline_run_id = attributes[:baseline_run_id] || attributes['baseline_run_id'] || nil + @recent_runs = attributes[:recent_runs] || attributes['recent_runs'] || nil + @set = attributes[:set] || attributes['set'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + duration: 'duration', + baseline_run_id: 'baseline_run_id', + recent_runs: 'recent_runs', + set: 'set' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/policy_test_totals.rb b/lib/getstream_ruby/generated/models/policy_test_totals.rb new file mode 100644 index 0000000..88d4855 --- /dev/null +++ b/lib/getstream_ruby/generated/models/policy_test_totals.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 PolicyTestTotals < GetStream::BaseModel + + # Model attributes + # @!attribute failed + # @return [Integer] + attr_accessor :failed + # @!attribute passed + # @return [Integer] + attr_accessor :passed + # @!attribute rows + # @return [Integer] + attr_accessor :rows + # @!attribute scored + # @return [Integer] + attr_accessor :scored + # @!attribute unscored + # @return [Integer] + attr_accessor :unscored + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @failed = attributes[:failed] || attributes['failed'] + @passed = attributes[:passed] || attributes['passed'] + @rows = attributes[:rows] || attributes['rows'] + @scored = attributes[:scored] || attributes['scored'] + @unscored = attributes[:unscored] || attributes['unscored'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + failed: 'failed', + passed: 'passed', + rows: 'rows', + scored: 'scored', + unscored: 'unscored' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/poll_response_data.rb b/lib/getstream_ruby/generated/models/poll_response_data.rb index 11a67d9..9d849e0 100644 --- a/lib/getstream_ruby/generated/models/poll_response_data.rb +++ b/lib/getstream_ruby/generated/models/poll_response_data.rb @@ -70,7 +70,7 @@ class PollResponseData < GetStream::BaseModel # @return [Integer] attr_accessor :max_votes_allowed # @!attribute created_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :created_by # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/poll_vote_response_data.rb b/lib/getstream_ruby/generated/models/poll_vote_response_data.rb index eee73bd..c8ac181 100644 --- a/lib/getstream_ruby/generated/models/poll_vote_response_data.rb +++ b/lib/getstream_ruby/generated/models/poll_vote_response_data.rb @@ -34,7 +34,7 @@ class PollVoteResponseData < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/poor_by_cause.rb b/lib/getstream_ruby/generated/models/poor_by_cause.rb new file mode 100644 index 0000000..9831628 --- /dev/null +++ b/lib/getstream_ruby/generated/models/poor_by_cause.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 PoorByCause < GetStream::BaseModel + + # Model attributes + # @!attribute delivery + # @return [Integer] + attr_accessor :delivery + # @!attribute edge + # @return [Integer] + attr_accessor :edge + # @!attribute isolated_local + # @return [Integer] + attr_accessor :isolated_local + # @!attribute source + # @return [Integer] + attr_accessor :source + # @!attribute unattributed + # @return [Integer] + attr_accessor :unattributed + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @delivery = attributes[:delivery] || attributes['delivery'] + @edge = attributes[:edge] || attributes['edge'] + @isolated_local = attributes[:isolated_local] || attributes['isolated_local'] + @source = attributes[:source] || attributes['source'] + @unattributed = attributes[:unattributed] || attributes['unattributed'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + delivery: 'delivery', + edge: 'edge', + isolated_local: 'isolated_local', + source: 'source', + unattributed: 'unattributed' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/poor_tail.rb b/lib/getstream_ruby/generated/models/poor_tail.rb new file mode 100644 index 0000000..13674cd --- /dev/null +++ b/lib/getstream_ruby/generated/models/poor_tail.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 PoorTail < GetStream::BaseModel + + # Model attributes + # @!attribute healthy_viewers + # @return [Integer] + attr_accessor :healthy_viewers + # @!attribute note + # @return [String] + attr_accessor :note + # @!attribute poor_total + # @return [Integer] + attr_accessor :poor_total + # @!attribute poor_by_cause + # @return [PoorByCause] + attr_accessor :poor_by_cause + # @!attribute supporting + # @return [Supporting] + attr_accessor :supporting + # @!attribute healthy_pct + # @return [Float] + attr_accessor :healthy_pct + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @healthy_viewers = attributes[:healthy_viewers] || attributes['healthy_viewers'] + @note = attributes[:note] || attributes['note'] + @poor_total = attributes[:poor_total] || attributes['poor_total'] + @poor_by_cause = attributes[:poor_by_cause] || attributes['poor_by_cause'] + @supporting = attributes[:supporting] || attributes['supporting'] + @healthy_pct = attributes[:healthy_pct] || attributes['healthy_pct'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + healthy_viewers: 'healthy_viewers', + note: 'note', + poor_total: 'poor_total', + poor_by_cause: 'poor_by_cause', + supporting: 'supporting', + healthy_pct: 'healthy_pct' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/publisher_session.rb b/lib/getstream_ruby/generated/models/publisher_session.rb new file mode 100644 index 0000000..9937996 --- /dev/null +++ b/lib/getstream_ruby/generated/models/publisher_session.rb @@ -0,0 +1,86 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class PublisherSession < GetStream::BaseModel + + # Model attributes + # @!attribute duration_min + # @return [Float] + attr_accessor :duration_min + # @!attribute started_offset_min + # @return [Float] + attr_accessor :started_offset_min + # @!attribute user_id + # @return [String] + attr_accessor :user_id + # @!attribute user_session_id + # @return [String] + attr_accessor :user_session_id + # @!attribute avg_jitter_ms + # @return [Float] + attr_accessor :avg_jitter_ms + # @!attribute browser + # @return [String] + attr_accessor :browser + # @!attribute delivery_zone + # @return [String] + attr_accessor :delivery_zone + # @!attribute ingest + # @return [String] + attr_accessor :ingest + # @!attribute os + # @return [String] + attr_accessor :os + # @!attribute send_quality_score + # @return [Float] + attr_accessor :send_quality_score + # @!attribute tool + # @return [String] + attr_accessor :tool + # @!attribute encoding + # @return [EncodingProfile] + attr_accessor :encoding + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @duration_min = attributes[:duration_min] || attributes['duration_min'] + @started_offset_min = attributes[:started_offset_min] || attributes['started_offset_min'] + @user_id = attributes[:user_id] || attributes['user_id'] + @user_session_id = attributes[:user_session_id] || attributes['user_session_id'] + @avg_jitter_ms = attributes[:avg_jitter_ms] || attributes['avg_jitter_ms'] || nil + @browser = attributes[:browser] || attributes['browser'] || nil + @delivery_zone = attributes[:delivery_zone] || attributes['delivery_zone'] || nil + @ingest = attributes[:ingest] || attributes['ingest'] || nil + @os = attributes[:os] || attributes['os'] || nil + @send_quality_score = attributes[:send_quality_score] || attributes['send_quality_score'] || nil + @tool = attributes[:tool] || attributes['tool'] || nil + @encoding = attributes[:encoding] || attributes['encoding'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + duration_min: 'duration_min', + started_offset_min: 'started_offset_min', + user_id: 'user_id', + user_session_id: 'user_session_id', + avg_jitter_ms: 'avg_jitter_ms', + browser: 'browser', + delivery_zone: 'delivery_zone', + ingest: 'ingest', + os: 'os', + send_quality_score: 'send_quality_score', + tool: 'tool', + encoding: 'encoding' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/quality.rb b/lib/getstream_ruby/generated/models/quality.rb new file mode 100644 index 0000000..ba43108 --- /dev/null +++ b/lib/getstream_ruby/generated/models/quality.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 Quality < GetStream::BaseModel + + # Model attributes + # @!attribute viewer_interruption_note + # @return [String] + attr_accessor :viewer_interruption_note + # @!attribute interruption_incidents + # @return [Array] + attr_accessor :interruption_incidents + # @!attribute connection_avg_jitter_ms + # @return [Percentiles] + attr_accessor :connection_avg_jitter_ms + # @!attribute connection_avg_latency_ms + # @return [Percentiles] + attr_accessor :connection_avg_latency_ms + # @!attribute score_bands_by_connection_pct + # @return [ScoreBands] + attr_accessor :score_bands_by_connection_pct + # @!attribute score_bands_by_watch_time_pct + # @return [ScoreBands] + attr_accessor :score_bands_by_watch_time_pct + # @!attribute p50_quality_score + # @return [Float] + attr_accessor :p50_quality_score + # @!attribute p5_quality_score + # @return [Float] + attr_accessor :p5_quality_score + # @!attribute viewer_interruption_rate_pct + # @return [Float] + attr_accessor :viewer_interruption_rate_pct + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @viewer_interruption_note = attributes[:viewer_interruption_note] || attributes['viewer_interruption_note'] + @interruption_incidents = attributes[:interruption_incidents] || attributes['interruption_incidents'] + @connection_avg_jitter_ms = attributes[:connection_avg_jitter_ms] || attributes['connection_avg_jitter_ms'] + @connection_avg_latency_ms = attributes[:connection_avg_latency_ms] || attributes['connection_avg_latency_ms'] + @score_bands_by_connection_pct = attributes[:score_bands_by_connection_pct] || attributes['score_bands_by_connection_pct'] + @score_bands_by_watch_time_pct = attributes[:score_bands_by_watch_time_pct] || attributes['score_bands_by_watch_time_pct'] + @p50_quality_score = attributes[:p50_quality_score] || attributes['p50_quality_score'] || nil + @p5_quality_score = attributes[:p5_quality_score] || attributes['p5_quality_score'] || nil + @viewer_interruption_rate_pct = attributes[:viewer_interruption_rate_pct] || attributes['viewer_interruption_rate_pct'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + viewer_interruption_note: 'viewer_interruption_note', + interruption_incidents: 'interruption_incidents', + connection_avg_jitter_ms: 'connection_avg_jitter_ms', + connection_avg_latency_ms: 'connection_avg_latency_ms', + score_bands_by_connection_pct: 'score_bands_by_connection_pct', + score_bands_by_watch_time_pct: 'score_bands_by_watch_time_pct', + p50_quality_score: 'p50_quality_score', + p5_quality_score: 'p5_quality_score', + viewer_interruption_rate_pct: 'viewer_interruption_rate_pct' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/query_activities_request.rb b/lib/getstream_ruby/generated/models/query_activities_request.rb index 156bf52..0427e43 100644 --- a/lib/getstream_ruby/generated/models/query_activities_request.rb +++ b/lib/getstream_ruby/generated/models/query_activities_request.rb @@ -40,7 +40,7 @@ class QueryActivitiesRequest < GetStream::BaseModel # @return [Object] Filters to apply to the query. Supports location-based queries with 'near' and 'within_bounds' operators. attr_accessor :filter # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_activity_reactions_request.rb b/lib/getstream_ruby/generated/models/query_activity_reactions_request.rb index e4dc9d7..754544f 100644 --- a/lib/getstream_ruby/generated/models/query_activity_reactions_request.rb +++ b/lib/getstream_ruby/generated/models/query_activity_reactions_request.rb @@ -22,7 +22,7 @@ class QueryActivityReactionsRequest < GetStream::BaseModel # @return [Array] attr_accessor :sort # @!attribute filter - # @return [Object] + # @return [Object] Filters to apply to the query attr_accessor :filter # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_appeals_request.rb b/lib/getstream_ruby/generated/models/query_appeals_request.rb index 67994d4..4e60a5d 100644 --- a/lib/getstream_ruby/generated/models/query_appeals_request.rb +++ b/lib/getstream_ruby/generated/models/query_appeals_request.rb @@ -28,7 +28,7 @@ class QueryAppealsRequest < GetStream::BaseModel # @return [Object] Filter conditions for appeals attr_accessor :filter # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_banned_users_payload.rb b/lib/getstream_ruby/generated/models/query_banned_users_payload.rb index 2b78832..2dded36 100644 --- a/lib/getstream_ruby/generated/models/query_banned_users_payload.rb +++ b/lib/getstream_ruby/generated/models/query_banned_users_payload.rb @@ -28,7 +28,7 @@ class QueryBannedUsersPayload < GetStream::BaseModel # @return [Array] Array of sort parameters attr_accessor :sort # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_bookmarks_request.rb b/lib/getstream_ruby/generated/models/query_bookmarks_request.rb index f70d356..113647c 100644 --- a/lib/getstream_ruby/generated/models/query_bookmarks_request.rb +++ b/lib/getstream_ruby/generated/models/query_bookmarks_request.rb @@ -31,7 +31,7 @@ class QueryBookmarksRequest < GetStream::BaseModel # @return [Object] Filters to apply to the query attr_accessor :filter # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_call_participants_response.rb b/lib/getstream_ruby/generated/models/query_call_participants_response.rb index be81094..dae7907 100644 --- a/lib/getstream_ruby/generated/models/query_call_participants_response.rb +++ b/lib/getstream_ruby/generated/models/query_call_participants_response.rb @@ -25,7 +25,7 @@ class QueryCallParticipantsResponse < GetStream::BaseModel # @return [Array] List of call participants attr_accessor :participants # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_campaigns_request.rb b/lib/getstream_ruby/generated/models/query_campaigns_request.rb index e6510e4..8ceed82 100644 --- a/lib/getstream_ruby/generated/models/query_campaigns_request.rb +++ b/lib/getstream_ruby/generated/models/query_campaigns_request.rb @@ -25,7 +25,7 @@ class QueryCampaignsRequest < GetStream::BaseModel # @return [Array] attr_accessor :sort # @!attribute filter - # @return [Object] + # @return [Object] Filter to apply to the query attr_accessor :filter # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_channels_request.rb b/lib/getstream_ruby/generated/models/query_channels_request.rb index 26531eb..ae8417e 100644 --- a/lib/getstream_ruby/generated/models/query_channels_request.rb +++ b/lib/getstream_ruby/generated/models/query_channels_request.rb @@ -30,6 +30,9 @@ class QueryChannelsRequest < GetStream::BaseModel # @!attribute user_id # @return [String] attr_accessor :user_id + # @!attribute member_custom_include + # @return [Array] Top-level keys of the message sender's channel-member custom data to include under member.custom (max 8 keys, 64 chars each) + attr_accessor :member_custom_include # @!attribute sort # @return [Array] List of sort parameters attr_accessor :sort @@ -43,7 +46,7 @@ class QueryChannelsRequest < GetStream::BaseModel # @return [Object] attr_accessor :sort_values # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes @@ -56,6 +59,7 @@ def initialize(attributes = {}) @predefined_filter = attributes[:predefined_filter] || attributes['predefined_filter'] || nil @state = attributes[:state] || attributes['state'] || nil @user_id = attributes[:user_id] || attributes['user_id'] || nil + @member_custom_include = attributes[:member_custom_include] || attributes['member_custom_include'] || 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 @@ -73,6 +77,7 @@ def self.json_field_mappings predefined_filter: 'predefined_filter', state: 'state', user_id: 'user_id', + member_custom_include: 'member_custom_include', sort: 'sort', filter_conditions: 'filter_conditions', filter_values: 'filter_values', diff --git a/lib/getstream_ruby/generated/models/query_collections_request.rb b/lib/getstream_ruby/generated/models/query_collections_request.rb index bae7619..938bbb9 100644 --- a/lib/getstream_ruby/generated/models/query_collections_request.rb +++ b/lib/getstream_ruby/generated/models/query_collections_request.rb @@ -28,7 +28,7 @@ class QueryCollectionsRequest < GetStream::BaseModel # @return [Object] Filters to apply to the query attr_accessor :filter # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_comment_reactions_request.rb b/lib/getstream_ruby/generated/models/query_comment_reactions_request.rb index 55c84c0..2aed81a 100644 --- a/lib/getstream_ruby/generated/models/query_comment_reactions_request.rb +++ b/lib/getstream_ruby/generated/models/query_comment_reactions_request.rb @@ -22,7 +22,7 @@ class QueryCommentReactionsRequest < GetStream::BaseModel # @return [Array] attr_accessor :sort # @!attribute filter - # @return [Object] + # @return [Object] Filters to apply to the query attr_accessor :filter # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_comments_request.rb b/lib/getstream_ruby/generated/models/query_comments_request.rb index aa3743f..f172e9a 100644 --- a/lib/getstream_ruby/generated/models/query_comments_request.rb +++ b/lib/getstream_ruby/generated/models/query_comments_request.rb @@ -31,7 +31,7 @@ class QueryCommentsRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_drafts_request.rb b/lib/getstream_ruby/generated/models/query_drafts_request.rb index bda5032..a3d8793 100644 --- a/lib/getstream_ruby/generated/models/query_drafts_request.rb +++ b/lib/getstream_ruby/generated/models/query_drafts_request.rb @@ -28,7 +28,7 @@ class QueryDraftsRequest < GetStream::BaseModel # @return [Object] Filter to apply to the query attr_accessor :filter # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_feed_moderation_template.rb b/lib/getstream_ruby/generated/models/query_feed_moderation_template.rb index 5f8ea55..cb55efb 100644 --- a/lib/getstream_ruby/generated/models/query_feed_moderation_template.rb +++ b/lib/getstream_ruby/generated/models/query_feed_moderation_template.rb @@ -19,7 +19,7 @@ class QueryFeedModerationTemplate < GetStream::BaseModel # @return [DateTime] When the template was last updated attr_accessor :updated_at # @!attribute config - # @return [FeedsModerationTemplateConfigPayload] + # @return [FeedsModerationTemplateConfigPayload] Configuration for a feeds moderation template attr_accessor :config # Initialize with attributes 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 index 773e4cf..67d1abc 100644 --- a/lib/getstream_ruby/generated/models/query_future_channel_bans_payload.rb +++ b/lib/getstream_ruby/generated/models/query_future_channel_bans_payload.rb @@ -12,6 +12,9 @@ class QueryFutureChannelBansPayload < GetStream::BaseModel # @!attribute exclude_expired_bans # @return [Boolean] Whether to exclude expired bans or not attr_accessor :exclude_expired_bans + # @!attribute include_total + # @return [Boolean] When true, the response includes the total number of bans matching the query filter (independent of limit and offset, capped at 100000) + attr_accessor :include_total # @!attribute limit # @return [Integer] Number of records to return attr_accessor :limit @@ -19,19 +22,20 @@ class QueryFutureChannelBansPayload < GetStream::BaseModel # @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. + # @return [String] Filter by the target user ID. Server-side: returns all bans against this user. Client-side: narrows the authenticated user's own bans to this target. attr_accessor :target_user_id # @!attribute user_id # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes def initialize(attributes = {}) super(attributes) @exclude_expired_bans = attributes[:exclude_expired_bans] || attributes['exclude_expired_bans'] || nil + @include_total = attributes[:include_total] || attributes['include_total'] || 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 @@ -43,6 +47,7 @@ def initialize(attributes = {}) def self.json_field_mappings { exclude_expired_bans: 'exclude_expired_bans', + include_total: 'include_total', limit: 'limit', offset: 'offset', target_user_id: 'target_user_id', 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 index 1ee0cf2..2a81ff5 100644 --- a/lib/getstream_ruby/generated/models/query_future_channel_bans_response.rb +++ b/lib/getstream_ruby/generated/models/query_future_channel_bans_response.rb @@ -15,19 +15,24 @@ class QueryFutureChannelBansResponse < GetStream::BaseModel # @!attribute bans # @return [Array] List of found future channel bans attr_accessor :bans + # @!attribute total + # @return [Integer] Total number of bans matching the query filter, computed at query time and capped at 100000. Only present when include_total is set on the request; omitted when computing the total timed out + attr_accessor :total # Initialize with attributes def initialize(attributes = {}) super(attributes) @duration = attributes[:duration] || attributes['duration'] @bans = attributes[:bans] || attributes['bans'] + @total = attributes[:total] || attributes['total'] || nil end # Override field mappings for JSON serialization def self.json_field_mappings { duration: 'duration', - bans: 'bans' + bans: 'bans', + total: 'total' } end end diff --git a/lib/getstream_ruby/generated/models/query_label_results_request.rb b/lib/getstream_ruby/generated/models/query_label_results_request.rb index a69a8a4..41a2287 100644 --- a/lib/getstream_ruby/generated/models/query_label_results_request.rb +++ b/lib/getstream_ruby/generated/models/query_label_results_request.rb @@ -28,7 +28,7 @@ class QueryLabelResultsRequest < GetStream::BaseModel # @return [Object] Filter conditions attr_accessor :filter # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_members_payload.rb b/lib/getstream_ruby/generated/models/query_members_payload.rb index 8abb63d..c7defef 100644 --- a/lib/getstream_ruby/generated/models/query_members_payload.rb +++ b/lib/getstream_ruby/generated/models/query_members_payload.rb @@ -34,7 +34,7 @@ class QueryMembersPayload < GetStream::BaseModel # @return [Array] Array of sort parameters attr_accessor :sort # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_message_flags_payload.rb b/lib/getstream_ruby/generated/models/query_message_flags_payload.rb index e40f587..5a88dcc 100644 --- a/lib/getstream_ruby/generated/models/query_message_flags_payload.rb +++ b/lib/getstream_ruby/generated/models/query_message_flags_payload.rb @@ -28,7 +28,7 @@ class QueryMessageFlagsPayload < GetStream::BaseModel # @return [Object] Filter conditions to apply to the query attr_accessor :filter_conditions # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_moderation_configs_request.rb b/lib/getstream_ruby/generated/models/query_moderation_configs_request.rb index 3a1fe73..5740ab4 100644 --- a/lib/getstream_ruby/generated/models/query_moderation_configs_request.rb +++ b/lib/getstream_ruby/generated/models/query_moderation_configs_request.rb @@ -28,7 +28,7 @@ class QueryModerationConfigsRequest < GetStream::BaseModel # @return [Object] Filter conditions for moderation configs attr_accessor :filter # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_moderation_flags_request.rb b/lib/getstream_ruby/generated/models/query_moderation_flags_request.rb index 2d33c3d..428c43e 100644 --- a/lib/getstream_ruby/generated/models/query_moderation_flags_request.rb +++ b/lib/getstream_ruby/generated/models/query_moderation_flags_request.rb @@ -22,7 +22,7 @@ class QueryModerationFlagsRequest < GetStream::BaseModel # @return [Array] attr_accessor :sort # @!attribute filter - # @return [Object] + # @return [Object] Filter conditions for moderation flags attr_accessor :filter # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_moderation_logs_request.rb b/lib/getstream_ruby/generated/models/query_moderation_logs_request.rb index c3387e8..795362b 100644 --- a/lib/getstream_ruby/generated/models/query_moderation_logs_request.rb +++ b/lib/getstream_ruby/generated/models/query_moderation_logs_request.rb @@ -28,7 +28,7 @@ class QueryModerationLogsRequest < GetStream::BaseModel # @return [Object] Filter conditions for moderation logs attr_accessor :filter # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_moderation_rules_request.rb b/lib/getstream_ruby/generated/models/query_moderation_rules_request.rb index 2eac6e9..d0ca881 100644 --- a/lib/getstream_ruby/generated/models/query_moderation_rules_request.rb +++ b/lib/getstream_ruby/generated/models/query_moderation_rules_request.rb @@ -28,7 +28,7 @@ class QueryModerationRulesRequest < GetStream::BaseModel # @return [Object] Filter conditions for moderation rules attr_accessor :filter # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_reactions_request.rb b/lib/getstream_ruby/generated/models/query_reactions_request.rb index 46db72a..ea4a88f 100644 --- a/lib/getstream_ruby/generated/models/query_reactions_request.rb +++ b/lib/getstream_ruby/generated/models/query_reactions_request.rb @@ -28,7 +28,7 @@ class QueryReactionsRequest < GetStream::BaseModel # @return [Object] Filter to apply to the query attr_accessor :filter # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_reminders_request.rb b/lib/getstream_ruby/generated/models/query_reminders_request.rb index 07e7f6f..fe2cf6b 100644 --- a/lib/getstream_ruby/generated/models/query_reminders_request.rb +++ b/lib/getstream_ruby/generated/models/query_reminders_request.rb @@ -28,7 +28,7 @@ class QueryRemindersRequest < GetStream::BaseModel # @return [Object] Filter to apply to the query attr_accessor :filter # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_review_queue_request.rb b/lib/getstream_ruby/generated/models/query_review_queue_request.rb index 6439993..f5723d0 100644 --- a/lib/getstream_ruby/generated/models/query_review_queue_request.rb +++ b/lib/getstream_ruby/generated/models/query_review_queue_request.rb @@ -43,7 +43,7 @@ class QueryReviewQueueRequest < GetStream::BaseModel # @return [Object] Filter conditions for review queue items. Accepts built-in fields (e.g. status, channel_cid, severity, recommended_action) and customer-supplied moderation_payload.custom keys: any key that is not a built-in field is matched against the item's custom moderation data (e.g. {"location_id": "loc-42"}). Use filter_config.filterable_custom_keys to discover which custom keys the app exposes as chips. attr_accessor :filter # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_threads_request.rb b/lib/getstream_ruby/generated/models/query_threads_request.rb index 9d459bc..bb4bbae 100644 --- a/lib/getstream_ruby/generated/models/query_threads_request.rb +++ b/lib/getstream_ruby/generated/models/query_threads_request.rb @@ -37,7 +37,7 @@ class QueryThreadsRequest < GetStream::BaseModel # @return [Object] Filter to apply to the query attr_accessor :filter # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/query_users_payload.rb b/lib/getstream_ruby/generated/models/query_users_payload.rb index df25737..8feecbc 100644 --- a/lib/getstream_ruby/generated/models/query_users_payload.rb +++ b/lib/getstream_ruby/generated/models/query_users_payload.rb @@ -31,7 +31,7 @@ class QueryUsersPayload < GetStream::BaseModel # @return [Array] Array of sort parameters attr_accessor :sort # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/reaction_deleted_event.rb b/lib/getstream_ruby/generated/models/reaction_deleted_event.rb index c183b69..29c1093 100644 --- a/lib/getstream_ruby/generated/models/reaction_deleted_event.rb +++ b/lib/getstream_ruby/generated/models/reaction_deleted_event.rb @@ -13,7 +13,7 @@ class ReactionDeletedEvent < GetStream::BaseModel # @return [DateTime] Date/time of creation attr_accessor :created_at # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute custom # @return [Object] @@ -52,7 +52,7 @@ class ReactionDeletedEvent < GetStream::BaseModel # @return [Object] attr_accessor :channel_custom # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute reaction # @return [ReactionResponse] diff --git a/lib/getstream_ruby/generated/models/reaction_group_user_response.rb b/lib/getstream_ruby/generated/models/reaction_group_user_response.rb index 8db06a3..23d674c 100644 --- a/lib/getstream_ruby/generated/models/reaction_group_user_response.rb +++ b/lib/getstream_ruby/generated/models/reaction_group_user_response.rb @@ -16,7 +16,7 @@ class ReactionGroupUserResponse < GetStream::BaseModel # @return [String] The ID of the user who reacted. attr_accessor :user_id # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/reaction_new_event.rb b/lib/getstream_ruby/generated/models/reaction_new_event.rb index 8bbdc1b..3fa4650 100644 --- a/lib/getstream_ruby/generated/models/reaction_new_event.rb +++ b/lib/getstream_ruby/generated/models/reaction_new_event.rb @@ -13,7 +13,7 @@ class ReactionNewEvent < GetStream::BaseModel # @return [DateTime] Date/time of creation attr_accessor :created_at # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute custom # @return [Object] @@ -52,7 +52,7 @@ class ReactionNewEvent < GetStream::BaseModel # @return [Object] attr_accessor :channel_custom # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute reaction # @return [ReactionResponse] diff --git a/lib/getstream_ruby/generated/models/reaction_request.rb b/lib/getstream_ruby/generated/models/reaction_request.rb index f8eb5fa..587ae26 100644 --- a/lib/getstream_ruby/generated/models/reaction_request.rb +++ b/lib/getstream_ruby/generated/models/reaction_request.rb @@ -28,7 +28,7 @@ class ReactionRequest < GetStream::BaseModel # @return [Object] attr_accessor :custom # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/reaction_response.rb b/lib/getstream_ruby/generated/models/reaction_response.rb index 1a263e5..19203db 100644 --- a/lib/getstream_ruby/generated/models/reaction_response.rb +++ b/lib/getstream_ruby/generated/models/reaction_response.rb @@ -31,7 +31,7 @@ class ReactionResponse < GetStream::BaseModel # @return [Object] Custom data for this object attr_accessor :custom # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/reaction_updated_event.rb b/lib/getstream_ruby/generated/models/reaction_updated_event.rb index 3b1d68c..4a7a9f4 100644 --- a/lib/getstream_ruby/generated/models/reaction_updated_event.rb +++ b/lib/getstream_ruby/generated/models/reaction_updated_event.rb @@ -16,13 +16,13 @@ class ReactionUpdatedEvent < GetStream::BaseModel # @return [String] attr_accessor :message_id # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute custom # @return [Object] attr_accessor :custom # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute type # @return [String] The type of event: "reaction.updated" in this case diff --git a/lib/getstream_ruby/generated/models/reactivate_user_response.rb b/lib/getstream_ruby/generated/models/reactivate_user_response.rb index 06e8ab2..7009577 100644 --- a/lib/getstream_ruby/generated/models/reactivate_user_response.rb +++ b/lib/getstream_ruby/generated/models/reactivate_user_response.rb @@ -13,7 +13,7 @@ class ReactivateUserResponse < GetStream::BaseModel # @return [String] Duration of the request in milliseconds attr_accessor :duration # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/read_state_response.rb b/lib/getstream_ruby/generated/models/read_state_response.rb index 7360f67..f9af288 100644 --- a/lib/getstream_ruby/generated/models/read_state_response.rb +++ b/lib/getstream_ruby/generated/models/read_state_response.rb @@ -16,7 +16,7 @@ class ReadStateResponse < GetStream::BaseModel # @return [Integer] attr_accessor :unread_messages # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute last_delivered_at # @return [DateTime] diff --git a/lib/getstream_ruby/generated/models/reject_feed_member_invite_request.rb b/lib/getstream_ruby/generated/models/reject_feed_member_invite_request.rb index 19cfe09..e64e749 100644 --- a/lib/getstream_ruby/generated/models/reject_feed_member_invite_request.rb +++ b/lib/getstream_ruby/generated/models/reject_feed_member_invite_request.rb @@ -13,7 +13,7 @@ class RejectFeedMemberInviteRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/reminder_response_data.rb b/lib/getstream_ruby/generated/models/reminder_response_data.rb index 80f7092..7893fa7 100644 --- a/lib/getstream_ruby/generated/models/reminder_response_data.rb +++ b/lib/getstream_ruby/generated/models/reminder_response_data.rb @@ -28,13 +28,13 @@ class ReminderResponseData < GetStream::BaseModel # @return [DateTime] attr_accessor :remind_at # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes 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 c4f36e2..14d1ddd 100644 --- a/lib/getstream_ruby/generated/models/resolve_sip_inbound_request.rb +++ b/lib/getstream_ruby/generated/models/resolve_sip_inbound_request.rb @@ -22,7 +22,7 @@ class ResolveSipInboundRequest < GetStream::BaseModel # @return [String] Optional pre-authenticated trunk ID (from PreAuth no-auth flow) attr_accessor :trunk_id # @!attribute challenge - # @return [SIPChallengeRequest] + # @return [SIPChallengeRequest] SIP digest challenge authentication data attr_accessor :challenge # @!attribute sip_headers # @return [Hash] Optional SIP headers as key-value pairs diff --git a/lib/getstream_ruby/generated/models/resolve_sip_inbound_response.rb b/lib/getstream_ruby/generated/models/resolve_sip_inbound_response.rb index ec22782..0ed38db 100644 --- a/lib/getstream_ruby/generated/models/resolve_sip_inbound_response.rb +++ b/lib/getstream_ruby/generated/models/resolve_sip_inbound_response.rb @@ -13,13 +13,13 @@ class ResolveSipInboundResponse < GetStream::BaseModel # @return [String] attr_accessor :duration # @!attribute credentials - # @return [SipInboundCredentials] + # @return [SipInboundCredentials] Credentials for SIP inbound call authentication attr_accessor :credentials # @!attribute sip_routing_rule - # @return [SIPInboundRoutingRuleResponse] + # @return [SIPInboundRoutingRuleResponse] SIP Inbound Routing Rule response attr_accessor :sip_routing_rule # @!attribute sip_trunk - # @return [SIPTrunkResponse] + # @return [SIPTrunkResponse] SIP trunk information attr_accessor :sip_trunk # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/restore_activity_request.rb b/lib/getstream_ruby/generated/models/restore_activity_request.rb index 8271263..a5949d8 100644 --- a/lib/getstream_ruby/generated/models/restore_activity_request.rb +++ b/lib/getstream_ruby/generated/models/restore_activity_request.rb @@ -13,7 +13,7 @@ class RestoreActivityRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/restore_comment_request.rb b/lib/getstream_ruby/generated/models/restore_comment_request.rb index 48a37ef..08187d9 100644 --- a/lib/getstream_ruby/generated/models/restore_comment_request.rb +++ b/lib/getstream_ruby/generated/models/restore_comment_request.rb @@ -13,7 +13,7 @@ class RestoreCommentRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes 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 23c4230..2095921 100644 --- a/lib/getstream_ruby/generated/models/review_queue_item_response.rb +++ b/lib/getstream_ruby/generated/models/review_queue_item_response.rb @@ -88,7 +88,7 @@ class ReviewQueueItemResponse < GetStream::BaseModel # @return [AppealItemResponse] attr_accessor :appeal # @!attribute assigned_to - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :assigned_to # @!attribute call # @return [ModerationCallResponse] @@ -115,7 +115,7 @@ class ReviewQueueItemResponse < GetStream::BaseModel # @return [ChatMessageResponse] attr_accessor :message # @!attribute moderation_payload - # @return [ModerationPayloadResponse] + # @return [ModerationPayloadResponse] Content payload for moderation attr_accessor :moderation_payload # @!attribute reaction # @return [Reaction] diff --git a/lib/getstream_ruby/generated/models/rule_builder_condition.rb b/lib/getstream_ruby/generated/models/rule_builder_condition.rb index 81435de..4ee0d92 100644 --- a/lib/getstream_ruby/generated/models/rule_builder_condition.rb +++ b/lib/getstream_ruby/generated/models/rule_builder_condition.rb @@ -42,12 +42,24 @@ class RuleBuilderCondition < GetStream::BaseModel # @!attribute content_flag_count_rule_params # @return [FlagCountRuleParameters] attr_accessor :content_flag_count_rule_params + # @!attribute flood_identical_params + # @return [FloodIdenticalRuleParameters] + attr_accessor :flood_identical_params + # @!attribute flood_similar_params + # @return [FloodSimilarRuleParameters] + attr_accessor :flood_similar_params # @!attribute image_content_params # @return [ImageContentParameters] attr_accessor :image_content_params # @!attribute image_rule_params # @return [ImageRuleParameters] attr_accessor :image_rule_params + # @!attribute ip_content_count_rule_params + # @return [IPContentCountRuleParameters] + attr_accessor :ip_content_count_rule_params + # @!attribute ip_flag_count_rule_params + # @return [IPFlagCountRuleParameters] + attr_accessor :ip_flag_count_rule_params # @!attribute keyframe_ocr_rule_params # @return [KeyframeOCRRuleParameters] attr_accessor :keyframe_ocr_rule_params @@ -102,8 +114,12 @@ def initialize(attributes = {}) @content_custom_property_count_params = attributes[:content_custom_property_count_params] || attributes['content_custom_property_count_params'] || nil @content_custom_property_params = attributes[:content_custom_property_params] || attributes['content_custom_property_params'] || nil @content_flag_count_rule_params = attributes[:content_flag_count_rule_params] || attributes['content_flag_count_rule_params'] || nil + @flood_identical_params = attributes[:flood_identical_params] || attributes['flood_identical_params'] || nil + @flood_similar_params = attributes[:flood_similar_params] || attributes['flood_similar_params'] || nil @image_content_params = attributes[:image_content_params] || attributes['image_content_params'] || nil @image_rule_params = attributes[:image_rule_params] || attributes['image_rule_params'] || nil + @ip_content_count_rule_params = attributes[:ip_content_count_rule_params] || attributes['ip_content_count_rule_params'] || nil + @ip_flag_count_rule_params = attributes[:ip_flag_count_rule_params] || attributes['ip_flag_count_rule_params'] || nil @keyframe_ocr_rule_params = attributes[:keyframe_ocr_rule_params] || attributes['keyframe_ocr_rule_params'] || nil @keyframe_rule_params = attributes[:keyframe_rule_params] || attributes['keyframe_rule_params'] || nil @ocr_content_params = attributes[:ocr_content_params] || attributes['ocr_content_params'] || nil @@ -133,8 +149,12 @@ def self.json_field_mappings content_custom_property_count_params: 'content_custom_property_count_params', content_custom_property_params: 'content_custom_property_params', content_flag_count_rule_params: 'content_flag_count_rule_params', + flood_identical_params: 'flood_identical_params', + flood_similar_params: 'flood_similar_params', image_content_params: 'image_content_params', image_rule_params: 'image_rule_params', + ip_content_count_rule_params: 'ip_content_count_rule_params', + ip_flag_count_rule_params: 'ip_flag_count_rule_params', keyframe_ocr_rule_params: 'keyframe_ocr_rule_params', keyframe_rule_params: 'keyframe_rule_params', ocr_content_params: 'ocr_content_params', diff --git a/lib/getstream_ruby/generated/models/score_bands.rb b/lib/getstream_ruby/generated/models/score_bands.rb new file mode 100644 index 0000000..2f04d0e --- /dev/null +++ b/lib/getstream_ruby/generated/models/score_bands.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 ScoreBands < GetStream::BaseModel + + # Model attributes + # @!attribute good + # @return [Float] + attr_accessor :good + # @!attribute ok + # @return [Float] + attr_accessor :ok + # @!attribute poor + # @return [Float] + attr_accessor :poor + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @good = attributes[:good] || attributes['good'] || nil + @ok = attributes[:ok] || attributes['ok'] || nil + @poor = attributes[:poor] || attributes['poor'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + good: 'good', + ok: 'ok', + poor: 'poor' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/search_result_message.rb b/lib/getstream_ruby/generated/models/search_result_message.rb index 1ff5cbf..ce42fe0 100644 --- a/lib/getstream_ruby/generated/models/search_result_message.rb +++ b/lib/getstream_ruby/generated/models/search_result_message.rb @@ -76,7 +76,7 @@ class SearchResultMessage < GetStream::BaseModel # @return [Hash] attr_accessor :reaction_scores # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute command # @return [String] @@ -124,7 +124,7 @@ class SearchResultMessage < GetStream::BaseModel # @return [Array] attr_accessor :thread_participants # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute draft # @return [DraftResponse] @@ -136,19 +136,19 @@ class SearchResultMessage < GetStream::BaseModel # @return [Hash>] attr_accessor :image_labels # @!attribute member - # @return [ChannelMemberResponse] + # @return [ChannelMemberPartialResponse] attr_accessor :member # @!attribute moderation # @return [ModerationV2Response] attr_accessor :moderation # @!attribute pinned_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :pinned_by # @!attribute poll # @return [PollResponseData] attr_accessor :poll # @!attribute quoted_message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :quoted_message # @!attribute reaction_groups # @return [Hash] diff --git a/lib/getstream_ruby/generated/models/segments.rb b/lib/getstream_ruby/generated/models/segments.rb new file mode 100644 index 0000000..0a7f693 --- /dev/null +++ b/lib/getstream_ruby/generated/models/segments.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 Segments < GetStream::BaseModel + + # Model attributes + # @!attribute by_country_reason + # @return [String] + attr_accessor :by_country_reason + # @!attribute by_browser + # @return [Array] + attr_accessor :by_browser + # @!attribute by_country + # @return [Array] + attr_accessor :by_country + # @!attribute by_delivery_zone + # @return [Array] + attr_accessor :by_delivery_zone + # @!attribute by_os + # @return [Array] + attr_accessor :by_os + # @!attribute by_sdk + # @return [Array] + attr_accessor :by_sdk + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @by_country_reason = attributes[:by_country_reason] || attributes['by_country_reason'] + @by_browser = attributes[:by_browser] || attributes['by_browser'] + @by_country = attributes[:by_country] || attributes['by_country'] + @by_delivery_zone = attributes[:by_delivery_zone] || attributes['by_delivery_zone'] + @by_os = attributes[:by_os] || attributes['by_os'] + @by_sdk = attributes[:by_sdk] || attributes['by_sdk'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + by_country_reason: 'by_country_reason', + by_browser: 'by_browser', + by_country: 'by_country', + by_delivery_zone: 'by_delivery_zone', + by_os: 'by_os', + by_sdk: 'by_sdk' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/send_call_event_request.rb b/lib/getstream_ruby/generated/models/send_call_event_request.rb index 82eaaeb..dbf7036 100644 --- a/lib/getstream_ruby/generated/models/send_call_event_request.rb +++ b/lib/getstream_ruby/generated/models/send_call_event_request.rb @@ -16,7 +16,7 @@ class SendCallEventRequest < GetStream::BaseModel # @return [Object] attr_accessor :custom # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/send_closed_caption_request.rb b/lib/getstream_ruby/generated/models/send_closed_caption_request.rb index 8925422..6e9b49a 100644 --- a/lib/getstream_ruby/generated/models/send_closed_caption_request.rb +++ b/lib/getstream_ruby/generated/models/send_closed_caption_request.rb @@ -34,7 +34,7 @@ class SendClosedCaptionRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/send_message_request.rb b/lib/getstream_ruby/generated/models/send_message_request.rb index 336e58a..ac43379 100644 --- a/lib/getstream_ruby/generated/models/send_message_request.rb +++ b/lib/getstream_ruby/generated/models/send_message_request.rb @@ -10,11 +10,17 @@ class SendMessageRequest < GetStream::BaseModel # Model attributes # @!attribute message - # @return [MessageRequest] + # @return [MessageRequest] Message data for creating or updating a message attr_accessor :message # @!attribute force_moderation # @return [Boolean] attr_accessor :force_moderation + # @!attribute include_channel_context + # @return [Boolean] When true, the response includes channel_context: a slim channel object with cid, type, id and created_by + attr_accessor :include_channel_context + # @!attribute include_mentioned_members + # @return [Boolean] When true, the response includes mentioned_members: for each mentioned user, whether that user is currently a channel member. Requires the ReadChannelMembers permission + attr_accessor :include_mentioned_members # @!attribute keep_channel_hidden # @return [Boolean] attr_accessor :keep_channel_hidden @@ -36,6 +42,8 @@ def initialize(attributes = {}) super(attributes) @message = attributes[:message] || attributes['message'] @force_moderation = attributes[:force_moderation] || attributes['force_moderation'] || nil + @include_channel_context = attributes[:include_channel_context] || attributes['include_channel_context'] || nil + @include_mentioned_members = attributes[:include_mentioned_members] || attributes['include_mentioned_members'] || nil @keep_channel_hidden = attributes[:keep_channel_hidden] || attributes['keep_channel_hidden'] || nil @pending = attributes[:pending] || attributes['pending'] || nil @skip_enrich_url = attributes[:skip_enrich_url] || attributes['skip_enrich_url'] || nil @@ -48,6 +56,8 @@ def self.json_field_mappings { message: 'message', force_moderation: 'force_moderation', + include_channel_context: 'include_channel_context', + include_mentioned_members: 'include_mentioned_members', keep_channel_hidden: 'keep_channel_hidden', pending: 'pending', skip_enrich_url: 'skip_enrich_url', diff --git a/lib/getstream_ruby/generated/models/send_message_response.rb b/lib/getstream_ruby/generated/models/send_message_response.rb index da94021..067f247 100644 --- a/lib/getstream_ruby/generated/models/send_message_response.rb +++ b/lib/getstream_ruby/generated/models/send_message_response.rb @@ -13,8 +13,14 @@ class SendMessageResponse < GetStream::BaseModel # @return [String] Duration of the request in milliseconds attr_accessor :duration # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message + # @!attribute channel_context + # @return [ChannelContextResponse] Slim channel object: identity plus creator + attr_accessor :channel_context + # @!attribute mentioned_members + # @return [Hash] Map of mentioned user ID to whether that user is currently an active channel member. Only set when include_mentioned_members was requested; omitted when the message has no mentions or the membership lookup failed + attr_accessor :mentioned_members # @!attribute pending_message_metadata # @return [Hash] Pending message metadata attr_accessor :pending_message_metadata @@ -24,6 +30,8 @@ def initialize(attributes = {}) super(attributes) @duration = attributes[:duration] || attributes['duration'] @message = attributes[:message] || attributes['message'] + @channel_context = attributes[:channel_context] || attributes['channel_context'] || nil + @mentioned_members = attributes[:mentioned_members] || attributes['mentioned_members'] || nil @pending_message_metadata = attributes[:pending_message_metadata] || attributes['pending_message_metadata'] || nil end @@ -32,6 +40,8 @@ def self.json_field_mappings { duration: 'duration', message: 'message', + channel_context: 'channel_context', + mentioned_members: 'mentioned_members', pending_message_metadata: 'pending_message_metadata' } end diff --git a/lib/getstream_ruby/generated/models/send_reaction_request.rb b/lib/getstream_ruby/generated/models/send_reaction_request.rb index 39add00..50bea35 100644 --- a/lib/getstream_ruby/generated/models/send_reaction_request.rb +++ b/lib/getstream_ruby/generated/models/send_reaction_request.rb @@ -10,7 +10,7 @@ class SendReactionRequest < GetStream::BaseModel # Model attributes # @!attribute reaction - # @return [ReactionRequest] + # @return [ReactionRequest] Represents user reaction to a message attr_accessor :reaction # @!attribute enforce_unique # @return [Boolean] Whether to replace all existing user reactions diff --git a/lib/getstream_ruby/generated/models/send_reaction_response.rb b/lib/getstream_ruby/generated/models/send_reaction_response.rb index ebb02a6..c7d1c8b 100644 --- a/lib/getstream_ruby/generated/models/send_reaction_response.rb +++ b/lib/getstream_ruby/generated/models/send_reaction_response.rb @@ -13,7 +13,7 @@ class SendReactionResponse < GetStream::BaseModel # @return [String] Duration of the request in milliseconds attr_accessor :duration # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute reaction # @return [ReactionResponse] diff --git a/lib/getstream_ruby/generated/models/sfu_location_response.rb b/lib/getstream_ruby/generated/models/sfu_location_response.rb index 54e1d38..30636f3 100644 --- a/lib/getstream_ruby/generated/models/sfu_location_response.rb +++ b/lib/getstream_ruby/generated/models/sfu_location_response.rb @@ -16,10 +16,10 @@ class SFULocationResponse < GetStream::BaseModel # @return [String] attr_accessor :id # @!attribute coordinates - # @return [CoordinatesResponse] + # @return [CoordinatesResponse] Geographic coordinates attr_accessor :coordinates # @!attribute location - # @return [LocationResponse] + # @return [LocationResponse] Geographic location metadata attr_accessor :location # @!attribute count # @return [Integer] diff --git a/lib/getstream_ruby/generated/models/share_response.rb b/lib/getstream_ruby/generated/models/share_response.rb index eeaab31..2dfe13e 100644 --- a/lib/getstream_ruby/generated/models/share_response.rb +++ b/lib/getstream_ruby/generated/models/share_response.rb @@ -16,7 +16,7 @@ class ShareResponse < GetStream::BaseModel # @return [DateTime] When the share occurred attr_accessor :created_at # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/shared_location_response.rb b/lib/getstream_ruby/generated/models/shared_location_response.rb index 2e2ea81..557949d 100644 --- a/lib/getstream_ruby/generated/models/shared_location_response.rb +++ b/lib/getstream_ruby/generated/models/shared_location_response.rb @@ -40,10 +40,10 @@ class SharedLocationResponse < GetStream::BaseModel # @return [DateTime] Time when the live location expires attr_accessor :end_at # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/shared_location_response_data.rb b/lib/getstream_ruby/generated/models/shared_location_response_data.rb index a36d063..0a5850e 100644 --- a/lib/getstream_ruby/generated/models/shared_location_response_data.rb +++ b/lib/getstream_ruby/generated/models/shared_location_response_data.rb @@ -37,10 +37,10 @@ class SharedLocationResponseData < GetStream::BaseModel # @return [DateTime] attr_accessor :end_at # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/show_channel_request.rb b/lib/getstream_ruby/generated/models/show_channel_request.rb index 326b90d..a5326a4 100644 --- a/lib/getstream_ruby/generated/models/show_channel_request.rb +++ b/lib/getstream_ruby/generated/models/show_channel_request.rb @@ -13,7 +13,7 @@ class ShowChannelRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/sip_inbound_routing_rule_request.rb b/lib/getstream_ruby/generated/models/sip_inbound_routing_rule_request.rb index 4eaf007..3e368a0 100644 --- a/lib/getstream_ruby/generated/models/sip_inbound_routing_rule_request.rb +++ b/lib/getstream_ruby/generated/models/sip_inbound_routing_rule_request.rb @@ -16,7 +16,7 @@ class SIPInboundRoutingRuleRequest < GetStream::BaseModel # @return [Array] List of SIP trunk IDs attr_accessor :trunk_ids # @!attribute caller_configs - # @return [SIPCallerConfigsRequest] + # @return [SIPCallerConfigsRequest] Configuration for SIP caller settings attr_accessor :caller_configs # @!attribute called_numbers # @return [Array] List of called numbers @@ -25,16 +25,16 @@ class SIPInboundRoutingRuleRequest < GetStream::BaseModel # @return [Array] List of caller numbers (optional) attr_accessor :caller_numbers # @!attribute call_configs - # @return [SIPCallConfigsRequest] + # @return [SIPCallConfigsRequest] Configuration for SIP call settings attr_accessor :call_configs # @!attribute direct_routing_configs - # @return [SIPDirectRoutingRuleCallConfigsRequest] + # @return [SIPDirectRoutingRuleCallConfigsRequest] Configuration for direct routing rule calls attr_accessor :direct_routing_configs # @!attribute pin_protection_configs - # @return [SIPPinProtectionConfigsRequest] + # @return [SIPPinProtectionConfigsRequest] Configuration for PIN protection settings attr_accessor :pin_protection_configs # @!attribute pin_routing_configs - # @return [SIPInboundRoutingRulePinConfigsRequest] + # @return [SIPInboundRoutingRulePinConfigsRequest] Configuration for PIN routing rule calls attr_accessor :pin_routing_configs # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb b/lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb index 778e3d1..c3ff44d 100644 --- a/lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb +++ b/lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb @@ -34,19 +34,19 @@ class SIPInboundRoutingRuleResponse < GetStream::BaseModel # @return [Array] List of caller numbers attr_accessor :caller_numbers # @!attribute call_configs - # @return [SIPCallConfigsResponse] + # @return [SIPCallConfigsResponse] SIP call configuration response attr_accessor :call_configs # @!attribute caller_configs - # @return [SIPCallerConfigsResponse] + # @return [SIPCallerConfigsResponse] SIP caller configuration response attr_accessor :caller_configs # @!attribute direct_routing_configs - # @return [SIPDirectRoutingRuleCallConfigsResponse] + # @return [SIPDirectRoutingRuleCallConfigsResponse] Direct routing rule call configuration response attr_accessor :direct_routing_configs # @!attribute pin_protection_configs - # @return [SIPPinProtectionConfigsResponse] + # @return [SIPPinProtectionConfigsResponse] PIN protection configuration response attr_accessor :pin_protection_configs # @!attribute pin_routing_configs - # @return [SIPInboundRoutingRulePinConfigsResponse] + # @return [SIPInboundRoutingRulePinConfigsResponse] PIN routing rule call configuration response attr_accessor :pin_routing_configs # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/source_health.rb b/lib/getstream_ruby/generated/models/source_health.rb new file mode 100644 index 0000000..64e6442 --- /dev/null +++ b/lib/getstream_ruby/generated/models/source_health.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 SourceHealth < GetStream::BaseModel + + # Model attributes + # @!attribute co_host_peak + # @return [Integer] + attr_accessor :co_host_peak + # @!attribute dead_air_s + # @return [Integer] + attr_accessor :dead_air_s + # @!attribute interruptions + # @return [Array] + attr_accessor :interruptions + # @!attribute publisher_sessions + # @return [Array] + attr_accessor :publisher_sessions + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @co_host_peak = attributes[:co_host_peak] || attributes['co_host_peak'] + @dead_air_s = attributes[:dead_air_s] || attributes['dead_air_s'] + @interruptions = attributes[:interruptions] || attributes['interruptions'] + @publisher_sessions = attributes[:publisher_sessions] || attributes['publisher_sessions'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + co_host_peak: 'co_host_peak', + dead_air_s: 'dead_air_s', + interruptions: 'interruptions', + publisher_sessions: 'publisher_sessions' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/source_interruption.rb b/lib/getstream_ruby/generated/models/source_interruption.rb new file mode 100644 index 0000000..aaedfeb --- /dev/null +++ b/lib/getstream_ruby/generated/models/source_interruption.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 SourceInterruption < GetStream::BaseModel + + # Model attributes + # @!attribute at_offset_min + # @return [Float] + attr_accessor :at_offset_min + # @!attribute dead_air_s + # @return [Integer] + attr_accessor :dead_air_s + # @!attribute kind + # @return [String] + attr_accessor :kind + # @!attribute seamless + # @return [Boolean] + attr_accessor :seamless + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @at_offset_min = attributes[:at_offset_min] || attributes['at_offset_min'] + @dead_air_s = attributes[:dead_air_s] || attributes['dead_air_s'] + @kind = attributes[:kind] || attributes['kind'] + @seamless = attributes[:seamless] || attributes['seamless'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + at_offset_min: 'at_offset_min', + dead_air_s: 'dead_air_s', + kind: 'kind', + seamless: 'seamless' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/start_policy_test_run_request.rb b/lib/getstream_ruby/generated/models/start_policy_test_run_request.rb new file mode 100644 index 0000000..ea0a23b --- /dev/null +++ b/lib/getstream_ruby/generated/models/start_policy_test_run_request.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class StartPolicyTestRunRequest < GetStream::BaseModel + # Empty model - inherits all functionality from BaseModel + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/stop_live_response.rb b/lib/getstream_ruby/generated/models/stop_live_response.rb index 41ffef4..86c63c2 100644 --- a/lib/getstream_ruby/generated/models/stop_live_response.rb +++ b/lib/getstream_ruby/generated/models/stop_live_response.rb @@ -13,7 +13,7 @@ class StopLiveResponse < GetStream::BaseModel # @return [String] attr_accessor :duration # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/submit_action_request.rb b/lib/getstream_ruby/generated/models/submit_action_request.rb index 70440f4..7798f6f 100644 --- a/lib/getstream_ruby/generated/models/submit_action_request.rb +++ b/lib/getstream_ruby/generated/models/submit_action_request.rb @@ -10,7 +10,7 @@ class SubmitActionRequest < GetStream::BaseModel # Model attributes # @!attribute action_type - # @return [String] Type of moderation action to perform. One of: mark_reviewed, delete_message, delete_activity, delete_comment, delete_reaction, ban, custom, unban, restore, delete_user, unblock, block, shadow_block, unmask, kick_user, end_call, escalate, de_escalate + # @return [String] Type of moderation action to perform. One of: mark_reviewed, delete_message, delete_activity, delete_comment, delete_reaction, ban, custom, unban, restore, delete_user, delete_user_messages, unblock, block, shadow_block, unmask, kick_user, end_call, escalate, de_escalate attr_accessor :action_type # @!attribute appeal_id # @return [String] UUID of the appeal to act on (required for reject_appeal, optional for other actions) @@ -22,58 +22,61 @@ class SubmitActionRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute ban - # @return [BanActionRequestPayload] + # @return [BanActionRequestPayload] Configuration for ban moderation action attr_accessor :ban # @!attribute block - # @return [BlockActionRequestPayload] + # @return [BlockActionRequestPayload] Configuration for block action attr_accessor :block # @!attribute bypass # @return [BypassActionRequest] attr_accessor :bypass # @!attribute custom - # @return [CustomActionRequestPayload] + # @return [CustomActionRequestPayload] Configuration for custom moderation action attr_accessor :custom # @!attribute delete_activity - # @return [DeleteActivityRequestPayload] + # @return [DeleteActivityRequestPayload] Configuration for activity deletion action attr_accessor :delete_activity # @!attribute delete_comment - # @return [DeleteCommentRequestPayload] + # @return [DeleteCommentRequestPayload] Configuration for comment deletion action attr_accessor :delete_comment # @!attribute delete_message - # @return [DeleteMessageRequestPayload] + # @return [DeleteMessageRequestPayload] Configuration for message deletion action attr_accessor :delete_message # @!attribute delete_reaction - # @return [DeleteReactionRequestPayload] + # @return [DeleteReactionRequestPayload] Configuration for reaction deletion action attr_accessor :delete_reaction # @!attribute delete_user - # @return [DeleteUserRequestPayload] + # @return [DeleteUserRequestPayload] Configuration for user deletion action attr_accessor :delete_user + # @!attribute delete_user_messages + # @return [DeleteUserMessagesRequestPayload] Configuration for deleting all of a user's chat messages without banning them or deleting their account + attr_accessor :delete_user_messages # @!attribute escalate - # @return [EscalatePayload] + # @return [EscalatePayload] Configuration for escalation action attr_accessor :escalate # @!attribute flag # @return [FlagRequest] attr_accessor :flag # @!attribute mark_reviewed - # @return [MarkReviewedRequestPayload] + # @return [MarkReviewedRequestPayload] Configuration for mark reviewed action attr_accessor :mark_reviewed # @!attribute reject_appeal - # @return [RejectAppealRequestPayload] + # @return [RejectAppealRequestPayload] Configuration for rejecting an appeal attr_accessor :reject_appeal # @!attribute restore - # @return [RestoreActionRequestPayload] + # @return [RestoreActionRequestPayload] Configuration for restore action attr_accessor :restore # @!attribute shadow_block - # @return [ShadowBlockActionRequestPayload] + # @return [ShadowBlockActionRequestPayload] Configuration for shadow block action attr_accessor :shadow_block # @!attribute unban - # @return [UnbanActionRequestPayload] + # @return [UnbanActionRequestPayload] Configuration for unban moderation action attr_accessor :unban # @!attribute unblock - # @return [UnblockActionRequestPayload] + # @return [UnblockActionRequestPayload] Configuration for unblock action attr_accessor :unblock # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes @@ -92,6 +95,7 @@ def initialize(attributes = {}) @delete_message = attributes[:delete_message] || attributes['delete_message'] || nil @delete_reaction = attributes[:delete_reaction] || attributes['delete_reaction'] || nil @delete_user = attributes[:delete_user] || attributes['delete_user'] || nil + @delete_user_messages = attributes[:delete_user_messages] || attributes['delete_user_messages'] || nil @escalate = attributes[:escalate] || attributes['escalate'] || nil @flag = attributes[:flag] || attributes['flag'] || nil @mark_reviewed = attributes[:mark_reviewed] || attributes['mark_reviewed'] || nil @@ -119,6 +123,7 @@ def self.json_field_mappings delete_message: 'delete_message', delete_reaction: 'delete_reaction', delete_user: 'delete_user', + delete_user_messages: 'delete_user_messages', escalate: 'escalate', flag: 'flag', mark_reviewed: 'mark_reviewed', diff --git a/lib/getstream_ruby/generated/models/supporting.rb b/lib/getstream_ruby/generated/models/supporting.rb new file mode 100644 index 0000000..9236039 --- /dev/null +++ b/lib/getstream_ruby/generated/models/supporting.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 Supporting < GetStream::BaseModel + + # Model attributes + # @!attribute delivery_incident_windows + # @return [Array] + attr_accessor :delivery_incident_windows + # @!attribute edge_outlier_zones + # @return [Array] + attr_accessor :edge_outlier_zones + # @!attribute source_drop_windows + # @return [Array] + attr_accessor :source_drop_windows + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @delivery_incident_windows = attributes[:delivery_incident_windows] || attributes['delivery_incident_windows'] + @edge_outlier_zones = attributes[:edge_outlier_zones] || attributes['edge_outlier_zones'] + @source_drop_windows = attributes[:source_drop_windows] || attributes['source_drop_windows'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + delivery_incident_windows: 'delivery_incident_windows', + edge_outlier_zones: 'edge_outlier_zones', + source_drop_windows: 'source_drop_windows' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/team_usage_stats.rb b/lib/getstream_ruby/generated/models/team_usage_stats.rb index 0b8b25b..a1887e1 100644 --- a/lib/getstream_ruby/generated/models/team_usage_stats.rb +++ b/lib/getstream_ruby/generated/models/team_usage_stats.rb @@ -13,52 +13,52 @@ class TeamUsageStats < GetStream::BaseModel # @return [String] Team identifier (empty string for users not assigned to any team) attr_accessor :team # @!attribute concurrent_connections - # @return [MetricStats] + # @return [MetricStats] Statistics for a single metric with optional daily breakdown attr_accessor :concurrent_connections # @!attribute concurrent_users - # @return [MetricStats] + # @return [MetricStats] Statistics for a single metric with optional daily breakdown attr_accessor :concurrent_users # @!attribute image_moderations_daily - # @return [MetricStats] + # @return [MetricStats] Statistics for a single metric with optional daily breakdown attr_accessor :image_moderations_daily # @!attribute messages_daily - # @return [MetricStats] + # @return [MetricStats] Statistics for a single metric with optional daily breakdown attr_accessor :messages_daily # @!attribute messages_last_24_hours - # @return [MetricStats] + # @return [MetricStats] Statistics for a single metric with optional daily breakdown attr_accessor :messages_last_24_hours # @!attribute messages_last_30_days - # @return [MetricStats] + # @return [MetricStats] Statistics for a single metric with optional daily breakdown attr_accessor :messages_last_30_days # @!attribute messages_month_to_date - # @return [MetricStats] + # @return [MetricStats] Statistics for a single metric with optional daily breakdown attr_accessor :messages_month_to_date # @!attribute messages_total - # @return [MetricStats] + # @return [MetricStats] Statistics for a single metric with optional daily breakdown attr_accessor :messages_total # @!attribute translations_daily - # @return [MetricStats] + # @return [MetricStats] Statistics for a single metric with optional daily breakdown attr_accessor :translations_daily # @!attribute users_daily - # @return [MetricStats] + # @return [MetricStats] Statistics for a single metric with optional daily breakdown attr_accessor :users_daily # @!attribute users_engaged_last_30_days - # @return [MetricStats] + # @return [MetricStats] Statistics for a single metric with optional daily breakdown attr_accessor :users_engaged_last_30_days # @!attribute users_engaged_month_to_date - # @return [MetricStats] + # @return [MetricStats] Statistics for a single metric with optional daily breakdown attr_accessor :users_engaged_month_to_date # @!attribute users_last_24_hours - # @return [MetricStats] + # @return [MetricStats] Statistics for a single metric with optional daily breakdown attr_accessor :users_last_24_hours # @!attribute users_last_30_days - # @return [MetricStats] + # @return [MetricStats] Statistics for a single metric with optional daily breakdown attr_accessor :users_last_30_days # @!attribute users_month_to_date - # @return [MetricStats] + # @return [MetricStats] Statistics for a single metric with optional daily breakdown attr_accessor :users_month_to_date # @!attribute users_total - # @return [MetricStats] + # @return [MetricStats] Statistics for a single metric with optional daily breakdown attr_accessor :users_total # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/thread_participant.rb b/lib/getstream_ruby/generated/models/thread_participant.rb index 9458bbb..f5d8d32 100644 --- a/lib/getstream_ruby/generated/models/thread_participant.rb +++ b/lib/getstream_ruby/generated/models/thread_participant.rb @@ -9,9 +9,6 @@ module Models class ThreadParticipant < GetStream::BaseModel # Model attributes - # @!attribute app_pk - # @return [Integer] - attr_accessor :app_pk # @!attribute channel_cid # @return [String] attr_accessor :channel_cid @@ -37,13 +34,12 @@ class ThreadParticipant < GetStream::BaseModel # @return [String] User ID is unique string identifier of the user attr_accessor :user_id # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes def initialize(attributes = {}) super(attributes) - @app_pk = attributes[:app_pk] || attributes['app_pk'] @channel_cid = attributes[:channel_cid] || attributes['channel_cid'] @created_at = attributes[:created_at] || attributes['created_at'] @last_read_at = attributes[:last_read_at] || attributes['last_read_at'] @@ -58,7 +54,6 @@ def initialize(attributes = {}) # Override field mappings for JSON serialization def self.json_field_mappings { - app_pk: 'app_pk', channel_cid: 'channel_cid', created_at: 'created_at', last_read_at: 'last_read_at', diff --git a/lib/getstream_ruby/generated/models/thread_response.rb b/lib/getstream_ruby/generated/models/thread_response.rb index 38e6de1..f3d741d 100644 --- a/lib/getstream_ruby/generated/models/thread_response.rb +++ b/lib/getstream_ruby/generated/models/thread_response.rb @@ -27,6 +27,9 @@ class ThreadResponse < GetStream::BaseModel # @!attribute participant_count # @return [Integer] Participant Count attr_accessor :participant_count + # @!attribute reply_count + # @return [Integer] Reply Count + attr_accessor :reply_count # @!attribute title # @return [String] Title attr_accessor :title @@ -42,20 +45,17 @@ class ThreadResponse < GetStream::BaseModel # @!attribute last_message_at # @return [DateTime] Last Message At attr_accessor :last_message_at - # @!attribute reply_count - # @return [Integer] Reply Count - attr_accessor :reply_count # @!attribute thread_participants # @return [Array] Thread Participants attr_accessor :thread_participants # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute created_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :created_by # @!attribute parent_message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :parent_message # Initialize with attributes @@ -67,12 +67,12 @@ def initialize(attributes = {}) @created_by_user_id = attributes[:created_by_user_id] || attributes['created_by_user_id'] @parent_message_id = attributes[:parent_message_id] || attributes['parent_message_id'] @participant_count = attributes[:participant_count] || attributes['participant_count'] + @reply_count = attributes[:reply_count] || attributes['reply_count'] @title = attributes[:title] || attributes['title'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @custom = attributes[:custom] || attributes['custom'] @deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil @last_message_at = attributes[:last_message_at] || attributes['last_message_at'] || nil - @reply_count = attributes[:reply_count] || attributes['reply_count'] || nil @thread_participants = attributes[:thread_participants] || attributes['thread_participants'] || nil @channel = attributes[:channel] || attributes['channel'] || nil @created_by = attributes[:created_by] || attributes['created_by'] || nil @@ -88,12 +88,12 @@ def self.json_field_mappings created_by_user_id: 'created_by_user_id', parent_message_id: 'parent_message_id', participant_count: 'participant_count', + reply_count: 'reply_count', title: 'title', updated_at: 'updated_at', custom: 'custom', deleted_at: 'deleted_at', last_message_at: 'last_message_at', - reply_count: 'reply_count', thread_participants: 'thread_participants', channel: 'channel', created_by: 'created_by', diff --git a/lib/getstream_ruby/generated/models/thread_state_response.rb b/lib/getstream_ruby/generated/models/thread_state_response.rb index b15bf58..7627281 100644 --- a/lib/getstream_ruby/generated/models/thread_state_response.rb +++ b/lib/getstream_ruby/generated/models/thread_state_response.rb @@ -27,6 +27,9 @@ class ThreadStateResponse < GetStream::BaseModel # @!attribute participant_count # @return [Integer] Participant Count attr_accessor :participant_count + # @!attribute reply_count + # @return [Integer] Reply Count + attr_accessor :reply_count # @!attribute title # @return [String] Title attr_accessor :title @@ -45,9 +48,6 @@ class ThreadStateResponse < GetStream::BaseModel # @!attribute last_message_at # @return [DateTime] Last Message At attr_accessor :last_message_at - # @!attribute reply_count - # @return [Integer] Reply Count - attr_accessor :reply_count # @!attribute read # @return [Array] attr_accessor :read @@ -55,16 +55,16 @@ class ThreadStateResponse < GetStream::BaseModel # @return [Array] Thread Participants attr_accessor :thread_participants # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute created_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :created_by # @!attribute draft # @return [DraftResponse] attr_accessor :draft # @!attribute parent_message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :parent_message # Initialize with attributes @@ -76,13 +76,13 @@ def initialize(attributes = {}) @created_by_user_id = attributes[:created_by_user_id] || attributes['created_by_user_id'] @parent_message_id = attributes[:parent_message_id] || attributes['parent_message_id'] @participant_count = attributes[:participant_count] || attributes['participant_count'] + @reply_count = attributes[:reply_count] || attributes['reply_count'] @title = attributes[:title] || attributes['title'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @latest_replies = attributes[:latest_replies] || attributes['latest_replies'] @custom = attributes[:custom] || attributes['custom'] @deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil @last_message_at = attributes[:last_message_at] || attributes['last_message_at'] || nil - @reply_count = attributes[:reply_count] || attributes['reply_count'] || nil @read = attributes[:read] || attributes['read'] || nil @thread_participants = attributes[:thread_participants] || attributes['thread_participants'] || nil @channel = attributes[:channel] || attributes['channel'] || nil @@ -100,13 +100,13 @@ def self.json_field_mappings created_by_user_id: 'created_by_user_id', parent_message_id: 'parent_message_id', participant_count: 'participant_count', + reply_count: 'reply_count', title: 'title', updated_at: 'updated_at', latest_replies: 'latest_replies', custom: 'custom', deleted_at: 'deleted_at', last_message_at: 'last_message_at', - reply_count: 'reply_count', read: 'read', thread_participants: 'thread_participants', channel: 'channel', diff --git a/lib/getstream_ruby/generated/models/threaded_comment_response.rb b/lib/getstream_ruby/generated/models/threaded_comment_response.rb index 64cf399..7d6ae06 100644 --- a/lib/getstream_ruby/generated/models/threaded_comment_response.rb +++ b/lib/getstream_ruby/generated/models/threaded_comment_response.rb @@ -55,7 +55,7 @@ class ThreadedCommentResponse < GetStream::BaseModel # @return [Array] attr_accessor :own_reactions # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute controversy_score # @return [Float] @@ -88,7 +88,7 @@ class ThreadedCommentResponse < GetStream::BaseModel # @return [Hash] attr_accessor :i18n # @!attribute meta - # @return [RepliesMeta] + # @return [RepliesMeta] Cursor & depth information for a comment's direct replies. Mirrors Reddit's 'load more replies' semantics. attr_accessor :meta # @!attribute moderation # @return [ModerationV2Response] diff --git a/lib/getstream_ruby/generated/models/time_window.rb b/lib/getstream_ruby/generated/models/time_window.rb new file mode 100644 index 0000000..3e1709e --- /dev/null +++ b/lib/getstream_ruby/generated/models/time_window.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 TimeWindow < GetStream::BaseModel + + # Model attributes + # @!attribute from + # @return [String] + attr_accessor :from + # @!attribute to + # @return [String] + attr_accessor :to + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @from = attributes[:from] || attributes['from'] + @to = attributes[:to] || attributes['to'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + from: 'from', + to: 'to' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/top_broadcast.rb b/lib/getstream_ruby/generated/models/top_broadcast.rb new file mode 100644 index 0000000..bdcf1a3 --- /dev/null +++ b/lib/getstream_ruby/generated/models/top_broadcast.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 TopBroadcast < GetStream::BaseModel + + # Model attributes + # @!attribute call_cid + # @return [String] + attr_accessor :call_cid + # @!attribute hours_watched + # @return [Float] + attr_accessor :hours_watched + # @!attribute peak_concurrent_viewers + # @return [Integer] + attr_accessor :peak_concurrent_viewers + # @!attribute poor_pct + # @return [Float] + attr_accessor :poor_pct + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @call_cid = attributes[:call_cid] || attributes['call_cid'] + @hours_watched = attributes[:hours_watched] || attributes['hours_watched'] + @peak_concurrent_viewers = attributes[:peak_concurrent_viewers] || attributes['peak_concurrent_viewers'] + @poor_pct = attributes[:poor_pct] || attributes['poor_pct'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + call_cid: 'call_cid', + hours_watched: 'hours_watched', + peak_concurrent_viewers: 'peak_concurrent_viewers', + poor_pct: 'poor_pct' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/track_activity_metrics_request.rb b/lib/getstream_ruby/generated/models/track_activity_metrics_request.rb index d13696b..3f63510 100644 --- a/lib/getstream_ruby/generated/models/track_activity_metrics_request.rb +++ b/lib/getstream_ruby/generated/models/track_activity_metrics_request.rb @@ -16,7 +16,7 @@ class TrackActivityMetricsRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/truncate_channel_request.rb b/lib/getstream_ruby/generated/models/truncate_channel_request.rb index 829095d..2c116fe 100644 --- a/lib/getstream_ruby/generated/models/truncate_channel_request.rb +++ b/lib/getstream_ruby/generated/models/truncate_channel_request.rb @@ -25,10 +25,10 @@ class TruncateChannelRequest < GetStream::BaseModel # @return [Array] List of member IDs to hide message history for. If empty, truncates the channel for all members attr_accessor :member_ids # @!attribute message - # @return [MessageRequest] + # @return [MessageRequest] Message data for creating or updating a message attr_accessor :message # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/truncate_channel_response.rb b/lib/getstream_ruby/generated/models/truncate_channel_response.rb index 04b4adb..447ccb2 100644 --- a/lib/getstream_ruby/generated/models/truncate_channel_response.rb +++ b/lib/getstream_ruby/generated/models/truncate_channel_response.rb @@ -13,10 +13,10 @@ class TruncateChannelResponse < GetStream::BaseModel # @return [String] Duration of the request in milliseconds attr_accessor :duration # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/unban_action_request_payload.rb b/lib/getstream_ruby/generated/models/unban_action_request_payload.rb index ea31d5b..b0a9333 100644 --- a/lib/getstream_ruby/generated/models/unban_action_request_payload.rb +++ b/lib/getstream_ruby/generated/models/unban_action_request_payload.rb @@ -18,6 +18,9 @@ class UnbanActionRequestPayload < GetStream::BaseModel # @!attribute remove_future_channels_ban # @return [Boolean] Also remove the future channels ban for this user attr_accessor :remove_future_channels_ban + # @!attribute target_user_id + # @return [String] Optional: unban user directly without review item + attr_accessor :target_user_id # Initialize with attributes def initialize(attributes = {}) @@ -25,6 +28,7 @@ def initialize(attributes = {}) @channel_cid = attributes[:channel_cid] || attributes['channel_cid'] || nil @decision_reason = attributes[:decision_reason] || attributes['decision_reason'] || nil @remove_future_channels_ban = attributes[:remove_future_channels_ban] || attributes['remove_future_channels_ban'] || nil + @target_user_id = attributes[:target_user_id] || attributes['target_user_id'] || nil end # Override field mappings for JSON serialization @@ -32,7 +36,8 @@ def self.json_field_mappings { channel_cid: 'channel_cid', decision_reason: 'decision_reason', - remove_future_channels_ban: 'remove_future_channels_ban' + remove_future_channels_ban: 'remove_future_channels_ban', + target_user_id: 'target_user_id' } end end diff --git a/lib/getstream_ruby/generated/models/unban_request.rb b/lib/getstream_ruby/generated/models/unban_request.rb index cc1fbad..f155e2c 100644 --- a/lib/getstream_ruby/generated/models/unban_request.rb +++ b/lib/getstream_ruby/generated/models/unban_request.rb @@ -13,7 +13,7 @@ class UnbanRequest < GetStream::BaseModel # @return [String] ID of the user performing the unban attr_accessor :unbanned_by_id # @!attribute unbanned_by - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :unbanned_by # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/unblock_users_request.rb b/lib/getstream_ruby/generated/models/unblock_users_request.rb index 5e57878..07d1e62 100644 --- a/lib/getstream_ruby/generated/models/unblock_users_request.rb +++ b/lib/getstream_ruby/generated/models/unblock_users_request.rb @@ -16,7 +16,7 @@ class UnblockUsersRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/unblocked_user_event.rb b/lib/getstream_ruby/generated/models/unblocked_user_event.rb index 5083e9e..ab41840 100644 --- a/lib/getstream_ruby/generated/models/unblocked_user_event.rb +++ b/lib/getstream_ruby/generated/models/unblocked_user_event.rb @@ -16,7 +16,7 @@ class UnblockedUserEvent < GetStream::BaseModel # @return [DateTime] attr_accessor :created_at # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute type # @return [String] The type of event: "call.unblocked_user" in this case diff --git a/lib/getstream_ruby/generated/models/undelete_message_response.rb b/lib/getstream_ruby/generated/models/undelete_message_response.rb index ab348cb..b450213 100644 --- a/lib/getstream_ruby/generated/models/undelete_message_response.rb +++ b/lib/getstream_ruby/generated/models/undelete_message_response.rb @@ -13,7 +13,7 @@ class UndeleteMessageResponse < GetStream::BaseModel # @return [String] Duration of the request in milliseconds attr_accessor :duration # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/unmute_channel_request.rb b/lib/getstream_ruby/generated/models/unmute_channel_request.rb index e3d2d3f..eac6502 100644 --- a/lib/getstream_ruby/generated/models/unmute_channel_request.rb +++ b/lib/getstream_ruby/generated/models/unmute_channel_request.rb @@ -19,7 +19,7 @@ class UnmuteChannelRequest < GetStream::BaseModel # @return [Array] Channel CIDs to mute (if multiple channels) attr_accessor :channel_cids # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/unmute_request.rb b/lib/getstream_ruby/generated/models/unmute_request.rb index 55f22ad..4e3f8fe 100644 --- a/lib/getstream_ruby/generated/models/unmute_request.rb +++ b/lib/getstream_ruby/generated/models/unmute_request.rb @@ -16,7 +16,7 @@ class UnmuteRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes 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 ad0199c..604e409 100644 --- a/lib/getstream_ruby/generated/models/update_activity_partial_request.rb +++ b/lib/getstream_ruby/generated/models/update_activity_partial_request.rb @@ -35,7 +35,7 @@ class UpdateActivityPartialRequest < GetStream::BaseModel # @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', 'search_data'. For custom fields, use dot-notation (e.g., 'custom.field_name') attr_accessor :set # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_activity_request.rb b/lib/getstream_ruby/generated/models/update_activity_request.rb index 9e6322e..2f6ca42 100644 --- a/lib/getstream_ruby/generated/models/update_activity_request.rb +++ b/lib/getstream_ruby/generated/models/update_activity_request.rb @@ -77,7 +77,7 @@ class UpdateActivityRequest < GetStream::BaseModel # @return [Object] Additional data for search indexing attr_accessor :search_data # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_app_request.rb b/lib/getstream_ruby/generated/models/update_app_request.rb index 9e78178..7a7f074 100644 --- a/lib/getstream_ruby/generated/models/update_app_request.rb +++ b/lib/getstream_ruby/generated/models/update_app_request.rb @@ -27,6 +27,9 @@ class UpdateAppRequest < GetStream::BaseModel # @!attribute channel_hide_members_only # @return [Boolean] attr_accessor :channel_hide_members_only + # @!attribute chat_primary_use_case + # @return [String] + attr_accessor :chat_primary_use_case # @!attribute custom_action_handler_url # @return [String] attr_accessor :custom_action_handler_url @@ -60,6 +63,9 @@ class UpdateAppRequest < GetStream::BaseModel # @!attribute max_aggregated_activities_length # @return [Integer] attr_accessor :max_aggregated_activities_length + # @!attribute member_custom_on_messages_enabled + # @return [Boolean] + attr_accessor :member_custom_on_messages_enabled # @!attribute migrate_permissions_to_v2 # @return [Boolean] attr_accessor :migrate_permissions_to_v2 @@ -187,6 +193,7 @@ def initialize(attributes = {}) @before_message_send_hook_url = attributes[:before_message_send_hook_url] || attributes['before_message_send_hook_url'] || nil @cdn_expiration_seconds = attributes[:cdn_expiration_seconds] || attributes['cdn_expiration_seconds'] || nil @channel_hide_members_only = attributes[:channel_hide_members_only] || attributes['channel_hide_members_only'] || nil + @chat_primary_use_case = attributes[:chat_primary_use_case] || attributes['chat_primary_use_case'] || nil @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 @@ -198,6 +205,7 @@ def initialize(attributes = {}) @guest_user_creation_disabled = attributes[:guest_user_creation_disabled] || attributes['guest_user_creation_disabled'] || nil @image_moderation_enabled = attributes[:image_moderation_enabled] || attributes['image_moderation_enabled'] || nil @max_aggregated_activities_length = attributes[:max_aggregated_activities_length] || attributes['max_aggregated_activities_length'] || nil + @member_custom_on_messages_enabled = attributes[:member_custom_on_messages_enabled] || attributes['member_custom_on_messages_enabled'] || nil @migrate_permissions_to_v2 = attributes[:migrate_permissions_to_v2] || attributes['migrate_permissions_to_v2'] || nil @moderation_analytics_enabled = attributes[:moderation_analytics_enabled] || attributes['moderation_analytics_enabled'] || nil @moderation_enabled = attributes[:moderation_enabled] || attributes['moderation_enabled'] || nil @@ -248,6 +256,7 @@ def self.json_field_mappings before_message_send_hook_url: 'before_message_send_hook_url', cdn_expiration_seconds: 'cdn_expiration_seconds', channel_hide_members_only: 'channel_hide_members_only', + chat_primary_use_case: 'chat_primary_use_case', custom_action_handler_url: 'custom_action_handler_url', disable_auth_checks: 'disable_auth_checks', disable_permissions_checks: 'disable_permissions_checks', @@ -259,6 +268,7 @@ def self.json_field_mappings guest_user_creation_disabled: 'guest_user_creation_disabled', image_moderation_enabled: 'image_moderation_enabled', max_aggregated_activities_length: 'max_aggregated_activities_length', + member_custom_on_messages_enabled: 'member_custom_on_messages_enabled', migrate_permissions_to_v2: 'migrate_permissions_to_v2', moderation_analytics_enabled: 'moderation_analytics_enabled', moderation_enabled: 'moderation_enabled', diff --git a/lib/getstream_ruby/generated/models/update_block_list_request.rb b/lib/getstream_ruby/generated/models/update_block_list_request.rb index cf91e97..ac667b7 100644 --- a/lib/getstream_ruby/generated/models/update_block_list_request.rb +++ b/lib/getstream_ruby/generated/models/update_block_list_request.rb @@ -24,9 +24,15 @@ class UpdateBlockListRequest < GetStream::BaseModel # @!attribute team # @return [String] attr_accessor :team + # @!attribute user_id + # @return [String] + attr_accessor :user_id # @!attribute words # @return [Array] List of words to block attr_accessor :words + # @!attribute user + # @return [UserRequest] User request object + attr_accessor :user # Initialize with attributes def initialize(attributes = {}) @@ -36,7 +42,9 @@ def initialize(attributes = {}) @is_plural_check_enabled = attributes[:is_plural_check_enabled] || attributes['is_plural_check_enabled'] || nil @is_substring_matching_enabled = attributes[:is_substring_matching_enabled] || attributes['is_substring_matching_enabled'] || nil @team = attributes[:team] || attributes['team'] || nil + @user_id = attributes[:user_id] || attributes['user_id'] || nil @words = attributes[:words] || attributes['words'] || nil + @user = attributes[:user] || attributes['user'] || nil end # Override field mappings for JSON serialization @@ -47,7 +55,9 @@ def self.json_field_mappings is_plural_check_enabled: 'is_plural_check_enabled', is_substring_matching_enabled: 'is_substring_matching_enabled', team: 'team', - words: 'words' + user_id: 'user_id', + words: 'words', + user: 'user' } end end diff --git a/lib/getstream_ruby/generated/models/update_block_list_response.rb b/lib/getstream_ruby/generated/models/update_block_list_response.rb index 87e074b..d35031c 100644 --- a/lib/getstream_ruby/generated/models/update_block_list_response.rb +++ b/lib/getstream_ruby/generated/models/update_block_list_response.rb @@ -13,7 +13,7 @@ class UpdateBlockListResponse < GetStream::BaseModel # @return [String] Duration of the request in milliseconds attr_accessor :duration # @!attribute blocklist - # @return [BlockListResponse] + # @return [BlockListResponse] Block list contains restricted words attr_accessor :blocklist # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_bookmark_folder_request.rb b/lib/getstream_ruby/generated/models/update_bookmark_folder_request.rb index 06226bb..ea83db6 100644 --- a/lib/getstream_ruby/generated/models/update_bookmark_folder_request.rb +++ b/lib/getstream_ruby/generated/models/update_bookmark_folder_request.rb @@ -19,7 +19,7 @@ class UpdateBookmarkFolderRequest < GetStream::BaseModel # @return [Object] Custom data for the folder attr_accessor :custom # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_bookmark_request.rb b/lib/getstream_ruby/generated/models/update_bookmark_request.rb index 3d6a4e2..5223909 100644 --- a/lib/getstream_ruby/generated/models/update_bookmark_request.rb +++ b/lib/getstream_ruby/generated/models/update_bookmark_request.rb @@ -25,7 +25,7 @@ class UpdateBookmarkRequest < GetStream::BaseModel # @return [AddFolderRequest] attr_accessor :new_folder # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_call_response.rb b/lib/getstream_ruby/generated/models/update_call_response.rb index f7f1c20..4a1cb33 100644 --- a/lib/getstream_ruby/generated/models/update_call_response.rb +++ b/lib/getstream_ruby/generated/models/update_call_response.rb @@ -19,7 +19,7 @@ class UpdateCallResponse < GetStream::BaseModel # @return [Array] attr_accessor :own_capabilities # @!attribute call - # @return [CallResponse] + # @return [CallResponse] Represents a call attr_accessor :call # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_channel_partial_request.rb b/lib/getstream_ruby/generated/models/update_channel_partial_request.rb index 1cd31fe..49415ab 100644 --- a/lib/getstream_ruby/generated/models/update_channel_partial_request.rb +++ b/lib/getstream_ruby/generated/models/update_channel_partial_request.rb @@ -19,7 +19,7 @@ class UpdateChannelPartialRequest < GetStream::BaseModel # @return [Object] attr_accessor :set # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_channel_partial_response.rb b/lib/getstream_ruby/generated/models/update_channel_partial_response.rb index 25fdef4..7665cc6 100644 --- a/lib/getstream_ruby/generated/models/update_channel_partial_response.rb +++ b/lib/getstream_ruby/generated/models/update_channel_partial_response.rb @@ -16,7 +16,7 @@ class UpdateChannelPartialResponse < GetStream::BaseModel # @return [Array] List of updated members attr_accessor :members # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_channel_request.rb b/lib/getstream_ruby/generated/models/update_channel_request.rb index 1cbccb3..1672d1e 100644 --- a/lib/getstream_ruby/generated/models/update_channel_request.rb +++ b/lib/getstream_ruby/generated/models/update_channel_request.rb @@ -58,10 +58,10 @@ class UpdateChannelRequest < GetStream::BaseModel # @return [ChannelInputRequest] attr_accessor :data # @!attribute message - # @return [MessageRequest] + # @return [MessageRequest] Message data for creating or updating a message attr_accessor :message # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_channel_response.rb b/lib/getstream_ruby/generated/models/update_channel_response.rb index 4ecef8b..8b9d697 100644 --- a/lib/getstream_ruby/generated/models/update_channel_response.rb +++ b/lib/getstream_ruby/generated/models/update_channel_response.rb @@ -16,10 +16,10 @@ class UpdateChannelResponse < GetStream::BaseModel # @return [Array] List of channel members attr_accessor :members # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_channel_type_request.rb b/lib/getstream_ruby/generated/models/update_channel_type_request.rb index 1273c0f..231255e 100644 --- a/lib/getstream_ruby/generated/models/update_channel_type_request.rb +++ b/lib/getstream_ruby/generated/models/update_channel_type_request.rb @@ -106,7 +106,7 @@ class UpdateChannelTypeRequest < GetStream::BaseModel # @return [Array] attr_accessor :permissions # @!attribute automod_thresholds - # @return [Thresholds] + # @return [Thresholds] Sets thresholds for AI moderation attr_accessor :automod_thresholds # @!attribute chat_preferences # @return [ChatPreferences] diff --git a/lib/getstream_ruby/generated/models/update_channel_type_response.rb b/lib/getstream_ruby/generated/models/update_channel_type_response.rb index 383e366..60da79b 100644 --- a/lib/getstream_ruby/generated/models/update_channel_type_response.rb +++ b/lib/getstream_ruby/generated/models/update_channel_type_response.rb @@ -121,7 +121,7 @@ class UpdateChannelTypeResponse < GetStream::BaseModel # @return [Array] attr_accessor :blocklists # @!attribute automod_thresholds - # @return [Thresholds] + # @return [Thresholds] Sets thresholds for AI moderation attr_accessor :automod_thresholds # @!attribute chat_preferences # @return [ChatPreferences] diff --git a/lib/getstream_ruby/generated/models/update_collections_request.rb b/lib/getstream_ruby/generated/models/update_collections_request.rb index a39645f..1ddd52e 100644 --- a/lib/getstream_ruby/generated/models/update_collections_request.rb +++ b/lib/getstream_ruby/generated/models/update_collections_request.rb @@ -16,7 +16,7 @@ class UpdateCollectionsRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_command_response.rb b/lib/getstream_ruby/generated/models/update_command_response.rb index 86ec2fd..f026a92 100644 --- a/lib/getstream_ruby/generated/models/update_command_response.rb +++ b/lib/getstream_ruby/generated/models/update_command_response.rb @@ -13,7 +13,7 @@ class UpdateCommandResponse < GetStream::BaseModel # @return [String] attr_accessor :duration # @!attribute command - # @return [Command] + # @return [Command] Represents custom chat command attr_accessor :command # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_comment_bookmark_request.rb b/lib/getstream_ruby/generated/models/update_comment_bookmark_request.rb index 48b9404..8223f9a 100644 --- a/lib/getstream_ruby/generated/models/update_comment_bookmark_request.rb +++ b/lib/getstream_ruby/generated/models/update_comment_bookmark_request.rb @@ -25,7 +25,7 @@ class UpdateCommentBookmarkRequest < GetStream::BaseModel # @return [AddFolderRequest] attr_accessor :new_folder # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_comment_partial_request.rb b/lib/getstream_ruby/generated/models/update_comment_partial_request.rb index 657024c..bba9716 100644 --- a/lib/getstream_ruby/generated/models/update_comment_partial_request.rb +++ b/lib/getstream_ruby/generated/models/update_comment_partial_request.rb @@ -35,7 +35,7 @@ class UpdateCommentPartialRequest < GetStream::BaseModel # @return [Object] Map of field names to new values. Supported fields: 'text', 'attachments', 'custom', 'mentioned_user_ids', 'status'. Use dot-notation for nested custom fields (e.g., 'custom.field_name') attr_accessor :set # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_comment_request.rb b/lib/getstream_ruby/generated/models/update_comment_request.rb index e14ddaf..1988fd5 100644 --- a/lib/getstream_ruby/generated/models/update_comment_request.rb +++ b/lib/getstream_ruby/generated/models/update_comment_request.rb @@ -41,7 +41,7 @@ class UpdateCommentRequest < GetStream::BaseModel # @return [Object] Updated custom data for the comment attr_accessor :custom # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_external_storage_request.rb b/lib/getstream_ruby/generated/models/update_external_storage_request.rb index bdc4cec..3b15135 100644 --- a/lib/getstream_ruby/generated/models/update_external_storage_request.rb +++ b/lib/getstream_ruby/generated/models/update_external_storage_request.rb @@ -22,10 +22,10 @@ class UpdateExternalStorageRequest < GetStream::BaseModel # @return [String] The path prefix to use for storing files attr_accessor :path # @!attribute aws_s3 - # @return [S3Request] + # @return [S3Request] Config for creating Amazon S3 storage. attr_accessor :aws_s3 # @!attribute azure_blob - # @return [AzureRequest] + # @return [AzureRequest] Config for creating Azure Blob Storage storage attr_accessor :azure_blob # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_message_partial_request.rb b/lib/getstream_ruby/generated/models/update_message_partial_request.rb index 76a66ba..55c969b 100644 --- a/lib/getstream_ruby/generated/models/update_message_partial_request.rb +++ b/lib/getstream_ruby/generated/models/update_message_partial_request.rb @@ -25,7 +25,7 @@ class UpdateMessagePartialRequest < GetStream::BaseModel # @return [Object] Sets new field values attr_accessor :set # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_message_partial_response.rb b/lib/getstream_ruby/generated/models/update_message_partial_response.rb index b19013a..4556ffa 100644 --- a/lib/getstream_ruby/generated/models/update_message_partial_response.rb +++ b/lib/getstream_ruby/generated/models/update_message_partial_response.rb @@ -13,7 +13,7 @@ class UpdateMessagePartialResponse < GetStream::BaseModel # @return [String] Duration of the request in milliseconds attr_accessor :duration # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute pending_message_metadata # @return [Hash] Pending message metadata diff --git a/lib/getstream_ruby/generated/models/update_message_request.rb b/lib/getstream_ruby/generated/models/update_message_request.rb index 7519115..1d66104 100644 --- a/lib/getstream_ruby/generated/models/update_message_request.rb +++ b/lib/getstream_ruby/generated/models/update_message_request.rb @@ -10,7 +10,7 @@ class UpdateMessageRequest < GetStream::BaseModel # Model attributes # @!attribute message - # @return [MessageRequest] + # @return [MessageRequest] Message data for creating or updating a message attr_accessor :message # @!attribute skip_enrich_url # @return [Boolean] Skip enrich URL diff --git a/lib/getstream_ruby/generated/models/update_message_response.rb b/lib/getstream_ruby/generated/models/update_message_response.rb index 613b3a6..55846f0 100644 --- a/lib/getstream_ruby/generated/models/update_message_response.rb +++ b/lib/getstream_ruby/generated/models/update_message_response.rb @@ -13,7 +13,7 @@ class UpdateMessageResponse < GetStream::BaseModel # @return [String] Duration of the request in milliseconds attr_accessor :duration # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute pending_message_metadata # @return [Hash] diff --git a/lib/getstream_ruby/generated/models/update_poll_option_request.rb b/lib/getstream_ruby/generated/models/update_poll_option_request.rb index 0a98ee2..d0eb2ce 100644 --- a/lib/getstream_ruby/generated/models/update_poll_option_request.rb +++ b/lib/getstream_ruby/generated/models/update_poll_option_request.rb @@ -19,10 +19,10 @@ class UpdatePollOptionRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute custom - # @return [Object] + # @return [Object] Custom data for this object attr_accessor :custom # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes @@ -31,7 +31,7 @@ def initialize(attributes = {}) @id = attributes[:id] || attributes['id'] @text = attributes[:text] || attributes['text'] @user_id = attributes[:user_id] || attributes['user_id'] || nil - @custom = attributes[:custom] || attributes['Custom'] || nil + @custom = attributes[:custom] || attributes['custom'] || nil @user = attributes[:user] || attributes['user'] || nil end @@ -41,7 +41,7 @@ def self.json_field_mappings id: 'id', text: 'text', user_id: 'user_id', - custom: 'Custom', + custom: 'custom', user: 'user' } end diff --git a/lib/getstream_ruby/generated/models/update_poll_partial_request.rb b/lib/getstream_ruby/generated/models/update_poll_partial_request.rb index c31e993..a5457d5 100644 --- a/lib/getstream_ruby/generated/models/update_poll_partial_request.rb +++ b/lib/getstream_ruby/generated/models/update_poll_partial_request.rb @@ -19,7 +19,7 @@ class UpdatePollPartialRequest < GetStream::BaseModel # @return [Object] Sets new field values attr_accessor :set # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_poll_request.rb b/lib/getstream_ruby/generated/models/update_poll_request.rb index 3608f22..e47817c 100644 --- a/lib/getstream_ruby/generated/models/update_poll_request.rb +++ b/lib/getstream_ruby/generated/models/update_poll_request.rb @@ -43,10 +43,10 @@ class UpdatePollRequest < GetStream::BaseModel # @return [Array] Poll options attr_accessor :options # @!attribute custom - # @return [Object] + # @return [Object] Custom data for this object attr_accessor :custom # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes @@ -63,7 +63,7 @@ def initialize(attributes = {}) @user_id = attributes[:user_id] || attributes['user_id'] || nil @voting_visibility = attributes[:voting_visibility] || attributes['voting_visibility'] || nil @options = attributes[:options] || attributes['options'] || nil - @custom = attributes[:custom] || attributes['Custom'] || nil + @custom = attributes[:custom] || attributes['custom'] || nil @user = attributes[:user] || attributes['user'] || nil end @@ -81,7 +81,7 @@ def self.json_field_mappings user_id: 'user_id', voting_visibility: 'voting_visibility', options: 'options', - custom: 'Custom', + custom: 'custom', user: 'user' } end diff --git a/lib/getstream_ruby/generated/models/update_queue_request.rb b/lib/getstream_ruby/generated/models/update_queue_request.rb index 40d034f..e2dd76a 100644 --- a/lib/getstream_ruby/generated/models/update_queue_request.rb +++ b/lib/getstream_ruby/generated/models/update_queue_request.rb @@ -25,7 +25,7 @@ class UpdateQueueRequest < GetStream::BaseModel # @return [Object] attr_accessor :filters # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_reminder_request.rb b/lib/getstream_ruby/generated/models/update_reminder_request.rb index d873811..78dfa02 100644 --- a/lib/getstream_ruby/generated/models/update_reminder_request.rb +++ b/lib/getstream_ruby/generated/models/update_reminder_request.rb @@ -16,7 +16,7 @@ class UpdateReminderRequest < GetStream::BaseModel # @return [String] attr_accessor :user_id # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_sip_inbound_routing_rule_request.rb b/lib/getstream_ruby/generated/models/update_sip_inbound_routing_rule_request.rb index e1f12d2..cd51ba3 100644 --- a/lib/getstream_ruby/generated/models/update_sip_inbound_routing_rule_request.rb +++ b/lib/getstream_ruby/generated/models/update_sip_inbound_routing_rule_request.rb @@ -16,7 +16,7 @@ class UpdateSIPInboundRoutingRuleRequest < GetStream::BaseModel # @return [Array] List of SIP trunk IDs attr_accessor :trunk_ids # @!attribute caller_configs - # @return [SIPCallerConfigsRequest] + # @return [SIPCallerConfigsRequest] Configuration for SIP caller settings attr_accessor :caller_configs # @!attribute called_numbers # @return [Array] List of called numbers @@ -25,16 +25,16 @@ class UpdateSIPInboundRoutingRuleRequest < GetStream::BaseModel # @return [Array] List of caller numbers (optional) attr_accessor :caller_numbers # @!attribute call_configs - # @return [SIPCallConfigsRequest] + # @return [SIPCallConfigsRequest] Configuration for SIP call settings attr_accessor :call_configs # @!attribute direct_routing_configs - # @return [SIPDirectRoutingRuleCallConfigsRequest] + # @return [SIPDirectRoutingRuleCallConfigsRequest] Configuration for direct routing rule calls attr_accessor :direct_routing_configs # @!attribute pin_protection_configs - # @return [SIPPinProtectionConfigsRequest] + # @return [SIPPinProtectionConfigsRequest] Configuration for PIN protection settings attr_accessor :pin_protection_configs # @!attribute pin_routing_configs - # @return [SIPInboundRoutingRulePinConfigsRequest] + # @return [SIPInboundRoutingRulePinConfigsRequest] Configuration for PIN routing rule calls attr_accessor :pin_routing_configs # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_sip_inbound_routing_rule_response.rb b/lib/getstream_ruby/generated/models/update_sip_inbound_routing_rule_response.rb index 35c6dc3..dd47910 100644 --- a/lib/getstream_ruby/generated/models/update_sip_inbound_routing_rule_response.rb +++ b/lib/getstream_ruby/generated/models/update_sip_inbound_routing_rule_response.rb @@ -13,7 +13,7 @@ class UpdateSIPInboundRoutingRuleResponse < GetStream::BaseModel # @return [String] attr_accessor :duration # @!attribute sip_inbound_routing_rule - # @return [SIPInboundRoutingRuleResponse] + # @return [SIPInboundRoutingRuleResponse] SIP Inbound Routing Rule response attr_accessor :sip_inbound_routing_rule # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_sip_trunk_response.rb b/lib/getstream_ruby/generated/models/update_sip_trunk_response.rb index bd71a8e..4518fed 100644 --- a/lib/getstream_ruby/generated/models/update_sip_trunk_response.rb +++ b/lib/getstream_ruby/generated/models/update_sip_trunk_response.rb @@ -13,7 +13,7 @@ class UpdateSIPTrunkResponse < GetStream::BaseModel # @return [String] attr_accessor :duration # @!attribute sip_trunk - # @return [SIPTrunkResponse] + # @return [SIPTrunkResponse] SIP trunk information attr_accessor :sip_trunk # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/update_thread_partial_request.rb b/lib/getstream_ruby/generated/models/update_thread_partial_request.rb index 892ed81..c0fb86a 100644 --- a/lib/getstream_ruby/generated/models/update_thread_partial_request.rb +++ b/lib/getstream_ruby/generated/models/update_thread_partial_request.rb @@ -19,7 +19,7 @@ class UpdateThreadPartialRequest < GetStream::BaseModel # @return [Object] Sets new field values attr_accessor :set # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/updated_call_permissions_event.rb b/lib/getstream_ruby/generated/models/updated_call_permissions_event.rb index 107ad02..1befed7 100644 --- a/lib/getstream_ruby/generated/models/updated_call_permissions_event.rb +++ b/lib/getstream_ruby/generated/models/updated_call_permissions_event.rb @@ -19,7 +19,7 @@ class UpdatedCallPermissionsEvent < GetStream::BaseModel # @return [Array] The capabilities of the current user attr_accessor :own_capabilities # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute type # @return [String] The type of event: "call.permissions_updated" in this case diff --git a/lib/getstream_ruby/generated/models/upsert_action_config_request.rb b/lib/getstream_ruby/generated/models/upsert_action_config_request.rb index eef1fb8..aa01c35 100644 --- a/lib/getstream_ruby/generated/models/upsert_action_config_request.rb +++ b/lib/getstream_ruby/generated/models/upsert_action_config_request.rb @@ -37,7 +37,7 @@ class UpsertActionConfigRequest < GetStream::BaseModel # @return [Object] Action-specific parameters passed to the action handler attr_accessor :custom # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/upsert_action_config_response.rb b/lib/getstream_ruby/generated/models/upsert_action_config_response.rb index 04834d8..2eba146 100644 --- a/lib/getstream_ruby/generated/models/upsert_action_config_response.rb +++ b/lib/getstream_ruby/generated/models/upsert_action_config_response.rb @@ -13,7 +13,7 @@ class UpsertActionConfigResponse < GetStream::BaseModel # @return [String] attr_accessor :duration # @!attribute action_config - # @return [ModerationActionConfigResponse] + # @return [ModerationActionConfigResponse] Configuration for a moderation action attr_accessor :action_config # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/upsert_config_request.rb b/lib/getstream_ruby/generated/models/upsert_config_request.rb index 1f98a14..ee7c5f1 100644 --- a/lib/getstream_ruby/generated/models/upsert_config_request.rb +++ b/lib/getstream_ruby/generated/models/upsert_config_request.rb @@ -64,7 +64,7 @@ class UpsertConfigRequest < GetStream::BaseModel # @return [RuleBuilderConfig] attr_accessor :rule_builder_config # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # @!attribute velocity_filter_config # @return [VelocityFilterConfig] diff --git a/lib/getstream_ruby/generated/models/upsert_external_storage_gcs_request.rb b/lib/getstream_ruby/generated/models/upsert_external_storage_gcs_request.rb new file mode 100644 index 0000000..c7b253c --- /dev/null +++ b/lib/getstream_ruby/generated/models/upsert_external_storage_gcs_request.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 UpsertExternalStorageGCSRequest < GetStream::BaseModel + + # Model attributes + # @!attribute bucket + # @return [String] + attr_accessor :bucket + # @!attribute credentials + # @return [String] + attr_accessor :credentials + # @!attribute path_prefix + # @return [String] + attr_accessor :path_prefix + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @bucket = attributes[:bucket] || attributes['bucket'] + @credentials = attributes[:credentials] || attributes['credentials'] + @path_prefix = attributes[:path_prefix] || attributes['path_prefix'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + bucket: 'bucket', + credentials: 'credentials', + path_prefix: 'path_prefix' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/upsert_external_storage_request.rb b/lib/getstream_ruby/generated/models/upsert_external_storage_request.rb index b2f7818..dba65f3 100644 --- a/lib/getstream_ruby/generated/models/upsert_external_storage_request.rb +++ b/lib/getstream_ruby/generated/models/upsert_external_storage_request.rb @@ -15,19 +15,24 @@ class UpsertExternalStorageRequest < GetStream::BaseModel # @!attribute aws_s3 # @return [UpsertExternalStorageAWSS3Request] attr_accessor :aws_s3 + # @!attribute gcs + # @return [UpsertExternalStorageGCSRequest] + attr_accessor :gcs # Initialize with attributes def initialize(attributes = {}) super(attributes) @type = attributes[:type] || attributes['type'] @aws_s3 = attributes[:aws_s3] || attributes['aws_s3'] || nil + @gcs = attributes[:gcs] || attributes['gcs'] || nil end # Override field mappings for JSON serialization def self.json_field_mappings { type: 'type', - aws_s3: 'aws_s3' + aws_s3: 'aws_s3', + gcs: 'gcs' } end end diff --git a/lib/getstream_ruby/generated/models/upsert_moderation_rule_request.rb b/lib/getstream_ruby/generated/models/upsert_moderation_rule_request.rb index fe4b780..70d7c6c 100644 --- a/lib/getstream_ruby/generated/models/upsert_moderation_rule_request.rb +++ b/lib/getstream_ruby/generated/models/upsert_moderation_rule_request.rb @@ -13,7 +13,7 @@ class UpsertModerationRuleRequest < GetStream::BaseModel # @return [String] Unique rule name attr_accessor :name # @!attribute rule_type - # @return [String] Type of rule: user, content, or call + # @return [String] Type of rule: user, content, call, or flood attr_accessor :rule_type # @!attribute cooldown_period # @return [String] Duration before rule can trigger again (e.g. 24h, 7d) @@ -49,7 +49,7 @@ class UpsertModerationRuleRequest < GetStream::BaseModel # @return [RuleBuilderAction] attr_accessor :action # @!attribute user - # @return [UserRequest] + # @return [UserRequest] User request object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/upsert_moderation_template_request.rb b/lib/getstream_ruby/generated/models/upsert_moderation_template_request.rb index b956186..22a5453 100644 --- a/lib/getstream_ruby/generated/models/upsert_moderation_template_request.rb +++ b/lib/getstream_ruby/generated/models/upsert_moderation_template_request.rb @@ -13,7 +13,7 @@ class UpsertModerationTemplateRequest < GetStream::BaseModel # @return [String] Name of the moderation template attr_accessor :name # @!attribute config - # @return [FeedsModerationTemplateConfigPayload] + # @return [FeedsModerationTemplateConfigPayload] Configuration for a feeds moderation template attr_accessor :config # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/upsert_moderation_template_response.rb b/lib/getstream_ruby/generated/models/upsert_moderation_template_response.rb index 8c67fe1..06532f8 100644 --- a/lib/getstream_ruby/generated/models/upsert_moderation_template_response.rb +++ b/lib/getstream_ruby/generated/models/upsert_moderation_template_response.rb @@ -22,7 +22,7 @@ class UpsertModerationTemplateResponse < GetStream::BaseModel # @return [DateTime] When the template was last updated attr_accessor :updated_at # @!attribute config - # @return [FeedsModerationTemplateConfigPayload] + # @return [FeedsModerationTemplateConfigPayload] Configuration for a feeds moderation template attr_accessor :config # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/user_mute_response.rb b/lib/getstream_ruby/generated/models/user_mute_response.rb index 8358acb..89a4b8d 100644 --- a/lib/getstream_ruby/generated/models/user_mute_response.rb +++ b/lib/getstream_ruby/generated/models/user_mute_response.rb @@ -19,10 +19,10 @@ class UserMuteResponse < GetStream::BaseModel # @return [DateTime] attr_accessor :expires # @!attribute target - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :target # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/video_reaction_response.rb b/lib/getstream_ruby/generated/models/video_reaction_response.rb index 33537c2..83538ef 100644 --- a/lib/getstream_ruby/generated/models/video_reaction_response.rb +++ b/lib/getstream_ruby/generated/models/video_reaction_response.rb @@ -13,7 +13,7 @@ class VideoReactionResponse < GetStream::BaseModel # @return [String] attr_accessor :type # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # @!attribute emoji_code # @return [String] diff --git a/lib/getstream_ruby/generated/models/viewer_behavior.rb b/lib/getstream_ruby/generated/models/viewer_behavior.rb new file mode 100644 index 0000000..b1fd4ce --- /dev/null +++ b/lib/getstream_ruby/generated/models/viewer_behavior.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 ViewerBehavior < GetStream::BaseModel + + # Model attributes + # @!attribute connection_duration_p50_s + # @return [Integer] + attr_accessor :connection_duration_p50_s + # @!attribute connections_per_viewer_mean + # @return [Float] + attr_accessor :connections_per_viewer_mean + # @!attribute median_watch_min + # @return [Float] + attr_accessor :median_watch_min + # @!attribute note + # @return [String] + attr_accessor :note + # @!attribute p90_watch_min + # @return [Float] + attr_accessor :p90_watch_min + # @!attribute bounce_rate_pct + # @return [Float] + attr_accessor :bounce_rate_pct + # @!attribute connections_under_30s_pct + # @return [Float] + attr_accessor :connections_under_30s_pct + # @!attribute return_visit_rate_pct + # @return [Float] + attr_accessor :return_visit_rate_pct + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @connection_duration_p50_s = attributes[:connection_duration_p50_s] || attributes['connection_duration_p50_s'] + @connections_per_viewer_mean = attributes[:connections_per_viewer_mean] || attributes['connections_per_viewer_mean'] + @median_watch_min = attributes[:median_watch_min] || attributes['median_watch_min'] + @note = attributes[:note] || attributes['note'] + @p90_watch_min = attributes[:p90_watch_min] || attributes['p90_watch_min'] + @bounce_rate_pct = attributes[:bounce_rate_pct] || attributes['bounce_rate_pct'] || nil + @connections_under_30s_pct = attributes[:connections_under_30s_pct] || attributes['connections_under_30s_pct'] || nil + @return_visit_rate_pct = attributes[:return_visit_rate_pct] || attributes['return_visit_rate_pct'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + connection_duration_p50_s: 'connection_duration_p50_s', + connections_per_viewer_mean: 'connections_per_viewer_mean', + median_watch_min: 'median_watch_min', + note: 'note', + p90_watch_min: 'p90_watch_min', + bounce_rate_pct: 'bounce_rate_pct', + connections_under_30s_pct: 'connections_under_30s_pct', + return_visit_rate_pct: 'return_visit_rate_pct' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/ws_event.rb b/lib/getstream_ruby/generated/models/ws_event.rb index 99220ae..90db696 100644 --- a/lib/getstream_ruby/generated/models/ws_event.rb +++ b/lib/getstream_ruby/generated/models/ws_event.rb @@ -58,10 +58,10 @@ class WSEvent < GetStream::BaseModel # @return [ModerationResponse] attr_accessor :automoderation_scores # @!attribute channel - # @return [ChannelResponse] + # @return [ChannelResponse] Represents channel in chat attr_accessor :channel # @!attribute created_by - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :created_by # @!attribute me # @return [OwnUserResponse] @@ -70,7 +70,7 @@ class WSEvent < GetStream::BaseModel # @return [ChannelMemberResponse] attr_accessor :member # @!attribute message - # @return [MessageResponse] + # @return [MessageResponse] Represents any chat message attr_accessor :message # @!attribute message_update # @return [MessageUpdate] @@ -88,7 +88,7 @@ class WSEvent < GetStream::BaseModel # @return [ThreadResponse] attr_accessor :thread # @!attribute user - # @return [UserResponse] + # @return [UserResponse] User response object attr_accessor :user # Initialize with attributes diff --git a/lib/getstream_ruby/generated/moderation_client.rb b/lib/getstream_ruby/generated/moderation_client.rb index 9e533b1..9887c2d 100644 --- a/lib/getstream_ruby/generated/moderation_client.rb +++ b/lib/getstream_ruby/generated/moderation_client.rb @@ -555,10 +555,13 @@ def upsert_moderation_rule(upsert_moderation_rule_request) # Delete an existing moderation rule # + # @param _id [String] # @param user_id [String] # @return [Models::DeleteModerationRuleResponse] - def delete_moderation_rule(user_id = nil) + def delete_moderation_rule(_id, user_id = nil) path = '/api/v2/moderation/moderation_rule/{id}' + # Replace path parameters + path = path.gsub('{id}', _id.to_s) # Build query parameters query_params = {} query_params['user_id'] = user_id unless user_id.nil? @@ -573,9 +576,12 @@ def delete_moderation_rule(user_id = nil) # Get a specific moderation rule by ID # + # @param _id [String] # @return [Models::GetModerationRuleResponse] - def get_moderation_rule() + def get_moderation_rule(_id) path = '/api/v2/moderation/moderation_rule/{id}' + # Replace path parameters + path = path.gsub('{id}', _id.to_s) # Make the API request @client.make_request( @@ -620,14 +626,113 @@ def mute(mute_request) # # + # @param _id [String] + # @return [Models::PolicyTestRunResponse] + def get_policy_test_run(_id) + path = '/api/v2/moderation/policy_tests/runs/{id}' + # Replace path parameters + path = path.gsub('{id}', _id.to_s) + + # Make the API request + @client.make_request( + :get, + path + ) + end + + # + # + # @return [Models::PolicyTestSetListResponse] + def list_policy_test_sets() + path = '/api/v2/moderation/policy_tests/sets' + + # Make the API request + @client.make_request( + :get, + path + ) + end + + # Save a labeled set of messages that can be re-run against the moderation policy. + # + # @param create_policy_test_set_request [CreatePolicyTestSetRequest] + # @return [Models::PolicyTestSetResponse] + def create_policy_test_set(create_policy_test_set_request) + path = '/api/v2/moderation/policy_tests/sets' + # Build request body + body = create_policy_test_set_request + + # Make the API request + @client.make_request( + :post, + path, + body: body + ) + end + + # + # + # @param _id [String] + # @return [Models::Response] + def delete_policy_test_set(_id) + path = '/api/v2/moderation/policy_tests/sets/{id}' + # Replace path parameters + path = path.gsub('{id}', _id.to_s) + + # Make the API request + @client.make_request( + :delete, + path + ) + end + + # + # + # @param _id [String] + # @return [Models::PolicyTestSetResponse] + def get_policy_test_set(_id) + path = '/api/v2/moderation/policy_tests/sets/{id}' + # Replace path parameters + path = path.gsub('{id}', _id.to_s) + + # Make the API request + @client.make_request( + :get, + path + ) + end + + # Enqueue a background run of the set against the saved live moderation config. + # + # @param _id [String] + # @return [Models::PolicyTestRunResponse] + def start_policy_test_run(_id) + path = '/api/v2/moderation/policy_tests/sets/{id}/runs' + # Replace path parameters + path = path.gsub('{id}', _id.to_s) + + # Make the API request + @client.make_request( + :post, + path + ) + end + + # + # + # @param user_id [String] # @return [Models::ListQueuesResponse] - def list_queues() + def list_queues(user_id = nil) path = '/api/v2/moderation/queues' + # Build query parameters + query_params = {} + query_params['user_id'] = user_id unless user_id.nil? # Make the API request @client.make_request( :get, - path + path, + query_params: query_params ) end diff --git a/lib/getstream_ruby/generated/video_client.rb b/lib/getstream_ruby/generated/video_client.rb index 8422cd6..3c7f7e4 100644 --- a/lib/getstream_ruby/generated/video_client.rb +++ b/lib/getstream_ruby/generated/video_client.rb @@ -1431,6 +1431,26 @@ def query_aggregate_call_stats(query_aggregate_call_stats_request) ) end + # Returns the app's per-broadcast daily digest bundle for one UTC day, with an explicit readiness status (ready, pending, failed, future_date, expired). Payload keys are only present when status is ready. + # + # @param date [String] + # @param app_id [String] + # @return [Models::GetDailyDigestResponse] + def get_daily_digest(date = nil, app_id = nil) + path = '/api/v2/video/stats/daily_digest' + # Build query parameters + query_params = {} + query_params['date'] = date unless date.nil? + query_params['app_id'] = app_id unless app_id.nil? + + # Make the API request + @client.make_request( + :get, + path, + query_params: query_params + ) + end + end end end \ No newline at end of file diff --git a/lib/getstream_ruby/generated/webhook.rb b/lib/getstream_ruby/generated/webhook.rb index d8e6901..94927d4 100644 --- a/lib/getstream_ruby/generated/webhook.rb +++ b/lib/getstream_ruby/generated/webhook.rb @@ -131,6 +131,7 @@ require_relative 'models/message_unblocked_event' require_relative 'models/message_undeleted_event' require_relative 'models/message_updated_event' +require_relative 'models/moderation_analysis_failed_event' require_relative 'models/moderation_check_completed_event' require_relative 'models/moderation_custom_action_event' require_relative 'models/moderation_flagged_event' @@ -353,6 +354,7 @@ def initialize(type:, created_at: nil, raw: {}) EVENT_TYPE_MESSAGE_UNBLOCKED = 'message.unblocked' EVENT_TYPE_MESSAGE_UNDELETED = 'message.undeleted' EVENT_TYPE_MESSAGE_UPDATED = 'message.updated' + EVENT_TYPE_MODERATION_ANALYSIS_FAILED = 'moderation.analysis.failed' EVENT_TYPE_MODERATION_CUSTOM_ACTION = 'moderation.custom_action' EVENT_TYPE_MODERATION_FLAGGED = 'moderation.flagged' EVENT_TYPE_MODERATION_IMAGE_ANALYSIS_COMPLETE = 'moderation.image_analysis.complete' @@ -708,6 +710,8 @@ def self.parse_webhook_event(raw_event) GetStream::Generated::Models::MessageUndeletedEvent when 'message.updated' GetStream::Generated::Models::MessageUpdatedEvent + when 'moderation.analysis.failed' + GetStream::Generated::Models::ModerationAnalysisFailedEvent when 'moderation.custom_action' GetStream::Generated::Models::ModerationCustomActionEvent when 'moderation.flagged' diff --git a/spec/integration/chat_channel_integration_spec.rb b/spec/integration/chat_channel_integration_spec.rb index e173d4f..aa4f40b 100644 --- a/spec/integration/chat_channel_integration_spec.rb +++ b/spec/integration/chat_channel_integration_spec.rb @@ -239,15 +239,13 @@ def delete_channel_image(type, id, url) resp = update_channel_partial('messaging', channel_id, set: { 'color' => 'red', 'description' => 'A test channel' }) expect(resp.channel).not_to be_nil - ch = resp.channel.to_h - custom = ch['custom'] || {} + custom = read_channel(channel_id)['custom'] || {} expect(custom['color']).to eq('red') # Unset fields resp_2 = update_channel_partial('messaging', channel_id, unset: ['color']) expect(resp_2.channel).not_to be_nil - ch_2 = resp_2.channel.to_h - custom_2 = ch_2['custom'] || {} + custom_2 = read_channel(channel_id)['custom'] || {} expect(custom_2).not_to have_key('color') end @@ -418,11 +416,13 @@ def delete_channel_image(type, id, url) # Freeze resp = update_channel_partial('messaging', channel_id, set: { 'frozen' => true }) - expect(resp.channel.to_h['frozen']).to eq(true) + expect(resp.channel).not_to be_nil + expect(read_channel(channel_id)['frozen']).to eq(true) # Unfreeze resp_2 = update_channel_partial('messaging', channel_id, set: { 'frozen' => false }) - expect(resp_2.channel.to_h['frozen']).to eq(false) + expect(resp_2.channel).not_to be_nil + expect(read_channel(channel_id)['frozen']).to eq(false) end diff --git a/spec/integration/chat_client_integration_spec.rb b/spec/integration/chat_client_integration_spec.rb index e03a654..70bd69c 100644 --- a/spec/integration/chat_client_integration_spec.rb +++ b/spec/integration/chat_client_integration_spec.rb @@ -113,8 +113,8 @@ set: { 'color' => 'blue', 'topic' => 'testing' }, ) ) - ch = resp.channel.to_h - custom = ch['custom'] || {} + expect(resp.channel).not_to be_nil + custom = read_channel(channel_id)['custom'] || {} expect(custom['color']).to eq('blue') resp_b = @client.chat.update_channel_partial( @@ -123,8 +123,8 @@ unset: ['color'], ) ) - ch_b = resp_b.channel.to_h - custom_b = ch_b['custom'] || {} + expect(resp_b.channel).not_to be_nil + custom_b = read_channel(channel_id)['custom'] || {} expect(custom_b).not_to have_key('color') end diff --git a/spec/integration/chat_misc_integration_spec.rb b/spec/integration/chat_misc_integration_spec.rb index 51524a7..31703e1 100644 --- a/spec/integration/chat_misc_integration_spec.rb +++ b/spec/integration/chat_misc_integration_spec.rb @@ -285,16 +285,28 @@ expect(get_resp.name).to eq(type_name) # Update channel type — raise to 4000 (plan maximum) to verify the - # update is applied. Assert on the update response directly: it is read - # from the writing server's local cache (always fresh) so we avoid the - # eventual consistency window that makes a re-fetch flaky. - update_resp = @client.make_request(:put, "/api/v2/chat/channeltypes/#{type_name}", body: { - automod: 'disabled', - automod_behavior: 'flag', - max_message_length: 4000, - typing_events: false, - }) - expect(update_resp.max_message_length).to eq(4000) + # update is applied. The update response can lag the write it just made, + # and a re-fetch is eventually consistent, so poll until the new value + # shows up rather than asserting on either one directly. + @client.make_request(:put, "/api/v2/chat/channeltypes/#{type_name}", body: { + automod: 'disabled', + automod_behavior: 'flag', + max_message_length: 4000, + typing_events: false, + }) + + max_message_length = nil + 10.times do + + max_message_length = @client.make_request( + :get, "/api/v2/chat/channeltypes/#{type_name}" + ).max_message_length + break if max_message_length == 4000 + + sleep(0.5) + + end + expect(max_message_length).to eq(4000) # Delete a separate channel type del_name = "testdeltype#{random_string(6)}" diff --git a/spec/integration/chat_test_helpers.rb b/spec/integration/chat_test_helpers.rb index ada1a33..14a58af 100644 --- a/spec/integration/chat_test_helpers.rb +++ b/spec/integration/chat_test_helpers.rb @@ -148,7 +148,10 @@ def send_test_message(channel_type, channel_id, user_id, text) # Helper 6: wait_for_task # --------------------------------------------------------------------------- - def wait_for_task(task_id, max_attempts: 60, interval_seconds: 1, skip_on_timeout: false) + # Hard-delete style tasks sit in a shared async queue and regularly take + # minutes under load, so the budget is 5 minutes rather than the 1 minute + # that kept timing out in CI. + def wait_for_task(task_id, max_attempts: 60, interval_seconds: 5, skip_on_timeout: false) max_attempts.times do result = @client.common.get_task(task_id) @@ -176,6 +179,12 @@ def get_or_create_channel(type, id, body = {}) @client.make_request(:post, "/api/v2/chat/channels/#{type}/#{id}/query", body: body) end + # Reads the channel back from the API. The channel returned by a partial update can lag the + # write it just applied, so state assertions read the channel instead of trusting that response. + def read_channel(id, type = 'messaging') + get_or_create_channel(type, id).channel.to_h + end + def delete_channel(type, id, hard: false) query_params = hard ? { 'hard_delete' => 'true' } : {} retry_on_rate_limit do diff --git a/spec/webhook_spec.rb b/spec/webhook_spec.rb index 559ec5a..2271c9e 100644 --- a/spec/webhook_spec.rb +++ b/spec/webhook_spec.rb @@ -1045,6 +1045,13 @@ def compute_signature(body, secret) end + it 'parses moderation.analysis.failed' do + + event = StreamChat::Webhook.parse_webhook_event('{"type":"moderation.analysis.failed"}') + expect(event.class.name).to eq('GetStream::Generated::Models::ModerationAnalysisFailedEvent') + + end + it 'parses moderation.custom_action' do event = StreamChat::Webhook.parse_webhook_event('{"type":"moderation.custom_action"}')