@stream-io/node-sdk 0.2.5 → 0.2.6

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 CHANGED
@@ -575,6 +575,14 @@ const VideoCreateDeviceRequestPushProviderEnum = {
575
575
  HUAWEI: 'huawei',
576
576
  XIAOMI: 'xiaomi'
577
577
  };
578
+ /**
579
+ * @export
580
+ */
581
+ const VideoCreateExternalStorageRequestStorageTypeEnum = {
582
+ S3: 's3',
583
+ GCS: 'gcs',
584
+ ABS: 'abs'
585
+ };
578
586
  /**
579
587
  * @export
580
588
  */
@@ -584,6 +592,14 @@ const VideoDevicePushProviderEnum = {
584
592
  HUAWEI: 'huawei',
585
593
  XIAOMI: 'xiaomi'
586
594
  };
595
+ /**
596
+ * @export
597
+ */
598
+ const VideoExternalStorageResponseTypeEnum = {
599
+ S3: 's3',
600
+ GCS: 'gcs',
601
+ ABS: 'abs'
602
+ };
587
603
  /**
588
604
  * @export
589
605
  */
@@ -678,6 +694,22 @@ const VideoTranscriptionSettingsResponseModeEnum = {
678
694
  DISABLED: 'disabled',
679
695
  AUTO_ON: 'auto-on'
680
696
  };
697
+ /**
698
+ * @export
699
+ */
700
+ const VideoUpdateExternalStorageRequestStorageTypeEnum = {
701
+ S3: 's3',
702
+ GCS: 'gcs',
703
+ ABS: 'abs'
704
+ };
705
+ /**
706
+ * @export
707
+ */
708
+ const VideoUpdateExternalStorageResponseTypeEnum = {
709
+ S3: 's3',
710
+ GCS: 'gcs',
711
+ ABS: 'abs'
712
+ };
681
713
  /**
682
714
  * @export
683
715
  */
@@ -6159,7 +6191,7 @@ class StreamChatClient {
6159
6191
  * Stream API
6160
6192
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6161
6193
  *
6162
- * The version of the OpenAPI document: v116.0.0
6194
+ * The version of the OpenAPI document: v120.0.0
6163
6195
  *
6164
6196
  *
6165
6197
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6419,7 +6451,7 @@ class JSONApiResponse {
6419
6451
  * Stream API
6420
6452
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6421
6453
  *
6422
- * The version of the OpenAPI document: v116.0.0
6454
+ * The version of the OpenAPI document: v120.0.0
6423
6455
  *
6424
6456
  *
6425
6457
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6730,6 +6762,53 @@ class ProductvideoApi extends BaseAPI {
6730
6762
  return yield response.value();
6731
6763
  });
6732
6764
  }
