getstream-ruby 6.0.0 → 6.1.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 (146) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -0
  3. data/lib/getstream_ruby/generated/chat_client.rb +70 -0
  4. data/lib/getstream_ruby/generated/feed.rb +10 -0
  5. data/lib/getstream_ruby/generated/feeds_client.rb +41 -2
  6. data/lib/getstream_ruby/generated/models/action_log_response.rb +5 -0
  7. data/lib/getstream_ruby/generated/models/{coordinates.rb → activity_filter_config.rb} +6 -11
  8. data/lib/getstream_ruby/generated/models/activity_selector_config.rb +1 -1
  9. data/lib/getstream_ruby/generated/models/activity_selector_config_response.rb +1 -1
  10. data/lib/getstream_ruby/generated/models/app_response_fields.rb +5 -0
  11. data/lib/getstream_ruby/generated/models/async_export_error_event.rb +1 -1
  12. data/lib/getstream_ruby/generated/models/{delete_moderation_template_request.rb → bodyguard_profile_summary.rb} +8 -3
  13. data/lib/getstream_ruby/generated/models/{delete_bookmark_folder_request.rb → bulk_delete_action_config_request.rb} +6 -1
  14. data/lib/getstream_ruby/generated/models/{block_action_request.rb → bulk_delete_action_config_response.rb} +10 -5
  15. data/lib/getstream_ruby/generated/models/bulk_upsert_action_config_request.rb +41 -0
  16. data/lib/getstream_ruby/generated/models/bulk_upsert_action_config_response.rb +36 -0
  17. data/lib/getstream_ruby/generated/models/call_stats_participant_session.rb +5 -0
  18. data/lib/getstream_ruby/generated/models/campaign_channel_template.rb +6 -6
  19. data/lib/getstream_ruby/generated/models/campaign_message_template.rb +8 -8
  20. data/lib/getstream_ruby/generated/models/change_feed_visibility_request.rb +36 -0
  21. data/lib/getstream_ruby/generated/models/{reject_appeal_request.rb → change_feed_visibility_response.rb} +10 -5
  22. data/lib/getstream_ruby/generated/models/{custom_action_request.rb → channel_message_count_rule_parameters.rb} +10 -10
  23. data/lib/getstream_ruby/generated/models/{message.rb → chat_message_response.rb} +23 -58
  24. data/lib/getstream_ruby/generated/models/config_response.rb +5 -0
  25. data/lib/getstream_ruby/generated/models/create_campaign_request.rb +96 -0
  26. data/lib/getstream_ruby/generated/models/create_campaign_response.rb +41 -0
  27. data/lib/getstream_ruby/generated/models/create_feed_group_request.rb +5 -0
  28. data/lib/getstream_ruby/generated/models/{any_event.rb → delete_action_config_response.rb} +10 -10
  29. data/lib/getstream_ruby/generated/models/{delivery_receipts.rb → delete_campaign_response.rb} +7 -7
  30. data/lib/getstream_ruby/generated/models/enrichment_options.rb +5 -0
  31. data/lib/getstream_ruby/generated/models/error_result.rb +5 -0
  32. data/lib/getstream_ruby/generated/models/event_hook.rb +6 -1
  33. data/lib/getstream_ruby/generated/models/feed_group.rb +5 -0
  34. data/lib/getstream_ruby/generated/models/feed_group_response.rb +5 -0
  35. data/lib/getstream_ruby/generated/models/get_action_config_response.rb +36 -0
  36. data/lib/getstream_ruby/generated/models/get_or_create_feed_group_request.rb +5 -0
  37. data/lib/getstream_ruby/generated/models/grouped_channels_bucket.rb +36 -0
  38. data/lib/getstream_ruby/generated/models/{delete_collections_request.rb → grouped_query_channels_request.rb} +6 -1
  39. data/lib/getstream_ruby/generated/models/grouped_query_channels_response.rb +36 -0
  40. data/lib/getstream_ruby/generated/models/insert_action_log_request.rb +10 -0
  41. data/lib/getstream_ruby/generated/models/label_result_response.rb +101 -0
  42. data/lib/getstream_ruby/generated/models/labels_request.rb +56 -0
  43. data/lib/getstream_ruby/generated/models/labels_response.rb +71 -0
  44. data/lib/getstream_ruby/generated/models/message_new_event.rb +5 -0
  45. data/lib/getstream_ruby/generated/models/moderation_action_config_response.rb +5 -0
  46. data/lib/getstream_ruby/generated/models/moderation_dashboard_preferences.rb +5 -0
  47. data/lib/getstream_ruby/generated/models/notification_mark_unread_event.rb +5 -0
  48. data/lib/getstream_ruby/generated/models/query_label_results_request.rb +61 -0
  49. data/lib/getstream_ruby/generated/models/query_label_results_response.rb +46 -0
  50. data/lib/getstream_ruby/generated/models/query_review_queue_request.rb +5 -0
  51. data/lib/getstream_ruby/generated/models/query_review_queue_response.rb +5 -0
  52. data/lib/getstream_ruby/generated/models/query_revision_history_request.rb +51 -0
  53. data/lib/getstream_ruby/generated/models/query_revision_history_response.rb +46 -0
  54. data/lib/getstream_ruby/generated/models/review_queue_item_response.rb +1 -1
  55. data/lib/getstream_ruby/generated/models/revision_history_response.rb +66 -0
  56. data/lib/getstream_ruby/generated/models/rule_builder_condition.rb +5 -0
  57. data/lib/getstream_ruby/generated/models/update_campaign_request.rb +96 -0
  58. data/lib/getstream_ruby/generated/models/update_feed_group_request.rb +5 -0
  59. data/lib/getstream_ruby/generated/models/{moderation_action_config.rb → upsert_action_config_item.rb} +22 -12
  60. data/lib/getstream_ruby/generated/models/upsert_action_config_request.rb +76 -0
  61. data/lib/getstream_ruby/generated/models/upsert_action_config_response.rb +36 -0
  62. data/lib/getstream_ruby/generated/models/webhook_failover_config.rb +46 -0
  63. data/lib/getstream_ruby/generated/moderation_client.rb +132 -0
  64. data/lib/getstream_ruby/version.rb +1 -1
  65. metadata +33 -94
  66. data/lib/getstream_ruby/generated/models/activity_location.rb +0 -36
  67. data/lib/getstream_ruby/generated/models/activity_marked_event.rb +0 -66
  68. data/lib/getstream_ruby/generated/models/automod_details.rb +0 -51
  69. data/lib/getstream_ruby/generated/models/ban.rb +0 -61
  70. data/lib/getstream_ruby/generated/models/ban_action_request.rb +0 -56
  71. data/lib/getstream_ruby/generated/models/channel.rb +0 -161
  72. data/lib/getstream_ruby/generated/models/channel_batch_updated_completed_event.rb +0 -81
  73. data/lib/getstream_ruby/generated/models/channel_batch_updated_started_event.rb +0 -81
  74. data/lib/getstream_ruby/generated/models/channel_member.rb +0 -141
  75. data/lib/getstream_ruby/generated/models/channel_member_lookup.rb +0 -66
  76. data/lib/getstream_ruby/generated/models/channel_messages.rb +0 -36
  77. data/lib/getstream_ruby/generated/models/channel_push_preferences.rb +0 -36
  78. data/lib/getstream_ruby/generated/models/config_overrides.rb +0 -96
  79. data/lib/getstream_ruby/generated/models/delete_activity_reaction_request.rb +0 -14
  80. data/lib/getstream_ruby/generated/models/delete_activity_request.rb +0 -14
  81. data/lib/getstream_ruby/generated/models/delete_block_list_request.rb +0 -14
  82. data/lib/getstream_ruby/generated/models/delete_bookmark_request.rb +0 -14
  83. data/lib/getstream_ruby/generated/models/delete_call_type_request.rb +0 -14
  84. data/lib/getstream_ruby/generated/models/delete_channel_request.rb +0 -14
  85. data/lib/getstream_ruby/generated/models/delete_command_request.rb +0 -14
  86. data/lib/getstream_ruby/generated/models/delete_comment_reaction_request.rb +0 -14
  87. data/lib/getstream_ruby/generated/models/delete_comment_request.rb +0 -14
  88. data/lib/getstream_ruby/generated/models/delete_custom_role_request.rb +0 -14
  89. data/lib/getstream_ruby/generated/models/delete_device_request.rb +0 -14
  90. data/lib/getstream_ruby/generated/models/delete_draft_request.rb +0 -14
  91. data/lib/getstream_ruby/generated/models/delete_external_storage_request.rb +0 -14
  92. data/lib/getstream_ruby/generated/models/delete_feed_group_request.rb +0 -14
  93. data/lib/getstream_ruby/generated/models/delete_feed_request.rb +0 -14
  94. data/lib/getstream_ruby/generated/models/delete_feed_view_request.rb +0 -14
  95. data/lib/getstream_ruby/generated/models/delete_import_v2_task_request.rb +0 -14
  96. data/lib/getstream_ruby/generated/models/delete_membership_level_request.rb +0 -14
  97. data/lib/getstream_ruby/generated/models/delete_message_request.rb +0 -14
  98. data/lib/getstream_ruby/generated/models/delete_moderation_config_request.rb +0 -14
  99. data/lib/getstream_ruby/generated/models/delete_poll_option_request.rb +0 -14
  100. data/lib/getstream_ruby/generated/models/delete_poll_request.rb +0 -14
  101. data/lib/getstream_ruby/generated/models/delete_poll_vote_request.rb +0 -14
  102. data/lib/getstream_ruby/generated/models/delete_push_provider_request.rb +0 -14
  103. data/lib/getstream_ruby/generated/models/delete_reaction_request.rb +0 -14
  104. data/lib/getstream_ruby/generated/models/delete_recording_request.rb +0 -14
  105. data/lib/getstream_ruby/generated/models/delete_reminder_request.rb +0 -14
  106. data/lib/getstream_ruby/generated/models/delete_segment_request.rb +0 -14
  107. data/lib/getstream_ruby/generated/models/delete_sip_inbound_routing_rule_request.rb +0 -14
  108. data/lib/getstream_ruby/generated/models/delete_sip_trunk_request.rb +0 -14
  109. data/lib/getstream_ruby/generated/models/delete_transcription_request.rb +0 -14
  110. data/lib/getstream_ruby/generated/models/delete_user_group_request.rb +0 -14
  111. data/lib/getstream_ruby/generated/models/delete_user_request.rb +0 -51
  112. data/lib/getstream_ruby/generated/models/denormalized_channel_fields.rb +0 -81
  113. data/lib/getstream_ruby/generated/models/device.rb +0 -66
  114. data/lib/getstream_ruby/generated/models/feeds_moderation_template_config.rb +0 -36
  115. data/lib/getstream_ruby/generated/models/file_delete_request.rb +0 -14
  116. data/lib/getstream_ruby/generated/models/flag.rb +0 -96
  117. data/lib/getstream_ruby/generated/models/flag_details.rb +0 -41
  118. data/lib/getstream_ruby/generated/models/flag_feedback.rb +0 -41
  119. data/lib/getstream_ruby/generated/models/flag_message_details.rb +0 -46
  120. data/lib/getstream_ruby/generated/models/follow_pair.rb +0 -36
  121. data/lib/getstream_ruby/generated/models/get_channel_type_request.rb +0 -14
  122. data/lib/getstream_ruby/generated/models/label.rb +0 -41
  123. data/lib/getstream_ruby/generated/models/limit_info.rb +0 -41
  124. data/lib/getstream_ruby/generated/models/mark_reviewed_request.rb +0 -41
  125. data/lib/getstream_ruby/generated/models/message_reminder.rb +0 -76
  126. data/lib/getstream_ruby/generated/models/own_user.rb +0 -166
  127. data/lib/getstream_ruby/generated/models/poll.rb +0 -131
  128. data/lib/getstream_ruby/generated/models/poll_option.rb +0 -41
  129. data/lib/getstream_ruby/generated/models/poll_vote.rb +0 -71
  130. data/lib/getstream_ruby/generated/models/privacy_settings.rb +0 -41
  131. data/lib/getstream_ruby/generated/models/push_preferences.rb +0 -51
  132. data/lib/getstream_ruby/generated/models/read_receipts.rb +0 -31
  133. data/lib/getstream_ruby/generated/models/restore_action_request.rb +0 -31
  134. data/lib/getstream_ruby/generated/models/retention_cleanup_run.rb +0 -76
  135. data/lib/getstream_ruby/generated/models/shadow_block_action_request.rb +0 -31
  136. data/lib/getstream_ruby/generated/models/sip_challenge.rb +0 -106
  137. data/lib/getstream_ruby/generated/models/sort_param.rb +0 -41
  138. data/lib/getstream_ruby/generated/models/typing_indicators.rb +0 -31
  139. data/lib/getstream_ruby/generated/models/unban_action_request.rb +0 -31
  140. data/lib/getstream_ruby/generated/models/unblock_action_request.rb +0 -31
  141. data/lib/getstream_ruby/generated/models/unfollow_request.rb +0 -14
  142. data/lib/getstream_ruby/generated/models/unpin_activity_request.rb +0 -14
  143. data/lib/getstream_ruby/generated/models/user_mute.rb +0 -51
  144. data/lib/getstream_ruby/generated/models/video_end_call_request.rb +0 -14
  145. data/lib/getstream_ruby/generated/models/video_kick_user_request.rb +0 -14
  146. data/lib/getstream_ruby/generated/models/webhook_event.rb +0 -31
