@bitmovin/api-sdk 1.167.0 → 1.169.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 (37) hide show
  1. package/README.md +1 -1
  2. package/dist/bitmovin-api-sdk.browser.js +500 -41
  3. package/dist/bitmovin-api-sdk.browser.min.js +1 -1
  4. package/dist/common/RestClient.js +1 -1
  5. package/dist/encoding/encodings/live/LiveApi.d.ts +2 -0
  6. package/dist/encoding/encodings/live/LiveApi.js +2 -0
  7. package/dist/encoding/encodings/live/hd/HdApi.d.ts +28 -0
  8. package/dist/encoding/encodings/live/hd/HdApi.js +64 -0
  9. package/dist/encoding/statistics/encodings/live/LiveApi.d.ts +2 -0
  10. package/dist/encoding/statistics/encodings/live/LiveApi.js +2 -0
  11. package/dist/encoding/statistics/encodings/live/options/LiveOptionsStatisticsListByDateRangeQueryParams.d.ts +50 -0
  12. package/dist/encoding/statistics/encodings/live/options/LiveOptionsStatisticsListByDateRangeQueryParams.js +45 -0
  13. package/dist/encoding/statistics/encodings/live/options/OptionsApi.d.ts +28 -0
  14. package/dist/encoding/statistics/encodings/live/options/OptionsApi.js +68 -0
  15. package/dist/models/AdAnalyticsAttribute.d.ts +1 -0
  16. package/dist/models/AdAnalyticsAttribute.js +1 -0
  17. package/dist/models/AnalyticsAdsImpressionSample.d.ts +6 -0
  18. package/dist/models/AnalyticsAdsImpressionSample.js +1 -0
  19. package/dist/models/AnalyticsAttribute.d.ts +1 -0
  20. package/dist/models/AnalyticsAttribute.js +1 -0
  21. package/dist/models/AnalyticsImpressionSample.d.ts +6 -0
  22. package/dist/models/AnalyticsImpressionSample.js +1 -0
  23. package/dist/models/LiveEncodingOptionsStatistics.d.ts +26 -0
  24. package/dist/models/LiveEncodingOptionsStatistics.js +21 -0
  25. package/dist/models/LiveOptionsBreakdownEntry.d.ts +20 -0
  26. package/dist/models/LiveOptionsBreakdownEntry.js +21 -0
  27. package/dist/models/LiveOptionsEntry.d.ts +14 -0
  28. package/dist/models/LiveOptionsEntry.js +19 -0
  29. package/dist/models/LiveOptionsStatistics.d.ts +21 -0
  30. package/dist/models/LiveOptionsStatistics.js +22 -0
  31. package/dist/models/LiveOptionsSummary.d.ts +14 -0
  32. package/dist/models/LiveOptionsSummary.js +20 -0
  33. package/dist/models/StartLiveChannelEncodingRequest.d.ts +9 -0
  34. package/dist/models/StartLiveChannelEncodingRequest.js +36 -0
  35. package/dist/models/index.d.ts +6 -0
  36. package/dist/models/index.js +6 -0
  37. package/package.json +1 -1
@@ -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.167.0',
5990
+ 'X-Api-Client-Version': '1.169.0',
5991
5991
  'Content-Type': 'application/json'
5992
5992
  };