6765
+ /**
6766
+ * Sends events: - call.deleted Required permissions: - DeleteCall
6767
+ * Delete Call
6768
+ */
6769
+ deleteCallRaw(requestParameters, initOverrides) {
6770
+ return __awaiter(this, void 0, void 0, function* () {
6771
+ if (requestParameters.type === null || requestParameters.type === undefined) {
6772
+ throw new RequiredError('type', 'Required parameter requestParameters.type was null or undefined when calling deleteCall.');
6773
+ }
6774
+ if (requestParameters.id === null || requestParameters.id === undefined) {
6775
+ throw new RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling deleteCall.');
6776
+ }
6777
+ if (requestParameters.videoDeleteCallRequest === null || requestParameters.videoDeleteCallRequest === undefined) {
6778
+ throw new RequiredError('videoDeleteCallRequest', 'Required parameter requestParameters.videoDeleteCallRequest was null or undefined when calling deleteCall.');
6779
+ }
6780
+ const queryParameters = {};
6781
+ const headerParameters = {};
6782
+ headerParameters['Content-Type'] = 'application/json';
6783
+ if (this.configuration && this.configuration.apiKey) {
6784
+ headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
6785
+ }
6786
+ if (this.configuration && this.configuration.apiKey) {
6787
+ queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
6788
+ }
6789
+ if (this.configuration && this.configuration.apiKey) {
6790
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
6791
+ }
6792
+ const response = yield this.request({
6793
+ path: `/video/call/{type}/{id}/delete`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
6794
+ method: 'POST',
6795
+ headers: headerParameters,
6796
+ query: queryParameters,
6797
+ body: requestParameters.videoDeleteCallRequest,
6798
+ }, initOverrides);
6799
+ return new JSONApiResponse(response);
6800
+ });
6801
+ }
6802
+ /**
6803
+ * Sends events: - call.deleted Required permissions: - DeleteCall
6804
+ * Delete Call
6805
+ */
6806
+ deleteCall(requestParameters, initOverrides) {
6807
+ return __awaiter(this, void 0, void 0, function* () {
6808
+ const response = yield this.deleteCallRaw(requestParameters, initOverrides);
6809
+ return yield response.value();
6810
+ });
6811
+ }
6733
6812
  /**
6734
6813
  *
6735
6814
  * Delete Call Type
@@ -8352,6 +8431,9 @@ class StreamCall {
8352
8431
  this.blockUser = (videoBlockUserRequest) => {
8353
8432
  return this.apiClient.blockUser(Object.assign(Object.assign({}, this.baseRequest), { videoBlockUserRequest }));
8354
8433
  };
8434
+ this.delete = (videoDeleteCallRequest) => {
8435
+ return this.apiClient.deleteCall(Object.assign(Object.assign({}, this.baseRequest), { videoDeleteCallRequest: videoDeleteCallRequest !== null && videoDeleteCallRequest !== void 0 ? videoDeleteCallRequest : null }));
8436
+ };
8355
8437
  this.endCall = () => {
8356
8438
  return this.apiClient.endCall(Object.assign({}, this.baseRequest));
8357
8439
  };
@@ -8436,6 +8518,9 @@ class StreamCall {
8436
8518
  const configuration = this.streamClient.getConfiguration('video');
8437
8519
  this.apiClient = new ProductvideoApi(configuration);
8438
8520
  }
8521
+ get cid() {
8522
+ return `${this.type}:${this.id}`;
8523
+ }
8439
8524
  }
8440
8525
 
8441
8526
  class StreamVideoClient {
@@ -8746,7 +8831,7 @@ class StreamClient {
8746
8831
  ? 'https://chat.stream-io-api.com'
8747
8832
  : 'https://video.stream-io-api.com'),
8748
8833
  headers: {
8749
- 'X-Stream-Client': 'stream-node-' + "0.2.5",
8834
+ 'X-Stream-Client': 'stream-node-' + "0.2.6",
8750
8835
  },
8751
8836
  middleware: [
8752
8837
  {
@@ -8999,7 +9084,9 @@ exports.UpdateChannelTypeResponseBlocklistBehaviorEnum = UpdateChannelTypeRespon
8999
9084
  exports.VideoAudioSettingsRequestDefaultDeviceEnum = VideoAudioSettingsRequestDefaultDeviceEnum;
9000
9085
  exports.VideoAudioSettingsResponseDefaultDeviceEnum = VideoAudioSettingsResponseDefaultDeviceEnum;
9001
9086
  exports.VideoCreateDeviceRequestPushProviderEnum = VideoCreateDeviceRequestPushProviderEnum;
9087
+ exports.VideoCreateExternalStorageRequestStorageTypeEnum = VideoCreateExternalStorageRequestStorageTypeEnum;
9002
9088
  exports.VideoDevicePushProviderEnum = VideoDevicePushProviderEnum;
9089
+ exports.VideoExternalStorageResponseTypeEnum = VideoExternalStorageResponseTypeEnum;
9003
9090
  exports.VideoLayoutSettingsRequestNameEnum = VideoLayoutSettingsRequestNameEnum;
9004
9091
  exports.VideoLayoutSettingsResponseNameEnum = VideoLayoutSettingsResponseNameEnum;
9005
9092
  exports.VideoNoiseCancellationSettingsModeEnum = VideoNoiseCancellationSettingsModeEnum;
@@ -9009,6 +9096,8 @@ exports.VideoRecordSettingsRequestQualityEnum = VideoRecordSettingsRequestQualit
9009
9096
  exports.VideoSettingsCameraFacingEnum = VideoSettingsCameraFacingEnum;
9010
9097
  exports.VideoTranscriptionSettingsRequestModeEnum = VideoTranscriptionSettingsRequestModeEnum;
9011
9098
  exports.VideoTranscriptionSettingsResponseModeEnum = VideoTranscriptionSettingsResponseModeEnum;
9099
+ exports.VideoUpdateExternalStorageRequestStorageTypeEnum = VideoUpdateExternalStorageRequestStorageTypeEnum;
9100
+ exports.VideoUpdateExternalStorageResponseTypeEnum = VideoUpdateExternalStorageResponseTypeEnum;
9012
9101
  exports.VideoVideoSettingsRequestCameraFacingEnum = VideoVideoSettingsRequestCameraFacingEnum;
9013
9102
  exports.VideoVideoSettingsResponseCameraFacingEnum = VideoVideoSettingsResponseCameraFacingEnum;
9014
9103
  //# sourceMappingURL=index.cjs.js.map