getstream-ruby 8.0.2 → 9.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 (55) hide show
  1. checksums.yaml +4 -4
  2. data/lib/getstream_ruby/generated/chat_client.rb +29 -0
  3. data/lib/getstream_ruby/generated/feed.rb +16 -4
  4. data/lib/getstream_ruby/generated/feeds_client.rb +160 -10
  5. data/lib/getstream_ruby/generated/models/activity_response.rb +10 -0
  6. data/lib/getstream_ruby/generated/models/add_comment_reaction_request.rb +5 -0
  7. data/lib/getstream_ruby/generated/models/add_comment_reaction_response.rb +18 -2
  8. data/lib/getstream_ruby/generated/models/add_reaction_request.rb +5 -0
  9. data/lib/getstream_ruby/generated/models/add_reaction_response.rb +18 -2
  10. data/lib/getstream_ruby/generated/models/ai_audio_config_request.rb +36 -0
  11. data/lib/getstream_ruby/generated/models/ai_audio_config_response.rb +41 -0
  12. data/lib/getstream_ruby/generated/models/async_export_error_event.rb +1 -1
  13. data/lib/getstream_ruby/generated/models/async_export_review_queue_event.rb +66 -0
  14. data/lib/getstream_ruby/generated/models/batch_query_activity_reactions_request.rb +66 -0
  15. data/lib/getstream_ruby/generated/models/batch_query_activity_reactions_response.rb +46 -0
  16. data/lib/getstream_ruby/generated/models/batch_query_comment_reactions_request.rb +66 -0
  17. data/lib/getstream_ruby/generated/models/batch_query_comment_reactions_response.rb +46 -0
  18. data/lib/getstream_ruby/generated/models/check_response.rb +5 -0
  19. data/lib/getstream_ruby/generated/models/closed_caption_rule_parameters.rb +5 -0
  20. data/lib/getstream_ruby/generated/models/comment_response.rb +5 -0
  21. data/lib/getstream_ruby/generated/models/config_response.rb +5 -0
  22. data/lib/getstream_ruby/generated/models/create_queue_request.rb +61 -0
  23. data/lib/getstream_ruby/generated/models/delete_queue_request.rb +36 -0
  24. data/lib/getstream_ruby/generated/models/feeds_share_response.rb +41 -0
  25. data/lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb +10 -0
  26. data/lib/getstream_ruby/generated/models/feeds_v3_comment_response.rb +5 -0
  27. data/lib/getstream_ruby/generated/models/filter_config_response.rb +5 -0
  28. data/lib/getstream_ruby/generated/models/list_queues_response.rb +36 -0
  29. data/lib/getstream_ruby/generated/models/moderation_call_response.rb +126 -0
  30. data/lib/getstream_ruby/generated/models/moderation_dashboard_preferences.rb +10 -10
  31. data/lib/getstream_ruby/generated/models/moderation_payload.rb +26 -1
  32. data/lib/getstream_ruby/generated/models/moderation_payload_request.rb +5 -0
  33. data/lib/getstream_ruby/generated/models/moderation_payload_response.rb +26 -1
  34. data/lib/getstream_ruby/generated/models/moderation_queue_response.rb +76 -0
  35. data/lib/getstream_ruby/generated/models/ocr_content_parameters.rb +41 -0
  36. data/lib/getstream_ruby/generated/models/permission.rb +5 -0
  37. data/lib/getstream_ruby/generated/models/query_activity_shares_response.rb +46 -0
  38. data/lib/getstream_ruby/generated/models/query_moderation_rules_response.rb +1 -1
  39. data/lib/getstream_ruby/generated/models/queue_response.rb +36 -0
  40. data/lib/getstream_ruby/generated/models/review_queue_item_response.rb +1 -1
  41. data/lib/getstream_ruby/generated/models/rule_builder_condition.rb +5 -0
  42. data/lib/getstream_ruby/generated/models/share_response.rb +41 -0
  43. data/lib/getstream_ruby/generated/models/threaded_comment_response.rb +5 -0
  44. data/lib/getstream_ruby/generated/models/translate_activity_request.rb +31 -0
  45. data/lib/getstream_ruby/generated/models/translate_activity_response.rb +36 -0
  46. data/lib/getstream_ruby/generated/models/translate_comment_request.rb +31 -0
  47. data/lib/getstream_ruby/generated/models/translate_comment_response.rb +36 -0
  48. data/lib/getstream_ruby/generated/models/triggered_rule_response.rb +5 -0
  49. data/lib/getstream_ruby/generated/models/update_app_request.rb +10 -0
  50. data/lib/getstream_ruby/generated/models/update_queue_request.rb +56 -0
  51. data/lib/getstream_ruby/generated/models/upsert_config_request.rb +5 -0
  52. data/lib/getstream_ruby/generated/moderation_client.rb +91 -0
  53. data/lib/getstream_ruby/generated/webhook.rb +7 -0
  54. data/lib/getstream_ruby/version.rb +1 -1
  55. metadata +25 -3
