@bitmovin/api-sdk 1.153.0 → 1.154.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.153.0
34
+ npm install @bitmovin/api-sdk@1.154.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.153.0',
5990
+ 'X-Api-Client-Version': '1.154.0',
5991
5991
  'Content-Type': 'application/json'
5992
5992
  };
5993
5993
  if (tenantOrgId) {
@@ -81199,6 +81199,68 @@ var StreamSelectionMode;
81199
81199
  exports["default"] = StreamSelectionMode;
81200
81200
 
81201
81201
 
81202
+ /***/ }),
81203
+
81204
+ /***/ "./models/StreamsConfigResponse.ts":
81205
+ /*!*****************************************!*\
81206
+ !*** ./models/StreamsConfigResponse.ts ***!
81207
+ \*****************************************/
81208
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
81209
+
81210
+ "use strict";
81211
+
81212
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
81213
+ exports.StreamsConfigResponse = void 0;
81214
+ var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
81215
+ /**
81216
+ * @export
81217
+ * @class StreamsConfigResponse
81218
+ */
81219
+ var StreamsConfigResponse = /** @class */ (function () {
81220
+ function StreamsConfigResponse(obj) {
81221
+ if (!obj) {
81222
+ return;
81223
+ }
81224
+ this.id = (0, Mapper_1.map)(obj.id);
81225
+ this.orgId = (0, Mapper_1.map)(obj.orgId);
81226
+ this.playerStyle = (0, Mapper_1.map)(obj.playerStyle);
81227
+ }
81228
+ return StreamsConfigResponse;
81229
+ }());
81230
+ exports.StreamsConfigResponse = StreamsConfigResponse;
81231
+ exports["default"] = StreamsConfigResponse;
81232
+
81233
+
81234
+ /***/ }),
81235
+
81236
+ /***/ "./models/StreamsConfigUpdateRequest.ts":
81237
+ /*!**********************************************!*\
81238
+ !*** ./models/StreamsConfigUpdateRequest.ts ***!
81239
+ \**********************************************/
81240
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
81241
+
81242
+ "use strict";
81243
+
81244
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
81245
+ exports.StreamsConfigUpdateRequest = void 0;
81246
+ var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
81247
+ /**
81248
+ * @export
81249
+ * @class StreamsConfigUpdateRequest
81250
+ */
81251
+ var StreamsConfigUpdateRequest = /** @class */ (function () {
81252
+ function StreamsConfigUpdateRequest(obj) {
81253
+ if (!obj) {
81254
+ return;
81255
+ }
81256
+ this.playerStyle = (0, Mapper_1.map)(obj.playerStyle);
81257
+ }
81258
+ return StreamsConfigUpdateRequest;
81259
+ }());
81260
+ exports.StreamsConfigUpdateRequest = StreamsConfigUpdateRequest;
81261
+ exports["default"] = StreamsConfigUpdateRequest;
81262
+
81263
+
81202
81264
  /***/ }),
81203
81265
 
81204
81266
  /***/ "./models/StreamsLiveUpdateRequest.ts":
@@ -81223,6 +81285,7 @@ var StreamsLiveUpdateRequest = /** @class */ (function () {
81223
81285
  }
81224
81286
  this.title = (0, Mapper_1.map)(obj.title);
81225
81287
  this.description = (0, Mapper_1.map)(obj.description);
81288
+ this.configId = (0, Mapper_1.map)(obj.configId);
81226
81289
  }
81227
81290
  return StreamsLiveUpdateRequest;
81228
81291
  }());
@@ -81255,6 +81318,7 @@ var StreamsVideoCreateRequest = /** @class */ (function () {
81255
81318
  this.assetUrl = (0, Mapper_1.map)(obj.assetUrl);
81256
81319
  this.title = (0, Mapper_1.map)(obj.title);
81257
81320
  this.description = (0, Mapper_1.map)(obj.description);
81321
+ this.configId = (0, Mapper_1.map)(obj.configId);
81258
81322
  }
81259
81323
  return StreamsVideoCreateRequest;
81260
81324
  }());