5993
5993
  if (tenantOrgId) {
@@ -15667,6 +15667,7 @@ var __extends = (this && this.__extends) || (function () {
15667
15667
  Object.defineProperty(exports, "__esModule", ({ value: true }));
15668
15668
  var BaseAPI_1 = __webpack_require__(/*! ../../../common/BaseAPI */ "./common/BaseAPI.ts");
15669
15669
  var Mapper_1 = __webpack_require__(/*! ../../../common/Mapper */ "./common/Mapper.ts");
15670
+ var HdApi_1 = __webpack_require__(/*! ./hd/HdApi */ "./encoding/encodings/live/hd/HdApi.ts");
15670
15671
  var InsertableContentApi_1 = __webpack_require__(/*! ./insertableContent/InsertableContentApi */ "./encoding/encodings/live/insertableContent/InsertableContentApi.ts");
15671
15672
  var Scte35CueApi_1 = __webpack_require__(/*! ./scte35Cue/Scte35CueApi */ "./encoding/encodings/live/scte35Cue/Scte35CueApi.ts");
15672
15673
  var BitmovinResponse_1 = __webpack_require__(/*! ../../../models/BitmovinResponse */ "./models/BitmovinResponse.ts");
@@ -15682,6 +15683,7 @@ var LiveApi = /** @class */ (function (_super) {
15682
15683
  __extends(LiveApi, _super);
15683
15684
  function LiveApi(configuration) {
15684
15685
  var _this = _super.call(this, configuration) || this;
15686
+ _this.hd = new HdApi_1.default(configuration);
15685
15687
  _this.insertableContent = new InsertableContentApi_1.default(configuration);
15686
15688
  _this.scte35Cue = new Scte35CueApi_1.default(configuration);
15687
15689
  return _this;
@@ -15762,6 +15764,81 @@ var LiveApi = /** @class */ (function (_super) {
15762
15764
  exports["default"] = LiveApi;
15763
15765
 
15764
15766
 
15767
+ /***/ }),
15768
+
15769
+ /***/ "./encoding/encodings/live/hd/HdApi.ts":
15770
+ /*!*********************************************!*\
15771
+ !*** ./encoding/encodings/live/hd/HdApi.ts ***!
15772
+ \*********************************************/
15773
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
15774
+
15775
+ "use strict";
15776
+
15777
+ var __extends = (this && this.__extends) || (function () {
15778
+ var extendStatics = function (d, b) {
15779
+ extendStatics = Object.setPrototypeOf ||
15780
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15781
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
15782
+ return extendStatics(d, b);
15783
+ };
15784
+ return function (d, b) {
15785
+ if (typeof b !== "function" && b !== null)
15786
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15787
+ extendStatics(d, b);
15788
+ function __() { this.constructor = d; }
15789
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15790
+ };
15791
+ })();
15792
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
15793
+ var BaseAPI_1 = __webpack_require__(/*! ../../../../common/BaseAPI */ "./common/BaseAPI.ts");
15794
+ var Mapper_1 = __webpack_require__(/*! ../../../../common/Mapper */ "./common/Mapper.ts");
15795
+ var BitmovinResponse_1 = __webpack_require__(/*! ../../../../models/BitmovinResponse */ "./models/BitmovinResponse.ts");
15796
+ var StartLiveChannelEncodingRequest_1 = __webpack_require__(/*! ../../../../models/StartLiveChannelEncodingRequest */ "./models/StartLiveChannelEncodingRequest.ts");
15797
+ /**
15798
+ * HdApi - object-oriented interface
15799
+ * @export
15800
+ * @class HdApi
15801
+ * @extends {BaseAPI}
15802
+ */
15803
+ var HdApi = /** @class */ (function (_super) {
15804
+ __extends(HdApi, _super);
15805
+ function HdApi(configuration) {
15806
+ return _super.call(this, configuration) || this;
15807
+ }
15808
+ /**
15809
+ * @summary Live Encoding Start Details
15810
+ * @param {string} encodingId Id of the encoding
15811
+ * @throws {BitmovinError}
15812
+ * @memberof HdApi
15813
+ */
15814
+ HdApi.prototype.getStartRequest = function (encodingId) {
15815
+ var pathParamMap = {
15816
+ encoding_id: encodingId
15817
+ };
15818
+ return this.restClient.get('/encoding/encodings/{encoding_id}/live/hd/start', pathParamMap).then(function (response) {
15819
+ return (0, Mapper_1.map)(response, StartLiveChannelEncodingRequest_1.default);
15820
+ });
15821
+ };
15822
+ /**
15823
+ * @summary Start Live Encoding
15824
+ * @param {string} encodingId Id of the encoding
15825
+ * @param {StartLiveChannelEncodingRequest} startLiveChannelEncodingRequest Live Encoding startup options
15826
+ * @throws {BitmovinError}
15827
+ * @memberof HdApi
15828
+ */
15829
+ HdApi.prototype.start = function (encodingId, startLiveChannelEncodingRequest) {
15830
+ var pathParamMap = {
15831
+ encoding_id: encodingId
15832
+ };
15833
+ return this.restClient.post('/encoding/encodings/{encoding_id}/live/hd/start', pathParamMap, startLiveChannelEncodingRequest).then(function (response) {
15834
+ return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
15835
+ });
15836
+ };
15837
+ return HdApi;
15838
+ }(BaseAPI_1.BaseAPI));
15839
+ exports["default"] = HdApi;
15840
+
15841
+
15765
15842
  /***/ }),
15766
15843
 
15767
15844
  /***/ "./encoding/encodings/live/insertableContent/InsertableContentApi.ts":
@@ -51223,6 +51300,7 @@ var __extends = (this && this.__extends) || (function () {
51223
51300
  Object.defineProperty(exports, "__esModule", ({ value: true }));
51224
51301
  var BaseAPI_1 = __webpack_require__(/*! ../../../../common/BaseAPI */ "./common/BaseAPI.ts");
51225
51302
  var DailyApi_1 = __webpack_require__(/*! ./daily/DailyApi */ "./encoding/statistics/encodings/live/daily/DailyApi.ts");
51303
+ var OptionsApi_1 = __webpack_require__(/*! ./options/OptionsApi */ "./encoding/statistics/encodings/live/options/OptionsApi.ts");
51226
51304
  var EncodingStatisticsLive_1 = __webpack_require__(/*! ../../../../models/EncodingStatisticsLive */ "./models/EncodingStatisticsLive.ts");
51227
51305
  var PaginationResponse_1 = __webpack_require__(/*! ../../../../models/PaginationResponse */ "./models/PaginationResponse.ts");
51228
51306
  var EncodingStatisticsLiveListQueryParams_1 = __webpack_require__(/*! ./EncodingStatisticsLiveListQueryParams */ "./encoding/statistics/encodings/live/EncodingStatisticsLiveListQueryParams.ts");
@@ -51238,6 +51316,7 @@ var LiveApi = /** @class */ (function (_super) {
51238
51316
  function LiveApi(configuration) {
51239
51317
  var _this = _super.call(this, configuration) || this;
51240
51318
  _this.daily = new DailyApi_1.default(configuration);
51319
+ _this.options = new OptionsApi_1.default(configuration);
51241
51320
  return _this;
51242
51321
  }
51243
51322
  /**
@@ -51348,6 +51427,141 @@ var DailyApi = /** @class */ (function (_super) {
51348
51427
  exports["default"] = DailyApi;
51349
51428
 
51350
51429
 
51430
+ /***/ }),
51431
+
51432
+ /***/ "./encoding/statistics/encodings/live/options/LiveOptionsStatisticsListByDateRangeQueryParams.ts":
51433
+ /*!*******************************************************************************************************!*\
51434
+ !*** ./encoding/statistics/encodings/live/options/LiveOptionsStatisticsListByDateRangeQueryParams.ts ***!
51435
+ \*******************************************************************************************************/
51436
+ /***/ ((__unused_webpack_module, exports) => {
51437
+
51438
+ "use strict";
51439
+
51440
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
51441
+ exports.LiveOptionsStatisticsListByDateRangeQueryParamsBuilder = void 0;
51442
+ var LiveOptionsStatisticsListByDateRangeQueryParamsBuilder = /** @class */ (function () {
51443
+ function LiveOptionsStatisticsListByDateRangeQueryParamsBuilder() {
51444
+ this.internalParams = {};
51445
+ }
51446
+ /**
51447
+ *
51448
+ * @param from Start date, format: yyyy-MM-dd
51449
+ */
51450
+ LiveOptionsStatisticsListByDateRangeQueryParamsBuilder.prototype.from = function (from) {
51451
+ this.internalParams.from = from;
51452
+ return this;
51453
+ };
51454
+ /**
51455
+ *
51456
+ * @param to End date, format: yyyy-MM-dd
51457
+ */
51458
+ LiveOptionsStatisticsListByDateRangeQueryParamsBuilder.prototype.to = function (to) {
51459
+ this.internalParams.to = to;
51460
+ return this;
51461
+ };
51462
+ /**
51463
+ *
51464
+ * @param offset Index of the first item to return, starting at 0. Default is 0
51465
+ */
51466
+ LiveOptionsStatisticsListByDateRangeQueryParamsBuilder.prototype.offset = function (offset) {
51467
+ this.internalParams.offset = offset;
51468
+ return this;
51469
+ };
51470
+ /**
51471
+ *
51472
+ * @param limit Maximum number of items to return. Default is 25, maximum is 100
51473
+ */
51474
+ LiveOptionsStatisticsListByDateRangeQueryParamsBuilder.prototype.limit = function (limit) {
51475
+ this.internalParams.limit = limit;
51476
+ return this;
51477
+ };
51478
+ LiveOptionsStatisticsListByDateRangeQueryParamsBuilder.prototype.buildQueryParams = function () {
51479
+ return this.internalParams;
51480
+ };
51481
+ return LiveOptionsStatisticsListByDateRangeQueryParamsBuilder;
51482
+ }());
51483
+ exports.LiveOptionsStatisticsListByDateRangeQueryParamsBuilder = LiveOptionsStatisticsListByDateRangeQueryParamsBuilder;
51484
+
51485
+
51486
+ /***/ }),
51487
+
51488
+ /***/ "./encoding/statistics/encodings/live/options/OptionsApi.ts":
51489
+ /*!******************************************************************!*\
51490
+ !*** ./encoding/statistics/encodings/live/options/OptionsApi.ts ***!
51491
+ \******************************************************************/
51492
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
51493
+
51494
+ "use strict";
51495
+
51496
+ var __extends = (this && this.__extends) || (function () {
51497
+ var extendStatics = function (d, b) {
51498
+ extendStatics = Object.setPrototypeOf ||
51499
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
51500
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
51501
+ return extendStatics(d, b);
51502
+ };
51503
+ return function (d, b) {
51504
+ if (typeof b !== "function" && b !== null)
51505
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
51506
+ extendStatics(d, b);
51507
+ function __() { this.constructor = d; }
51508
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
51509
+ };
51510
+ })();
51511
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
51512
+ var BaseAPI_1 = __webpack_require__(/*! ../../../../../common/BaseAPI */ "./common/BaseAPI.ts");
51513
+ var Mapper_1 = __webpack_require__(/*! ../../../../../common/Mapper */ "./common/Mapper.ts");
51514
+ var LiveEncodingOptionsStatistics_1 = __webpack_require__(/*! ../../../../../models/LiveEncodingOptionsStatistics */ "./models/LiveEncodingOptionsStatistics.ts");
51515
+ var LiveOptionsStatistics_1 = __webpack_require__(/*! ../../../../../models/LiveOptionsStatistics */ "./models/LiveOptionsStatistics.ts");
51516
+ var LiveOptionsStatisticsListByDateRangeQueryParams_1 = __webpack_require__(/*! ./LiveOptionsStatisticsListByDateRangeQueryParams */ "./encoding/statistics/encodings/live/options/LiveOptionsStatisticsListByDateRangeQueryParams.ts");
51517
+ /**
51518
+ * OptionsApi - object-oriented interface
51519
+ * @export
51520
+ * @class OptionsApi
51521
+ * @extends {BaseAPI}
51522
+ */
51523
+ var OptionsApi = /** @class */ (function (_super) {
51524
+ __extends(OptionsApi, _super);
51525
+ function OptionsApi(configuration) {
51526
+ return _super.call(this, configuration) || this;
51527
+ }
51528
+ /**
51529
+ * @summary List live options encoding statistics for a given encoding
51530
+ * @param {string} encodingId Id of the encoding
51531
+ * @throws {BitmovinError}
51532
+ * @memberof OptionsApi
51533
+ */
51534
+ OptionsApi.prototype.get = function (encodingId) {
51535
+ var pathParamMap = {
51536
+ encoding_id: encodingId
51537
+ };
51538
+ return this.restClient.get('/encoding/statistics/encodings/live/{encoding_id}/options', pathParamMap).then(function (response) {
51539
+ return (0, Mapper_1.map)(response, LiveEncodingOptionsStatistics_1.default);
51540
+ });
51541
+ };
51542
+ /**
51543
+ * @summary List live options encoding statistics within specific dates
51544
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
51545
+ * @throws {BitmovinError}
51546
+ * @memberof OptionsApi
51547
+ */
51548
+ OptionsApi.prototype.listByDateRange = function (queryParameters) {
51549
+ var queryParams = {};
51550
+ if (typeof queryParameters === 'function') {
51551
+ queryParams = queryParameters(new LiveOptionsStatisticsListByDateRangeQueryParams_1.LiveOptionsStatisticsListByDateRangeQueryParamsBuilder()).buildQueryParams();
51552
+ }
51553
+ else if (queryParameters) {
51554
+ queryParams = queryParameters;
51555
+ }
51556
+ return this.restClient.get('/encoding/statistics/encodings/live/options', {}, queryParams).then(function (response) {
51557
+ return (0, Mapper_1.map)(response, LiveOptionsStatistics_1.default);
51558
+ });
51559
+ };
51560
+ return OptionsApi;
51561
+ }(BaseAPI_1.BaseAPI));
51562
+ exports["default"] = OptionsApi;
51563
+
51564
+
51351
51565
  /***/ }),
51352
51566
 
51353
51567
  /***/ "./encoding/statistics/encodings/liveStatistics/LiveStatisticsApi.ts":
@@ -53451,6 +53665,7 @@ var AdAnalyticsAttribute;
53451
53665
  AdAnalyticsAttribute["SCALE_FACTOR"] = "SCALE_FACTOR";
53452
53666
  AdAnalyticsAttribute["SCREEN_HEIGHT"] = "SCREEN_HEIGHT";
53453
53667
  AdAnalyticsAttribute["SCREEN_WIDTH"] = "SCREEN_WIDTH";
53668
+ AdAnalyticsAttribute["SCREEN_ORIENTATION"] = "SCREEN_ORIENTATION";
53454
53669
  AdAnalyticsAttribute["SIZE"] = "SIZE";
53455
53670
  AdAnalyticsAttribute["SKIP_PERCENTAGE"] = "SKIP_PERCENTAGE";
53456
53671
  AdAnalyticsAttribute["SKIP_POSITION"] = "SKIP_POSITION";
@@ -55160,6 +55375,7 @@ var AnalyticsAdsImpressionSample = /** @class */ (function () {
55160
55375
  this.region = (0, Mapper_1.map)(obj.region);
55161
55376
  this.screenHeight = (0, Mapper_1.map)(obj.screenHeight);
55162
55377
  this.screenWidth = (0, Mapper_1.map)(obj.screenWidth);
55378
+ this.screenOrientation = (0, Mapper_1.map)(obj.screenOrientation);
55163
55379
  this.size = (0, Mapper_1.map)(obj.size);
55164
55380
  this.skipPercentage = (0, Mapper_1.map)(obj.skipPercentage);
55165
55381
  this.skipPosition = (0, Mapper_1.map)(obj.skipPosition);
@@ -55329,6 +55545,7 @@ var AnalyticsAttribute;
55329
55545
  AnalyticsAttribute["SCALE_FACTOR"] = "SCALE_FACTOR";
55330
55546
  AnalyticsAttribute["SCREEN_HEIGHT"] = "SCREEN_HEIGHT";
55331
55547
  AnalyticsAttribute["SCREEN_WIDTH"] = "SCREEN_WIDTH";
55548
+ AnalyticsAttribute["SCREEN_ORIENTATION"] = "SCREEN_ORIENTATION";
55332
55549
  AnalyticsAttribute["SEEKED"] = "SEEKED";
55333
55550
  AnalyticsAttribute["SEQUENCE_NUMBER"] = "SEQUENCE_NUMBER";
55334
55551
  AnalyticsAttribute["SIZE"] = "SIZE";
@@ -56443,6 +56660,7 @@ var AnalyticsImpressionSample = /** @class */ (function () {
56443
56660
  this.region = (0, Mapper_1.map)(obj.region);
56444
56661
  this.screenHeight = (0, Mapper_1.map)(obj.screenHeight);
56445
56662
  this.screenWidth = (0, Mapper_1.map)(obj.screenWidth);
56663
+ this.screenOrientation = (0, Mapper_1.map)(obj.screenOrientation);
56446
56664
  this.seeked = (0, Mapper_1.map)(obj.seeked);
56447
56665
  this.segmentDownloadCount = (0, Mapper_1.map)(obj.segmentDownloadCount);
56448
56666
  this.segmentDownloadSize = (0, Mapper_1.map)(obj.segmentDownloadSize);
@@ -72513,6 +72731,38 @@ var LiveEncodingEventName;
72513
72731
  exports["default"] = LiveEncodingEventName;
72514
72732
 
72515
72733
 
72734
+ /***/ }),
72735
+
72736
+ /***/ "./models/LiveEncodingOptionsStatistics.ts":
72737
+ /*!*************************************************!*\
72738
+ !*** ./models/LiveEncodingOptionsStatistics.ts ***!
72739
+ \*************************************************/
72740
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
72741
+
72742
+ "use strict";
72743
+
72744
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
72745
+ exports.LiveEncodingOptionsStatistics = void 0;
72746
+ var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
72747
+ /**
72748
+ * @export
72749
+ * @class LiveEncodingOptionsStatistics
72750
+ */
72751
+ var LiveEncodingOptionsStatistics = /** @class */ (function () {
72752
+ function LiveEncodingOptionsStatistics(obj) {
72753
+ if (!obj) {
72754
+ return;
72755
+ }
72756
+ this.encodingId = (0, Mapper_1.map)(obj.encodingId);
72757
+ this.unitsUsed = (0, Mapper_1.map)(obj.unitsUsed);
72758
+ this.type = (0, Mapper_1.map)(obj.type);
72759
+ }
72760
+ return LiveEncodingOptionsStatistics;
72761
+ }());
72762
+ exports.LiveEncodingOptionsStatistics = LiveEncodingOptionsStatistics;
72763
+ exports["default"] = LiveEncodingOptionsStatistics;
72764
+
72765
+
72516
72766
  /***/ }),
72517
72767
 
72518
72768
  /***/ "./models/LiveEncodingStats.ts":
@@ -72729,6 +72979,132 @@ exports.LiveMediaIngestOutput = LiveMediaIngestOutput;
72729
72979
  exports["default"] = LiveMediaIngestOutput;
72730
72980
 
72731
72981
 
72982
+ /***/ }),
72983
+
72984
+ /***/ "./models/LiveOptionsBreakdownEntry.ts":
72985
+ /*!*********************************************!*\
72986
+ !*** ./models/LiveOptionsBreakdownEntry.ts ***!
72987
+ \*********************************************/
72988
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
72989
+
72990
+ "use strict";
72991
+
72992
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
72993
+ exports.LiveOptionsBreakdownEntry = void 0;
72994
+ var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
72995
+ var LiveOptionsEntry_1 = __webpack_require__(/*! ./LiveOptionsEntry */ "./models/LiveOptionsEntry.ts");
72996
+ /**
72997
+ * @export
72998
+ * @class LiveOptionsBreakdownEntry
72999
+ */
73000
+ var LiveOptionsBreakdownEntry = /** @class */ (function () {
73001
+ function LiveOptionsBreakdownEntry(obj) {
73002
+ if (!obj) {
73003
+ return;
73004
+ }
73005
+ this.date = (0, Mapper_1.map)(obj.date, Date);
73006
+ this.hd = (0, Mapper_1.map)(obj.hd, LiveOptionsEntry_1.default);
73007
+ }
73008
+ return LiveOptionsBreakdownEntry;
73009
+ }());
73010
+ exports.LiveOptionsBreakdownEntry = LiveOptionsBreakdownEntry;
73011
+ exports["default"] = LiveOptionsBreakdownEntry;
73012
+
73013
+
73014
+ /***/ }),
73015
+
73016
+ /***/ "./models/LiveOptionsEntry.ts":
73017
+ /*!************************************!*\
73018
+ !*** ./models/LiveOptionsEntry.ts ***!
73019
+ \************************************/
73020
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
73021
+
73022
+ "use strict";
73023
+
73024
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
73025
+ exports.LiveOptionsEntry = void 0;
73026
+ var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
73027
+ /**
73028
+ * @export
73029
+ * @class LiveOptionsEntry
73030
+ */
73031
+ var LiveOptionsEntry = /** @class */ (function () {
73032
+ function LiveOptionsEntry(obj) {
73033
+ if (!obj) {
73034
+ return;
73035
+ }
73036
+ this.unitsUsed = (0, Mapper_1.map)(obj.unitsUsed);
73037
+ }
73038
+ return LiveOptionsEntry;
73039
+ }());
73040
+ exports.LiveOptionsEntry = LiveOptionsEntry;
73041
+ exports["default"] = LiveOptionsEntry;
73042
+
73043
+
73044
+ /***/ }),
73045
+
73046
+ /***/ "./models/LiveOptionsStatistics.ts":
73047
+ /*!*****************************************!*\
73048
+ !*** ./models/LiveOptionsStatistics.ts ***!
73049
+ \*****************************************/
73050
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
73051
+
73052
+ "use strict";
73053
+
73054
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
73055
+ exports.LiveOptionsStatistics = void 0;
73056
+ var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
73057
+ var LiveOptionsBreakdownEntry_1 = __webpack_require__(/*! ./LiveOptionsBreakdownEntry */ "./models/LiveOptionsBreakdownEntry.ts");
73058
+ var LiveOptionsSummary_1 = __webpack_require__(/*! ./LiveOptionsSummary */ "./models/LiveOptionsSummary.ts");
73059
+ /**
73060
+ * @export
73061
+ * @class LiveOptionsStatistics
73062
+ */
73063
+ var LiveOptionsStatistics = /** @class */ (function () {
73064
+ function LiveOptionsStatistics(obj) {
73065
+ if (!obj) {
73066
+ return;
73067
+ }
73068
+ this.summary = (0, Mapper_1.map)(obj.summary, LiveOptionsSummary_1.default);
73069
+ this.breakdown = (0, Mapper_1.mapArray)(obj.breakdown, LiveOptionsBreakdownEntry_1.default);
73070
+ }
73071
+ return LiveOptionsStatistics;
73072
+ }());
73073
+ exports.LiveOptionsStatistics = LiveOptionsStatistics;
73074
+ exports["default"] = LiveOptionsStatistics;
73075
+
73076
+
73077
+ /***/ }),
73078
+
73079
+ /***/ "./models/LiveOptionsSummary.ts":
73080
+ /*!**************************************!*\
73081
+ !*** ./models/LiveOptionsSummary.ts ***!
73082
+ \**************************************/
73083
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
73084
+
73085
+ "use strict";
73086
+
73087
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
73088
+ exports.LiveOptionsSummary = void 0;
73089
+ var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
73090
+ var LiveOptionsEntry_1 = __webpack_require__(/*! ./LiveOptionsEntry */ "./models/LiveOptionsEntry.ts");
73091
+ /**
73092
+ * @export
73093
+ * @class LiveOptionsSummary
73094
+ */
73095
+ var LiveOptionsSummary = /** @class */ (function () {
73096
+ function LiveOptionsSummary(obj) {
73097
+ if (!obj) {
73098
+ return;
73099
+ }
73100
+ this.hd = (0, Mapper_1.map)(obj.hd, LiveOptionsEntry_1.default);
73101
+ }
73102
+ return LiveOptionsSummary;
73103
+ }());
73104
+ exports.LiveOptionsSummary = LiveOptionsSummary;
73105
+ exports["default"] = LiveOptionsSummary;
73106
+
73107
+
72732
73108
  /***/ }),
