@bitmovin/api-sdk 1.226.0 → 1.227.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.226.0
34
+ npm install @bitmovin/api-sdk@1.227.0
35
35
  ```
36
36
 
37
37
  ## Initialization
@@ -6981,7 +6981,7 @@ var HeaderHandler = /** @class */ (function (_super) {
6981
6981
  var headers = {
6982
6982
  'X-Api-Key': apiKey,
6983
6983
  'X-Api-Client': 'bitmovin-api-sdk-javascript',
6984
- 'X-Api-Client-Version': '1.226.0',
6984
+ 'X-Api-Client-Version': '1.227.0',
6985
6985
  'Content-Type': 'application/json'
6986
6986
  };
6987
6987
  if (tenantOrgId) {
@@ -30122,6 +30122,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
30122
30122
  var BaseAPI_1 = __webpack_require__(/*! ../../../../common/BaseAPI */ "./common/BaseAPI.ts");
30123
30123
  var DvbsubApi_1 = __webpack_require__(/*! ./dvbsub/DvbsubApi */ "./encoding/encodings/streams/burnInSubtitles/dvbsub/DvbsubApi.ts");
30124
30124
  var SrtApi_1 = __webpack_require__(/*! ./srt/SrtApi */ "./encoding/encodings/streams/burnInSubtitles/srt/SrtApi.ts");
30125
+ var AssaApi_1 = __webpack_require__(/*! ./assa/AssaApi */ "./encoding/encodings/streams/burnInSubtitles/assa/AssaApi.ts");
30125
30126
  /**
30126
30127
  * BurnInSubtitlesApi - object-oriented interface
30127
30128
  * @export
@@ -30134,6 +30135,7 @@ var BurnInSubtitlesApi = /** @class */ (function (_super) {
30134
30135
  var _this = _super.call(this, configuration) || this;
30135
30136
  _this.dvbsub = new DvbsubApi_1.default(configuration);
30136
30137
  _this.srt = new SrtApi_1.default(configuration);
30138
+ _this.assa = new AssaApi_1.default(configuration);
30137
30139
  return _this;
30138
30140
  }
30139
30141
  return BurnInSubtitlesApi;
@@ -30141,6 +30143,171 @@ var BurnInSubtitlesApi = /** @class */ (function (_super) {
30141
30143
  exports["default"] = BurnInSubtitlesApi;
30142
30144
 
30143
30145
 
30146
+ /***/ }),
30147
+
30148
+ /***/ "./encoding/encodings/streams/burnInSubtitles/assa/AssaApi.ts":
30149
+ /*!********************************************************************!*\
30150
+ !*** ./encoding/encodings/streams/burnInSubtitles/assa/AssaApi.ts ***!
30151
+ \********************************************************************/
30152
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
30153
+
30154
+ "use strict";
30155
+
30156
+ var __extends = (this && this.__extends) || (function () {
30157
+ var extendStatics = function (d, b) {
30158
+ extendStatics = Object.setPrototypeOf ||
30159
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
30160
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
30161
+ return extendStatics(d, b);
30162
+ };
30163
+ return function (d, b) {
30164
+ if (typeof b !== "function" && b !== null)
30165
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
30166
+ extendStatics(d, b);
30167
+ function __() { this.constructor = d; }
30168
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
30169
+ };
30170
+ })();
30171
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
30172
+ var BaseAPI_1 = __webpack_require__(/*! ../../../../../common/BaseAPI */ "./common/BaseAPI.ts");
30173
+ var Mapper_1 = __webpack_require__(/*! ../../../../../common/Mapper */ "./common/Mapper.ts");
30174
+ var BitmovinResponse_1 = __webpack_require__(/*! ../../../../../models/BitmovinResponse */ "./models/BitmovinResponse.ts");
30175
+ var BurnInSubtitleAssa_1 = __webpack_require__(/*! ../../../../../models/BurnInSubtitleAssa */ "./models/BurnInSubtitleAssa.ts");
30176
+ var PaginationResponse_1 = __webpack_require__(/*! ../../../../../models/PaginationResponse */ "./models/PaginationResponse.ts");
30177
+ var BurnInSubtitleAssaListQueryParams_1 = __webpack_require__(/*! ./BurnInSubtitleAssaListQueryParams */ "./encoding/encodings/streams/burnInSubtitles/assa/BurnInSubtitleAssaListQueryParams.ts");
30178
+ /**
30179
+ * AssaApi - object-oriented interface
30180
+ * @export
30181
+ * @class AssaApi
30182
+ * @extends {BaseAPI}
30183
+ */
30184
+ var AssaApi = /** @class */ (function (_super) {
30185
+ __extends(AssaApi, _super);
30186
+ function AssaApi(configuration) {
30187
+ return _super.call(this, configuration) || this;
30188
+ }
30189
+ /**
30190
+ * @summary Burn-In ASSA Subtitle into Stream
30191
+ * @param {string} encodingId Id of the encoding.
30192
+ * @param {string} streamId Id of the stream.
30193
+ * @param {BurnInSubtitleAssa} burnInSubtitleAssa The Burn-In ASSA Subtitle to be added
30194
+ * @throws {BitmovinError}
30195
+ * @memberof AssaApi
30196
+ */
30197
+ AssaApi.prototype.create = function (encodingId, streamId, burnInSubtitleAssa) {
30198
+ var pathParamMap = {
30199
+ encoding_id: encodingId,
30200
+ stream_id: streamId
30201
+ };
30202
+ return this.restClient.post('/encoding/encodings/{encoding_id}/streams/{stream_id}/burn-in-subtitles/assa', pathParamMap, burnInSubtitleAssa).then(function (response) {
30203
+ return (0, Mapper_1.map)(response, BurnInSubtitleAssa_1.default);
30204
+ });
30205
+ };
30206
+ /**
30207
+ * @summary Delete Burn-In ASSA Subtitle from Stream
30208
+ * @param {string} encodingId Id of the encoding.
30209
+ * @param {string} streamId Id of the stream.
30210
+ * @param {string} subtitleId Id of the burn-in subtitle.
30211
+ * @throws {BitmovinError}
30212
+ * @memberof AssaApi
30213
+ */
30214
+ AssaApi.prototype.delete = function (encodingId, streamId, subtitleId) {
30215
+ var pathParamMap = {
30216
+ encoding_id: encodingId,
30217
+ stream_id: streamId,
30218
+ subtitle_id: subtitleId
30219
+ };
30220
+ return this.restClient.delete('/encoding/encodings/{encoding_id}/streams/{stream_id}/burn-in-subtitles/assa/{subtitle_id}', pathParamMap).then(function (response) {
30221
+ return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
30222
+ });
30223
+ };
30224
+ /**
30225
+ * @summary Get Burn-In ASSA Subtitle Details
30226
+ * @param {string} encodingId Id of the encoding.
30227
+ * @param {string} streamId Id of the stream.
30228
+ * @param {string} subtitleId Id of the burn-in subtitle.
30229
+ * @throws {BitmovinError}
30230
+ * @memberof AssaApi
30231
+ */
30232
+ AssaApi.prototype.get = function (encodingId, streamId, subtitleId) {
30233
+ var pathParamMap = {
30234
+ encoding_id: encodingId,
30235
+ stream_id: streamId,
30236
+ subtitle_id: subtitleId
30237
+ };
30238
+ return this.restClient.get('/encoding/encodings/{encoding_id}/streams/{stream_id}/burn-in-subtitles/assa/{subtitle_id}', pathParamMap).then(function (response) {
30239
+ return (0, Mapper_1.map)(response, BurnInSubtitleAssa_1.default);
30240
+ });
30241
+ };
30242
+ /**
30243
+ * @summary List the Burn-In ASSA subtitles of a stream
30244
+ * @param {string} encodingId Id of the encoding.
30245
+ * @param {string} streamId Id of the stream.
30246
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
30247
+ * @throws {BitmovinError}
30248
+ * @memberof AssaApi
30249
+ */
30250
+ AssaApi.prototype.list = function (encodingId, streamId, queryParameters) {
30251
+ var pathParamMap = {
30252
+ encoding_id: encodingId,
30253
+ stream_id: streamId
30254
+ };
30255
+ var queryParams = {};
30256
+ if (typeof queryParameters === 'function') {
30257
+ queryParams = queryParameters(new BurnInSubtitleAssaListQueryParams_1.BurnInSubtitleAssaListQueryParamsBuilder()).buildQueryParams();
30258
+ }
30259
+ else if (queryParameters) {
30260
+ queryParams = queryParameters;
30261
+ }
30262
+ return this.restClient.get('/encoding/encodings/{encoding_id}/streams/{stream_id}/burn-in-subtitles/assa', pathParamMap, queryParams).then(function (response) {
30263
+ return new PaginationResponse_1.default(response, BurnInSubtitleAssa_1.default);
30264
+ });
30265
+ };
30266
+ return AssaApi;
30267
+ }(BaseAPI_1.BaseAPI));
30268
+ exports["default"] = AssaApi;
30269
+
30270
+
30271
+ /***/ }),
30272
+
30273
+ /***/ "./encoding/encodings/streams/burnInSubtitles/assa/BurnInSubtitleAssaListQueryParams.ts":
30274
+ /*!**********************************************************************************************!*\
30275
+ !*** ./encoding/encodings/streams/burnInSubtitles/assa/BurnInSubtitleAssaListQueryParams.ts ***!
30276
+ \**********************************************************************************************/
30277
+ /***/ ((__unused_webpack_module, exports) => {
30278
+
30279
+ "use strict";
30280
+
30281
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
30282
+ exports.BurnInSubtitleAssaListQueryParamsBuilder = void 0;
30283
+ var BurnInSubtitleAssaListQueryParamsBuilder = /** @class */ (function () {
30284
+ function BurnInSubtitleAssaListQueryParamsBuilder() {
30285
+ this.internalParams = {};
30286
+ }
30287
+ /**
30288
+ *
30289
+ * @param offset Index of the first item to return, starting at 0. Default is 0
30290
+ */
30291
+ BurnInSubtitleAssaListQueryParamsBuilder.prototype.offset = function (offset) {
30292
+ this.internalParams.offset = offset;
30293
+ return this;
30294
+ };
30295
+ /**
30296
+ *
30297
+ * @param limit Maximum number of items to return. Default is 25, maximum is 100
30298
+ */
30299
+ BurnInSubtitleAssaListQueryParamsBuilder.prototype.limit = function (limit) {
30300
+ this.internalParams.limit = limit;
30301
+ return this;
30302
+ };
30303
+ BurnInSubtitleAssaListQueryParamsBuilder.prototype.buildQueryParams = function () {
30304
+ return this.internalParams;
30305
+ };
30306
+ return BurnInSubtitleAssaListQueryParamsBuilder;
30307
+ }());
30308
+ exports.BurnInSubtitleAssaListQueryParamsBuilder = BurnInSubtitleAssaListQueryParamsBuilder;
30309
+
30310
+
30144
30311
  /***/ }),
30145
30312
 
30146
30313
  /***/ "./encoding/encodings/streams/burnInSubtitles/dvbsub/BurnInSubtitleDvbSubListQueryParams.ts":
@@ -63868,6 +64035,57 @@ exports.BroadcastTsVideoInputStreamConfiguration = BroadcastTsVideoInputStreamCo
63868
64035
  exports["default"] = BroadcastTsVideoInputStreamConfiguration;
63869
64036
 
63870
64037
 
64038
+ /***/ }),
64039
+
64040
+ /***/ "./models/BurnInSubtitleAssa.ts":
64041
+ /*!**************************************!*\
64042
+ !*** ./models/BurnInSubtitleAssa.ts ***!
64043
+ \**************************************/
64044
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
64045
+
64046
+ "use strict";
64047
+
64048
+ var __extends = (this && this.__extends) || (function () {
64049
+ var extendStatics = function (d, b) {
64050
+ extendStatics = Object.setPrototypeOf ||
64051
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
64052
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
64053
+ return extendStatics(d, b);
64054
+ };
64055
+ return function (d, b) {
64056
+ if (typeof b !== "function" && b !== null)
64057
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
64058
+ extendStatics(d, b);
64059
+ function __() { this.constructor = d; }
64060
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
64061
+ };
64062
+ })();
64063
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
64064
+ exports.BurnInSubtitleAssa = void 0;
64065
+ var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
64066
+ var BitmovinResource_1 = __webpack_require__(/*! ./BitmovinResource */ "./models/BitmovinResource.ts");
64067
+ var InputPath_1 = __webpack_require__(/*! ./InputPath */ "./models/InputPath.ts");
64068
+ /**
64069
+ * @export
64070
+ * @class BurnInSubtitleAssa
64071
+ */
64072
+ var BurnInSubtitleAssa = /** @class */ (function (_super) {
64073
+ __extends(BurnInSubtitleAssa, _super);
64074
+ function BurnInSubtitleAssa(obj) {
64075
+ var _this = _super.call(this, obj) || this;
64076
+ if (!obj) {
64077
+ return _this;
64078
+ }
64079
+ _this.characterEncoding = (0, Mapper_1.map)(obj.characterEncoding);
64080
+ _this.input = (0, Mapper_1.map)(obj.input, InputPath_1.default);
64081
+ return _this;
64082
+ }
64083
+ return BurnInSubtitleAssa;
64084
+ }(BitmovinResource_1.default));
64085
+ exports.BurnInSubtitleAssa = BurnInSubtitleAssa;
64086
+ exports["default"] = BurnInSubtitleAssa;
64087
+
64088
+
63871
64089
  /***/ }),
63872
64090
 
63873
64091
  /***/ "./models/BurnInSubtitleDvbSub.ts":
@@ -90159,6 +90377,7 @@ __exportStar(__webpack_require__(/*! ./BroadcastTsProgramConfiguration */ "./mod
90159
90377
  __exportStar(__webpack_require__(/*! ./BroadcastTsSubtitleInputStreamConfiguration */ "./models/BroadcastTsSubtitleInputStreamConfiguration.ts"), exports);
90160
90378
  __exportStar(__webpack_require__(/*! ./BroadcastTsTransportConfiguration */ "./models/BroadcastTsTransportConfiguration.ts"), exports);
90161
90379
  __exportStar(__webpack_require__(/*! ./BroadcastTsVideoInputStreamConfiguration */ "./models/BroadcastTsVideoInputStreamConfiguration.ts"), exports);
90380
+ __exportStar(__webpack_require__(/*! ./BurnInSubtitleAssa */ "./models/BurnInSubtitleAssa.ts"), exports);
90162
90381
  __exportStar(__webpack_require__(/*! ./BurnInSubtitleDvbSub */ "./models/BurnInSubtitleDvbSub.ts"), exports);
90163
90382
  __exportStar(__webpack_require__(/*! ./BurnInSubtitleSrt */ "./models/BurnInSubtitleSrt.ts"), exports);
90164
90383
  __exportStar(__webpack_require__(/*! ./CacheControl */ "./models/CacheControl.ts"), exports);