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,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
+ # Basic response information
9
+ class ListQueuesResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String] Duration of the request in milliseconds
14
+ attr_accessor :duration
15
+ # @!attribute queues
16
+ # @return [Array<ModerationQueueResponse>]
17
+ attr_accessor :queues
18
+
19
+ # Initialize with attributes
20
+ def initialize(attributes = {})
21
+ super(attributes)
22
+ @duration = attributes[:duration] || attributes['duration']
23
+ @queues = attributes[:queues] || attributes['queues']
24
+ end
25
+
26
+ # Override field mappings for JSON serialization
27
+ def self.json_field_mappings
28
+ {
29
+ duration: 'duration',
30
+ queues: 'queues'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,126 @@
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 ModerationCallResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute backstage
13
+ # @return [Boolean]
14
+ attr_accessor :backstage
15
+ # @!attribute captioning
16
+ # @return [Boolean]
17
+ attr_accessor :captioning
18
+ # @!attribute cid
19
+ # @return [String]
20
+ attr_accessor :cid
21
+ # @!attribute created_at
22
+ # @return [DateTime]
23
+ attr_accessor :created_at
24
+ # @!attribute current_session_id
25
+ # @return [String]
26
+ attr_accessor :current_session_id
27
+ # @!attribute id
28
+ # @return [String]
29
+ attr_accessor :id
30
+ # @!attribute recording
31
+ # @return [Boolean]
32
+ attr_accessor :recording
33
+ # @!attribute transcribing
34
+ # @return [Boolean]
35
+ attr_accessor :transcribing
36
+ # @!attribute translating
37
+ # @return [Boolean]
38
+ attr_accessor :translating
39
+ # @!attribute type
40
+ # @return [String]
41
+ attr_accessor :type
42
+ # @!attribute updated_at
43
+ # @return [DateTime]
44
+ attr_accessor :updated_at
45
+ # @!attribute blocked_user_ids
46
+ # @return [Array<String>]
47
+ attr_accessor :blocked_user_ids
48
+ # @!attribute custom
49
+ # @return [Object]
50
+ attr_accessor :custom
51
+ # @!attribute channel_cid
52
+ # @return [String]
53
+ attr_accessor :channel_cid
54
+ # @!attribute ended_at
55
+ # @return [DateTime]
56
+ attr_accessor :ended_at
57
+ # @!attribute join_ahead_time_seconds
58
+ # @return [Integer]
59
+ attr_accessor :join_ahead_time_seconds
60
+ # @!attribute routing_number
61
+ # @return [String]
62
+ attr_accessor :routing_number
63
+ # @!attribute starts_at
64
+ # @return [DateTime]
65
+ attr_accessor :starts_at
66
+ # @!attribute team
67
+ # @return [String]
68
+ attr_accessor :team
69
+ # @!attribute created_by
70
+ # @return [UserResponse]
71
+ attr_accessor :created_by
72
+
73
+ # Initialize with attributes
74
+ def initialize(attributes = {})
75
+ super(attributes)
76
+ @backstage = attributes[:backstage] || attributes['backstage']
77
+ @captioning = attributes[:captioning] || attributes['captioning']
78
+ @cid = attributes[:cid] || attributes['cid']
79
+ @created_at = attributes[:created_at] || attributes['created_at']
80
+ @current_session_id = attributes[:current_session_id] || attributes['current_session_id']
81
+ @id = attributes[:id] || attributes['id']
82
+ @recording = attributes[:recording] || attributes['recording']
83
+ @transcribing = attributes[:transcribing] || attributes['transcribing']
84
+ @translating = attributes[:translating] || attributes['translating']
85
+ @type = attributes[:type] || attributes['type']
86
+ @updated_at = attributes[:updated_at] || attributes['updated_at']
87
+ @blocked_user_ids = attributes[:blocked_user_ids] || attributes['blocked_user_ids']
88
+ @custom = attributes[:custom] || attributes['custom']
89
+ @channel_cid = attributes[:channel_cid] || attributes['channel_cid'] || nil
90
+ @ended_at = attributes[:ended_at] || attributes['ended_at'] || nil
91
+ @join_ahead_time_seconds = attributes[:join_ahead_time_seconds] || attributes['join_ahead_time_seconds'] || nil
92
+ @routing_number = attributes[:routing_number] || attributes['routing_number'] || nil
93
+ @starts_at = attributes[:starts_at] || attributes['starts_at'] || nil
94
+ @team = attributes[:team] || attributes['team'] || nil
95
+ @created_by = attributes[:created_by] || attributes['created_by'] || nil
96
+ end
97
+
98
+ # Override field mappings for JSON serialization
99
+ def self.json_field_mappings
100
+ {
101
+ backstage: 'backstage',
102
+ captioning: 'captioning',
103
+ cid: 'cid',
104
+ created_at: 'created_at',
105
+ current_session_id: 'current_session_id',
106
+ id: 'id',
107
+ recording: 'recording',
108
+ transcribing: 'transcribing',
109
+ translating: 'translating',
110
+ type: 'type',
111
+ updated_at: 'updated_at',
112
+ blocked_user_ids: 'blocked_user_ids',
113
+ custom: 'custom',
114
+ channel_cid: 'channel_cid',
115
+ ended_at: 'ended_at',
116
+ join_ahead_time_seconds: 'join_ahead_time_seconds',
117
+ routing_number: 'routing_number',
118
+ starts_at: 'starts_at',
119
+ team: 'team',
120
+ created_by: 'created_by'
121
+ }
122
+ end
123
+ end
124
+ end
125
+ end
126
+ end
@@ -9,12 +9,15 @@ module GetStream
9
9
  class ModerationDashboardPreferences < GetStream::BaseModel
10
10
 
11
11
  # Model attributes
12
- # @!attribute analyze_max_image_size_bytes
13
- # @return [Integer]
14
- attr_accessor :analyze_max_image_size_bytes
15
12
  # @!attribute async_review_queue_upsert
16
13
  # @return [Boolean]
17
14
  attr_accessor :async_review_queue_upsert
15
+ # @!attribute block_foreign_cdn_attachments
16
+ # @return [Boolean]
17
+ attr_accessor :block_foreign_cdn_attachments
18
+ # @!attribute custom_views_enabled
19
+ # @return [Boolean]
20
+ attr_accessor :custom_views_enabled
18
21
  # @!attribute disable_audit_logs
19
22
  # @return [Boolean]
20
23
  attr_accessor :disable_audit_logs
@@ -33,9 +36,6 @@ module GetStream
33
36
  # @!attribute media_queue_blur_enabled
34
37
  # @return [Boolean]
35
38
  attr_accessor :media_queue_blur_enabled
36
- # @!attribute webhook_header_client_request_id_key
37
- # @return [String]
38
- attr_accessor :webhook_header_client_request_id_key
39
39
  # @!attribute allowed_moderation_action_reasons
40
40
  # @return [Array<String>]
41
41
  attr_accessor :allowed_moderation_action_reasons
@@ -55,15 +55,15 @@ module GetStream
55
55
  # Initialize with attributes
56
56
  def initialize(attributes = {})
57
57
  super(attributes)
58
- @analyze_max_image_size_bytes = attributes[:analyze_max_image_size_bytes] || attributes['analyze_max_image_size_bytes'] || nil
59
58
  @async_review_queue_upsert = attributes[:async_review_queue_upsert] || attributes['async_review_queue_upsert'] || nil
59
+ @block_foreign_cdn_attachments = attributes[:block_foreign_cdn_attachments] || attributes['block_foreign_cdn_attachments'] || nil
60
+ @custom_views_enabled = attributes[:custom_views_enabled] || attributes['custom_views_enabled'] || nil
60
61
  @disable_audit_logs = attributes[:disable_audit_logs] || attributes['disable_audit_logs'] || nil
61
62
  @disable_flagging_reviewed_entity = attributes[:disable_flagging_reviewed_entity] || attributes['disable_flagging_reviewed_entity'] || nil
62
63
  @escalation_queue_enabled = attributes[:escalation_queue_enabled] || attributes['escalation_queue_enabled'] || nil
63
64
  @flag_user_on_flagged_content = attributes[:flag_user_on_flagged_content] || attributes['flag_user_on_flagged_content'] || nil
64
65
  @include_attachment_payload = attributes[:include_attachment_payload] || attributes['include_attachment_payload'] || nil
65
66
  @media_queue_blur_enabled = attributes[:media_queue_blur_enabled] || attributes['media_queue_blur_enabled'] || nil
66
- @webhook_header_client_request_id_key = attributes[:webhook_header_client_request_id_key] || attributes['webhook_header_client_request_id_key'] || nil
67
67
  @allowed_moderation_action_reasons = attributes[:allowed_moderation_action_reasons] || attributes['allowed_moderation_action_reasons'] || nil
68
68
  @escalation_reasons = attributes[:escalation_reasons] || attributes['escalation_reasons'] || nil
69
69
  @filterable_custom_keys = attributes[:filterable_custom_keys] || attributes['filterable_custom_keys'] || nil
@@ -74,15 +74,15 @@ module GetStream
74
74
  # Override field mappings for JSON serialization
75
75
  def self.json_field_mappings
76
76
  {
77
- analyze_max_image_size_bytes: 'analyze_max_image_size_bytes',
78
77
  async_review_queue_upsert: 'async_review_queue_upsert',
78
+ block_foreign_cdn_attachments: 'block_foreign_cdn_attachments',
79
+ custom_views_enabled: 'custom_views_enabled',
79
80
  disable_audit_logs: 'disable_audit_logs',
80
81
  disable_flagging_reviewed_entity: 'disable_flagging_reviewed_entity',
81
82
  escalation_queue_enabled: 'escalation_queue_enabled',
82
83
  flag_user_on_flagged_content: 'flag_user_on_flagged_content',
83
84
  include_attachment_payload: 'include_attachment_payload',
84
85
  media_queue_blur_enabled: 'media_queue_blur_enabled',
85
- webhook_header_client_request_id_key: 'webhook_header_client_request_id_key',
86
86
  allowed_moderation_action_reasons: 'allowed_moderation_action_reasons',
87
87
  escalation_reasons: 'escalation_reasons',
88
88
  filterable_custom_keys: 'filterable_custom_keys',
@@ -9,9 +9,18 @@ module GetStream
9
9
  class ModerationPayload < GetStream::BaseModel
10
10
 
11
11
  # Model attributes
12
+ # @!attribute audios
13
+ # @return [Array<String>]
14
+ attr_accessor :audios
15
+ # @!attribute image_ordered_keys
16
+ # @return [Array<String>]
17
+ attr_accessor :image_ordered_keys
12
18
  # @!attribute images
13
19
  # @return [Array<String>]
14
20
  attr_accessor :images
21
+ # @!attribute text_ordered_keys
22
+ # @return [Array<String>]
23
+ attr_accessor :text_ordered_keys
15
24
  # @!attribute texts
16
25
  # @return [Array<String>]
17
26
  attr_accessor :texts
@@ -21,23 +30,39 @@ module GetStream
21
30
  # @!attribute custom
22
31
  # @return [Object]
23
32
  attr_accessor :custom
33
+ # @!attribute image_ids
34
+ # @return [Hash<String, String>]
35
+ attr_accessor :image_ids
36
+ # @!attribute text_ids
37
+ # @return [Hash<String, String>]
38
+ attr_accessor :text_ids
24
39
 
25
40
  # Initialize with attributes
26
41
  def initialize(attributes = {})
27
42
  super(attributes)
43
+ @audios = attributes[:audios] || attributes['audios'] || nil
44
+ @image_ordered_keys = attributes[:image_ordered_keys] || attributes['image_ordered_keys'] || nil
28
45
  @images = attributes[:images] || attributes['images'] || nil
46
+ @text_ordered_keys = attributes[:text_ordered_keys] || attributes['text_ordered_keys'] || nil
29
47
  @texts = attributes[:texts] || attributes['texts'] || nil
30
48
  @videos = attributes[:videos] || attributes['videos'] || nil
31
49
  @custom = attributes[:custom] || attributes['custom'] || nil
50
+ @image_ids = attributes[:image_ids] || attributes['image_ids'] || nil
51
+ @text_ids = attributes[:text_ids] || attributes['text_ids'] || nil
32
52
  end
33
53
 
34
54
  # Override field mappings for JSON serialization
35
55
  def self.json_field_mappings
36
56
  {
57
+ audios: 'audios',
58
+ image_ordered_keys: 'image_ordered_keys',
37
59
  images: 'images',
60
+ text_ordered_keys: 'text_ordered_keys',
38
61
  texts: 'texts',
39
62
  videos: 'videos',
40
- custom: 'custom'
63
+ custom: 'custom',
64
+ image_ids: 'image_ids',
65
+ text_ids: 'text_ids'
41
66
  }
42
67
  end
43
68
  end
@@ -9,6 +9,9 @@ module GetStream
9
9
  class ModerationPayloadRequest < GetStream::BaseModel
10
10
 
11
11
  # Model attributes
12
+ # @!attribute audios
13
+ # @return [Array<String>] Audio URLs to moderate
14
+ attr_accessor :audios
12
15
  # @!attribute images
13
16
  # @return [Array<String>] Image URLs to moderate (max 30)
14
17
  attr_accessor :images
@@ -25,6 +28,7 @@ module GetStream
25
28
  # Initialize with attributes
26
29
  def initialize(attributes = {})
27
30
  super(attributes)
31
+ @audios = attributes[:audios] || attributes['audios'] || nil
28
32
  @images = attributes[:images] || attributes['images'] || nil
29
33
  @texts = attributes[:texts] || attributes['texts'] || nil
30
34
  @videos = attributes[:videos] || attributes['videos'] || 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
+ audios: 'audios',
37
42
  images: 'images',
38
43
  texts: 'texts',
39
44
  videos: 'videos',
@@ -9,9 +9,18 @@ module GetStream
9
9
  class ModerationPayloadResponse < GetStream::BaseModel
10
10
 
11
11
  # Model attributes
12
+ # @!attribute audios
13
+ # @return [Array<String>] Audio URLs to moderate
14
+ attr_accessor :audios
15
+ # @!attribute image_ordered_keys
16
+ # @return [Array<String>] Caller-supplied keys for images, index-aligned with images[]
17
+ attr_accessor :image_ordered_keys
12
18
  # @!attribute images
13
19
  # @return [Array<String>] Image URLs to moderate
14
20
  attr_accessor :images
21
+ # @!attribute text_ordered_keys
22
+ # @return [Array<String>] Caller-supplied keys for texts (e.g. "title", "description"), index-aligned with texts[]
23
+ attr_accessor :text_ordered_keys
15
24
  # @!attribute texts
16
25
  # @return [Array<String>] Text content to moderate
17
26
  attr_accessor :texts
@@ -21,23 +30,39 @@ module GetStream
21
30
  # @!attribute custom
22
31
  # @return [Object] Custom data for moderation
23
32
  attr_accessor :custom
33
+ # @!attribute image_ids
34
+ # @return [Hash<String, String>] Caller-supplied content IDs per image key (from content_ids on /analyze)
35
+ attr_accessor :image_ids
36
+ # @!attribute text_ids
37
+ # @return [Hash<String, String>] Caller-supplied content IDs per text key (from content_ids on /analyze)
38
+ attr_accessor :text_ids
24
39
 
25
40
  # Initialize with attributes
26
41
  def initialize(attributes = {})
27
42
  super(attributes)
43
+ @audios = attributes[:audios] || attributes['audios'] || nil
44
+ @image_ordered_keys = attributes[:image_ordered_keys] || attributes['image_ordered_keys'] || nil
28
45
  @images = attributes[:images] || attributes['images'] || nil
46
+ @text_ordered_keys = attributes[:text_ordered_keys] || attributes['text_ordered_keys'] || nil
29
47
  @texts = attributes[:texts] || attributes['texts'] || nil
30
48
  @videos = attributes[:videos] || attributes['videos'] || nil
31
49
  @custom = attributes[:custom] || attributes['custom'] || nil
50
+ @image_ids = attributes[:image_ids] || attributes['image_ids'] || nil
51
+ @text_ids = attributes[:text_ids] || attributes['text_ids'] || nil
32
52
  end
33
53
 
34
54
  # Override field mappings for JSON serialization
35
55
  def self.json_field_mappings
36
56
  {
57
+ audios: 'audios',
58
+ image_ordered_keys: 'image_ordered_keys',
37
59
  images: 'images',
60
+ text_ordered_keys: 'text_ordered_keys',
38
61
  texts: 'texts',
39
62
  videos: 'videos',
40
- custom: 'custom'
63
+ custom: 'custom',
64
+ image_ids: 'image_ids',
65
+ text_ids: 'text_ids'
41
66
  }
42
67
  end
43
68
  end
@@ -0,0 +1,76 @@
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 ModerationQueueResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute created_at
13
+ # @return [DateTime]
14
+ attr_accessor :created_at
15
+ # @!attribute created_by
16
+ # @return [String]
17
+ attr_accessor :created_by
18
+ # @!attribute description
19
+ # @return [String]
20
+ attr_accessor :description
21
+ # @!attribute id
22
+ # @return [String]
23
+ attr_accessor :id
24
+ # @!attribute item_count
25
+ # @return [Integer]
26
+ attr_accessor :item_count
27
+ # @!attribute name
28
+ # @return [String]
29
+ attr_accessor :name
30
+ # @!attribute type
31
+ # @return [String]
32
+ attr_accessor :type
33
+ # @!attribute updated_at
34
+ # @return [DateTime]
35
+ attr_accessor :updated_at
36
+ # @!attribute sort
37
+ # @return [Array<Object>]
38
+ attr_accessor :sort
39
+ # @!attribute filters
40
+ # @return [Object]
41
+ attr_accessor :filters
42
+
43
+ # Initialize with attributes
44
+ def initialize(attributes = {})
45
+ super(attributes)
46
+ @created_at = attributes[:created_at] || attributes['created_at']
47
+ @created_by = attributes[:created_by] || attributes['created_by']
48
+ @description = attributes[:description] || attributes['description']
49
+ @id = attributes[:id] || attributes['id']
50
+ @item_count = attributes[:item_count] || attributes['item_count']
51
+ @name = attributes[:name] || attributes['name']
52
+ @type = attributes[:type] || attributes['type']
53
+ @updated_at = attributes[:updated_at] || attributes['updated_at']
54
+ @sort = attributes[:sort] || attributes['sort']
55
+ @filters = attributes[:filters] || attributes['filters']
56
+ end
57
+
58
+ # Override field mappings for JSON serialization
59
+ def self.json_field_mappings
60
+ {
61
+ created_at: 'created_at',
62
+ created_by: 'created_by',
63
+ description: 'description',
64
+ id: 'id',
65
+ item_count: 'item_count',
66
+ name: 'name',
67
+ type: 'type',
68
+ updated_at: 'updated_at',
69
+ sort: 'sort',
70
+ filters: 'filters'
71
+ }
72
+ end
73
+ end
74
+ end
75
+ end
76
+ 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 OCRContentParameters < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute label_operator
13
+ # @return [String]
14
+ attr_accessor :label_operator
15
+ # @!attribute severity
16
+ # @return [String]
17
+ attr_accessor :severity
18
+ # @!attribute harm_labels
19
+ # @return [Array<String>]
20
+ attr_accessor :harm_labels
21
+
22
+ # Initialize with attributes
23
+ def initialize(attributes = {})
24
+ super(attributes)
25
+ @label_operator = attributes[:label_operator] || attributes['label_operator'] || nil
26
+ @severity = attributes[:severity] || attributes['severity'] || nil
27
+ @harm_labels = attributes[:harm_labels] || attributes['harm_labels'] || nil
28
+ end
29
+
30
+ # Override field mappings for JSON serialization
31
+ def self.json_field_mappings
32
+ {
33
+ label_operator: 'label_operator',
34
+ severity: 'severity',
35
+ harm_labels: 'harm_labels'
36
+ }
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -30,6 +30,9 @@ module GetStream
30
30
  # @!attribute owner
31
31
  # @return [Boolean] Whether this permission applies to resource owner or not
32
32
  attr_accessor :owner
33
+ # @!attribute owner_resource
34
+ # @return [String] Resource type that defines ownership for this permission's action (e.g. 'Channel' for CreateMessage, 'Message' for UpdateMessage). Identical across all variants of an action; primarily meaningful for owner grants.
35
+ attr_accessor :owner_resource
33
36
  # @!attribute same_team
34
37
  # @return [Boolean] Whether this permission applies to teammates (multi-tenancy mode only)
35
38
  attr_accessor :same_team
@@ -50,6 +53,7 @@ module GetStream
50
53
  @level = attributes[:level] || attributes['level']
51
54
  @name = attributes[:name] || attributes['name']
52
55
  @owner = attributes[:owner] || attributes['owner']
56
+ @owner_resource = attributes[:owner_resource] || attributes['owner_resource']
53
57
  @same_team = attributes[:same_team] || attributes['same_team']
54
58
  @tags = attributes[:tags] || attributes['tags']
55
59
  @condition = attributes[:condition] || attributes['condition'] || nil
@@ -65,6 +69,7 @@ module GetStream
65
69
  level: 'level',
66
70
  name: 'name',
67
71
  owner: 'owner',
72
+ owner_resource: 'owner_resource',
68
73
  same_team: 'same_team',
69
74
  tags: 'tags',
70
75
  condition: 'condition'
@@ -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 QueryActivitySharesResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String] Duration of the request in milliseconds
14
+ attr_accessor :duration
15
+ # @!attribute shares
16
+ # @return [Array<ShareResponse>]
17
+ attr_accessor :shares
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
+ @shares = attributes[:shares] || attributes['shares']
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
+ shares: 'shares',
39
+ next: 'next',
40
+ prev: 'prev'
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -22,7 +22,7 @@ module GetStream
22
22
  # @return [Array<String>] Deprecated: use keyframe_label_classifications instead. Available L1 harm labels for keyframe rules
23
23
  attr_accessor :keyframe_labels
24
24
  # @!attribute ocr_labels
25
- # @return [Array<String>] Available harm labels for keyframe OCR rules. Mirrors `closed_caption_labels` today but kept as a separate field so the two pickers can diverge later.
25
+ # @return [Array<String>] Available harm labels for OCR-based rule conditions (keyframe_ocr_rule and ocr_content). Mirrors `closed_caption_labels` today but kept as a separate field so the pickers can diverge later.
26
26
  attr_accessor :ocr_labels
27
27
  # @!attribute rules
28
28
  # @return [Array<ModerationRuleV2Response>] List of moderation rules
@@ -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
+ # Basic response information
9
+ class QueueResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String] Duration of the request in milliseconds
14
+ attr_accessor :duration
15
+ # @!attribute queue
16
+ # @return [ModerationQueueResponse]
17
+ attr_accessor :queue
18
+
19
+ # Initialize with attributes
20
+ def initialize(attributes = {})
21
+ super(attributes)
22
+ @duration = attributes[:duration] || attributes['duration']
23
+ @queue = attributes[:queue] || attributes['queue'] || nil
24
+ end
25
+
26
+ # Override field mappings for JSON serialization
27
+ def self.json_field_mappings
28
+ {
29
+ duration: 'duration',
30
+ queue: 'queue'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -91,7 +91,7 @@ module GetStream
91
91
  # @return [UserResponse]
92
92
  attr_accessor :assigned_to
93
93
  # @!attribute call
94
- # @return [CallResponse]
94
+ # @return [ModerationCallResponse]
95
95
  attr_accessor :call
96
96
  # @!attribute entity_creator
97
97
  # @return [EntityCreatorResponse]
@@ -54,6 +54,9 @@ module GetStream
54
54
  # @!attribute keyframe_rule_params
55
55
  # @return [KeyframeRuleParameters]
56
56
  attr_accessor :keyframe_rule_params
57
+ # @!attribute ocr_content_params
58
+ # @return [OCRContentParameters]
59
+ attr_accessor :ocr_content_params
57
60
  # @!attribute text_content_params
58
61
  # @return [TextContentParameters]
59
62
  attr_accessor :text_content_params
@@ -103,6 +106,7 @@ module GetStream
103
106
  @image_rule_params = attributes[:image_rule_params] || attributes['image_rule_params'] || nil
104
107
  @keyframe_ocr_rule_params = attributes[:keyframe_ocr_rule_params] || attributes['keyframe_ocr_rule_params'] || nil
105
108
  @keyframe_rule_params = attributes[:keyframe_rule_params] || attributes['keyframe_rule_params'] || nil
109
+ @ocr_content_params = attributes[:ocr_content_params] || attributes['ocr_content_params'] || nil
106
110
  @text_content_params = attributes[:text_content_params] || attributes['text_content_params'] || nil
107
111
  @text_rule_params = attributes[:text_rule_params] || attributes['text_rule_params'] || nil
108
112
  @user_created_within_params = attributes[:user_created_within_params] || attributes['user_created_within_params'] || nil
@@ -133,6 +137,7 @@ module GetStream
133
137
  image_rule_params: 'image_rule_params',
134
138
  keyframe_ocr_rule_params: 'keyframe_ocr_rule_params',
135
139
  keyframe_rule_params: 'keyframe_rule_params',
140
+ ocr_content_params: 'ocr_content_params',
136
141
  text_content_params: 'text_content_params',
137
142
  text_rule_params: 'text_rule_params',
138
143
  user_created_within_params: 'user_created_within_params',