@stream-io/node-sdk 0.2.4 → 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
  */
@@ -618,6 +634,7 @@ const VideoNoiseCancellationSettingsModeEnum = {
618
634
  */
619
635
  const VideoOwnCapability = {
620
636
  BLOCK_USERS: 'block-users',
637
+ CHANGE_MAX_DURATION: 'change-max-duration',
621
638
  CREATE_CALL: 'create-call',
622
639
  CREATE_REACTION: 'create-reaction',
623
640
  ENABLE_NOISE_CANCELLATION: 'enable-noise-cancellation',
@@ -677,6 +694,22 @@ const VideoTranscriptionSettingsResponseModeEnum = {
677
694
  DISABLED: 'disabled',
678
695
  AUTO_ON: 'auto-on'
679
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
+ };
680
713
  /**
681
714
  * @export
682
715
  */
@@ -6158,7 +6191,7 @@ class StreamChatClient {
6158
6191
  * Stream API
6159
6192
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6160
6193
  *
6161
- * The version of the OpenAPI document: v113.1.0
6194
+ * The version of the OpenAPI document: v120.0.0
6162
6195
  *
6163
6196
  *
6164
6197
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6418,7 +6451,7 @@ class JSONApiResponse {
6418
6451
  * Stream API
6419
6452
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6420
6453
  *
6421
- * The version of the OpenAPI document: v113.1.0
6454
+ * The version of the OpenAPI document: v120.0.0
6422
6455
  *
6423
6456
  *
6424
6457
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6729,6 +6762,53 @@ class ProductvideoApi extends BaseAPI {
6729
6762
  return yield response.value();
6730
6763
  });
6731
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
+ }
6732
6812
  /**
6733
6813
  *
6734
6814
  * Delete Call Type
@@ -8351,6 +8431,9 @@ class StreamCall {
8351
8431
  this.blockUser = (videoBlockUserRequest) => {
8352
8432
  return this.apiClient.blockUser(Object.assign(Object.assign({}, this.baseRequest), { videoBlockUserRequest }));
8353
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
+ };
8354
8437
  this.endCall = () => {
8355
8438
  return this.apiClient.endCall(Object.assign({}, this.baseRequest));
8356
8439
  };
@@ -8435,6 +8518,9 @@ class StreamCall {
8435
8518
  const configuration = this.streamClient.getConfiguration('video');
8436
8519
  this.apiClient = new ProductvideoApi(configuration);
8437
8520
  }
8521
+ get cid() {
8522
+ return `${this.type}:${this.id}`;
8523
+ }
8438
8524
  }
8439
8525
 
8440
8526
  class StreamVideoClient {
@@ -8745,7 +8831,7 @@ class StreamClient {
8745
8831
  ? 'https://chat.stream-io-api.com'
8746
8832
  : 'https://video.stream-io-api.com'),
8747
8833
  headers: {
8748
- 'X-Stream-Client': 'stream-node-' + "0.2.4",
8834
+ 'X-Stream-Client': 'stream-node-' + "0.2.6",
8749
8835
  },
8750
8836
  middleware: [
8751
8837
  {
@@ -8998,7 +9084,9 @@ exports.UpdateChannelTypeResponseBlocklistBehaviorEnum = UpdateChannelTypeRespon
8998
9084
  exports.VideoAudioSettingsRequestDefaultDeviceEnum = VideoAudioSettingsRequestDefaultDeviceEnum;
8999
9085
  exports.VideoAudioSettingsResponseDefaultDeviceEnum = VideoAudioSettingsResponseDefaultDeviceEnum;
9000
9086
  exports.VideoCreateDeviceRequestPushProviderEnum = VideoCreateDeviceRequestPushProviderEnum;
9087
+ exports.VideoCreateExternalStorageRequestStorageTypeEnum = VideoCreateExternalStorageRequestStorageTypeEnum;
9001
9088
  exports.VideoDevicePushProviderEnum = VideoDevicePushProviderEnum;
9089
+ exports.VideoExternalStorageResponseTypeEnum = VideoExternalStorageResponseTypeEnum;
9002
9090
  exports.VideoLayoutSettingsRequestNameEnum = VideoLayoutSettingsRequestNameEnum;
9003
9091
  exports.VideoLayoutSettingsResponseNameEnum = VideoLayoutSettingsResponseNameEnum;
9004
9092
  exports.VideoNoiseCancellationSettingsModeEnum = VideoNoiseCancellationSettingsModeEnum;
@@ -9008,6 +9096,8 @@ exports.VideoRecordSettingsRequestQualityEnum = VideoRecordSettingsRequestQualit
9008
9096
  exports.VideoSettingsCameraFacingEnum = VideoSettingsCameraFacingEnum;
9009
9097
  exports.VideoTranscriptionSettingsRequestModeEnum = VideoTranscriptionSettingsRequestModeEnum;
9010
9098
  exports.VideoTranscriptionSettingsResponseModeEnum = VideoTranscriptionSettingsResponseModeEnum;
9099
+ exports.VideoUpdateExternalStorageRequestStorageTypeEnum = VideoUpdateExternalStorageRequestStorageTypeEnum;
9100
+ exports.VideoUpdateExternalStorageResponseTypeEnum = VideoUpdateExternalStorageResponseTypeEnum;
9011
9101
  exports.VideoVideoSettingsRequestCameraFacingEnum = VideoVideoSettingsRequestCameraFacingEnum;
9012
9102
  exports.VideoVideoSettingsResponseCameraFacingEnum = VideoVideoSettingsResponseCameraFacingEnum;
9013
9103
  //# sourceMappingURL=index.cjs.js.map