getstream-ruby 4.1.0 → 5.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 (80) hide show
  1. checksums.yaml +4 -4
  2. data/lib/getstream_ruby/generated/chat_client.rb +7 -10
  3. data/lib/getstream_ruby/generated/common_client.rb +56 -0
  4. data/lib/getstream_ruby/generated/feeds_client.rb +49 -3
  5. data/lib/getstream_ruby/generated/models/activity_request.rb +2 -1
  6. data/lib/getstream_ruby/generated/models/activity_response.rb +6 -1
  7. data/lib/getstream_ruby/generated/models/add_activity_request.rb +2 -1
  8. data/lib/getstream_ruby/generated/models/add_comment_reaction_request.rb +2 -1
  9. data/lib/getstream_ruby/generated/models/add_comment_request.rb +2 -1
  10. data/lib/getstream_ruby/generated/models/add_reaction_request.rb +2 -1
  11. data/lib/getstream_ruby/generated/models/add_user_group_members_request.rb +5 -0
  12. data/lib/getstream_ruby/generated/models/aggregation_config.rb +6 -1
  13. data/lib/getstream_ruby/generated/models/async_export_error_event.rb +1 -1
  14. data/lib/getstream_ruby/generated/models/call_level_event_payload.rb +46 -0
  15. data/lib/getstream_ruby/generated/models/call_stats_participant_counts.rb +10 -0
  16. data/lib/getstream_ruby/generated/models/check_request.rb +5 -0
  17. data/lib/getstream_ruby/generated/models/comment_restored_event.rb +66 -0
  18. data/lib/getstream_ruby/generated/models/delete_retention_policy_request.rb +1 -1
  19. data/lib/getstream_ruby/generated/models/enriched_collection.rb +61 -0
  20. data/lib/getstream_ruby/generated/models/enrichment_options.rb +5 -0
  21. data/lib/getstream_ruby/generated/models/escalate_payload.rb +41 -0
  22. data/lib/getstream_ruby/generated/models/escalation_metadata.rb +41 -0
  23. data/lib/getstream_ruby/generated/models/feeds_preferences.rb +6 -1
  24. data/lib/getstream_ruby/generated/models/feeds_preferences_response.rb +5 -0
  25. data/lib/getstream_ruby/generated/models/feeds_reaction_group.rb +41 -0
  26. data/lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb +206 -0
  27. data/lib/getstream_ruby/generated/models/feeds_v3_comment_response.rb +141 -0
  28. data/lib/getstream_ruby/generated/models/follow_request.rb +2 -1
  29. data/lib/getstream_ruby/generated/models/get_external_storage_awss3_response.rb +46 -0
  30. data/lib/getstream_ruby/generated/models/get_external_storage_response.rb +51 -0
  31. data/lib/getstream_ruby/generated/models/get_flag_count_request.rb +36 -0
  32. data/lib/getstream_ruby/generated/models/get_flag_count_response.rb +36 -0
  33. data/lib/getstream_ruby/generated/models/get_retention_policy_runs_request.rb +51 -0
  34. data/lib/getstream_ruby/generated/models/get_retention_policy_runs_response.rb +12 -2
  35. data/lib/getstream_ruby/generated/models/image_content_parameters.rb +5 -0
  36. data/lib/getstream_ruby/generated/models/insert_action_log_request.rb +56 -0
  37. data/lib/getstream_ruby/generated/models/insert_action_log_response.rb +31 -0
  38. data/lib/getstream_ruby/generated/models/moderation_action_config_response.rb +5 -0
  39. data/lib/getstream_ruby/generated/models/moderation_dashboard_preferences.rb +10 -0
  40. data/lib/getstream_ruby/generated/models/notification_target.rb +5 -0
  41. data/lib/getstream_ruby/generated/models/notification_trigger.rb +6 -1
  42. data/lib/getstream_ruby/generated/models/query_banned_users_payload.rb +1 -1
  43. data/lib/getstream_ruby/generated/models/query_call_members_request.rb +2 -2
  44. data/lib/getstream_ruby/generated/models/query_call_participants_request.rb +1 -1
  45. data/lib/getstream_ruby/generated/models/query_call_session_participant_stats_response.rb +6 -1
  46. data/lib/getstream_ruby/generated/models/query_call_stats_request.rb +2 -2
  47. data/lib/getstream_ruby/generated/models/query_calls_request.rb +1 -1
  48. data/lib/getstream_ruby/generated/models/query_channels_request.rb +1 -1
  49. data/lib/getstream_ruby/generated/models/query_members_payload.rb +3 -3
  50. data/lib/getstream_ruby/generated/models/query_message_flags_payload.rb +2 -2
  51. data/lib/getstream_ruby/generated/models/query_user_feedback_request.rb +2 -2
  52. data/lib/getstream_ruby/generated/models/query_users_payload.rb +3 -3
  53. data/lib/getstream_ruby/generated/models/reaction_group_response.rb +6 -1
  54. data/lib/getstream_ruby/generated/models/reaction_group_user_response.rb +41 -0
  55. data/lib/getstream_ruby/generated/models/restore_comment_request.rb +36 -0
  56. data/lib/getstream_ruby/generated/models/restore_comment_response.rb +41 -0
  57. data/lib/getstream_ruby/generated/models/retention_run_response.rb +46 -0
  58. data/lib/getstream_ruby/generated/models/review_queue_item_response.rb +22 -2
  59. data/lib/getstream_ruby/generated/models/set_retention_policy_request.rb +2 -2
  60. data/lib/getstream_ruby/generated/models/submit_action_request.rb +6 -1
  61. data/lib/getstream_ruby/generated/models/text_content_parameters.rb +5 -0
  62. data/lib/getstream_ruby/generated/models/triggered_rule_response.rb +2 -2
  63. data/lib/getstream_ruby/generated/models/unfollow_batch_request.rb +1 -1
  64. data/lib/getstream_ruby/generated/models/unfollow_pair.rb +41 -0
  65. data/lib/getstream_ruby/generated/models/update_activity_partial_change_request.rb +2 -1
  66. data/lib/getstream_ruby/generated/models/update_activity_partial_request.rb +2 -1
  67. data/lib/getstream_ruby/generated/models/update_activity_request.rb +2 -1
  68. data/lib/getstream_ruby/generated/models/update_comment_partial_request.rb +67 -0
  69. data/lib/getstream_ruby/generated/models/update_comment_partial_response.rb +36 -0
  70. data/lib/getstream_ruby/generated/models/update_comment_request.rb +2 -1
  71. data/lib/getstream_ruby/generated/models/update_follow_request.rb +2 -1
  72. data/lib/getstream_ruby/generated/models/upsert_external_storage_awss3_request.rb +46 -0
  73. data/lib/getstream_ruby/generated/models/upsert_external_storage_request.rb +36 -0
  74. data/lib/getstream_ruby/generated/models/upsert_external_storage_response.rb +31 -0
  75. data/lib/getstream_ruby/generated/models/validate_external_storage_response.rb +31 -0
  76. data/lib/getstream_ruby/generated/models/video_content_parameters.rb +5 -0
  77. data/lib/getstream_ruby/generated/moderation_client.rb +34 -0
  78. data/lib/getstream_ruby/generated/webhook.rb +4 -0
  79. data/lib/getstream_ruby/version.rb +1 -1
  80. metadata +28 -2
