@bitmovin/api-sdk 1.157.0 → 1.159.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.
Files changed (31) hide show
  1. package/README.md +1 -1
  2. package/dist/bitmovin-api-sdk.browser.js +54 -3
  3. package/dist/bitmovin-api-sdk.browser.min.js +1 -1
  4. package/dist/common/RestClient.js +1 -1
  5. package/dist/models/AutoLevelSetup.d.ts +10 -0
  6. package/dist/models/AutoLevelSetup.js +14 -0
  7. package/dist/models/Av1VideoConfiguration.d.ts +7 -0
  8. package/dist/models/Av1VideoConfiguration.js +1 -0
  9. package/dist/models/H264VideoConfiguration.d.ts +7 -0
  10. package/dist/models/H264VideoConfiguration.js +1 -0
  11. package/dist/models/H265VideoConfiguration.d.ts +7 -0
  12. package/dist/models/H265VideoConfiguration.js +1 -0
  13. package/dist/models/StreamsConfigResponse.d.ts +12 -0
  14. package/dist/models/StreamsConfigResponse.js +2 -0
  15. package/dist/models/StreamsLiveResponse.d.ts +6 -0
  16. package/dist/models/StreamsLiveResponse.js +1 -0
  17. package/dist/models/StreamsLiveUpdateRequest.d.ts +6 -0
  18. package/dist/models/StreamsLiveUpdateRequest.js +1 -0
  19. package/dist/models/StreamsVideoResponse.d.ts +6 -0
  20. package/dist/models/StreamsVideoResponse.js +1 -0
  21. package/dist/models/StreamsVideoUpdateRequest.d.ts +6 -0
  22. package/dist/models/StreamsVideoUpdateRequest.js +1 -0
  23. package/dist/models/Vp9VideoConfiguration.d.ts +7 -0
  24. package/dist/models/Vp9VideoConfiguration.js +1 -0
  25. package/dist/models/index.d.ts +1 -0
  26. package/dist/models/index.js +1 -0
  27. package/dist/streams/live/LiveApi.d.ts +9 -1
  28. package/dist/streams/live/LiveApi.js +16 -1
  29. package/dist/streams/video/VideoApi.d.ts +1 -1
  30. package/dist/streams/video/VideoApi.js +1 -1
  31. package/package.json +1 -1
package/README.md CHANGED
@@ -31,7 +31,7 @@ If you have any questions regarding the SDK, provided examples or our services,
31
31
  ## Installation
32
32
 
33
33
  ``` bash
34
- npm install @bitmovin/api-sdk@1.157.0
34
+ npm install @bitmovin/api-sdk@1.159.0
35
35
  ```
36
36
 
37
37
  ## Initialization