@@ -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 AIAudioConfigResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute enabled
13
+ # @return [Boolean]
14
+ attr_accessor :enabled
15
+ # @!attribute profile
16
+ # @return [String]
17
+ attr_accessor :profile
18
+ # @!attribute rules
19
+ # @return [Array<BodyguardRule>]
20
+ attr_accessor :rules
21
+
22
+ # Initialize with attributes
23
+ def initialize(attributes = {})
24
+ super(attributes)
25
+ @enabled = attributes[:enabled] || attributes['enabled']
26
+ @profile = attributes[:profile] || attributes['profile']
27
+ @rules = attributes[:rules] || attributes['rules']
28
+ end
29
+
30
+ # Override field mappings for JSON serialization
31
+ def self.json_field_mappings
32
+ {
33
+ enabled: 'enabled',
34
+ profile: 'profile',
35
+ rules: 'rules'
36
+ }
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -43,7 +43,7 @@ module GetStream
43
43
  @started_at = attributes[:started_at] || attributes['started_at']
44
44
  @task_id = attributes[:task_id] || attributes['task_id']
45
45
  @custom = attributes[:custom] || attributes['custom']
46
- @type = attributes[:type] || attributes['type'] || "export.bulk_image_moderation.error"
46
+ @type = attributes[:type] || attributes['type'] || "export.channels.error"
47
47
  @received_at = attributes[:received_at] || attributes['received_at'] || nil
48
48
  end
49
49
 