@@ -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 GetFlagCountResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute count
13
+ # @return [Integer] Total number of flags against the specified user's content
14
+ attr_accessor :count
15
+ # @!attribute duration
16
+ # @return [String]
17
+ attr_accessor :duration
18
+
19
+ # Initialize with attributes
20
+ def initialize(attributes = {})
21
+ super(attributes)
22
+ @count = attributes[:count] || attributes['count']
23
+ @duration = attributes[:duration] || attributes['duration']
24
+ end
25
+
26
+ # Override field mappings for JSON serialization
27
+ def self.json_field_mappings
28
+ {
29
+ count: 'count',
30
+ duration: 'duration'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,51 @@
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 GetRetentionPolicyRunsRequest < 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 sort
22
+ # @return [Array<SortParamRequest>] Array of sort parameters
23
+ attr_accessor :sort
24
+ # @!attribute filter_conditions
25
+ # @return [Object] Filter conditions to apply to the query
26
+ attr_accessor :filter_conditions
27
+
28
+ # Initialize with attributes
29
+ def initialize(attributes = {})
30
+ super(attributes)
31
+ @limit = attributes[:limit] || attributes['limit'] || nil
32
+ @next = attributes[:next] || attributes['next'] || nil
33
+ @prev = attributes[:prev] || attributes['prev'] || nil
34
+ @sort = attributes[:sort] || attributes['sort'] || nil
35
+ @filter_conditions = attributes[:filter_conditions] || attributes['filter_conditions'] || nil
36
+ end
37
+
38
+ # Override field mappings for JSON serialization
39
+ def self.json_field_mappings
40
+ {
41
+ limit: 'limit',
42
+ next: 'next',
43
+ prev: 'prev',
44
+ sort: 'sort',
45
+ filter_conditions: 'filter_conditions'
46
+ }
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
@@ -13,21 +13,31 @@ module GetStream
13
13
  # @return [String] Duration of the request in milliseconds
14
14
  attr_accessor :duration
15
15
  # @!attribute runs
16
- # @return [Array<RetentionCleanupRun>]
16
+ # @return [Array<RetentionRunResponse>]
17
17
  attr_accessor :runs
18
+ # @!attribute next
19
+ # @return [String]
20
+ attr_accessor :next
21
+ # @!attribute prev
22
+ # @return [String]
23
+ attr_accessor :prev
18
24
 
19
25
  # Initialize with attributes
20
26
  def initialize(attributes = {})
21
27
  super(attributes)
22
28
  @duration = attributes[:duration] || attributes['duration']
23
29
  @runs = attributes[:runs] || attributes['runs']
30
+ @next = attributes[:next] || attributes['next'] || nil
31
+ @prev = attributes[:prev] || attributes['prev'] || nil
24
32
  end
25
33
 
26
34
  # Override field mappings for JSON serialization
27
35
  def self.json_field_mappings
28
36
  {
29
37
  duration: 'duration',
30
- runs: 'runs'
38
+ runs: 'runs',
39
+ next: 'next',
40
+ prev: 'prev'
31
41
  }
32
42
  end
33
43
  end
@@ -9,6 +9,9 @@ module GetStream
9
9
  class ImageContentParameters < GetStream::BaseModel
10
10
 
11
11
  # Model attributes
12
+ # @!attribute label_operator
13
+ # @return [String]
14
+ attr_accessor :label_operator
12
15
  # @!attribute min_confidence
13
16
  # @return [Float]
14
17
  attr_accessor :min_confidence
@@ -19,6 +22,7 @@ module GetStream
19
22
  # Initialize with attributes
20
23
  def initialize(attributes = {})
21
24
  super(attributes)
25
+ @label_operator = attributes[:label_operator] || attributes['label_operator'] || nil
22
26
  @min_confidence = attributes[:min_confidence] || attributes['min_confidence'] || nil
23
27
  @harm_labels = attributes[:harm_labels] || attributes['harm_labels'] || 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
+ label_operator: 'label_operator',
29
34
  min_confidence: 'min_confidence',
30
35
  harm_labels: 'harm_labels'
31
36
  }
