getstream-ruby 7.1.1 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/lib/getstream_ruby/generated/chat_client.rb +57 -0
  3. data/lib/getstream_ruby/generated/common_client.rb +16 -0
  4. data/lib/getstream_ruby/generated/feeds_client.rb +55 -0
  5. data/lib/getstream_ruby/generated/models/add_segment_targets_request.rb +31 -0
  6. data/lib/getstream_ruby/generated/models/analyze_image_field.rb +56 -0
  7. data/lib/getstream_ruby/generated/models/analyze_request.rb +81 -0
  8. data/lib/getstream_ruby/generated/models/analyze_response.rb +46 -0
  9. data/lib/getstream_ruby/generated/models/analyze_text_field.rb +56 -0
  10. data/lib/getstream_ruby/generated/models/app_response_fields.rb +15 -0
  11. data/lib/getstream_ruby/generated/models/appeal_item_response.rb +60 -0
  12. data/lib/getstream_ruby/generated/models/appeal_request.rb +5 -0
  13. data/lib/getstream_ruby/generated/models/block_list_response.rb +10 -0
  14. data/lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb +71 -0
  15. data/lib/getstream_ruby/generated/models/bulk_action_appeals_response.rb +41 -0
  16. data/lib/getstream_ruby/generated/models/bulk_appeal_error.rb +36 -0
  17. data/lib/getstream_ruby/generated/models/bulk_appeal_result.rb +36 -0
  18. data/lib/getstream_ruby/generated/models/call_stats_participant_counts.rb +10 -0
  19. data/lib/getstream_ruby/generated/models/cancel_import_v2_task_request.rb +14 -0
  20. data/lib/getstream_ruby/generated/models/cancel_import_v2_task_response.rb +31 -0
  21. data/lib/getstream_ruby/generated/models/channel_config_overrides.rb +106 -0
  22. data/lib/getstream_ruby/generated/models/channel_data_update.rb +1 -1
  23. data/lib/getstream_ruby/generated/models/channel_input.rb +1 -1
  24. data/lib/getstream_ruby/generated/models/chat_message_response.rb +5 -0
  25. data/lib/getstream_ruby/generated/models/classification.rb +46 -0
  26. data/lib/getstream_ruby/generated/models/client_event.rb +156 -0
  27. data/lib/getstream_ruby/generated/models/closed_caption_rule_parameters.rb +5 -0
  28. data/lib/getstream_ruby/generated/models/config_response.rb +5 -0
  29. data/lib/getstream_ruby/generated/models/content_custom_property_count_parameters.rb +46 -0
  30. data/lib/getstream_ruby/generated/models/content_custom_property_parameters.rb +36 -0
  31. data/lib/getstream_ruby/generated/models/create_block_list_request.rb +10 -0
  32. data/lib/getstream_ruby/generated/models/create_device_request.rb +5 -0
  33. data/lib/getstream_ruby/generated/models/create_segment_request.rb +61 -0
  34. data/lib/getstream_ruby/generated/models/create_segment_response.rb +36 -0
  35. data/lib/getstream_ruby/generated/models/delivery_receipts_response.rb +1 -1
  36. data/lib/getstream_ruby/generated/models/device_response.rb +5 -0
  37. data/lib/getstream_ruby/generated/models/filter_config_response.rb +9 -4
  38. data/lib/getstream_ruby/generated/models/flag_details.rb +36 -0
  39. data/lib/getstream_ruby/generated/models/flag_item_response.rb +36 -0
  40. data/lib/getstream_ruby/generated/models/flag_response.rb +69 -9
  41. data/lib/getstream_ruby/generated/models/flood_config.rb +36 -0
  42. data/lib/getstream_ruby/generated/models/flood_identical_config.rb +46 -0
  43. data/lib/getstream_ruby/generated/models/flood_similar_config.rb +51 -0
  44. data/lib/getstream_ruby/generated/models/follow_request.rb +1 -1
  45. data/lib/getstream_ruby/generated/models/get_or_create_feed_request.rb +5 -0
  46. data/lib/getstream_ruby/generated/models/get_or_create_follow_response.rb +46 -0
  47. data/lib/getstream_ruby/generated/models/get_or_create_unfollow_request.rb +51 -0
  48. data/lib/getstream_ruby/generated/models/get_or_create_unfollow_response.rb +41 -0
  49. data/lib/getstream_ruby/generated/models/get_setup_session_response.rb +36 -0
  50. data/lib/getstream_ruby/generated/models/get_user_interests_response.rb +36 -0
  51. data/lib/getstream_ruby/generated/models/grouped_channels_bucket.rb +10 -0
  52. data/lib/getstream_ruby/generated/models/grouped_channels_group_request.rb +41 -0
  53. data/lib/getstream_ruby/generated/models/grouped_query_channels_request.rb +6 -1
  54. data/lib/getstream_ruby/generated/models/import_v2_task_settings.rb +5 -0
  55. data/lib/getstream_ruby/generated/models/interest_tag_response.rb +36 -0
  56. data/lib/getstream_ruby/generated/models/keyframe_ocr_rule_parameters.rb +41 -0
  57. data/lib/getstream_ruby/generated/models/keyframe_rule_parameters.rb +5 -0
  58. data/lib/getstream_ruby/generated/models/label_result_response.rb +5 -0
  59. data/lib/getstream_ruby/generated/models/labels_request.rb +1 -1
  60. data/lib/getstream_ruby/generated/models/labels_response.rb +5 -0
  61. data/lib/getstream_ruby/generated/models/llm_rule.rb +5 -5
  62. data/lib/getstream_ruby/generated/models/matched_content.rb +61 -0
  63. data/lib/getstream_ruby/generated/models/message_response.rb +5 -0
  64. data/lib/getstream_ruby/generated/models/message_with_channel_response.rb +5 -0
  65. data/lib/getstream_ruby/generated/models/moderation_ban_response.rb +31 -0
  66. data/lib/getstream_ruby/generated/models/moderation_config.rb +5 -0
  67. data/lib/getstream_ruby/generated/models/moderation_dashboard_preferences.rb +15 -0
  68. data/lib/getstream_ruby/generated/models/moderation_image_analysis_complete_event.rb +81 -0
  69. data/lib/getstream_ruby/generated/models/moderation_rules_triggered_event.rb +6 -1
  70. data/lib/getstream_ruby/generated/models/moderation_text_analysis_complete_event.rb +76 -0
  71. data/lib/getstream_ruby/generated/models/query_moderation_rules_response.rb +10 -0
  72. data/lib/getstream_ruby/generated/models/query_review_queue_request.rb +1 -1
  73. data/lib/getstream_ruby/generated/models/read_receipts_response.rb +1 -1
  74. data/lib/getstream_ruby/generated/models/report_client_event_request.rb +31 -0
  75. data/lib/getstream_ruby/generated/models/report_client_event_response.rb +31 -0
  76. data/lib/getstream_ruby/generated/models/rule_builder_action.rb +5 -0
  77. data/lib/getstream_ruby/generated/models/rule_builder_condition.rb +15 -0
  78. data/lib/getstream_ruby/generated/models/search_result_message.rb +5 -0
  79. data/lib/getstream_ruby/generated/models/setup_session.rb +56 -0
  80. data/lib/getstream_ruby/generated/models/submit_action_response.rb +5 -0
  81. data/lib/getstream_ruby/generated/models/target_resolution.rb +6 -6
  82. data/lib/getstream_ruby/generated/models/text_content_parameters.rb +10 -0
  83. data/lib/getstream_ruby/generated/models/translation_settings.rb +2 -2
  84. data/lib/getstream_ruby/generated/models/typing_indicators_response.rb +1 -1
  85. data/lib/getstream_ruby/generated/models/update_app_request.rb +15 -0
  86. data/lib/getstream_ruby/generated/models/update_block_list_request.rb +10 -0
  87. data/lib/getstream_ruby/generated/models/update_follow_request.rb +1 -1
  88. data/lib/getstream_ruby/generated/models/update_segment_request.rb +41 -0
  89. data/lib/getstream_ruby/generated/models/update_segment_response.rb +36 -0
  90. data/lib/getstream_ruby/generated/models/upsert_config_request.rb +5 -0
  91. data/lib/getstream_ruby/generated/models/upsert_setup_session_request.rb +41 -0
  92. data/lib/getstream_ruby/generated/models/upsert_setup_session_response.rb +36 -0
  93. data/lib/getstream_ruby/generated/models/user_banned_event.rb +5 -0
  94. data/lib/getstream_ruby/generated/moderation_client.rb +66 -2
  95. data/lib/getstream_ruby/generated/video_client.rb +17 -0
  96. data/lib/getstream_ruby/generated/webhook.rb +8 -0
  97. data/lib/getstream_ruby/version.rb +1 -1
  98. metadata +44 -2
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ #
9
+ class BulkActionAppealsRequest < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute action_type
13
+ # @return [String] Action to apply: unban, restore, unblock, mark_reviewed, or reject_appeal
14
+ attr_accessor :action_type
15
+ # @!attribute appeal_ids
16
+ # @return [Array<String>] List of appeal UUIDs to process
17
+ attr_accessor :appeal_ids
18
+ # @!attribute user_id
19
+ # @return [String]
20
+ attr_accessor :user_id
21
+ # @!attribute mark_reviewed
22
+ # @return [MarkReviewedRequestPayload]
23
+ attr_accessor :mark_reviewed
24
+ # @!attribute reject_appeal
25
+ # @return [RejectAppealRequestPayload]
26
+ attr_accessor :reject_appeal
27
+ # @!attribute restore
28
+ # @return [RestoreActionRequestPayload]
29
+ attr_accessor :restore
30
+ # @!attribute unban
31
+ # @return [UnbanActionRequestPayload]
32
+ attr_accessor :unban
33
+ # @!attribute unblock
34
+ # @return [UnblockActionRequestPayload]
35
+ attr_accessor :unblock
36
+ # @!attribute user
37
+ # @return [UserRequest]
38
+ attr_accessor :user
39
+
40
+ # Initialize with attributes
41
+ def initialize(attributes = {})
42
+ super(attributes)
43
+ @action_type = attributes[:action_type] || attributes['action_type']
44
+ @appeal_ids = attributes[:appeal_ids] || attributes['appeal_ids']
45
+ @user_id = attributes[:user_id] || attributes['user_id'] || nil
46
+ @mark_reviewed = attributes[:mark_reviewed] || attributes['mark_reviewed'] || nil
47
+ @reject_appeal = attributes[:reject_appeal] || attributes['reject_appeal'] || nil
48
+ @restore = attributes[:restore] || attributes['restore'] || nil
49
+ @unban = attributes[:unban] || attributes['unban'] || nil
50
+ @unblock = attributes[:unblock] || attributes['unblock'] || nil
51
+ @user = attributes[:user] || attributes['user'] || nil
52
+ end
53
+
54
+ # Override field mappings for JSON serialization
55
+ def self.json_field_mappings
56
+ {
57
+ action_type: 'action_type',
58
+ appeal_ids: 'appeal_ids',
59
+ user_id: 'user_id',
60
+ mark_reviewed: 'mark_reviewed',
61
+ reject_appeal: 'reject_appeal',
62
+ restore: 'restore',
63
+ unban: 'unban',
64
+ unblock: 'unblock',
65
+ user: 'user'
66
+ }
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ #
9
+ class BulkActionAppealsResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String]
14
+ attr_accessor :duration
15
+ # @!attribute errors
16
+ # @return [Array<BulkAppealError>] Appeals that could not be processed, with per-item error messages
17
+ attr_accessor :errors
18
+ # @!attribute results
19
+ # @return [Array<BulkAppealResult>] Successfully processed appeals
20
+ attr_accessor :results
21
+
22
+ # Initialize with attributes
23
+ def initialize(attributes = {})
24
+ super(attributes)
25
+ @duration = attributes[:duration] || attributes['duration']
26
+ @errors = attributes[:errors] || attributes['errors']
27
+ @results = attributes[:results] || attributes['results']
28
+ end
29
+
30
+ # Override field mappings for JSON serialization
31
+ def self.json_field_mappings
32
+ {
33
+ duration: 'duration',
34
+ errors: 'errors',
35
+ results: 'results'
36
+ }
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ #
9
+ class BulkAppealError < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute appeal_id
13
+ # @return [String]
14
+ attr_accessor :appeal_id
15
+ # @!attribute error
16
+ # @return [String]
17
+ attr_accessor :error
18
+
19
+ # Initialize with attributes
20
+ def initialize(attributes = {})
21
+ super(attributes)
22
+ @appeal_id = attributes[:appeal_id] || attributes['appeal_id']
23
+ @error = attributes[:error] || attributes['error']
24
+ end
25
+
26
+ # Override field mappings for JSON serialization
27
+ def self.json_field_mappings
28
+ {
29
+ appeal_id: 'appeal_id',
30
+ error: 'error'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ #
9
+ class BulkAppealResult < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute appeal_id
13
+ # @return [String]
14
+ attr_accessor :appeal_id
15
+ # @!attribute appeal_item
16
+ # @return [AppealItemResponse]
17
+ attr_accessor :appeal_item
18
+
19
+ # Initialize with attributes
20
+ def initialize(attributes = {})
21
+ super(attributes)
22
+ @appeal_id = attributes[:appeal_id] || attributes['appeal_id']
23
+ @appeal_item = attributes[:appeal_item] || attributes['appeal_item'] || nil
24
+ end
25
+
26
+ # Override field mappings for JSON serialization
27
+ def self.json_field_mappings
28
+ {
29
+ appeal_id: 'appeal_id',
30
+ appeal_item: 'appeal_item'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -36,6 +36,9 @@ module GetStream
36
36
  # @!attribute average_latency_ms
37
37
  # @return [Integer]
38
38
  attr_accessor :average_latency_ms
39
+ # @!attribute avg_user_rating
40
+ # @return [Float]
41
+ attr_accessor :avg_user_rating
39
42
  # @!attribute call_event_count
40
43
  # @return [Integer]
41
44
  attr_accessor :call_event_count
@@ -45,6 +48,9 @@ module GetStream
45
48
  # @!attribute max_freezes_duration_ms
46
49
  # @return [Integer]
47
50
  attr_accessor :max_freezes_duration_ms
51
+ # @!attribute min_user_rating
52
+ # @return [Integer]
53
+ attr_accessor :min_user_rating
48
54
  # @!attribute total_participant_duration
49
55
  # @return [Integer]
50
56
  attr_accessor :total_participant_duration
@@ -61,9 +67,11 @@ module GetStream
61
67
  @sfus_used = attributes[:sfus_used] || attributes['sfus_used']
62
68
  @average_jitter_ms = attributes[:average_jitter_ms] || attributes['average_jitter_ms'] || nil
63
69
  @average_latency_ms = attributes[:average_latency_ms] || attributes['average_latency_ms'] || nil
70
+ @avg_user_rating = attributes[:avg_user_rating] || attributes['avg_user_rating'] || nil
64
71
  @call_event_count = attributes[:call_event_count] || attributes['call_event_count'] || nil
65
72
  @cq_score = attributes[:cq_score] || attributes['cq_score'] || nil
66
73
  @max_freezes_duration_ms = attributes[:max_freezes_duration_ms] || attributes['max_freezes_duration_ms'] || nil
74
+ @min_user_rating = attributes[:min_user_rating] || attributes['min_user_rating'] || nil
67
75
  @total_participant_duration = attributes[:total_participant_duration] || attributes['total_participant_duration'] || nil
68
76
  end
69
77
 
@@ -79,9 +87,11 @@ module GetStream
79
87
  sfus_used: 'sfus_used',
80
88
  average_jitter_ms: 'average_jitter_ms',
81
89
  average_latency_ms: 'average_latency_ms',
90
+ avg_user_rating: 'avg_user_rating',
82
91
  call_event_count: 'call_event_count',
83
92
  cq_score: 'cq_score',
84
93
  max_freezes_duration_ms: 'max_freezes_duration_ms',
94
+ min_user_rating: 'min_user_rating',
85
95
  total_participant_duration: 'total_participant_duration'
86
96
  }
87
97
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ #
9
+ class CancelImportV2TaskRequest < GetStream::BaseModel
10
+ # Empty model - inherits all functionality from BaseModel
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ # Basic response information
9
+ class CancelImportV2TaskResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String] Duration of the request in milliseconds
14
+ attr_accessor :duration
15
+
16
+ # Initialize with attributes
17
+ def initialize(attributes = {})
18
+ super(attributes)
19
+ @duration = attributes[:duration] || attributes['duration']
20
+ end
21
+
22
+ # Override field mappings for JSON serialization
23
+ def self.json_field_mappings
24
+ {
25
+ duration: 'duration'
26
+ }
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,106 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ # Channel configuration overrides
9
+ class ChannelConfigOverrides < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute blocklist
13
+ # @return [String]
14
+ attr_accessor :blocklist
15
+ # @!attribute blocklist_behavior
16
+ # @return [String]
17
+ attr_accessor :blocklist_behavior
18
+ # @!attribute count_messages
19
+ # @return [Boolean] Enable/disable message counting
20
+ attr_accessor :count_messages
21
+ # @!attribute max_message_length
22
+ # @return [Integer] Overrides max message length
23
+ attr_accessor :max_message_length
24
+ # @!attribute push_level
25
+ # @return [String] Overrides the push notification level for this channel
26
+ attr_accessor :push_level
27
+ # @!attribute quotes
28
+ # @return [Boolean] Enables message quotes
29
+ attr_accessor :quotes
30
+ # @!attribute reactions
31
+ # @return [Boolean] Enables or disables reactions
32
+ attr_accessor :reactions
33
+ # @!attribute replies
34
+ # @return [Boolean] Enables message replies (threads)
35
+ attr_accessor :replies
36
+ # @!attribute shared_locations
37
+ # @return [Boolean] Enable/disable shared locations
38
+ attr_accessor :shared_locations
39
+ # @!attribute typing_events
40
+ # @return [Boolean] Enables or disables typing events
41
+ attr_accessor :typing_events
42
+ # @!attribute uploads
43
+ # @return [Boolean] Enables or disables file uploads
44
+ attr_accessor :uploads
45
+ # @!attribute url_enrichment
46
+ # @return [Boolean] Enables or disables URL enrichment
47
+ attr_accessor :url_enrichment
48
+ # @!attribute user_message_reminders
49
+ # @return [Boolean] Enable/disable user message reminders
50
+ attr_accessor :user_message_reminders
51
+ # @!attribute commands
52
+ # @return [Array<String>] List of commands that channel supports
53
+ attr_accessor :commands
54
+ # @!attribute chat_preferences
55
+ # @return [ChatPreferences]
56
+ attr_accessor :chat_preferences
57
+ # @!attribute grants
58
+ # @return [Hash<String, Array<String>>]
59
+ attr_accessor :grants
60
+
61
+ # Initialize with attributes
62
+ def initialize(attributes = {})
63
+ super(attributes)
64
+ @blocklist = attributes[:blocklist] || attributes['blocklist'] || nil
65
+ @blocklist_behavior = attributes[:blocklist_behavior] || attributes['blocklist_behavior'] || nil
66
+ @count_messages = attributes[:count_messages] || attributes['count_messages'] || nil
67
+ @max_message_length = attributes[:max_message_length] || attributes['max_message_length'] || nil
68
+ @push_level = attributes[:push_level] || attributes['push_level'] || nil
69
+ @quotes = attributes[:quotes] || attributes['quotes'] || nil
70
+ @reactions = attributes[:reactions] || attributes['reactions'] || nil
71
+ @replies = attributes[:replies] || attributes['replies'] || nil
72
+ @shared_locations = attributes[:shared_locations] || attributes['shared_locations'] || nil
73
+ @typing_events = attributes[:typing_events] || attributes['typing_events'] || nil
74
+ @uploads = attributes[:uploads] || attributes['uploads'] || nil
75
+ @url_enrichment = attributes[:url_enrichment] || attributes['url_enrichment'] || nil
76
+ @user_message_reminders = attributes[:user_message_reminders] || attributes['user_message_reminders'] || nil
77
+ @commands = attributes[:commands] || attributes['commands'] || nil
78
+ @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil
79
+ @grants = attributes[:grants] || attributes['grants'] || nil
80
+ end
81
+
82
+ # Override field mappings for JSON serialization
83
+ def self.json_field_mappings
84
+ {
85
+ blocklist: 'blocklist',
86
+ blocklist_behavior: 'blocklist_behavior',
87
+ count_messages: 'count_messages',
88
+ max_message_length: 'max_message_length',
89
+ push_level: 'push_level',
90
+ quotes: 'quotes',
91
+ reactions: 'reactions',
92
+ replies: 'replies',
93
+ shared_locations: 'shared_locations',
94
+ typing_events: 'typing_events',
95
+ uploads: 'uploads',
96
+ url_enrichment: 'url_enrichment',
97
+ user_message_reminders: 'user_message_reminders',
98
+ commands: 'commands',
99
+ chat_preferences: 'chat_preferences',
100
+ grants: 'grants'
101
+ }
102
+ end
103
+ end
104
+ end
105
+ end
106
+ end
@@ -25,7 +25,7 @@ module GetStream
25
25
  # @return [String]