@@ -81356,6 +81420,7 @@ exports["default"] = StreamsVideoQuality;
81356
81420
  Object.defineProperty(exports, "__esModule", ({ value: true }));
81357
81421
  exports.StreamsVideoResponse = void 0;
81358
81422
  var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
81423
+ var StreamsConfigResponse_1 = __webpack_require__(/*! ./StreamsConfigResponse */ "./models/StreamsConfigResponse.ts");
81359
81424
  var StreamsVideoEncodingTask_1 = __webpack_require__(/*! ./StreamsVideoEncodingTask */ "./models/StreamsVideoEncodingTask.ts");
81360
81425
  /**
81361
81426
  * @export
@@ -81372,6 +81437,7 @@ var StreamsVideoResponse = /** @class */ (function () {
81372
81437
  this.description = (0, Mapper_1.map)(obj.description);
81373
81438
  this.createdAt = (0, Mapper_1.map)(obj.createdAt, Date);
81374
81439
  this.status = (0, Mapper_1.map)(obj.status);
81440
+ this.config = (0, Mapper_1.map)(obj.config, StreamsConfigResponse_1.default);
81375
81441
  this.encodingTasks = (0, Mapper_1.mapArray)(obj.encodingTasks, StreamsVideoEncodingTask_1.default);
81376
81442
  }
81377
81443
  return StreamsVideoResponse;
@@ -81429,6 +81495,7 @@ var StreamsVideoUpdateRequest = /** @class */ (function () {
81429
81495
  this.status = (0, Mapper_1.map)(obj.status);
81430
81496
  this.title = (0, Mapper_1.map)(obj.title);
81431
81497
  this.description = (0, Mapper_1.map)(obj.description);
81498
+ this.configId = (0, Mapper_1.map)(obj.configId);
81432
81499
  }
81433
81500
  return StreamsVideoUpdateRequest;
81434
81501
  }());