@@ -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
+ # Request to insert a moderation action log entry
9
+ class InsertActionLogRequest < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute action_type
13
+ # @return [String] Type of moderation action taken
14
+ attr_accessor :action_type
15
+ # @!attribute entity_creator_id
16
+ # @return [String] ID of the user who created the entity
17
+ attr_accessor :entity_creator_id
18
+ # @!attribute entity_id
19
+ # @return [String] ID of the entity the action was taken on
20
+ attr_accessor :entity_id
21
+ # @!attribute entity_type
22
+ # @return [String] Type of entity the action was taken on
23
+ attr_accessor :entity_type
24
+ # @!attribute reason
25
+ # @return [String] Reason for the action
26
+ attr_accessor :reason
27
+ # @!attribute custom
28
+ # @return [Object] Custom metadata for the action log
29
+ attr_accessor :custom
30
+
31
+ # Initialize with attributes
32
+ def initialize(attributes = {})
33
+ super(attributes)
34
+ @action_type = attributes[:action_type] || attributes['action_type']
35
+ @entity_creator_id = attributes[:entity_creator_id] || attributes['entity_creator_id']
36
+ @entity_id = attributes[:entity_id] || attributes['entity_id']
37
+ @entity_type = attributes[:entity_type] || attributes['entity_type']
38
+ @reason = attributes[:reason] || attributes['reason'] || nil
39
+ @custom = attributes[:custom] || attributes['custom'] || nil
40
+ end
41
+
42
+ # Override field mappings for JSON serialization
43
+ def self.json_field_mappings
44
+ {
45
+ action_type: 'action_type',
46
+ entity_creator_id: 'entity_creator_id',
47
+ entity_id: 'entity_id',
48
+ entity_type: 'entity_type',
49
+ reason: 'reason',
50
+ custom: 'custom'
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ # Response after inserting a moderation action log
9
+ class InsertActionLogResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String]
14
+ attr_accessor :duration
15
+
16
+ # Initialize with attributes
17
+ def initialize(attributes = {})
18
+ super(attributes)
19
+ @duration = attributes[:duration] || attributes['duration']
20
+ end
21
+
22
+ # Override field mappings for JSON serialization
23
+ def self.json_field_mappings
24
+ {
25
+ duration: 'duration'
26
+ }
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -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 queue_type
28
+ # @return [String] Queue type this action config belongs to
29
+ attr_accessor :queue_type
27
30
  # @!attribute custom
