@bitmovin/api-sdk 1.240.0 → 1.242.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.240.0
34
+ npm install @bitmovin/api-sdk@1.242.0
35
35
  ```
36
36
 
37
37
  ## Initialization
@@ -2,6 +2,7 @@ import { BaseAPI } from '../../../common/BaseAPI';
2
2
  import Configuration from '../../../common/Configuration';
3
3
  import DetailsApi from './details/DetailsApi';
4
4
  import LanguagesApi from './languages/LanguagesApi';
5
+ import AdPlacementsApi from './adPlacements/AdPlacementsApi';
5
6
  /**
6
7
  * ByEncodingIdApi - object-oriented interface
7
8
  * @export
@@ -11,5 +12,6 @@ import LanguagesApi from './languages/LanguagesApi';
11
12
  export default class ByEncodingIdApi extends BaseAPI {
12
13
  details: DetailsApi;
13
14
  languages: LanguagesApi;
15
+ adPlacements: AdPlacementsApi;
14
16
  constructor(configuration: Configuration);
15
17
  }
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  var BaseAPI_1 = require("../../../common/BaseAPI");
19
19
  var DetailsApi_1 = require("./details/DetailsApi");
20
20
  var LanguagesApi_1 = require("./languages/LanguagesApi");
21
+ var AdPlacementsApi_1 = require("./adPlacements/AdPlacementsApi");
21
22
  /**
22
23
  * ByEncodingIdApi - object-oriented interface
23
24
  * @export
@@ -30,6 +31,7 @@ var ByEncodingIdApi = /** @class */ (function (_super) {
30
31
  var _this = _super.call(this, configuration) || this;
31
32
  _this.details = new DetailsApi_1.default(configuration);
32
33
  _this.languages = new LanguagesApi_1.default(configuration);
34
+ _this.adPlacements = new AdPlacementsApi_1.default(configuration);
33
35
  return _this;
34
36
  }
35
37
  return ByEncodingIdApi;
@@ -0,0 +1,19 @@
1
+ import { BaseAPI } from '../../../../common/BaseAPI';
2
+ import Configuration from '../../../../common/Configuration';
3
+ import SceneAnalysisAdPlacementMetadataResponse from '../../../../models/SceneAnalysisAdPlacementMetadataResponse';
4
+ /**
5
+ * AdPlacementsApi - object-oriented interface
6
+ * @export
7
+ * @class AdPlacementsApi
8
+ * @extends {BaseAPI}
9
+ */
10
+ export default class AdPlacementsApi extends BaseAPI {
11
+ constructor(configuration: Configuration);
12
+ /**
13
+ * @summary Get AI scene analysis ad placements by encoding ID
14
+ * @param {string} encodingId The encoding ID
15
+ * @throws {BitmovinError}
16
+ * @memberof AdPlacementsApi
17
+ */
18
+ get(encodingId: string): Promise<SceneAnalysisAdPlacementMetadataResponse>;
19
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ var BaseAPI_1 = require("../../../../common/BaseAPI");
19
+ var Mapper_1 = require("../../../../common/Mapper");
20
+ var SceneAnalysisAdPlacementMetadataResponse_1 = require("../../../../models/SceneAnalysisAdPlacementMetadataResponse");
21
+ /**
22
+ * AdPlacementsApi - object-oriented interface
23
+ * @export
24
+ * @class AdPlacementsApi
25
+ * @extends {BaseAPI}
26
+ */
27
+ var AdPlacementsApi = /** @class */ (function (_super) {
28
+ __extends(AdPlacementsApi, _super);
29
+ function AdPlacementsApi(configuration) {
30
+ return _super.call(this, configuration) || this;
31
+ }
32
+ /**
33
+ * @summary Get AI scene analysis ad placements by encoding ID
34
+ * @param {string} encodingId The encoding ID
35
+ * @throws {BitmovinError}
36
+ * @memberof AdPlacementsApi
37
+ */
38
+ AdPlacementsApi.prototype.get = function (encodingId) {
39
+ var pathParamMap = {
40
+ encoding_id: encodingId
41
+ };
42
+ return this.restClient.get('/ai-scene-analysis/analyses/by-encoding-id/{encoding_id}/ad-placements', pathParamMap).then(function (response) {
43
+ return (0, Mapper_1.map)(response, SceneAnalysisAdPlacementMetadataResponse_1.default);
44
+ });
45
+ };
46
+ return AdPlacementsApi;
47
+ }(BaseAPI_1.BaseAPI));
48
+ exports.default = AdPlacementsApi;
@@ -3266,6 +3266,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
3266
3266
  var BaseAPI_1 = __webpack_require__(/*! ../../../common/BaseAPI */ "./common/BaseAPI.ts");
3267
3267
  var DetailsApi_1 = __webpack_require__(/*! ./details/DetailsApi */ "./aiSceneAnalysis/analyses/byEncodingId/details/DetailsApi.ts");
3268
3268
  var LanguagesApi_1 = __webpack_require__(/*! ./languages/LanguagesApi */ "./aiSceneAnalysis/analyses/byEncodingId/languages/LanguagesApi.ts");
3269
+ var AdPlacementsApi_1 = __webpack_require__(/*! ./adPlacements/AdPlacementsApi */ "./aiSceneAnalysis/analyses/byEncodingId/adPlacements/AdPlacementsApi.ts");
3269
3270
  /**
3270
3271
  * ByEncodingIdApi - object-oriented interface
3271
3272
  * @export
@@ -3278,6 +3279,7 @@ var ByEncodingIdApi = /** @class */ (function (_super) {
3278
3279
  var _this = _super.call(this, configuration) || this;
3279
3280
  _this.details = new DetailsApi_1.default(configuration);
3280
3281
  _this.languages = new LanguagesApi_1.default(configuration);
3282
+ _this.adPlacements = new AdPlacementsApi_1.default(configuration);
3281
3283
  return _this;
3282
3284
  }
3283
3285
  return ByEncodingIdApi;
@@ -3285,6 +3287,65 @@ var ByEncodingIdApi = /** @class */ (function (_super) {
3285
3287
  exports["default"] = ByEncodingIdApi;
3286
3288
 
3287
3289
 
3290
+ /***/ }),
3291
+
3292
+ /***/ "./aiSceneAnalysis/analyses/byEncodingId/adPlacements/AdPlacementsApi.ts":
3293
+ /*!*******************************************************************************!*\
3294
+ !*** ./aiSceneAnalysis/analyses/byEncodingId/adPlacements/AdPlacementsApi.ts ***!
3295
+ \*******************************************************************************/
3296
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
3297
+
3298
+ "use strict";
3299
+
3300
+ var __extends = (this && this.__extends) || (function () {
3301
+ var extendStatics = function (d, b) {
3302
+ extendStatics = Object.setPrototypeOf ||
3303
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3304
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
3305
+ return extendStatics(d, b);
3306
+ };
3307
+ return function (d, b) {
3308
+ if (typeof b !== "function" && b !== null)
3309
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
3310
+ extendStatics(d, b);
3311
+ function __() { this.constructor = d; }
3312
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3313
+ };
3314
+ })();
3315
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
3316
+ var BaseAPI_1 = __webpack_require__(/*! ../../../../common/BaseAPI */ "./common/BaseAPI.ts");
3317
+ var Mapper_1 = __webpack_require__(/*! ../../../../common/Mapper */ "./common/Mapper.ts");
3318
+ var SceneAnalysisAdPlacementMetadataResponse_1 = __webpack_require__(/*! ../../../../models/SceneAnalysisAdPlacementMetadataResponse */ "./models/SceneAnalysisAdPlacementMetadataResponse.ts");
3319
+ /**
3320
+ * AdPlacementsApi - object-oriented interface
3321
+ * @export
3322
+ * @class AdPlacementsApi
3323
+ * @extends {BaseAPI}
3324
+ */
3325
+ var AdPlacementsApi = /** @class */ (function (_super) {
3326
+ __extends(AdPlacementsApi, _super);
3327
+ function AdPlacementsApi(configuration) {
3328
+ return _super.call(this, configuration) || this;
3329
+ }
3330
+ /**
3331
+ * @summary Get AI scene analysis ad placements by encoding ID
3332
+ * @param {string} encodingId The encoding ID
3333
+ * @throws {BitmovinError}
3334
+ * @memberof AdPlacementsApi
3335
+ */
3336
+ AdPlacementsApi.prototype.get = function (encodingId) {
3337
+ var pathParamMap = {
3338
+ encoding_id: encodingId
3339
+ };
3340
+ return this.restClient.get('/ai-scene-analysis/analyses/by-encoding-id/{encoding_id}/ad-placements', pathParamMap).then(function (response) {
3341
+ return (0, Mapper_1.map)(response, SceneAnalysisAdPlacementMetadataResponse_1.default);
3342
+ });
3343
+ };
3344
+ return AdPlacementsApi;
3345
+ }(BaseAPI_1.BaseAPI));
3346
+ exports["default"] = AdPlacementsApi;
3347
+
3348
+
3288
3349
  /***/ }),
3289
3350
 
3290
3351
  /***/ "./aiSceneAnalysis/analyses/byEncodingId/details/DetailsApi.ts":
@@ -7157,7 +7218,7 @@ var HeaderHandler = /** @class */ (function (_super) {
7157
7218
  var headers = {
7158
7219
  'X-Api-Key': apiKey,
7159
7220
  'X-Api-Client': 'bitmovin-api-sdk-javascript',
7160
- 'X-Api-Client-Version': '1.240.0',
7221
+ 'X-Api-Client-Version': '1.242.0',
7161
7222
  'Content-Type': 'application/json'
7162
7223
  };
7163
7224
  if (tenantOrgId) {
@@ -58207,6 +58268,60 @@ exports.AdAnalyticsVarianceQueryRequest = AdAnalyticsVarianceQueryRequest;
58207
58268
  exports["default"] = AdAnalyticsVarianceQueryRequest;
58208
58269
 
58209
58270
 
58271
+ /***/ }),
58272
+
58273
+ /***/ "./models/AdMarkersSource.ts":
58274
+ /*!***********************************!*\
58275
+ !*** ./models/AdMarkersSource.ts ***!
58276
+ \***********************************/
58277
+ /***/ ((__unused_webpack_module, exports) => {
58278
+
58279
+ "use strict";
58280
+
58281
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
58282
+ exports.AdMarkersSource = void 0;
58283
+ /**
58284
+ * @export
58285
+ * @enum {string}
58286
+ */
58287
+ var AdMarkersSource;
58288
+ (function (AdMarkersSource) {
58289
+ AdMarkersSource["MANIFEST"] = "MANIFEST";
58290
+ AdMarkersSource["SEGMENTS"] = "SEGMENTS";
58291
+ })(AdMarkersSource || (exports.AdMarkersSource = AdMarkersSource = {}));
58292
+ exports["default"] = AdMarkersSource;
58293
+
58294
+
58295
+ /***/ }),
58296
+
58297
+ /***/ "./models/AdPosition.ts":
58298
+ /*!******************************!*\
58299
+ !*** ./models/AdPosition.ts ***!
58300
+ \******************************/
58301
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
58302
+
58303
+ "use strict";
58304
+
58305
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
58306
+ exports.AdPosition = void 0;
58307
+ var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
58308
+ /**
58309
+ * @export
58310
+ * @class AdPosition
58311
+ */
58312
+ var AdPosition = /** @class */ (function () {
58313
+ function AdPosition(obj) {
58314
+ if (!obj) {
58315
+ return;
58316
+ }
58317
+ this.position = (0, Mapper_1.map)(obj.position);
58318
+ }
58319
+ return AdPosition;
58320
+ }());
58321
+ exports.AdPosition = AdPosition;
58322
+ exports["default"] = AdPosition;
58323
+
58324
+
58210
58325
  /***/ }),
58211
58326
 
58212
58327
  /***/ "./models/AdaptationSet.ts":
@@ -75003,6 +75118,7 @@ var HlsInput = /** @class */ (function (_super) {
75003
75118
  return _this;
75004
75119
  }
75005
75120
  _this.url = (0, Mapper_1.map)(obj.url);
75121
+ _this.adMarkersSource = (0, Mapper_1.map)(obj.adMarkersSource);
75006
75122
  return _this;
75007
75123
  }
75008
75124
  return HlsInput;
@@ -79069,6 +79185,7 @@ var Mp4Muxing = /** @class */ (function (_super) {
79069
79185
  }
79070
79186
  _this.filename = (0, Mapper_1.map)(obj.filename);
79071
79187
  _this.fragmentDuration = (0, Mapper_1.map)(obj.fragmentDuration);
79188
+ _this.minimumFragmentDuration = (0, Mapper_1.map)(obj.minimumFragmentDuration);
79072
79189
  _this.fragmentedMP4MuxingManifestType = (0, Mapper_1.map)(obj.fragmentedMP4MuxingManifestType);
79073
79190
  _this.dolbyVisionConfiguration = (0, Mapper_1.map)(obj.dolbyVisionConfiguration, DolbyVisionMuxingConfiguration_1.default);
79074
79191
  return _this;
@@ -83778,6 +83895,8 @@ var Scene = /** @class */ (function () {
83778
83895
  this.sensitiveTopics = (0, Mapper_1.mapArray)(obj.sensitiveTopics);
83779
83896
  this.keywords = (0, Mapper_1.mapArray)(obj.keywords);
83780
83897
  this.iab = (0, Mapper_1.map)(obj.iab, IABTaxonomy_1.default);
83898
+ this.type = (0, Mapper_1.map)(obj.type);
83899
+ this.typeConfidence = (0, Mapper_1.map)(obj.typeConfidence);
83781
83900
  }
83782
83901
  return Scene;
83783
83902
  }());
@@ -83785,6 +83904,39 @@ exports.Scene = Scene;
83785
83904
  exports["default"] = Scene;
83786
83905
 
83787
83906
 
83907
+ /***/ }),
83908
+
83909
+ /***/ "./models/SceneAnalysisAdPlacementMetadataResponse.ts":
83910
+ /*!************************************************************!*\
83911
+ !*** ./models/SceneAnalysisAdPlacementMetadataResponse.ts ***!
83912
+ \************************************************************/
83913
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
83914
+
83915
+ "use strict";
83916
+
83917
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
83918
+ exports.SceneAnalysisAdPlacementMetadataResponse = void 0;
83919
+ var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
83920
+ var AdPosition_1 = __webpack_require__(/*! ./AdPosition */ "./models/AdPosition.ts");
83921
+ var AiSceneAnalysisAutomaticAdPlacement_1 = __webpack_require__(/*! ./AiSceneAnalysisAutomaticAdPlacement */ "./models/AiSceneAnalysisAutomaticAdPlacement.ts");
83922
+ /**
83923
+ * @export
83924
+ * @class SceneAnalysisAdPlacementMetadataResponse
83925
+ */
83926
+ var SceneAnalysisAdPlacementMetadataResponse = /** @class */ (function () {
83927
+ function SceneAnalysisAdPlacementMetadataResponse(obj) {
83928
+ if (!obj) {
83929
+ return;
83930
+ }
83931
+ this.placedAds = (0, Mapper_1.mapArray)(obj.placedAds, AdPosition_1.default);
83932
+ this.automaticAdPlacement = (0, Mapper_1.map)(obj.automaticAdPlacement, AiSceneAnalysisAutomaticAdPlacement_1.default);
83933
+ }
83934
+ return SceneAnalysisAdPlacementMetadataResponse;
83935
+ }());
83936
+ exports.SceneAnalysisAdPlacementMetadataResponse = SceneAnalysisAdPlacementMetadataResponse;
83937
+ exports["default"] = SceneAnalysisAdPlacementMetadataResponse;
83938
+
83939
+
83788
83940
  /***/ }),
83789
83941
 
83790
83942
  /***/ "./models/SceneAnalysisDetailsResponse.ts":
@@ -83885,6 +84037,44 @@ exports.SceneObject = SceneObject;
83885
84037
  exports["default"] = SceneObject;
83886
84038
 
83887
84039
 
84040
+ /***/ }),
84041
+
84042
+ /***/ "./models/SceneType.ts":
84043
+ /*!*****************************!*\
84044
+ !*** ./models/SceneType.ts ***!
84045
+ \*****************************/
84046
+ /***/ ((__unused_webpack_module, exports) => {
84047
+
84048
+ "use strict";
84049
+
84050
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
84051
+ exports.SceneType = void 0;
84052
+ /**
84053
+ * @export
84054
+ * @enum {string}
84055
+ */
84056
+ var SceneType;
84057
+ (function (SceneType) {
84058
+ SceneType["OPENING_TITLES"] = "OPENING_TITLES";
84059
+ SceneType["EPISODE_TITLE_CARD"] = "EPISODE_TITLE_CARD";
84060
+ SceneType["STUDIO_LOGO_BUMPER"] = "STUDIO_LOGO_BUMPER";
84061
+ SceneType["NETWORK_OR_PLATFORM_IDENT"] = "NETWORK_OR_PLATFORM_IDENT";
84062
+ SceneType["RECAP"] = "RECAP";
84063
+ SceneType["PREVIEW_THIS_TITLE"] = "PREVIEW_THIS_TITLE";
84064
+ SceneType["PROMO_OTHER_TITLE"] = "PROMO_OTHER_TITLE";
84065
+ SceneType["TRAILER_OTHER_TITLE"] = "TRAILER_OTHER_TITLE";
84066
+ SceneType["ADS"] = "ADS";
84067
+ SceneType["ACT_BREAK_EYECATCH"] = "ACT_BREAK_EYECATCH";
84068
+ SceneType["TECHNICAL_SLATE_OR_TEST"] = "TECHNICAL_SLATE_OR_TEST";
84069
+ SceneType["MAIN_CONTENT"] = "MAIN_CONTENT";
84070
+ SceneType["MID_CREDIT_SCENE"] = "MID_CREDIT_SCENE";
84071
+ SceneType["POST_CREDIT_SCENE"] = "POST_CREDIT_SCENE";
84072
+ SceneType["END_CREDITS"] = "END_CREDITS";
84073
+ SceneType["UNKNOWN"] = "UNKNOWN";
84074
+ })(SceneType || (exports.SceneType = SceneType = {}));
84075
+ exports["default"] = SceneType;
84076
+
84077
+
83888
84078
  /***/ }),
83889
84079
 
83890
84080
  /***/ "./models/ScheduledInsertableContent.ts":
@@ -90895,6 +91085,8 @@ __exportStar(__webpack_require__(/*! ./AdAnalyticsQueryRequest */ "./models/AdAn
90895
91085
  __exportStar(__webpack_require__(/*! ./AdAnalyticsStddevQueryRequest */ "./models/AdAnalyticsStddevQueryRequest.ts"), exports);
90896
91086
  __exportStar(__webpack_require__(/*! ./AdAnalyticsSumQueryRequest */ "./models/AdAnalyticsSumQueryRequest.ts"), exports);
90897
91087
  __exportStar(__webpack_require__(/*! ./AdAnalyticsVarianceQueryRequest */ "./models/AdAnalyticsVarianceQueryRequest.ts"), exports);
91088
+ __exportStar(__webpack_require__(/*! ./AdMarkersSource */ "./models/AdMarkersSource.ts"), exports);
91089
+ __exportStar(__webpack_require__(/*! ./AdPosition */ "./models/AdPosition.ts"), exports);
90898
91090
  __exportStar(__webpack_require__(/*! ./AdaptationSet */ "./models/AdaptationSet.ts"), exports);
90899
91091
  __exportStar(__webpack_require__(/*! ./AdaptationSetRole */ "./models/AdaptationSetRole.ts"), exports);
90900
91092
  __exportStar(__webpack_require__(/*! ./AdaptationSetType */ "./models/AdaptationSetType.ts"), exports);
@@ -91528,9 +91720,11 @@ __exportStar(__webpack_require__(/*! ./ScaleFilter */ "./models/ScaleFilter.ts")
91528
91720
  __exportStar(__webpack_require__(/*! ./ScalingAlgorithm */ "./models/ScalingAlgorithm.ts"), exports);
91529
91721
  __exportStar(__webpack_require__(/*! ./SccCaption */ "./models/SccCaption.ts"), exports);
91530
91722
  __exportStar(__webpack_require__(/*! ./Scene */ "./models/Scene.ts"), exports);
91723
+ __exportStar(__webpack_require__(/*! ./SceneAnalysisAdPlacementMetadataResponse */ "./models/SceneAnalysisAdPlacementMetadataResponse.ts"), exports);
91531
91724
  __exportStar(__webpack_require__(/*! ./SceneAnalysisDetailsResponse */ "./models/SceneAnalysisDetailsResponse.ts"), exports);
91532
91725
  __exportStar(__webpack_require__(/*! ./SceneAnalysisLanguagesResponse */ "./models/SceneAnalysisLanguagesResponse.ts"), exports);
91533
91726
  __exportStar(__webpack_require__(/*! ./SceneObject */ "./models/SceneObject.ts"), exports);
91727
+ __exportStar(__webpack_require__(/*! ./SceneType */ "./models/SceneType.ts"), exports);
91534
91728
  __exportStar(__webpack_require__(/*! ./ScheduledInsertableContent */ "./models/ScheduledInsertableContent.ts"), exports);
91535
91729
  __exportStar(__webpack_require__(/*! ./ScheduledInsertableContentStatus */ "./models/ScheduledInsertableContentStatus.ts"), exports);
91536
91730
  __exportStar(__webpack_require__(/*! ./Scheduling */ "./models/Scheduling.ts"), exports);