@@ -0,0 +1,66 @@
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 AsyncExportReviewQueueEvent < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute created_at
13
+ # @return [DateTime]
14
+ attr_accessor :created_at
15
+ # @!attribute finished_at
16
+ # @return [DateTime]
17
+ attr_accessor :finished_at
18
+ # @!attribute started_at
19
+ # @return [DateTime]
20
+ attr_accessor :started_at
21
+ # @!attribute task_id
22
+ # @return [String]
23
+ attr_accessor :task_id
24
+ # @!attribute url
25
+ # @return [String]
26
+ attr_accessor :url
27
+ # @!attribute custom
28
+ # @return [Object]
29
+ attr_accessor :custom
30
+ # @!attribute type
31
+ # @return [String]
32
+ attr_accessor :type
33
+ # @!attribute received_at
34
+ # @return [DateTime]
35
+ attr_accessor :received_at
36
+
37
+ # Initialize with attributes
38
+ def initialize(attributes = {})
39
+ super(attributes)
40
+ @created_at = attributes[:created_at] || attributes['created_at']
41
+ @finished_at = attributes[:finished_at] || attributes['finished_at']
42
+ @started_at = attributes[:started_at] || attributes['started_at']
43
+ @task_id = attributes[:task_id] || attributes['task_id']
44
+ @url = attributes[:url] || attributes['url']
45
+ @custom = attributes[:custom] || attributes['custom']
46
+ @type = attributes[:type] || attributes['type'] || "export.review_queue.success"
47
+ @received_at = attributes[:received_at] || attributes['received_at'] || nil
48
+ end
49
+
50
+ # Override field mappings for JSON serialization
51
+ def self.json_field_mappings
52
+ {
53
+ created_at: 'created_at',
54
+ finished_at: 'finished_at',
55
+ started_at: 'started_at',
56
+ task_id: 'task_id',
57
+ url: 'url',
58
+ custom: 'custom',
59
+ type: 'type',
60
+ received_at: 'received_at'
61
+ }
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,66 @@
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 BatchQueryActivityReactionsRequest < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute activity_ids
13
+ # @return [Array<String>] Activity IDs to fetch the user's reactions for (max 100)
14
+ attr_accessor :activity_ids
15
+ # @!attribute limit
16
+ # @return [Integer]
17
+ attr_accessor :limit
18
+ # @!attribute next
19
+ # @return [String]
20
+ attr_accessor :next
21
+ # @!attribute prev
22
+ # @return [String]
23
+ attr_accessor :prev
24
+ # @!attribute user_id
25
+ # @return [String] Server-side only. The user whose reactions to fetch; defaults to the authenticated user for client-side requests
26
+ attr_accessor :user_id
27
+ # @!attribute sort
28
+ # @return [Array<SortParamRequest>]
29
+ attr_accessor :sort
30
+ # @!attribute filter
31
+ # @return [Object] Optional filter on reaction_type or created_at
32
+ attr_accessor :filter
33
+ # @!attribute user
34
+ # @return [UserRequest]
35
+ attr_accessor :user
36
+
37
+ # Initialize with attributes
38
+ def initialize(attributes = {})
39
+ super(attributes)
40
+ @activity_ids = attributes[:activity_ids] || attributes['activity_ids']
41
+ @limit = attributes[:limit] || attributes['limit'] || nil
42
+ @next = attributes[:next] || attributes['next'] || nil
43
+ @prev = attributes[:prev] || attributes['prev'] || nil
44
+ @user_id = attributes[:user_id] || attributes['user_id'] || nil
45
+ @sort = attributes[:sort] || attributes['sort'] || nil
46
+ @filter = attributes[:filter] || attributes['filter'] || nil
47
+ @user = attributes[:user] || attributes['user'] || nil
48
+ end
49
+
50
+ # Override field mappings for JSON serialization
51
+ def self.json_field_mappings
52
+ {
53
+ activity_ids: 'activity_ids',
54
+ limit: 'limit',
55
+ next: 'next',
56
+ prev: 'prev',
57
+ user_id: 'user_id',
58
+ sort: 'sort',
59
+ filter: 'filter',
60
+ user: 'user'
61
+ }
62
+ end
63
+ end
64
+ end
65
+ end
66
+ 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
+ # Basic response information
9
+ class BatchQueryActivityReactionsResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String] Duration of the request in milliseconds
14
+ attr_accessor :duration
15
+ # @!attribute reactions
16
+ # @return [Array<FeedsReactionResponse>]
17
+ attr_accessor :reactions
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
+ @reactions = attributes[:reactions] || attributes['reactions']
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
+ reactions: 'reactions',
39
+ next: 'next',
40
+ prev: 'prev'
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,66 @@
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 BatchQueryCommentReactionsRequest < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute comment_ids
13
+ # @return [Array<String>] Comment IDs to fetch the user's reactions for (max 100)
14
+ attr_accessor :comment_ids
15
+ # @!attribute limit
16
+ # @return [Integer]
17
+ attr_accessor :limit
18
+ # @!attribute next
19
+ # @return [String]
20
+ attr_accessor :next
21
+ # @!attribute prev
22
+ # @return [String]
23
+ attr_accessor :prev
24
+ # @!attribute user_id
25
+ # @return [String] Server-side only. The user whose reactions to fetch; defaults to the authenticated user for client-side requests
26
+ attr_accessor :user_id
27
+ # @!attribute sort
28
+ # @return [Array<SortParamRequest>]
29
+ attr_accessor :sort
30
+ # @!attribute filter
31
+ # @return [Object] Optional filter on reaction_type or created_at
32
+ attr_accessor :filter
33
+ # @!attribute user
34
+ # @return [UserRequest]
35
+ attr_accessor :user
36
+
37
+ # Initialize with attributes
38
+ def initialize(attributes = {})
39
+ super(attributes)
40
+ @comment_ids = attributes[:comment_ids] || attributes['comment_ids']
41
+ @limit = attributes[:limit] || attributes['limit'] || nil
42
+ @next = attributes[:next] || attributes['next'] || nil
43
+ @prev = attributes[:prev] || attributes['prev'] || nil
44
+ @user_id = attributes[:user_id] || attributes['user_id'] || nil
45
+ @sort = attributes[:sort] || attributes['sort'] || nil
46
+ @filter = attributes[:filter] || attributes['filter'] || nil
47
+ @user = attributes[:user] || attributes['user'] || nil
48
+ end
49
+
50
+ # Override field mappings for JSON serialization
51
+ def self.json_field_mappings
52
+ {
53
+ comment_ids: 'comment_ids',
54
+ limit: 'limit',
55
+ next: 'next',
56
+ prev: 'prev',
57
+ user_id: 'user_id',
58
+ sort: 'sort',
59
+ filter: 'filter',
60
+ user: 'user'
61
+ }
62
+ end
63
+ end
64
+ end
65
+ end
66
+ 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
+ # Basic response information
9
+ class BatchQueryCommentReactionsResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String] Duration of the request in milliseconds
14
+ attr_accessor :duration
15
+ # @!attribute reactions
16
+ # @return [Array<FeedsReactionResponse>]
17
+ attr_accessor :reactions
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
+ @reactions = attributes[:reactions] || attributes['reactions']
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
+ reactions: 'reactions',
39
+ next: 'next',
40
+ prev: 'prev'
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -21,6 +21,9 @@ module GetStream
21
21
  # @!attribute task_id