28
31
  # @return [Object] Custom data for the action
29
32
  attr_accessor :custom
@@ -36,6 +39,7 @@ module GetStream
36
39
  @entity_type = attributes[:entity_type] || attributes['entity_type']
37
40
  @icon = attributes[:icon] || attributes['icon']
38
41
  @order = attributes[:order] || attributes['order']
42
+ @queue_type = attributes[:queue_type] || attributes['queue_type'] || nil
39
43
  @custom = attributes[:custom] || attributes['custom'] || nil
40
44
  end
41
45
 
@@ -47,6 +51,7 @@ module GetStream
47
51
  entity_type: 'entity_type',
48
52
  icon: 'icon',
49
53
  order: 'order',
54
+ queue_type: 'queue_type',
50
55
  custom: 'custom'
51
56
  }
52
57
  end
@@ -18,6 +18,9 @@ module GetStream
18
18
  # @!attribute disable_flagging_reviewed_entity
19
19
  # @return [Boolean]
20
20
  attr_accessor :disable_flagging_reviewed_entity
21
+ # @!attribute escalation_queue_enabled
22
+ # @return [Boolean]
23
+ attr_accessor :escalation_queue_enabled
21
24
  # @!attribute flag_user_on_flagged_content
22
25
  # @return [Boolean]
23
26
  attr_accessor :flag_user_on_flagged_content
@@ -27,6 +30,9 @@ module GetStream
27
30
  # @!attribute allowed_moderation_action_reasons
28
31
  # @return [Array<String>]
29
32
  attr_accessor :allowed_moderation_action_reasons
33
+ # @!attribute escalation_reasons
34
+ # @return [Array<String>]
35
+ attr_accessor :escalation_reasons
30
36
  # @!attribute keyframe_classifications_map
31
37
  # @return [Hash<String, Hash<String, Boolean>>]
32
38
  attr_accessor :keyframe_classifications_map
@@ -40,9 +46,11 @@ module GetStream
40
46
  @async_review_queue_upsert = attributes[:async_review_queue_upsert] || attributes['async_review_queue_upsert'] || nil
41
47
  @disable_audit_logs = attributes[:disable_audit_logs] || attributes['disable_audit_logs'] || nil
42
48
  @disable_flagging_reviewed_entity = attributes[:disable_flagging_reviewed_entity] || attributes['disable_flagging_reviewed_entity'] || nil
49
+ @escalation_queue_enabled = attributes[:escalation_queue_enabled] || attributes['escalation_queue_enabled'] || nil
43
50
  @flag_user_on_flagged_content = attributes[:flag_user_on_flagged_content] || attributes['flag_user_on_flagged_content'] || nil
44
51
  @media_queue_blur_enabled = attributes[:media_queue_blur_enabled] || attributes['media_queue_blur_enabled'] || nil
45
52
  @allowed_moderation_action_reasons = attributes[:allowed_moderation_action_reasons] || attributes['allowed_moderation_action_reasons'] || nil
53
+ @escalation_reasons = attributes[:escalation_reasons] || attributes['escalation_reasons'] || nil
46
54
  @keyframe_classifications_map = attributes[:keyframe_classifications_map] || attributes['keyframe_classifications_map'] || nil
47
55
  @overview_dashboard = attributes[:overview_dashboard] || attributes['overview_dashboard'] || nil
