@stream-io/node-sdk 0.7.61 → 0.7.63
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/dist/index.cjs.js +825 -62
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +826 -63
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChannelApi.d.ts +6 -0
- package/dist/src/gen/chat/ChatApi.d.ts +24 -1
- package/dist/src/gen/common/CommonApi.d.ts +16 -5
- package/dist/src/gen/feeds/FeedApi.d.ts +10 -3
- package/dist/src/gen/feeds/FeedsApi.d.ts +41 -4
- package/dist/src/gen/models/index.d.ts +1852 -193
- package/dist/src/gen/moderation/ModerationApi.d.ts +41 -5
- package/dist/src/gen/video/VideoApi.d.ts +2 -1
- package/package.json +2 -3
- package/src/ApiClient.ts +2 -2
- package/src/gen/chat/ChannelApi.ts +19 -0
- package/src/gen/chat/ChatApi.ts +237 -0
- package/src/gen/common/CommonApi.ts +87 -70
- package/src/gen/feeds/FeedApi.ts +20 -2
- package/src/gen/feeds/FeedsApi.ts +184 -8
- package/src/gen/model-decoders/decoders.ts +430 -31
- package/src/gen/models/index.ts +2648 -229
- package/src/gen/moderation/ModerationApi.ts +492 -14
- package/src/gen/video/VideoApi.ts +25 -0
|
@@ -55,6 +55,8 @@ import {
|
|
|
55
55
|
QueryCallsResponse,
|
|
56
56
|
QueryUserFeedbackRequest,
|
|
57
57
|
QueryUserFeedbackResponse,
|
|
58
|
+
ReportClientEventRequest,
|
|
59
|
+
ReportClientEventResponse,
|
|
58
60
|
ResolveSipAuthRequest,
|
|
59
61
|
ResolveSipAuthResponse,
|
|
60
62
|
ResolveSipInboundRequest,
|
|
@@ -1352,6 +1354,29 @@ export class VideoApi {
|
|
|
1352
1354
|
return { ...response.body, metadata: response.metadata };
|
|
1353
1355
|
}
|
|
1354
1356
|
|
|
1357
|
+
async reportClientCallEvent(
|
|
1358
|
+
request: ReportClientEventRequest,
|
|
1359
|
+
): Promise<StreamResponse<ReportClientEventResponse>> {
|
|
1360
|
+
const body = {
|
|
1361
|
+
events: request?.events,
|
|
1362
|
+
};
|
|
1363
|
+
|
|
1364
|
+
const response = await this.apiClient.sendRequest<
|
|
1365
|
+
StreamResponse<ReportClientEventResponse>
|
|
1366
|
+
>(
|
|
1367
|
+
'POST',
|
|
1368
|
+
'/api/v2/video/call_client_event',
|
|
1369
|
+
undefined,
|
|
1370
|
+
undefined,
|
|
1371
|
+
body,
|
|
1372
|
+
'application/json',
|
|
1373
|
+
);
|
|
1374
|
+
|
|
1375
|
+
decoders.ReportClientEventResponse?.(response.body);
|
|
1376
|
+
|
|
1377
|
+
return { ...response.body, metadata: response.metadata };
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1355
1380
|
async queryCallSessionStats(
|
|
1356
1381
|
request?: QueryCallSessionStatsRequest,
|
|
1357
1382
|
): Promise<StreamResponse<QueryCallSessionStatsResponse>> {
|