@@ -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 GetActionConfigResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String]
14
+ attr_accessor :duration
15
+ # @!attribute action_config
16
+ # @return [Hash<String, Array<ModerationActionConfigResponse>>] Moderation action configs grouped by entity type, sorted by order ascending
17
+ attr_accessor :action_config
18
+
19
+ # Initialize with attributes
20
+ def initialize(attributes = {})
21
+ super(attributes)
22
+ @duration = attributes[:duration] || attributes['duration']
23
+ @action_config = attributes[:action_config] || attributes['action_config']
24
+ end
25
+
26
+ # Override field mappings for JSON serialization
27
+ def self.json_field_mappings
28
+ {
29
+ duration: 'duration',
30
+ action_config: 'action_config'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -18,6 +18,9 @@ module GetStream
18
18
  # @!attribute activity_selectors
19
19
  # @return [Array<ActivitySelectorConfig>] Configuration for activity selectors
20
20
  attr_accessor :activity_selectors
21
+ # @!attribute activity_filter
22
+ # @return [ActivityFilterConfig]
23
+ attr_accessor :activity_filter
21
24
  # @!attribute aggregation
22
25
  # @return [AggregationConfig]
23
26
  attr_accessor :aggregation
@@ -43,6 +46,7 @@ module GetStream
43
46
  @default_visibility = attributes[:default_visibility] || attributes['default_visibility'] || nil
44
47
  @activity_processors = attributes[:activity_processors] || attributes['activity_processors'] || nil
45
48
  @activity_selectors = attributes[:activity_selectors] || attributes['activity_selectors'] || nil
49
+ @activity_filter = attributes[:activity_filter] || attributes['activity_filter'] || nil
46
50
  @aggregation = attributes[:aggregation] || attributes['aggregation'] || nil
47
51
  @custom = attributes[:custom] || attributes['custom'] || nil
48
52
  @notification = attributes[:notification] || attributes['notification'] || nil
@@ -57,6 +61,7 @@ module GetStream
57
61
  default_visibility: 'default_visibility',
58
62
  activity_processors: 'activity_processors',
59
63
  activity_selectors: 'activity_selectors',
64
+ activity_filter: 'activity_filter',
60
65
  aggregation: 'aggregation',
61
66
  custom: 'custom',
62
67
  notification: 'notification',
@@ -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 GroupedChannelsBucket < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute channels
13
+ # @return [Array<ChannelStateResponseFields>] Channels returned for this bucket
14
+ attr_accessor :channels
15
+ # @!attribute unread_channels
16
+ # @return [Integer] Unread channels currently classified into this bucket
17
+ attr_accessor :unread_channels
18
+
19
+ # Initialize with attributes
20
+ def initialize(attributes = {})
21
+ super(attributes)
22
+ @channels = attributes[:channels] || attributes['channels']
23
+ @unread_channels = attributes[:unread_channels] || attributes['unread_channels'] || nil
24
+ end
25
+
26
+ # Override field mappings for JSON serialization
27
+ def self.json_field_mappings
28
+ {
29
+ channels: 'channels',
30
+ unread_channels: 'unread_channels'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -6,9 +6,12 @@ module GetStream
6
6
  module Generated
7
7
  module Models
8
8
  #
9
- class DeleteCollectionsRequest < GetStream::BaseModel
9
+ class GroupedQueryChannelsRequest < GetStream::BaseModel
10
10
 
11
11
  # Model attributes
12
+ # @!attribute limit
13
+ # @return [Integer] Max channels per bucket (default 10)
14
+ attr_accessor :limit
12
15
  # @!attribute user_id
13
16
  # @return [String]
14
17
  attr_accessor :user_id
@@ -19,6 +22,7 @@ module GetStream
19
22
  # Initialize with attributes
20
23
  def initialize(attributes = {})
21
24
  super(attributes)
25
+ @limit = attributes[:limit] || attributes['limit'] || nil
22
26
  @user_id = attributes[:user_id] || attributes['user_id'] || nil
23
27
  @user = attributes[:user] || attributes['user'] || nil
24
28
  end
@@ -26,6 +30,7 @@ module GetStream
26
30
  # Override field mappings for JSON serialization
27
31
  def self.json_field_mappings
28
32
  {
33
+ limit: 'limit',
29
34
  user_id: 'user_id',
30
35
  user: 'user'
31
36
  }
@@ -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 GroupedQueryChannelsResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String] Duration of the request in milliseconds
14
+ attr_accessor :duration
15
+ # @!attribute groups
16
+ # @return [Hash<String, GroupedChannelsBucket>] Predefined channel groups keyed by group name
17
+ attr_accessor :groups
18
+
19
+ # Initialize with attributes
20
+ def initialize(attributes = {})
21
+ super(attributes)
22
+ @duration = attributes[:duration] || attributes['duration']
23
+ @groups = attributes[:groups] || attributes['groups']
24
+ end
25
+
26
+ # Override field mappings for JSON serialization
27
+ def self.json_field_mappings
28
+ {
29
+ duration: 'duration',
30
+ groups: 'groups'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -24,6 +24,12 @@ module GetStream
24
24
  # @!attribute reason
25
25
  # @return [String] Reason for the action
26
26
  attr_accessor :reason
27
+ # @!attribute reporter_type
28
+ # @return [String] Type of reporter; 'api_integration' when the action was triggered by an API integration call with no authenticated user
29
+ attr_accessor :reporter_type
30
+ # @!attribute reporter_user_id
31
+ # @return [String] ID of the user who triggered the action; empty for automated actions
32
+ attr_accessor :reporter_user_id
27
33
  # @!attribute custom
28
34
  # @return [Object] Custom metadata for the action log
29
35
  attr_accessor :custom
@@ -36,6 +42,8 @@ module GetStream
36
42
  @entity_id = attributes[:entity_id] || attributes['entity_id']
37
43
  @entity_type = attributes[:entity_type] || attributes['entity_type']
38
44
  @reason = attributes[:reason] || attributes['reason'] || nil
45
+ @reporter_type = attributes[:reporter_type] || attributes['reporter_type'] || nil
46
+ @reporter_user_id = attributes[:reporter_user_id] || attributes['reporter_user_id'] || nil
39
47
  @custom = attributes[:custom] || attributes['custom'] || nil
40
48
  end
41
49
 
@@ -47,6 +55,8 @@ module GetStream
47
55
  entity_id: 'entity_id',
48
56
  entity_type: 'entity_type',
49
57
  reason: 'reason',
58
+ reporter_type: 'reporter_type',
59
+ reporter_user_id: 'reporter_user_id',
50
60
  custom: 'custom'
51
61
  }
52
62
  end
@@ -0,0 +1,101 @@
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 LabelResultResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute category
13
+ # @return [String] Category
14
+ attr_accessor :category
15
+ # @!attribute content
16
+ # @return [String] The moderated content
17
+ attr_accessor :content
18
+ # @!attribute content_type
19
+ # @return [String]
20
+ attr_accessor :content_type
21
+ # @!attribute created_at
22
+ # @return [DateTime] Timestamp
23
+ attr_accessor :created_at
24
+ # @!attribute harm_type
25
+ # @return [String] High-level harm category
26
+ attr_accessor :harm_type
27
+ # @!attribute id
28
+ # @return [String] Unique identifier
29
+ attr_accessor :id
30
+ # @!attribute language
31
+ # @return [String] Detected language
32
+ attr_accessor :language
33
+ # @!attribute recommended_action
34
+ # @return [String] Provider recommended action
35
+ attr_accessor :recommended_action
36
+ # @!attribute severity
37
+ # @return [String] Severity level
38
+ attr_accessor :severity
39
+ # @!attribute labels
40
+ # @return [Array<String>] Moderation labels
41
+ attr_accessor :labels
42
+ # @!attribute content_id
43
+ # @return [String] Customer-supplied identifier for the moderated content
44
+ attr_accessor :content_id
45
+ # @!attribute directed_at
46
+ # @return [String] Who the content is directed at (USER, GROUP, EVERYONE, NONE, etc.)
47
+ attr_accessor :directed_at
48
+ # @!attribute masked_content
49
+ # @return [String] Content with blocklisted tokens masked (when a blocklist rule with action=mask rewrote the original)
50
+ attr_accessor :masked_content
51
+ # @!attribute policy
52
+ # @return [String]
53
+ attr_accessor :policy
54
+ # @!attribute user_id
55
+ # @return [String] Customer-supplied user identifier for the content author
56
+ attr_accessor :user_id
57
+
58
+ # Initialize with attributes
59
+ def initialize(attributes = {})
60
+ super(attributes)
61
+ @category = attributes[:category] || attributes['category']
62
+ @content = attributes[:content] || attributes['content']
63
+ @content_type = attributes[:content_type] || attributes['content_type']
64
+ @created_at = attributes[:created_at] || attributes['created_at']
65
+ @harm_type = attributes[:harm_type] || attributes['harm_type']
66
+ @id = attributes[:id] || attributes['id']
67
+ @language = attributes[:language] || attributes['language']
68
+ @recommended_action = attributes[:recommended_action] || attributes['recommended_action']
69
+ @severity = attributes[:severity] || attributes['severity']
70
+ @labels = attributes[:labels] || attributes['labels']
71
+ @content_id = attributes[:content_id] || attributes['content_id'] || nil
72
+ @directed_at = attributes[:directed_at] || attributes['directed_at'] || nil
73
+ @masked_content = attributes[:masked_content] || attributes['masked_content'] || nil
74
+ @policy = attributes[:policy] || attributes['policy'] || nil
75
+ @user_id = attributes[:user_id] || attributes['user_id'] || nil
76
+ end
77
+
78
+ # Override field mappings for JSON serialization
79
+ def self.json_field_mappings
80
+ {
81
+ category: 'category',
82
+ content: 'content',
83
+ content_type: 'content_type',
84
+ created_at: 'created_at',
85
+ harm_type: 'harm_type',
86
+ id: 'id',
87
+ language: 'language',
88
+ recommended_action: 'recommended_action',
89
+ severity: 'severity',
90
+ labels: 'labels',
91
+ content_id: 'content_id',
92
+ directed_at: 'directed_at',
93
+ masked_content: 'masked_content',
94
+ policy: 'policy',
95
+ user_id: 'user_id'
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,56 @@
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 LabelsRequest < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute content
13
+ # @return [String] Content to moderate
14
+ attr_accessor :content
15
+ # @!attribute category
16
+ # @return [String] Optional category for filtering (max 128 chars)
17
+ attr_accessor :category
18
+ # @!attribute content_id
19
+ # @return [String] Customer-supplied identifier for the moderated content, for tracing
20
+ attr_accessor :content_id
21
+ # @!attribute content_type
22
+ # @return [String] Type of content: 'text' (default), 'message', or 'username'. Stored as-sent; only 'username' routes to the username moderation API.
23
+ attr_accessor :content_type
24
+ # @!attribute policy
25
+ # @return [String] Optional moderation policy key (max 128 chars)
26
+ attr_accessor :policy
27
+ # @!attribute user_id
28
+ # @return [String] Optional customer-supplied user identifier for the content author (max 256 chars). Enables filtering stored results by user_id.
29
+ attr_accessor :user_id
30
+
31
+ # Initialize with attributes
32
+ def initialize(attributes = {})
33
+ super(attributes)
34
+ @content = attributes[:content] || attributes['content']
35
+ @category = attributes[:category] || attributes['category'] || nil
36
+ @content_id = attributes[:content_id] || attributes['content_id'] || nil
37
+ @content_type = attributes[:content_type] || attributes['content_type'] || nil
38
+ @policy = attributes[:policy] || attributes['policy'] || nil
39
+ @user_id = attributes[:user_id] || attributes['user_id'] || nil
40
+ end
41
+
42
+ # Override field mappings for JSON serialization
43
+ def self.json_field_mappings
44
+ {
45
+ content: 'content',
46
+ category: 'category',
47
+ content_id: 'content_id',
48
+ content_type: 'content_type',
49
+ policy: 'policy',
50
+ user_id: 'user_id'
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
@@ -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 LabelsResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String]
14
+ attr_accessor :duration
15
+ # @!attribute recommended_action
16
+ # @return [String] Provider recommended action
17
+ attr_accessor :recommended_action
18
+ # @!attribute content_id
19
+ # @return [String] Customer-supplied identifier for the moderated content, for tracing
20
+ attr_accessor :content_id
21
+ # @!attribute directed_at
22
+ # @return [String] Who the content is directed at (USER, GROUP, EVERYONE, NONE, etc.), when the provider exposes it
23
+ attr_accessor :directed_at
24
+ # @!attribute harm_type
25
+ # @return [String] High-level harm category
26
+ attr_accessor :harm_type
27
+ # @!attribute language
28
+ # @return [String] Detected language
29
+ attr_accessor :language
30
+ # @!attribute masked_content
31
+ # @return [String] Content with blocklisted tokens masked or substituted. Present only when a blocklist rewrote the original content.
32
+ attr_accessor :masked_content
33
+ # @!attribute severity
34
+ # @return [String] Severity level
35
+ attr_accessor :severity
36
+ # @!attribute labels
37
+ # @return [Array<String>] Moderation labels detected
38
+ attr_accessor :labels
39
+
40
+ # Initialize with attributes
41
+ def initialize(attributes = {})
42
+ super(attributes)
43
+ @duration = attributes[:duration] || attributes['duration']
44
+ @recommended_action = attributes[:recommended_action] || attributes['recommended_action']
45
+ @content_id = attributes[:content_id] || attributes['content_id'] || nil
46
+ @directed_at = attributes[:directed_at] || attributes['directed_at'] || nil
47
+ @harm_type = attributes[:harm_type] || attributes['harm_type'] || nil
48
+ @language = attributes[:language] || attributes['language'] || nil
49
+ @masked_content = attributes[:masked_content] || attributes['masked_content'] || nil
50
+ @severity = attributes[:severity] || attributes['severity'] || nil
51
+ @labels = attributes[:labels] || attributes['labels'] || nil
52
+ end
53
+
54
+ # Override field mappings for JSON serialization
55
+ def self.json_field_mappings
56
+ {
57
+ duration: 'duration',
58
+ recommended_action: 'recommended_action',
59
+ content_id: 'content_id',
60
+ directed_at: 'directed_at',
61
+ harm_type: 'harm_type',
62
+ language: 'language',
63
+ masked_content: 'masked_content',
64
+ severity: 'severity',
65
+ labels: 'labels'
66
+ }
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
@@ -69,6 +69,9 @@ module GetStream
69
69
  # @!attribute channel_custom
70
70
  # @return [Object]
71
71
  attr_accessor :channel_custom
72
+ # @!attribute grouped_unread_channels
73
+ # @return [Hash<String, Integer>]
74
+ attr_accessor :grouped_unread_channels
72
75
  # @!attribute user
73
76
  # @return [UserResponseCommonFields]
74
77
  attr_accessor :user
@@ -96,6 +99,7 @@ module GetStream
96
99
  @thread_participants = attributes[:thread_participants] || attributes['thread_participants'] || nil
97
100
  @channel = attributes[:channel] || attributes['channel'] || nil
98
101
  @channel_custom = attributes[:channel_custom] || attributes['channel_custom'] || nil
102
+ @grouped_unread_channels = attributes[:grouped_unread_channels] || attributes['grouped_unread_channels'] || nil
99
103
  @user = attributes[:user] || attributes['user'] || nil
100
104
  end
101
105
 
@@ -122,6 +126,7 @@ module GetStream
122
126
  thread_participants: 'thread_participants',
123
127
  channel: 'channel',
124
128
  channel_custom: 'channel_custom',
129
+ grouped_unread_channels: 'grouped_unread_channels',
125
130
  user: 'user'
126
131
  }
127
132
  end
@@ -24,6 +24,9 @@ module GetStream
24
24
  # @!attribute order
25
25
  # @return [Integer] Display order (lower numbers shown first)
26
26
  attr_accessor :order
27
+ # @!attribute id
28
+ # @return [String]
29
+ attr_accessor :id
27
30
  # @!attribute queue_type
28
31
  # @return [String] Queue type this action config belongs to
29
32
  attr_accessor :queue_type
@@ -39,6 +42,7 @@ module GetStream
39
42
  @entity_type = attributes[:entity_type] || attributes['entity_type']
40
43
  @icon = attributes[:icon] || attributes['icon']
41
44
  @order = attributes[:order] || attributes['order']
45
+ @id = attributes[:id] || attributes['id'] || nil
42
46
  @queue_type = attributes[:queue_type] || attributes['queue_type'] || nil
43
47
  @custom = attributes[:custom] || attributes['custom'] || nil
44
48
  end
@@ -51,6 +55,7 @@ module GetStream
51
55
  entity_type: 'entity_type',
52
56
  icon: 'icon',
53
57
  order: 'order',
58
+ id: 'id',
54
59
  queue_type: 'queue_type',
55
60
  custom: 'custom'
56
61
  }