48
56
  end
@@ -53,9 +61,11 @@ module GetStream
53
61
  async_review_queue_upsert: 'async_review_queue_upsert',
54
62
  disable_audit_logs: 'disable_audit_logs',
55
63
  disable_flagging_reviewed_entity: 'disable_flagging_reviewed_entity',
64
+ escalation_queue_enabled: 'escalation_queue_enabled',
56
65
  flag_user_on_flagged_content: 'flag_user_on_flagged_content',
57
66
  media_queue_blur_enabled: 'media_queue_blur_enabled',
58
67
  allowed_moderation_action_reasons: 'allowed_moderation_action_reasons',
68
+ escalation_reasons: 'escalation_reasons',
59
69
  keyframe_classifications_map: 'keyframe_classifications_map',
60
70
  overview_dashboard: 'overview_dashboard'
61
71
  }
@@ -30,6 +30,9 @@ module GetStream
30
30
  # @!attribute comment
31
31
  # @return [NotificationComment]
32
32
  attr_accessor :comment
33
+ # @!attribute custom
34
+ # @return [Object] Custom data from the target activity
35
+ attr_accessor :custom
33
36
  # @!attribute parent_activity
34
37
  # @return [NotificationParentActivity]
35
38
  attr_accessor :parent_activity
@@ -44,6 +47,7 @@ module GetStream
44
47
  @user_id = attributes[:user_id] || attributes['user_id'] || nil
45
48
  @attachments = attributes[:attachments] || attributes['attachments'] || nil
46
49
  @comment = attributes[:comment] || attributes['comment'] || nil
50
+ @custom = attributes[:custom] || attributes['custom'] || nil
47
51
  @parent_activity = attributes[:parent_activity] || attributes['parent_activity'] || nil
48
52
  end
49
53
 
@@ -57,6 +61,7 @@ module GetStream
57
61
  user_id: 'user_id',
58
62
  attachments: 'attachments',
59
63
  comment: 'comment',
64
+ custom: 'custom',
60
65
  parent_activity: 'parent_activity'
61
66
  }
62
67
  end
@@ -18,6 +18,9 @@ module GetStream
18
18
  # @!attribute comment
19
19
  # @return [NotificationComment]
20
20
  attr_accessor :comment
21
+ # @!attribute custom
22
+ # @return [Object] Custom data from the trigger object (comment, reaction, etc.)
23
+ attr_accessor :custom
21
24
 
22
25
  # Initialize with attributes
23
26
  def initialize(attributes = {})
@@ -25,6 +28,7 @@ module GetStream
25
28
  @text = attributes[:text] || attributes['text']
26
29
  @type = attributes[:type] || attributes['type']
27
30
  @comment = attributes[:comment] || attributes['comment'] || nil
31
+ @custom = attributes[:custom] || attributes['custom'] || nil
28
32
  end
29
33
 
30
34
  # Override field mappings for JSON serialization
@@ -32,7 +36,8 @@ module GetStream
32
36
  {
33
37
  text: 'text',
34
38
  type: 'type',
35
- comment: 'comment'
39
+ comment: 'comment',
40
+ custom: 'custom'
36
41
  }
37
42
  end
38
43
  end
@@ -10,7 +10,7 @@ module GetStream
10
10
 
11
11
  # Model attributes
12
12
  # @!attribute filter_conditions
13
- # @return [Object]
13
+ # @return [Object] Filter conditions to apply to the query
14
14
  attr_accessor :filter_conditions
15
15
  # @!attribute exclude_expired_bans
16
16
  # @return [Boolean] Whether to exclude expired bans or not
@@ -25,10 +25,10 @@ module GetStream
25
25
  # @return [String]
26
26
  attr_accessor :prev
27
27
  # @!attribute sort
28
- # @return [Array<SortParamRequest>]
28
+ # @return [Array<SortParamRequest>] Array of sort parameters
29
29
  attr_accessor :sort
30
30
  # @!attribute filter_conditions
31
- # @return [Object]
31
+ # @return [Object] Filter conditions to apply to the query
32
32
  attr_accessor :filter_conditions
33
33
 
34
34
  # Initialize with attributes
@@ -10,7 +10,7 @@ module GetStream
10
10
 
11
11
  # Model attributes
12
12
  # @!attribute filter_conditions