22
22
  # @return [String] ID of the running moderation task
23
23
  attr_accessor :task_id
24
+ # @!attribute triggered_rules
25
+ # @return [Array<TriggeredRuleResponse>] All moderation rules triggered by this check (content, user, and call rules), with their resolved actions
26
+ attr_accessor :triggered_rules
24
27
  # @!attribute item
25
28
  # @return [ReviewQueueItemResponse]
26
29
  attr_accessor :item
@@ -35,6 +38,7 @@ module GetStream
35
38
  @recommended_action = attributes[:recommended_action] || attributes['recommended_action']
36
39
  @status = attributes[:status] || attributes['status']
37
40
  @task_id = attributes[:task_id] || attributes['task_id'] || nil
41
+ @triggered_rules = attributes[:triggered_rules] || attributes['triggered_rules'] || nil
38
42
  @item = attributes[:item] || attributes['item'] || nil
39
43
  @triggered_rule = attributes[:triggered_rule] || attributes['triggered_rule'] || nil
40
44
  end
@@ -46,6 +50,7 @@ module GetStream
46
50
  recommended_action: 'recommended_action',
47
51
  status: 'status',
48
52
  task_id: 'task_id',
53
+ triggered_rules: 'triggered_rules',
49
54
  item: 'item',
50
55
  triggered_rule: 'triggered_rule'
51
56
  }
@@ -9,6 +9,9 @@ module GetStream
9
9
  class ClosedCaptionRuleParameters < GetStream::BaseModel
10
10
 
11
11
  # Model attributes
12
+ # @!attribute severity
13
+ # @return [String]
14
+ attr_accessor :severity
12
15
  # @!attribute threshold
13
16
  # @return [Integer]
14
17
  attr_accessor :threshold
@@ -25,6 +28,7 @@ module GetStream
25
28
  # Initialize with attributes
26
29
  def initialize(attributes = {})
27
30
  super(attributes)
31
+ @severity = attributes[:severity] || attributes['severity'] || nil
28
32
  @threshold = attributes[:threshold] || attributes['threshold'] || nil
29
33
  @time_window = attributes[:time_window] || attributes['time_window'] || nil
