@stream-io/node-sdk 0.1.7 → 0.1.9
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/README.md +8 -2
- package/dist/index.cjs.js +169 -514
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.es.js +169 -514
- package/dist/index.es.js.map +1 -1
- package/dist/src/StreamCall.d.ts +7 -10
- package/dist/src/StreamChannel.d.ts +4 -4
- package/dist/src/StreamChatClient.d.ts +8 -8
- package/dist/src/StreamClient.d.ts +11 -11
- package/dist/src/StreamVideoClient.d.ts +4 -4
- package/dist/src/gen/chat/apis/ChannelTypesApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/ChannelsApi.d.ts +12 -40
- package/dist/src/gen/chat/apis/CustomCommandsApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/DefaultApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/DevicesApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/EventsApi.d.ts +2 -19
- package/dist/src/gen/chat/apis/FilesApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/GDPRApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/ImportsApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/MessagesApi.d.ts +2 -2
- package/dist/src/gen/chat/apis/ModerationApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/PermissionsV2Api.d.ts +1 -1
- package/dist/src/gen/chat/apis/PushApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/ReactionsApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/ServerSideApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/SettingsApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/TasksApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/TestingApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/UsersApi.d.ts +1 -1
- package/dist/src/gen/chat/models/index.d.ts +191 -160
- package/dist/src/gen/chat/runtime.d.ts +1 -1
- package/dist/src/gen/video/apis/DefaultApi.d.ts +2 -76
- package/dist/src/gen/video/apis/ServerSideApi.d.ts +1 -1
- package/dist/src/gen/video/models/index.d.ts +0 -271
- package/dist/src/gen/video/runtime.d.ts +1 -1
- package/dist/src/utils/create-token.d.ts +1 -1
- package/index.ts +6 -6
- package/package.json +26 -6
- package/src/StreamCall.ts +15 -19
- package/src/StreamChannel.ts +177 -75
- package/src/StreamChatClient.ts +82 -45
- package/src/StreamClient.ts +78 -75
- package/src/StreamVideoClient.ts +8 -8
- package/src/gen/chat/apis/ChannelTypesApi.ts +1 -1
- package/src/gen/chat/apis/ChannelsApi.ts +35 -160
- package/src/gen/chat/apis/CustomCommandsApi.ts +1 -1
- package/src/gen/chat/apis/DefaultApi.ts +1 -1
- package/src/gen/chat/apis/DevicesApi.ts +1 -1
- package/src/gen/chat/apis/EventsApi.ts +1 -74
- package/src/gen/chat/apis/FilesApi.ts +11 -11
- package/src/gen/chat/apis/GDPRApi.ts +1 -1
- package/src/gen/chat/apis/ImportsApi.ts +1 -1
- package/src/gen/chat/apis/MessagesApi.ts +56 -56
- package/src/gen/chat/apis/ModerationApi.ts +1 -1
- package/src/gen/chat/apis/PermissionsV2Api.ts +1 -1
- package/src/gen/chat/apis/PushApi.ts +1 -1
- package/src/gen/chat/apis/ReactionsApi.ts +1 -1
- package/src/gen/chat/apis/ServerSideApi.ts +1 -1
- package/src/gen/chat/apis/SettingsApi.ts +1 -1
- package/src/gen/chat/apis/TasksApi.ts +1 -1
- package/src/gen/chat/apis/TestingApi.ts +1 -1
- package/src/gen/chat/apis/UsersApi.ts +1 -1
- package/src/gen/chat/apis/index.ts +0 -1
- package/src/gen/chat/models/index.ts +191 -160
- package/src/gen/chat/runtime.ts +1 -1
- package/src/gen/video/apis/DefaultApi.ts +1 -303
- package/src/gen/video/apis/ServerSideApi.ts +1 -1
- package/src/gen/video/models/index.ts +0 -269
- package/src/gen/video/runtime.ts +1 -1
- package/src/types.ts +1 -1
- package/src/utils/create-token.ts +1 -1
- package/dist/__tests__/block-lists.test.d.ts +0 -1
- package/dist/__tests__/call-members.test.d.ts +0 -1
- package/dist/__tests__/call-types.test.d.ts +0 -1
- package/dist/__tests__/call.test.d.ts +0 -1
- package/dist/__tests__/channel-types.test.d.ts +0 -1
- package/dist/__tests__/channel.test.d.ts +0 -1
- package/dist/__tests__/command.test.d.ts +0 -1
- package/dist/__tests__/create-test-client.d.ts +0 -3
- package/dist/__tests__/create-token.test.d.ts +0 -1
- package/dist/__tests__/devices-push.test.d.ts +0 -1
- package/dist/__tests__/messages.test.d.ts +0 -1
- package/dist/__tests__/permissions-app-settings.test.d.ts +0 -1
- package/dist/__tests__/user-compat.test.d.ts +0 -1
- package/dist/__tests__/users.test.d.ts +0 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Stream Video API
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: v92.7.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
VideoAPIError,
|
|
19
|
-
VideoAcceptCallResponse,
|
|
20
19
|
VideoBlockUserRequest,
|
|
21
20
|
VideoBlockUserResponse,
|
|
22
21
|
VideoCreateDeviceRequest,
|
|
@@ -29,8 +28,6 @@ import type {
|
|
|
29
28
|
VideoGetOrCreateCallResponse,
|
|
30
29
|
VideoGoLiveRequest,
|
|
31
30
|
VideoGoLiveResponse,
|
|
32
|
-
VideoJoinCallRequest,
|
|
33
|
-
VideoJoinCallResponse,
|
|
34
31
|
VideoListDevicesResponse,
|
|
35
32
|
VideoListRecordingsResponse,
|
|
36
33
|
VideoMuteUsersRequest,
|
|
@@ -41,14 +38,9 @@ import type {
|
|
|
41
38
|
VideoQueryCallsResponse,
|
|
42
39
|
VideoQueryMembersRequest,
|
|
43
40
|
VideoQueryMembersResponse,
|
|
44
|
-
VideoRejectCallResponse,
|
|
45
|
-
VideoRequestPermissionRequest,
|
|
46
|
-
VideoRequestPermissionResponse,
|
|
47
41
|
VideoResponse,
|
|
48
42
|
VideoSendEventRequest,
|
|
49
43
|
VideoSendEventResponse,
|
|
50
|
-
VideoSendReactionRequest,
|
|
51
|
-
VideoSendReactionResponse,
|
|
52
44
|
VideoStartHLSBroadcastingResponse,
|
|
53
45
|
VideoStartRecordingResponse,
|
|
54
46
|
VideoStartTranscriptionResponse,
|
|
@@ -69,11 +61,6 @@ import type {
|
|
|
69
61
|
VideoWSAuthMessageRequest,
|
|
70
62
|
} from '../models';
|
|
71
63
|
|
|
72
|
-
export interface AcceptCallRequest {
|
|
73
|
-
type: string;
|
|
74
|
-
id: string;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
64
|
export interface BlockUserRequest {
|
|
78
65
|
type: string;
|
|
79
66
|
id: string;
|
|
@@ -120,13 +107,6 @@ export interface GoLiveRequest {
|
|
|
120
107
|
videoGoLiveRequest: VideoGoLiveRequest | null;
|
|
121
108
|
}
|
|
122
109
|
|
|
123
|
-
export interface JoinCallRequest {
|
|
124
|
-
type: string;
|
|
125
|
-
id: string;
|
|
126
|
-
videoJoinCallRequest: VideoJoinCallRequest | null;
|
|
127
|
-
connectionId?: string;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
110
|
export interface ListDevicesRequest {
|
|
131
111
|
userId?: string;
|
|
132
112
|
}
|
|
@@ -151,29 +131,12 @@ export interface QueryMembersRequest {
|
|
|
151
131
|
videoQueryMembersRequest: VideoQueryMembersRequest | null;
|
|
152
132
|
}
|
|
153
133
|
|
|
154
|
-
export interface RejectCallRequest {
|
|
155
|
-
type: string;
|
|
156
|
-
id: string;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export interface RequestPermissionRequest {
|
|
160
|
-
type: string;
|
|
161
|
-
id: string;
|
|
162
|
-
videoRequestPermissionRequest: VideoRequestPermissionRequest | null;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
134
|
export interface SendEventRequest {
|
|
166
135
|
type: string;
|
|
167
136
|
id: string;
|
|
168
137
|
videoSendEventRequest: VideoSendEventRequest | null;
|
|
169
138
|
}
|
|
170
139
|
|
|
171
|
-
export interface SendVideoReactionRequest {
|
|
172
|
-
type: string;
|
|
173
|
-
id: string;
|
|
174
|
-
videoSendReactionRequest: VideoSendReactionRequest | null;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
140
|
export interface StartHLSBroadcastingRequest {
|
|
178
141
|
type: string;
|
|
179
142
|
id: string;
|
|
@@ -254,54 +217,6 @@ export interface VideoUnpinOperationRequest {
|
|
|
254
217
|
*/
|
|
255
218
|
export class DefaultApi extends runtime.BaseAPI {
|
|
256
219
|
|
|
257
|
-
/**
|
|
258
|
-
* Sends events: - call.accepted Required permissions: - JoinCall
|
|
259
|
-
* Accept Call
|
|
260
|
-
*/
|
|
261
|
-
async acceptCallRaw(requestParameters: AcceptCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoAcceptCallResponse>> {
|
|
262
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
263
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling acceptCall.');
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
267
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling acceptCall.');
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
const queryParameters: any = {};
|
|
271
|
-
|
|
272
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
273
|
-
|
|
274
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
275
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
279
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
283
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
const response = await this.request({
|
|
287
|
-
path: `/call/{type}/{id}/accept`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
288
|
-
method: 'POST',
|
|
289
|
-
headers: headerParameters,
|
|
290
|
-
query: queryParameters,
|
|
291
|
-
}, initOverrides);
|
|
292
|
-
|
|
293
|
-
return new runtime.JSONApiResponse(response);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* Sends events: - call.accepted Required permissions: - JoinCall
|
|
298
|
-
* Accept Call
|
|
299
|
-
*/
|
|
300
|
-
async acceptCall(requestParameters: AcceptCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoAcceptCallResponse> {
|
|
301
|
-
const response = await this.acceptCallRaw(requestParameters, initOverrides);
|
|
302
|
-
return await response.value();
|
|
303
|
-
}
|
|
304
|
-
|
|
305
220
|
/**
|
|
306
221
|
* Block a user, preventing them from joining the call until they are unblocked. Sends events: - call.blocked_user Required permissions: - BlockUser
|
|
307
222
|
* Block user on a call
|
|
@@ -765,65 +680,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
765
680
|
return await response.value();
|
|
766
681
|
}
|
|
767
682
|
|
|
768
|
-
/**
|
|
769
|
-
* Request to join a call Required permissions: - CreateCall - JoinCall
|
|
770
|
-
* Join call
|
|
771
|
-
*/
|
|
772
|
-
async joinCallRaw(requestParameters: JoinCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoJoinCallResponse>> {
|
|
773
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
774
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling joinCall.');
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
778
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling joinCall.');
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
if (requestParameters.videoJoinCallRequest === null || requestParameters.videoJoinCallRequest === undefined) {
|
|
782
|
-
throw new runtime.RequiredError('videoJoinCallRequest','Required parameter requestParameters.videoJoinCallRequest was null or undefined when calling joinCall.');
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
const queryParameters: any = {};
|
|
786
|
-
|
|
787
|
-
if (requestParameters.connectionId !== undefined) {
|
|
788
|
-
queryParameters['connection_id'] = requestParameters.connectionId;
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
792
|
-
|
|
793
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
794
|
-
|
|
795
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
796
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
800
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
804
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
const response = await this.request({
|
|
808
|
-
path: `/call/{type}/{id}/join`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
809
|
-
method: 'POST',
|
|
810
|
-
headers: headerParameters,
|
|
811
|
-
query: queryParameters,
|
|
812
|
-
body: requestParameters.videoJoinCallRequest,
|
|
813
|
-
}, initOverrides);
|
|
814
|
-
|
|
815
|
-
return new runtime.JSONApiResponse(response);
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
/**
|
|
819
|
-
* Request to join a call Required permissions: - CreateCall - JoinCall
|
|
820
|
-
* Join call
|
|
821
|
-
*/
|
|
822
|
-
async joinCall(requestParameters: JoinCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoJoinCallResponse> {
|
|
823
|
-
const response = await this.joinCallRaw(requestParameters, initOverrides);
|
|
824
|
-
return await response.value();
|
|
825
|
-
}
|
|
826
|
-
|
|
827
683
|
/**
|
|
828
684
|
* Returns all available devices
|
|
829
685
|
* List devices
|
|
@@ -1069,109 +925,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
1069
925
|
return await response.value();
|
|
1070
926
|
}
|
|
1071
927
|
|
|
1072
|
-
/**
|
|
1073
|
-
* Sends events: - call.rejected Required permissions: - JoinCall
|
|
1074
|
-
* Reject Call
|
|
1075
|
-
*/
|
|
1076
|
-
async rejectCallRaw(requestParameters: RejectCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoRejectCallResponse>> {
|
|
1077
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
1078
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling rejectCall.');
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1082
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling rejectCall.');
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
const queryParameters: any = {};
|
|
1086
|
-
|
|
1087
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1088
|
-
|
|
1089
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1090
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1094
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1098
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
const response = await this.request({
|
|
1102
|
-
path: `/call/{type}/{id}/reject`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1103
|
-
method: 'POST',
|
|
1104
|
-
headers: headerParameters,
|
|
1105
|
-
query: queryParameters,
|
|
1106
|
-
}, initOverrides);
|
|
1107
|
-
|
|
1108
|
-
return new runtime.JSONApiResponse(response);
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
/**
|
|
1112
|
-
* Sends events: - call.rejected Required permissions: - JoinCall
|
|
1113
|
-
* Reject Call
|
|
1114
|
-
*/
|
|
1115
|
-
async rejectCall(requestParameters: RejectCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoRejectCallResponse> {
|
|
1116
|
-
const response = await this.rejectCallRaw(requestParameters, initOverrides);
|
|
1117
|
-
return await response.value();
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
|
-
/**
|
|
1121
|
-
* Request permission to perform an action Sends events: - call.permission_request
|
|
1122
|
-
* Request permission
|
|
1123
|
-
*/
|
|
1124
|
-
async requestPermissionRaw(requestParameters: RequestPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoRequestPermissionResponse>> {
|
|
1125
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
1126
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling requestPermission.');
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1130
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling requestPermission.');
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
if (requestParameters.videoRequestPermissionRequest === null || requestParameters.videoRequestPermissionRequest === undefined) {
|
|
1134
|
-
throw new runtime.RequiredError('videoRequestPermissionRequest','Required parameter requestParameters.videoRequestPermissionRequest was null or undefined when calling requestPermission.');
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
const queryParameters: any = {};
|
|
1138
|
-
|
|
1139
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1140
|
-
|
|
1141
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1142
|
-
|
|
1143
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1144
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1148
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1152
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
const response = await this.request({
|
|
1156
|
-
path: `/call/{type}/{id}/request_permission`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1157
|
-
method: 'POST',
|
|
1158
|
-
headers: headerParameters,
|
|
1159
|
-
query: queryParameters,
|
|
1160
|
-
body: requestParameters.videoRequestPermissionRequest,
|
|
1161
|
-
}, initOverrides);
|
|
1162
|
-
|
|
1163
|
-
return new runtime.JSONApiResponse(response);
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
/**
|
|
1167
|
-
* Request permission to perform an action Sends events: - call.permission_request
|
|
1168
|
-
* Request permission
|
|
1169
|
-
*/
|
|
1170
|
-
async requestPermission(requestParameters: RequestPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoRequestPermissionResponse> {
|
|
1171
|
-
const response = await this.requestPermissionRaw(requestParameters, initOverrides);
|
|
1172
|
-
return await response.value();
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
928
|
/**
|
|
1176
929
|
* Sends custom event to the call Sends events: - custom Required permissions: - SendEvent
|
|
1177
930
|
* Send custom event
|
|
@@ -1227,61 +980,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
1227
980
|
return await response.value();
|
|
1228
981
|
}
|
|
1229
982
|
|
|
1230
|
-
/**
|
|
1231
|
-
* Sends reaction to the call Sends events: - call.reaction_new Required permissions: - CreateCallReaction
|
|
1232
|
-
* Send reaction to the call
|
|
1233
|
-
*/
|
|
1234
|
-
async sendVideoReactionRaw(requestParameters: SendVideoReactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoSendReactionResponse>> {
|
|
1235
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
1236
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling sendVideoReaction.');
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1240
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sendVideoReaction.');
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
if (requestParameters.videoSendReactionRequest === null || requestParameters.videoSendReactionRequest === undefined) {
|
|
1244
|
-
throw new runtime.RequiredError('videoSendReactionRequest','Required parameter requestParameters.videoSendReactionRequest was null or undefined when calling sendVideoReaction.');
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
const queryParameters: any = {};
|
|
1248
|
-
|
|
1249
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1250
|
-
|
|
1251
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1252
|
-
|
|
1253
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1254
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1258
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1262
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
const response = await this.request({
|
|
1266
|
-
path: `/call/{type}/{id}/reaction`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1267
|
-
method: 'POST',
|
|
1268
|
-
headers: headerParameters,
|
|
1269
|
-
query: queryParameters,
|
|
1270
|
-
body: requestParameters.videoSendReactionRequest,
|
|
1271
|
-
}, initOverrides);
|
|
1272
|
-
|
|
1273
|
-
return new runtime.JSONApiResponse(response);
|
|
1274
|
-
}
|
|
1275
|
-
|
|
1276
|
-
/**
|
|
1277
|
-
* Sends reaction to the call Sends events: - call.reaction_new Required permissions: - CreateCallReaction
|
|
1278
|
-
* Send reaction to the call
|
|
1279
|
-
*/
|
|
1280
|
-
async sendVideoReaction(requestParameters: SendVideoReactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoSendReactionResponse> {
|
|
1281
|
-
const response = await this.sendVideoReactionRaw(requestParameters, initOverrides);
|
|
1282
|
-
return await response.value();
|
|
1283
|
-
}
|
|
1284
|
-
|
|
1285
983
|
/**
|
|
1286
984
|
* Starts HLS broadcasting Required permissions: - StartBroadcasting
|
|
1287
985
|
* Start HLS broadcasting
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Stream Video API
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: v92.7.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -87,19 +87,6 @@ export interface VideoAPNSRequest {
|
|
|
87
87
|
*/
|
|
88
88
|
title?: string;
|
|
89
89
|
}
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @export
|
|
93
|
-
* @interface VideoAcceptCallResponse
|
|
94
|
-
*/
|
|
95
|
-
export interface VideoAcceptCallResponse {
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {string}
|
|
99
|
-
* @memberof VideoAcceptCallResponse
|
|
100
|
-
*/
|
|
101
|
-
duration: string;
|
|
102
|
-
}
|
|
103
90
|
/**
|
|
104
91
|
*
|
|
105
92
|
* @export
|
|
@@ -1996,31 +1983,6 @@ export interface VideoCreateGuestResponse {
|
|
|
1996
1983
|
*/
|
|
1997
1984
|
user: VideoUserResponse;
|
|
1998
1985
|
}
|
|
1999
|
-
/**
|
|
2000
|
-
*
|
|
2001
|
-
* @export
|
|
2002
|
-
* @interface VideoCredentials
|
|
2003
|
-
*/
|
|
2004
|
-
export interface VideoCredentials {
|
|
2005
|
-
/**
|
|
2006
|
-
*
|
|
2007
|
-
* @type {Array<VideoICEServer>}
|
|
2008
|
-
* @memberof VideoCredentials
|
|
2009
|
-
*/
|
|
2010
|
-
ice_servers: Array<VideoICEServer>;
|
|
2011
|
-
/**
|
|
2012
|
-
*
|
|
2013
|
-
* @type {VideoSFUResponse}
|
|
2014
|
-
* @memberof VideoCredentials
|
|
2015
|
-
*/
|
|
2016
|
-
server: VideoSFUResponse;
|
|
2017
|
-
/**
|
|
2018
|
-
*
|
|
2019
|
-
* @type {string}
|
|
2020
|
-
* @memberof VideoCredentials
|
|
2021
|
-
*/
|
|
2022
|
-
token: string;
|
|
2023
|
-
}
|
|
2024
1986
|
/**
|
|
2025
1987
|
* A custom event, this event is used to send custom events to other participants in the call.
|
|
2026
1988
|
* @export
|
|
@@ -2624,129 +2586,6 @@ export interface VideoHealthCheckEvent {
|
|
|
2624
2586
|
*/
|
|
2625
2587
|
type: string;
|
|
2626
2588
|
}
|
|
2627
|
-
/**
|
|
2628
|
-
*
|
|
2629
|
-
* @export
|
|
2630
|
-
* @interface VideoICEServer
|
|
2631
|
-
*/
|
|
2632
|
-
export interface VideoICEServer {
|
|
2633
|
-
/**
|
|
2634
|
-
*
|
|
2635
|
-
* @type {string}
|
|
2636
|
-
* @memberof VideoICEServer
|
|
2637
|
-
*/
|
|
2638
|
-
password: string;
|
|
2639
|
-
/**
|
|
2640
|
-
*
|
|
2641
|
-
* @type {Array<string>}
|
|
2642
|
-
* @memberof VideoICEServer
|
|
2643
|
-
*/
|
|
2644
|
-
urls: Array<string>;
|
|
2645
|
-
/**
|
|
2646
|
-
*
|
|
2647
|
-
* @type {string}
|
|
2648
|
-
* @memberof VideoICEServer
|
|
2649
|
-
*/
|
|
2650
|
-
username: string;
|
|
2651
|
-
}
|
|
2652
|
-
/**
|
|
2653
|
-
*
|
|
2654
|
-
* @export
|
|
2655
|
-
* @interface VideoJoinCallRequest
|
|
2656
|
-
*/
|
|
2657
|
-
export interface VideoJoinCallRequest {
|
|
2658
|
-
/**
|
|
2659
|
-
* if true the call will be created if it doesn't exist
|
|
2660
|
-
* @type {boolean}
|
|
2661
|
-
* @memberof VideoJoinCallRequest
|
|
2662
|
-
*/
|
|
2663
|
-
create?: boolean;
|
|
2664
|
-
/**
|
|
2665
|
-
*
|
|
2666
|
-
* @type {VideoCallRequest}
|
|
2667
|
-
* @memberof VideoJoinCallRequest
|
|
2668
|
-
*/
|
|
2669
|
-
data?: VideoCallRequest;
|
|
2670
|
-
/**
|
|
2671
|
-
*
|
|
2672
|
-
* @type {string}
|
|
2673
|
-
* @memberof VideoJoinCallRequest
|
|
2674
|
-
*/
|
|
2675
|
-
location: string;
|
|
2676
|
-
/**
|
|
2677
|
-
*
|
|
2678
|
-
* @type {number}
|
|
2679
|
-
* @memberof VideoJoinCallRequest
|
|
2680
|
-
*/
|
|
2681
|
-
members_limit?: number;
|
|
2682
|
-
/**
|
|
2683
|
-
* If the participant is migrating from another SFU, then this is the ID of the previous SFU
|
|
2684
|
-
* @type {string}
|
|
2685
|
-
* @memberof VideoJoinCallRequest
|
|
2686
|
-
*/
|
|
2687
|
-
migrating_from?: string;
|
|
2688
|
-
/**
|
|
2689
|
-
*
|
|
2690
|
-
* @type {boolean}
|
|
2691
|
-
* @memberof VideoJoinCallRequest
|
|
2692
|
-
*/
|
|
2693
|
-
notify?: boolean;
|
|
2694
|
-
/**
|
|
2695
|
-
* if true and the call is created, the notification will include ring=true
|
|
2696
|
-
* @type {boolean}
|
|
2697
|
-
* @memberof VideoJoinCallRequest
|
|
2698
|
-
*/
|
|
2699
|
-
ring?: boolean;
|
|
2700
|
-
}
|
|
2701
|
-
/**
|
|
2702
|
-
*
|
|
2703
|
-
* @export
|
|
2704
|
-
* @interface VideoJoinCallResponse
|
|
2705
|
-
*/
|
|
2706
|
-
export interface VideoJoinCallResponse {
|
|
2707
|
-
/**
|
|
2708
|
-
*
|
|
2709
|
-
* @type {VideoCallResponse}
|
|
2710
|
-
* @memberof VideoJoinCallResponse
|
|
2711
|
-
*/
|
|
2712
|
-
call: VideoCallResponse;
|
|
2713
|
-
/**
|
|
2714
|
-
*
|
|
2715
|
-
* @type {boolean}
|
|
2716
|
-
* @memberof VideoJoinCallResponse
|
|
2717
|
-
*/
|
|
2718
|
-
created: boolean;
|
|
2719
|
-
/**
|
|
2720
|
-
*
|
|
2721
|
-
* @type {VideoCredentials}
|
|
2722
|
-
* @memberof VideoJoinCallResponse
|
|
2723
|
-
*/
|
|
2724
|
-
credentials: VideoCredentials;
|
|
2725
|
-
/**
|
|
2726
|
-
*
|
|
2727
|
-
* @type {string}
|
|
2728
|
-
* @memberof VideoJoinCallResponse
|
|
2729
|
-
*/
|
|
2730
|
-
duration: string;
|
|
2731
|
-
/**
|
|
2732
|
-
*
|
|
2733
|
-
* @type {Array<VideoMemberResponse>}
|
|
2734
|
-
* @memberof VideoJoinCallResponse
|
|
2735
|
-
*/
|
|
2736
|
-
members: Array<VideoMemberResponse>;
|
|
2737
|
-
/**
|
|
2738
|
-
*
|
|
2739
|
-
* @type {VideoMemberResponse}
|
|
2740
|
-
* @memberof VideoJoinCallResponse
|
|
2741
|
-
*/
|
|
2742
|
-
membership?: VideoMemberResponse;
|
|
2743
|
-
/**
|
|
2744
|
-
*
|
|
2745
|
-
* @type {Array<VideoOwnCapability>}
|
|
2746
|
-
* @memberof VideoJoinCallResponse
|
|
2747
|
-
*/
|
|
2748
|
-
own_capabilities: Array<VideoOwnCapability>;
|
|
2749
|
-
}
|
|
2750
2589
|
/**
|
|
2751
2590
|
*
|
|
2752
2591
|
* @export
|
|
@@ -3552,45 +3391,6 @@ export interface VideoRecordSettingsResponse {
|
|
|
3552
3391
|
*/
|
|
3553
3392
|
quality: string;
|
|
3554
3393
|
}
|
|
3555
|
-
/**
|
|
3556
|
-
*
|
|
3557
|
-
* @export
|
|
3558
|
-
* @interface VideoRejectCallResponse
|
|
3559
|
-
*/
|
|
3560
|
-
export interface VideoRejectCallResponse {
|
|
3561
|
-
/**
|
|
3562
|
-
*
|
|
3563
|
-
* @type {string}
|
|
3564
|
-
* @memberof VideoRejectCallResponse
|
|
3565
|
-
*/
|
|
3566
|
-
duration: string;
|
|
3567
|
-
}
|
|
3568
|
-
/**
|
|
3569
|
-
*
|
|
3570
|
-
* @export
|
|
3571
|
-
* @interface VideoRequestPermissionRequest
|
|
3572
|
-
*/
|
|
3573
|
-
export interface VideoRequestPermissionRequest {
|
|
3574
|
-
/**
|
|
3575
|
-
*
|
|
3576
|
-
* @type {Array<string>}
|
|
3577
|
-
* @memberof VideoRequestPermissionRequest
|
|
3578
|
-
*/
|
|
3579
|
-
permissions: Array<string>;
|
|
3580
|
-
}
|
|
3581
|
-
/**
|
|
3582
|
-
*
|
|
3583
|
-
* @export
|
|
3584
|
-
* @interface VideoRequestPermissionResponse
|
|
3585
|
-
*/
|
|
3586
|
-
export interface VideoRequestPermissionResponse {
|
|
3587
|
-
/**
|
|
3588
|
-
*
|
|
3589
|
-
* @type {string}
|
|
3590
|
-
* @memberof VideoRequestPermissionResponse
|
|
3591
|
-
*/
|
|
3592
|
-
duration: string;
|
|
3593
|
-
}
|
|
3594
3394
|
/**
|
|
3595
3395
|
*
|
|
3596
3396
|
* @export
|
|
@@ -3642,31 +3442,6 @@ export interface VideoRingSettingsRequest {
|
|
|
3642
3442
|
*/
|
|
3643
3443
|
incoming_call_timeout_ms?: number;
|
|
3644
3444
|
}
|
|
3645
|
-
/**
|
|
3646
|
-
*
|
|
3647
|
-
* @export
|
|
3648
|
-
* @interface VideoSFUResponse
|
|
3649
|
-
*/
|
|
3650
|
-
export interface VideoSFUResponse {
|
|
3651
|
-
/**
|
|
3652
|
-
*
|
|
3653
|
-
* @type {string}
|
|
3654
|
-
* @memberof VideoSFUResponse
|
|
3655
|
-
*/
|
|
3656
|
-
edge_name: string;
|
|
3657
|
-
/**
|
|
3658
|
-
*
|
|
3659
|
-
* @type {string}
|
|
3660
|
-
* @memberof VideoSFUResponse
|
|
3661
|
-
*/
|
|
3662
|
-
url: string;
|
|
3663
|
-
/**
|
|
3664
|
-
*
|
|
3665
|
-
* @type {string}
|
|
3666
|
-
* @memberof VideoSFUResponse
|
|
3667
|
-
*/
|
|
3668
|
-
ws_endpoint: string;
|
|
3669
|
-
}
|
|
3670
3445
|
/**
|
|
3671
3446
|
*
|
|
3672
3447
|
* @export
|
|
@@ -3731,50 +3506,6 @@ export interface VideoSendEventResponse {
|
|
|
3731
3506
|
*/
|
|
3732
3507
|
duration: string;
|
|
3733
3508
|
}
|
|
3734
|
-
/**
|
|
3735
|
-
*
|
|
3736
|
-
* @export
|
|
3737
|
-
* @interface VideoSendReactionRequest
|
|
3738
|
-
*/
|
|
3739
|
-
export interface VideoSendReactionRequest {
|
|
3740
|
-
/**
|
|
3741
|
-
*
|
|
3742
|
-
* @type {{ [key: string]: any; }}
|
|
3743
|
-
* @memberof VideoSendReactionRequest
|
|
3744
|
-
*/
|
|
3745
|
-
custom?: { [key: string]: any; };
|
|
3746
|
-
/**
|
|
3747
|
-
*
|
|
3748
|
-
* @type {string}
|
|
3749
|
-
* @memberof VideoSendReactionRequest
|
|
3750
|
-
*/
|
|
3751
|
-
emoji_code?: string;
|
|
3752
|
-
/**
|
|
3753
|
-
*
|
|
3754
|
-
* @type {string}
|
|
3755
|
-
* @memberof VideoSendReactionRequest
|
|
3756
|
-
*/
|
|
3757
|
-
type: string;
|
|
3758
|
-
}
|
|
3759
|
-
/**
|
|
3760
|
-
*
|
|
3761
|
-
* @export
|
|
3762
|
-
* @interface VideoSendReactionResponse
|
|
3763
|
-
*/
|
|
3764
|
-
export interface VideoSendReactionResponse {
|
|
3765
|
-
/**
|
|
3766
|
-
* Duration of the request in human-readable format
|
|
3767
|
-
* @type {string}
|
|
3768
|
-
* @memberof VideoSendReactionResponse
|
|
3769
|
-
*/
|
|
3770
|
-
duration: string;
|
|
3771
|
-
/**
|
|
3772
|
-
*
|
|
3773
|
-
* @type {VideoReactionResponse}
|
|
3774
|
-
* @memberof VideoSendReactionResponse
|
|
3775
|
-
*/
|
|
3776
|
-
reaction: VideoReactionResponse;
|
|
3777
|
-
}
|
|
3778
3509
|
/**
|
|
3779
3510
|
*
|
|
3780
3511
|
* @export
|