@bitmovin/api-sdk 1.240.0 → 1.241.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.241.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.241.0',
7161
7222
  'Content-Type': 'application/json'
7162
7223
  };
7163
7224
  if (tenantOrgId) {
@@ -58207,6 +58268,36 @@ exports.AdAnalyticsVarianceQueryRequest = AdAnalyticsVarianceQueryRequest;
58207
58268
  exports["default"] = AdAnalyticsVarianceQueryRequest;
58208
58269
 
58209
58270
 
58271
+ /***/ }),
58272
+
58273
+ /***/ "./models/AdPosition.ts":
58274
+ /*!******************************!*\
58275
+ !*** ./models/AdPosition.ts ***!
58276
+ \******************************/
58277
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
58278
+
58279
+ "use strict";
58280
+
58281
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
58282
+ exports.AdPosition = void 0;
58283
+ var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
58284
+ /**
58285
+ * @export
58286
+ * @class AdPosition
58287
+ */
58288
+ var AdPosition = /** @class */ (function () {
58289
+ function AdPosition(obj) {
58290
+ if (!obj) {
58291
+ return;
58292
+ }
58293
+ this.position = (0, Mapper_1.map)(obj.position);
58294
+ }
58295
+ return AdPosition;
58296
+ }());
58297
+ exports.AdPosition = AdPosition;
58298
+ exports["default"] = AdPosition;
58299
+
58300
+
58210
58301
  /***/ }),
58211
58302
 
58212
58303
  /***/ "./models/AdaptationSet.ts":
@@ -83778,6 +83869,8 @@ var Scene = /** @class */ (function () {
83778
83869
  this.sensitiveTopics = (0, Mapper_1.mapArray)(obj.sensitiveTopics);
83779
83870
  this.keywords = (0, Mapper_1.mapArray)(obj.keywords);
83780
83871
  this.iab = (0, Mapper_1.map)(obj.iab, IABTaxonomy_1.default);
83872
+ this.type = (0, Mapper_1.map)(obj.type);
83873
+ this.typeConfidence = (0, Mapper_1.map)(obj.typeConfidence);
83781
83874
  }
83782
83875
  return Scene;
83783
83876
  }());
@@ -83785,6 +83878,39 @@ exports.Scene = Scene;
83785
83878
  exports["default"] = Scene;
83786
83879
 
83787
83880
 
83881
+ /***/ }),
83882
+
83883
+ /***/ "./models/SceneAnalysisAdPlacementMetadataResponse.ts":
83884
+ /*!************************************************************!*\
83885
+ !*** ./models/SceneAnalysisAdPlacementMetadataResponse.ts ***!
83886
+ \************************************************************/
83887
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
83888
+
83889
+ "use strict";
83890
+
83891
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
83892
+ exports.SceneAnalysisAdPlacementMetadataResponse = void 0;
83893
+ var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
83894
+ var AdPosition_1 = __webpack_require__(/*! ./AdPosition */ "./models/AdPosition.ts");
83895
+ var AiSceneAnalysisAutomaticAdPlacement_1 = __webpack_require__(/*! ./AiSceneAnalysisAutomaticAdPlacement */ "./models/AiSceneAnalysisAutomaticAdPlacement.ts");
83896
+ /**
83897
+ * @export
83898
+ * @class SceneAnalysisAdPlacementMetadataResponse
83899
+ */
83900
+ var SceneAnalysisAdPlacementMetadataResponse = /** @class */ (function () {
83901
+ function SceneAnalysisAdPlacementMetadataResponse(obj) {
83902
+ if (!obj) {
83903
+ return;
83904
+ }
83905
+ this.placedAds = (0, Mapper_1.mapArray)(obj.placedAds, AdPosition_1.default);
83906
+ this.automaticAdPlacement = (0, Mapper_1.map)(obj.automaticAdPlacement, AiSceneAnalysisAutomaticAdPlacement_1.default);
83907
+ }
83908
+ return SceneAnalysisAdPlacementMetadataResponse;
83909
+ }());
83910
+ exports.SceneAnalysisAdPlacementMetadataResponse = SceneAnalysisAdPlacementMetadataResponse;
83911
+ exports["default"] = SceneAnalysisAdPlacementMetadataResponse;
83912
+
83913
+
83788
83914
  /***/ }),
83789
83915
 
83790
83916
  /***/ "./models/SceneAnalysisDetailsResponse.ts":
@@ -83885,6 +84011,44 @@ exports.SceneObject = SceneObject;
83885
84011
  exports["default"] = SceneObject;
83886
84012
 
83887
84013
 