26
26
  attr_accessor :team
27
27
  # @!attribute config_overrides
28
- # @return [ChannelConfig]
28
+ # @return [ChannelConfigOverrides]
29
29
  attr_accessor :config_overrides
30
30
  # @!attribute custom
31
31
  # @return [Object]
@@ -40,7 +40,7 @@ module GetStream
40
40
  # @return [Array<ChannelMemberRequest>]
41
41
  attr_accessor :members
42
42
  # @!attribute config_overrides
43
- # @return [ChannelConfig]
43
+ # @return [ChannelConfigOverrides]
44
44
  attr_accessor :config_overrides
45
45
  # @!attribute created_by
46
46
  # @return [UserRequest]
@@ -114,6 +114,9 @@ module GetStream
114
114
  # @!attribute mentioned_group_ids
115
115
  # @return [Array<String>]
116
116
  attr_accessor :mentioned_group_ids
117
+ # @!attribute mentioned_groups
118
+ # @return [Array<UserGroupResponse>]
119
+ attr_accessor :mentioned_groups
117
120
  # @!attribute mentioned_roles
118
121
  # @return [Array<String>]
119
122
  attr_accessor :mentioned_roles
@@ -192,6 +195,7 @@ module GetStream
192
195
  @quoted_message_id = attributes[:quoted_message_id] || attributes['quoted_message_id'] || nil
