@stream-io/node-sdk 0.4.26 → 0.5.0
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 +6292 -3831
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.es.mjs +6290 -3832
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/ApiClient.d.ts +15 -0
- package/dist/src/StreamCall.d.ts +2 -2
- package/dist/src/StreamClient.d.ts +10 -1
- package/dist/src/StreamFeed.d.ts +4 -0
- package/dist/src/StreamFeedsClient.d.ts +5 -0
- package/dist/src/StreamVideoClient.d.ts +3 -2
- package/dist/src/gen/chat/ChannelApi.d.ts +29 -30
- package/dist/src/gen/chat/ChatApi.d.ts +145 -180
- package/dist/src/gen/common/CommonApi.d.ts +120 -83
- package/dist/src/gen/feeds/FeedApi.d.ts +25 -0
- package/dist/src/gen/feeds/FeedsApi.d.ts +195 -0
- package/dist/src/gen/models/index.d.ts +1498 -17
- package/dist/src/gen/moderation/ModerationApi.d.ts +28 -27
- package/dist/src/gen/video/CallApi.d.ts +42 -43
- package/dist/src/gen/video/VideoApi.d.ts +90 -89
- package/dist/src/gen-imports.d.ts +5 -0
- package/index.ts +3 -1
- package/package.json +1 -1
- package/src/{BaseApi.ts → ApiClient.ts} +25 -6
- package/src/StreamCall.ts +2 -2
- package/src/StreamClient.ts +51 -14
- package/src/StreamFeed.ts +7 -0
- package/src/StreamFeedsClient.ts +8 -0
- package/src/StreamVideoClient.ts +9 -6
- package/src/gen/chat/ChannelApi.ts +74 -64
- package/src/gen/chat/ChatApi.ts +548 -681
- package/src/gen/common/CommonApi.ts +679 -271
- package/src/gen/feeds/FeedApi.ts +130 -0
- package/src/gen/feeds/FeedsApi.ts +1801 -0
- package/src/gen/model-decoders/{index.ts → decoders.ts} +2294 -276
- package/src/gen/models/index.ts +4233 -2028
- package/src/gen/moderation/ModerationApi.ts +159 -98
- package/src/gen/video/CallApi.ts +97 -108
- package/src/gen/video/VideoApi.ts +294 -207
- package/src/gen-imports.ts +5 -0
- package/dist/src/BaseApi.d.ts +0 -11
- /package/dist/src/gen/model-decoders/{index.d.ts → decoders.d.ts} +0 -0
package/src/gen/video/CallApi.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { VideoApi } from '
|
|
2
|
-
import { StreamResponse } from '../../types';
|
|
1
|
+
import { StreamResponse, VideoApi } from '../../gen-imports';
|
|
3
2
|
import {
|
|
4
3
|
BlockUserRequest,
|
|
5
4
|
BlockUserResponse,
|
|
@@ -68,305 +67,295 @@ export class CallApi {
|
|
|
68
67
|
public readonly id: string,
|
|
69
68
|
) {}
|
|
70
69
|
|
|
71
|
-
get
|
|
70
|
+
get(request?: {
|
|
72
71
|
members_limit?: number;
|
|
73
72
|
ring?: boolean;
|
|
74
73
|
notify?: boolean;
|
|
75
74
|
video?: boolean;
|
|
76
|
-
}): Promise<StreamResponse<GetCallResponse>>
|
|
75
|
+
}): Promise<StreamResponse<GetCallResponse>> {
|
|
77
76
|
return this.videoApi.getCall({ id: this.id, type: this.type, ...request });
|
|
78
|
-
}
|
|
77
|
+
}
|
|
79
78
|
|
|
80
|
-
update
|
|
79
|
+
update(
|
|
81
80
|
request?: UpdateCallRequest,
|
|
82
|
-
): Promise<StreamResponse<UpdateCallResponse>>
|
|
81
|
+
): Promise<StreamResponse<UpdateCallResponse>> {
|
|
83
82
|
return this.videoApi.updateCall({
|
|
84
83
|
id: this.id,
|
|
85
84
|
type: this.type,
|
|
86
85
|
...request,
|
|
87
86
|
});
|
|
88
|
-
}
|
|
87
|
+
}
|
|
89
88
|
|
|
90
|
-
getOrCreate
|
|
89
|
+
getOrCreate(
|
|
91
90
|
request?: GetOrCreateCallRequest,
|
|
92
|
-
): Promise<StreamResponse<GetOrCreateCallResponse>>
|
|
91
|
+
): Promise<StreamResponse<GetOrCreateCallResponse>> {
|
|
93
92
|
return this.videoApi.getOrCreateCall({
|
|
94
93
|
id: this.id,
|
|
95
94
|
type: this.type,
|
|
96
95
|
...request,
|
|
97
96
|
});
|
|
98
|
-
}
|
|
97
|
+
}
|
|
99
98
|
|
|
100
|
-
blockUser
|
|
99
|
+
blockUser(
|
|
101
100
|
request: BlockUserRequest,
|
|
102
|
-
): Promise<StreamResponse<BlockUserResponse>>
|
|
101
|
+
): Promise<StreamResponse<BlockUserResponse>> {
|
|
103
102
|
return this.videoApi.blockUser({
|
|
104
103
|
id: this.id,
|
|
105
104
|
type: this.type,
|
|
106
105
|
...request,
|
|
107
106
|
});
|
|
108
|
-
}
|
|
107
|
+
}
|
|
109
108
|
|
|
110
|
-
delete
|
|
109
|
+
delete(
|
|
111
110
|
request?: DeleteCallRequest,
|
|
112
|
-
): Promise<StreamResponse<DeleteCallResponse>>
|
|
111
|
+
): Promise<StreamResponse<DeleteCallResponse>> {
|
|
113
112
|
return this.videoApi.deleteCall({
|
|
114
113
|
id: this.id,
|
|
115
114
|
type: this.type,
|
|
116
115
|
...request,
|
|
117
116
|
});
|
|
118
|
-
}
|
|
117
|
+
}
|
|
119
118
|
|
|
120
|
-
sendCallEvent
|
|
119
|
+
sendCallEvent(
|
|
121
120
|
request?: SendCallEventRequest,
|
|
122
|
-
): Promise<StreamResponse<SendCallEventResponse>>
|
|
121
|
+
): Promise<StreamResponse<SendCallEventResponse>> {
|
|
123
122
|
return this.videoApi.sendCallEvent({
|
|
124
123
|
id: this.id,
|
|
125
124
|
type: this.type,
|
|
126
125
|
...request,
|
|
127
126
|
});
|
|
128
|
-
}
|
|
127
|
+
}
|
|
129
128
|
|
|
130
|
-
collectUserFeedback
|
|
129
|
+
collectUserFeedback(
|
|
131
130
|
request: CollectUserFeedbackRequest,
|
|
132
|
-
): Promise<StreamResponse<CollectUserFeedbackResponse>>
|
|
131
|
+
): Promise<StreamResponse<CollectUserFeedbackResponse>> {
|
|
133
132
|
return this.videoApi.collectUserFeedback({
|
|
134
133
|
id: this.id,
|
|
135
134
|
type: this.type,
|
|
136
135
|
...request,
|
|
137
136
|
});
|
|
138
|
-
}
|
|
137
|
+
}
|
|
139
138
|
|
|
140
|
-
goLive
|
|
141
|
-
request?: GoLiveRequest,
|
|
142
|
-
): Promise<StreamResponse<GoLiveResponse>> => {
|
|
139
|
+
goLive(request?: GoLiveRequest): Promise<StreamResponse<GoLiveResponse>> {
|
|
143
140
|
return this.videoApi.goLive({ id: this.id, type: this.type, ...request });
|
|
144
|
-
}
|
|
141
|
+
}
|
|
145
142
|
|
|
146
|
-
end
|
|
143
|
+
end(): Promise<StreamResponse<EndCallResponse>> {
|
|
147
144
|
return this.videoApi.endCall({ id: this.id, type: this.type });
|
|
148
|
-
}
|
|
145
|
+
}
|
|
149
146
|
|
|
150
|
-
updateCallMembers
|
|
147
|
+
updateCallMembers(
|
|
151
148
|
request?: UpdateCallMembersRequest,
|
|
152
|
-
): Promise<StreamResponse<UpdateCallMembersResponse>>
|
|
149
|
+
): Promise<StreamResponse<UpdateCallMembersResponse>> {
|
|
153
150
|
return this.videoApi.updateCallMembers({
|
|
154
151
|
id: this.id,
|
|
155
152
|
type: this.type,
|
|
156
153
|
...request,
|
|
157
154
|
});
|
|
158
|
-
}
|
|
155
|
+
}
|
|
159
156
|
|
|
160
|
-
muteUsers
|
|
157
|
+
muteUsers(
|
|
161
158
|
request?: MuteUsersRequest,
|
|
162
|
-
): Promise<StreamResponse<MuteUsersResponse>>
|
|
159
|
+
): Promise<StreamResponse<MuteUsersResponse>> {
|
|
163
160
|
return this.videoApi.muteUsers({
|
|
164
161
|
id: this.id,
|
|
165
162
|
type: this.type,
|
|
166
163
|
...request,
|
|
167
164
|
});
|
|
168
|
-
}
|
|
165
|
+
}
|
|
169
166
|
|
|
170
|
-
queryCallParticipants
|
|
167
|
+
queryCallParticipants(
|
|
171
168
|
request?: QueryCallParticipantsRequest & { limit?: number },
|
|
172
|
-
): Promise<StreamResponse<QueryCallParticipantsResponse>>
|
|
169
|
+
): Promise<StreamResponse<QueryCallParticipantsResponse>> {
|
|
173
170
|
return this.videoApi.queryCallParticipants({
|
|
174
171
|
id: this.id,
|
|
175
172
|
type: this.type,
|
|
176
173
|
...request,
|
|
177
174
|
});
|
|
178
|
-
}
|
|
175
|
+
}
|
|
179
176
|
|
|
180
|
-
videoPin
|
|
177
|
+
videoPin(request: PinRequest): Promise<StreamResponse<PinResponse>> {
|
|
181
178
|
return this.videoApi.videoPin({ id: this.id, type: this.type, ...request });
|
|
182
|
-
}
|
|
179
|
+
}
|
|
183
180
|
|
|
184
|
-
listRecordings
|
|
181
|
+
listRecordings(): Promise<StreamResponse<ListRecordingsResponse>> {
|
|
185
182
|
return this.videoApi.listRecordings({ id: this.id, type: this.type });
|
|
186
|
-
}
|
|
183
|
+
}
|
|
187
184
|
|
|
188
|
-
getCallReport
|
|
185
|
+
getCallReport(request?: {
|
|
189
186
|
session_id?: string;
|
|
190
|
-
}): Promise<StreamResponse<GetCallReportResponse>>
|
|
187
|
+
}): Promise<StreamResponse<GetCallReportResponse>> {
|
|
191
188
|
return this.videoApi.getCallReport({
|
|
192
189
|
id: this.id,
|
|
193
190
|
type: this.type,
|
|
194
191
|
...request,
|
|
195
192
|
});
|
|
196
|
-
}
|
|
193
|
+
}
|
|
197
194
|
|
|
198
|
-
startRTMPBroadcasts
|
|
195
|
+
startRTMPBroadcasts(
|
|
199
196
|
request: StartRTMPBroadcastsRequest,
|
|
200
|
-
): Promise<StreamResponse<StartRTMPBroadcastsResponse>>
|
|
197
|
+
): Promise<StreamResponse<StartRTMPBroadcastsResponse>> {
|
|
201
198
|
return this.videoApi.startRTMPBroadcasts({
|
|
202
199
|
id: this.id,
|
|
203
200
|
type: this.type,
|
|
204
201
|
...request,
|
|
205
202
|
});
|
|
206
|
-
}
|
|
203
|
+
}
|
|
207
204
|
|
|
208
|
-
stopAllRTMPBroadcasts
|
|
205
|
+
stopAllRTMPBroadcasts(): Promise<
|
|
209
206
|
StreamResponse<StopAllRTMPBroadcastsResponse>
|
|
210
|
-
>
|
|
207
|
+
> {
|
|
211
208
|
return this.videoApi.stopAllRTMPBroadcasts({
|
|
212
209
|
id: this.id,
|
|
213
210
|
type: this.type,
|
|
214
211
|
});
|
|
215
|
-
}
|
|
212
|
+
}
|
|
216
213
|
|
|
217
|
-
stopRTMPBroadcast
|
|
214
|
+
stopRTMPBroadcast(
|
|
218
215
|
request: StopRTMPBroadcastsRequest & { name: string },
|
|
219
|
-
): Promise<StreamResponse<StopRTMPBroadcastsResponse>>
|
|
216
|
+
): Promise<StreamResponse<StopRTMPBroadcastsResponse>> {
|
|
220
217
|
return this.videoApi.stopRTMPBroadcast({
|
|
221
218
|
id: this.id,
|
|
222
219
|
type: this.type,
|
|
223
220
|
...request,
|
|
224
221
|
});
|
|
225
|
-
}
|
|
222
|
+
}
|
|
226
223
|
|
|
227
|
-
startHLSBroadcasting
|
|
224
|
+
startHLSBroadcasting(): Promise<
|
|
228
225
|
StreamResponse<StartHLSBroadcastingResponse>
|
|
229
|
-
>
|
|
226
|
+
> {
|
|
230
227
|
return this.videoApi.startHLSBroadcasting({ id: this.id, type: this.type });
|
|
231
|
-
}
|
|
228
|
+
}
|
|
232
229
|
|
|
233
|
-
startClosedCaptions
|
|
230
|
+
startClosedCaptions(
|
|
234
231
|
request?: StartClosedCaptionsRequest,
|
|
235
|
-
): Promise<StreamResponse<StartClosedCaptionsResponse>>
|
|
232
|
+
): Promise<StreamResponse<StartClosedCaptionsResponse>> {
|
|
236
233
|
return this.videoApi.startClosedCaptions({
|
|
237
234
|
id: this.id,
|
|
238
235
|
type: this.type,
|
|
239
236
|
...request,
|
|
240
237
|
});
|
|
241
|
-
}
|
|
238
|
+
}
|
|
242
239
|
|
|
243
|
-
startFrameRecording
|
|
240
|
+
startFrameRecording(
|
|
244
241
|
request?: StartFrameRecordingRequest,
|
|
245
|
-
): Promise<StreamResponse<StartFrameRecordingResponse>>
|
|
242
|
+
): Promise<StreamResponse<StartFrameRecordingResponse>> {
|
|
246
243
|
return this.videoApi.startFrameRecording({
|
|
247
244
|
id: this.id,
|
|
248
245
|
type: this.type,
|
|
249
246
|
...request,
|
|
250
247
|
});
|
|
251
|
-
}
|
|
248
|
+
}
|
|
252
249
|
|
|
253
|
-
startRecording
|
|
250
|
+
startRecording(
|
|
254
251
|
request?: StartRecordingRequest,
|
|
255
|
-
): Promise<StreamResponse<StartRecordingResponse>>
|
|
252
|
+
): Promise<StreamResponse<StartRecordingResponse>> {
|
|
256
253
|
return this.videoApi.startRecording({
|
|
257
254
|
id: this.id,
|
|
258
255
|
type: this.type,
|
|
259
256
|
...request,
|
|
260
257
|
});
|
|
261
|
-
}
|
|
258
|
+
}
|
|
262
259
|
|
|
263
|
-
startTranscription
|
|
260
|
+
startTranscription(
|
|
264
261
|
request?: StartTranscriptionRequest,
|
|
265
|
-
): Promise<StreamResponse<StartTranscriptionResponse>>
|
|
262
|
+
): Promise<StreamResponse<StartTranscriptionResponse>> {
|
|
266
263
|
return this.videoApi.startTranscription({
|
|
267
264
|
id: this.id,
|
|
268
265
|
type: this.type,
|
|
269
266
|
...request,
|
|
270
267
|
});
|
|
271
|
-
}
|
|
268
|
+
}
|
|
272
269
|
|
|
273
|
-
stopHLSBroadcasting
|
|
274
|
-
StreamResponse<StopHLSBroadcastingResponse>
|
|
275
|
-
> => {
|
|
270
|
+
stopHLSBroadcasting(): Promise<StreamResponse<StopHLSBroadcastingResponse>> {
|
|
276
271
|
return this.videoApi.stopHLSBroadcasting({ id: this.id, type: this.type });
|
|
277
|
-
}
|
|
272
|
+
}
|
|
278
273
|
|
|
279
|
-
stopClosedCaptions
|
|
274
|
+
stopClosedCaptions(
|
|
280
275
|
request?: StopClosedCaptionsRequest,
|
|
281
|
-
): Promise<StreamResponse<StopClosedCaptionsResponse>>
|
|
276
|
+
): Promise<StreamResponse<StopClosedCaptionsResponse>> {
|
|
282
277
|
return this.videoApi.stopClosedCaptions({
|
|
283
278
|
id: this.id,
|
|
284
279
|
type: this.type,
|
|
285
280
|
...request,
|
|
286
281
|
});
|
|
287
|
-
}
|
|
282
|
+
}
|
|
288
283
|
|
|
289
|
-
stopFrameRecording
|
|
290
|
-
StreamResponse<StopFrameRecordingResponse>
|
|
291
|
-
> => {
|
|
284
|
+
stopFrameRecording(): Promise<StreamResponse<StopFrameRecordingResponse>> {
|
|
292
285
|
return this.videoApi.stopFrameRecording({ id: this.id, type: this.type });
|
|
293
|
-
}
|
|
286
|
+
}
|
|
294
287
|
|
|
295
|
-
stopLive
|
|
288
|
+
stopLive(
|
|
296
289
|
request?: StopLiveRequest,
|
|
297
|
-
): Promise<StreamResponse<StopLiveResponse>>
|
|
290
|
+
): Promise<StreamResponse<StopLiveResponse>> {
|
|
298
291
|
return this.videoApi.stopLive({ id: this.id, type: this.type, ...request });
|
|
299
|
-
}
|
|
292
|
+
}
|
|
300
293
|
|
|
301
|
-
stopRecording
|
|
294
|
+
stopRecording(): Promise<StreamResponse<StopRecordingResponse>> {
|
|
302
295
|
return this.videoApi.stopRecording({ id: this.id, type: this.type });
|
|
303
|
-
}
|
|
296
|
+
}
|
|
304
297
|
|
|
305
|
-
stopTranscription
|
|
298
|
+
stopTranscription(
|
|
306
299
|
request?: StopTranscriptionRequest,
|
|
307
|
-
): Promise<StreamResponse<StopTranscriptionResponse>>
|
|
300
|
+
): Promise<StreamResponse<StopTranscriptionResponse>> {
|
|
308
301
|
return this.videoApi.stopTranscription({
|
|
309
302
|
id: this.id,
|
|
310
303
|
type: this.type,
|
|
311
304
|
...request,
|
|
312
305
|
});
|
|
313
|
-
}
|
|
306
|
+
}
|
|
314
307
|
|
|
315
|
-
listTranscriptions
|
|
316
|
-
StreamResponse<ListTranscriptionsResponse>
|
|
317
|
-
> => {
|
|
308
|
+
listTranscriptions(): Promise<StreamResponse<ListTranscriptionsResponse>> {
|
|
318
309
|
return this.videoApi.listTranscriptions({ id: this.id, type: this.type });
|
|
319
|
-
}
|
|
310
|
+
}
|
|
320
311
|
|
|
321
|
-
unblockUser
|
|
312
|
+
unblockUser(
|
|
322
313
|
request: UnblockUserRequest,
|
|
323
|
-
): Promise<StreamResponse<UnblockUserResponse>>
|
|
314
|
+
): Promise<StreamResponse<UnblockUserResponse>> {
|
|
324
315
|
return this.videoApi.unblockUser({
|
|
325
316
|
id: this.id,
|
|
326
317
|
type: this.type,
|
|
327
318
|
...request,
|
|
328
319
|
});
|
|
329
|
-
}
|
|
320
|
+
}
|
|
330
321
|
|
|
331
|
-
videoUnpin
|
|
332
|
-
request: UnpinRequest,
|
|
333
|
-
): Promise<StreamResponse<UnpinResponse>> => {
|
|
322
|
+
videoUnpin(request: UnpinRequest): Promise<StreamResponse<UnpinResponse>> {
|
|
334
323
|
return this.videoApi.videoUnpin({
|
|
335
324
|
id: this.id,
|
|
336
325
|
type: this.type,
|
|
337
326
|
...request,
|
|
338
327
|
});
|
|
339
|
-
}
|
|
328
|
+
}
|
|
340
329
|
|
|
341
|
-
updateUserPermissions
|
|
330
|
+
updateUserPermissions(
|
|
342
331
|
request: UpdateUserPermissionsRequest,
|
|
343
|
-
): Promise<StreamResponse<UpdateUserPermissionsResponse>>
|
|
332
|
+
): Promise<StreamResponse<UpdateUserPermissionsResponse>> {
|
|
344
333
|
return this.videoApi.updateUserPermissions({
|
|
345
334
|
id: this.id,
|
|
346
335
|
type: this.type,
|
|
347
336
|
...request,
|
|
348
337
|
});
|
|
349
|
-
}
|
|
338
|
+
}
|
|
350
339
|
|
|
351
|
-
deleteRecording
|
|
340
|
+
deleteRecording(request: {
|
|
352
341
|
session: string;
|
|
353
342
|
filename: string;
|
|
354
|
-
}): Promise<StreamResponse<DeleteRecordingResponse>>
|
|
343
|
+
}): Promise<StreamResponse<DeleteRecordingResponse>> {
|
|
355
344
|
return this.videoApi.deleteRecording({
|
|
356
345
|
id: this.id,
|
|
357
346
|
type: this.type,
|
|
358
347
|
...request,
|
|
359
348
|
});
|
|
360
|
-
}
|
|
349
|
+
}
|
|
361
350
|
|
|
362
|
-
deleteTranscription
|
|
351
|
+
deleteTranscription(request: {
|
|
363
352
|
session: string;
|
|
364
353
|
filename: string;
|
|
365
|
-
}): Promise<StreamResponse<DeleteTranscriptionResponse>>
|
|
354
|
+
}): Promise<StreamResponse<DeleteTranscriptionResponse>> {
|
|
366
355
|
return this.videoApi.deleteTranscription({
|
|
367
356
|
id: this.id,
|
|
368
357
|
type: this.type,
|
|
369
358
|
...request,
|
|
370
359
|
});
|
|
371
|
-
}
|
|
360
|
+
}
|
|
372
361
|
}
|