@bitmovin/api-sdk 1.281.0 → 1.282.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/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.281.0
34
+ npm install @bitmovin/api-sdk@1.282.0
35
35
  ```
36
36
 
37
37
  ## Initialization
@@ -4556,7 +4556,7 @@ class HeaderHandler extends DelegatingHandler {
4556
4556
  const headers = {
4557
4557
  'X-Api-Key': apiKey,
4558
4558
  'X-Api-Client': 'bitmovin-api-sdk-javascript',
4559
- 'X-Api-Client-Version': '1.281.0',
4559
+ 'X-Api-Client-Version': '1.282.0',
4560
4560
  'Content-Type': 'application/json'
4561
4561
  };
4562
4562
  if (tenantOrgId) {
@@ -12876,6 +12876,7 @@ const BaseAPI_1 = __webpack_require__(/*! ../../../common/BaseAPI */ "./common/B
12876
12876
  const Mapper_1 = __webpack_require__(/*! ../../../common/Mapper */ "./common/Mapper.ts");
12877
12877
  const EsamApi_1 = __webpack_require__(/*! ./esam/EsamApi */ "./encoding/encodings/live/esam/EsamApi.ts");
12878
12878
  const ResetLiveManifestTimeshiftApi_1 = __webpack_require__(/*! ./resetLiveManifestTimeshift/ResetLiveManifestTimeshiftApi */ "./encoding/encodings/live/resetLiveManifestTimeshift/ResetLiveManifestTimeshiftApi.ts");
12879
+ const UpdateAutoshutdownConfigApi_1 = __webpack_require__(/*! ./updateAutoshutdownConfig/UpdateAutoshutdownConfigApi */ "./encoding/encodings/live/updateAutoshutdownConfig/UpdateAutoshutdownConfigApi.ts");
12879
12880
  const HeartbeatApi_1 = __webpack_require__(/*! ./heartbeat/HeartbeatApi */ "./encoding/encodings/live/heartbeat/HeartbeatApi.ts");
12880
12881
  const HeartbeatFinalApi_1 = __webpack_require__(/*! ./heartbeatFinal/HeartbeatFinalApi */ "./encoding/encodings/live/heartbeatFinal/HeartbeatFinalApi.ts");
12881
12882
  const HdApi_1 = __webpack_require__(/*! ./hd/HdApi */ "./encoding/encodings/live/hd/HdApi.ts");
@@ -12895,6 +12896,7 @@ class LiveApi extends BaseAPI_1.BaseAPI {
12895
12896
  super(configuration);
12896
12897
  this.esam = new EsamApi_1.default(configuration);
12897
12898
  this.resetLiveManifestTimeshift = new ResetLiveManifestTimeshiftApi_1.default(configuration);
12899
+ this.updateAutoshutdownConfig = new UpdateAutoshutdownConfigApi_1.default(configuration);
12898
12900
  this.heartbeat = new HeartbeatApi_1.default(configuration);
12899
12901
  this.heartbeatFinal = new HeartbeatFinalApi_1.default(configuration);
12900
12902
  this.hd = new HdApi_1.default(configuration);
@@ -13582,6 +13584,49 @@ class Scte35CueApi extends BaseAPI_1.BaseAPI {
13582
13584
  exports["default"] = Scte35CueApi;
13583
13585
 
13584
13586
 
13587
+ /***/ },
13588
+
13589
+ /***/ "./encoding/encodings/live/updateAutoshutdownConfig/UpdateAutoshutdownConfigApi.ts"
13590
+ /*!*****************************************************************************************!*\
13591
+ !*** ./encoding/encodings/live/updateAutoshutdownConfig/UpdateAutoshutdownConfigApi.ts ***!
13592
+ \*****************************************************************************************/
13593
+ (__unused_webpack_module, exports, __webpack_require__) {
13594
+
13595
+ "use strict";
13596
+
13597
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
13598
+ const BaseAPI_1 = __webpack_require__(/*! ../../../../common/BaseAPI */ "./common/BaseAPI.ts");
13599
+ const Mapper_1 = __webpack_require__(/*! ../../../../common/Mapper */ "./common/Mapper.ts");
13600
+ const LiveAutoShutdownConfigurationUpdateResponse_1 = __webpack_require__(/*! ../../../../models/LiveAutoShutdownConfigurationUpdateResponse */ "./models/LiveAutoShutdownConfigurationUpdateResponse.ts");
13601
+ /**
13602
+ * UpdateAutoshutdownConfigApi - object-oriented interface
13603
+ * @export
13604
+ * @class UpdateAutoshutdownConfigApi
13605
+ * @extends {BaseAPI}
13606
+ */
13607
+ class UpdateAutoshutdownConfigApi extends BaseAPI_1.BaseAPI {
13608
+ constructor(configuration) {
13609
+ super(configuration);
13610
+ }
13611
+ /**
13612
+ * @summary Replace Live Auto Shutdown Configuration
13613
+ * @param {string} encodingId Id of the encoding.
13614
+ * @param {LiveAutoShutdownConfigurationUpdateRequest} liveAutoShutdownConfigurationUpdateRequest Applies a new auto shutdown configuration to a Live Encoding that is already running, without interrupting the stream. **The body is a full replacement, not a partial update.** Every field that is omitted or set to `null` disarms the corresponding timer, and an empty body `{}` disarms all timers. Always send the complete configuration you want the encoding to run with, including the values you want to keep. **`streamTimeoutMinutes` is counted from this call, not from the start of the encoding.** The encoding is stopped that many minutes after the update is accepted, whereas in the start request the same field is counted from when the encoding started. An encoding started at 12:00 with `streamTimeoutMinutes` of 120 is scheduled to stop at 14:00; updating it at 13:30 with `streamTimeoutMinutes` of 150 moves the shutdown to 16:00, not to 14:30. `bytesReadTimeoutSeconds` is relative by nature, as it always counts from the last byte received, and `waitingForFirstConnectTimeoutMinutes` has no effect once the input is connected. The organization's maximum live encoding runtime still bounds the total runtime of the encoding, measured from the start of the encoding. An update that would push the shutdown past that limit is rejected rather than extending the encoding beyond it. **Do not leave the call to the last few seconds.** The update is rejected with `409` when any armed shutdown timer is within 10 seconds of firing, because at that point the shutdown sequence is effectively already in flight.
13615
+ * @throws {BitmovinError}
13616
+ * @memberof UpdateAutoshutdownConfigApi
13617
+ */
13618
+ create(encodingId, liveAutoShutdownConfigurationUpdateRequest) {
13619
+ const pathParamMap = {
13620
+ encoding_id: encodingId
13621
+ };
13622
+ return this.restClient.post('/encoding/encodings/{encoding_id}/live/update-autoshutdown-config', pathParamMap, liveAutoShutdownConfigurationUpdateRequest).then((response) => {
13623
+ return (0, Mapper_1.map)(response, LiveAutoShutdownConfigurationUpdateResponse_1.default);
13624
+ });
13625
+ }
13626
+ }
13627
+ exports["default"] = UpdateAutoshutdownConfigApi;
13628
+
13629
+
13585
13630
  /***/ },
13586
13631
 
13587
13632
  /***/ "./encoding/encodings/muxings/MuxingListQueryParams.ts"
@@ -49468,6 +49513,7 @@ class AiSceneAnalysisLiveResult {
49468
49513
  this.encodingId = (0, Mapper_1.map)(obj.encodingId);
49469
49514
  this.sequence = (0, Mapper_1.map)(obj.sequence);
49470
49515
  this.producedAt = (0, Mapper_1.map)(obj.producedAt, Date);
49516
+ this.mediaTimeOriginUnixMs = (0, Mapper_1.map)(obj.mediaTimeOriginUnixMs);
49471
49517
  this.isFinal = (0, Mapper_1.map)(obj.isFinal);
49472
49518
  this.analyzedStartTimeSeconds = (0, Mapper_1.map)(obj.analyzedStartTimeSeconds);
49473
49519
  this.analyzedEndTimeSeconds = (0, Mapper_1.map)(obj.analyzedEndTimeSeconds);
@@ -53204,6 +53250,33 @@ exports.AutomaticAdPlacementPosition = AutomaticAdPlacementPosition;
53204
53250
  exports["default"] = AutomaticAdPlacementPosition;
53205
53251
 
53206
53252
 
53253
+ /***/ },
53254
+
53255
+ /***/ "./models/Av1DynamicRangeFormat.ts"
53256
+ /*!*****************************************!*\
53257
+ !*** ./models/Av1DynamicRangeFormat.ts ***!
53258
+ \*****************************************/
53259
+ (__unused_webpack_module, exports) {
53260
+
53261
+ "use strict";
53262
+
53263
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
53264
+ exports.Av1DynamicRangeFormat = void 0;
53265
+ /**
53266
+ * Configures what kind of dynamic range the output should conform to. Can be used to convert between different HDR formats.
53267
+ * @export
53268
+ * @enum {string}
53269
+ */
53270
+ var Av1DynamicRangeFormat;
53271
+ (function (Av1DynamicRangeFormat) {
53272
+ Av1DynamicRangeFormat["DOLBY_VISION_PROFILE_10_0"] = "DOLBY_VISION_PROFILE_10_0";
53273
+ Av1DynamicRangeFormat["DOLBY_VISION_PROFILE_10_1"] = "DOLBY_VISION_PROFILE_10_1";
53274
+ Av1DynamicRangeFormat["HDR10"] = "HDR10";
53275
+ Av1DynamicRangeFormat["SDR"] = "SDR";
53276
+ })(Av1DynamicRangeFormat || (exports.Av1DynamicRangeFormat = Av1DynamicRangeFormat = {}));
53277
+ exports["default"] = Av1DynamicRangeFormat;
53278
+
53279
+
53207
53280
  /***/ },
53208
53281
 
53209
53282
  /***/ "./models/Av1PerTitleConfiguration.ts"
@@ -53293,6 +53366,8 @@ class Av1VideoConfiguration extends VideoConfiguration_1.default {
53293
53366
  }
53294
53367
  this.presetConfiguration = (0, Mapper_1.map)(obj.presetConfiguration);
53295
53368
  this.autoLevelSetup = (0, Mapper_1.map)(obj.autoLevelSetup);
53369
+ this.maxLevel = (0, Mapper_1.map)(obj.maxLevel);
53370
+ this.dynamicRangeFormat = (0, Mapper_1.map)(obj.dynamicRangeFormat);
53296
53371
  this.masterDisplay = (0, Mapper_1.map)(obj.masterDisplay);
53297
53372
  this.maxContentLightLevel = (0, Mapper_1.map)(obj.maxContentLightLevel);
53298
53373
  this.maxPictureAverageLightLevel = (0, Mapper_1.map)(obj.maxPictureAverageLightLevel);
@@ -65488,6 +65563,43 @@ exports.Label = Label;
65488
65563
  exports["default"] = Label;
65489
65564
 
65490
65565
 
65566
+ /***/ },
65567
+
65568
+ /***/ "./models/LevelAv1.ts"
65569
+ /*!****************************!*\
65570
+ !*** ./models/LevelAv1.ts ***!
65571
+ \****************************/
65572
+ (__unused_webpack_module, exports) {
65573
+
65574
+ "use strict";
65575
+
65576
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
65577
+ exports.LevelAv1 = void 0;
65578
+ /**
65579
+ * Specified set of constraints that indicate a degree of required decoder performance for a profile, see: https://aomediacodec.github.io/av1-spec/av1-spec.pdf (Annex A.3)
65580
+ * @export
65581
+ * @enum {string}
65582
+ */
65583
+ var LevelAv1;
65584
+ (function (LevelAv1) {
65585
+ LevelAv1["L2_0"] = "2.0";
65586
+ LevelAv1["L2_1"] = "2.1";
65587
+ LevelAv1["L3_0"] = "3.0";
65588
+ LevelAv1["L3_1"] = "3.1";
65589
+ LevelAv1["L4_0"] = "4.0";
65590
+ LevelAv1["L4_1"] = "4.1";
65591
+ LevelAv1["L5_0"] = "5.0";
65592
+ LevelAv1["L5_1"] = "5.1";
65593
+ LevelAv1["L5_2"] = "5.2";
65594
+ LevelAv1["L5_3"] = "5.3";
65595
+ LevelAv1["L6_0"] = "6.0";
65596
+ LevelAv1["L6_1"] = "6.1";
65597
+ LevelAv1["L6_2"] = "6.2";
65598
+ LevelAv1["L6_3"] = "6.3";
65599
+ })(LevelAv1 || (exports.LevelAv1 = LevelAv1 = {}));
65600
+ exports["default"] = LevelAv1;
65601
+
65602
+
65491
65603
  /***/ },
65492
65604
 
65493
65605
  /***/ "./models/LevelH262.ts"
@@ -65704,6 +65816,68 @@ exports.LiveAutoShutdownConfiguration = LiveAutoShutdownConfiguration;
65704
65816
  exports["default"] = LiveAutoShutdownConfiguration;
65705
65817
 
65706
65818
 
65819
+ /***/ },
65820
+
65821
+ /***/ "./models/LiveAutoShutdownConfigurationUpdateRequest.ts"
65822
+ /*!**************************************************************!*\
65823
+ !*** ./models/LiveAutoShutdownConfigurationUpdateRequest.ts ***!
65824
+ \**************************************************************/
65825
+ (__unused_webpack_module, exports, __webpack_require__) {
65826
+
65827
+ "use strict";
65828
+
65829
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
65830
+ exports.LiveAutoShutdownConfigurationUpdateRequest = void 0;
65831
+ const LiveAutoShutdownConfiguration_1 = __webpack_require__(/*! ./LiveAutoShutdownConfiguration */ "./models/LiveAutoShutdownConfiguration.ts");
65832
+ /**
65833
+ * The auto shutdown configuration to set on a running Live Encoding. Any auto shutdown configuration the encoding currently has is overwritten. Every timer that is omitted or `null` is disarmed. An empty object disarms all timers, so always send the complete configuration the encoding should run with, including the values that should stay unchanged.
65834
+ * @export
65835
+ * @class LiveAutoShutdownConfigurationUpdateRequest
65836
+ */
65837
+ class LiveAutoShutdownConfigurationUpdateRequest extends LiveAutoShutdownConfiguration_1.default {
65838
+ constructor(obj) {
65839
+ super(obj);
65840
+ if (!obj) {
65841
+ return;
65842
+ }
65843
+ }
65844
+ }
65845
+ exports.LiveAutoShutdownConfigurationUpdateRequest = LiveAutoShutdownConfigurationUpdateRequest;
65846
+ exports["default"] = LiveAutoShutdownConfigurationUpdateRequest;
65847
+
65848
+
65849
+ /***/ },
65850
+
65851
+ /***/ "./models/LiveAutoShutdownConfigurationUpdateResponse.ts"
65852
+ /*!***************************************************************!*\
65853
+ !*** ./models/LiveAutoShutdownConfigurationUpdateResponse.ts ***!
65854
+ \***************************************************************/
65855
+ (__unused_webpack_module, exports, __webpack_require__) {
65856
+
65857
+ "use strict";
65858
+
65859
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
65860
+ exports.LiveAutoShutdownConfigurationUpdateResponse = void 0;
65861
+ const Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
65862
+ const LiveAutoShutdownConfiguration_1 = __webpack_require__(/*! ./LiveAutoShutdownConfiguration */ "./models/LiveAutoShutdownConfiguration.ts");
65863
+ /**
65864
+ * The auto shutdown configuration that was accepted and applied to the running Live Encoding, together with the instant the encoder armed the shutdown for. `streamTimeoutMinutes` was applied from the moment the encoder accepted the update, not from the start of the encoding, so `scheduledShutdownAt` rather than the timeout value is what says when this encoding stops.
65865
+ * @export
65866
+ * @class LiveAutoShutdownConfigurationUpdateResponse
65867
+ */
65868
+ class LiveAutoShutdownConfigurationUpdateResponse extends LiveAutoShutdownConfiguration_1.default {
65869
+ constructor(obj) {
65870
+ super(obj);
65871
+ if (!obj) {
65872
+ return;
65873
+ }
65874
+ this.scheduledShutdownAt = (0, Mapper_1.map)(obj.scheduledShutdownAt, Date);
65875
+ }
65876
+ }
65877
+ exports.LiveAutoShutdownConfigurationUpdateResponse = LiveAutoShutdownConfigurationUpdateResponse;
65878
+ exports["default"] = LiveAutoShutdownConfigurationUpdateResponse;
65879
+
65880
+
65707
65881
  /***/ },
65708
65882
 
65709
65883
  /***/ "./models/LiveDashManifest.ts"
@@ -75818,6 +75992,7 @@ class StreamMetadata {
75818
75992
  }
75819
75993
  this.language = (0, Mapper_1.map)(obj.language);
75820
75994
  this.label = (0, Mapper_1.map)(obj.label);
75995
+ this.labelLanguage = (0, Mapper_1.map)(obj.labelLanguage);
75821
75996
  this.switchingSetId = (0, Mapper_1.map)(obj.switchingSetId);
75822
75997
  }
75823
75998
  }
@@ -79588,6 +79763,7 @@ __exportStar(__webpack_require__(/*! ./AutoLevelSetup */ "./models/AutoLevelSetu
79588
79763
  __exportStar(__webpack_require__(/*! ./AutoRepresentation */ "./models/AutoRepresentation.ts"), exports);
79589
79764
  __exportStar(__webpack_require__(/*! ./AutoRestartConfiguration */ "./models/AutoRestartConfiguration.ts"), exports);
79590
79765
  __exportStar(__webpack_require__(/*! ./AutomaticAdPlacementPosition */ "./models/AutomaticAdPlacementPosition.ts"), exports);
79766
+ __exportStar(__webpack_require__(/*! ./Av1DynamicRangeFormat */ "./models/Av1DynamicRangeFormat.ts"), exports);
79591
79767
  __exportStar(__webpack_require__(/*! ./Av1PerTitleConfiguration */ "./models/Av1PerTitleConfiguration.ts"), exports);
79592
79768
  __exportStar(__webpack_require__(/*! ./Av1PresetConfiguration */ "./models/Av1PresetConfiguration.ts"), exports);
79593
79769
  __exportStar(__webpack_require__(/*! ./Av1VideoConfiguration */ "./models/Av1VideoConfiguration.ts"), exports);
@@ -79947,6 +80123,7 @@ __exportStar(__webpack_require__(/*! ./IvSize */ "./models/IvSize.ts"), exports)
79947
80123
  __exportStar(__webpack_require__(/*! ./KantarWatermark */ "./models/KantarWatermark.ts"), exports);
79948
80124
  __exportStar(__webpack_require__(/*! ./Keyframe */ "./models/Keyframe.ts"), exports);
79949
80125
  __exportStar(__webpack_require__(/*! ./Label */ "./models/Label.ts"), exports);
80126
+ __exportStar(__webpack_require__(/*! ./LevelAv1 */ "./models/LevelAv1.ts"), exports);
79950
80127
  __exportStar(__webpack_require__(/*! ./LevelH262 */ "./models/LevelH262.ts"), exports);
79951
80128
  __exportStar(__webpack_require__(/*! ./LevelH264 */ "./models/LevelH264.ts"), exports);
79952
80129
  __exportStar(__webpack_require__(/*! ./LevelH265 */ "./models/LevelH265.ts"), exports);
@@ -79954,6 +80131,8 @@ __exportStar(__webpack_require__(/*! ./LimitReferences */ "./models/LimitReferen
79954
80131
  __exportStar(__webpack_require__(/*! ./LimitTransformUnitDepthRecursionMode */ "./models/LimitTransformUnitDepthRecursionMode.ts"), exports);
79955
80132
  __exportStar(__webpack_require__(/*! ./Link */ "./models/Link.ts"), exports);
79956
80133
  __exportStar(__webpack_require__(/*! ./LiveAutoShutdownConfiguration */ "./models/LiveAutoShutdownConfiguration.ts"), exports);
80134
+ __exportStar(__webpack_require__(/*! ./LiveAutoShutdownConfigurationUpdateRequest */ "./models/LiveAutoShutdownConfigurationUpdateRequest.ts"), exports);
80135
+ __exportStar(__webpack_require__(/*! ./LiveAutoShutdownConfigurationUpdateResponse */ "./models/LiveAutoShutdownConfigurationUpdateResponse.ts"), exports);
79957
80136
  __exportStar(__webpack_require__(/*! ./LiveDashManifest */ "./models/LiveDashManifest.ts"), exports);
79958
80137
  __exportStar(__webpack_require__(/*! ./LiveEncoding */ "./models/LiveEncoding.ts"), exports);
79959
80138
  __exportStar(__webpack_require__(/*! ./LiveEncodingCodec */ "./models/LiveEncodingCodec.ts"), exports);