@@ -85357,6 +85424,8 @@ __exportStar(__webpack_require__(/*! ./StreamMode */ "./models/StreamMode.ts"),
85357
85424
  __exportStar(__webpack_require__(/*! ./StreamPerTitleFixedResolutionAndBitrateSettings */ "./models/StreamPerTitleFixedResolutionAndBitrateSettings.ts"), exports);
85358
85425
  __exportStar(__webpack_require__(/*! ./StreamPerTitleSettings */ "./models/StreamPerTitleSettings.ts"), exports);
85359
85426
  __exportStar(__webpack_require__(/*! ./StreamSelectionMode */ "./models/StreamSelectionMode.ts"), exports);
85427
+ __exportStar(__webpack_require__(/*! ./StreamsConfigResponse */ "./models/StreamsConfigResponse.ts"), exports);
85428
+ __exportStar(__webpack_require__(/*! ./StreamsConfigUpdateRequest */ "./models/StreamsConfigUpdateRequest.ts"), exports);
85360
85429
  __exportStar(__webpack_require__(/*! ./StreamsLiveUpdateRequest */ "./models/StreamsLiveUpdateRequest.ts"), exports);
85361
85430
  __exportStar(__webpack_require__(/*! ./StreamsVideoCreateRequest */ "./models/StreamsVideoCreateRequest.ts"), exports);
85362
85431
  __exportStar(__webpack_require__(/*! ./StreamsVideoEncodingStatus */ "./models/StreamsVideoEncodingStatus.ts"), exports);
@@ -89054,6 +89123,7 @@ var __extends = (this && this.__extends) || (function () {
89054
89123
  })();
89055
89124
  Object.defineProperty(exports, "__esModule", ({ value: true }));
89056
89125
  var BaseAPI_1 = __webpack_require__(/*! ../common/BaseAPI */ "./common/BaseAPI.ts");
89126
+ var ConfigsApi_1 = __webpack_require__(/*! ./configs/ConfigsApi */ "./streams/configs/ConfigsApi.ts");
89057
89127
  var VideoApi_1 = __webpack_require__(/*! ./video/VideoApi */ "./streams/video/VideoApi.ts");
89058
89128
  var LiveApi_1 = __webpack_require__(/*! ./live/LiveApi */ "./streams/live/LiveApi.ts");
89059
89129
  /**
@@ -89066,6 +89136,7 @@ var StreamsApi = /** @class */ (function (_super) {
89066
89136
  __extends(StreamsApi, _super);
89067
89137
  function StreamsApi(configuration) {
89068
89138
  var _this = _super.call(this, configuration) || this;
89139
+ _this.configs = new ConfigsApi_1.default(configuration);
89069
89140
  _this.video = new VideoApi_1.default(configuration);
89070
89141
  _this.live = new LiveApi_1.default(configuration);
89071
89142
  return _this;
@@ -89075,6 +89146,66 @@ var StreamsApi = /** @class */ (function (_super) {
89075
89146
  exports["default"] = StreamsApi;
89076
89147
 
89077
89148
 
89149
+ /***/ }),
89150
+
89151
+ /***/ "./streams/configs/ConfigsApi.ts":
89152
+ /*!***************************************!*\
89153
+ !*** ./streams/configs/ConfigsApi.ts ***!
89154
+ \***************************************/
89155
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
89156
+
89157
+ "use strict";
89158
+
89159
+ var __extends = (this && this.__extends) || (function () {
89160
+ var extendStatics = function (d, b) {
89161
+ extendStatics = Object.setPrototypeOf ||
89162
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
89163
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
89164
+ return extendStatics(d, b);
89165
+ };
89166
+ return function (d, b) {
89167
+ if (typeof b !== "function" && b !== null)
89168
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
89169
+ extendStatics(d, b);
89170
+ function __() { this.constructor = d; }
89171
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
89172
+ };
89173
+ })();
89174
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
89175
+ var BaseAPI_1 = __webpack_require__(/*! ../../common/BaseAPI */ "./common/BaseAPI.ts");
89176
+ var Mapper_1 = __webpack_require__(/*! ../../common/Mapper */ "./common/Mapper.ts");
89177
+ var StreamsConfigResponse_1 = __webpack_require__(/*! ../../models/StreamsConfigResponse */ "./models/StreamsConfigResponse.ts");
89178
+ /**
89179
+ * ConfigsApi - object-oriented interface
89180
+ * @export
89181
+ * @class ConfigsApi
89182
+ * @extends {BaseAPI}
89183
+ */
89184
+ var ConfigsApi = /** @class */ (function (_super) {
89185
+ __extends(ConfigsApi, _super);
89186
+ function ConfigsApi(configuration) {
89187
+ return _super.call(this, configuration) || this;
89188
+ }
89189
+ /**
89190
+ * @summary Update stream config by id
89191
+ * @param {string} configId Id of the stream config.
89192
+ * @param {StreamsConfigUpdateRequest} streamsConfigUpdateRequest The updated stream config object.
89193
+ * @throws {BitmovinError}
89194
+ * @memberof ConfigsApi
89195
+ */
89196
+ ConfigsApi.prototype.patchStreamConfig = function (configId, streamsConfigUpdateRequest) {
89197
+ var pathParamMap = {
89198
+ config_id: configId
89199
+ };
89200
+ return this.restClient.patch('/streams/configs/{config_id}', pathParamMap, streamsConfigUpdateRequest).then(function (response) {
89201
+ return (0, Mapper_1.map)(response, StreamsConfigResponse_1.default);
89202
+ });
89203
+ };
89204
+ return ConfigsApi;
89205
+ }(BaseAPI_1.BaseAPI));
89206
+ exports["default"] = ConfigsApi;
89207
+
89208
+
89078
89209
  /***/ }),
89079
89210
 
89080
89211
  /***/ "./streams/live/LiveApi.ts":