193
196
  @show_in_channel = attributes[:show_in_channel] || attributes['show_in_channel'] || nil
194
197
  @mentioned_group_ids = attributes[:mentioned_group_ids] || attributes['mentioned_group_ids'] || nil
198
+ @mentioned_groups = attributes[:mentioned_groups] || attributes['mentioned_groups'] || nil
195
199
  @mentioned_roles = attributes[:mentioned_roles] || attributes['mentioned_roles'] || nil
196
200
  @thread_participants = attributes[:thread_participants] || attributes['thread_participants'] || nil
197
201
  @draft = attributes[:draft] || attributes['draft'] || nil
@@ -245,6 +249,7 @@ module GetStream
245
249
  quoted_message_id: 'quoted_message_id',
246
250
  show_in_channel: 'show_in_channel',
247
251
  mentioned_group_ids: 'mentioned_group_ids',
252
+ mentioned_groups: 'mentioned_groups',
248
253
  mentioned_roles: 'mentioned_roles',
249
254
  thread_participants: 'thread_participants',
250
255
  draft: 'draft',
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ #
9
+ class Classification < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute name
13
+ # @return [String]
14
+ attr_accessor :name
15
+ # @!attribute confidence
16
+ # @return [Float]
17
+ attr_accessor :confidence
18
+ # @!attribute severity
19
+ # @return [String]
20
+ attr_accessor :severity
21
+ # @!attribute subclassifications
22
+ # @return [Array<Classification>]
23
+ attr_accessor :subclassifications
24
+
25
+ # Initialize with attributes
26
+ def initialize(attributes = {})
27
+ super(attributes)
28
+ @name = attributes[:name] || attributes['name']
29
+ @confidence = attributes[:confidence] || attributes['confidence'] || nil
30
+ @severity = attributes[:severity] || attributes['severity'] || nil
31
+ @subclassifications = attributes[:subclassifications] || attributes['subclassifications'] || nil
32
+ end
33
+
34
+ # Override field mappings for JSON serialization
35
+ def self.json_field_mappings
36
+ {
37
+ name: 'name',
38
+ confidence: 'confidence',
39
+ severity: 'severity',
40
+ subclassifications: 'subclassifications'
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,156 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ # A single client-side telemetry event. JoinInitiated is the top-level marker emitted when a user begins a join attempt and carries only join_attempt_id (no stage_id or coordinator_connect_id). When stage is CoordinatorJoin, CoordinatorWS, WSJoin, or PeerConnectionConnect the event reports a join-lifecycle attempt; initiation and completion of a stage attempt share the same stage_id. FirstAudioFrame and FirstVideoFrame report media readiness and only ever carry an initiated event. MediaDevicePermission reports the result of requesting screen-share, microphone, and camera permissions. Other stage values denote generic client events.
9
+ class ClientEvent < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute call_session_id
13
+ # @return [String] Call session ID associated with the attempt. Required on every event except CoordinatorJoin initiation and CoordinatorJoin failure (where the call session is not yet established); optional on MediaDevicePermission.
14
+ attr_accessor :call_session_id
15
+ # @!attribute camera_permission_status
16
+ # @return [String] Camera permission status: INITIATED, FAILED, GRANTED, or NOT_INITIATED. Required on every MediaDevicePermission event.
17
+ attr_accessor :camera_permission_status
18
+ # @!attribute coordinator_connect_id
19
+ # @return [String] UUID generated by the client and shared across every event of the same coordinator connection. Required on every event except JoinInitiated, which is reported before a coordinator connection exists.
20
+ attr_accessor :coordinator_connect_id
21
+ # @!attribute elapsed_time
22
+ # @return [Integer] Milliseconds elapsed between the stage attempt's initiation and this event.
23
+ attr_accessor :elapsed_time
24
+ # @!attribute event_type
25
+ # @return [String] Whether the event marks the start (initiated) or resolution (completed) of a stage attempt, or another event-specific value
26
+ attr_accessor :event_type
27
+ # @!attribute ice_state
28
+ # @return [String] Terminal state of the peer connection. Required on PeerConnectionConnect failure.
29
+ attr_accessor :ice_state
30
+ # @!attribute id
31
+ # @return [String] Call ID associated with the event. Required on every stage except CoordinatorWS, where it is optional.
32
+ attr_accessor :id
33
+ # @!attribute join_attempt_id
34
+ # @return [String] UUID generated by the client and shared across JoinInitiated and the join-lifecycle events (CoordinatorJoin, WSJoin, PeerConnectionConnect) of the same overall join attempt. Required on every join event except CoordinatorWS, which is reported before a join attempt is established.
35
+ attr_accessor :join_attempt_id
36
+ # @!attribute microphone_permission_status
37
+ # @return [String] Microphone permission status: INITIATED, FAILED, GRANTED, or NOT_INITIATED. Required on every MediaDevicePermission event.
38
+ attr_accessor :microphone_permission_status
39
+ # @!attribute outcome
40
+ # @return [String] Resolution of a completed event: success or failure. Required on completed join events; forbidden on initiated join events.
41
+ attr_accessor :outcome
42
+ # @!attribute peer_connection
43
+ # @return [String] Which peer connection a PeerConnectionConnect event reports on: publish or subscribe. Required on every PeerConnectionConnect event.
44
+ attr_accessor :peer_connection
45
+ # @!attribute previously_connected_timestamp
46
+ # @return [DateTime] UTC timestamp at which the ICE connection was established earlier in the session, when applicable
47
+ attr_accessor :previously_connected_timestamp
48
+ # @!attribute retry_count_attempt
49
+ # @return [Integer] Total in-stage retries the client made before resolving (0–1000). Required on completed join events.
50
+ attr_accessor :retry_count_attempt
51
+ # @!attribute retry_failure_code
52
+ # @return [String] Failure code string. Required on CoordinatorJoin, CoordinatorWS, WSJoin, and PeerConnectionConnect failure.
53
+ attr_accessor :retry_failure_code
54
+ # @!attribute retry_failure_reason
55
+ # @return [String] Failure reason string. Required on CoordinatorJoin, CoordinatorWS, WSJoin, and PeerConnectionConnect failure.
56
+ attr_accessor :retry_failure_reason
57
+ # @!attribute screen_share_status
58
+ # @return [String] Screen-share permission status: INITIATED, FAILED, GRANTED, or NOT_INITIATED. Optional on MediaDevicePermission events.
59
+ attr_accessor :screen_share_status
60
+ # @!attribute sdk_version
61
+ # @return [String] Version of the client SDK
62
+ attr_accessor :sdk_version
63
+ # @!attribute sfu_id
64
+ # @return [String] Identifier of the SFU the client was attempting to connect to. Required on WSJoin and PeerConnectionConnect failure, and on FirstAudioFrame and FirstVideoFrame.
65
+ attr_accessor :sfu_id
66
+ # @!attribute stage
67
+ # @return [String] Discriminator identifying the event kind. JoinInitiated marks the start of a join attempt; join-lifecycle events use CoordinatorJoin, CoordinatorWS, WSJoin, or PeerConnectionConnect; media-readiness events use FirstAudioFrame or FirstVideoFrame; MediaDevicePermission reports device permission results; other values denote generic client events.
68
+ attr_accessor :stage
69
+ # @!attribute stage_id
70
+ # @return [String] UUID generated by the client at initiation. Identical on the matching completion event. Absent on JoinInitiated.
71
+ attr_accessor :stage_id
72
+ # @!attribute timestamp
73
+ # @return [DateTime] UTC timestamp at which the event was recorded
74
+ attr_accessor :timestamp
75
+ # @!attribute track_id
76
+ # @return [String] Identifier of the media track the frame belongs to. Required on FirstVideoFrame; optional on FirstAudioFrame.
77
+ attr_accessor :track_id
78
+ # @!attribute type
79
+ # @return [String] Call type associated with the event. Required on every stage except CoordinatorWS, where it is optional.
80
+ attr_accessor :type
81
+ # @!attribute user_agent
82
+ # @return [String] User agent string of the client SDK
83
+ attr_accessor :user_agent
84
+ # @!attribute user_id
85
+ # @return [String] ID of the user the event was recorded for
86
+ attr_accessor :user_id
87
+ # @!attribute was_previously_connected
88
+ # @return [Boolean] Whether the ICE connection had been established earlier in the same session. Required on every PeerConnectionConnect event so reconnects can be distinguished from fresh connects.
89
+ attr_accessor :was_previously_connected
90
+
91
+ # Initialize with attributes
92
+ def initialize(attributes = {})
93
+ super(attributes)
94
+ @call_session_id = attributes[:call_session_id] || attributes['call_session_id'] || nil
95
+ @camera_permission_status = attributes[:camera_permission_status] || attributes['camera_permission_status'] || nil
96
+ @coordinator_connect_id = attributes[:coordinator_connect_id] || attributes['coordinator_connect_id'] || nil
97
+ @elapsed_time = attributes[:elapsed_time] || attributes['elapsed_time'] || nil
98
+ @event_type = attributes[:event_type] || attributes['event_type'] || nil
99
+ @ice_state = attributes[:ice_state] || attributes['ice_state'] || nil
100
+ @id = attributes[:id] || attributes['id'] || nil
101
+ @join_attempt_id = attributes[:join_attempt_id] || attributes['join_attempt_id'] || nil
102
+ @microphone_permission_status = attributes[:microphone_permission_status] || attributes['microphone_permission_status'] || nil
103
+ @outcome = attributes[:outcome] || attributes['outcome'] || nil
104
+ @peer_connection = attributes[:peer_connection] || attributes['peer_connection'] || nil
105
+ @previously_connected_timestamp = attributes[:previously_connected_timestamp] || attributes['previously_connected_timestamp'] || nil
106
+ @retry_count_attempt = attributes[:retry_count_attempt] || attributes['retry_count_attempt'] || nil
107
+ @retry_failure_code = attributes[:retry_failure_code] || attributes['retry_failure_code'] || nil
108
+ @retry_failure_reason = attributes[:retry_failure_reason] || attributes['retry_failure_reason'] || nil
109
+ @screen_share_status = attributes[:screen_share_status] || attributes['screen_share_status'] || nil
110
+ @sdk_version = attributes[:sdk_version] || attributes['sdk_version'] || nil
111
+ @sfu_id = attributes[:sfu_id] || attributes['sfu_id'] || nil
112
+ @stage = attributes[:stage] || attributes['stage'] || nil
113
+ @stage_id = attributes[:stage_id] || attributes['stage_id'] || nil
114
+ @timestamp = attributes[:timestamp] || attributes['timestamp'] || nil
115
+ @track_id = attributes[:track_id] || attributes['track_id'] || nil
116
+ @type = attributes[:type] || attributes['type'] || nil
117
+ @user_agent = attributes[:user_agent] || attributes['user_agent'] || nil
118
+ @user_id = attributes[:user_id] || attributes['user_id'] || nil
119
+ @was_previously_connected = attributes[:was_previously_connected] || attributes['was_previously_connected'] || nil
120
+ end
121
+
122
+ # Override field mappings for JSON serialization
123
+ def self.json_field_mappings
124
+ {
125
+ call_session_id: 'call_session_id',
126
+ camera_permission_status: 'camera_permission_status',
127
+ coordinator_connect_id: 'coordinator_connect_id',
128
+ elapsed_time: 'elapsed_time',
129
+ event_type: 'event_type',
130
+ ice_state: 'ice_state',
131
+ id: 'id',
132
+ join_attempt_id: 'join_attempt_id',
133
+ microphone_permission_status: 'microphone_permission_status',
134
+ outcome: 'outcome',
135
+ peer_connection: 'peer_connection',
136
+ previously_connected_timestamp: 'previously_connected_timestamp',
137
+ retry_count_attempt: 'retry_count_attempt',
138
+ retry_failure_code: 'retry_failure_code',
139
+ retry_failure_reason: 'retry_failure_reason',
140
+ screen_share_status: 'screen_share_status',
141
+ sdk_version: 'sdk_version',
142
+ sfu_id: 'sfu_id',
143
+ stage: 'stage',
144
+ stage_id: 'stage_id',
145
+ timestamp: 'timestamp',
146
+ track_id: 'track_id',
147
+ type: 'type',
148
+ user_agent: 'user_agent',
149
+ user_id: 'user_id',
150
+ was_previously_connected: 'was_previously_connected'
151
+ }
152
+ end
153
+ end
154
+ end
155
+ end
156
+ end
@@ -12,6 +12,9 @@ module GetStream
12
12
  # @!attribute threshold
13
13
  # @return [Integer]
14
14
  attr_accessor :threshold
15
+ # @!attribute time_window
16
+ # @return [String]
17
+ attr_accessor :time_window
15
18
  # @!attribute harm_labels
16
19
  # @return [Array<String>]
17
20
  attr_accessor :harm_labels
@@ -23,6 +26,7 @@ module GetStream
23
26
  def initialize(attributes = {})
24
27
  super(attributes)
25
28
  @threshold = attributes[:threshold] || attributes['threshold'] || nil
29
+ @time_window = attributes[:time_window] || attributes['time_window'] || nil
26
30
  @harm_labels = attributes[:harm_labels] || attributes['harm_labels'] || nil
27
31
  @llm_harm_labels = attributes[:llm_harm_labels] || attributes['llm_harm_labels'] || nil
28
32
  end
@@ -31,6 +35,7 @@ module GetStream
31
35
  def self.json_field_mappings
32
36
  {
33
37
  threshold: 'threshold',
38
+ time_window: 'time_window',
34
39
  harm_labels: 'harm_labels',
35
40
  llm_harm_labels: 'llm_harm_labels'
36
41
  }