@@ -24,6 +24,9 @@ module GetStream
24
24
  # @!attribute flag_user_on_flagged_content
25
25
  # @return [Boolean]
26
26
  attr_accessor :flag_user_on_flagged_content
27
+ # @!attribute include_attachment_payload
28
+ # @return [Boolean]
29
+ attr_accessor :include_attachment_payload
27
30
  # @!attribute media_queue_blur_enabled
28
31
  # @return [Boolean]
29
32
  attr_accessor :media_queue_blur_enabled
@@ -48,6 +51,7 @@ module GetStream
48
51
  @disable_flagging_reviewed_entity = attributes[:disable_flagging_reviewed_entity] || attributes['disable_flagging_reviewed_entity'] || nil
49
52
  @escalation_queue_enabled = attributes[:escalation_queue_enabled] || attributes['escalation_queue_enabled'] || nil
50
53
  @flag_user_on_flagged_content = attributes[:flag_user_on_flagged_content] || attributes['flag_user_on_flagged_content'] || nil
54
+ @include_attachment_payload = attributes[:include_attachment_payload] || attributes['include_attachment_payload'] || nil
51
55
  @media_queue_blur_enabled = attributes[:media_queue_blur_enabled] || attributes['media_queue_blur_enabled'] || nil
52
56
  @allowed_moderation_action_reasons = attributes[:allowed_moderation_action_reasons] || attributes['allowed_moderation_action_reasons'] || nil