84014
+ /***/ }),
84015
+
84016
+ /***/ "./models/SceneType.ts":
84017
+ /*!*****************************!*\
84018
+ !*** ./models/SceneType.ts ***!
84019
+ \*****************************/
84020
+ /***/ ((__unused_webpack_module, exports) => {
84021
+
84022
+ "use strict";
84023
+
84024
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
84025
+ exports.SceneType = void 0;
84026
+ /**
84027
+ * @export
84028
+ * @enum {string}
84029
+ */
84030
+ var SceneType;
84031
+ (function (SceneType) {
84032
+ SceneType["OPENING_TITLES"] = "OPENING_TITLES";
84033
+ SceneType["EPISODE_TITLE_CARD"] = "EPISODE_TITLE_CARD";
84034
+ SceneType["STUDIO_LOGO_BUMPER"] = "STUDIO_LOGO_BUMPER";
84035
+ SceneType["NETWORK_OR_PLATFORM_IDENT"] = "NETWORK_OR_PLATFORM_IDENT";
84036
+ SceneType["RECAP"] = "RECAP";
84037
+ SceneType["PREVIEW_THIS_TITLE"] = "PREVIEW_THIS_TITLE";
84038
+ SceneType["PROMO_OTHER_TITLE"] = "PROMO_OTHER_TITLE";
84039
+ SceneType["TRAILER_OTHER_TITLE"] = "TRAILER_OTHER_TITLE";
84040
+ SceneType["ADS"] = "ADS";
84041
+ SceneType["ACT_BREAK_EYECATCH"] = "ACT_BREAK_EYECATCH";
84042
+ SceneType["TECHNICAL_SLATE_OR_TEST"] = "TECHNICAL_SLATE_OR_TEST";
84043
+ SceneType["MAIN_CONTENT"] = "MAIN_CONTENT";
84044
+ SceneType["MID_CREDIT_SCENE"] = "MID_CREDIT_SCENE";
84045
+ SceneType["POST_CREDIT_SCENE"] = "POST_CREDIT_SCENE";
84046
+ SceneType["END_CREDITS"] = "END_CREDITS";
84047
+ SceneType["UNKNOWN"] = "UNKNOWN";
84048
+ })(SceneType || (exports.SceneType = SceneType = {}));
84049
+ exports["default"] = SceneType;
84050
+
84051
+
83888
84052
  /***/ }),
83889
84053
 
83890
84054
  /***/ "./models/ScheduledInsertableContent.ts":
@@ -90895,6 +91059,7 @@ __exportStar(__webpack_require__(/*! ./AdAnalyticsQueryRequest */ "./models/AdAn
90895
91059
  __exportStar(__webpack_require__(/*! ./AdAnalyticsStddevQueryRequest */ "./models/AdAnalyticsStddevQueryRequest.ts"), exports);
90896
91060
  __exportStar(__webpack_require__(/*! ./AdAnalyticsSumQueryRequest */ "./models/AdAnalyticsSumQueryRequest.ts"), exports);
90897
91061
  __exportStar(__webpack_require__(/*! ./AdAnalyticsVarianceQueryRequest */ "./models/AdAnalyticsVarianceQueryRequest.ts"), exports);
91062
+ __exportStar(__webpack_require__(/*! ./AdPosition */ "./models/AdPosition.ts"), exports);
90898
91063
  __exportStar(__webpack_require__(/*! ./AdaptationSet */ "./models/AdaptationSet.ts"), exports);
90899
91064
  __exportStar(__webpack_require__(/*! ./AdaptationSetRole */ "./models/AdaptationSetRole.ts"), exports);
90900
91065
  __exportStar(__webpack_require__(/*! ./AdaptationSetType */ "./models/AdaptationSetType.ts"), exports);
@@ -91528,9 +91693,11 @@ __exportStar(__webpack_require__(/*! ./ScaleFilter */ "./models/ScaleFilter.ts")
91528
91693
  __exportStar(__webpack_require__(/*! ./ScalingAlgorithm */ "./models/ScalingAlgorithm.ts"), exports);
91529
91694
  __exportStar(__webpack_require__(/*! ./SccCaption */ "./models/SccCaption.ts"), exports);
91530
91695
  __exportStar(__webpack_require__(/*! ./Scene */ "./models/Scene.ts"), exports);
91696
+ __exportStar(__webpack_require__(/*! ./SceneAnalysisAdPlacementMetadataResponse */ "./models/SceneAnalysisAdPlacementMetadataResponse.ts"), exports);
91531
91697
  __exportStar(__webpack_require__(/*! ./SceneAnalysisDetailsResponse */ "./models/SceneAnalysisDetailsResponse.ts"), exports);
91532
91698
  __exportStar(__webpack_require__(/*! ./SceneAnalysisLanguagesResponse */ "./models/SceneAnalysisLanguagesResponse.ts"), exports);
91533
91699
  __exportStar(__webpack_require__(/*! ./SceneObject */ "./models/SceneObject.ts"), exports);
91700
+ __exportStar(__webpack_require__(/*! ./SceneType */ "./models/SceneType.ts"), exports);
91534
91701
  __exportStar(__webpack_require__(/*! ./ScheduledInsertableContent */ "./models/ScheduledInsertableContent.ts"), exports);
91535
91702
  __exportStar(__webpack_require__(/*! ./ScheduledInsertableContentStatus */ "./models/ScheduledInsertableContentStatus.ts"), exports);
91536
91703
  __exportStar(__webpack_require__(/*! ./Scheduling */ "./models/Scheduling.ts"), exports);