13
- # @return [Object]
13
+ # @return [Object] Filter conditions to apply to the query
14
14
  attr_accessor :filter_conditions
15
15
 
16
16
  # Initialize with attributes
@@ -42,6 +42,9 @@ module GetStream
42
42
  # @!attribute tmp_data_source
43
43
  # @return [String]
44
44
  attr_accessor :tmp_data_source
45
+ # @!attribute call_events
46
+ # @return [Array<CallLevelEventPayload>]
47
+ attr_accessor :call_events
45
48
 
46
49
  # Initialize with attributes
47
50
  def initialize(attributes = {})
@@ -57,6 +60,7 @@ module GetStream
57
60
  @next = attributes[:next] || attributes['next'] || nil
58
61
  @prev = attributes[:prev] || attributes['prev'] || nil
59
62
  @tmp_data_source = attributes[:tmp_data_source] || attributes['tmp_data_source'] || nil
63
+ @call_events = attributes[:call_events] || attributes['call_events'] || nil
60
64
  end
61
65
 
62
66
  # Override field mappings for JSON serialization
@@ -72,7 +76,8 @@ module GetStream
72
76
  call_started_at: 'call_started_at',
73
77
  next: 'next',
74
78
  prev: 'prev',
75
- tmp_data_source: 'tmp_data_source'
79
+ tmp_data_source: 'tmp_data_source',
80
+ call_events: 'call_events'
76
81
  }
77
82
  end
78
83
  end
@@ -19,10 +19,10 @@ module GetStream
19
19
  # @return [String]
20
20
  attr_accessor :prev
21
21
  # @!attribute sort
22
- # @return [Array<SortParamRequest>]
22
+ # @return [Array<SortParamRequest>] Array of sort parameters
23
23
  attr_accessor :sort
24
24
  # @!attribute filter_conditions
25
- # @return [Object]
25
+ # @return [Object] Filter conditions to apply to the query
26
26
  attr_accessor :filter_conditions
27
27
 
28
28
  # Initialize with attributes
@@ -22,7 +22,7 @@ module GetStream
22
22
  # @return [Array<SortParamRequest>] Array of sort parameters
23
23
  attr_accessor :sort
24
24
  # @!attribute filter_conditions
25
- # @return [Object]
25
+ # @return [Object] Filter conditions to apply to the query
26
26
  attr_accessor :filter_conditions
27
27
 
28
28
  # Initialize with attributes
@@ -34,7 +34,7 @@ module GetStream
34
34
  # @return [Array<SortParamRequest>] List of sort parameters
35
35
  attr_accessor :sort
36
36
  # @!attribute filter_conditions
37
- # @return [Object]
37
+ # @return [Object] Filter conditions to apply to the query
38
38
  attr_accessor :filter_conditions
39
39
  # @!attribute filter_values
40
40
  # @return [Object] Values to interpolate into the predefined filter template
@@ -5,7 +5,7 @@
5
5
  module GetStream
6
6
  module Generated
7
7
  module Models
8
- # Client request
8
+ #
9
9
  class QueryMembersPayload < GetStream::BaseModel
10
10
 
11
11
  # Model attributes
@@ -13,7 +13,7 @@ module GetStream
13
13
  # @return [String]
14
14
  attr_accessor :type
15
15
  # @!attribute filter_conditions
16
- # @return [Object]
16
+ # @return [Object] Filter conditions to apply to the query
17
17
  attr_accessor :filter_conditions
18
18
  # @!attribute id
19
19
  # @return [String]
@@ -31,7 +31,7 @@ module GetStream
31
31
  # @return [Array<ChannelMemberRequest>]
32
32
  attr_accessor :members
33
33
  # @!attribute sort
34
- # @return [Array<SortParamRequest>]
34
+ # @return [Array<SortParamRequest>] Array of sort parameters
35
35
  attr_accessor :sort
36
36
  # @!attribute user
37
37
  # @return [UserRequest]
@@ -22,10 +22,10 @@ module GetStream
22
22
  # @return [String]
23
23
  attr_accessor :user_id
24
24
  # @!attribute sort
25
- # @return [Array<SortParamRequest>]
25
+ # @return [Array<SortParamRequest>] Array of sort parameters
26
26
  attr_accessor :sort
27
27
  # @!attribute filter_conditions