30
34
  @harm_labels = attributes[:harm_labels] || attributes['harm_labels'] || nil
@@ -34,6 +38,7 @@ module GetStream
34
38
  # Override field mappings for JSON serialization
35
39
  def self.json_field_mappings
36
40
  {
41
+ severity: 'severity',
37
42
  threshold: 'threshold',
38
43
  time_window: 'time_window',
39
44
  harm_labels: 'harm_labels',
@@ -81,6 +81,9 @@ module GetStream
81
81
  # @!attribute custom
82
82
  # @return [Object] Custom data for the comment
83
83
  attr_accessor :custom
84
+ # @!attribute i18n
85
+ # @return [Hash<String, String>]
86
+ attr_accessor :i18n
84
87
  # @!attribute moderation
85
88
  # @return [ModerationV2Response]
86
89
  attr_accessor :moderation
@@ -115,6 +118,7 @@ module GetStream
115
118
  @attachments = attributes[:attachments] || attributes['attachments'] || nil
116
119
  @latest_reactions = attributes[:latest_reactions] || attributes['latest_reactions'] || nil
117
120
  @custom = attributes[:custom] || attributes['custom'] || nil
121
+ @i18n = attributes[:i18n] || attributes['i18n'] || nil
118
122
  @moderation = attributes[:moderation] || attributes['moderation'] || nil
119
123
  @reaction_groups = attributes[:reaction_groups] || attributes['reaction_groups'] || nil
120
124
  end
@@ -146,6 +150,7 @@ module GetStream
146
150
  attachments: 'attachments',
147
151
  latest_reactions: 'latest_reactions',
148
152
  custom: 'custom',
153
+ i18n: 'i18n',
149
154
  moderation: 'moderation',
150
155
  reaction_groups: 'reaction_groups'
151
156
  }
@@ -33,6 +33,9 @@ module GetStream
33
33
  # @!attribute available_bodyguard_profiles
34
34
  # @return [Array<BodyguardProfileSummary>] Names of Bodyguard credential profiles registered on this app. The dashboard uses this list to render the profile picker on the AI Text section.
35
35
  attr_accessor :available_bodyguard_profiles
36
+ # @!attribute ai_audio_config
37
+ # @return [AIAudioConfigResponse]
38
+ attr_accessor :ai_audio_config
36
39
  # @!attribute ai_image_config
37
40
  # @return [AIImageConfig]
38
41
  attr_accessor :ai_image_config
@@ -81,6 +84,7 @@ module GetStream
81
84
  @supported_video_call_harm_types = attributes[:supported_video_call_harm_types] || attributes['supported_video_call_harm_types']
82
85
  @ai_image_label_definitions = attributes[:ai_image_label_definitions] || attributes['ai_image_label_definitions'] || nil
83
86
  @available_bodyguard_profiles = attributes[:available_bodyguard_profiles] || attributes['available_bodyguard_profiles'] || nil
87
+ @ai_audio_config = attributes[:ai_audio_config] || attributes['ai_audio_config'] || nil
84
88
  @ai_image_config = attributes[:ai_image_config] || attributes['ai_image_config'] || nil
85
89
  @ai_image_subclassifications = attributes[:ai_image_subclassifications] || attributes['ai_image_subclassifications'] || nil
86
90
  @ai_text_config = attributes[:ai_text_config] || attributes['ai_text_config'] || nil
@@ -106,6 +110,7 @@ module GetStream
106
110
  supported_video_call_harm_types: 'supported_video_call_harm_types',
107
111
  ai_image_label_definitions: 'ai_image_label_definitions',
108
112
  available_bodyguard_profiles: 'available_bodyguard_profiles',
113
+ ai_audio_config: 'ai_audio_config',
109
114
  ai_image_config: 'ai_image_config',
110
115
  ai_image_subclassifications: 'ai_image_subclassifications',
111
116
  ai_text_config: 'ai_text_config',