72733
73109
 
72734
73110
  /***/ "./models/LiveOptionsType.ts":
@@ -80931,6 +81307,53 @@ exports.StartEncodingRequest = StartEncodingRequest;
80931
81307
  exports["default"] = StartEncodingRequest;
80932
81308
 
80933
81309
 
81310
+ /***/ }),
81311
+
81312
+ /***/ "./models/StartLiveChannelEncodingRequest.ts":
81313
+ /*!***************************************************!*\
81314
+ !*** ./models/StartLiveChannelEncodingRequest.ts ***!
81315
+ \***************************************************/
81316
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
81317
+
81318
+ "use strict";
81319
+
81320
+ var __extends = (this && this.__extends) || (function () {
81321
+ var extendStatics = function (d, b) {
81322
+ extendStatics = Object.setPrototypeOf ||
81323
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
81324
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
81325
+ return extendStatics(d, b);
81326
+ };
81327
+ return function (d, b) {
81328
+ if (typeof b !== "function" && b !== null)
81329
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
81330
+ extendStatics(d, b);
81331
+ function __() { this.constructor = d; }
81332
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
81333
+ };
81334
+ })();
81335
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
81336
+ exports.StartLiveChannelEncodingRequest = void 0;
81337
+ var StartLiveEncodingRequest_1 = __webpack_require__(/*! ./StartLiveEncodingRequest */ "./models/StartLiveEncodingRequest.ts");
81338
+ /**
81339
+ * @export
81340
+ * @class StartLiveChannelEncodingRequest
81341
+ */
81342
+ var StartLiveChannelEncodingRequest = /** @class */ (function (_super) {
81343
+ __extends(StartLiveChannelEncodingRequest, _super);
81344
+ function StartLiveChannelEncodingRequest(obj) {
81345
+ var _this = _super.call(this, obj) || this;
81346
+ if (!obj) {
81347
+ return _this;
81348
+ }
81349
+ return _this;
81350
+ }
81351
+ return StartLiveChannelEncodingRequest;
81352
+ }(StartLiveEncodingRequest_1.default));
81353
+ exports.StartLiveChannelEncodingRequest = StartLiveChannelEncodingRequest;
81354
+ exports["default"] = StartLiveChannelEncodingRequest;
81355
+
81356
+
80934
81357
  /***/ }),
