@stream-io/node-sdk 0.8.11 → 0.8.13
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.
- package/CHANGELOG.md +26 -0
- package/__tests__/docs-snippets/README.md +87 -0
- package/dist/index.cjs.js +233 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.mjs +232 -14
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/StreamChannel.d.ts +8 -1
- package/dist/src/StreamChatClient.d.ts +12 -0
- package/dist/src/gen/common/CommonApi.d.ts +2 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +4 -1
- package/dist/src/gen/models/index.d.ts +581 -11
- package/dist/src/gen/video/VideoApi.d.ts +2 -1
- package/index.ts +2 -0
- package/package.json +6 -1
- package/src/ApiClient.ts +3 -2
- package/src/StreamChannel.ts +23 -1
- package/src/StreamChatClient.ts +29 -1
- package/src/StreamClient.ts +13 -6
- package/src/gen/common/CommonApi.ts +25 -0
- package/src/gen/feeds/FeedsApi.ts +30 -0
- package/src/gen/model-decoders/decoders.ts +118 -2
- package/src/gen/models/index.ts +595 -11
- package/src/gen/moderation/ModerationApi.ts +2 -0
- package/src/gen/video/VideoApi.ts +25 -0
|
@@ -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>> {
|