@@ -5987,7 +5987,7 @@ var HeaderHandler = /** @class */ (function (_super) {
5987
5987
  var headers = {
5988
5988
  'X-Api-Key': apiKey,
5989
5989
  'X-Api-Client': 'bitmovin-api-sdk-javascript',
5990
- 'X-Api-Client-Version': '1.157.0',
5990
+ 'X-Api-Client-Version': '1.159.0',
5991
5991
  'Content-Type': 'application/json'
5992
5992
  };
5993
5993
  if (tenantOrgId) {
@@ -58730,6 +58730,31 @@ var AudioVolumeUnit;
58730
58730
  exports["default"] = AudioVolumeUnit;
58731
58731
 
58732
58732
 
58733
+ /***/ }),
58734
+
58735
+ /***/ "./models/AutoLevelSetup.ts":
58736
+ /*!**********************************!*\
58737
+ !*** ./models/AutoLevelSetup.ts ***!
58738
+ \**********************************/
58739
+ /***/ ((__unused_webpack_module, exports) => {
58740
+
58741
+ "use strict";
58742
+
58743
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
58744
+ exports.AutoLevelSetup = void 0;
58745
+ /**
58746
+ * Enable/disable automatic calculation of level, maxBitrate, and bufsize based on the least level that satisfies maximum property values for picture resolution, frame rate, and bit rate.
58747
+ * @export
58748
+ * @enum {string}
58749
+ */
58750
+ var AutoLevelSetup;
58751
+ (function (AutoLevelSetup) {
58752
+ AutoLevelSetup["ENABLED"] = "ENABLED";
58753
+ AutoLevelSetup["DISABLED"] = "DISABLED";
58754
+ })(AutoLevelSetup = exports.AutoLevelSetup || (exports.AutoLevelSetup = {}));
58755
+ exports["default"] = AutoLevelSetup;
58756
+
58757
+
58733
58758
  /***/ }),
58734
58759
 
58735
58760
  /***/ "./models/AutoRepresentation.ts":
@@ -58918,6 +58943,7 @@ var Av1VideoConfiguration = /** @class */ (function (_super) {
58918
58943
  return _this;
58919
58944
  }
58920
58945
  _this.presetConfiguration = (0, Mapper_1.map)(obj.presetConfiguration);
58946
+ _this.autoLevelSetup = (0, Mapper_1.map)(obj.autoLevelSetup);
58921
58947
  return _this;
58922
58948
  }
58923
58949
  return Av1VideoConfiguration;
@@ -69576,6 +69602,7 @@ var H264VideoConfiguration = /** @class */ (function (_super) {
69576
69602
  _this.quantizerCurveCompression = (0, Mapper_1.map)(obj.quantizerCurveCompression);
69577
69603
  _this.psyRateDistortionOptimization = (0, Mapper_1.map)(obj.psyRateDistortionOptimization);
69578
69604
  _this.psyTrellis = (0, Mapper_1.map)(obj.psyTrellis);
69605
+ _this.autoLevelSetup = (0, Mapper_1.map)(obj.autoLevelSetup);
69579
69606
  return _this;
69580
69607
  }
69581
69608
  return H264VideoConfiguration;
@@ -69807,6 +69834,7 @@ var H265VideoConfiguration = /** @class */ (function (_super) {
69807
69834
  _this.limitSao = (0, Mapper_1.map)(obj.limitSao);
69808
69835
  _this.lowpassDct = (0, Mapper_1.map)(obj.lowpassDct);
69809
69836
  _this.cea608708SubtitleConfig = (0, Mapper_1.map)(obj.cea608708SubtitleConfig, Cea608708SubtitleConfiguration_1.default);
69837
+ _this.autoLevelSetup = (0, Mapper_1.map)(obj.autoLevelSetup);
69810
69838
  return _this;
69811
69839
  }
69812
69840
  return H265VideoConfiguration;
@@ -81224,6 +81252,8 @@ var StreamsConfigResponse = /** @class */ (function () {
81224
81252
  this.id = (0, Mapper_1.map)(obj.id);
81225
81253
  this.orgId = (0, Mapper_1.map)(obj.orgId);
81226
81254
  this.playerStyle = (0, Mapper_1.map)(obj.playerStyle);
81255
+ this.watermarkUrl = (0, Mapper_1.map)(obj.watermarkUrl);
81256
+ this.watermarkTargetLink = (0, Mapper_1.map)(obj.watermarkTargetLink);
81227
81257
  }
81228
81258
  return StreamsConfigResponse;
81229
81259
  }());
@@ -81319,6 +81349,7 @@ var StreamsLiveResponse = /** @class */ (function () {
81319
81349
  this.createdAt = (0, Mapper_1.map)(obj.createdAt, Date);
81320
81350
  this.lifeCycle = (0, Mapper_1.map)(obj.lifeCycle);
81321
81351
  this.config = (0, Mapper_1.map)(obj.config, StreamsConfigResponse_1.default);
81352
+ this.posterUrl = (0, Mapper_1.map)(obj.posterUrl);
81322
81353
  }
81323
81354
  return StreamsLiveResponse;
81324
81355
  }());
@@ -81351,6 +81382,7 @@ var StreamsLiveUpdateRequest = /** @class */ (function () {
81351
81382
  this.title = (0, Mapper_1.map)(obj.title);
81352
81383
  this.description = (0, Mapper_1.map)(obj.description);
81353
81384
  this.configId = (0, Mapper_1.map)(obj.configId);
81385
+ this.posterUrl = (0, Mapper_1.map)(obj.posterUrl);
81354
81386
  }
81355
81387
  return StreamsLiveUpdateRequest;
81356
81388
  }());
@@ -81504,6 +81536,7 @@ var StreamsVideoResponse = /** @class */ (function () {
81504
81536
  this.status = (0, Mapper_1.map)(obj.status);
81505
81537
  this.config = (0, Mapper_1.map)(obj.config, StreamsConfigResponse_1.default);
81506
81538
  this.encodingTasks = (0, Mapper_1.mapArray)(obj.encodingTasks, StreamsVideoEncodingTask_1.default);
81539
+ this.posterUrl = (0, Mapper_1.map)(obj.posterUrl);
81507
81540
  }
81508
81541
  return StreamsVideoResponse;
81509
81542
  }());