@@ -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 CreateQueueRequest < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute name
13
+ # @return [String]
14
+ attr_accessor :name
15
+ # @!attribute type
16
+ # @return [String]
17
+ attr_accessor :type
18
+ # @!attribute description
19
+ # @return [String]
20
+ attr_accessor :description
21
+ # @!attribute user_id
22
+ # @return [String]
23
+ attr_accessor :user_id
24
+ # @!attribute sort
25
+ # @return [Array<Object>]
26
+ attr_accessor :sort
27
+ # @!attribute filters
28
+ # @return [Object]
29
+ attr_accessor :filters
30
+ # @!attribute user
31
+ # @return [UserRequest]
32
+ attr_accessor :user
33
+
34
+ # Initialize with attributes
35
+ def initialize(attributes = {})
36
+ super(attributes)
37
+ @name = attributes[:name] || attributes['name']
38
+ @type = attributes[:type] || attributes['type']
39
+ @description = attributes[:description] || attributes['description'] || nil
40
+ @user_id = attributes[:user_id] || attributes['user_id'] || nil
41
+ @sort = attributes[:sort] || attributes['sort'] || nil
42
+ @filters = attributes[:filters] || attributes['filters'] || 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
+ name: 'name',
50
+ type: 'type',
51
+ description: 'description',
52
+ user_id: 'user_id',
53
+ sort: 'sort',
54
+ filters: 'filters',
55
+ user: 'user'
56
+ }
57
+ end
58
+ end
59
+ end
60
+ end
61
+ 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 DeleteQueueRequest < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute user_id
13
+ # @return [String]
14
+ attr_accessor :user_id
15
+ # @!attribute user
16
+ # @return [UserRequest]
17
+ attr_accessor :user
18
+
19
+ # Initialize with attributes
20
+ def initialize(attributes = {})
21
+ super(attributes)
22
+ @user_id = attributes[:user_id] || attributes['user_id'] || nil
23
+ @user = attributes[:user] || attributes['user'] || nil
24
+ end
25
+
26
+ # Override field mappings for JSON serialization
27
+ def self.json_field_mappings
28
+ {
29
+ user_id: 'user_id',
30
+ user: 'user'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ 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 FeedsShareResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute activity_id
13
+ # @return [String]
14
+ attr_accessor :activity_id
15
+ # @!attribute created_at
16
+ # @return [DateTime]
17
+ attr_accessor :created_at
18
+ # @!attribute user
19
+ # @return [UserResponse]
20
+ attr_accessor :user
21
+
22
+ # Initialize with attributes
23
+ def initialize(attributes = {})
24
+ super(attributes)
25
+ @activity_id = attributes[:activity_id] || attributes['activity_id']
26
+ @created_at = attributes[:created_at] || attributes['created_at']
27
+ @user = attributes[:user] || attributes['user']
28
+ end
29
+
30
+ # Override field mappings for JSON serialization
31
+ def self.json_field_mappings
32
+ {
33
+ activity_id: 'activity_id',
34
+ created_at: 'created_at',
35
+ user: 'user'
36
+ }
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -129,9 +129,15 @@ module GetStream
129
129
  # @!attribute friend_reactions
130
130
  # @return [Array<FeedsReactionResponse>]
131
131
  attr_accessor :friend_reactions
132
+ # @!attribute latest_shares
133
+ # @return [Array<FeedsShareResponse>]
134
+ attr_accessor :latest_shares
132
135
  # @!attribute current_feed
133
136
  # @return [FeedsFeedResponse]
134
137
  attr_accessor :current_feed
138
+ # @!attribute i18n
139
+ # @return [Hash<String, String>]
140
+ attr_accessor :i18n
135
141
  # @!attribute location
136
142
  # @return [FeedsActivityLocation]
137
143
  attr_accessor :location
@@ -197,7 +203,9 @@ module GetStream
197
203
  @text = attributes[:text] || attributes['text'] || nil
198
204
  @visibility_tag = attributes[:visibility_tag] || attributes['visibility_tag'] || nil
199
205
  @friend_reactions = attributes[:friend_reactions] || attributes['friend_reactions'] || nil
206
+ @latest_shares = attributes[:latest_shares] || attributes['latest_shares'] || nil
200
207
  @current_feed = attributes[:current_feed] || attributes['current_feed'] || nil
208
+ @i18n = attributes[:i18n] || attributes['i18n'] || nil
201
209
  @location = attributes[:location] || attributes['location'] || nil
202
210
  @metrics = attributes[:metrics] || attributes['metrics'] || nil
203
211
  @moderation = attributes[:moderation] || attributes['moderation'] || nil
@@ -250,7 +258,9 @@ module GetStream
250
258
  text: 'text',
251
259
  visibility_tag: 'visibility_tag',
252
260
  friend_reactions: 'friend_reactions',
261
+ latest_shares: 'latest_shares',
253
262
  current_feed: 'current_feed',
263
+ i18n: 'i18n',
254
264
  location: 'location',
255
265
  metrics: 'metrics',
256
266
  moderation: 'moderation',
@@ -81,6 +81,9 @@ module GetStream
81
81
  # @!attribute custom
82
82
  # @return [Object]
83
83
  attr_accessor :custom
84
+ # @!attribute i18n
85
+ # @return [Hash<String, String>]
86
+ attr_accessor :i18n
84
87
  # @!attribute moderation
85
88
  # @return [ModerationV2Response]
86
89
  attr_accessor :moderation
@@ -115,6 +118,7 @@ module GetStream
115
118
  @attachments = attributes[:attachments] || attributes['attachments'] || nil
116
119
  @latest_reactions = attributes[:latest_reactions] || attributes['latest_reactions'] || nil
117
120
  @custom = attributes[:custom] || attributes['custom'] || nil
121
+ @i18n = attributes[:i18n] || attributes['i18n'] || nil
118
122
  @moderation = attributes[:moderation] || attributes['moderation'] || nil
119
123
  @reaction_groups = attributes[:reaction_groups] || attributes['reaction_groups'] || nil
120
124
  end
@@ -146,6 +150,7 @@ module GetStream
146
150
  attachments: 'attachments',
147
151
  latest_reactions: 'latest_reactions',
148
152
  custom: 'custom',
153
+ i18n: 'i18n',
149
154
  moderation: 'moderation',
150
155
  reaction_groups: 'reaction_groups'
151
156
  }
