getstream-ruby 3.0.0.beta.1 → 3.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.
- checksums.yaml +4 -4
- data/lib/getstream_ruby/client.rb +12 -0
- data/lib/getstream_ruby/generated/chat_client.rb +1652 -0
- data/lib/getstream_ruby/generated/common_client.rb +14 -14
- data/lib/getstream_ruby/generated/feed.rb +3 -1
- data/lib/getstream_ruby/generated/feeds_client.rb +29 -3
- data/lib/getstream_ruby/generated/models/activity_response.rb +15 -0
- data/lib/getstream_ruby/generated/models/add_activity_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/aggregated_activity_response.rb +10 -0
- data/lib/getstream_ruby/generated/models/app_response_fields.rb +5 -0
- data/lib/getstream_ruby/generated/models/async_export_error_event.rb +1 -1
- data/lib/getstream_ruby/generated/models/block_list_config.rb +5 -0
- data/lib/getstream_ruby/generated/models/channel_batch_member_request.rb +36 -0
- data/lib/getstream_ruby/generated/models/channel_batch_update_request.rb +46 -0
- data/lib/getstream_ruby/generated/models/channel_batch_update_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/channel_data_update.rb +61 -0
- data/lib/getstream_ruby/generated/models/check_s3_access_request.rb +31 -0
- data/lib/getstream_ruby/generated/models/check_s3_access_response.rb +41 -0
- data/lib/getstream_ruby/generated/models/create_feeds_batch_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/delete_activity_reaction_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_activity_request.rb +1 -23
- data/lib/getstream_ruby/generated/models/delete_block_list_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_bookmark_folder_request.rb +36 -0
- data/lib/getstream_ruby/generated/models/delete_bookmark_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_call_type_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_channel_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_collections_request.rb +36 -0
- data/lib/getstream_ruby/generated/models/delete_command_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_comment_reaction_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_comment_request.rb +1 -23
- data/lib/getstream_ruby/generated/models/delete_custom_role_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_device_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_draft_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_external_storage_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_feed_group_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_feed_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_feed_view_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_import_v2_task_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_membership_level_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_message_request.rb +1 -23
- data/lib/getstream_ruby/generated/models/delete_moderation_config_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_moderation_template_request.rb +31 -0
- data/lib/getstream_ruby/generated/models/delete_poll_option_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_poll_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_poll_vote_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_push_provider_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_reaction_request.rb +2 -24
- data/lib/getstream_ruby/generated/models/delete_recording_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_reminder_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_segment_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_sip_inbound_routing_rule_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_sip_trunk_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_transcription_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/delete_user_group_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/feed_own_capability.rb +1 -1
- data/lib/getstream_ruby/generated/models/feed_updated_event.rb +1 -1
- data/lib/getstream_ruby/generated/models/file_delete_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/follow_batch_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/follow_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/get_channel_type_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/notification_status_response.rb +3 -3
- data/lib/getstream_ruby/generated/models/pin_activity_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/query_activities_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/query_bookmarks_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/query_comments_request.rb +16 -1
- data/lib/getstream_ruby/generated/models/query_feeds_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/query_moderation_rules_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/query_pinned_activities_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/remove_user_group_members_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/track_activity_metrics_event.rb +41 -0
- data/lib/getstream_ruby/generated/models/track_activity_metrics_event_result.rb +46 -0
- data/lib/getstream_ruby/generated/models/track_activity_metrics_request.rb +41 -0
- data/lib/getstream_ruby/generated/models/track_activity_metrics_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/unfollow_batch_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/unfollow_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/unpin_activity_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/update_activity_partial_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/update_activity_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/update_app_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/update_feed_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/update_follow_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/upsert_activities_request.rb +6 -1
- data/lib/getstream_ruby/generated/moderation_client.rb +17 -0
- data/lib/getstream_ruby/generated/video_client.rb +1385 -0
- data/lib/getstream_ruby/version.rb +1 -1
- metadata +51 -4
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
|
|
4
|
+
|
|
5
|
+
module GetStream
|
|
6
|
+
module Generated
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
class FileDeleteRequest < GetStream::BaseModel
|
|
10
|
+
# Empty model - inherits all functionality from BaseModel
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -12,17 +12,22 @@ module GetStream
|
|
|
12
12
|
# @!attribute follows
|
|
13
13
|
# @return [Array<FollowRequest>] List of follow relationships to create
|
|
14
14
|
attr_accessor :follows
|
|
15
|
+
# @!attribute enrich_own_fields
|
|
16
|
+
# @return [Boolean] If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
17
|
+
attr_accessor :enrich_own_fields
|
|
15
18
|
|
|
16
19
|
# Initialize with attributes
|
|
17
20
|
def initialize(attributes = {})
|
|
18
21
|
super(attributes)
|
|
19
22
|
@follows = attributes[:follows] || attributes['follows']
|
|
23
|
+
@enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
|
|
20
24
|
end
|
|
21
25
|
|
|
22
26
|
# Override field mappings for JSON serialization
|
|
23
27
|
def self.json_field_mappings
|
|
24
28
|
{
|
|
25
|
-
follows: 'follows'
|
|
29
|
+
follows: 'follows',
|
|
30
|
+
enrich_own_fields: 'enrich_own_fields'
|
|
26
31
|
}
|
|
27
32
|
end
|
|
28
33
|
end
|
|
@@ -21,6 +21,9 @@ module GetStream
|
|
|
21
21
|
# @!attribute create_notification_activity
|
|
22
22
|
# @return [Boolean] Whether to create a notification activity for this follow
|
|
23
23
|
attr_accessor :create_notification_activity
|
|
24
|
+
# @!attribute enrich_own_fields
|
|
25
|
+
# @return [Boolean] If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
26
|
+
attr_accessor :enrich_own_fields
|
|
24
27
|
# @!attribute push_preference
|
|
25
28
|
# @return [String] Push preference for the follow relationship
|
|
26
29
|
attr_accessor :push_preference
|
|
@@ -41,6 +44,7 @@ module GetStream
|
|
|
41
44
|
@target = attributes[:target] || attributes['target']
|
|
42
45
|
@copy_custom_to_notification = attributes[:copy_custom_to_notification] || attributes['copy_custom_to_notification'] || nil
|
|
43
46
|
@create_notification_activity = attributes[:create_notification_activity] || attributes['create_notification_activity'] || nil
|
|
47
|
+
@enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
|
|
44
48
|
@push_preference = attributes[:push_preference] || attributes['push_preference'] || nil
|
|
45
49
|
@skip_push = attributes[:skip_push] || attributes['skip_push'] || nil
|
|
46
50
|
@status = attributes[:status] || attributes['status'] || nil
|
|
@@ -54,6 +58,7 @@ module GetStream
|
|
|
54
58
|
target: 'target',
|
|
55
59
|
copy_custom_to_notification: 'copy_custom_to_notification',
|
|
56
60
|
create_notification_activity: 'create_notification_activity',
|
|
61
|
+
enrich_own_fields: 'enrich_own_fields',
|
|
57
62
|
push_preference: 'push_preference',
|
|
58
63
|
skip_push: 'skip_push',
|
|
59
64
|
status: 'status',
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
|
|
4
|
+
|
|
5
|
+
module GetStream
|
|
6
|
+
module Generated
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
class GetChannelTypeRequest < GetStream::BaseModel
|
|
10
|
+
# Empty model - inherits all functionality from BaseModel
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -16,16 +16,16 @@ module GetStream
|
|
|
16
16
|
# @return [Integer] Number of unseen notifications
|
|
17
17
|
attr_accessor :unseen
|
|
18
18
|
# @!attribute last_read_at
|
|
19
|
-
# @return [DateTime]
|
|
19
|
+
# @return [DateTime] When notifications were last read
|
|
20
20
|
attr_accessor :last_read_at
|
|
21
21
|
# @!attribute last_seen_at
|
|
22
22
|
# @return [DateTime] When notifications were last seen
|
|
23
23
|
attr_accessor :last_seen_at
|
|
24
24
|
# @!attribute read_activities
|
|
25
|
-
# @return [Array<String>] IDs of activities that have been read
|
|
25
|
+
# @return [Array<String>] Deprecated: use is_read on each activity/group instead. IDs of activities that have been read. Capped at ~101 entries for aggregated feeds.
|
|
26
26
|
attr_accessor :read_activities
|
|
27
27
|
# @!attribute seen_activities
|
|
28
|
-
# @return [Array<String>]
|
|
28
|
+
# @return [Array<String>] Deprecated: use is_seen on each activity/group instead. IDs of activities that have been seen. Capped at ~101 entries for aggregated feeds.
|
|
29
29
|
attr_accessor :seen_activities
|
|
30
30
|
|
|
31
31
|
# Initialize with attributes
|
|
@@ -9,6 +9,9 @@ module GetStream
|
|
|
9
9
|
class PinActivityRequest < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
|
+
# @!attribute enrich_own_fields
|
|
13
|
+
# @return [Boolean] If true, enriches the activity's current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
14
|
+
attr_accessor :enrich_own_fields
|
|
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
|
+
@enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || 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
|
+
enrich_own_fields: 'enrich_own_fields',
|
|
29
34
|
user_id: 'user_id',
|
|
30
35
|
user: 'user'
|
|
31
36
|
}
|
|
@@ -9,6 +9,9 @@ module GetStream
|
|
|
9
9
|
class QueryActivitiesRequest < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
|
+
# @!attribute enrich_own_fields
|
|
13
|
+
# @return [Boolean]
|
|
14
|
+
attr_accessor :enrich_own_fields
|
|
12
15
|
# @!attribute include_expired_activities
|
|
13
16
|
# @return [Boolean] When true, include both expired and non-expired activities in the result.
|
|
14
17
|
attr_accessor :include_expired_activities
|
|
@@ -40,6 +43,7 @@ module GetStream
|
|
|
40
43
|
# Initialize with attributes
|
|
41
44
|
def initialize(attributes = {})
|
|
42
45
|
super(attributes)
|
|
46
|
+
@enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
|
|
43
47
|
@include_expired_activities = attributes[:include_expired_activities] || attributes['include_expired_activities'] || nil
|
|
44
48
|
@include_private_activities = attributes[:include_private_activities] || attributes['include_private_activities'] || nil
|
|
45
49
|
@limit = attributes[:limit] || attributes['limit'] || nil
|
|
@@ -54,6 +58,7 @@ module GetStream
|
|
|
54
58
|
# Override field mappings for JSON serialization
|
|
55
59
|
def self.json_field_mappings
|
|
56
60
|
{
|
|
61
|
+
enrich_own_fields: 'enrich_own_fields',
|
|
57
62
|
include_expired_activities: 'include_expired_activities',
|
|
58
63
|
include_private_activities: 'include_private_activities',
|
|
59
64
|
limit: 'limit',
|
|
@@ -9,6 +9,9 @@ module GetStream
|
|
|
9
9
|
class QueryBookmarksRequest < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
|
+
# @!attribute enrich_own_fields
|
|
13
|
+
# @return [Boolean]
|
|
14
|
+
attr_accessor :enrich_own_fields
|
|
12
15
|
# @!attribute limit
|
|
13
16
|
# @return [Integer]
|
|
14
17
|
attr_accessor :limit
|
|
@@ -28,6 +31,7 @@ module GetStream
|
|
|
28
31
|
# Initialize with attributes
|
|
29
32
|
def initialize(attributes = {})
|
|
30
33
|
super(attributes)
|
|
34
|
+
@enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
|
|
31
35
|
@limit = attributes[:limit] || attributes['limit'] || nil
|
|
32
36
|
@next = attributes[:next] || attributes['next'] || nil
|
|
33
37
|
@prev = attributes[:prev] || attributes['prev'] || nil
|
|
@@ -38,6 +42,7 @@ module GetStream
|
|
|
38
42
|
# Override field mappings for JSON serialization
|
|
39
43
|
def self.json_field_mappings
|
|
40
44
|
{
|
|
45
|
+
enrich_own_fields: 'enrich_own_fields',
|
|
41
46
|
limit: 'limit',
|
|
42
47
|
next: 'next',
|
|
43
48
|
prev: 'prev',
|
|
@@ -12,6 +12,9 @@ module GetStream
|
|
|
12
12
|
# @!attribute filter
|
|
13
13
|
# @return [Object] MongoDB-style filter for querying comments
|
|
14
14
|
attr_accessor :filter
|
|
15
|
+
# @!attribute id_around
|
|
16
|
+
# @return [String] Returns the comment with the specified ID along with surrounding comments for context
|
|
17
|
+
attr_accessor :id_around
|
|
15
18
|
# @!attribute limit
|
|
16
19
|
# @return [Integer] Maximum number of comments to return
|
|
17
20
|
attr_accessor :limit
|
|
@@ -24,25 +27,37 @@ module GetStream
|
|
|
24
27
|
# @!attribute sort
|
|
25
28
|
# @return [String] first (oldest), last (newest) or top. One of: first, last, top, best, controversial
|
|
26
29
|
attr_accessor :sort
|
|
30
|
+
# @!attribute user_id
|
|
31
|
+
# @return [String]
|
|
32
|
+
attr_accessor :user_id
|
|
33
|
+
# @!attribute user
|
|
34
|
+
# @return [UserRequest]
|
|
35
|
+
attr_accessor :user
|
|
27
36
|
|
|
28
37
|
# Initialize with attributes
|
|
29
38
|
def initialize(attributes = {})
|
|
30
39
|
super(attributes)
|
|
31
40
|
@filter = attributes[:filter] || attributes['filter']
|
|
41
|
+
@id_around = attributes[:id_around] || attributes['id_around'] || nil
|
|
32
42
|
@limit = attributes[:limit] || attributes['limit'] || nil
|
|
33
43
|
@next = attributes[:next] || attributes['next'] || nil
|
|
34
44
|
@prev = attributes[:prev] || attributes['prev'] || nil
|
|
35
45
|
@sort = attributes[:sort] || attributes['sort'] || nil
|
|
46
|
+
@user_id = attributes[:user_id] || attributes['user_id'] || nil
|
|
47
|
+
@user = attributes[:user] || attributes['user'] || nil
|
|
36
48
|
end
|
|
37
49
|
|
|
38
50
|
# Override field mappings for JSON serialization
|
|
39
51
|
def self.json_field_mappings
|
|
40
52
|
{
|
|
41
53
|
filter: 'filter',
|
|
54
|
+
id_around: 'id_around',
|
|
42
55
|
limit: 'limit',
|
|
43
56
|
next: 'next',
|
|
44
57
|
prev: 'prev',
|
|
45
|
-
sort: 'sort'
|
|
58
|
+
sort: 'sort',
|
|
59
|
+
user_id: 'user_id',
|
|
60
|
+
user: 'user'
|
|
46
61
|
}
|
|
47
62
|
end
|
|
48
63
|
end
|
|
@@ -9,6 +9,9 @@ module GetStream
|
|
|
9
9
|
class QueryFeedsRequest < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
|
+
# @!attribute enrich_own_fields
|
|
13
|
+
# @return [Boolean]
|
|
14
|
+
attr_accessor :enrich_own_fields
|
|
12
15
|
# @!attribute limit
|
|
13
16
|
# @return [Integer]
|
|
14
17
|
attr_accessor :limit
|
|
@@ -31,6 +34,7 @@ module GetStream
|
|
|
31
34
|
# Initialize with attributes
|
|
32
35
|
def initialize(attributes = {})
|
|
33
36
|
super(attributes)
|
|
37
|
+
@enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
|
|
34
38
|
@limit = attributes[:limit] || attributes['limit'] || nil
|
|
35
39
|
@next = attributes[:next] || attributes['next'] || nil
|
|
36
40
|
@prev = attributes[:prev] || attributes['prev'] || nil
|
|
@@ -42,6 +46,7 @@ module GetStream
|
|
|
42
46
|
# Override field mappings for JSON serialization
|
|
43
47
|
def self.json_field_mappings
|
|
44
48
|
{
|
|
49
|
+
enrich_own_fields: 'enrich_own_fields',
|
|
45
50
|
limit: 'limit',
|
|
46
51
|
next: 'next',
|
|
47
52
|
prev: 'prev',
|
|
@@ -16,7 +16,7 @@ module GetStream
|
|
|
16
16
|
# @return [Array<String>] Available harm labels for closed caption rules
|
|
17
17
|
attr_accessor :closed_caption_labels
|
|
18
18
|
# @!attribute keyframe_labels
|
|
19
|
-
# @return [Array<String>] Available harm labels for keyframe rules
|
|
19
|
+
# @return [Array<String>] Deprecated: use keyframe_label_classifications instead. Available L1 harm labels for keyframe rules
|
|
20
20
|
attr_accessor :keyframe_labels
|
|
21
21
|
# @!attribute rules
|
|
22
22
|
# @return [Array<ModerationRuleV2Response>] List of moderation rules
|
|
@@ -24,6 +24,9 @@ module GetStream
|
|
|
24
24
|
# @!attribute default_llm_labels
|
|
25
25
|
# @return [Hash<String, String>] Default LLM label descriptions
|
|
26
26
|
attr_accessor :default_llm_labels
|
|
27
|
+
# @!attribute keyframe_label_classifications
|
|
28
|
+
# @return [Hash<String, Array<String>>] L1 to L2 mapping of keyframe harm label classifications
|
|
29
|
+
attr_accessor :keyframe_label_classifications
|
|
27
30
|
# @!attribute next
|
|
28
31
|
# @return [String]
|
|
29
32
|
attr_accessor :next
|
|
@@ -39,6 +42,7 @@ module GetStream
|
|
|
39
42
|
@keyframe_labels = attributes[:keyframe_labels] || attributes['keyframe_labels']
|
|
40
43
|
@rules = attributes[:rules] || attributes['rules']
|
|
41
44
|
@default_llm_labels = attributes[:default_llm_labels] || attributes['default_llm_labels']
|
|
45
|
+
@keyframe_label_classifications = attributes[:keyframe_label_classifications] || attributes['keyframe_label_classifications']
|
|
42
46
|
@next = attributes[:next] || attributes['next'] || nil
|
|
43
47
|
@prev = attributes[:prev] || attributes['prev'] || nil
|
|
44
48
|
end
|
|
@@ -51,6 +55,7 @@ module GetStream
|
|
|
51
55
|
keyframe_labels: 'keyframe_labels',
|
|
52
56
|
rules: 'rules',
|
|
53
57
|
default_llm_labels: 'default_llm_labels',
|
|
58
|
+
keyframe_label_classifications: 'keyframe_label_classifications',
|
|
54
59
|
next: 'next',
|
|
55
60
|
prev: 'prev'
|
|
56
61
|
}
|
|
@@ -9,6 +9,9 @@ module GetStream
|
|
|
9
9
|
class QueryPinnedActivitiesRequest < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
|
+
# @!attribute enrich_own_fields
|
|
13
|
+
# @return [Boolean]
|
|
14
|
+
attr_accessor :enrich_own_fields
|
|
12
15
|
# @!attribute limit
|
|
13
16
|
# @return [Integer]
|
|
14
17
|
attr_accessor :limit
|
|
@@ -28,6 +31,7 @@ module GetStream
|
|
|
28
31
|
# Initialize with attributes
|
|
29
32
|
def initialize(attributes = {})
|
|
30
33
|
super(attributes)
|
|
34
|
+
@enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
|
|
31
35
|
@limit = attributes[:limit] || attributes['limit'] || nil
|
|
32
36
|
@next = attributes[:next] || attributes['next'] || nil
|
|
33
37
|
@prev = attributes[:prev] || attributes['prev'] || nil
|
|
@@ -38,6 +42,7 @@ module GetStream
|
|
|
38
42
|
# Override field mappings for JSON serialization
|
|
39
43
|
def self.json_field_mappings
|
|
40
44
|
{
|
|
45
|
+
enrich_own_fields: 'enrich_own_fields',
|
|
41
46
|
limit: 'limit',
|
|
42
47
|
next: 'next',
|
|
43
48
|
prev: 'prev',
|
|
@@ -10,7 +10,7 @@ module GetStream
|
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
12
|
# @!attribute member_ids
|
|
13
|
-
# @return [Array<String>] List of user IDs to remove
|
|
13
|
+
# @return [Array<String>] List of user IDs to remove
|
|
14
14
|
attr_accessor :member_ids
|
|
15
15
|
# @!attribute team_id
|
|
16
16
|
# @return [String]
|
|
@@ -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
|
+
# A single metric event to track for an activity
|
|
9
|
+
class TrackActivityMetricsEvent < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute activity_id
|
|
13
|
+
# @return [String] The ID of the activity to track the metric for
|
|
14
|
+
attr_accessor :activity_id
|
|
15
|
+
# @!attribute metric
|
|
16
|
+
# @return [String] The metric name (e.g. views, clicks, impressions). Alphanumeric and underscores only.
|
|
17
|
+
attr_accessor :metric
|
|
18
|
+
# @!attribute delta
|
|
19
|
+
# @return [Integer] The amount to increment (positive) or decrement (negative). Defaults to 1. The absolute value counts against rate limits.
|
|
20
|
+
attr_accessor :delta
|
|
21
|
+
|
|
22
|
+
# Initialize with attributes
|
|
23
|
+
def initialize(attributes = {})
|
|
24
|
+
super(attributes)
|
|
25
|
+
@activity_id = attributes[:activity_id] || attributes['activity_id']
|
|
26
|
+
@metric = attributes[:metric] || attributes['metric']
|
|
27
|
+
@delta = attributes[:delta] || attributes['delta'] || nil
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Override field mappings for JSON serialization
|
|
31
|
+
def self.json_field_mappings
|
|
32
|
+
{
|
|
33
|
+
activity_id: 'activity_id',
|
|
34
|
+
metric: 'metric',
|
|
35
|
+
delta: 'delta'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
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
|
+
# Result of tracking a single metric event
|
|
9
|
+
class TrackActivityMetricsEventResult < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute activity_id
|
|
13
|
+
# @return [String] The activity ID from the request
|
|
14
|
+
attr_accessor :activity_id
|
|
15
|
+
# @!attribute allowed
|
|
16
|
+
# @return [Boolean] Whether the metric was counted (false if rate-limited)
|
|
17
|
+
attr_accessor :allowed
|
|
18
|
+
# @!attribute metric
|
|
19
|
+
# @return [String] The metric name from the request
|
|
20
|
+
attr_accessor :metric
|
|
21
|
+
# @!attribute error
|
|
22
|
+
# @return [String] Error message if processing failed
|
|
23
|
+
attr_accessor :error
|
|
24
|
+
|
|
25
|
+
# Initialize with attributes
|
|
26
|
+
def initialize(attributes = {})
|
|
27
|
+
super(attributes)
|
|
28
|
+
@activity_id = attributes[:activity_id] || attributes['activity_id']
|
|
29
|
+
@allowed = attributes[:allowed] || attributes['allowed']
|
|
30
|
+
@metric = attributes[:metric] || attributes['metric']
|
|
31
|
+
@error = attributes[:error] || attributes['error'] || nil
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Override field mappings for JSON serialization
|
|
35
|
+
def self.json_field_mappings
|
|
36
|
+
{
|
|
37
|
+
activity_id: 'activity_id',
|
|
38
|
+
allowed: 'allowed',
|
|
39
|
+
metric: 'metric',
|
|
40
|
+
error: 'error'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
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
|
+
# Batch request to track metric events for activities. Rate-limited per user/IP per activity per metric.
|
|
9
|
+
class TrackActivityMetricsRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute events
|
|
13
|
+
# @return [Array<TrackActivityMetricsEvent>] List of metric events to track (max 100 per request)
|
|
14
|
+
attr_accessor :events
|
|
15
|
+
# @!attribute user_id
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :user_id
|
|
18
|
+
# @!attribute user
|
|
19
|
+
# @return [UserRequest]
|
|
20
|
+
attr_accessor :user
|
|
21
|
+
|
|
22
|
+
# Initialize with attributes
|
|
23
|
+
def initialize(attributes = {})
|
|
24
|
+
super(attributes)
|
|
25
|
+
@events = attributes[:events] || attributes['events']
|
|
26
|
+
@user_id = attributes[:user_id] || attributes['user_id'] || nil
|
|
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
|
+
events: 'events',
|
|
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
|
+
# Response containing results for each tracked metric event
|
|
9
|
+
class TrackActivityMetricsResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute duration
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :duration
|
|
15
|
+
# @!attribute results
|
|
16
|
+
# @return [Array<TrackActivityMetricsEventResult>] Results for each event in the request, in the same order
|
|
17
|
+
attr_accessor :results
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@duration = attributes[:duration] || attributes['duration']
|
|
23
|
+
@results = attributes[:results] || attributes['results']
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
duration: 'duration',
|
|
30
|
+
results: 'results'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -15,19 +15,24 @@ module GetStream
|
|
|
15
15
|
# @!attribute delete_notification_activity
|
|
16
16
|
# @return [Boolean] Whether to delete the corresponding notification activity (default: false)
|
|
17
17
|
attr_accessor :delete_notification_activity
|
|
18
|
+
# @!attribute enrich_own_fields
|
|
19
|
+
# @return [Boolean] If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
20
|
+
attr_accessor :enrich_own_fields
|
|
18
21
|
|
|
19
22
|
# Initialize with attributes
|
|
20
23
|
def initialize(attributes = {})
|
|
21
24
|
super(attributes)
|
|
22
25
|
@follows = attributes[:follows] || attributes['follows']
|
|
23
26
|
@delete_notification_activity = attributes[:delete_notification_activity] || attributes['delete_notification_activity'] || nil
|
|
27
|
+
@enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
|
|
24
28
|
end
|
|
25
29
|
|
|
26
30
|
# Override field mappings for JSON serialization
|
|
27
31
|
def self.json_field_mappings
|
|
28
32
|
{
|
|
29
33
|
follows: 'follows',
|
|
30
|
-
delete_notification_activity: 'delete_notification_activity'
|
|
34
|
+
delete_notification_activity: 'delete_notification_activity',
|
|
35
|
+
enrich_own_fields: 'enrich_own_fields'
|
|
31
36
|
}
|
|
32
37
|
end
|
|
33
38
|
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
|
|
4
|
+
|
|
5
|
+
module GetStream
|
|
6
|
+
module Generated
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
class UnfollowRequest < GetStream::BaseModel
|
|
10
|
+
# Empty model - inherits all functionality from BaseModel
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
|
|
4
|
+
|
|
5
|
+
module GetStream
|
|
6
|
+
module Generated
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
class UnpinActivityRequest < GetStream::BaseModel
|
|
10
|
+
# Empty model - inherits all functionality from BaseModel
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -12,6 +12,9 @@ module GetStream
|
|
|
12
12
|
# @!attribute copy_custom_to_notification
|
|
13
13
|
# @return [Boolean] Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications)
|
|
14
14
|
attr_accessor :copy_custom_to_notification
|
|
15
|
+
# @!attribute enrich_own_fields
|
|
16
|
+
# @return [Boolean] If true, enriches the activity's current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
17
|
+
attr_accessor :enrich_own_fields
|
|
15
18
|
# @!attribute handle_mention_notifications
|
|
16
19
|
# @return [Boolean] If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned
|
|
17
20
|
attr_accessor :handle_mention_notifications
|
|
@@ -35,6 +38,7 @@ module GetStream
|
|
|
35
38
|
def initialize(attributes = {})
|
|
36
39
|
super(attributes)
|
|
37
40
|
@copy_custom_to_notification = attributes[:copy_custom_to_notification] || attributes['copy_custom_to_notification'] || nil
|
|
41
|
+
@enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
|
|
38
42
|
@handle_mention_notifications = attributes[:handle_mention_notifications] || attributes['handle_mention_notifications'] || nil
|
|
39
43
|
@run_activity_processors = attributes[:run_activity_processors] || attributes['run_activity_processors'] || nil
|
|
40
44
|
@user_id = attributes[:user_id] || attributes['user_id'] || nil
|
|
@@ -47,6 +51,7 @@ module GetStream
|
|
|
47
51
|
def self.json_field_mappings
|
|
48
52
|
{
|
|
49
53
|
copy_custom_to_notification: 'copy_custom_to_notification',
|
|
54
|
+
enrich_own_fields: 'enrich_own_fields',
|
|
50
55
|
handle_mention_notifications: 'handle_mention_notifications',
|
|
51
56
|
run_activity_processors: 'run_activity_processors',
|
|
52
57
|
user_id: 'user_id',
|
|
@@ -12,6 +12,9 @@ module GetStream
|
|
|
12
12
|
# @!attribute copy_custom_to_notification
|
|
13
13
|
# @return [Boolean] Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications)
|
|
14
14
|
attr_accessor :copy_custom_to_notification
|
|
15
|
+
# @!attribute enrich_own_fields
|
|
16
|
+
# @return [Boolean] If true, enriches the activity's current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
17
|
+
attr_accessor :enrich_own_fields
|
|
15
18
|
# @!attribute expires_at
|
|
16
19
|
# @return [DateTime] Time when the activity will expire
|
|
17
20
|
attr_accessor :expires_at
|
|
@@ -77,6 +80,7 @@ module GetStream
|
|
|
77
80
|
def initialize(attributes = {})
|
|
78
81
|
super(attributes)
|
|
79
82
|
@copy_custom_to_notification = attributes[:copy_custom_to_notification] || attributes['copy_custom_to_notification'] || nil
|
|
83
|
+
@enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
|
|
80
84
|
@expires_at = attributes[:expires_at] || attributes['expires_at'] || nil
|
|
81
85
|
@handle_mention_notifications = attributes[:handle_mention_notifications] || attributes['handle_mention_notifications'] || nil
|
|
82
86
|
@poll_id = attributes[:poll_id] || attributes['poll_id'] || nil
|
|
@@ -103,6 +107,7 @@ module GetStream
|
|
|
103
107
|
def self.json_field_mappings
|
|
104
108
|
{
|
|
105
109
|
copy_custom_to_notification: 'copy_custom_to_notification',
|
|
110
|
+
enrich_own_fields: 'enrich_own_fields',
|
|
106
111
|
expires_at: 'expires_at',
|
|
107
112
|
handle_mention_notifications: 'handle_mention_notifications',
|
|
108
113
|
poll_id: 'poll_id',
|
|
@@ -60,6 +60,9 @@ module GetStream
|
|
|
60
60
|
# @!attribute moderation_enabled
|
|
61
61
|
# @return [Boolean]
|
|
62
62
|
attr_accessor :moderation_enabled
|
|
63
|
+
# @!attribute moderation_s3_image_access_role_arn
|
|
64
|
+
# @return [String]
|
|
65
|
+
attr_accessor :moderation_s3_image_access_role_arn
|
|
63
66
|
# @!attribute moderation_webhook_url
|
|
64
67
|
# @return [String]
|
|
65
68
|
attr_accessor :moderation_webhook_url
|
|
@@ -174,6 +177,7 @@ module GetStream
|
|
|
174
177
|
@migrate_permissions_to_v2 = attributes[:migrate_permissions_to_v2] || attributes['migrate_permissions_to_v2'] || nil
|
|
175
178
|
@moderation_analytics_enabled = attributes[:moderation_analytics_enabled] || attributes['moderation_analytics_enabled'] || nil
|
|
176
179
|
@moderation_enabled = attributes[:moderation_enabled] || attributes['moderation_enabled'] || nil
|
|
180
|
+
@moderation_s3_image_access_role_arn = attributes[:moderation_s3_image_access_role_arn] || attributes['moderation_s3_image_access_role_arn'] || nil
|
|
177
181
|
@moderation_webhook_url = attributes[:moderation_webhook_url] || attributes['moderation_webhook_url'] || nil
|
|
178
182
|
@multi_tenant_enabled = attributes[:multi_tenant_enabled] || attributes['multi_tenant_enabled'] || nil
|
|
179
183
|
@permission_version = attributes[:permission_version] || attributes['permission_version'] || nil
|
|
@@ -227,6 +231,7 @@ module GetStream
|
|
|
227
231
|
migrate_permissions_to_v2: 'migrate_permissions_to_v2',
|
|
228
232
|
moderation_analytics_enabled: 'moderation_analytics_enabled',
|
|
229
233
|
moderation_enabled: 'moderation_enabled',
|
|
234
|
+
moderation_s3_image_access_role_arn: 'moderation_s3_image_access_role_arn',
|
|
230
235
|
moderation_webhook_url: 'moderation_webhook_url',
|
|
231
236
|
multi_tenant_enabled: 'multi_tenant_enabled',
|
|
232
237
|
permission_version: 'permission_version',
|
|
@@ -15,6 +15,9 @@ module GetStream
|
|
|
15
15
|
# @!attribute description
|
|
16
16
|
# @return [String] Description of the feed
|
|
17
17
|
attr_accessor :description
|
|
18
|
+
# @!attribute enrich_own_fields
|
|
19
|
+
# @return [Boolean] If true, enriches the feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
20
|
+
attr_accessor :enrich_own_fields
|
|
18
21
|
# @!attribute name
|
|
19
22
|
# @return [String] Name of the feed
|
|
20
23
|
attr_accessor :name
|
|
@@ -30,6 +33,7 @@ module GetStream
|
|
|
30
33
|
super(attributes)
|
|
31
34
|
@created_by_id = attributes[:created_by_id] || attributes['created_by_id'] || nil
|
|
32
35
|
@description = attributes[:description] || attributes['description'] || nil
|
|
36
|
+
@enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
|
|
33
37
|
@name = attributes[:name] || attributes['name'] || nil
|
|
34
38
|
@filter_tags = attributes[:filter_tags] || attributes['filter_tags'] || nil
|
|
35
39
|
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
@@ -40,6 +44,7 @@ module GetStream
|
|
|
40
44
|
{
|
|
41
45
|
created_by_id: 'created_by_id',
|
|
42
46
|
description: 'description',
|
|
47
|
+
enrich_own_fields: 'enrich_own_fields',
|
|
43
48
|
name: 'name',
|
|
44
49
|
filter_tags: 'filter_tags',
|
|
45
50
|
custom: 'custom'
|