@bitmovin/api-sdk 1.192.0 → 1.194.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.192.0
34
+ npm install @bitmovin/api-sdk@1.194.0
35
35
  ```
36
36
 
37
37
  ## Initialization
@@ -6093,7 +6093,7 @@ var HeaderHandler = /** @class */ (function (_super) {
6093
6093
  var headers = {
6094
6094
  'X-Api-Key': apiKey,
6095
6095
  'X-Api-Client': 'bitmovin-api-sdk-javascript',
6096
- 'X-Api-Client-Version': '1.192.0',
6096
+ 'X-Api-Client-Version': '1.194.0',
6097
6097
  'Content-Type': 'application/json'
6098
6098
  };
6099
6099
  if (tenantOrgId) {
@@ -6492,6 +6492,7 @@ var DtsxApi_1 = __webpack_require__(/*! ./dtsx/DtsxApi */ "./encoding/configurat
6492
6492
  var DolbyAtmosApi_1 = __webpack_require__(/*! ./dolbyAtmos/DolbyAtmosApi */ "./encoding/configurations/audio/dolbyAtmos/DolbyAtmosApi.ts");
6493
6493
  var HeAacV1Api_1 = __webpack_require__(/*! ./heAacV1/HeAacV1Api */ "./encoding/configurations/audio/heAacV1/HeAacV1Api.ts");
6494
6494
  var HeAacV2Api_1 = __webpack_require__(/*! ./heAacV2/HeAacV2Api */ "./encoding/configurations/audio/heAacV2/HeAacV2Api.ts");
6495
+ var PassthroughApi_1 = __webpack_require__(/*! ./passthrough/PassthroughApi */ "./encoding/configurations/audio/passthrough/PassthroughApi.ts");
6495
6496
  var VorbisApi_1 = __webpack_require__(/*! ./vorbis/VorbisApi */ "./encoding/configurations/audio/vorbis/VorbisApi.ts");
6496
6497
  var OpusApi_1 = __webpack_require__(/*! ./opus/OpusApi */ "./encoding/configurations/audio/opus/OpusApi.ts");
6497
6498
  var PcmApi_1 = __webpack_require__(/*! ./pcm/PcmApi */ "./encoding/configurations/audio/pcm/PcmApi.ts");
@@ -6518,6 +6519,7 @@ var AudioApi = /** @class */ (function (_super) {
6518
6519
  _this.dolbyAtmos = new DolbyAtmosApi_1.default(configuration);
6519
6520
  _this.heAacV1 = new HeAacV1Api_1.default(configuration);
6520
6521
  _this.heAacV2 = new HeAacV2Api_1.default(configuration);
6522
+ _this.passthrough = new PassthroughApi_1.default(configuration);
6521
6523
  _this.vorbis = new VorbisApi_1.default(configuration);
6522
6524
  _this.opus = new OpusApi_1.default(configuration);
6523
6525
  _this.pcm = new PcmApi_1.default(configuration);
@@ -9544,6 +9546,159 @@ var CustomdataApi = /** @class */ (function (_super) {
9544
9546
  exports["default"] = CustomdataApi;
9545
9547
 
9546
9548
 
9549
+ /***/ }),
9550
+
9551
+ /***/ "./encoding/configurations/audio/passthrough/PassthroughApi.ts":
9552
+ /*!*********************************************************************!*\
9553
+ !*** ./encoding/configurations/audio/passthrough/PassthroughApi.ts ***!
9554
+ \*********************************************************************/
9555
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
9556
+
9557
+ "use strict";
9558
+
9559
+ var __extends = (this && this.__extends) || (function () {
9560
+ var extendStatics = function (d, b) {
9561
+ extendStatics = Object.setPrototypeOf ||
9562
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9563
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
9564
+ return extendStatics(d, b);
9565
+ };
9566
+ return function (d, b) {
9567
+ if (typeof b !== "function" && b !== null)
9568
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9569
+ extendStatics(d, b);
9570
+ function __() { this.constructor = d; }
9571
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
9572
+ };
9573
+ })();
9574
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
9575
+ var BaseAPI_1 = __webpack_require__(/*! ../../../../common/BaseAPI */ "./common/BaseAPI.ts");
9576
+ var Mapper_1 = __webpack_require__(/*! ../../../../common/Mapper */ "./common/Mapper.ts");
9577
+ var BitmovinResponse_1 = __webpack_require__(/*! ../../../../models/BitmovinResponse */ "./models/BitmovinResponse.ts");
9578
+ var PassthroughAudioConfiguration_1 = __webpack_require__(/*! ../../../../models/PassthroughAudioConfiguration */ "./models/PassthroughAudioConfiguration.ts");
9579
+ var PaginationResponse_1 = __webpack_require__(/*! ../../../../models/PaginationResponse */ "./models/PaginationResponse.ts");
9580
+ var PassthroughAudioConfigurationListQueryParams_1 = __webpack_require__(/*! ./PassthroughAudioConfigurationListQueryParams */ "./encoding/configurations/audio/passthrough/PassthroughAudioConfigurationListQueryParams.ts");
9581
+ /**
9582
+ * PassthroughApi - object-oriented interface
9583
+ * @export
9584
+ * @class PassthroughApi
9585
+ * @extends {BaseAPI}
9586
+ */
9587
+ var PassthroughApi = /** @class */ (function (_super) {
9588
+ __extends(PassthroughApi, _super);
9589
+ function PassthroughApi(configuration) {
9590
+ return _super.call(this, configuration) || this;
9591
+ }
9592
+ /**
9593
+ * @summary Create Audio Passthrough Configuration
9594
+ * @param {PassthroughAudioConfiguration} passthroughAudioConfiguration The Audio Passthrough Configuration to be created
9595
+ * @throws {BitmovinError}
9596
+ * @memberof PassthroughApi
9597
+ */
9598
+ PassthroughApi.prototype.create = function (passthroughAudioConfiguration) {
9599
+ return this.restClient.post('/encoding/configurations/audio/passthrough', {}, passthroughAudioConfiguration).then(function (response) {
9600
+ return (0, Mapper_1.map)(response, PassthroughAudioConfiguration_1.default);
9601
+ });
9602
+ };
9603
+ /**
9604
+ * @summary Delete Audio Passthrough Codec Configuration
9605
+ * @param {string} configurationId Id of the audio configuration
9606
+ * @throws {BitmovinError}
9607
+ * @memberof PassthroughApi
9608
+ */
9609
+ PassthroughApi.prototype.delete = function (configurationId) {
9610
+ var pathParamMap = {
9611
+ configuration_id: configurationId
9612
+ };
9613
+ return this.restClient.delete('/encoding/configurations/audio/passthrough/{configuration_id}', pathParamMap).then(function (response) {
9614
+ return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
9615
+ });
9616
+ };
9617
+ /**
9618
+ * @summary Audio Passthrough Configuration Details
9619
+ * @param {string} configurationId Id of the audio configuration
9620
+ * @throws {BitmovinError}
9621
+ * @memberof PassthroughApi
9622
+ */
9623
+ PassthroughApi.prototype.get = function (configurationId) {
9624
+ var pathParamMap = {
9625
+ configuration_id: configurationId
9626
+ };
9627
+ return this.restClient.get('/encoding/configurations/audio/passthrough/{configuration_id}', pathParamMap).then(function (response) {
9628
+ return (0, Mapper_1.map)(response, PassthroughAudioConfiguration_1.default);
9629
+ });
9630
+ };
9631
+ /**
9632
+ * @summary List Audio Passthrough Configurations
9633
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
9634
+ * @throws {BitmovinError}
9635
+ * @memberof PassthroughApi
9636
+ */
9637
+ PassthroughApi.prototype.list = function (queryParameters) {
9638
+ var queryParams = {};
9639
+ if (typeof queryParameters === 'function') {
9640
+ queryParams = queryParameters(new PassthroughAudioConfigurationListQueryParams_1.PassthroughAudioConfigurationListQueryParamsBuilder()).buildQueryParams();
9641
+ }
9642
+ else if (queryParameters) {
9643
+ queryParams = queryParameters;
9644
+ }
9645
+ return this.restClient.get('/encoding/configurations/audio/passthrough', {}, queryParams).then(function (response) {
9646
+ return new PaginationResponse_1.default(response, PassthroughAudioConfiguration_1.default);
9647
+ });
9648
+ };
9649
+ return PassthroughApi;
9650
+ }(BaseAPI_1.BaseAPI));
9651
+ exports["default"] = PassthroughApi;
9652
+
9653
+
9654
+ /***/ }),
9655
+
9656
+ /***/ "./encoding/configurations/audio/passthrough/PassthroughAudioConfigurationListQueryParams.ts":
9657
+ /*!***************************************************************************************************!*\
9658
+ !*** ./encoding/configurations/audio/passthrough/PassthroughAudioConfigurationListQueryParams.ts ***!
9659
+ \***************************************************************************************************/
9660
+ /***/ ((__unused_webpack_module, exports) => {
9661
+
9662
+ "use strict";
9663
+
9664
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
9665
+ exports.PassthroughAudioConfigurationListQueryParamsBuilder = void 0;
9666
+ var PassthroughAudioConfigurationListQueryParamsBuilder = /** @class */ (function () {
9667
+ function PassthroughAudioConfigurationListQueryParamsBuilder() {
9668
+ this.internalParams = {};
9669
+ }
9670
+ /**
9671
+ *
9672
+ * @param offset Index of the first item to return, starting at 0. Default is 0
9673
+ */
9674
+ PassthroughAudioConfigurationListQueryParamsBuilder.prototype.offset = function (offset) {
9675
+ this.internalParams.offset = offset;
9676
+ return this;
9677
+ };
9678
+ /**
9679
+ *
9680
+ * @param limit Maximum number of items to return. Default is 25, maximum is 100
9681
+ */
9682
+ PassthroughAudioConfigurationListQueryParamsBuilder.prototype.limit = function (limit) {
9683
+ this.internalParams.limit = limit;
9684
+ return this;
9685
+ };
9686
+ /**
9687
+ *
9688
+ * @param name Filter configuration by name
9689
+ */
9690
+ PassthroughAudioConfigurationListQueryParamsBuilder.prototype.name = function (name) {
9691
+ this.internalParams.name = name;
9692
+ return this;
9693
+ };
9694
+ PassthroughAudioConfigurationListQueryParamsBuilder.prototype.buildQueryParams = function () {
9695
+ return this.internalParams;
9696
+ };
9697
+ return PassthroughAudioConfigurationListQueryParamsBuilder;
9698
+ }());
9699
+ exports.PassthroughAudioConfigurationListQueryParamsBuilder = PassthroughAudioConfigurationListQueryParamsBuilder;
9700
+
9701
+
9547
9702
  /***/ }),
9548
9703
 
9549
9704
  /***/ "./encoding/configurations/audio/pcm/PcmApi.ts":
@@ -59933,6 +60088,8 @@ var AzureCloudRegion;
59933
60088
  AzureCloudRegion["US_WEST"] = "US_WEST";
59934
60089
  AzureCloudRegion["US_WEST2"] = "US_WEST2";
59935
60090
  AzureCloudRegion["US_SOUTH_CENTRAL"] = "US_SOUTH_CENTRAL";
60091
+ AzureCloudRegion["US_NORTH_CENTRAL"] = "US_NORTH_CENTRAL";
60092
+ AzureCloudRegion["UK_SOUTH"] = "UK_SOUTH";
59936
60093
  })(AzureCloudRegion || (exports.AzureCloudRegion = AzureCloudRegion = {}));
59937
60094
  exports["default"] = AzureCloudRegion;
59938
60095
 
@@ -62183,10 +62340,14 @@ var CloudRegion;
62183
62340
  CloudRegion["AZURE_US_WEST"] = "AZURE_US_WEST";
62184
62341
  CloudRegion["AZURE_US_WEST2"] = "AZURE_US_WEST2";
62185
62342
  CloudRegion["AZURE_US_SOUTH_CENTRAL"] = "AZURE_US_SOUTH_CENTRAL";
62343
+ CloudRegion["AZURE_US_NORTH_CENTRAL"] = "AZURE_US_NORTH_CENTRAL";
62344
+ CloudRegion["AZURE_UK_SOUTH"] = "AZURE_UK_SOUTH";
62186
62345
  CloudRegion["AKAMAI_BR_GRU"] = "AKAMAI_BR_GRU";
62187
62346
  CloudRegion["AKAMAI_FR_PAR"] = "AKAMAI_FR_PAR";
62188
62347
  CloudRegion["AKAMAI_JP_OSA"] = "AKAMAI_JP_OSA";
62189
62348
  CloudRegion["AKAMAI_US_SEA"] = "AKAMAI_US_SEA";
62349
+ CloudRegion["OCI_EU_FRANKFURT_1"] = "OCI_EU_FRANKFURT_1";
62350
+ CloudRegion["OCI_US_ASHBURN_1"] = "OCI_US_ASHBURN_1";
62190
62351
  CloudRegion["NORTH_AMERICA"] = "NORTH_AMERICA";
62191
62352
  CloudRegion["SOUTH_AMERICA"] = "SOUTH_AMERICA";
62192
62353
  CloudRegion["EUROPE"] = "EUROPE";
@@ -62285,6 +62446,7 @@ var CodecConfigType;
62285
62446
  CodecConfigType["DTS"] = "DTS";
62286
62447
  CodecConfigType["DTSX"] = "DTSX";
62287
62448
  CodecConfigType["DTS_PASSTHROUGH"] = "DTS_PASSTHROUGH";
62449
+ CodecConfigType["AUDIO_PASSTHROUGH"] = "AUDIO_PASSTHROUGH";
62288
62450
  CodecConfigType["HE_AAC_V1"] = "HE_AAC_V1";
62289
62451
  CodecConfigType["HE_AAC_V2"] = "HE_AAC_V2";
62290
62452
  CodecConfigType["H264"] = "H264";
@@ -62385,6 +62547,7 @@ var CodecConfiguration = /** @class */ (function (_super) {
62385
62547
  CodecConfiguration._discriminatorName = 'type';
62386
62548
  CodecConfiguration._discriminatorMapping = {
62387
62549
  AAC: 'AacAudioConfiguration',
62550
+ AUDIO_PASSTHROUGH: 'PassthroughAudioConfiguration',
62388
62551
  DTS_PASSTHROUGH: 'DtsPassthroughAudioConfiguration',
62389
62552
  DTS: 'DtsAudioConfiguration',
62390
62553
  DTSX: 'DtsXAudioConfiguration',
@@ -75618,6 +75781,60 @@ exports.PaginationResponse = PaginationResponse;
75618
75781
  exports["default"] = PaginationResponse;
75619
75782
 
75620
75783
 
75784
+ /***/ }),
75785
+
75786
+ /***/ "./models/PassthroughAudioConfiguration.ts":
75787
+ /*!*************************************************!*\
75788
+ !*** ./models/PassthroughAudioConfiguration.ts ***!
75789
+ \*************************************************/
75790
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
75791
+
75792
+ "use strict";
75793
+
75794
+ var __extends = (this && this.__extends) || (function () {
75795
+ var extendStatics = function (d, b) {
75796
+ extendStatics = Object.setPrototypeOf ||
75797
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
75798
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
75799
+ return extendStatics(d, b);
75800
+ };
75801
+ return function (d, b) {
75802
+ if (typeof b !== "function" && b !== null)
75803
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
75804
+ extendStatics(d, b);
75805
+ function __() { this.constructor = d; }
75806
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
75807
+ };
75808
+ })();
75809
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
75810
+ exports.PassthroughAudioConfiguration = void 0;
75811
+ var CodecConfigType_1 = __webpack_require__(/*! ./CodecConfigType */ "./models/CodecConfigType.ts");
75812
+ var CodecConfiguration_1 = __webpack_require__(/*! ./CodecConfiguration */ "./models/CodecConfiguration.ts");
75813
+ /**
75814
+ * @export
75815
+ * @class PassthroughAudioConfiguration
75816
+ */
75817
+ var PassthroughAudioConfiguration = /** @class */ (function (_super) {
75818
+ __extends(PassthroughAudioConfiguration, _super);
75819
+ function PassthroughAudioConfiguration(obj) {
75820
+ var _this = _super.call(this, obj) || this;
75821
+ /**
75822
+ * Discriminator property for CodecConfiguration
75823
+ * @type {string}
75824
+ * @memberof PassthroughAudioConfiguration
75825
+ */
75826
+ _this.type = CodecConfigType_1.default.AUDIO_PASSTHROUGH;
75827
+ if (!obj) {
75828
+ return _this;
75829
+ }
75830
+ return _this;
75831
+ }
75832
+ return PassthroughAudioConfiguration;
75833
+ }(CodecConfiguration_1.default));
75834
+ exports.PassthroughAudioConfiguration = PassthroughAudioConfiguration;
75835
+ exports["default"] = PassthroughAudioConfiguration;
75836
+
75837
+
75621
75838
  /***/ }),
75622
75839
 
75623
75840
  /***/ "./models/PassthroughMode.ts":
@@ -87455,6 +87672,7 @@ __exportStar(__webpack_require__(/*! ./PackedAudioMuxingInformation */ "./models
87455
87672
  __exportStar(__webpack_require__(/*! ./PaddingDurationUnit */ "./models/PaddingDurationUnit.ts"), exports);
87456
87673
  __exportStar(__webpack_require__(/*! ./PaddingSequence */ "./models/PaddingSequence.ts"), exports);
87457
87674
  __exportStar(__webpack_require__(/*! ./PaginationResponse */ "./models/PaginationResponse.ts"), exports);
87675
+ __exportStar(__webpack_require__(/*! ./PassthroughAudioConfiguration */ "./models/PassthroughAudioConfiguration.ts"), exports);
87458
87676
  __exportStar(__webpack_require__(/*! ./PassthroughMode */ "./models/PassthroughMode.ts"), exports);
87459
87677
  __exportStar(__webpack_require__(/*! ./PcmAudioConfiguration */ "./models/PcmAudioConfiguration.ts"), exports);
87460
87678
  __exportStar(__webpack_require__(/*! ./PcmChannelLayout */ "./models/PcmChannelLayout.ts"), exports);