@@ -12,6 +12,9 @@ module GetStream
12
12
  # @!attribute llm_labels
13
13
  # @return [Array<String>] LLM moderation labels available as filter values
14
14
  attr_accessor :llm_labels
15
+ # @!attribute ai_image_labels
16
+ # @return [Array<String>] AI image moderation labels available as filter values. Reflects the app's effective image taxonomy: custom Bodyguard taxonomy when enabled, otherwise the standard L1 label set.
17
+ attr_accessor :ai_image_labels
15
18
  # @!attribute ai_text_labels
16
19
  # @return [Array<String>] AI text moderation labels available as filter values
17
20
  attr_accessor :ai_text_labels
@@ -26,6 +29,7 @@ module GetStream
26
29
  def initialize(attributes = {})
27
30
  super(attributes)
28
31
  @llm_labels = attributes[:llm_labels] || attributes['llm_labels']
32
+ @ai_image_labels = attributes[:ai_image_labels] || attributes['ai_image_labels'] || nil
29
33
  @ai_text_labels = attributes[:ai_text_labels] || attributes['ai_text_labels'] || nil
30
34
  @config_keys = attributes[:config_keys] || attributes['config_keys'] || nil
31
35
  @filterable_custom_keys = attributes[:filterable_custom_keys] || attributes['filterable_custom_keys'] || nil
@@ -35,6 +39,7 @@ module GetStream
35
39
  def self.json_field_mappings
36
40
  {
37
41
  llm_labels: 'llm_labels',
42
+ ai_image_labels: 'ai_image_labels',
38
43
  ai_text_labels: 'ai_text_labels',
39
44
  config_keys: 'config_keys',
40
45
  filterable_custom_keys: 'filterable_custom_keys'