80935
81358
 
80936
81359
  /***/ "./models/StartLiveEncodingRequest.ts":
@@ -86071,12 +86494,17 @@ __exportStar(__webpack_require__(/*! ./LiveDashManifest */ "./models/LiveDashMan
86071
86494
  __exportStar(__webpack_require__(/*! ./LiveEncoding */ "./models/LiveEncoding.ts"), exports);
86072
86495
  __exportStar(__webpack_require__(/*! ./LiveEncodingCodec */ "./models/LiveEncodingCodec.ts"), exports);
86073
86496
  __exportStar(__webpack_require__(/*! ./LiveEncodingEventName */ "./models/LiveEncodingEventName.ts"), exports);
86497
+ __exportStar(__webpack_require__(/*! ./LiveEncodingOptionsStatistics */ "./models/LiveEncodingOptionsStatistics.ts"), exports);
86074
86498
  __exportStar(__webpack_require__(/*! ./LiveEncodingStats */ "./models/LiveEncodingStats.ts"), exports);
86075
86499
  __exportStar(__webpack_require__(/*! ./LiveEncodingStatsEvent */ "./models/LiveEncodingStatsEvent.ts"), exports);
86076
86500
  __exportStar(__webpack_require__(/*! ./LiveEncodingStatsEventDetails */ "./models/LiveEncodingStatsEventDetails.ts"), exports);
86077
86501
  __exportStar(__webpack_require__(/*! ./LiveEncodingStatus */ "./models/LiveEncodingStatus.ts"), exports);
86078
86502
  __exportStar(__webpack_require__(/*! ./LiveHlsManifest */ "./models/LiveHlsManifest.ts"), exports);
86079
86503
  __exportStar(__webpack_require__(/*! ./LiveMediaIngestOutput */ "./models/LiveMediaIngestOutput.ts"), exports);
86504
+ __exportStar(__webpack_require__(/*! ./LiveOptionsBreakdownEntry */ "./models/LiveOptionsBreakdownEntry.ts"), exports);
86505
+ __exportStar(__webpack_require__(/*! ./LiveOptionsEntry */ "./models/LiveOptionsEntry.ts"), exports);
86506
+ __exportStar(__webpack_require__(/*! ./LiveOptionsStatistics */ "./models/LiveOptionsStatistics.ts"), exports);
86507
+ __exportStar(__webpack_require__(/*! ./LiveOptionsSummary */ "./models/LiveOptionsSummary.ts"), exports);
86080
86508
  __exportStar(__webpack_require__(/*! ./LiveOptionsType */ "./models/LiveOptionsType.ts"), exports);
86081
86509
  __exportStar(__webpack_require__(/*! ./LocalInput */ "./models/LocalInput.ts"), exports);
86082
86510
  __exportStar(__webpack_require__(/*! ./LocalOutput */ "./models/LocalOutput.ts"), exports);
@@ -86285,6 +86713,7 @@ __exportStar(__webpack_require__(/*! ./SrtStatisticWindow */ "./models/SrtStatis
86285
86713
  __exportStar(__webpack_require__(/*! ./SrtStatistics */ "./models/SrtStatistics.ts"), exports);
86286
86714
  __exportStar(__webpack_require__(/*! ./StandardMediaInfo */ "./models/StandardMediaInfo.ts"), exports);
86287
86715
  __exportStar(__webpack_require__(/*! ./StartEncodingRequest */ "./models/StartEncodingRequest.ts"), exports);
86716
+ __exportStar(__webpack_require__(/*! ./StartLiveChannelEncodingRequest */ "./models/StartLiveChannelEncodingRequest.ts"), exports);
86288
86717
  __exportStar(__webpack_require__(/*! ./StartLiveEncodingRequest */ "./models/StartLiveEncodingRequest.ts"), exports);
86289
86718
  __exportStar(__webpack_require__(/*! ./StartManifestRequest */ "./models/StartManifestRequest.ts"), exports);
86290
86719
  __exportStar(__webpack_require__(/*! ./StaticIp */ "./models/StaticIp.ts"), exports);
@@ -90587,17 +91016,20 @@ __webpack_require__.r(__webpack_exports__);
90587
91016
  /* harmony export */ Response: () => (/* binding */ Response),
90588
91017
  /* harmony export */ fetch: () => (/* binding */ fetch)
90589
91018
  /* harmony export */ });
90590
- var global =
91019
+ /* eslint-disable no-prototype-builtins */
91020
+ var g =
90591
91021
  (typeof globalThis !== 'undefined' && globalThis) ||
90592
91022
  (typeof self !== 'undefined' && self) ||
90593
- (typeof global !== 'undefined' && global)
91023
+ // eslint-disable-next-line no-undef
91024
+ (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g) ||
91025
+ {}
90594
91026
 
90595
91027
  var support = {
90596
- searchParams: 'URLSearchParams' in global,
90597
- iterable: 'Symbol' in global && 'iterator' in Symbol,
91028
+ searchParams: 'URLSearchParams' in g,
91029
+ iterable: 'Symbol' in g && 'iterator' in Symbol,
90598
91030
  blob:
90599
- 'FileReader' in global &&
90600
- 'Blob' in global &&
91031
+ 'FileReader' in g &&
91032
+ 'Blob' in g &&
90601
91033
  (function() {
90602
91034
  try {
90603
91035
  new Blob()
@@ -90606,8 +91038,8 @@ var support = {
90606
91038
  return false
90607
91039
  }
90608
91040
  })(),
90609
- formData: 'FormData' in global,
90610
- arrayBuffer: 'ArrayBuffer' in global
91041
+ formData: 'FormData' in g,
91042
+ arrayBuffer: 'ArrayBuffer' in g
90611
91043
  }
90612
91044
 
90613
91045
  function isDataView(obj) {
@@ -90678,6 +91110,9 @@ function Headers(headers) {
90678
91110
  }, this)
90679
91111
  } else if (Array.isArray(headers)) {
90680
91112
  headers.forEach(function(header) {
91113
+ if (header.length != 2) {
91114
+ throw new TypeError('Headers constructor: expected name/value pair to be length 2, found' + header.length)
91115
+ }
90681
91116
  this.append(header[0], header[1])
90682
91117
  }, this)
90683
91118
  } else if (headers) {
@@ -90748,6 +91183,7 @@ if (support.iterable) {
90748
91183
  }
90749
91184
 
90750
91185
  function consumed(body) {
91186
+ if (body._noBody) return
90751
91187
  if (body.bodyUsed) {
90752
91188
  return Promise.reject(new TypeError('Already read'))
90753
91189
  }
@@ -90775,7 +91211,9 @@ function readBlobAsArrayBuffer(blob) {
90775
91211
  function readBlobAsText(blob) {
90776
91212
  var reader = new FileReader()
90777
91213
  var promise = fileReaderReady(reader)
90778
- reader.readAsText(blob)
91214
+ var match = /charset=([A-Za-z0-9_-]+)/.exec(blob.type)
91215
+ var encoding = match ? match[1] : 'utf-8'
91216
+ reader.readAsText(blob, encoding)
90779
91217
  return promise
90780
91218
  }
90781
91219
 
@@ -90813,9 +91251,11 @@ function Body() {
90813
91251
  semantic of setting Request.bodyUsed in the constructor before
90814
91252
  _initBody is called.
90815
91253
  */
91254
+ // eslint-disable-next-line no-self-assign
90816
91255
  this.bodyUsed = this.bodyUsed
90817
91256
  this._bodyInit = body
90818
91257
  if (!body) {
91258
+ this._noBody = true;
90819
91259
  this._bodyText = ''
90820
91260
  } else if (typeof body === 'string') {
90821
91261
  this._bodyText = body
@@ -90863,26 +91303,27 @@ function Body() {
90863
91303
  return Promise.resolve(new Blob([this._bodyText]))
90864
91304
  }
90865
91305
  }
91306
+ }
90866
91307
 
90867
- this.arrayBuffer = function() {
90868
- if (this._bodyArrayBuffer) {
90869
- var isConsumed = consumed(this)
90870
- if (isConsumed) {
90871
- return isConsumed
90872
- }
90873
- if (ArrayBuffer.isView(this._bodyArrayBuffer)) {
90874
- return Promise.resolve(
90875
- this._bodyArrayBuffer.buffer.slice(
90876
- this._bodyArrayBuffer.byteOffset,
90877
- this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
90878
- )
91308
+ this.arrayBuffer = function() {
91309
+ if (this._bodyArrayBuffer) {
91310
+ var isConsumed = consumed(this)
91311
+ if (isConsumed) {
91312
+ return isConsumed
91313
+ } else if (ArrayBuffer.isView(this._bodyArrayBuffer)) {
91314
+ return Promise.resolve(
91315
+ this._bodyArrayBuffer.buffer.slice(
91316
+ this._bodyArrayBuffer.byteOffset,
91317
+ this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
90879
91318
  )
90880
- } else {
90881
- return Promise.resolve(this._bodyArrayBuffer)
90882
- }
91319
+ )
90883
91320
  } else {
90884
- return this.blob().then(readBlobAsArrayBuffer)
91321
+ return Promise.resolve(this._bodyArrayBuffer)
90885
91322
  }
91323
+ } else if (support.blob) {
91324
+ return this.blob().then(readBlobAsArrayBuffer)
91325
+ } else {
91326
+ throw new Error('could not read as ArrayBuffer')
90886
91327
  }
90887
91328
  }
90888
91329
 
@@ -90917,7 +91358,7 @@ function Body() {
90917
91358
  }
90918
91359
 
90919
91360
  // HTTP methods whose capitalization should be normalized
90920
- var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']
91361
+ var methods = ['CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', 'TRACE']
90921
91362
 
90922
91363
  function normalizeMethod(method) {
90923
91364
  var upcased = method.toUpperCase()
@@ -90958,7 +91399,12 @@ function Request(input, options) {
90958
91399
  }
90959
91400
  this.method = normalizeMethod(options.method || this.method || 'GET')
90960
91401
  this.mode = options.mode || this.mode || null
90961
- this.signal = options.signal || this.signal
91402
+ this.signal = options.signal || this.signal || (function () {
91403
+ if ('AbortController' in g) {
91404
+ var ctrl = new AbortController();
91405
+ return ctrl.signal;
91406
+ }
91407
+ }());
90962
91408
  this.referrer = null
90963
91409
 
90964
91410
  if ((this.method === 'GET' || this.method === 'HEAD') && body) {
@@ -91020,7 +91466,11 @@ function parseHeaders(rawHeaders) {
91020
91466
  var key = parts.shift().trim()
91021
91467
  if (key) {
91022
91468
  var value = parts.join(':').trim()
91023
- headers.append(key, value)
91469
+ try {
91470
+ headers.append(key, value)
91471
+ } catch (error) {
91472
+ console.warn('Response ' + error.message)
91473
+ }
91024
91474
  }
91025
91475
  })
91026
91476
  return headers
@@ -91038,6 +91488,9 @@ function Response(bodyInit, options) {
91038
91488
 
91039
91489
  this.type = 'default'
91040
91490
  this.status = options.status === undefined ? 200 : options.status
91491
+ if (this.status < 200 || this.status > 599) {
91492
+ throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].")
91493
+ }
91041
91494
  this.ok = this.status >= 200 && this.status < 300
91042
91495
  this.statusText = options.statusText === undefined ? '' : '' + options.statusText
91043
91496
  this.headers = new Headers(options.headers)
@@ -91057,7 +91510,8 @@ Response.prototype.clone = function() {
91057
91510
  }
91058
91511
 
91059
91512
  Response.error = function() {
91060
- var response = new Response(null, {status: 0, statusText: ''})
91513
+ var response = new Response(null, {status: 200, statusText: ''})
91514
+ response.status = 0
91061
91515
  response.type = 'error'
91062
91516
  return response
91063
91517
  }
@@ -91072,7 +91526,7 @@ Response.redirect = function(url, status) {
91072
91526
  return new Response(null, {status: status, headers: {location: url}})
91073
91527
  }
91074
91528
 
91075
- var DOMException = global.DOMException
91529
+ var DOMException = g.DOMException
91076
91530
  try {
91077
91531
  new DOMException()
91078
91532
  } catch (err) {
@@ -91133,7 +91587,7 @@ function fetch(input, init) {
91133
91587
 
91134
91588
  function fixUrl(url) {
91135
91589
  try {
91136
- return url === '' && global.location.href ? global.location.href : url
91590
+ return url === '' && g.location.href ? g.location.href : url
91137
91591
  } catch (e) {
91138
91592
  return url
91139
91593
  }
@@ -91151,18 +91605,23 @@ function fetch(input, init) {
91151
91605
  if (support.blob) {
91152
91606
  xhr.responseType = 'blob'
91153
91607
  } else if (
91154
- support.arrayBuffer &&
91155
- request.headers.get('Content-Type') &&
91156
- request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1
91608
+ support.arrayBuffer
91157
91609
  ) {
91158
91610
  xhr.responseType = 'arraybuffer'
91159
91611
  }
91160
91612
  }
91161
91613
 
91162
- if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {
91614
+ if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers || (g.Headers && init.headers instanceof g.Headers))) {
91615
+ var names = [];
91163
91616
  Object.getOwnPropertyNames(init.headers).forEach(function(name) {
91617
+ names.push(normalizeName(name))
91164
91618
  xhr.setRequestHeader(name, normalizeValue(init.headers[name]))
91165
91619
  })
91620
+ request.headers.forEach(function(value, name) {
91621
+ if (names.indexOf(name) === -1) {
91622
+ xhr.setRequestHeader(name, value)
91623
+ }
91624
+ })
91166
91625
  } else {
91167
91626
  request.headers.forEach(function(value, name) {
91168
91627
  xhr.setRequestHeader(name, value)
@@ -91186,11 +91645,11 @@ function fetch(input, init) {
91186
91645
 
91187
91646
  fetch.polyfill = true
91188
91647
 
91189
- if (!global.fetch) {
91190
- global.fetch = fetch
91191
- global.Headers = Headers
91192
- global.Request = Request
91193
- global.Response = Response
91648
+ if (!g.fetch) {
91649
+ g.fetch = fetch
91650
+ g.Headers = Headers
91651
+ g.Request = Request
91652
+ g.Response = Response
91194
91653
  }
91195
91654
 
91196
91655