@bitmovin/api-sdk 1.169.0 → 1.170.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.169.0
34
+ npm install @bitmovin/api-sdk@1.170.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.169.0',
5990
+ 'X-Api-Client-Version': '1.170.0',
5991
5991
  'Content-Type': 'application/json'
5992
5992
  };
5993
5993
  if (tenantOrgId) {
@@ -15820,7 +15820,7 @@ var HdApi = /** @class */ (function (_super) {
15820
15820
  });
15821
15821
  };
15822
15822
  /**
15823
- * @summary Start Live Encoding
15823
+ * @summary Start HD Options Live Encoding
15824
15824
  * @param {string} encodingId Id of the encoding
15825
15825
  * @param {StartLiveChannelEncodingRequest} startLiveChannelEncodingRequest Live Encoding startup options
15826
15826
  * @throws {BitmovinError}
@@ -55571,6 +55571,7 @@ var AnalyticsAttribute;
55571
55571
  AnalyticsAttribute["VIDEOTIME_START"] = "VIDEOTIME_START";
55572
55572
  AnalyticsAttribute["VIDEOSTART_FAILED"] = "VIDEOSTART_FAILED";
55573
55573
  AnalyticsAttribute["VIDEOSTART_FAILED_REASON"] = "VIDEOSTART_FAILED_REASON";
55574
+ AnalyticsAttribute["VIEWTIME"] = "VIEWTIME";
55574
55575
  })(AnalyticsAttribute = exports.AnalyticsAttribute || (exports.AnalyticsAttribute = {}));
55575
55576
  exports["default"] = AnalyticsAttribute;
55576
55577
 
@@ -82512,6 +82513,40 @@ exports.StreamsLiveUpdateRequest = StreamsLiveUpdateRequest;
82512
82513
  exports["default"] = StreamsLiveUpdateRequest;
82513
82514
 
82514
82515
 
82516
+ /***/ }),
82517
+
82518
+ /***/ "./models/StreamsSearchResponse.ts":
82519
+ /*!*****************************************!*\
82520
+ !*** ./models/StreamsSearchResponse.ts ***!
82521
+ \*****************************************/
82522
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
82523
+
82524
+ "use strict";
82525
+
82526
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
82527
+ exports.StreamsSearchResponse = void 0;
82528
+ var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
82529
+ /**
82530
+ * @export
82531
+ * @class StreamsSearchResponse
82532
+ */
82533
+ var StreamsSearchResponse = /** @class */ (function () {
82534
+ function StreamsSearchResponse(obj) {
82535
+ if (!obj) {
82536
+ return;
82537
+ }
82538
+ this.id = (0, Mapper_1.map)(obj.id);
82539
+ this.title = (0, Mapper_1.map)(obj.title);
82540
+ this.description = (0, Mapper_1.map)(obj.description);
82541
+ this.createdAt = (0, Mapper_1.map)(obj.createdAt, Date);
82542
+ this.type = (0, Mapper_1.map)(obj.type);
82543
+ }
82544
+ return StreamsSearchResponse;
82545
+ }());
82546
+ exports.StreamsSearchResponse = StreamsSearchResponse;
82547
+ exports["default"] = StreamsSearchResponse;
82548
+
82549
+
82515
82550
  /***/ }),
82516
82551
 
82517
82552
  /***/ "./models/StreamsStyleConfigPlayerStyle.ts":
@@ -82584,6 +82619,30 @@ exports.StreamsStyleConfigResponse = StreamsStyleConfigResponse;
82584
82619
  exports["default"] = StreamsStyleConfigResponse;
82585
82620
 
82586
82621
 
82622
+ /***/ }),
82623
+
82624
+ /***/ "./models/StreamsType.ts":
82625
+ /*!*******************************!*\
82626
+ !*** ./models/StreamsType.ts ***!
82627
+ \*******************************/
82628
+ /***/ ((__unused_webpack_module, exports) => {
82629
+
82630
+ "use strict";
82631
+
82632
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
82633
+ exports.StreamsType = void 0;
82634
+ /**
82635
+ * @export
82636
+ * @enum {string}
82637
+ */
82638
+ var StreamsType;
82639
+ (function (StreamsType) {
82640
+ StreamsType["VIDEO"] = "VIDEO";
82641
+ StreamsType["LIVE"] = "LIVE";
82642
+ })(StreamsType = exports.StreamsType || (exports.StreamsType = {}));
82643
+ exports["default"] = StreamsType;
82644
+
82645
+
82587
82646
  /***/ }),
82588
82647
 
82589
82648
  /***/ "./models/StreamsVideoCreateRequest.ts":