28
- # @return [Object]
28
+ # @return [Object] Filter conditions to apply to the query
29
29
  attr_accessor :filter_conditions
30
30
  # @!attribute user
31
31
  # @return [UserRequest]
@@ -19,10 +19,10 @@ module GetStream
19
19
  # @return [String]
20
20
  attr_accessor :prev
21
21
  # @!attribute sort
22
- # @return [Array<SortParamRequest>]
22
+ # @return [Array<SortParamRequest>] Array of sort parameters
23
23
  attr_accessor :sort
24
24
  # @!attribute filter_conditions
25
- # @return [Object]
25
+ # @return [Object] Filter conditions to apply to the query
26
26
  attr_accessor :filter_conditions
27
27
 
28
28
  # Initialize with attributes
@@ -5,12 +5,12 @@
5
5
  module GetStream
6
6
  module Generated
7
7
  module Models
8
- # Client request
8
+ #
9
9
  class QueryUsersPayload < GetStream::BaseModel
10
10
 
11
11
  # Model attributes
12
12
  # @!attribute filter_conditions
13
- # @return [Object]
13
+ # @return [Object] Filter conditions to apply to the query
14
14
  attr_accessor :filter_conditions
15
15
  # @!attribute include_deactivated_users
16
16
  # @return [Boolean]
@@ -28,7 +28,7 @@ module GetStream
28
28
  # @return [String]
29
29
  attr_accessor :user_id
30
30
  # @!attribute sort
31
- # @return [Array<SortParamRequest>]
31
+ # @return [Array<SortParamRequest>] Array of sort parameters
32
32
  attr_accessor :sort
33
33
  # @!attribute user
34
34
  # @return [UserRequest]
@@ -21,6 +21,9 @@ module GetStream
21
21
  # @!attribute sum_scores
22
22
  # @return [Integer] SumScores is the sum of all scores of reactions of this type. Medium allows you to clap articles more than once and shows the sum of all claps from all users. For example, you can send `clap` x5 using `score: 5`.
23
23
  attr_accessor :sum_scores
24
+ # @!attribute latest_reactions_by
25
+ # @return [Array<ReactionGroupUserResponse>] The most recent users who reacted with this type, ordered by most recent first.
26
+ attr_accessor :latest_reactions_by
24
27
 
25
28
  # Initialize with attributes
26
29
  def initialize(attributes = {})
@@ -29,6 +32,7 @@ module GetStream
29
32
  @first_reaction_at = attributes[:first_reaction_at] || attributes['first_reaction_at']
30
33
  @last_reaction_at = attributes[:last_reaction_at] || attributes['last_reaction_at']
31
34
  @sum_scores = attributes[:sum_scores] || attributes['sum_scores']
35
+ @latest_reactions_by = attributes[:latest_reactions_by] || attributes['latest_reactions_by']
32
36
  end
33
37
 
34
38
  # Override field mappings for JSON serialization
@@ -37,7 +41,8 @@ module GetStream
37
41
  count: 'count',
38
42
  first_reaction_at: 'first_reaction_at',
39
43
  last_reaction_at: 'last_reaction_at',
40
- sum_scores: 'sum_scores'
44
+ sum_scores: 'sum_scores',
45
+ latest_reactions_by: 'latest_reactions_by'
41
46
  }
42
47
  end
43
48
  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
+ # Contains information about a user who reacted with this reaction type.
9
+ class ReactionGroupUserResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute created_at
13
+ # @return [DateTime] The time when the user reacted.
14
+ attr_accessor :created_at
15
+ # @!attribute user_id
16
+ # @return [String] The ID of the user who reacted.
17
+ attr_accessor :user_id
18
+ # @!attribute user
19
+ # @return [UserResponse]
20
+ attr_accessor :user
21
+
22
+ # Initialize with attributes
23
+ def initialize(attributes = {})
24
+ super(attributes)
25
+ @created_at = attributes[:created_at] || attributes['created_at']
26
+ @user_id = attributes[:user_id] || attributes['user_id']
27
+ @user = attributes[:user] || attributes['user'] || nil
28
+ end
29
+
30
+ # Override field mappings for JSON serialization
31
+ def self.json_field_mappings
32
+ {
33
+ created_at: 'created_at',
34
+ user_id: 'user_id',
35
+ user: 'user'
36
+ }
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ #
9
+ class RestoreCommentRequest < 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