@bitmovin/api-sdk 1.215.0 → 1.216.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2024 Bitmovin Inc
3
+ Copyright (c) 2025 Bitmovin Inc
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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.215.0
34
+ npm install @bitmovin/api-sdk@1.216.0
35
35
  ```
36
36
 
37
37
  ## Initialization
@@ -6029,7 +6029,7 @@ var HeaderHandler = /** @class */ (function (_super) {
6029
6029
  var headers = {
6030
6030
  'X-Api-Key': apiKey,
6031
6031
  'X-Api-Client': 'bitmovin-api-sdk-javascript',
6032
- 'X-Api-Client-Version': '1.215.0',
6032
+ 'X-Api-Client-Version': '1.216.0',
6033
6033
  'Content-Type': 'application/json'
6034
6034
  };
6035
6035
  if (tenantOrgId) {
@@ -12587,6 +12587,7 @@ var OutputPathsApi_1 = __webpack_require__(/*! ./outputPaths/OutputPathsApi */ "
12587
12587
  var CaptionsApi_1 = __webpack_require__(/*! ./captions/CaptionsApi */ "./encoding/encodings/captions/CaptionsApi.ts");
12588
12588
  var SidecarsApi_1 = __webpack_require__(/*! ./sidecars/SidecarsApi */ "./encoding/encodings/sidecars/SidecarsApi.ts");
12589
12589
  var KeyframesApi_1 = __webpack_require__(/*! ./keyframes/KeyframesApi */ "./encoding/encodings/keyframes/KeyframesApi.ts");
12590
+ var Scte35TriggersApi_1 = __webpack_require__(/*! ./scte35Triggers/Scte35TriggersApi */ "./encoding/encodings/scte35Triggers/Scte35TriggersApi.ts");
12590
12591
  var BitmovinResponse_1 = __webpack_require__(/*! ../../models/BitmovinResponse */ "./models/BitmovinResponse.ts");
12591
12592
  var Encoding_1 = __webpack_require__(/*! ../../models/Encoding */ "./models/Encoding.ts");
12592
12593
  var StartEncodingRequest_1 = __webpack_require__(/*! ../../models/StartEncodingRequest */ "./models/StartEncodingRequest.ts");
@@ -12613,6 +12614,7 @@ var EncodingsApi = /** @class */ (function (_super) {
12613
12614
  _this.captions = new CaptionsApi_1.default(configuration);
12614
12615
  _this.sidecars = new SidecarsApi_1.default(configuration);
12615
12616
  _this.keyframes = new KeyframesApi_1.default(configuration);
12617
+ _this.scte35Triggers = new Scte35TriggersApi_1.default(configuration);
12616
12618
  return _this;
12617
12619
  }
12618
12620
  /**
@@ -28191,6 +28193,163 @@ var OutputPathsApi = /** @class */ (function (_super) {
28191
28193
  exports["default"] = OutputPathsApi;
28192
28194
 
28193
28195
 
28196
+ /***/ }),
28197
+
28198
+ /***/ "./encoding/encodings/scte35Triggers/Scte35TriggerListQueryParams.ts":
28199
+ /*!***************************************************************************!*\
28200
+ !*** ./encoding/encodings/scte35Triggers/Scte35TriggerListQueryParams.ts ***!
28201
+ \***************************************************************************/
28202
+ /***/ ((__unused_webpack_module, exports) => {
28203
+
28204
+ "use strict";
28205
+
28206
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
28207
+ exports.Scte35TriggerListQueryParamsBuilder = void 0;
28208
+ var Scte35TriggerListQueryParamsBuilder = /** @class */ (function () {
28209
+ function Scte35TriggerListQueryParamsBuilder() {
28210
+ this.internalParams = {};
28211
+ }
28212
+ /**
28213
+ *
28214
+ * @param offset Index of the first item to return, starting at 0. Default is 0
28215
+ */
28216
+ Scte35TriggerListQueryParamsBuilder.prototype.offset = function (offset) {
28217
+ this.internalParams.offset = offset;
28218
+ return this;
28219
+ };
28220
+ /**
28221
+ *
28222
+ * @param limit Maximum number of items to return. Default is 25, maximum is 100
28223
+ */
28224
+ Scte35TriggerListQueryParamsBuilder.prototype.limit = function (limit) {
28225
+ this.internalParams.limit = limit;
28226
+ return this;
28227
+ };
28228
+ Scte35TriggerListQueryParamsBuilder.prototype.buildQueryParams = function () {
28229
+ return this.internalParams;
28230
+ };
28231
+ return Scte35TriggerListQueryParamsBuilder;
28232
+ }());
28233
+ exports.Scte35TriggerListQueryParamsBuilder = Scte35TriggerListQueryParamsBuilder;
28234
+
28235
+
28236
+ /***/ }),
28237
+
28238
+ /***/ "./encoding/encodings/scte35Triggers/Scte35TriggersApi.ts":
28239
+ /*!****************************************************************!*\
28240
+ !*** ./encoding/encodings/scte35Triggers/Scte35TriggersApi.ts ***!
28241
+ \****************************************************************/
28242
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
28243
+
28244
+ "use strict";
28245
+
28246
+ var __extends = (this && this.__extends) || (function () {
28247
+ var extendStatics = function (d, b) {
28248
+ extendStatics = Object.setPrototypeOf ||
28249
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
28250
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
28251
+ return extendStatics(d, b);
28252
+ };
28253
+ return function (d, b) {
28254
+ if (typeof b !== "function" && b !== null)
28255
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
28256
+ extendStatics(d, b);
28257
+ function __() { this.constructor = d; }
28258
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28259
+ };
28260
+ })();
28261
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
28262
+ var BaseAPI_1 = __webpack_require__(/*! ../../../common/BaseAPI */ "./common/BaseAPI.ts");
28263
+ var Mapper_1 = __webpack_require__(/*! ../../../common/Mapper */ "./common/Mapper.ts");
28264
+ var BitmovinResponse_1 = __webpack_require__(/*! ../../../models/BitmovinResponse */ "./models/BitmovinResponse.ts");
28265
+ var Scte35Trigger_1 = __webpack_require__(/*! ../../../models/Scte35Trigger */ "./models/Scte35Trigger.ts");
28266
+ var PaginationResponse_1 = __webpack_require__(/*! ../../../models/PaginationResponse */ "./models/PaginationResponse.ts");
28267
+ var Scte35TriggerListQueryParams_1 = __webpack_require__(/*! ./Scte35TriggerListQueryParams */ "./encoding/encodings/scte35Triggers/Scte35TriggerListQueryParams.ts");
28268
+ /**
28269
+ * Scte35TriggersApi - object-oriented interface
28270
+ * @export
28271
+ * @class Scte35TriggersApi
28272
+ * @extends {BaseAPI}
28273
+ */
28274
+ var Scte35TriggersApi = /** @class */ (function (_super) {
28275
+ __extends(Scte35TriggersApi, _super);
28276
+ function Scte35TriggersApi(configuration) {
28277
+ return _super.call(this, configuration) || this;
28278
+ }
28279
+ /**
28280
+ * @summary Create SCTE 35 trigger
28281
+ * @param {string} encodingId Id of the encoding.
28282
+ * @param {Scte35Trigger} scte35Trigger The SCTE 35 trigger to be created
28283
+ * @throws {BitmovinError}
28284
+ * @memberof Scte35TriggersApi
28285
+ */
28286
+ Scte35TriggersApi.prototype.create = function (encodingId, scte35Trigger) {
28287
+ var pathParamMap = {
28288
+ encoding_id: encodingId
28289
+ };
28290
+ return this.restClient.post('/encoding/encodings/{encoding_id}/scte-35-triggers', pathParamMap, scte35Trigger).then(function (response) {
28291
+ return (0, Mapper_1.map)(response, Scte35Trigger_1.default);
28292
+ });
28293
+ };
28294
+ /**
28295
+ * @summary Delete SCTE 35 trigger
28296
+ * @param {string} encodingId Id of the encoding
28297
+ * @param {string} scte35triggerId Id of the SCTE 35 trigger
28298
+ * @throws {BitmovinError}
28299
+ * @memberof Scte35TriggersApi
28300
+ */
28301
+ Scte35TriggersApi.prototype.delete = function (encodingId, scte35triggerId) {
28302
+ var pathParamMap = {
28303
+ encoding_id: encodingId,
28304
+ scte35trigger_id: scte35triggerId
28305
+ };
28306
+ return this.restClient.delete('/encoding/encodings/{encoding_id}/scte-35-triggers/{scte35trigger_id}', pathParamMap).then(function (response) {
28307
+ return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
28308
+ });
28309
+ };
28310
+ /**
28311
+ * @summary SCTE 35 trigger Details
28312
+ * @param {string} encodingId Id of the encoding
28313
+ * @param {string} scte35triggerId Id of the SCTE 35 trigger
28314
+ * @throws {BitmovinError}
28315
+ * @memberof Scte35TriggersApi
28316
+ */
28317
+ Scte35TriggersApi.prototype.get = function (encodingId, scte35triggerId) {
28318
+ var pathParamMap = {
28319
+ encoding_id: encodingId,
28320
+ scte35trigger_id: scte35triggerId
28321
+ };
28322
+ return this.restClient.get('/encoding/encodings/{encoding_id}/scte-35-triggers/{scte35trigger_id}', pathParamMap).then(function (response) {
28323
+ return (0, Mapper_1.map)(response, Scte35Trigger_1.default);
28324
+ });
28325
+ };
28326
+ /**
28327
+ * @summary List all SCTE 35 triggers for an encoding
28328
+ * @param {string} encodingId Id of the encoding.
28329
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
28330
+ * @throws {BitmovinError}
28331
+ * @memberof Scte35TriggersApi
28332
+ */
28333
+ Scte35TriggersApi.prototype.list = function (encodingId, queryParameters) {
28334
+ var pathParamMap = {
28335
+ encoding_id: encodingId
28336
+ };
28337
+ var queryParams = {};
28338
+ if (typeof queryParameters === 'function') {
28339
+ queryParams = queryParameters(new Scte35TriggerListQueryParams_1.Scte35TriggerListQueryParamsBuilder()).buildQueryParams();
28340
+ }
28341
+ else if (queryParameters) {
28342
+ queryParams = queryParameters;
28343
+ }
28344
+ return this.restClient.get('/encoding/encodings/{encoding_id}/scte-35-triggers', pathParamMap, queryParams).then(function (response) {
28345
+ return new PaginationResponse_1.default(response, Scte35Trigger_1.default);
28346
+ });
28347
+ };
28348
+ return Scte35TriggersApi;
28349
+ }(BaseAPI_1.BaseAPI));
28350
+ exports["default"] = Scte35TriggersApi;
28351
+
28352
+
28194
28353
  /***/ }),
28195
28354
 
28196
28355
  /***/ "./encoding/encodings/sidecars/SidecarFileListQueryParams.ts":
@@ -81046,6 +81205,56 @@ exports.Scte35Cue = Scte35Cue;
81046
81205
  exports["default"] = Scte35Cue;
81047
81206
 
81048
81207
 
81208
+ /***/ }),
81209
+
81210
+ /***/ "./models/Scte35Trigger.ts":
81211
+ /*!*********************************!*\
81212
+ !*** ./models/Scte35Trigger.ts ***!
81213
+ \*********************************/
81214
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
81215
+
81216
+ "use strict";
81217
+
81218
+ var __extends = (this && this.__extends) || (function () {
81219
+ var extendStatics = function (d, b) {
81220
+ extendStatics = Object.setPrototypeOf ||
81221
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
81222
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
81223
+ return extendStatics(d, b);
81224
+ };
81225
+ return function (d, b) {
81226
+ if (typeof b !== "function" && b !== null)
81227
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
81228
+ extendStatics(d, b);
81229
+ function __() { this.constructor = d; }
81230
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
81231
+ };
81232
+ })();
81233
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
81234
+ exports.Scte35Trigger = void 0;
81235
+ var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
81236
+ var BitmovinResponse_1 = __webpack_require__(/*! ./BitmovinResponse */ "./models/BitmovinResponse.ts");
81237
+ /**
81238
+ * @export
81239
+ * @class Scte35Trigger
81240
+ */
81241
+ var Scte35Trigger = /** @class */ (function (_super) {
81242
+ __extends(Scte35Trigger, _super);
81243
+ function Scte35Trigger(obj) {
81244
+ var _this = _super.call(this, obj) || this;
81245
+ if (!obj) {
81246
+ return _this;
81247
+ }
81248
+ _this.time = (0, Mapper_1.map)(obj.time);
81249
+ _this.base64EncodedMetadata = (0, Mapper_1.map)(obj.base64EncodedMetadata);
81250
+ return _this;
81251
+ }
81252
+ return Scte35Trigger;
81253
+ }(BitmovinResponse_1.default));
81254
+ exports.Scte35Trigger = Scte35Trigger;
81255
+ exports["default"] = Scte35Trigger;
81256
+
81257
+
81049
81258
  /***/ }),
81050
81259
 
81051
81260
  /***/ "./models/SegmentedRawMuxing.ts":
@@ -89952,6 +90161,7 @@ __exportStar(__webpack_require__(/*! ./ScheduledInsertableContent */ "./models/S
89952
90161
  __exportStar(__webpack_require__(/*! ./ScheduledInsertableContentStatus */ "./models/ScheduledInsertableContentStatus.ts"), exports);
89953
90162
  __exportStar(__webpack_require__(/*! ./Scheduling */ "./models/Scheduling.ts"), exports);
89954
90163
  __exportStar(__webpack_require__(/*! ./Scte35Cue */ "./models/Scte35Cue.ts"), exports);
90164
+ __exportStar(__webpack_require__(/*! ./Scte35Trigger */ "./models/Scte35Trigger.ts"), exports);
89955
90165
  __exportStar(__webpack_require__(/*! ./SegmentedRawMuxing */ "./models/SegmentedRawMuxing.ts"), exports);
89956
90166
  __exportStar(__webpack_require__(/*! ./SegmentsMediaInfo */ "./models/SegmentsMediaInfo.ts"), exports);
89957
90167
  __exportStar(__webpack_require__(/*! ./SftpInput */ "./models/SftpInput.ts"), exports);