53
57
  @escalation_reasons = attributes[:escalation_reasons] || attributes['escalation_reasons'] || nil
@@ -63,6 +67,7 @@ module GetStream
63
67
  disable_flagging_reviewed_entity: 'disable_flagging_reviewed_entity',
64
68
  escalation_queue_enabled: 'escalation_queue_enabled',
65
69
  flag_user_on_flagged_content: 'flag_user_on_flagged_content',
70
+ include_attachment_payload: 'include_attachment_payload',
66
71
  media_queue_blur_enabled: 'media_queue_blur_enabled',
67
72
  allowed_moderation_action_reasons: 'allowed_moderation_action_reasons',
68
73
  escalation_reasons: 'escalation_reasons',
@@ -75,6 +75,9 @@ module GetStream
75
75
  # @!attribute channel_custom
76
76
  # @return [Object]
77
77
  attr_accessor :channel_custom
78
+ # @!attribute grouped_unread_channels
79
+ # @return [Hash<String, Integer>]
80
+ attr_accessor :grouped_unread_channels
78
81
  # @!attribute user
79
82
  # @return [UserResponseCommonFields]
80
83
  attr_accessor :user
@@ -104,6 +107,7 @@ module GetStream
104
107
  @unread_threads = attributes[:unread_threads] || attributes['unread_threads'] || nil
