@stream-io/node-sdk 0.8.10 → 0.8.12

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.
@@ -382,9 +382,11 @@ export class ModerationApi {
382
382
  ): Promise<StreamResponse<ModerationBanResponse>> {
383
383
  const body = {
384
384
  target_user_id: request?.target_user_id,
385
+ ban_from_future_channels: request?.ban_from_future_channels,
385
386
  banned_by_id: request?.banned_by_id,
386
387
  channel_cid: request?.channel_cid,
387
388
  delete_messages: request?.delete_messages,
389
+ delete_reactions: request?.delete_reactions,
388
390
  ip_ban: request?.ip_ban,
389
391
  reason: request?.reason,
390
392
  shadow: request?.shadow,
@@ -45,6 +45,8 @@ import {
45
45
  QueryCallParticipantSessionsResponse,
46
46
  QueryCallParticipantsRequest,
47
47
  QueryCallParticipantsResponse,
48
+ QueryCallRingAttemptsRequest,
49
+ QueryCallRingAttemptsResponse,
48
50
  QueryCallSessionParticipantStatsResponse,
49
51
  QueryCallSessionParticipantStatsTimelineResponse,
50
52
  QueryCallSessionStatsRequest,
@@ -188,6 +190,29 @@ export class VideoApi {
188
190
  return response;
189
191
  }
190
192
 
193
+ async queryCallRingAttempts(
194
+ request: QueryCallRingAttemptsRequest,
195
+ ): Promise<StreamResponse<QueryCallRingAttemptsResponse>> {
196
+ const body = {
197
+ id: request?.id,
198
+ type: request?.type,
199
+ call_session_id: request?.call_session_id,
200
+ };
201
+
202
+ const response =
203
+ await this.apiClient.sendRequest<QueryCallRingAttemptsResponse>(
204
+ 'POST',
205
+ '/api/v2/video/call/ring_attempts',
206
+ undefined,
207
+ undefined,
208
+ body,
209
+ );
210
+
211
+ decoders['QueryCallRingAttemptsResponse']?.(response);
212
+
213
+ return response;
214
+ }
215
+
191
216
  async queryCallStats(
192
217
  request?: QueryCallStatsRequest,
193
218
  ): Promise<StreamResponse<QueryCallStatsResponse>> {