@stream-io/node-sdk 0.1.11 → 0.1.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/dist/index.cjs.js +66 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +66 -13
- package/dist/index.es.js.map +1 -1
- package/dist/src/StreamCall.d.ts +3 -2
- package/dist/src/gen/video/apis/DefaultApi.d.ts +21 -6
- package/dist/src/gen/video/apis/ServerSideApi.d.ts +1 -1
- package/dist/src/gen/video/apis/SettingsApi.d.ts +1 -1
- package/dist/src/gen/video/models/index.d.ts +69 -0
- package/dist/src/gen/video/runtime.d.ts +1 -1
- package/package.json +5 -4
- package/src/StreamCall.ts +19 -7
- package/src/StreamClient.ts +6 -2
- package/src/gen/video/apis/DefaultApi.ts +68 -5
- package/src/gen/video/apis/ServerSideApi.ts +1 -1
- package/src/gen/video/apis/SettingsApi.ts +1 -1
- package/src/gen/video/models/index.ts +69 -0
- package/src/gen/video/runtime.ts +1 -1
package/dist/index.es.js
CHANGED
|
@@ -6138,7 +6138,7 @@ class StreamChatClient {
|
|
|
6138
6138
|
* Stream API
|
|
6139
6139
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6140
6140
|
*
|
|
6141
|
-
* The version of the OpenAPI document:
|
|
6141
|
+
* The version of the OpenAPI document: v100.4.3
|
|
6142
6142
|
*
|
|
6143
6143
|
*
|
|
6144
6144
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -6408,7 +6408,7 @@ class VoidApiResponse {
|
|
|
6408
6408
|
* Stream API
|
|
6409
6409
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6410
6410
|
*
|
|
6411
|
-
* The version of the OpenAPI document:
|
|
6411
|
+
* The version of the OpenAPI document: v100.4.3
|
|
6412
6412
|
*
|
|
6413
6413
|
*
|
|
6414
6414
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -6900,6 +6900,48 @@ class DefaultApi extends BaseAPI {
|
|
|
6900
6900
|
return yield response.value();
|
|
6901
6901
|
});
|
|
6902
6902
|
}
|
|
6903
|
+
/**
|
|
6904
|
+
* Lists transcriptions Required permissions: - ListTranscriptions
|
|
6905
|
+
* List transcriptions
|
|
6906
|
+
*/
|
|
6907
|
+
listTranscriptionsRaw(requestParameters, initOverrides) {
|
|
6908
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6909
|
+
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
6910
|
+
throw new RequiredError('type', 'Required parameter requestParameters.type was null or undefined when calling listTranscriptions.');
|
|
6911
|
+
}
|
|
6912
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
6913
|
+
throw new RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling listTranscriptions.');
|
|
6914
|
+
}
|
|
6915
|
+
const queryParameters = {};
|
|
6916
|
+
const headerParameters = {};
|
|
6917
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
6918
|
+
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
6919
|
+
}
|
|
6920
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
6921
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
6922
|
+
}
|
|
6923
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
6924
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
6925
|
+
}
|
|
6926
|
+
const response = yield this.request({
|
|
6927
|
+
path: `/video/call/{type}/{id}/transcriptions`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
6928
|
+
method: 'GET',
|
|
6929
|
+
headers: headerParameters,
|
|
6930
|
+
query: queryParameters,
|
|
6931
|
+
}, initOverrides);
|
|
6932
|
+
return new JSONApiResponse(response);
|
|
6933
|
+
});
|
|
6934
|
+
}
|
|
6935
|
+
/**
|
|
6936
|
+
* Lists transcriptions Required permissions: - ListTranscriptions
|
|
6937
|
+
* List transcriptions
|
|
6938
|
+
*/
|
|
6939
|
+
listTranscriptions(requestParameters, initOverrides) {
|
|
6940
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6941
|
+
const response = yield this.listTranscriptionsRaw(requestParameters, initOverrides);
|
|
6942
|
+
return yield response.value();
|
|
6943
|
+
});
|
|
6944
|
+
}
|
|
6903
6945
|
/**
|
|
6904
6946
|
* Mutes users in a call Required permissions: - MuteUsers
|
|
6905
6947
|
* Mute users
|
|
@@ -7122,7 +7164,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7122
7164
|
});
|
|
7123
7165
|
}
|
|
7124
7166
|
/**
|
|
7125
|
-
* Starts recording Sends events: - call.recording_started Required permissions: -
|
|
7167
|
+
* Starts recording Sends events: - call.recording_started Required permissions: - StartRecording
|
|
7126
7168
|
* Start recording
|
|
7127
7169
|
*/
|
|
7128
7170
|
startRecordingRaw(requestParameters, initOverrides) {
|
|
@@ -7159,7 +7201,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7159
7201
|
});
|
|
7160
7202
|
}
|
|
7161
7203
|
/**
|
|
7162
|
-
* Starts recording Sends events: - call.recording_started Required permissions: -
|
|
7204
|
+
* Starts recording Sends events: - call.recording_started Required permissions: - StartRecording
|
|
7163
7205
|
* Start recording
|
|
7164
7206
|
*/
|
|
7165
7207
|
startRecording(requestParameters, initOverrides) {
|
|
@@ -7180,8 +7222,12 @@ class DefaultApi extends BaseAPI {
|
|
|
7180
7222
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
7181
7223
|
throw new RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling startTranscription.');
|
|
7182
7224
|
}
|
|
7225
|
+
if (requestParameters.videoStartTranscriptionRequest === null || requestParameters.videoStartTranscriptionRequest === undefined) {
|
|
7226
|
+
throw new RequiredError('videoStartTranscriptionRequest', 'Required parameter requestParameters.videoStartTranscriptionRequest was null or undefined when calling startTranscription.');
|
|
7227
|
+
}
|
|
7183
7228
|
const queryParameters = {};
|
|
7184
7229
|
const headerParameters = {};
|
|
7230
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
7185
7231
|
if (this.configuration && this.configuration.apiKey) {
|
|
7186
7232
|
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
7187
7233
|
}
|
|
@@ -7196,6 +7242,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7196
7242
|
method: 'POST',
|
|
7197
7243
|
headers: headerParameters,
|
|
7198
7244
|
query: queryParameters,
|
|
7245
|
+
body: requestParameters.videoStartTranscriptionRequest,
|
|
7199
7246
|
}, initOverrides);
|
|
7200
7247
|
return new JSONApiResponse(response);
|
|
7201
7248
|
});
|
|
@@ -7337,7 +7384,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7337
7384
|
});
|
|
7338
7385
|
}
|
|
7339
7386
|
/**
|
|
7340
|
-
* Stops transcription Required permissions: - StopTranscription
|
|
7387
|
+
* Stops transcription Sends events: - call.transcription_stopped Required permissions: - StopTranscription
|
|
7341
7388
|
* Stop transcription
|
|
7342
7389
|
*/
|
|
7343
7390
|
stopTranscriptionRaw(requestParameters, initOverrides) {
|
|
@@ -7369,7 +7416,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7369
7416
|
});
|
|
7370
7417
|
}
|
|
7371
7418
|
/**
|
|
7372
|
-
* Stops transcription Required permissions: - StopTranscription
|
|
7419
|
+
* Stops transcription Sends events: - call.transcription_stopped Required permissions: - StopTranscription
|
|
7373
7420
|
* Stop transcription
|
|
7374
7421
|
*/
|
|
7375
7422
|
stopTranscription(requestParameters, initOverrides) {
|
|
@@ -7708,7 +7755,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7708
7755
|
* Stream API
|
|
7709
7756
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7710
7757
|
*
|
|
7711
|
-
* The version of the OpenAPI document:
|
|
7758
|
+
* The version of the OpenAPI document: v100.4.3
|
|
7712
7759
|
*
|
|
7713
7760
|
*
|
|
7714
7761
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -8009,7 +8056,7 @@ class ServerSideApi extends BaseAPI {
|
|
|
8009
8056
|
* Stream API
|
|
8010
8057
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
8011
8058
|
*
|
|
8012
|
-
* The version of the OpenAPI document:
|
|
8059
|
+
* The version of the OpenAPI document: v100.4.3
|
|
8013
8060
|
*
|
|
8014
8061
|
*
|
|
8015
8062
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -8164,6 +8211,9 @@ class StreamCall {
|
|
|
8164
8211
|
this.listRecordings = () => {
|
|
8165
8212
|
return this.apiClient.listRecordings(Object.assign({}, this.baseRequest));
|
|
8166
8213
|
};
|
|
8214
|
+
this.listTranscriptions = () => {
|
|
8215
|
+
return this.apiClient.listTranscriptions(Object.assign({}, this.baseRequest));
|
|
8216
|
+
};
|
|
8167
8217
|
this.muteUsers = (videoMuteUsersRequest) => {
|
|
8168
8218
|
return this.apiClient.muteUsers(Object.assign(Object.assign({}, this.baseRequest), { videoMuteUsersRequest }));
|
|
8169
8219
|
};
|
|
@@ -8181,8 +8231,8 @@ class StreamCall {
|
|
|
8181
8231
|
this.startRecording = (request) => {
|
|
8182
8232
|
return this.apiClient.startRecording(Object.assign(Object.assign({}, this.baseRequest), { videoStartRecordingRequest: request !== null && request !== void 0 ? request : {} }));
|
|
8183
8233
|
};
|
|
8184
|
-
this.startTranscription = () => {
|
|
8185
|
-
return this.apiClient.startTranscription(Object.assign({}, this.baseRequest));
|
|
8234
|
+
this.startTranscription = (videoStartTranscriptionRequest = {}) => {
|
|
8235
|
+
return this.apiClient.startTranscription(Object.assign(Object.assign({}, this.baseRequest), { videoStartTranscriptionRequest }));
|
|
8186
8236
|
};
|
|
8187
8237
|
this.stopHLSBroadcasting = () => {
|
|
8188
8238
|
return this.apiClient.stopHLSBroadcasting(Object.assign({}, this.baseRequest));
|
|
@@ -8526,7 +8576,7 @@ class StreamClient {
|
|
|
8526
8576
|
? 'https://chat.stream-io-api.com'
|
|
8527
8577
|
: 'https://video.stream-io-api.com'),
|
|
8528
8578
|
headers: {
|
|
8529
|
-
'X-Stream-Client': 'stream-node-' + "0.1.
|
|
8579
|
+
'X-Stream-Client': 'stream-node-' + "0.1.13",
|
|
8530
8580
|
},
|
|
8531
8581
|
middleware: [
|
|
8532
8582
|
{
|
|
@@ -8610,15 +8660,18 @@ class StreamClient {
|
|
|
8610
8660
|
return Object.assign(Object.assign({}, copy), user.custom);
|
|
8611
8661
|
};
|
|
8612
8662
|
this.token = JWTServerToken(this.secret);
|
|
8613
|
-
this.video = new StreamVideoClient(this);
|
|
8614
|
-
this.chat = new StreamChatClient(this);
|
|
8615
8663
|
if (typeof config === 'string') {
|
|
8616
8664
|
this.options.basePath = config;
|
|
8617
8665
|
this.options.timeout = StreamClient.DEFAULT_TIMEOUT;
|
|
8618
8666
|
}
|
|
8619
8667
|
else {
|
|
8668
|
+
if (config) {
|
|
8669
|
+
this.options = config;
|
|
8670
|
+
}
|
|
8620
8671
|
this.options.timeout = (_a = config === null || config === void 0 ? void 0 : config.timeout) !== null && _a !== void 0 ? _a : StreamClient.DEFAULT_TIMEOUT;
|
|
8621
8672
|
}
|
|
8673
|
+
this.video = new StreamVideoClient(this);
|
|
8674
|
+
this.chat = new StreamChatClient(this);
|
|
8622
8675
|
const chatConfiguration = this.getConfiguration();
|
|
8623
8676
|
/** @ts-expect-error */
|
|
8624
8677
|
this.usersApi = new UsersApi(chatConfiguration);
|