105
108
  @channel = attributes[:channel] || attributes['channel'] || nil
106
109
  @channel_custom = attributes[:channel_custom] || attributes['channel_custom'] || nil
110
+ @grouped_unread_channels = attributes[:grouped_unread_channels] || attributes['grouped_unread_channels'] || nil
107
111
  @user = attributes[:user] || attributes['user'] || nil
108
112
  end
109
113
 
@@ -132,6 +136,7 @@ module GetStream
132
136
  unread_threads: 'unread_threads',
133
137
  channel: 'channel',
134
138
  channel_custom: 'channel_custom',
139
+ grouped_unread_channels: 'grouped_unread_channels',
135
140
  user: 'user'
136
141
  }
137
142
  end
@@ -0,0 +1,61 @@
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 QueryLabelResultsRequest < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute limit
13
+ # @return [Integer]
14
+ attr_accessor :limit
15
+ # @!attribute next
16
+ # @return [String]
17
+ attr_accessor :next
18
+ # @!attribute prev
19
+ # @return [String]
20
+ attr_accessor :prev
21
+ # @!attribute user_id
22
+ # @return [String]
23
+ attr_accessor :user_id
24
+ # @!attribute sort
25
+ # @return [Array<SortParamRequest>] Sorting parameters
26
+ attr_accessor :sort
27
+ # @!attribute filter
28
+ # @return [Object] Filter conditions
29
+ attr_accessor :filter
30
+ # @!attribute user
31
+ # @return [UserRequest]
32
+ attr_accessor :user
33
+
34
+ # Initialize with attributes
35
+ def initialize(attributes = {})
36
+ super(attributes)
37
+ @limit = attributes[:limit] || attributes['limit'] || nil
38
+ @next = attributes[:next] || attributes['next'] || nil
39
+ @prev = attributes[:prev] || attributes['prev'] || nil
40
+ @user_id = attributes[:user_id] || attributes['user_id'] || nil
41
+ @sort = attributes[:sort] || attributes['sort'] || nil
42
+ @filter = attributes[:filter] || attributes['filter'] || nil
43
+ @user = attributes[:user] || attributes['user'] || nil
44
+ end
45
+
46
+ # Override field mappings for JSON serialization
47
+ def self.json_field_mappings
48
+ {
49
+ limit: 'limit',
50
+ next: 'next',
51
+ prev: 'prev',
52
+ user_id: 'user_id',
53
+ sort: 'sort',
54
+ filter: 'filter',
55
+ user: 'user'
56
+ }
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
@@ -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 QueryLabelResultsResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String]
14
+ attr_accessor :duration
15
+ # @!attribute label_results
16
+ # @return [Array<LabelResultResponse>] List of moderation label results
17
+ attr_accessor :label_results
18
+ # @!attribute next
19
+ # @return [String]
20
+ attr_accessor :next
21
+ # @!attribute prev
22
+ # @return [String]
23
+ attr_accessor :prev
24
+
25
+ # Initialize with attributes
26
+ def initialize(attributes = {})
27
+ super(attributes)
28
+ @duration = attributes[:duration] || attributes['duration']
29
+ @label_results = attributes[:label_results] || attributes['label_results']
30
+ @next = attributes[:next] || attributes['next'] || nil
31
+ @prev = attributes[:prev] || attributes['prev'] || nil
32
+ end
33
+
34
+ # Override field mappings for JSON serialization
35
+ def self.json_field_mappings
36
+ {
37
+ duration: 'duration',
38
+ label_results: 'label_results',
39
+ next: 'next',
40
+ prev: 'prev'
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -9,6 +9,9 @@ module GetStream
9
9
  class QueryReviewQueueRequest < GetStream::BaseModel
10
10
 
11
11
  # Model attributes
12
+ # @!attribute exclude_default_action_config
13
+ # @return [Boolean]
14
+ attr_accessor :exclude_default_action_config
12
15
  # @!attribute limit
13
16
  # @return [Integer]
14
17
  attr_accessor :limit
@@ -46,6 +49,7 @@ module GetStream
46
49
  # Initialize with attributes
47
50
  def initialize(attributes = {})
48
51
  super(attributes)
52
+ @exclude_default_action_config = attributes[:exclude_default_action_config] || attributes['exclude_default_action_config'] || nil
49
53
  @limit = attributes[:limit] || attributes['limit'] || nil
50
54
  @lock_count = attributes[:lock_count] || attributes['lock_count'] || nil
51
55
  @lock_duration = attributes[:lock_duration] || attributes['lock_duration'] || nil
@@ -62,6 +66,7 @@ module GetStream
62
66
  # Override field mappings for JSON serialization
63
67
  def self.json_field_mappings
64
68
  {
69
+ exclude_default_action_config: 'exclude_default_action_config',
65
70
  limit: 'limit',
66
71
  lock_count: 'lock_count',
67
72
  lock_duration: 'lock_duration',