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.
- checksums.yaml +4 -4
- data/lib/getstream_ruby/generated/chat_client.rb +7 -10
- data/lib/getstream_ruby/generated/common_client.rb +56 -0
- data/lib/getstream_ruby/generated/feeds_client.rb +49 -3
- data/lib/getstream_ruby/generated/models/activity_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/activity_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/add_activity_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/add_comment_reaction_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/add_comment_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/add_reaction_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/add_user_group_members_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/aggregation_config.rb +6 -1
- data/lib/getstream_ruby/generated/models/async_export_error_event.rb +1 -1
- data/lib/getstream_ruby/generated/models/call_level_event_payload.rb +46 -0
- data/lib/getstream_ruby/generated/models/call_stats_participant_counts.rb +10 -0
- data/lib/getstream_ruby/generated/models/check_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/comment_restored_event.rb +66 -0
- data/lib/getstream_ruby/generated/models/delete_retention_policy_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/enriched_collection.rb +61 -0
- data/lib/getstream_ruby/generated/models/enrichment_options.rb +5 -0
- data/lib/getstream_ruby/generated/models/escalate_payload.rb +41 -0
- data/lib/getstream_ruby/generated/models/escalation_metadata.rb +41 -0
- data/lib/getstream_ruby/generated/models/feeds_preferences.rb +6 -1
- data/lib/getstream_ruby/generated/models/feeds_preferences_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/feeds_reaction_group.rb +41 -0
- data/lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb +206 -0
- data/lib/getstream_ruby/generated/models/feeds_v3_comment_response.rb +141 -0
- data/lib/getstream_ruby/generated/models/follow_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/get_external_storage_awss3_response.rb +46 -0
- data/lib/getstream_ruby/generated/models/get_external_storage_response.rb +51 -0
- data/lib/getstream_ruby/generated/models/get_flag_count_request.rb +36 -0
- data/lib/getstream_ruby/generated/models/get_flag_count_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/get_retention_policy_runs_request.rb +51 -0
- data/lib/getstream_ruby/generated/models/get_retention_policy_runs_response.rb +12 -2
- data/lib/getstream_ruby/generated/models/image_content_parameters.rb +5 -0
- data/lib/getstream_ruby/generated/models/insert_action_log_request.rb +56 -0
- data/lib/getstream_ruby/generated/models/insert_action_log_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/moderation_action_config_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/moderation_dashboard_preferences.rb +10 -0
- data/lib/getstream_ruby/generated/models/notification_target.rb +5 -0
- data/lib/getstream_ruby/generated/models/notification_trigger.rb +6 -1
- data/lib/getstream_ruby/generated/models/query_banned_users_payload.rb +1 -1
- data/lib/getstream_ruby/generated/models/query_call_members_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/query_call_participants_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/query_call_session_participant_stats_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/query_call_stats_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/query_calls_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/query_channels_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/query_members_payload.rb +3 -3
- data/lib/getstream_ruby/generated/models/query_message_flags_payload.rb +2 -2
- data/lib/getstream_ruby/generated/models/query_user_feedback_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/query_users_payload.rb +3 -3
- data/lib/getstream_ruby/generated/models/reaction_group_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/reaction_group_user_response.rb +41 -0
- data/lib/getstream_ruby/generated/models/restore_comment_request.rb +36 -0
- data/lib/getstream_ruby/generated/models/restore_comment_response.rb +41 -0
- data/lib/getstream_ruby/generated/models/retention_run_response.rb +46 -0
- data/lib/getstream_ruby/generated/models/review_queue_item_response.rb +22 -2
- data/lib/getstream_ruby/generated/models/set_retention_policy_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/submit_action_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/text_content_parameters.rb +5 -0
- data/lib/getstream_ruby/generated/models/triggered_rule_response.rb +2 -2
- data/lib/getstream_ruby/generated/models/unfollow_batch_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/unfollow_pair.rb +41 -0
- data/lib/getstream_ruby/generated/models/update_activity_partial_change_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/update_activity_partial_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/update_activity_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/update_comment_partial_request.rb +67 -0
- data/lib/getstream_ruby/generated/models/update_comment_partial_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/update_comment_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/update_follow_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/upsert_external_storage_awss3_request.rb +46 -0
- data/lib/getstream_ruby/generated/models/upsert_external_storage_request.rb +36 -0
- data/lib/getstream_ruby/generated/models/upsert_external_storage_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/validate_external_storage_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/video_content_parameters.rb +5 -0
- data/lib/getstream_ruby/generated/moderation_client.rb +34 -0
- data/lib/getstream_ruby/generated/webhook.rb +4 -0
- data/lib/getstream_ruby/version.rb +1 -1
- metadata +28 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d3596b4b6167cd6064d5b991f6c90fdc1d2d3c2600f04935d78ad8d3f17a3974
|
|
4
|
+
data.tar.gz: 270614b9b84934a0d3bdce169252ba72059cbcd466fc444b903c5b076c462afd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a305c9c5af44012de6004d0527b23ac2577186168953f73104b79a7f2c29222433a06d7fa90d3008b36e2e53c6baa92090bc90a5191d4e2df3980f068740a314
|
|
7
|
+
data.tar.gz: 4be87617294737af62deb9844d56f2dda857feecd38338fc1fda51fb1cbbe99dd08f039758e728c845e3da6b0d9bad60143e1f1106189630526ae7d2183e8dde
|
|
@@ -1435,23 +1435,20 @@ module GetStream
|
|
|
1435
1435
|
)
|
|
1436
1436
|
end
|
|
1437
1437
|
|
|
1438
|
-
# Returns
|
|
1438
|
+
# Returns filtered and sorted retention cleanup run history for the app. Supports filter_conditions on 'policy' (possible values: 'old-messages', 'inactive-channels') and 'date' fields. Server-side only.
|
|
1439
1439
|
#
|
|
1440
|
-
# @param
|
|
1441
|
-
# @param offset [Integer]
|
|
1440
|
+
# @param get_retention_policy_runs_request [GetRetentionPolicyRunsRequest]
|
|
1442
1441
|
# @return [Models::GetRetentionPolicyRunsResponse]
|
|
1443
|
-
def get_retention_policy_runs(
|
|
1442
|
+
def get_retention_policy_runs(get_retention_policy_runs_request)
|
|
1444
1443
|
path = '/api/v2/chat/retention_policy/runs'
|
|
1445
|
-
# Build
|
|
1446
|
-
|
|
1447
|
-
query_params['limit'] = limit unless limit.nil?
|
|
1448
|
-
query_params['offset'] = offset unless offset.nil?
|
|
1444
|
+
# Build request body
|
|
1445
|
+
body = get_retention_policy_runs_request
|
|
1449
1446
|
|
|
1450
1447
|
# Make the API request
|
|
1451
1448
|
@client.make_request(
|
|
1452
|
-
:
|
|
1449
|
+
:post,
|
|
1453
1450
|
path,
|
|
1454
|
-
|
|
1451
|
+
body: body
|
|
1455
1452
|
)
|
|
1456
1453
|
end
|
|
1457
1454
|
|
|
@@ -443,6 +443,62 @@ module GetStream
|
|
|
443
443
|
)
|
|
444
444
|
end
|
|
445
445
|
|
|
446
|
+
# Removes the external storage configuration for the app. Idempotent: succeeds even if no configuration exists.
|
|
447
|
+
#
|
|
448
|
+
# @return [Models::DeleteExternalStorageResponse]
|
|
449
|
+
def delete_importer_external_storage()
|
|
450
|
+
path = '/api/v2/imports/v2/external-storage'
|
|
451
|
+
|
|
452
|
+
# Make the API request
|
|
453
|
+
@client.make_request(
|
|
454
|
+
:delete,
|
|
455
|
+
path
|
|
456
|
+
)
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
# Returns the current external storage configuration for the app. Returns 404 if no configuration exists.
|
|
460
|
+
#
|
|
461
|
+
# @return [Models::GetExternalStorageResponse]
|
|
462
|
+
def get_importer_external_storage()
|
|
463
|
+
path = '/api/v2/imports/v2/external-storage'
|
|
464
|
+
|
|
465
|
+
# Make the API request
|
|
466
|
+
@client.make_request(
|
|
467
|
+
:get,
|
|
468
|
+
path
|
|
469
|
+
)
|
|
470
|
+
end
|
|
471
|
+
|
|
472
|
+
# Creates or updates the external storage configuration for the app. Currently only AWS S3 (via cross-account IAM role assumption) is supported.
|
|
473
|
+
#
|
|
474
|
+
# @param upsert_external_storage_request [UpsertExternalStorageRequest]
|
|
475
|
+
# @return [Models::UpsertExternalStorageResponse]
|
|
476
|
+
def upsert_importer_external_storage(upsert_external_storage_request)
|
|
477
|
+
path = '/api/v2/imports/v2/external-storage'
|
|
478
|
+
# Build request body
|
|
479
|
+
body = upsert_external_storage_request
|
|
480
|
+
|
|
481
|
+
# Make the API request
|
|
482
|
+
@client.make_request(
|
|
483
|
+
:put,
|
|
484
|
+
path,
|
|
485
|
+
body: body
|
|
486
|
+
)
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
# Validates the configured external S3 storage by performing a live STS AssumeRole and S3 ListObjectsV2 check.
|
|
490
|
+
#
|
|
491
|
+
# @return [Models::ValidateExternalStorageResponse]
|
|
492
|
+
def validate_importer_external_storage()
|
|
493
|
+
path = '/api/v2/imports/v2/external-storage/validate'
|
|
494
|
+
|
|
495
|
+
# Make the API request
|
|
496
|
+
@client.make_request(
|
|
497
|
+
:post,
|
|
498
|
+
path
|
|
499
|
+
)
|
|
500
|
+
end
|
|
501
|
+
|
|
446
502
|
# Deletes an import v2 task. Can only delete tasks in queued state.
|
|
447
503
|
#
|
|
448
504
|
# @param _id [String]
|
|
@@ -596,12 +596,13 @@ module GetStream
|
|
|
596
596
|
# @param depth [Integer]
|
|
597
597
|
# @param sort [String]
|
|
598
598
|
# @param replies_limit [Integer]
|
|
599
|
+
# @param id_around [String]
|
|
599
600
|
# @param user_id [String]
|
|
600
601
|
# @param limit [Integer]
|
|
601
602
|
# @param prev [String]
|
|
602
603
|
# @param _next [String]
|
|
603
604
|
# @return [Models::GetCommentsResponse]
|
|
604
|
-
def get_comments(object_id, object_type, depth = nil, sort = nil, replies_limit = nil, user_id = nil, limit = nil, prev = nil, _next = nil)
|
|
605
|
+
def get_comments(object_id, object_type, depth = nil, sort = nil, replies_limit = nil, id_around = nil, user_id = nil, limit = nil, prev = nil, _next = nil)
|
|
605
606
|
path = '/api/v2/feeds/comments'
|
|
606
607
|
# Build query parameters
|
|
607
608
|
query_params = {}
|
|
@@ -610,6 +611,7 @@ module GetStream
|
|
|
610
611
|
query_params['depth'] = depth unless depth.nil?
|
|
611
612
|
query_params['sort'] = sort unless sort.nil?
|
|
612
613
|
query_params['replies_limit'] = replies_limit unless replies_limit.nil?
|
|
614
|
+
query_params['id_around'] = id_around unless id_around.nil?
|
|
613
615
|
query_params['user_id'] = user_id unless user_id.nil?
|
|
614
616
|
query_params['limit'] = limit unless limit.nil?
|
|
615
617
|
query_params['prev'] = prev unless prev.nil?
|
|
@@ -733,6 +735,26 @@ module GetStream
|
|
|
733
735
|
)
|
|
734
736
|
end
|
|
735
737
|
|
|
738
|
+
# Updates certain fields of the comment. Use 'set' to update specific fields and 'unset' to remove fields.Sends events:- feeds.activity.updated- feeds.comment.updated
|
|
739
|
+
#
|
|
740
|
+
# @param _id [String]
|
|
741
|
+
# @param update_comment_partial_request [UpdateCommentPartialRequest]
|
|
742
|
+
# @return [Models::UpdateCommentPartialResponse]
|
|
743
|
+
def update_comment_partial(_id, update_comment_partial_request)
|
|
744
|
+
path = '/api/v2/feeds/comments/{id}/partial'
|
|
745
|
+
# Replace path parameters
|
|
746
|
+
path = path.gsub('{id}', _id.to_s)
|
|
747
|
+
# Build request body
|
|
748
|
+
body = update_comment_partial_request
|
|
749
|
+
|
|
750
|
+
# Make the API request
|
|
751
|
+
@client.make_request(
|
|
752
|
+
:post,
|
|
753
|
+
path,
|
|
754
|
+
body: body
|
|
755
|
+
)
|
|
756
|
+
end
|
|
757
|
+
|
|
736
758
|
# Adds a reaction to a comment
|
|
737
759
|
#
|
|
738
760
|
# @param _id [String]
|
|
@@ -804,12 +826,13 @@ module GetStream
|
|
|
804
826
|
# @param depth [Integer]
|
|
805
827
|
# @param sort [String]
|
|
806
828
|
# @param replies_limit [Integer]
|
|
829
|
+
# @param id_around [String]
|
|
807
830
|
# @param user_id [String]
|
|
808
831
|
# @param limit [Integer]
|
|
809
832
|
# @param prev [String]
|
|
810
833
|
# @param _next [String]
|
|
811
834
|
# @return [Models::GetCommentRepliesResponse]
|
|
812
|
-
def get_comment_replies(_id, depth = nil, sort = nil, replies_limit = nil, user_id = nil, limit = nil, prev = nil, _next = nil)
|
|
835
|
+
def get_comment_replies(_id, depth = nil, sort = nil, replies_limit = nil, id_around = nil, user_id = nil, limit = nil, prev = nil, _next = nil)
|
|
813
836
|
path = '/api/v2/feeds/comments/{id}/replies'
|
|
814
837
|
# Replace path parameters
|
|
815
838
|
path = path.gsub('{id}', _id.to_s)
|
|
@@ -818,6 +841,7 @@ module GetStream
|
|
|
818
841
|
query_params['depth'] = depth unless depth.nil?
|
|
819
842
|
query_params['sort'] = sort unless sort.nil?
|
|
820
843
|
query_params['replies_limit'] = replies_limit unless replies_limit.nil?
|
|
844
|
+
query_params['id_around'] = id_around unless id_around.nil?
|
|
821
845
|
query_params['user_id'] = user_id unless user_id.nil?
|
|
822
846
|
query_params['limit'] = limit unless limit.nil?
|
|
823
847
|
query_params['prev'] = prev unless prev.nil?
|
|
@@ -831,6 +855,26 @@ module GetStream
|
|
|
831
855
|
)
|
|
832
856
|
end
|
|
833
857
|
|
|
858
|
+
# Restores a soft-deleted comment by its ID. The comment and all its descendants are restored. Requires moderator permissions.
|
|
859
|
+
#
|
|
860
|
+
# @param _id [String]
|
|
861
|
+
# @param restore_comment_request [RestoreCommentRequest]
|
|
862
|
+
# @return [Models::RestoreCommentResponse]
|
|
863
|
+
def restore_comment(_id, restore_comment_request)
|
|
864
|
+
path = '/api/v2/feeds/comments/{id}/restore'
|
|
865
|
+
# Replace path parameters
|
|
866
|
+
path = path.gsub('{id}', _id.to_s)
|
|
867
|
+
# Build request body
|
|
868
|
+
body = restore_comment_request
|
|
869
|
+
|
|
870
|
+
# Make the API request
|
|
871
|
+
@client.make_request(
|
|
872
|
+
:post,
|
|
873
|
+
path,
|
|
874
|
+
body: body
|
|
875
|
+
)
|
|
876
|
+
end
|
|
877
|
+
|
|
834
878
|
# List all feed groups for the application
|
|
835
879
|
#
|
|
836
880
|
# @param include_soft_deleted [Boolean]
|
|
@@ -1606,9 +1650,10 @@ module GetStream
|
|
|
1606
1650
|
# @param source [String]
|
|
1607
1651
|
# @param target [String]
|
|
1608
1652
|
# @param delete_notification_activity [Boolean]
|
|
1653
|
+
# @param keep_history [Boolean]
|
|
1609
1654
|
# @param enrich_own_fields [Boolean]
|
|
1610
1655
|
# @return [Models::UnfollowResponse]
|
|
1611
|
-
def unfollow(source, target, delete_notification_activity = nil, enrich_own_fields = nil)
|
|
1656
|
+
def unfollow(source, target, delete_notification_activity = nil, keep_history = nil, enrich_own_fields = nil)
|
|
1612
1657
|
path = '/api/v2/feeds/follows/{source}/{target}'
|
|
1613
1658
|
# Replace path parameters
|
|
1614
1659
|
path = path.gsub('{source}', source.to_s)
|
|
@@ -1616,6 +1661,7 @@ module GetStream
|
|
|
1616
1661
|
# Build query parameters
|
|
1617
1662
|
query_params = {}
|
|
1618
1663
|
query_params['delete_notification_activity'] = delete_notification_activity unless delete_notification_activity.nil?
|
|
1664
|
+
query_params['keep_history'] = keep_history unless keep_history.nil?
|
|
1619
1665
|
query_params['enrich_own_fields'] = enrich_own_fields unless enrich_own_fields.nil?
|
|
1620
1666
|
|
|
1621
1667
|
# Make the API request
|
|
@@ -16,7 +16,8 @@ module GetStream
|
|
|
16
16
|
# @return [Array<String>] List of feeds to add the activity to with a default max limit of 25 feeds
|
|
17
17
|
attr_accessor :feeds
|
|
18
18
|
# @!attribute copy_custom_to_notification
|
|
19
|
-
#
|
|
19
|
+
# @deprecated This field is deprecated.
|
|
20
|
+
# @return [Boolean] Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
20
21
|
attr_accessor :copy_custom_to_notification
|
|
21
22
|
# @!attribute create_notification_activity
|
|
22
23
|
# @return [Boolean] Whether to create notification activities for mentioned users
|
|
@@ -150,6 +150,9 @@ module GetStream
|
|
|
150
150
|
# @!attribute poll
|
|
151
151
|
# @return [PollResponseData]
|
|
152
152
|
attr_accessor :poll
|
|
153
|
+
# @!attribute score_vars
|
|
154
|
+
# @return [Object] Variable values used at ranking time. Only included when include_score_vars is enabled in enrichment options.
|
|
155
|
+
attr_accessor :score_vars
|
|
153
156
|
|
|
154
157
|
# Initialize with attributes
|
|
155
158
|
def initialize(attributes = {})
|
|
@@ -201,6 +204,7 @@ module GetStream
|
|
|
201
204
|
@notification_context = attributes[:notification_context] || attributes['notification_context'] || nil
|
|
202
205
|
@parent = attributes[:parent] || attributes['parent'] || nil
|
|
203
206
|
@poll = attributes[:poll] || attributes['poll'] || nil
|
|
207
|
+
@score_vars = attributes[:score_vars] || attributes['score_vars'] || nil
|
|
204
208
|
end
|
|
205
209
|
|
|
206
210
|
# Override field mappings for JSON serialization
|
|
@@ -252,7 +256,8 @@ module GetStream
|
|
|
252
256
|
moderation: 'moderation',
|
|
253
257
|
notification_context: 'notification_context',
|
|
254
258
|
parent: 'parent',
|
|
255
|
-
poll: 'poll'
|
|
259
|
+
poll: 'poll',
|
|
260
|
+
score_vars: 'score_vars'
|
|
256
261
|
}
|
|
257
262
|
end
|
|
258
263
|
end
|
|
@@ -16,7 +16,8 @@ module GetStream
|
|
|
16
16
|
# @return [Array<String>] List of feeds to add the activity to with a default max limit of 25 feeds
|
|
17
17
|
attr_accessor :feeds
|
|
18
18
|
# @!attribute copy_custom_to_notification
|
|
19
|
-
#
|
|
19
|
+
# @deprecated This field is deprecated.
|
|
20
|
+
# @return [Boolean] Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
20
21
|
attr_accessor :copy_custom_to_notification
|
|
21
22
|
# @!attribute create_notification_activity
|
|
22
23
|
# @return [Boolean] Whether to create notification activities for mentioned users
|
|
@@ -13,7 +13,8 @@ module GetStream
|
|
|
13
13
|
# @return [String] The type of reaction, eg upvote, like, ...
|
|
14
14
|
attr_accessor :type
|
|
15
15
|
# @!attribute copy_custom_to_notification
|
|
16
|
-
#
|
|
16
|
+
# @deprecated This field is deprecated.
|
|
17
|
+
# @return [Boolean] Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
17
18
|
attr_accessor :copy_custom_to_notification
|
|
18
19
|
# @!attribute create_notification_activity
|
|
19
20
|
# @return [Boolean] Whether to create a notification activity for this reaction
|
|
@@ -16,7 +16,8 @@ module GetStream
|
|
|
16
16
|
# @return [String] Text content of the comment
|
|
17
17
|
attr_accessor :comment
|
|
18
18
|
# @!attribute copy_custom_to_notification
|
|
19
|
-
#
|
|
19
|
+
# @deprecated This field is deprecated.
|
|
20
|
+
# @return [Boolean] Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
20
21
|
attr_accessor :copy_custom_to_notification
|
|
21
22
|
# @!attribute create_notification_activity
|
|
22
23
|
# @return [Boolean] Whether to create a notification activity for this comment
|
|
@@ -13,7 +13,8 @@ module GetStream
|
|
|
13
13
|
# @return [String] Type of reaction
|
|
14
14
|
attr_accessor :type
|
|
15
15
|
# @!attribute copy_custom_to_notification
|
|
16
|
-
#
|
|
16
|
+
# @deprecated This field is deprecated.
|
|
17
|
+
# @return [Boolean] Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
17
18
|
attr_accessor :copy_custom_to_notification
|
|
18
19
|
# @!attribute create_notification_activity
|
|
19
20
|
# @return [Boolean] Whether to create a notification activity for this reaction
|
|
@@ -12,6 +12,9 @@ module GetStream
|
|
|
12
12
|
# @!attribute member_ids
|
|
13
13
|
# @return [Array<String>] List of user IDs to add as members
|
|
14
14
|
attr_accessor :member_ids
|
|
15
|
+
# @!attribute as_admin
|
|
16
|
+
# @return [Boolean] Whether to add the members as group admins. Defaults to false
|
|
17
|
+
attr_accessor :as_admin
|
|
15
18
|
# @!attribute team_id
|
|
16
19
|
# @return [String]
|
|
17
20
|
attr_accessor :team_id
|
|
@@ -20,6 +23,7 @@ module GetStream
|
|
|
20
23
|
def initialize(attributes = {})
|
|
21
24
|
super(attributes)
|
|
22
25
|
@member_ids = attributes[:member_ids] || attributes['member_ids']
|
|
26
|
+
@as_admin = attributes[:as_admin] || attributes['as_admin'] || nil
|
|
23
27
|
@team_id = attributes[:team_id] || attributes['team_id'] || nil
|
|
24
28
|
end
|
|
25
29
|
|
|
@@ -27,6 +31,7 @@ module GetStream
|
|
|
27
31
|
def self.json_field_mappings
|
|
28
32
|
{
|
|
29
33
|
member_ids: 'member_ids',
|
|
34
|
+
as_admin: 'as_admin',
|
|
30
35
|
team_id: 'team_id'
|
|
31
36
|
}
|
|
32
37
|
end
|
|
@@ -12,17 +12,22 @@ module GetStream
|
|
|
12
12
|
# @!attribute format
|
|
13
13
|
# @return [String] Format for activity aggregation
|
|
14
14
|
attr_accessor :format
|
|
15
|
+
# @!attribute score_strategy
|
|
16
|
+
# @return [String] Strategy for computing aggregated group scores from member activity scores when ranking is enabled. Valid values: sum, max, avg
|
|
17
|
+
attr_accessor :score_strategy
|
|
15
18
|
|
|
16
19
|
# Initialize with attributes
|
|
17
20
|
def initialize(attributes = {})
|
|
18
21
|
super(attributes)
|
|
19
22
|
@format = attributes[:format] || attributes['format'] || nil
|
|
23
|
+
@score_strategy = attributes[:score_strategy] || attributes['score_strategy'] || nil
|
|
20
24
|
end
|
|
21
25
|
|
|
22
26
|
# Override field mappings for JSON serialization
|
|
23
27
|
def self.json_field_mappings
|
|
24
28
|
{
|
|
25
|
-
format: 'format'
|
|
29
|
+
format: 'format',
|
|
30
|
+
score_strategy: 'score_strategy'
|
|
26
31
|
}
|
|
27
32
|
end
|
|
28
33
|
end
|
|
@@ -43,7 +43,7 @@ module GetStream
|
|
|
43
43
|
@started_at = attributes[:started_at] || attributes['started_at']
|
|
44
44
|
@task_id = attributes[:task_id] || attributes['task_id']
|
|
45
45
|
@custom = attributes[:custom] || attributes['custom']
|
|
46
|
-
@type = attributes[:type] || attributes['type'] || "export.
|
|
46
|
+
@type = attributes[:type] || attributes['type'] || "export.moderation_logs.error"
|
|
47
47
|
@received_at = attributes[:received_at] || attributes['received_at'] || nil
|
|
48
48
|
end
|
|
49
49
|
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
|
|
4
|
+
|
|
5
|
+
module GetStream
|
|
6
|
+
module Generated
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
class CallLevelEventPayload < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute event_type
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :event_type
|
|
15
|
+
# @!attribute timestamp
|
|
16
|
+
# @return [Integer]
|
|
17
|
+
attr_accessor :timestamp
|
|
18
|
+
# @!attribute user_id
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :user_id
|
|
21
|
+
# @!attribute payload
|
|
22
|
+
# @return [Object]
|
|
23
|
+
attr_accessor :payload
|
|
24
|
+
|
|
25
|
+
# Initialize with attributes
|
|
26
|
+
def initialize(attributes = {})
|
|
27
|
+
super(attributes)
|
|
28
|
+
@event_type = attributes[:event_type] || attributes['event_type']
|
|
29
|
+
@timestamp = attributes[:timestamp] || attributes['timestamp']
|
|
30
|
+
@user_id = attributes[:user_id] || attributes['user_id']
|
|
31
|
+
@payload = attributes[:payload] || attributes['payload'] || nil
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Override field mappings for JSON serialization
|
|
35
|
+
def self.json_field_mappings
|
|
36
|
+
{
|
|
37
|
+
event_type: 'event_type',
|
|
38
|
+
timestamp: 'timestamp',
|
|
39
|
+
user_id: 'user_id',
|
|
40
|
+
payload: 'payload'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -27,6 +27,12 @@ module GetStream
|
|
|
27
27
|
# @!attribute sessions
|
|
28
28
|
# @return [Integer]
|
|
29
29
|
attr_accessor :sessions
|
|
30
|
+
# @!attribute call_event_count
|
|
31
|
+
# @return [Integer]
|
|
32
|
+
attr_accessor :call_event_count
|
|
33
|
+
# @!attribute cq_score
|
|
34
|
+
# @return [Integer]
|
|
35
|
+
attr_accessor :cq_score
|
|
30
36
|
# @!attribute total_participant_duration
|
|
31
37
|
# @return [Integer]
|
|
32
38
|
attr_accessor :total_participant_duration
|
|
@@ -40,6 +46,8 @@ module GetStream
|
|
|
40
46
|
@peak_concurrent_users = attributes[:peak_concurrent_users] || attributes['peak_concurrent_users']
|
|
41
47
|
@publishers = attributes[:publishers] || attributes['publishers']
|
|
42
48
|
@sessions = attributes[:sessions] || attributes['sessions']
|
|
49
|
+
@call_event_count = attributes[:call_event_count] || attributes['call_event_count'] || nil
|
|
50
|
+
@cq_score = attributes[:cq_score] || attributes['cq_score'] || nil
|
|
43
51
|
@total_participant_duration = attributes[:total_participant_duration] || attributes['total_participant_duration'] || nil
|
|
44
52
|
end
|
|
45
53
|
|
|
@@ -52,6 +60,8 @@ module GetStream
|
|
|
52
60
|
peak_concurrent_users: 'peak_concurrent_users',
|
|
53
61
|
publishers: 'publishers',
|
|
54
62
|
sessions: 'sessions',
|
|
63
|
+
call_event_count: 'call_event_count',
|
|
64
|
+
cq_score: 'cq_score',
|
|
55
65
|
total_participant_duration: 'total_participant_duration'
|
|
56
66
|
}
|
|
57
67
|
end
|
|
@@ -24,6 +24,9 @@ module GetStream
|
|
|
24
24
|
# @!attribute config_team
|
|
25
25
|
# @return [String] Team associated with the configuration
|
|
26
26
|
attr_accessor :config_team
|
|
27
|
+
# @!attribute content_published_at
|
|
28
|
+
# @return [DateTime] Original timestamp when the content was produced (for correlating flagged content with source video timeline)
|
|
29
|
+
attr_accessor :content_published_at
|
|
27
30
|
# @!attribute test_mode
|
|
28
31
|
# @return [Boolean] Whether to run moderation in test mode
|
|
29
32
|
attr_accessor :test_mode
|
|
@@ -51,6 +54,7 @@ module GetStream
|
|
|
51
54
|
@entity_type = attributes[:entity_type] || attributes['entity_type']
|
|
52
55
|
@config_key = attributes[:config_key] || attributes['config_key'] || nil
|
|
53
56
|
@config_team = attributes[:config_team] || attributes['config_team'] || nil
|
|
57
|
+
@content_published_at = attributes[:content_published_at] || attributes['content_published_at'] || nil
|
|
54
58
|
@test_mode = attributes[:test_mode] || attributes['test_mode'] || nil
|
|
55
59
|
@user_id = attributes[:user_id] || attributes['user_id'] || nil
|
|
56
60
|
@config = attributes[:config] || attributes['config'] || nil
|
|
@@ -67,6 +71,7 @@ module GetStream
|
|
|
67
71
|
entity_type: 'entity_type',
|
|
68
72
|
config_key: 'config_key',
|
|
69
73
|
config_team: 'config_team',
|
|
74
|
+
content_published_at: 'content_published_at',
|
|
70
75
|
test_mode: 'test_mode',
|
|
71
76
|
user_id: 'user_id',
|
|
72
77
|
config: 'config',
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
|
|
4
|
+
|
|
5
|
+
module GetStream
|
|
6
|
+
module Generated
|
|
7
|
+
module Models
|
|
8
|
+
# Emitted when a soft-deleted comment is restored.
|
|
9
|
+
class CommentRestoredEvent < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute created_at
|
|
13
|
+
# @return [DateTime] Date/time of creation
|
|
14
|
+
attr_accessor :created_at
|
|
15
|
+
# @!attribute fid
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :fid
|
|
18
|
+
# @!attribute comment
|
|
19
|
+
# @return [CommentResponse]
|
|
20
|
+
attr_accessor :comment
|
|
21
|
+
# @!attribute custom
|
|
22
|
+
# @return [Object]
|
|
23
|
+
attr_accessor :custom
|
|
24
|
+
# @!attribute type
|
|
25
|
+
# @return [String] The type of event: "feeds.comment.restored" in this case
|
|
26
|
+
attr_accessor :type
|
|
27
|
+
# @!attribute feed_visibility
|
|
28
|
+
# @return [String]
|
|
29
|
+
attr_accessor :feed_visibility
|
|
30
|
+
# @!attribute received_at
|
|
31
|
+
# @return [DateTime]
|
|
32
|
+
attr_accessor :received_at
|
|
33
|
+
# @!attribute user
|
|
34
|
+
# @return [UserResponseCommonFields]
|
|
35
|
+
attr_accessor :user
|
|
36
|
+
|
|
37
|
+
# Initialize with attributes
|
|
38
|
+
def initialize(attributes = {})
|
|
39
|
+
super(attributes)
|
|
40
|
+
@created_at = attributes[:created_at] || attributes['created_at']
|
|
41
|
+
@fid = attributes[:fid] || attributes['fid']
|
|
42
|
+
@comment = attributes[:comment] || attributes['comment']
|
|
43
|
+
@custom = attributes[:custom] || attributes['custom']
|
|
44
|
+
@type = attributes[:type] || attributes['type'] || "feeds.comment.restored"
|
|
45
|
+
@feed_visibility = attributes[:feed_visibility] || attributes['feed_visibility'] || nil
|
|
46
|
+
@received_at = attributes[:received_at] || attributes['received_at'] || nil
|
|
47
|
+
@user = attributes[:user] || attributes['user'] || nil
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Override field mappings for JSON serialization
|
|
51
|
+
def self.json_field_mappings
|
|
52
|
+
{
|
|
53
|
+
created_at: 'created_at',
|
|
54
|
+
fid: 'fid',
|
|
55
|
+
comment: 'comment',
|
|
56
|
+
custom: 'custom',
|
|
57
|
+
type: 'type',
|
|
58
|
+
feed_visibility: 'feed_visibility',
|
|
59
|
+
received_at: 'received_at',
|
|
60
|
+
user: 'user'
|
|
61
|
+
}
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -16,7 +16,7 @@ module GetStream
|
|
|
16
16
|
# Initialize with attributes
|
|
17
17
|
def initialize(attributes = {})
|
|
18
18
|
super(attributes)
|
|
19
|
-
@policy = attributes[:policy] || attributes['policy']
|
|
19
|
+
@policy = attributes[:policy] || attributes['policy']
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
# Override field mappings for JSON serialization
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
|
|
4
|
+
|
|
5
|
+
module GetStream
|
|
6
|
+
module Generated
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
class EnrichedCollection < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute created_at
|
|
13
|
+
# @return [DateTime]
|
|
14
|
+
attr_accessor :created_at
|
|
15
|
+
# @!attribute id
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :id
|
|
18
|
+
# @!attribute name
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :name
|
|
21
|
+
# @!attribute status
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :status
|
|
24
|
+
# @!attribute updated_at
|
|
25
|
+
# @return [DateTime]
|
|
26
|
+
attr_accessor :updated_at
|
|
27
|
+
# @!attribute user_id
|
|
28
|
+
# @return [String]
|
|
29
|
+
attr_accessor :user_id
|
|
30
|
+
# @!attribute custom
|
|
31
|
+
# @return [Object]
|
|
32
|
+
attr_accessor :custom
|
|
33
|
+
|
|
34
|
+
# Initialize with attributes
|
|
35
|
+
def initialize(attributes = {})
|
|
36
|
+
super(attributes)
|
|
37
|
+
@created_at = attributes[:created_at] || attributes['created_at']
|
|
38
|
+
@id = attributes[:id] || attributes['id']
|
|
39
|
+
@name = attributes[:name] || attributes['name']
|
|
40
|
+
@status = attributes[:status] || attributes['status']
|
|
41
|
+
@updated_at = attributes[:updated_at] || attributes['updated_at']
|
|
42
|
+
@user_id = attributes[:user_id] || attributes['user_id']
|
|
43
|
+
@custom = attributes[:custom] || attributes['custom']
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Override field mappings for JSON serialization
|
|
47
|
+
def self.json_field_mappings
|
|
48
|
+
{
|
|
49
|
+
created_at: 'created_at',
|
|
50
|
+
id: 'id',
|
|
51
|
+
name: 'name',
|
|
52
|
+
status: 'status',
|
|
53
|
+
updated_at: 'updated_at',
|
|
54
|
+
user_id: 'user_id',
|
|
55
|
+
custom: 'custom'
|
|
56
|
+
}
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -12,6 +12,9 @@ module GetStream
|
|
|
12
12
|
# @!attribute enrich_own_followings
|
|
13
13
|
# @return [Boolean] Default: false. When true, includes fetching and enriching own_followings (follows where activity author's feeds follow current user's feeds).
|
|
14
14
|
attr_accessor :enrich_own_followings
|
|
15
|
+
# @!attribute include_score_vars
|
|
16
|
+
# @return [Boolean] Default: false. When true, includes score_vars in activity responses containing variable values used at ranking time.
|
|
17
|
+
attr_accessor :include_score_vars
|
|
15
18
|
# @!attribute skip_activity
|
|
16
19
|
# @return [Boolean] Default: false. When true, skips all activity enrichments.
|
|
17
20
|
attr_accessor :skip_activity
|
|
@@ -68,6 +71,7 @@ module GetStream
|
|
|
68
71
|
def initialize(attributes = {})
|
|
69
72
|
super(attributes)
|
|
70
73
|
@enrich_own_followings = attributes[:enrich_own_followings] || attributes['enrich_own_followings'] || nil
|
|
74
|
+
@include_score_vars = attributes[:include_score_vars] || attributes['include_score_vars'] || nil
|
|
71
75
|
@skip_activity = attributes[:skip_activity] || attributes['skip_activity'] || nil
|
|
72
76
|
@skip_activity_collections = attributes[:skip_activity_collections] || attributes['skip_activity_collections'] || nil
|
|
73
77
|
@skip_activity_comments = attributes[:skip_activity_comments] || attributes['skip_activity_comments'] || nil
|
|
@@ -91,6 +95,7 @@ module GetStream
|
|
|
91
95
|
def self.json_field_mappings
|
|
92
96
|
{
|
|
93
97
|
enrich_own_followings: 'enrich_own_followings',
|
|
98
|
+
include_score_vars: 'include_score_vars',
|
|
94
99
|
skip_activity: 'skip_activity',
|
|
95
100
|
skip_activity_collections: 'skip_activity_collections',
|
|
96
101
|
skip_activity_comments: 'skip_activity_comments',
|