From f637a313f2d0fa5fda0f91963d5bfdc0394bd388 Mon Sep 17 00:00:00 2001 From: Aditya Agarwal Date: Fri, 20 Mar 2026 17:22:57 +0100 Subject: [PATCH 1/5] update sdk --- lib/getstream_ruby/generated/chat_client.rb | 67 ++++++++++++++++ .../generated/models/add_comment_request.rb | 10 +-- .../models/ai_image_label_definition.rb | 46 +++++++++++ .../generated/models/app_response_fields.rb | 5 ++ .../models/async_export_error_event.rb | 2 +- .../generated/models/aws_rekognition_rule.rb | 2 +- .../generated/models/call_ended_event.rb | 5 ++ .../generated/models/channel_config.rb | 7 +- .../models/channel_config_with_info.rb | 5 ++ .../channel_push_preferences_response.rb | 7 +- .../generated/models/channel_type_config.rb | 7 +- .../generated/models/chat_preferences.rb | 66 ++++++++++++++++ .../models/chat_preferences_input.rb | 61 +++++++++++++++ .../models/chat_preferences_response.rb | 61 +++++++++++++++ .../generated/models/check_response.rb | 7 +- .../generated/models/comment_response.rb | 10 +-- .../models/config_overrides_request.rb | 10 +++ .../generated/models/config_response.rb | 5 ++ .../models/create_channel_type_request.rb | 5 ++ .../models/create_channel_type_response.rb | 7 +- .../models/create_sip_trunk_request.rb | 12 ++- .../models/delete_retention_policy_request.rb | 31 ++++++++ .../delete_retention_policy_response.rb | 31 ++++++++ .../models/filter_config_response.rb | 7 +- .../models/get_channel_type_response.rb | 7 +- .../models/get_retention_policy_response.rb | 36 +++++++++ .../get_retention_policy_runs_response.rb | 36 +++++++++ .../models/moderation_flagged_event.rb | 10 +-- .../generated/models/policy_config.rb | 31 ++++++++ .../generated/models/push_preference_input.rb | 5 ++ .../models/push_preferences_response.rb | 5 ++ .../models/query_moderation_rules_response.rb | 10 +++ .../models/resolve_sip_auth_request.rb | 46 +++++++++++ .../models/resolve_sip_auth_response.rb | 51 +++++++++++++ .../models/resolve_sip_inbound_request.rb | 15 ++-- .../generated/models/retention_cleanup_run.rb | 76 +++++++++++++++++++ .../generated/models/retention_policy.rb | 46 +++++++++++ .../generated/models/rule_builder_action.rb | 5 ++ .../generated/models/run_stats.rb | 36 +++++++++ .../models/set_retention_policy_request.rb | 36 +++++++++ .../models/set_retention_policy_response.rb | 36 +++++++++ .../generated/models/sip_trunk_response.rb | 5 ++ .../models/threaded_comment_response.rb | 10 +-- .../models/triggered_rule_response.rb | 51 +++++++++++++ .../generated/models/update_app_request.rb | 5 ++ .../models/update_channel_type_request.rb | 5 ++ .../models/update_channel_type_response.rb | 7 +- ...update_sip_inbound_routing_rule_request.rb | 10 +-- .../models/update_sip_trunk_request.rb | 12 ++- lib/getstream_ruby/generated/video_client.rb | 17 +++++ 50 files changed, 1043 insertions(+), 42 deletions(-) create mode 100644 lib/getstream_ruby/generated/models/ai_image_label_definition.rb create mode 100644 lib/getstream_ruby/generated/models/chat_preferences.rb create mode 100644 lib/getstream_ruby/generated/models/chat_preferences_input.rb create mode 100644 lib/getstream_ruby/generated/models/chat_preferences_response.rb create mode 100644 lib/getstream_ruby/generated/models/delete_retention_policy_request.rb create mode 100644 lib/getstream_ruby/generated/models/delete_retention_policy_response.rb create mode 100644 lib/getstream_ruby/generated/models/get_retention_policy_response.rb create mode 100644 lib/getstream_ruby/generated/models/get_retention_policy_runs_response.rb create mode 100644 lib/getstream_ruby/generated/models/policy_config.rb create mode 100644 lib/getstream_ruby/generated/models/resolve_sip_auth_request.rb create mode 100644 lib/getstream_ruby/generated/models/resolve_sip_auth_response.rb create mode 100644 lib/getstream_ruby/generated/models/retention_cleanup_run.rb create mode 100644 lib/getstream_ruby/generated/models/retention_policy.rb create mode 100644 lib/getstream_ruby/generated/models/run_stats.rb create mode 100644 lib/getstream_ruby/generated/models/set_retention_policy_request.rb create mode 100644 lib/getstream_ruby/generated/models/set_retention_policy_response.rb create mode 100644 lib/getstream_ruby/generated/models/triggered_rule_response.rb diff --git a/lib/getstream_ruby/generated/chat_client.rb b/lib/getstream_ruby/generated/chat_client.rb index b30a9592..ce91ab94 100644 --- a/lib/getstream_ruby/generated/chat_client.rb +++ b/lib/getstream_ruby/generated/chat_client.rb @@ -1388,6 +1388,73 @@ def query_reminders(query_reminders_request) ) end + # Returns all retention policies configured for the app. Server-side only. + # + # @return [Models::GetRetentionPolicyResponse] + def get_retention_policy() + path = '/api/v2/chat/retention_policy' + + # Make the API request + @client.make_request( + :get, + path + ) + end + + # Creates or updates a retention policy for the app. Server-side only. + # + # @param set_retention_policy_request [SetRetentionPolicyRequest] + # @return [Models::SetRetentionPolicyResponse] + def set_retention_policy(set_retention_policy_request) + path = '/api/v2/chat/retention_policy' + # Build request body + body = set_retention_policy_request + + # Make the API request + @client.make_request( + :post, + path, + body: body + ) + end + + # Removes a retention policy for the app. Server-side only. + # + # @param delete_retention_policy_request [DeleteRetentionPolicyRequest] + # @return [Models::DeleteRetentionPolicyResponse] + def delete_retention_policy(delete_retention_policy_request) + path = '/api/v2/chat/retention_policy/delete' + # Build request body + body = delete_retention_policy_request + + # Make the API request + @client.make_request( + :post, + path, + body: body + ) + end + + # Returns paginated retention cleanup run history for the app. Server-side only. + # + # @param limit [Integer] + # @param offset [Integer] + # @return [Models::GetRetentionPolicyRunsResponse] + def get_retention_policy_runs(limit = nil, offset = nil) + path = '/api/v2/chat/retention_policy/runs' + # Build query parameters + query_params = {} + query_params['limit'] = limit unless limit.nil? + query_params['offset'] = offset unless offset.nil? + + # Make the API request + @client.make_request( + :get, + path, + query_params: query_params + ) + end + # Search messages across channels # # @param payload [SearchPayload] diff --git a/lib/getstream_ruby/generated/models/add_comment_request.rb b/lib/getstream_ruby/generated/models/add_comment_request.rb index 29390714..2c07938f 100644 --- a/lib/getstream_ruby/generated/models/add_comment_request.rb +++ b/lib/getstream_ruby/generated/models/add_comment_request.rb @@ -9,9 +9,6 @@ module Models class AddCommentRequest < GetStream::BaseModel # Model attributes - # @!attribute _object_id - # @return [String] ID of the object to comment on. Required for root comments - attr_accessor :_object_id # @!attribute comment # @return [String] Text content of the comment attr_accessor :comment @@ -24,6 +21,9 @@ class AddCommentRequest < GetStream::BaseModel # @!attribute id # @return [String] Optional custom ID for the comment (max 255 characters). If not provided, a UUID will be generated. attr_accessor :id + # @!attribute object_id + # @return [String] ID of the object to comment on. Required for root comments + attr_accessor :object_id # @!attribute object_type # @return [String] Type of the object to comment on. Required for root comments attr_accessor :object_type @@ -55,11 +55,11 @@ class AddCommentRequest < GetStream::BaseModel # Initialize with attributes def initialize(attributes = {}) super(attributes) - @_object_id = attributes[:_object_id] || attributes['object_id'] || nil @comment = attributes[:comment] || attributes['comment'] || nil @copy_custom_to_notification = attributes[:copy_custom_to_notification] || attributes['copy_custom_to_notification'] || nil @create_notification_activity = attributes[:create_notification_activity] || attributes['create_notification_activity'] || nil @id = attributes[:id] || attributes['id'] || nil + @object_id = attributes[:object_id] || attributes['object_id'] || nil @object_type = attributes[:object_type] || attributes['object_type'] || nil @parent_id = attributes[:parent_id] || attributes['parent_id'] || nil @skip_enrich_url = attributes[:skip_enrich_url] || attributes['skip_enrich_url'] || nil @@ -74,11 +74,11 @@ def initialize(attributes = {}) # Override field mappings for JSON serialization def self.json_field_mappings { - _object_id: 'object_id', comment: 'comment', copy_custom_to_notification: 'copy_custom_to_notification', create_notification_activity: 'create_notification_activity', id: 'id', + object_id: 'object_id', object_type: 'object_type', parent_id: 'parent_id', skip_enrich_url: 'skip_enrich_url', diff --git a/lib/getstream_ruby/generated/models/ai_image_label_definition.rb b/lib/getstream_ruby/generated/models/ai_image_label_definition.rb new file mode 100644 index 00000000..cc98ad7a --- /dev/null +++ b/lib/getstream_ruby/generated/models/ai_image_label_definition.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 AIImageLabelDefinition < GetStream::BaseModel + + # Model attributes + # @!attribute description + # @return [String] + attr_accessor :description + # @!attribute group + # @return [String] + attr_accessor :group + # @!attribute key + # @return [String] + attr_accessor :key + # @!attribute label + # @return [String] + attr_accessor :label + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @description = attributes[:description] || attributes['description'] + @group = attributes[:group] || attributes['group'] + @key = attributes[:key] || attributes['key'] + @label = attributes[:label] || attributes['label'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + description: 'description', + group: 'group', + key: 'key', + label: 'label' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/app_response_fields.rb b/lib/getstream_ruby/generated/models/app_response_fields.rb index fcf7e293..fddfe239 100644 --- a/lib/getstream_ruby/generated/models/app_response_fields.rb +++ b/lib/getstream_ruby/generated/models/app_response_fields.rb @@ -165,6 +165,9 @@ class AppResponseFields < GetStream::BaseModel # @!attribute image_moderation_labels # @return [Array] attr_accessor :image_moderation_labels + # @!attribute activity_metrics_config + # @return [Hash] + attr_accessor :activity_metrics_config # @!attribute datadog_info # @return [DataDogInfo] attr_accessor :datadog_info @@ -227,6 +230,7 @@ def initialize(attributes = {}) @allowed_flag_reasons = attributes[:allowed_flag_reasons] || attributes['allowed_flag_reasons'] || nil @geofences = attributes[:geofences] || attributes['geofences'] || nil @image_moderation_labels = attributes[:image_moderation_labels] || attributes['image_moderation_labels'] || nil + @activity_metrics_config = attributes[:activity_metrics_config] || attributes['activity_metrics_config'] || nil @datadog_info = attributes[:datadog_info] || attributes['datadog_info'] || nil @moderation_dashboard_preferences = attributes[:moderation_dashboard_preferences] || attributes['moderation_dashboard_preferences'] || nil end @@ -286,6 +290,7 @@ def self.json_field_mappings allowed_flag_reasons: 'allowed_flag_reasons', geofences: 'geofences', image_moderation_labels: 'image_moderation_labels', + activity_metrics_config: 'activity_metrics_config', datadog_info: 'datadog_info', moderation_dashboard_preferences: 'moderation_dashboard_preferences' } 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 e297b0e4..1e922a82 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.users.error" @received_at = attributes[:received_at] || attributes['received_at'] || nil end diff --git a/lib/getstream_ruby/generated/models/aws_rekognition_rule.rb b/lib/getstream_ruby/generated/models/aws_rekognition_rule.rb index b00fe081..41496776 100644 --- a/lib/getstream_ruby/generated/models/aws_rekognition_rule.rb +++ b/lib/getstream_ruby/generated/models/aws_rekognition_rule.rb @@ -19,7 +19,7 @@ class AWSRekognitionRule < GetStream::BaseModel # @return [Float] attr_accessor :min_confidence # @!attribute subclassifications - # @return [Hash] + # @return [Object] attr_accessor :subclassifications # Initialize with attributes diff --git a/lib/getstream_ruby/generated/models/call_ended_event.rb b/lib/getstream_ruby/generated/models/call_ended_event.rb index f88feb7d..d4dbc218 100644 --- a/lib/getstream_ruby/generated/models/call_ended_event.rb +++ b/lib/getstream_ruby/generated/models/call_ended_event.rb @@ -24,6 +24,9 @@ class CallEndedEvent < GetStream::BaseModel # @!attribute reason # @return [String] The reason why the call ended, if available attr_accessor :reason + # @!attribute members + # @return [Array] The list of members in the call + attr_accessor :members # @!attribute user # @return [UserResponse] attr_accessor :user @@ -36,6 +39,7 @@ def initialize(attributes = {}) @call = attributes[:call] || attributes['call'] @type = attributes[:type] || attributes['type'] || "call.ended" @reason = attributes[:reason] || attributes['reason'] || nil + @members = attributes[:members] || attributes['members'] || nil @user = attributes[:user] || attributes['user'] || nil end @@ -47,6 +51,7 @@ def self.json_field_mappings call: 'call', type: 'type', reason: 'reason', + members: 'members', user: 'user' } end diff --git a/lib/getstream_ruby/generated/models/channel_config.rb b/lib/getstream_ruby/generated/models/channel_config.rb index f4a095c7..97fa29c9 100644 --- a/lib/getstream_ruby/generated/models/channel_config.rb +++ b/lib/getstream_ruby/generated/models/channel_config.rb @@ -114,6 +114,9 @@ class ChannelConfig < GetStream::BaseModel # @!attribute automod_thresholds # @return [Thresholds] attr_accessor :automod_thresholds + # @!attribute chat_preferences + # @return [ChatPreferences] + attr_accessor :chat_preferences # Initialize with attributes def initialize(attributes = {}) @@ -153,6 +156,7 @@ def initialize(attributes = {}) @allowed_flag_reasons = attributes[:allowed_flag_reasons] || attributes['allowed_flag_reasons'] || nil @blocklists = attributes[:blocklists] || attributes['blocklists'] || nil @automod_thresholds = attributes[:automod_thresholds] || attributes['automod_thresholds'] || nil + @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil end # Override field mappings for JSON serialization @@ -192,7 +196,8 @@ def self.json_field_mappings push_level: 'push_level', allowed_flag_reasons: 'allowed_flag_reasons', blocklists: 'blocklists', - automod_thresholds: 'automod_thresholds' + automod_thresholds: 'automod_thresholds', + chat_preferences: 'chat_preferences' } end end 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 1c2c66cd..e6193975 100644 --- a/lib/getstream_ruby/generated/models/channel_config_with_info.rb +++ b/lib/getstream_ruby/generated/models/channel_config_with_info.rb @@ -114,6 +114,9 @@ class ChannelConfigWithInfo < GetStream::BaseModel # @!attribute automod_thresholds # @return [Thresholds] attr_accessor :automod_thresholds + # @!attribute chat_preferences + # @return [ChatPreferences] + attr_accessor :chat_preferences # @!attribute grants # @return [Hash>] attr_accessor :grants @@ -156,6 +159,7 @@ def initialize(attributes = {}) @allowed_flag_reasons = attributes[:allowed_flag_reasons] || attributes['allowed_flag_reasons'] || nil @blocklists = attributes[:blocklists] || attributes['blocklists'] || nil @automod_thresholds = attributes[:automod_thresholds] || attributes['automod_thresholds'] || nil + @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil @grants = attributes[:grants] || attributes['grants'] || nil end @@ -197,6 +201,7 @@ def self.json_field_mappings allowed_flag_reasons: 'allowed_flag_reasons', blocklists: 'blocklists', automod_thresholds: 'automod_thresholds', + chat_preferences: 'chat_preferences', grants: 'grants' } end diff --git a/lib/getstream_ruby/generated/models/channel_push_preferences_response.rb b/lib/getstream_ruby/generated/models/channel_push_preferences_response.rb index a8eb372e..ac0f1ab4 100644 --- a/lib/getstream_ruby/generated/models/channel_push_preferences_response.rb +++ b/lib/getstream_ruby/generated/models/channel_push_preferences_response.rb @@ -15,19 +15,24 @@ class ChannelPushPreferencesResponse < GetStream::BaseModel # @!attribute disabled_until # @return [DateTime] attr_accessor :disabled_until + # @!attribute chat_preferences + # @return [ChatPreferencesResponse] + attr_accessor :chat_preferences # Initialize with attributes def initialize(attributes = {}) super(attributes) @chat_level = attributes[:chat_level] || attributes['chat_level'] || nil @disabled_until = attributes[:disabled_until] || attributes['disabled_until'] || nil + @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil end # Override field mappings for JSON serialization def self.json_field_mappings { chat_level: 'chat_level', - disabled_until: 'disabled_until' + disabled_until: 'disabled_until', + chat_preferences: 'chat_preferences' } end end diff --git a/lib/getstream_ruby/generated/models/channel_type_config.rb b/lib/getstream_ruby/generated/models/channel_type_config.rb index 3d5f5a3f..2f56a427 100644 --- a/lib/getstream_ruby/generated/models/channel_type_config.rb +++ b/lib/getstream_ruby/generated/models/channel_type_config.rb @@ -120,6 +120,9 @@ class ChannelTypeConfig < GetStream::BaseModel # @!attribute automod_thresholds # @return [Thresholds] attr_accessor :automod_thresholds + # @!attribute chat_preferences + # @return [ChatPreferences] + attr_accessor :chat_preferences # Initialize with attributes def initialize(attributes = {}) @@ -161,6 +164,7 @@ def initialize(attributes = {}) @allowed_flag_reasons = attributes[:allowed_flag_reasons] || attributes['allowed_flag_reasons'] || nil @blocklists = attributes[:blocklists] || attributes['blocklists'] || nil @automod_thresholds = attributes[:automod_thresholds] || attributes['automod_thresholds'] || nil + @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil end # Override field mappings for JSON serialization @@ -202,7 +206,8 @@ def self.json_field_mappings push_level: 'push_level', allowed_flag_reasons: 'allowed_flag_reasons', blocklists: 'blocklists', - automod_thresholds: 'automod_thresholds' + automod_thresholds: 'automod_thresholds', + chat_preferences: 'chat_preferences' } end end diff --git a/lib/getstream_ruby/generated/models/chat_preferences.rb b/lib/getstream_ruby/generated/models/chat_preferences.rb new file mode 100644 index 00000000..3d81bb85 --- /dev/null +++ b/lib/getstream_ruby/generated/models/chat_preferences.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 ChatPreferences < GetStream::BaseModel + + # Model attributes + # @!attribute channel_mentions + # @return [String] + attr_accessor :channel_mentions + # @!attribute default_preference + # @return [String] + attr_accessor :default_preference + # @!attribute direct_mentions + # @return [String] + attr_accessor :direct_mentions + # @!attribute distinct_channel_messages + # @return [String] + attr_accessor :distinct_channel_messages + # @!attribute group_mentions + # @return [String] + attr_accessor :group_mentions + # @!attribute here_mentions + # @return [String] + attr_accessor :here_mentions + # @!attribute role_mentions + # @return [String] + attr_accessor :role_mentions + # @!attribute thread_replies + # @return [String] + attr_accessor :thread_replies + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @channel_mentions = attributes[:channel_mentions] || attributes['channel_mentions'] || nil + @default_preference = attributes[:default_preference] || attributes['default_preference'] || nil + @direct_mentions = attributes[:direct_mentions] || attributes['direct_mentions'] || nil + @distinct_channel_messages = attributes[:distinct_channel_messages] || attributes['distinct_channel_messages'] || nil + @group_mentions = attributes[:group_mentions] || attributes['group_mentions'] || nil + @here_mentions = attributes[:here_mentions] || attributes['here_mentions'] || nil + @role_mentions = attributes[:role_mentions] || attributes['role_mentions'] || nil + @thread_replies = attributes[:thread_replies] || attributes['thread_replies'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + channel_mentions: 'channel_mentions', + default_preference: 'default_preference', + direct_mentions: 'direct_mentions', + distinct_channel_messages: 'distinct_channel_messages', + group_mentions: 'group_mentions', + here_mentions: 'here_mentions', + role_mentions: 'role_mentions', + thread_replies: 'thread_replies' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/chat_preferences_input.rb b/lib/getstream_ruby/generated/models/chat_preferences_input.rb new file mode 100644 index 00000000..28f75391 --- /dev/null +++ b/lib/getstream_ruby/generated/models/chat_preferences_input.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 ChatPreferencesInput < GetStream::BaseModel + + # Model attributes + # @!attribute channel_mentions + # @return [String] + attr_accessor :channel_mentions + # @!attribute default_preference + # @return [String] + attr_accessor :default_preference + # @!attribute direct_mentions + # @return [String] + attr_accessor :direct_mentions + # @!attribute group_mentions + # @return [String] + attr_accessor :group_mentions + # @!attribute here_mentions + # @return [String] + attr_accessor :here_mentions + # @!attribute role_mentions + # @return [String] + attr_accessor :role_mentions + # @!attribute thread_replies + # @return [String] + attr_accessor :thread_replies + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @channel_mentions = attributes[:channel_mentions] || attributes['channel_mentions'] || nil + @default_preference = attributes[:default_preference] || attributes['default_preference'] || nil + @direct_mentions = attributes[:direct_mentions] || attributes['direct_mentions'] || nil + @group_mentions = attributes[:group_mentions] || attributes['group_mentions'] || nil + @here_mentions = attributes[:here_mentions] || attributes['here_mentions'] || nil + @role_mentions = attributes[:role_mentions] || attributes['role_mentions'] || nil + @thread_replies = attributes[:thread_replies] || attributes['thread_replies'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + channel_mentions: 'channel_mentions', + default_preference: 'default_preference', + direct_mentions: 'direct_mentions', + group_mentions: 'group_mentions', + here_mentions: 'here_mentions', + role_mentions: 'role_mentions', + thread_replies: 'thread_replies' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/chat_preferences_response.rb b/lib/getstream_ruby/generated/models/chat_preferences_response.rb new file mode 100644 index 00000000..dfa97d0a --- /dev/null +++ b/lib/getstream_ruby/generated/models/chat_preferences_response.rb @@ -0,0 +1,61 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class ChatPreferencesResponse < GetStream::BaseModel + + # Model attributes + # @!attribute channel_mentions + # @return [String] + attr_accessor :channel_mentions + # @!attribute default_preference + # @return [String] + attr_accessor :default_preference + # @!attribute direct_mentions + # @return [String] + attr_accessor :direct_mentions + # @!attribute group_mentions + # @return [String] + attr_accessor :group_mentions + # @!attribute here_mentions + # @return [String] + attr_accessor :here_mentions + # @!attribute role_mentions + # @return [String] + attr_accessor :role_mentions + # @!attribute thread_replies + # @return [String] + attr_accessor :thread_replies + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @channel_mentions = attributes[:channel_mentions] || attributes['channel_mentions'] || nil + @default_preference = attributes[:default_preference] || attributes['default_preference'] || nil + @direct_mentions = attributes[:direct_mentions] || attributes['direct_mentions'] || nil + @group_mentions = attributes[:group_mentions] || attributes['group_mentions'] || nil + @here_mentions = attributes[:here_mentions] || attributes['here_mentions'] || nil + @role_mentions = attributes[:role_mentions] || attributes['role_mentions'] || nil + @thread_replies = attributes[:thread_replies] || attributes['thread_replies'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + channel_mentions: 'channel_mentions', + default_preference: 'default_preference', + direct_mentions: 'direct_mentions', + group_mentions: 'group_mentions', + here_mentions: 'here_mentions', + role_mentions: 'role_mentions', + thread_replies: 'thread_replies' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/check_response.rb b/lib/getstream_ruby/generated/models/check_response.rb index f6c06e60..ac58bced 100644 --- a/lib/getstream_ruby/generated/models/check_response.rb +++ b/lib/getstream_ruby/generated/models/check_response.rb @@ -24,6 +24,9 @@ class CheckResponse < GetStream::BaseModel # @!attribute item # @return [ReviewQueueItemResponse] attr_accessor :item + # @!attribute triggered_rule + # @return [TriggeredRuleResponse] + attr_accessor :triggered_rule # Initialize with attributes def initialize(attributes = {}) @@ -33,6 +36,7 @@ def initialize(attributes = {}) @status = attributes[:status] || attributes['status'] @task_id = attributes[:task_id] || attributes['task_id'] || nil @item = attributes[:item] || attributes['item'] || nil + @triggered_rule = attributes[:triggered_rule] || attributes['triggered_rule'] || nil end # Override field mappings for JSON serialization @@ -42,7 +46,8 @@ def self.json_field_mappings recommended_action: 'recommended_action', status: 'status', task_id: 'task_id', - item: 'item' + item: 'item', + triggered_rule: 'triggered_rule' } end end diff --git a/lib/getstream_ruby/generated/models/comment_response.rb b/lib/getstream_ruby/generated/models/comment_response.rb index 8a4a68db..0884951b 100644 --- a/lib/getstream_ruby/generated/models/comment_response.rb +++ b/lib/getstream_ruby/generated/models/comment_response.rb @@ -9,9 +9,6 @@ module Models class CommentResponse < GetStream::BaseModel # Model attributes - # @!attribute _object_id - # @return [String] ID of the object this comment is associated with - attr_accessor :_object_id # @!attribute confidence_score # @return [Float] Confidence score of the comment attr_accessor :confidence_score @@ -24,6 +21,9 @@ class CommentResponse < GetStream::BaseModel # @!attribute id # @return [String] Unique identifier for the comment attr_accessor :id + # @!attribute object_id + # @return [String] ID of the object this comment is associated with + attr_accessor :object_id # @!attribute object_type # @return [String] Type of the object this comment is associated with attr_accessor :object_type @@ -88,11 +88,11 @@ class CommentResponse < GetStream::BaseModel # Initialize with attributes def initialize(attributes = {}) super(attributes) - @_object_id = attributes[:_object_id] || attributes['object_id'] @confidence_score = attributes[:confidence_score] || attributes['confidence_score'] @created_at = attributes[:created_at] || attributes['created_at'] @downvote_count = attributes[:downvote_count] || attributes['downvote_count'] @id = attributes[:id] || attributes['id'] + @object_id = attributes[:object_id] || attributes['object_id'] @object_type = attributes[:object_type] || attributes['object_type'] @reaction_count = attributes[:reaction_count] || attributes['reaction_count'] @reply_count = attributes[:reply_count] || attributes['reply_count'] @@ -118,11 +118,11 @@ def initialize(attributes = {}) # Override field mappings for JSON serialization def self.json_field_mappings { - _object_id: 'object_id', confidence_score: 'confidence_score', created_at: 'created_at', downvote_count: 'downvote_count', id: 'id', + object_id: 'object_id', object_type: 'object_type', reaction_count: 'reaction_count', reply_count: 'reply_count', diff --git a/lib/getstream_ruby/generated/models/config_overrides_request.rb b/lib/getstream_ruby/generated/models/config_overrides_request.rb index 5952ec3a..24cb5603 100644 --- a/lib/getstream_ruby/generated/models/config_overrides_request.rb +++ b/lib/getstream_ruby/generated/models/config_overrides_request.rb @@ -21,6 +21,9 @@ class ConfigOverridesRequest < GetStream::BaseModel # @!attribute max_message_length # @return [Integer] Maximum message length attr_accessor :max_message_length + # @!attribute push_level + # @return [String] + attr_accessor :push_level # @!attribute quotes # @return [Boolean] Enable/disable quotes attr_accessor :quotes @@ -48,6 +51,9 @@ class ConfigOverridesRequest < GetStream::BaseModel # @!attribute commands # @return [Array] List of available commands attr_accessor :commands + # @!attribute chat_preferences + # @return [ChatPreferences] + attr_accessor :chat_preferences # @!attribute grants # @return [Hash>] Permission grants modifiers attr_accessor :grants @@ -59,6 +65,7 @@ def initialize(attributes = {}) @blocklist_behavior = attributes[:blocklist_behavior] || attributes['blocklist_behavior'] || nil @count_messages = attributes[:count_messages] || attributes['count_messages'] || nil @max_message_length = attributes[:max_message_length] || attributes['max_message_length'] || nil + @push_level = attributes[:push_level] || attributes['push_level'] || nil @quotes = attributes[:quotes] || attributes['quotes'] || nil @reactions = attributes[:reactions] || attributes['reactions'] || nil @replies = attributes[:replies] || attributes['replies'] || nil @@ -68,6 +75,7 @@ def initialize(attributes = {}) @url_enrichment = attributes[:url_enrichment] || attributes['url_enrichment'] || nil @user_message_reminders = attributes[:user_message_reminders] || attributes['user_message_reminders'] || nil @commands = attributes[:commands] || attributes['commands'] || nil + @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil @grants = attributes[:grants] || attributes['grants'] || nil end @@ -78,6 +86,7 @@ def self.json_field_mappings blocklist_behavior: 'blocklist_behavior', count_messages: 'count_messages', max_message_length: 'max_message_length', + push_level: 'push_level', quotes: 'quotes', reactions: 'reactions', replies: 'replies', @@ -87,6 +96,7 @@ def self.json_field_mappings url_enrichment: 'url_enrichment', user_message_reminders: 'user_message_reminders', commands: 'commands', + chat_preferences: 'chat_preferences', grants: 'grants' } end diff --git a/lib/getstream_ruby/generated/models/config_response.rb b/lib/getstream_ruby/generated/models/config_response.rb index c8c16681..bc011621 100644 --- a/lib/getstream_ruby/generated/models/config_response.rb +++ b/lib/getstream_ruby/generated/models/config_response.rb @@ -27,6 +27,9 @@ class ConfigResponse < GetStream::BaseModel # @!attribute supported_video_call_harm_types # @return [Array] attr_accessor :supported_video_call_harm_types + # @!attribute ai_image_label_definitions + # @return [Array] Configurable image moderation label definitions for dashboard rendering + attr_accessor :ai_image_label_definitions # @!attribute ai_image_config # @return [AIImageConfig] attr_accessor :ai_image_config @@ -70,6 +73,7 @@ def initialize(attributes = {}) @team = attributes[:team] || attributes['team'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @supported_video_call_harm_types = attributes[:supported_video_call_harm_types] || attributes['supported_video_call_harm_types'] + @ai_image_label_definitions = attributes[:ai_image_label_definitions] || attributes['ai_image_label_definitions'] || nil @ai_image_config = attributes[:ai_image_config] || attributes['ai_image_config'] || nil @ai_image_subclassifications = attributes[:ai_image_subclassifications] || attributes['ai_image_subclassifications'] || nil @ai_text_config = attributes[:ai_text_config] || attributes['ai_text_config'] || nil @@ -92,6 +96,7 @@ def self.json_field_mappings team: 'team', updated_at: 'updated_at', supported_video_call_harm_types: 'supported_video_call_harm_types', + ai_image_label_definitions: 'ai_image_label_definitions', ai_image_config: 'ai_image_config', ai_image_subclassifications: 'ai_image_subclassifications', ai_text_config: 'ai_text_config', diff --git a/lib/getstream_ruby/generated/models/create_channel_type_request.rb b/lib/getstream_ruby/generated/models/create_channel_type_request.rb index 7303ae16..2f34a16f 100644 --- a/lib/getstream_ruby/generated/models/create_channel_type_request.rb +++ b/lib/getstream_ruby/generated/models/create_channel_type_request.rb @@ -102,6 +102,9 @@ class CreateChannelTypeRequest < GetStream::BaseModel # @!attribute permissions # @return [Array] List of permissions for the channel type attr_accessor :permissions + # @!attribute chat_preferences + # @return [ChatPreferences] + attr_accessor :chat_preferences # @!attribute grants # @return [Hash>] List of grants for the channel type attr_accessor :grants @@ -140,6 +143,7 @@ def initialize(attributes = {}) @blocklists = attributes[:blocklists] || attributes['blocklists'] || nil @commands = attributes[:commands] || attributes['commands'] || nil @permissions = attributes[:permissions] || attributes['permissions'] || nil + @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil @grants = attributes[:grants] || attributes['grants'] || nil end @@ -177,6 +181,7 @@ def self.json_field_mappings blocklists: 'blocklists', commands: 'commands', permissions: 'permissions', + chat_preferences: 'chat_preferences', grants: 'grants' } end 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 9f497432..e9314f4f 100644 --- a/lib/getstream_ruby/generated/models/create_channel_type_response.rb +++ b/lib/getstream_ruby/generated/models/create_channel_type_response.rb @@ -123,6 +123,9 @@ class CreateChannelTypeResponse < GetStream::BaseModel # @!attribute automod_thresholds # @return [Thresholds] attr_accessor :automod_thresholds + # @!attribute chat_preferences + # @return [ChatPreferences] + attr_accessor :chat_preferences # Initialize with attributes def initialize(attributes = {}) @@ -165,6 +168,7 @@ def initialize(attributes = {}) @allowed_flag_reasons = attributes[:allowed_flag_reasons] || attributes['allowed_flag_reasons'] || nil @blocklists = attributes[:blocklists] || attributes['blocklists'] || nil @automod_thresholds = attributes[:automod_thresholds] || attributes['automod_thresholds'] || nil + @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil end # Override field mappings for JSON serialization @@ -207,7 +211,8 @@ def self.json_field_mappings push_level: 'push_level', allowed_flag_reasons: 'allowed_flag_reasons', blocklists: 'blocklists', - automod_thresholds: 'automod_thresholds' + automod_thresholds: 'automod_thresholds', + chat_preferences: 'chat_preferences' } end end diff --git a/lib/getstream_ruby/generated/models/create_sip_trunk_request.rb b/lib/getstream_ruby/generated/models/create_sip_trunk_request.rb index c6d664e5..372a2b33 100644 --- a/lib/getstream_ruby/generated/models/create_sip_trunk_request.rb +++ b/lib/getstream_ruby/generated/models/create_sip_trunk_request.rb @@ -15,19 +15,29 @@ class CreateSIPTrunkRequest < GetStream::BaseModel # @!attribute numbers # @return [Array] Phone numbers associated with this SIP trunk attr_accessor :numbers + # @!attribute password + # @return [String] Optional password for SIP trunk authentication + attr_accessor :password + # @!attribute allowed_ips + # @return [Array] Optional list of allowed IPv4/IPv6 addresses or CIDR blocks + attr_accessor :allowed_ips # Initialize with attributes def initialize(attributes = {}) super(attributes) @name = attributes[:name] || attributes['name'] @numbers = attributes[:numbers] || attributes['numbers'] + @password = attributes[:password] || attributes['password'] || nil + @allowed_ips = attributes[:allowed_ips] || attributes['allowed_ips'] || nil end # Override field mappings for JSON serialization def self.json_field_mappings { name: 'name', - numbers: 'numbers' + numbers: 'numbers', + password: 'password', + allowed_ips: 'allowed_ips' } end end diff --git a/lib/getstream_ruby/generated/models/delete_retention_policy_request.rb b/lib/getstream_ruby/generated/models/delete_retention_policy_request.rb new file mode 100644 index 00000000..89fe17e5 --- /dev/null +++ b/lib/getstream_ruby/generated/models/delete_retention_policy_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 DeleteRetentionPolicyRequest < GetStream::BaseModel + + # Model attributes + # @!attribute policy + # @return [String] + attr_accessor :policy + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @policy = attributes[:policy] || attributes['policy'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + policy: 'policy' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/delete_retention_policy_response.rb b/lib/getstream_ruby/generated/models/delete_retention_policy_response.rb new file mode 100644 index 00000000..636b181b --- /dev/null +++ b/lib/getstream_ruby/generated/models/delete_retention_policy_response.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # Basic response information + class DeleteRetentionPolicyResponse < GetStream::BaseModel + + # Model attributes + # @!attribute duration + # @return [String] Duration of the request in milliseconds + attr_accessor :duration + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @duration = attributes[:duration] || attributes['duration'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + duration: 'duration' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/filter_config_response.rb b/lib/getstream_ruby/generated/models/filter_config_response.rb index bcbf70f1..ea728402 100644 --- a/lib/getstream_ruby/generated/models/filter_config_response.rb +++ b/lib/getstream_ruby/generated/models/filter_config_response.rb @@ -15,19 +15,24 @@ class FilterConfigResponse < GetStream::BaseModel # @!attribute ai_text_labels # @return [Array] attr_accessor :ai_text_labels + # @!attribute config_keys + # @return [Array] + attr_accessor :config_keys # Initialize with attributes def initialize(attributes = {}) super(attributes) @llm_labels = attributes[:llm_labels] || attributes['llm_labels'] @ai_text_labels = attributes[:ai_text_labels] || attributes['ai_text_labels'] || nil + @config_keys = attributes[:config_keys] || attributes['config_keys'] || nil end # Override field mappings for JSON serialization def self.json_field_mappings { llm_labels: 'llm_labels', - ai_text_labels: 'ai_text_labels' + ai_text_labels: 'ai_text_labels', + config_keys: 'config_keys' } end end 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 6295f58b..09cdcf89 100644 --- a/lib/getstream_ruby/generated/models/get_channel_type_response.rb +++ b/lib/getstream_ruby/generated/models/get_channel_type_response.rb @@ -123,6 +123,9 @@ class GetChannelTypeResponse < GetStream::BaseModel # @!attribute automod_thresholds # @return [Thresholds] attr_accessor :automod_thresholds + # @!attribute chat_preferences + # @return [ChatPreferences] + attr_accessor :chat_preferences # Initialize with attributes def initialize(attributes = {}) @@ -165,6 +168,7 @@ def initialize(attributes = {}) @allowed_flag_reasons = attributes[:allowed_flag_reasons] || attributes['allowed_flag_reasons'] || nil @blocklists = attributes[:blocklists] || attributes['blocklists'] || nil @automod_thresholds = attributes[:automod_thresholds] || attributes['automod_thresholds'] || nil + @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil end # Override field mappings for JSON serialization @@ -207,7 +211,8 @@ def self.json_field_mappings push_level: 'push_level', allowed_flag_reasons: 'allowed_flag_reasons', blocklists: 'blocklists', - automod_thresholds: 'automod_thresholds' + automod_thresholds: 'automod_thresholds', + chat_preferences: 'chat_preferences' } end end diff --git a/lib/getstream_ruby/generated/models/get_retention_policy_response.rb b/lib/getstream_ruby/generated/models/get_retention_policy_response.rb new file mode 100644 index 00000000..0e5e8005 --- /dev/null +++ b/lib/getstream_ruby/generated/models/get_retention_policy_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 GetRetentionPolicyResponse < GetStream::BaseModel + + # Model attributes + # @!attribute duration + # @return [String] Duration of the request in milliseconds + attr_accessor :duration + # @!attribute policies + # @return [Array] + attr_accessor :policies + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @duration = attributes[:duration] || attributes['duration'] + @policies = attributes[:policies] || attributes['policies'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + duration: 'duration', + policies: 'policies' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/get_retention_policy_runs_response.rb b/lib/getstream_ruby/generated/models/get_retention_policy_runs_response.rb new file mode 100644 index 00000000..162d00b3 --- /dev/null +++ b/lib/getstream_ruby/generated/models/get_retention_policy_runs_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 GetRetentionPolicyRunsResponse < GetStream::BaseModel + + # Model attributes + # @!attribute duration + # @return [String] Duration of the request in milliseconds + attr_accessor :duration + # @!attribute runs + # @return [Array] + attr_accessor :runs + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @duration = attributes[:duration] || attributes['duration'] + @runs = attributes[:runs] || attributes['runs'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + duration: 'duration', + runs: 'runs' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/moderation_flagged_event.rb b/lib/getstream_ruby/generated/models/moderation_flagged_event.rb index bf85f43c..c7016491 100644 --- a/lib/getstream_ruby/generated/models/moderation_flagged_event.rb +++ b/lib/getstream_ruby/generated/models/moderation_flagged_event.rb @@ -9,15 +9,15 @@ module Models class ModerationFlaggedEvent < GetStream::BaseModel # Model attributes - # @!attribute _object_id - # @return [String] The ID of the flagged content - attr_accessor :_object_id # @!attribute content_type # @return [String] The type of content that was flagged attr_accessor :content_type # @!attribute created_at # @return [DateTime] attr_accessor :created_at + # @!attribute object_id + # @return [String] The ID of the flagged content + attr_accessor :object_id # @!attribute custom # @return [Object] attr_accessor :custom @@ -31,9 +31,9 @@ class ModerationFlaggedEvent < GetStream::BaseModel # Initialize with attributes def initialize(attributes = {}) super(attributes) - @_object_id = attributes[:_object_id] || attributes['object_id'] @content_type = attributes[:content_type] || attributes['content_type'] @created_at = attributes[:created_at] || attributes['created_at'] + @object_id = attributes[:object_id] || attributes['object_id'] @custom = attributes[:custom] || attributes['custom'] @type = attributes[:type] || attributes['type'] || "moderation.flagged" @received_at = attributes[:received_at] || attributes['received_at'] || nil @@ -42,9 +42,9 @@ def initialize(attributes = {}) # Override field mappings for JSON serialization def self.json_field_mappings { - _object_id: 'object_id', content_type: 'content_type', created_at: 'created_at', + object_id: 'object_id', custom: 'custom', type: 'type', received_at: 'received_at' diff --git a/lib/getstream_ruby/generated/models/policy_config.rb b/lib/getstream_ruby/generated/models/policy_config.rb new file mode 100644 index 00000000..b850201c --- /dev/null +++ b/lib/getstream_ruby/generated/models/policy_config.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 PolicyConfig < GetStream::BaseModel + + # Model attributes + # @!attribute max_age_hours + # @return [Integer] + attr_accessor :max_age_hours + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @max_age_hours = attributes[:max_age_hours] || attributes['max_age_hours'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + max_age_hours: 'max_age_hours' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/push_preference_input.rb b/lib/getstream_ruby/generated/models/push_preference_input.rb index 8a5a980d..7ed665a9 100644 --- a/lib/getstream_ruby/generated/models/push_preference_input.rb +++ b/lib/getstream_ruby/generated/models/push_preference_input.rb @@ -30,6 +30,9 @@ class PushPreferenceInput < GetStream::BaseModel # @!attribute user_id # @return [String] The user id for which to set the push preferences. Required when using server side auths, defaults to current user with client side auth. attr_accessor :user_id + # @!attribute chat_preferences + # @return [ChatPreferencesInput] + attr_accessor :chat_preferences # @!attribute feeds_preferences # @return [FeedsPreferences] attr_accessor :feeds_preferences @@ -44,6 +47,7 @@ def initialize(attributes = {}) @feeds_level = attributes[:feeds_level] || attributes['feeds_level'] || nil @remove_disable = attributes[:remove_disable] || attributes['remove_disable'] || nil @user_id = attributes[:user_id] || attributes['user_id'] || nil + @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil @feeds_preferences = attributes[:feeds_preferences] || attributes['feeds_preferences'] || nil end @@ -57,6 +61,7 @@ def self.json_field_mappings feeds_level: 'feeds_level', remove_disable: 'remove_disable', user_id: 'user_id', + chat_preferences: 'chat_preferences', feeds_preferences: 'feeds_preferences' } end diff --git a/lib/getstream_ruby/generated/models/push_preferences_response.rb b/lib/getstream_ruby/generated/models/push_preferences_response.rb index 95451370..8170e459 100644 --- a/lib/getstream_ruby/generated/models/push_preferences_response.rb +++ b/lib/getstream_ruby/generated/models/push_preferences_response.rb @@ -21,6 +21,9 @@ class PushPreferencesResponse < GetStream::BaseModel # @!attribute feeds_level # @return [String] attr_accessor :feeds_level + # @!attribute chat_preferences + # @return [ChatPreferencesResponse] + attr_accessor :chat_preferences # @!attribute feeds_preferences # @return [FeedsPreferencesResponse] attr_accessor :feeds_preferences @@ -32,6 +35,7 @@ def initialize(attributes = {}) @chat_level = attributes[:chat_level] || attributes['chat_level'] || nil @disabled_until = attributes[:disabled_until] || attributes['disabled_until'] || nil @feeds_level = attributes[:feeds_level] || attributes['feeds_level'] || nil + @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil @feeds_preferences = attributes[:feeds_preferences] || attributes['feeds_preferences'] || nil end @@ -42,6 +46,7 @@ def self.json_field_mappings chat_level: 'chat_level', disabled_until: 'disabled_until', feeds_level: 'feeds_level', + chat_preferences: 'chat_preferences', feeds_preferences: 'feeds_preferences' } end diff --git a/lib/getstream_ruby/generated/models/query_moderation_rules_response.rb b/lib/getstream_ruby/generated/models/query_moderation_rules_response.rb index e75607ea..fe8e2493 100644 --- a/lib/getstream_ruby/generated/models/query_moderation_rules_response.rb +++ b/lib/getstream_ruby/generated/models/query_moderation_rules_response.rb @@ -12,6 +12,9 @@ class QueryModerationRulesResponse < GetStream::BaseModel # @!attribute duration # @return [String] attr_accessor :duration + # @!attribute ai_image_label_definitions + # @return [Array] AI image label definitions with metadata for dashboard rendering + attr_accessor :ai_image_label_definitions # @!attribute closed_caption_labels # @return [Array] Available harm labels for closed caption rules attr_accessor :closed_caption_labels @@ -21,6 +24,9 @@ class QueryModerationRulesResponse < GetStream::BaseModel # @!attribute rules # @return [Array] List of moderation rules attr_accessor :rules + # @!attribute ai_image_subclassifications + # @return [Hash>] Stream L1 to leaf-level label name mapping for AI image rules + attr_accessor :ai_image_subclassifications # @!attribute default_llm_labels # @return [Hash] Default LLM label descriptions attr_accessor :default_llm_labels @@ -38,9 +44,11 @@ class QueryModerationRulesResponse < GetStream::BaseModel def initialize(attributes = {}) super(attributes) @duration = attributes[:duration] || attributes['duration'] + @ai_image_label_definitions = attributes[:ai_image_label_definitions] || attributes['ai_image_label_definitions'] @closed_caption_labels = attributes[:closed_caption_labels] || attributes['closed_caption_labels'] @keyframe_labels = attributes[:keyframe_labels] || attributes['keyframe_labels'] @rules = attributes[:rules] || attributes['rules'] + @ai_image_subclassifications = attributes[:ai_image_subclassifications] || attributes['ai_image_subclassifications'] @default_llm_labels = attributes[:default_llm_labels] || attributes['default_llm_labels'] @keyframe_label_classifications = attributes[:keyframe_label_classifications] || attributes['keyframe_label_classifications'] @next = attributes[:next] || attributes['next'] || nil @@ -51,9 +59,11 @@ def initialize(attributes = {}) def self.json_field_mappings { duration: 'duration', + ai_image_label_definitions: 'ai_image_label_definitions', closed_caption_labels: 'closed_caption_labels', keyframe_labels: 'keyframe_labels', rules: 'rules', + ai_image_subclassifications: 'ai_image_subclassifications', default_llm_labels: 'default_llm_labels', keyframe_label_classifications: 'keyframe_label_classifications', next: 'next', diff --git a/lib/getstream_ruby/generated/models/resolve_sip_auth_request.rb b/lib/getstream_ruby/generated/models/resolve_sip_auth_request.rb new file mode 100644 index 00000000..e6341707 --- /dev/null +++ b/lib/getstream_ruby/generated/models/resolve_sip_auth_request.rb @@ -0,0 +1,46 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # Request to determine SIP trunk authentication requirements + class ResolveSipAuthRequest < GetStream::BaseModel + + # Model attributes + # @!attribute sip_caller_number + # @return [String] SIP caller number + attr_accessor :sip_caller_number + # @!attribute sip_trunk_number + # @return [String] SIP trunk number to look up + attr_accessor :sip_trunk_number + # @!attribute from_host + # @return [String] Host from the SIP From header + attr_accessor :from_host + # @!attribute source_ip + # @return [String] Transport-layer source IP address of the SIP request + attr_accessor :source_ip + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @sip_caller_number = attributes[:sip_caller_number] || attributes['sip_caller_number'] + @sip_trunk_number = attributes[:sip_trunk_number] || attributes['sip_trunk_number'] + @from_host = attributes[:from_host] || attributes['from_host'] || nil + @source_ip = attributes[:source_ip] || attributes['source_ip'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + sip_caller_number: 'sip_caller_number', + sip_trunk_number: 'sip_trunk_number', + from_host: 'from_host', + source_ip: 'source_ip' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/resolve_sip_auth_response.rb b/lib/getstream_ruby/generated/models/resolve_sip_auth_response.rb new file mode 100644 index 00000000..9a4fee5c --- /dev/null +++ b/lib/getstream_ruby/generated/models/resolve_sip_auth_response.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # Response containing the pre-authentication decision for a SIP trunk + class ResolveSipAuthResponse < GetStream::BaseModel + + # Model attributes + # @!attribute auth_result + # @return [String] Authentication result: password, accept, or no_trunk_found + attr_accessor :auth_result + # @!attribute duration + # @return [String] + attr_accessor :duration + # @!attribute password + # @return [String] Password for digest authentication (when auth_result is password) + attr_accessor :password + # @!attribute trunk_id + # @return [String] ID of the matched SIP trunk + attr_accessor :trunk_id + # @!attribute username + # @return [String] Username for digest authentication (when auth_result is password) + attr_accessor :username + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @auth_result = attributes[:auth_result] || attributes['auth_result'] + @duration = attributes[:duration] || attributes['duration'] + @password = attributes[:password] || attributes['password'] || nil + @trunk_id = attributes[:trunk_id] || attributes['trunk_id'] || nil + @username = attributes[:username] || attributes['username'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + auth_result: 'auth_result', + duration: 'duration', + password: 'password', + trunk_id: 'trunk_id', + username: 'username' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/resolve_sip_inbound_request.rb b/lib/getstream_ruby/generated/models/resolve_sip_inbound_request.rb index abfec91f..c4f36e23 100644 --- a/lib/getstream_ruby/generated/models/resolve_sip_inbound_request.rb +++ b/lib/getstream_ruby/generated/models/resolve_sip_inbound_request.rb @@ -15,12 +15,15 @@ class ResolveSipInboundRequest < GetStream::BaseModel # @!attribute sip_trunk_number # @return [String] SIP trunk number to resolve attr_accessor :sip_trunk_number - # @!attribute challenge - # @return [SIPChallengeRequest] - attr_accessor :challenge # @!attribute routing_number # @return [String] Optional routing number for routing number-based call routing (10 digits) attr_accessor :routing_number + # @!attribute trunk_id + # @return [String] Optional pre-authenticated trunk ID (from PreAuth no-auth flow) + attr_accessor :trunk_id + # @!attribute challenge + # @return [SIPChallengeRequest] + attr_accessor :challenge # @!attribute sip_headers # @return [Hash] Optional SIP headers as key-value pairs attr_accessor :sip_headers @@ -30,8 +33,9 @@ def initialize(attributes = {}) super(attributes) @sip_caller_number = attributes[:sip_caller_number] || attributes['sip_caller_number'] @sip_trunk_number = attributes[:sip_trunk_number] || attributes['sip_trunk_number'] - @challenge = attributes[:challenge] || attributes['challenge'] @routing_number = attributes[:routing_number] || attributes['routing_number'] || nil + @trunk_id = attributes[:trunk_id] || attributes['trunk_id'] || nil + @challenge = attributes[:challenge] || attributes['challenge'] || nil @sip_headers = attributes[:sip_headers] || attributes['sip_headers'] || nil end @@ -40,8 +44,9 @@ def self.json_field_mappings { sip_caller_number: 'sip_caller_number', sip_trunk_number: 'sip_trunk_number', - challenge: 'challenge', routing_number: 'routing_number', + trunk_id: 'trunk_id', + challenge: 'challenge', sip_headers: 'sip_headers' } end diff --git a/lib/getstream_ruby/generated/models/retention_cleanup_run.rb b/lib/getstream_ruby/generated/models/retention_cleanup_run.rb new file mode 100644 index 00000000..afb8e39c --- /dev/null +++ b/lib/getstream_ruby/generated/models/retention_cleanup_run.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 RetentionCleanupRun < GetStream::BaseModel + + # Model attributes + # @!attribute app_pk + # @return [Integer] + attr_accessor :app_pk + # @!attribute date + # @return [DateTime] + attr_accessor :date + # @!attribute policy + # @return [String] + attr_accessor :policy + # @!attribute started_at + # @return [DateTime] + attr_accessor :started_at + # @!attribute status + # @return [String] + attr_accessor :status + # @!attribute stats + # @return [RunStats] + attr_accessor :stats + # @!attribute cursor_id + # @return [String] + attr_accessor :cursor_id + # @!attribute cursor_ts + # @return [DateTime] + attr_accessor :cursor_ts + # @!attribute error + # @return [String] + attr_accessor :error + # @!attribute finished_at + # @return [DateTime] + attr_accessor :finished_at + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @app_pk = attributes[:app_pk] || attributes['app_pk'] + @date = attributes[:date] || attributes['date'] + @policy = attributes[:policy] || attributes['policy'] + @started_at = attributes[:started_at] || attributes['started_at'] + @status = attributes[:status] || attributes['status'] + @stats = attributes[:stats] || attributes['stats'] + @cursor_id = attributes[:cursor_id] || attributes['cursor_id'] || nil + @cursor_ts = attributes[:cursor_ts] || attributes['cursor_ts'] || nil + @error = attributes[:error] || attributes['error'] || nil + @finished_at = attributes[:finished_at] || attributes['finished_at'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + app_pk: 'app_pk', + date: 'date', + policy: 'policy', + started_at: 'started_at', + status: 'status', + stats: 'stats', + cursor_id: 'cursor_id', + cursor_ts: 'cursor_ts', + error: 'error', + finished_at: 'finished_at' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/retention_policy.rb b/lib/getstream_ruby/generated/models/retention_policy.rb new file mode 100644 index 00000000..3bdb57d0 --- /dev/null +++ b/lib/getstream_ruby/generated/models/retention_policy.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 RetentionPolicy < GetStream::BaseModel + + # Model attributes + # @!attribute app_pk + # @return [Integer] + attr_accessor :app_pk + # @!attribute enabled_at + # @return [DateTime] + attr_accessor :enabled_at + # @!attribute policy + # @return [String] + attr_accessor :policy + # @!attribute config + # @return [PolicyConfig] + attr_accessor :config + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @app_pk = attributes[:app_pk] || attributes['app_pk'] + @enabled_at = attributes[:enabled_at] || attributes['enabled_at'] + @policy = attributes[:policy] || attributes['policy'] + @config = attributes[:config] || attributes['config'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + app_pk: 'app_pk', + enabled_at: 'enabled_at', + policy: 'policy', + config: 'config' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/rule_builder_action.rb b/lib/getstream_ruby/generated/models/rule_builder_action.rb index d698975f..489c0e41 100644 --- a/lib/getstream_ruby/generated/models/rule_builder_action.rb +++ b/lib/getstream_ruby/generated/models/rule_builder_action.rb @@ -9,6 +9,9 @@ module Models class RuleBuilderAction < GetStream::BaseModel # Model attributes + # @!attribute skip_inbox + # @return [Boolean] + attr_accessor :skip_inbox # @!attribute type # @return [String] attr_accessor :type @@ -25,6 +28,7 @@ class RuleBuilderAction < GetStream::BaseModel # Initialize with attributes def initialize(attributes = {}) super(attributes) + @skip_inbox = attributes[:skip_inbox] || attributes['skip_inbox'] || nil @type = attributes[:type] || attributes['type'] || nil @ban_options = attributes[:ban_options] || attributes['ban_options'] || nil @call_options = attributes[:call_options] || attributes['call_options'] || nil @@ -34,6 +38,7 @@ def initialize(attributes = {}) # Override field mappings for JSON serialization def self.json_field_mappings { + skip_inbox: 'skip_inbox', type: 'type', ban_options: 'ban_options', call_options: 'call_options', diff --git a/lib/getstream_ruby/generated/models/run_stats.rb b/lib/getstream_ruby/generated/models/run_stats.rb new file mode 100644 index 00000000..a5fda1fa --- /dev/null +++ b/lib/getstream_ruby/generated/models/run_stats.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 RunStats < GetStream::BaseModel + + # Model attributes + # @!attribute channels_deleted + # @return [Integer] + attr_accessor :channels_deleted + # @!attribute messages_deleted + # @return [Integer] + attr_accessor :messages_deleted + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @channels_deleted = attributes[:channels_deleted] || attributes['channels_deleted'] || nil + @messages_deleted = attributes[:messages_deleted] || attributes['messages_deleted'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + channels_deleted: 'channels_deleted', + messages_deleted: 'messages_deleted' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/set_retention_policy_request.rb b/lib/getstream_ruby/generated/models/set_retention_policy_request.rb new file mode 100644 index 00000000..c6abcc3b --- /dev/null +++ b/lib/getstream_ruby/generated/models/set_retention_policy_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 SetRetentionPolicyRequest < GetStream::BaseModel + + # Model attributes + # @!attribute max_age_hours + # @return [Integer] + attr_accessor :max_age_hours + # @!attribute policy + # @return [String] + attr_accessor :policy + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @max_age_hours = attributes[:max_age_hours] || attributes['max_age_hours'] || nil + @policy = attributes[:policy] || attributes['policy'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + max_age_hours: 'max_age_hours', + policy: 'policy' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/set_retention_policy_response.rb b/lib/getstream_ruby/generated/models/set_retention_policy_response.rb new file mode 100644 index 00000000..41a9a4e1 --- /dev/null +++ b/lib/getstream_ruby/generated/models/set_retention_policy_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 SetRetentionPolicyResponse < GetStream::BaseModel + + # Model attributes + # @!attribute duration + # @return [String] Duration of the request in milliseconds + attr_accessor :duration + # @!attribute policy + # @return [RetentionPolicy] + attr_accessor :policy + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @duration = attributes[:duration] || attributes['duration'] + @policy = attributes[:policy] || attributes['policy'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + duration: 'duration', + policy: 'policy' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/sip_trunk_response.rb b/lib/getstream_ruby/generated/models/sip_trunk_response.rb index 79804a9f..f39e011c 100644 --- a/lib/getstream_ruby/generated/models/sip_trunk_response.rb +++ b/lib/getstream_ruby/generated/models/sip_trunk_response.rb @@ -30,6 +30,9 @@ class SIPTrunkResponse < GetStream::BaseModel # @!attribute username # @return [String] Username for SIP trunk authentication attr_accessor :username + # @!attribute allowed_ips + # @return [Array] Allowed IPv4/IPv6 addresses or CIDR blocks + attr_accessor :allowed_ips # @!attribute numbers # @return [Array] Phone numbers associated with this SIP trunk attr_accessor :numbers @@ -44,6 +47,7 @@ def initialize(attributes = {}) @updated_at = attributes[:updated_at] || attributes['updated_at'] @uri = attributes[:uri] || attributes['uri'] @username = attributes[:username] || attributes['username'] + @allowed_ips = attributes[:allowed_ips] || attributes['allowed_ips'] @numbers = attributes[:numbers] || attributes['numbers'] end @@ -57,6 +61,7 @@ def self.json_field_mappings updated_at: 'updated_at', uri: 'uri', username: 'username', + allowed_ips: 'allowed_ips', numbers: 'numbers' } end diff --git a/lib/getstream_ruby/generated/models/threaded_comment_response.rb b/lib/getstream_ruby/generated/models/threaded_comment_response.rb index ca97a02f..29125c24 100644 --- a/lib/getstream_ruby/generated/models/threaded_comment_response.rb +++ b/lib/getstream_ruby/generated/models/threaded_comment_response.rb @@ -9,9 +9,6 @@ module Models class ThreadedCommentResponse < GetStream::BaseModel # Model attributes - # @!attribute _object_id - # @return [String] - attr_accessor :_object_id # @!attribute confidence_score # @return [Float] attr_accessor :confidence_score @@ -24,6 +21,9 @@ class ThreadedCommentResponse < GetStream::BaseModel # @!attribute id # @return [String] attr_accessor :id + # @!attribute object_id + # @return [String] + attr_accessor :object_id # @!attribute object_type # @return [String] attr_accessor :object_type @@ -94,11 +94,11 @@ class ThreadedCommentResponse < GetStream::BaseModel # Initialize with attributes def initialize(attributes = {}) super(attributes) - @_object_id = attributes[:_object_id] || attributes['object_id'] @confidence_score = attributes[:confidence_score] || attributes['confidence_score'] @created_at = attributes[:created_at] || attributes['created_at'] @downvote_count = attributes[:downvote_count] || attributes['downvote_count'] @id = attributes[:id] || attributes['id'] + @object_id = attributes[:object_id] || attributes['object_id'] @object_type = attributes[:object_type] || attributes['object_type'] @reaction_count = attributes[:reaction_count] || attributes['reaction_count'] @reply_count = attributes[:reply_count] || attributes['reply_count'] @@ -126,11 +126,11 @@ def initialize(attributes = {}) # Override field mappings for JSON serialization def self.json_field_mappings { - _object_id: 'object_id', confidence_score: 'confidence_score', created_at: 'created_at', downvote_count: 'downvote_count', id: 'id', + object_id: 'object_id', object_type: 'object_type', reaction_count: 'reaction_count', reply_count: 'reply_count', diff --git a/lib/getstream_ruby/generated/models/triggered_rule_response.rb b/lib/getstream_ruby/generated/models/triggered_rule_response.rb new file mode 100644 index 00000000..5c795526 --- /dev/null +++ b/lib/getstream_ruby/generated/models/triggered_rule_response.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class TriggeredRuleResponse < GetStream::BaseModel + + # Model attributes + # @!attribute rule_id + # @return [String] ID of the moderation rule that triggered + attr_accessor :rule_id + # @!attribute actions + # @return [Array] Array of action types resolved from the rule's action sequence (e.g. mute_video, kick_user, end_call, warning, blur) + attr_accessor :actions + # @!attribute rule_name + # @return [String] Name of the moderation rule that triggered + attr_accessor :rule_name + # @!attribute violation_number + # @return [Integer] The violation count for action sequence rules (1-based) + attr_accessor :violation_number + # @!attribute call_options + # @return [CallActionOptions] + attr_accessor :call_options + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @rule_id = attributes[:rule_id] || attributes['rule_id'] + @actions = attributes[:actions] || attributes['actions'] + @rule_name = attributes[:rule_name] || attributes['rule_name'] || nil + @violation_number = attributes[:violation_number] || attributes['violation_number'] || nil + @call_options = attributes[:call_options] || attributes['call_options'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + rule_id: 'rule_id', + actions: 'actions', + rule_name: 'rule_name', + violation_number: 'violation_number', + call_options: 'call_options' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/update_app_request.rb b/lib/getstream_ruby/generated/models/update_app_request.rb index 91d7b245..20b08542 100644 --- a/lib/getstream_ruby/generated/models/update_app_request.rb +++ b/lib/getstream_ruby/generated/models/update_app_request.rb @@ -123,6 +123,9 @@ class UpdateAppRequest < GetStream::BaseModel # @!attribute webhook_events # @return [Array] attr_accessor :webhook_events + # @!attribute activity_metrics_config + # @return [Hash] + attr_accessor :activity_metrics_config # @!attribute apn_config # @return [APNConfig] attr_accessor :apn_config @@ -198,6 +201,7 @@ def initialize(attributes = {}) @image_moderation_labels = attributes[:image_moderation_labels] || attributes['image_moderation_labels'] || nil @user_search_disallowed_roles = attributes[:user_search_disallowed_roles] || attributes['user_search_disallowed_roles'] || nil @webhook_events = attributes[:webhook_events] || attributes['webhook_events'] || nil + @activity_metrics_config = attributes[:activity_metrics_config] || attributes['activity_metrics_config'] || nil @apn_config = attributes[:apn_config] || attributes['apn_config'] || nil @async_moderation_config = attributes[:async_moderation_config] || attributes['async_moderation_config'] || nil @datadog_info = attributes[:datadog_info] || attributes['datadog_info'] || nil @@ -252,6 +256,7 @@ def self.json_field_mappings image_moderation_labels: 'image_moderation_labels', user_search_disallowed_roles: 'user_search_disallowed_roles', webhook_events: 'webhook_events', + activity_metrics_config: 'activity_metrics_config', apn_config: 'apn_config', async_moderation_config: 'async_moderation_config', datadog_info: 'datadog_info', 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 e43351df..1273c0fe 100644 --- a/lib/getstream_ruby/generated/models/update_channel_type_request.rb +++ b/lib/getstream_ruby/generated/models/update_channel_type_request.rb @@ -108,6 +108,9 @@ class UpdateChannelTypeRequest < GetStream::BaseModel # @!attribute automod_thresholds # @return [Thresholds] attr_accessor :automod_thresholds + # @!attribute chat_preferences + # @return [ChatPreferences] + attr_accessor :chat_preferences # @!attribute grants # @return [Hash>] attr_accessor :grants @@ -148,6 +151,7 @@ def initialize(attributes = {}) @commands = attributes[:commands] || attributes['commands'] || nil @permissions = attributes[:permissions] || attributes['permissions'] || nil @automod_thresholds = attributes[:automod_thresholds] || attributes['automod_thresholds'] || nil + @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil @grants = attributes[:grants] || attributes['grants'] || nil end @@ -187,6 +191,7 @@ def self.json_field_mappings commands: 'commands', permissions: 'permissions', automod_thresholds: 'automod_thresholds', + chat_preferences: 'chat_preferences', grants: 'grants' } end 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 55d32333..383e3661 100644 --- a/lib/getstream_ruby/generated/models/update_channel_type_response.rb +++ b/lib/getstream_ruby/generated/models/update_channel_type_response.rb @@ -123,6 +123,9 @@ class UpdateChannelTypeResponse < GetStream::BaseModel # @!attribute automod_thresholds # @return [Thresholds] attr_accessor :automod_thresholds + # @!attribute chat_preferences + # @return [ChatPreferences] + attr_accessor :chat_preferences # Initialize with attributes def initialize(attributes = {}) @@ -165,6 +168,7 @@ def initialize(attributes = {}) @allowed_flag_reasons = attributes[:allowed_flag_reasons] || attributes['allowed_flag_reasons'] || nil @blocklists = attributes[:blocklists] || attributes['blocklists'] || nil @automod_thresholds = attributes[:automod_thresholds] || attributes['automod_thresholds'] || nil + @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil end # Override field mappings for JSON serialization @@ -207,7 +211,8 @@ def self.json_field_mappings push_level: 'push_level', allowed_flag_reasons: 'allowed_flag_reasons', blocklists: 'blocklists', - automod_thresholds: 'automod_thresholds' + automod_thresholds: 'automod_thresholds', + chat_preferences: 'chat_preferences' } end end 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 bd6c4af2..e1f12d28 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 @@ -12,15 +12,15 @@ class UpdateSIPInboundRoutingRuleRequest < GetStream::BaseModel # @!attribute name # @return [String] Name of the SIP Inbound Routing Rule attr_accessor :name - # @!attribute called_numbers - # @return [Array] List of called numbers - attr_accessor :called_numbers # @!attribute trunk_ids # @return [Array] List of SIP trunk IDs attr_accessor :trunk_ids # @!attribute caller_configs # @return [SIPCallerConfigsRequest] attr_accessor :caller_configs + # @!attribute called_numbers + # @return [Array] List of called numbers + attr_accessor :called_numbers # @!attribute caller_numbers # @return [Array] List of caller numbers (optional) attr_accessor :caller_numbers @@ -41,9 +41,9 @@ class UpdateSIPInboundRoutingRuleRequest < GetStream::BaseModel def initialize(attributes = {}) super(attributes) @name = attributes[:name] || attributes['name'] - @called_numbers = attributes[:called_numbers] || attributes['called_numbers'] @trunk_ids = attributes[:trunk_ids] || attributes['trunk_ids'] @caller_configs = attributes[:caller_configs] || attributes['caller_configs'] + @called_numbers = attributes[:called_numbers] || attributes['called_numbers'] || nil @caller_numbers = attributes[:caller_numbers] || attributes['caller_numbers'] || nil @call_configs = attributes[:call_configs] || attributes['call_configs'] || nil @direct_routing_configs = attributes[:direct_routing_configs] || attributes['direct_routing_configs'] || nil @@ -55,9 +55,9 @@ def initialize(attributes = {}) def self.json_field_mappings { name: 'name', - called_numbers: 'called_numbers', trunk_ids: 'trunk_ids', caller_configs: 'caller_configs', + called_numbers: 'called_numbers', caller_numbers: 'caller_numbers', call_configs: 'call_configs', direct_routing_configs: 'direct_routing_configs', diff --git a/lib/getstream_ruby/generated/models/update_sip_trunk_request.rb b/lib/getstream_ruby/generated/models/update_sip_trunk_request.rb index 0d3aabb8..6031dd51 100644 --- a/lib/getstream_ruby/generated/models/update_sip_trunk_request.rb +++ b/lib/getstream_ruby/generated/models/update_sip_trunk_request.rb @@ -15,19 +15,29 @@ class UpdateSIPTrunkRequest < GetStream::BaseModel # @!attribute numbers # @return [Array] Phone numbers associated with this SIP trunk attr_accessor :numbers + # @!attribute password + # @return [String] Optional password for SIP trunk authentication + attr_accessor :password + # @!attribute allowed_ips + # @return [Array] Optional list of allowed IPv4/IPv6 addresses or CIDR blocks + attr_accessor :allowed_ips # Initialize with attributes def initialize(attributes = {}) super(attributes) @name = attributes[:name] || attributes['name'] @numbers = attributes[:numbers] || attributes['numbers'] + @password = attributes[:password] || attributes['password'] || nil + @allowed_ips = attributes[:allowed_ips] || attributes['allowed_ips'] || nil end # Override field mappings for JSON serialization def self.json_field_mappings { name: 'name', - numbers: 'numbers' + numbers: 'numbers', + password: 'password', + allowed_ips: 'allowed_ips' } end end diff --git a/lib/getstream_ruby/generated/video_client.rb b/lib/getstream_ruby/generated/video_client.rb index 6e25c98c..61ebfcc5 100644 --- a/lib/getstream_ruby/generated/video_client.rb +++ b/lib/getstream_ruby/generated/video_client.rb @@ -1214,6 +1214,23 @@ def get_edges() ) end + # Determine authentication requirements for an inbound SIP call before sending a digest challenge + # + # @param resolve_sip_auth_request [ResolveSipAuthRequest] + # @return [Models::ResolveSipAuthResponse] + def resolve_sip_auth(resolve_sip_auth_request) + path = '/api/v2/video/sip/auth' + # Build request body + body = resolve_sip_auth_request + + # Make the API request + @client.make_request( + :post, + path, + body: body + ) + end + # List all SIP Inbound Routing Rules for the application # # @return [Models::ListSIPInboundRoutingRuleResponse] From ceb14e9cb799fdbbddb85013305974ab1a2079b8 Mon Sep 17 00:00:00 2001 From: Aditya Agarwal Date: Fri, 20 Mar 2026 17:38:37 +0100 Subject: [PATCH 2/5] test: fix add comment integration payload Use the generated AddCommentRequest `object_id` keyword so comment integration specs send the required field instead of silently dropping it. Made-with: Cursor --- spec/integration/feed_integration_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/integration/feed_integration_spec.rb b/spec/integration/feed_integration_spec.rb index 846b878f..216a1032 100644 --- a/spec/integration/feed_integration_spec.rb +++ b/spec/integration/feed_integration_spec.rb @@ -489,7 +489,7 @@ # Add comment comment_request = GetStream::Generated::Models::AddCommentRequest.new( comment: 'This is a test comment from Ruby SDK', - _object_id: activity_id, + object_id: activity_id, object_type: 'activity', user_id: test_user_id_1, ) @@ -939,7 +939,7 @@ comment_request = GetStream::Generated::Models::AddCommentRequest.new( comment: comment_text, - _object_id: post_id, + object_id: post_id, object_type: 'activity', user_id: test_user_id_2, ) From 3b69bf011dcffcd0abb26cc6d2378dd07236c0c1 Mon Sep 17 00:00:00 2001 From: Aditya Agarwal Date: Fri, 20 Mar 2026 17:44:23 +0100 Subject: [PATCH 3/5] update sdk --- .../generated/models/add_comment_request.rb | 10 +++++----- .../generated/models/comment_response.rb | 10 +++++----- .../generated/models/image_content_parameters.rb | 5 +++++ .../generated/models/image_rule_parameters.rb | 5 +++++ .../generated/models/moderation_flagged_event.rb | 10 +++++----- .../generated/models/threaded_comment_response.rb | 10 +++++----- 6 files changed, 30 insertions(+), 20 deletions(-) diff --git a/lib/getstream_ruby/generated/models/add_comment_request.rb b/lib/getstream_ruby/generated/models/add_comment_request.rb index 2c07938f..29390714 100644 --- a/lib/getstream_ruby/generated/models/add_comment_request.rb +++ b/lib/getstream_ruby/generated/models/add_comment_request.rb @@ -9,6 +9,9 @@ module Models class AddCommentRequest < GetStream::BaseModel # Model attributes + # @!attribute _object_id + # @return [String] ID of the object to comment on. Required for root comments + attr_accessor :_object_id # @!attribute comment # @return [String] Text content of the comment attr_accessor :comment @@ -21,9 +24,6 @@ class AddCommentRequest < GetStream::BaseModel # @!attribute id # @return [String] Optional custom ID for the comment (max 255 characters). If not provided, a UUID will be generated. attr_accessor :id - # @!attribute object_id - # @return [String] ID of the object to comment on. Required for root comments - attr_accessor :object_id # @!attribute object_type # @return [String] Type of the object to comment on. Required for root comments attr_accessor :object_type @@ -55,11 +55,11 @@ class AddCommentRequest < GetStream::BaseModel # Initialize with attributes def initialize(attributes = {}) super(attributes) + @_object_id = attributes[:_object_id] || attributes['object_id'] || nil @comment = attributes[:comment] || attributes['comment'] || nil @copy_custom_to_notification = attributes[:copy_custom_to_notification] || attributes['copy_custom_to_notification'] || nil @create_notification_activity = attributes[:create_notification_activity] || attributes['create_notification_activity'] || nil @id = attributes[:id] || attributes['id'] || nil - @object_id = attributes[:object_id] || attributes['object_id'] || nil @object_type = attributes[:object_type] || attributes['object_type'] || nil @parent_id = attributes[:parent_id] || attributes['parent_id'] || nil @skip_enrich_url = attributes[:skip_enrich_url] || attributes['skip_enrich_url'] || nil @@ -74,11 +74,11 @@ def initialize(attributes = {}) # Override field mappings for JSON serialization def self.json_field_mappings { + _object_id: 'object_id', comment: 'comment', copy_custom_to_notification: 'copy_custom_to_notification', create_notification_activity: 'create_notification_activity', id: 'id', - object_id: 'object_id', object_type: 'object_type', parent_id: 'parent_id', skip_enrich_url: 'skip_enrich_url', diff --git a/lib/getstream_ruby/generated/models/comment_response.rb b/lib/getstream_ruby/generated/models/comment_response.rb index 0884951b..8a4a68db 100644 --- a/lib/getstream_ruby/generated/models/comment_response.rb +++ b/lib/getstream_ruby/generated/models/comment_response.rb @@ -9,6 +9,9 @@ module Models class CommentResponse < GetStream::BaseModel # Model attributes + # @!attribute _object_id + # @return [String] ID of the object this comment is associated with + attr_accessor :_object_id # @!attribute confidence_score # @return [Float] Confidence score of the comment attr_accessor :confidence_score @@ -21,9 +24,6 @@ class CommentResponse < GetStream::BaseModel # @!attribute id # @return [String] Unique identifier for the comment attr_accessor :id - # @!attribute object_id - # @return [String] ID of the object this comment is associated with - attr_accessor :object_id # @!attribute object_type # @return [String] Type of the object this comment is associated with attr_accessor :object_type @@ -88,11 +88,11 @@ class CommentResponse < GetStream::BaseModel # Initialize with attributes def initialize(attributes = {}) super(attributes) + @_object_id = attributes[:_object_id] || attributes['object_id'] @confidence_score = attributes[:confidence_score] || attributes['confidence_score'] @created_at = attributes[:created_at] || attributes['created_at'] @downvote_count = attributes[:downvote_count] || attributes['downvote_count'] @id = attributes[:id] || attributes['id'] - @object_id = attributes[:object_id] || attributes['object_id'] @object_type = attributes[:object_type] || attributes['object_type'] @reaction_count = attributes[:reaction_count] || attributes['reaction_count'] @reply_count = attributes[:reply_count] || attributes['reply_count'] @@ -118,11 +118,11 @@ def initialize(attributes = {}) # Override field mappings for JSON serialization def self.json_field_mappings { + _object_id: 'object_id', confidence_score: 'confidence_score', created_at: 'created_at', downvote_count: 'downvote_count', id: 'id', - object_id: 'object_id', object_type: 'object_type', reaction_count: 'reaction_count', reply_count: 'reply_count', diff --git a/lib/getstream_ruby/generated/models/image_content_parameters.rb b/lib/getstream_ruby/generated/models/image_content_parameters.rb index e0a90eb7..505e96bf 100644 --- a/lib/getstream_ruby/generated/models/image_content_parameters.rb +++ b/lib/getstream_ruby/generated/models/image_content_parameters.rb @@ -9,6 +9,9 @@ module Models class ImageContentParameters < GetStream::BaseModel # Model attributes + # @!attribute min_confidence + # @return [Float] + attr_accessor :min_confidence # @!attribute harm_labels # @return [Array] attr_accessor :harm_labels @@ -16,12 +19,14 @@ class ImageContentParameters < GetStream::BaseModel # Initialize with attributes def initialize(attributes = {}) super(attributes) + @min_confidence = attributes[:min_confidence] || attributes['min_confidence'] || nil @harm_labels = attributes[:harm_labels] || attributes['harm_labels'] || nil end # Override field mappings for JSON serialization def self.json_field_mappings { + min_confidence: 'min_confidence', harm_labels: 'harm_labels' } end diff --git a/lib/getstream_ruby/generated/models/image_rule_parameters.rb b/lib/getstream_ruby/generated/models/image_rule_parameters.rb index e7e5f205..79cf08f8 100644 --- a/lib/getstream_ruby/generated/models/image_rule_parameters.rb +++ b/lib/getstream_ruby/generated/models/image_rule_parameters.rb @@ -9,6 +9,9 @@ module Models class ImageRuleParameters < GetStream::BaseModel # Model attributes + # @!attribute min_confidence + # @return [Float] + attr_accessor :min_confidence # @!attribute threshold # @return [Integer] attr_accessor :threshold @@ -22,6 +25,7 @@ class ImageRuleParameters < GetStream::BaseModel # Initialize with attributes def initialize(attributes = {}) super(attributes) + @min_confidence = attributes[:min_confidence] || attributes['min_confidence'] || 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 @@ -30,6 +34,7 @@ def initialize(attributes = {}) # Override field mappings for JSON serialization def self.json_field_mappings { + min_confidence: 'min_confidence', threshold: 'threshold', time_window: 'time_window', harm_labels: 'harm_labels' diff --git a/lib/getstream_ruby/generated/models/moderation_flagged_event.rb b/lib/getstream_ruby/generated/models/moderation_flagged_event.rb index c7016491..bf85f43c 100644 --- a/lib/getstream_ruby/generated/models/moderation_flagged_event.rb +++ b/lib/getstream_ruby/generated/models/moderation_flagged_event.rb @@ -9,15 +9,15 @@ module Models class ModerationFlaggedEvent < GetStream::BaseModel # Model attributes + # @!attribute _object_id + # @return [String] The ID of the flagged content + attr_accessor :_object_id # @!attribute content_type # @return [String] The type of content that was flagged attr_accessor :content_type # @!attribute created_at # @return [DateTime] attr_accessor :created_at - # @!attribute object_id - # @return [String] The ID of the flagged content - attr_accessor :object_id # @!attribute custom # @return [Object] attr_accessor :custom @@ -31,9 +31,9 @@ class ModerationFlaggedEvent < GetStream::BaseModel # Initialize with attributes def initialize(attributes = {}) super(attributes) + @_object_id = attributes[:_object_id] || attributes['object_id'] @content_type = attributes[:content_type] || attributes['content_type'] @created_at = attributes[:created_at] || attributes['created_at'] - @object_id = attributes[:object_id] || attributes['object_id'] @custom = attributes[:custom] || attributes['custom'] @type = attributes[:type] || attributes['type'] || "moderation.flagged" @received_at = attributes[:received_at] || attributes['received_at'] || nil @@ -42,9 +42,9 @@ def initialize(attributes = {}) # Override field mappings for JSON serialization def self.json_field_mappings { + _object_id: 'object_id', content_type: 'content_type', created_at: 'created_at', - object_id: 'object_id', custom: 'custom', type: 'type', received_at: 'received_at' diff --git a/lib/getstream_ruby/generated/models/threaded_comment_response.rb b/lib/getstream_ruby/generated/models/threaded_comment_response.rb index 29125c24..ca97a02f 100644 --- a/lib/getstream_ruby/generated/models/threaded_comment_response.rb +++ b/lib/getstream_ruby/generated/models/threaded_comment_response.rb @@ -9,6 +9,9 @@ module Models class ThreadedCommentResponse < GetStream::BaseModel # Model attributes + # @!attribute _object_id + # @return [String] + attr_accessor :_object_id # @!attribute confidence_score # @return [Float] attr_accessor :confidence_score @@ -21,9 +24,6 @@ class ThreadedCommentResponse < GetStream::BaseModel # @!attribute id # @return [String] attr_accessor :id - # @!attribute object_id - # @return [String] - attr_accessor :object_id # @!attribute object_type # @return [String] attr_accessor :object_type @@ -94,11 +94,11 @@ class ThreadedCommentResponse < GetStream::BaseModel # Initialize with attributes def initialize(attributes = {}) super(attributes) + @_object_id = attributes[:_object_id] || attributes['object_id'] @confidence_score = attributes[:confidence_score] || attributes['confidence_score'] @created_at = attributes[:created_at] || attributes['created_at'] @downvote_count = attributes[:downvote_count] || attributes['downvote_count'] @id = attributes[:id] || attributes['id'] - @object_id = attributes[:object_id] || attributes['object_id'] @object_type = attributes[:object_type] || attributes['object_type'] @reaction_count = attributes[:reaction_count] || attributes['reaction_count'] @reply_count = attributes[:reply_count] || attributes['reply_count'] @@ -126,11 +126,11 @@ def initialize(attributes = {}) # Override field mappings for JSON serialization def self.json_field_mappings { + _object_id: 'object_id', confidence_score: 'confidence_score', created_at: 'created_at', downvote_count: 'downvote_count', id: 'id', - object_id: 'object_id', object_type: 'object_type', reaction_count: 'reaction_count', reply_count: 'reply_count', From 625dbfd547dd98624eb10bd5d7fbb923234eb65e Mon Sep 17 00:00:00 2001 From: Aditya Agarwal Date: Fri, 20 Mar 2026 17:45:28 +0100 Subject: [PATCH 4/5] update sdk --- spec/integration/feed_integration_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/integration/feed_integration_spec.rb b/spec/integration/feed_integration_spec.rb index 216a1032..339b5a7f 100644 --- a/spec/integration/feed_integration_spec.rb +++ b/spec/integration/feed_integration_spec.rb @@ -489,7 +489,7 @@ # Add comment comment_request = GetStream::Generated::Models::AddCommentRequest.new( comment: 'This is a test comment from Ruby SDK', - object_id: activity_id, + _object_id: activity_id, object_type: 'activity', user_id: test_user_id_1, ) @@ -506,7 +506,7 @@ # Query comments query_request = GetStream::Generated::Models::QueryCommentsRequest.new( filter: { - object_id: activity_id, + _object_id: activity_id, }, limit: 10, ) @@ -939,7 +939,7 @@ comment_request = GetStream::Generated::Models::AddCommentRequest.new( comment: comment_text, - object_id: post_id, + _object_id: post_id, object_type: 'activity', user_id: test_user_id_2, ) From f3412f5d8ffab8b3a9fac8946385175c63494611 Mon Sep 17 00:00:00 2001 From: Aditya Agarwal Date: Fri, 20 Mar 2026 17:48:32 +0100 Subject: [PATCH 5/5] update sdk --- spec/integration/feed_integration_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/integration/feed_integration_spec.rb b/spec/integration/feed_integration_spec.rb index 339b5a7f..846b878f 100644 --- a/spec/integration/feed_integration_spec.rb +++ b/spec/integration/feed_integration_spec.rb @@ -506,7 +506,7 @@ # Query comments query_request = GetStream::Generated::Models::QueryCommentsRequest.new( filter: { - _object_id: activity_id, + object_id: activity_id, }, limit: 10, )