Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/CommonClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,17 @@ public async Task<StreamResponse<UpdateBlockListResponse>> UpdateBlockListAsync(

return result;
}
public async Task<StreamResponse<CheckGCPPubSubResponse>> CheckGCPPubSubAsync(CheckGCPPubSubRequest request,
CancellationToken cancellationToken = default)
{

var result = await MakeRequestAsync<CheckGCPPubSubRequest, CheckGCPPubSubResponse>(
"POST",
"/api/v2/check_gcp_pubsub", null, request, null,
cancellationToken);

return result;
}
public async Task<StreamResponse<CheckPushResponse>> CheckPushAsync(CheckPushRequest request,
CancellationToken cancellationToken = default)
{
Expand Down
15 changes: 15 additions & 0 deletions src/FeedsV3Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,21 @@ public async Task<StreamResponse<UpdateCommentResponse>> UpdateCommentAsync(stri

return result;
}
public async Task<StreamResponse<CommentFeedbackResponse>> CommentFeedbackAsync(string id, CommentFeedbackRequest request,
CancellationToken cancellationToken = default)
{
var pathParams = new Dictionary<string, string>
{
["id"] = id,
};

var result = await _client.MakeRequestAsync<CommentFeedbackRequest, CommentFeedbackResponse>(
"POST",
"/api/v2/feeds/comments/{id}/feedback", null, request, pathParams,
cancellationToken);

return result;
}
public async Task<StreamResponse<UpdateCommentPartialResponse>> UpdateCommentPartialAsync(string id, UpdateCommentPartialRequest request,
CancellationToken cancellationToken = default)
{
Expand Down
12 changes: 12 additions & 0 deletions src/VideoClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@ public async Task<StreamResponse<QueryCallMembersResponse>> QueryCallMembersAsyn
return result;
}

// Returns a call's ring attempts, newest first. A session can be rung more than once, and the session-level accepted_by / rejected_by / missed_by maps flatten every ring together; an attempt says which ring a user acted on, which devices it reached, and who settled it and why. Pass call_session_id to limit the read to one session.
public async Task<StreamResponse<QueryCallRingAttemptsResponse>> QueryCallRingAttemptsAsync(QueryCallRingAttemptsRequest request,
CancellationToken cancellationToken = default)
{

var result = await _client.MakeRequestAsync<QueryCallRingAttemptsRequest, QueryCallRingAttemptsResponse>(
"POST",
"/api/v2/video/call/ring_attempts", null, request, null,
cancellationToken);
return result;
}


public async Task<StreamResponse<QueryCallStatsResponse>> QueryCallStatsAsync(QueryCallStatsRequest request,
CancellationToken cancellationToken = default)
Expand Down
10 changes: 8 additions & 2 deletions src/Webhook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public static class WebhookEventType
public const string CallRecordingStopped = "call.recording_stopped";
public const string CallRejected = "call.rejected";
public const string CallRing = "call.ring";
public const string CallRingSettled = "call.ring_settled";
public const string CallRTMPBroadcastFailed = "call.rtmp_broadcast_failed";
public const string CallRTMPBroadcastStarted = "call.rtmp_broadcast_started";
public const string CallRTMPBroadcastStopped = "call.rtmp_broadcast_stopped";
Expand Down Expand Up @@ -93,6 +94,8 @@ public static class WebhookEventType
public const string ExportBulkImageModerationSuccess = "export.bulk_image_moderation.success";
public const string ExportChannelsError = "export.channels.error";
public const string ExportChannelsSuccess = "export.channels.success";
public const string ExportLabelResultsError = "export.label_results.error";
public const string ExportLabelResultsSuccess = "export.label_results.success";
public const string ExportModerationLogsError = "export.moderation_logs.error";
public const string ExportModerationLogsSuccess = "export.moderation_logs.success";
public const string ExportReviewQueueError = "export.review_queue.error";
Expand All @@ -118,6 +121,7 @@ public static class WebhookEventType
public const string FeedsBookmarkFolderUpdated = "feeds.bookmark_folder.updated";
public const string FeedsCommentAdded = "feeds.comment.added";
public const string FeedsCommentDeleted = "feeds.comment.deleted";
public const string FeedsCommentFeedback = "feeds.comment.feedback";
public const string FeedsCommentReactionAdded = "feeds.comment.reaction.added";
public const string FeedsCommentReactionDeleted = "feeds.comment.reaction.deleted";
public const string FeedsCommentReactionUpdated = "feeds.comment.reaction.updated";
Expand Down Expand Up @@ -158,7 +162,6 @@ public static class WebhookEventType
public const string ModerationCustomAction = "moderation.custom_action";
public const string ModerationFlagged = "moderation.flagged";
public const string ModerationImageAnalysisComplete = "moderation.image_analysis.complete";
public const string ModerationIntentDetected = "moderation.intent_detected";
public const string ModerationMarkReviewed = "moderation.mark_reviewed";
public const string ModerationTextAnalysisComplete = "moderation.text_analysis.complete";
public const string ModerationCheckCompleted = "moderation_check.completed";
Expand Down Expand Up @@ -323,6 +326,7 @@ private static Type GetEventTypeClass(string eventType)
"call.recording_stopped" => typeof(CallRecordingStoppedEvent),
"call.rejected" => typeof(CallRejectedEvent),
"call.ring" => typeof(CallRingEvent),
"call.ring_settled" => typeof(CallRingSettledEvent),
"call.rtmp_broadcast_failed" => typeof(CallRtmpBroadcastFailedEvent),
"call.rtmp_broadcast_started" => typeof(CallRtmpBroadcastStartedEvent),
"call.rtmp_broadcast_stopped" => typeof(CallRtmpBroadcastStoppedEvent),
Expand Down Expand Up @@ -360,6 +364,8 @@ private static Type GetEventTypeClass(string eventType)
"export.bulk_image_moderation.success" => typeof(AsyncBulkImageModerationEvent),
"export.channels.error" => typeof(AsyncExportErrorEvent),
"export.channels.success" => typeof(AsyncExportChannelsEvent),
"export.label_results.error" => typeof(AsyncExportErrorEvent),
"export.label_results.success" => typeof(AsyncExportLabelResultsEvent),
"export.moderation_logs.error" => typeof(AsyncExportErrorEvent),
"export.moderation_logs.success" => typeof(AsyncExportModerationLogsEvent),
"export.review_queue.error" => typeof(AsyncExportErrorEvent),
Expand All @@ -385,6 +391,7 @@ private static Type GetEventTypeClass(string eventType)
"feeds.bookmark_folder.updated" => typeof(BookmarkFolderUpdatedEvent),
"feeds.comment.added" => typeof(CommentAddedEvent),
"feeds.comment.deleted" => typeof(CommentDeletedEvent),
"feeds.comment.feedback" => typeof(CommentFeedbackEvent),
"feeds.comment.reaction.added" => typeof(CommentReactionAddedEvent),
"feeds.comment.reaction.deleted" => typeof(CommentReactionDeletedEvent),
"feeds.comment.reaction.updated" => typeof(CommentReactionUpdatedEvent),
Expand Down Expand Up @@ -425,7 +432,6 @@ private static Type GetEventTypeClass(string eventType)
"moderation.custom_action" => typeof(ModerationCustomActionEvent),
"moderation.flagged" => typeof(ModerationFlaggedEvent),
"moderation.image_analysis.complete" => typeof(ModerationImageAnalysisCompleteEvent),
"moderation.intent_detected" => typeof(IntentDetectedEvent),
"moderation.mark_reviewed" => typeof(ModerationMarkReviewedEvent),
"moderation.text_analysis.complete" => typeof(ModerationTextAnalysisCompleteEvent),
"moderation_check.completed" => typeof(ModerationCheckCompletedEvent),
Expand Down
Loading
Loading