@@ -82695,6 +82754,7 @@ var StreamsVideoQuality;
82695
82754
  StreamsVideoQuality["NONE"] = "NONE";
82696
82755
  StreamsVideoQuality["PREVIEW"] = "PREVIEW";
82697
82756
  StreamsVideoQuality["DEFAULT"] = "DEFAULT";
82757
+ StreamsVideoQuality["TRIMMED"] = "TRIMMED";
82698
82758
  })(StreamsVideoQuality = exports.StreamsVideoQuality || (exports.StreamsVideoQuality = {}));
82699
82759
  exports["default"] = StreamsVideoQuality;
82700
82760
 
@@ -86746,8 +86806,10 @@ __exportStar(__webpack_require__(/*! ./StreamsLiveCreateRequest */ "./models/Str
86746
86806
  __exportStar(__webpack_require__(/*! ./StreamsLiveLifeCycle */ "./models/StreamsLiveLifeCycle.ts"), exports);
86747
86807
  __exportStar(__webpack_require__(/*! ./StreamsLiveResponse */ "./models/StreamsLiveResponse.ts"), exports);
86748
86808
  __exportStar(__webpack_require__(/*! ./StreamsLiveUpdateRequest */ "./models/StreamsLiveUpdateRequest.ts"), exports);
86809
+ __exportStar(__webpack_require__(/*! ./StreamsSearchResponse */ "./models/StreamsSearchResponse.ts"), exports);
86749
86810
  __exportStar(__webpack_require__(/*! ./StreamsStyleConfigPlayerStyle */ "./models/StreamsStyleConfigPlayerStyle.ts"), exports);
86750
86811
  __exportStar(__webpack_require__(/*! ./StreamsStyleConfigResponse */ "./models/StreamsStyleConfigResponse.ts"), exports);
86812
+ __exportStar(__webpack_require__(/*! ./StreamsType */ "./models/StreamsType.ts"), exports);
86751
86813
  __exportStar(__webpack_require__(/*! ./StreamsVideoCreateRequest */ "./models/StreamsVideoCreateRequest.ts"), exports);
86752
86814
  __exportStar(__webpack_require__(/*! ./StreamsVideoEncodingStatus */ "./models/StreamsVideoEncodingStatus.ts"), exports);
86753
86815
  __exportStar(__webpack_require__(/*! ./StreamsVideoEncodingTask */ "./models/StreamsVideoEncodingTask.ts"), exports);
@@ -90444,6 +90506,7 @@ var __extends = (this && this.__extends) || (function () {
90444
90506
  })();
90445
90507
  Object.defineProperty(exports, "__esModule", ({ value: true }));
90446
90508
  var BaseAPI_1 = __webpack_require__(/*! ../common/BaseAPI */ "./common/BaseAPI.ts");
90509
+ var SearchApi_1 = __webpack_require__(/*! ./search/SearchApi */ "./streams/search/SearchApi.ts");
90447
90510
  var VideoApi_1 = __webpack_require__(/*! ./video/VideoApi */ "./streams/video/VideoApi.ts");
90448
90511
  var LiveApi_1 = __webpack_require__(/*! ./live/LiveApi */ "./streams/live/LiveApi.ts");
90449
90512
  /**
@@ -90456,6 +90519,7 @@ var StreamsApi = /** @class */ (function (_super) {
90456
90519
  __extends(StreamsApi, _super);
90457
90520
  function StreamsApi(configuration) {
90458
90521
  var _this = _super.call(this, configuration) || this;
90522
+ _this.search = new SearchApi_1.default(configuration);
90459
90523
  _this.video = new VideoApi_1.default(configuration);
90460
90524
  _this.live = new LiveApi_1.default(configuration);
90461
90525
  return _this;
@@ -90754,6 +90818,118 @@ var StopApi = /** @class */ (function (_super) {
90754
90818
  exports["default"] = StopApi;
90755
90819
 
90756
90820
 
90821
+ /***/ }),
90822
+
90823
+ /***/ "./streams/search/SearchApi.ts":
90824
+ /*!*************************************!*\
90825
+ !*** ./streams/search/SearchApi.ts ***!
90826
+ \*************************************/
90827
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
90828
+
90829
+ "use strict";
90830
+
90831
+ var __extends = (this && this.__extends) || (function () {
90832
+ var extendStatics = function (d, b) {
90833
+ extendStatics = Object.setPrototypeOf ||
90834
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
90835
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
90836
+ return extendStatics(d, b);
90837
+ };
90838
+ return function (d, b) {
90839
+ if (typeof b !== "function" && b !== null)
90840
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
90841
+ extendStatics(d, b);
90842
+ function __() { this.constructor = d; }
90843
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
90844
+ };
90845
+ })();
90846
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
90847
+ var BaseAPI_1 = __webpack_require__(/*! ../../common/BaseAPI */ "./common/BaseAPI.ts");
90848
+ var StreamsSearchResponse_1 = __webpack_require__(/*! ../../models/StreamsSearchResponse */ "./models/StreamsSearchResponse.ts");
90849
+ var PaginationResponse_1 = __webpack_require__(/*! ../../models/PaginationResponse */ "./models/PaginationResponse.ts");
90850
+ var StreamsSearchResponseListQueryParams_1 = __webpack_require__(/*! ./StreamsSearchResponseListQueryParams */ "./streams/search/StreamsSearchResponseListQueryParams.ts");
90851
+ /**
90852
+ * SearchApi - object-oriented interface
90853
+ * @export
90854
+ * @class SearchApi
90855
+ * @extends {BaseAPI}
90856
+ */
90857
+ var SearchApi = /** @class */ (function (_super) {
90858
+ __extends(SearchApi, _super);
90859
+ function SearchApi(configuration) {
90860
+ return _super.call(this, configuration) || this;
90861
+ }
90862
+ /**
90863
+ * @summary Get paginated search results of VOD and Live streams
90864
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
90865
+ * @throws {BitmovinError}
90866
+ * @memberof SearchApi
90867
+ */
90868
+ SearchApi.prototype.list = function (queryParameters) {
90869
+ var queryParams = {};
90870
+ if (typeof queryParameters === 'function') {
90871
+ queryParams = queryParameters(new StreamsSearchResponseListQueryParams_1.StreamsSearchResponseListQueryParamsBuilder()).buildQueryParams();
90872
+ }
90873
+ else if (queryParameters) {
90874
+ queryParams = queryParameters;
90875
+ }
90876
+ return this.restClient.get('/streams/search', {}, queryParams).then(function (response) {
90877
+ return new PaginationResponse_1.default(response, StreamsSearchResponse_1.default);
90878
+ });
90879
+ };
90880
+ return SearchApi;
90881
+ }(BaseAPI_1.BaseAPI));
90882
+ exports["default"] = SearchApi;
90883
+
90884
+
90885
+ /***/ }),
90886
+
90887
+ /***/ "./streams/search/StreamsSearchResponseListQueryParams.ts":
90888
+ /*!****************************************************************!*\
90889
+ !*** ./streams/search/StreamsSearchResponseListQueryParams.ts ***!
90890
+ \****************************************************************/
90891
+ /***/ ((__unused_webpack_module, exports) => {
90892
+
90893
+ "use strict";
90894
+
90895
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
90896
+ exports.StreamsSearchResponseListQueryParamsBuilder = void 0;
90897
+ var StreamsSearchResponseListQueryParamsBuilder = /** @class */ (function () {
90898
+ function StreamsSearchResponseListQueryParamsBuilder() {
90899
+ this.internalParams = {};
90900
+ }
90901
+ /**
90902
+ *
90903
+ * @param offset Index of the first item to return, starting at 0. Default is 0
90904
+ */
90905
+ StreamsSearchResponseListQueryParamsBuilder.prototype.offset = function (offset) {
90906
+ this.internalParams.offset = offset;
90907
+ return this;
90908
+ };
90909
+ /**
90910
+ *
90911
+ * @param limit Maximum number of items to return. Default is 25, maximum is 100
90912
+ */
90913
+ StreamsSearchResponseListQueryParamsBuilder.prototype.limit = function (limit) {
90914
+ this.internalParams.limit = limit;
90915
+ return this;
90916
+ };
90917
+ /**
90918
+ *
90919
+ * @param query Query to search against
90920
+ */
90921
+ StreamsSearchResponseListQueryParamsBuilder.prototype.query = function (query) {
90922
+ this.internalParams.query = query;
90923
+ return this;
90924
+ };
90925
+ StreamsSearchResponseListQueryParamsBuilder.prototype.buildQueryParams = function () {
90926
+ return this.internalParams;
90927
+ };
90928
+ return StreamsSearchResponseListQueryParamsBuilder;
90929
+ }());
90930
+ exports.StreamsSearchResponseListQueryParamsBuilder = StreamsSearchResponseListQueryParamsBuilder;
90931
+
90932
+
90757
90933
  /***/ }),
90758
90934
 
90759
90935
  /***/ "./streams/video/StreamsVideoResponseListQueryParams.ts":