@@ -81561,6 +81594,7 @@ var StreamsVideoUpdateRequest = /** @class */ (function () {
81561
81594
  this.title = (0, Mapper_1.map)(obj.title);
81562
81595
  this.description = (0, Mapper_1.map)(obj.description);
81563
81596
  this.configId = (0, Mapper_1.map)(obj.configId);
81597
+ this.posterUrl = (0, Mapper_1.map)(obj.posterUrl);
81564
81598
  }
81565
81599
  return StreamsVideoUpdateRequest;
81566
81600
  }());
@@ -83786,6 +83820,7 @@ var Vp9VideoConfiguration = /** @class */ (function (_super) {
83786
83820
  _this.arnrMaxFrames = (0, Mapper_1.map)(obj.arnrMaxFrames);
83787
83821
  _this.arnrStrength = (0, Mapper_1.map)(obj.arnrStrength);
83788
83822
  _this.arnrType = (0, Mapper_1.map)(obj.arnrType);
83823
+ _this.autoLevelSetup = (0, Mapper_1.map)(obj.autoLevelSetup);
83789
83824
  return _this;
83790
83825
  }
83791
83826
  return Vp9VideoConfiguration;
@@ -84934,6 +84969,7 @@ __exportStar(__webpack_require__(/*! ./AudioVideoSyncMode */ "./models/AudioVide
84934
84969
  __exportStar(__webpack_require__(/*! ./AudioVolumeFilter */ "./models/AudioVolumeFilter.ts"), exports);
84935
84970
  __exportStar(__webpack_require__(/*! ./AudioVolumeFormat */ "./models/AudioVolumeFormat.ts"), exports);
84936
84971
  __exportStar(__webpack_require__(/*! ./AudioVolumeUnit */ "./models/AudioVolumeUnit.ts"), exports);
84972
+ __exportStar(__webpack_require__(/*! ./AutoLevelSetup */ "./models/AutoLevelSetup.ts"), exports);
84937
84973
  __exportStar(__webpack_require__(/*! ./AutoRepresentation */ "./models/AutoRepresentation.ts"), exports);
84938
84974
  __exportStar(__webpack_require__(/*! ./AutoRestartConfiguration */ "./models/AutoRestartConfiguration.ts"), exports);
84939
84975
  __exportStar(__webpack_require__(/*! ./Av1PerTitleConfiguration */ "./models/Av1PerTitleConfiguration.ts"), exports);
@@ -89303,7 +89339,7 @@ var LiveApi = /** @class */ (function (_super) {
89303
89339
  });
89304
89340
  };
89305
89341
  /**
89306
- * @summary Update live stream by id
89342
+ * @summary Partially update live stream by id
89307
89343
  * @param {string} streamId Id of the stream.
89308
89344
  * @param {StreamsLiveUpdateRequest} streamsLiveUpdateRequest Stream fields to update.
89309
89345
  * @throws {BitmovinError}
@@ -89317,6 +89353,21 @@ var LiveApi = /** @class */ (function (_super) {
89317
89353
  return (0, Mapper_1.map)(response, StreamsLiveUpdateRequest_1.default);
89318
89354
  });
89319
89355
  };
89356
+ /**
89357
+ * @summary Update live stream by id
89358
+ * @param {string} streamId Id of the stream.
89359
+ * @param {StreamsLiveUpdateRequest} streamsLiveUpdateRequest The updated stream config object.
89360
+ * @throws {BitmovinError}
89361
+ * @memberof LiveApi
89362
+ */
89363
+ LiveApi.prototype.update = function (streamId, streamsLiveUpdateRequest) {
89364
+ var pathParamMap = {
89365
+ stream_id: streamId
89366
+ };
89367
+ return this.restClient.put('/streams/live/{stream_id}', pathParamMap, streamsLiveUpdateRequest).then(function (response) {
89368
+ return (0, Mapper_1.map)(response, StreamsLiveUpdateRequest_1.default);
89369
+ });
89370
+ };
89320
89371
  return LiveApi;
89321
89372
  }(BaseAPI_1.BaseAPI));
89322
89373
  exports["default"] = LiveApi;
@@ -89620,7 +89671,7 @@ var VideoApi = /** @class */ (function (_super) {
89620
89671
  });
89621
89672
  };
89622
89673
  /**
89623
- * @summary Update Streams video by id
89674
+ * @summary Partially update stream config by id
89624
89675
  * @param {string} streamId Id of the stream.
89625
89676
  * @param {StreamsVideoUpdateRequest} streamsVideoUpdateRequest Stream fields to update.
89626
89677
  * @throws {BitmovinError}