@bitmovin/api-sdk 1.217.0 → 1.219.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.
@@ -53,13 +53,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
53
53
  Object.defineProperty(exports, "__esModule", { value: true });
54
54
  exports.RestClient = void 0;
55
55
  exports.copyAndPrepareBody = copyAndPrepareBody;
56
- var e6p = require("es6-promise");
57
56
  var urljoin = require("url-join");
58
- var isomorphicFetch = require("isomorphic-fetch");
59
57
  var BaseAPI_1 = require("./BaseAPI");
60
58
  var NullLogger_1 = require("./NullLogger");
61
59
  var BitmovinErrorBuilder_1 = require("./BitmovinErrorBuilder");
62
- e6p.polyfill();
63
60
  var BASE_URL = 'https://api.bitmovin.com/v1';
64
61
  function prepareUrlParameterValue(parameterValue) {
65
62
  if (parameterValue instanceof Date) {
@@ -155,7 +152,7 @@ var RestClient = /** @class */ (function () {
155
152
  this.apiKey = configuration.apiKey;
156
153
  this.tenantOrgId = configuration.tenantOrgId;
157
154
  this.baseUrl = configuration.baseUrl || BASE_URL;
158
- this.fetch = configuration.fetch || isomorphicFetch;
155
+ this.fetch = configuration.fetch || fetch;
159
156
  this.logger = configuration.logger || new NullLogger_1.default();
160
157
  this.headers = configuration.headers;
161
158
  this.httpHandler = this.buildHttpHandler();
@@ -240,7 +237,7 @@ var HeaderHandler = /** @class */ (function (_super) {
240
237
  var headers = {
241
238
  'X-Api-Key': apiKey,
242
239
  'X-Api-Client': 'bitmovin-api-sdk-javascript',
243
- 'X-Api-Client-Version': '1.217.0',
240
+ 'X-Api-Client-Version': '1.219.0',
244
241
  'Content-Type': 'application/json'
245
242
  };
246
243
  if (tenantOrgId) {
@@ -4,6 +4,12 @@ import PerTitleConfiguration from './PerTitleConfiguration';
4
4
  * @class Av1PerTitleConfiguration
5
5
  */
6
6
  export declare class Av1PerTitleConfiguration extends PerTitleConfiguration {
7
+ /**
8
+ * Desired target quality of the highest representation expressed as CRF value
9
+ * @type {number}
10
+ * @memberof Av1PerTitleConfiguration
11
+ */
12
+ targetQualityCrf?: number;
7
13
  constructor(obj?: Partial<Av1PerTitleConfiguration>);
8
14
  }
9
15
  export default Av1PerTitleConfiguration;
@@ -16,6 +16,7 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.Av1PerTitleConfiguration = void 0;
19
+ var Mapper_1 = require("../common/Mapper");
19
20
  var PerTitleConfiguration_1 = require("./PerTitleConfiguration");
20
21
  /**
21
22
  * @export
@@ -28,6 +29,7 @@ var Av1PerTitleConfiguration = /** @class */ (function (_super) {
28
29
  if (!obj) {
29
30
  return _this;
30
31
  }
32
+ _this.targetQualityCrf = (0, Mapper_1.map)(obj.targetQualityCrf);
31
33
  return _this;
32
34
  }
33
35
  return Av1PerTitleConfiguration;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @export
3
+ * @enum {string}
4
+ */
5
+ export declare enum DashISO8601TimestampFormat {
6
+ LONG = "LONG",
7
+ SHORT = "SHORT"
8
+ }
9
+ export default DashISO8601TimestampFormat;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DashISO8601TimestampFormat = void 0;
4
+ /**
5
+ * @export
6
+ * @enum {string}
7
+ */
8
+ var DashISO8601TimestampFormat;
9
+ (function (DashISO8601TimestampFormat) {
10
+ DashISO8601TimestampFormat["LONG"] = "LONG";
11
+ DashISO8601TimestampFormat["SHORT"] = "SHORT";
12
+ })(DashISO8601TimestampFormat || (exports.DashISO8601TimestampFormat = DashISO8601TimestampFormat = {}));
13
+ exports.default = DashISO8601TimestampFormat;
@@ -1,4 +1,5 @@
1
1
  import DashEditionCompatibility from './DashEditionCompatibility';
2
+ import DashISO8601TimestampFormat from './DashISO8601TimestampFormat';
2
3
  import DashProfile from './DashProfile';
3
4
  import Manifest from './Manifest';
4
5
  import UtcTiming from './UtcTiming';
@@ -38,6 +39,12 @@ export declare class DashManifest extends Manifest {
38
39
  * @memberof DashManifest
39
40
  */
40
41
  dashEditionCompatibility?: DashEditionCompatibility;
42
+ /**
43
+ * Determines how timestamps should appear in the manifest
44
+ * @type {DashISO8601TimestampFormat}
45
+ * @memberof DashManifest
46
+ */
47
+ iso8601TimestampFormat?: DashISO8601TimestampFormat;
41
48
  constructor(obj?: Partial<DashManifest>);
42
49
  }
43
50
  export default DashManifest;
@@ -36,6 +36,7 @@ var DashManifest = /** @class */ (function (_super) {
36
36
  _this.namespaces = (0, Mapper_1.mapArray)(obj.namespaces, XmlNamespace_1.default);
37
37
  _this.utcTimings = (0, Mapper_1.mapArray)(obj.utcTimings, UtcTiming_1.default);
38
38
  _this.dashEditionCompatibility = (0, Mapper_1.map)(obj.dashEditionCompatibility);
39
+ _this.iso8601TimestampFormat = (0, Mapper_1.map)(obj.iso8601TimestampFormat);
39
40
  return _this;
40
41
  }
41
42
  return DashManifest;
@@ -22,6 +22,12 @@ export declare class H264PerTitleConfiguration extends PerTitleConfiguration {
22
22
  * @memberof H264PerTitleConfiguration
23
23
  */
24
24
  codecBufsizeFactor?: number;
25
+ /**
26
+ * Desired target quality of the highest representation expressed as CRF value
27
+ * @type {number}
28
+ * @memberof H264PerTitleConfiguration
29
+ */
30
+ targetQualityCrf?: number;
25
31
  constructor(obj?: Partial<H264PerTitleConfiguration>);
26
32
  }
27
33
  export default H264PerTitleConfiguration;
@@ -32,6 +32,7 @@ var H264PerTitleConfiguration = /** @class */ (function (_super) {
32
32
  _this.codecMinBitrateFactor = (0, Mapper_1.map)(obj.codecMinBitrateFactor);
33
33
  _this.codecMaxBitrateFactor = (0, Mapper_1.map)(obj.codecMaxBitrateFactor);
34
34
  _this.codecBufsizeFactor = (0, Mapper_1.map)(obj.codecBufsizeFactor);
35
+ _this.targetQualityCrf = (0, Mapper_1.map)(obj.targetQualityCrf);
35
36
  return _this;
36
37
  }
37
38
  return H264PerTitleConfiguration;
@@ -22,6 +22,12 @@ export declare class H265PerTitleConfiguration extends PerTitleConfiguration {
22
22
  * @memberof H265PerTitleConfiguration
23
23
  */
24
24
  codecBufsizeFactor?: number;
25
+ /**
26
+ * Desired target quality of the highest representation expressed as CRF value
27
+ * @type {number}
28
+ * @memberof H265PerTitleConfiguration
29
+ */
30
+ targetQualityCrf?: number;
25
31
  constructor(obj?: Partial<H265PerTitleConfiguration>);
26
32
  }
27
33
  export default H265PerTitleConfiguration;
@@ -32,6 +32,7 @@ var H265PerTitleConfiguration = /** @class */ (function (_super) {
32
32
  _this.codecMinBitrateFactor = (0, Mapper_1.map)(obj.codecMinBitrateFactor);
33
33
  _this.codecMaxBitrateFactor = (0, Mapper_1.map)(obj.codecMaxBitrateFactor);
34
34
  _this.codecBufsizeFactor = (0, Mapper_1.map)(obj.codecBufsizeFactor);
35
+ _this.targetQualityCrf = (0, Mapper_1.map)(obj.targetQualityCrf);
35
36
  return _this;
36
37
  }
37
38
  return H265PerTitleConfiguration;
@@ -24,7 +24,7 @@ export declare class PerTitleConfiguration {
24
24
  */
25
25
  minBitrateStepSize?: number;
26
26
  /**
27
- * The maximum ratio between the bitrates of neighbouring renditions, e.g., if the first bitrate is 240,000, a maximum ratio of 1.5 will require the next higher bitrate to be at most 360,000
27
+ * The maximum ratio between the bitrates of neighbouring renditions, e.g., if the first bitrate is 240,000, a maximum ratio of 1.9 will require the next higher bitrate to be at most 456,000
28
28
  * @type {number}
29
29
  * @memberof PerTitleConfiguration
30
30
  */
@@ -46,12 +46,6 @@ export declare class PerTitleConfiguration {
46
46
  * @memberof PerTitleConfiguration
47
47
  */
48
48
  fixedResolutionAndBitrateConfiguration?: PerTitleFixedResolutionAndBitrateConfiguration;
49
- /**
50
- * Desired target quality of the highest representation expressed as CRF value
51
- * @type {number}
52
- * @memberof PerTitleConfiguration
53
- */
54
- targetQualityCrf?: number;
55
49
  /**
56
50
  * This factor influences the resolution selection of the per-title algorithm. The default value is 0.0. negative values will lead to results where the algorithm will choose lower resolutions for given bitrates. A positive value will result in higher resolutions to be selected. The range of the factor is -5.0 to +5.0. Please note that changing this factor might also lead to slightly different bitrate selection by the algorithm.
57
51
  * @type {number}
@@ -20,7 +20,6 @@ var PerTitleConfiguration = /** @class */ (function () {
20
20
  this.autoRepresentations = (0, Mapper_1.map)(obj.autoRepresentations, AutoRepresentation_1.default);
21
21
  this.complexityFactor = (0, Mapper_1.map)(obj.complexityFactor);
22
22
  this.fixedResolutionAndBitrateConfiguration = (0, Mapper_1.map)(obj.fixedResolutionAndBitrateConfiguration, PerTitleFixedResolutionAndBitrateConfiguration_1.default);
23
- this.targetQualityCrf = (0, Mapper_1.map)(obj.targetQualityCrf);
24
23
  this.resolutionScaleFactor = (0, Mapper_1.map)(obj.resolutionScaleFactor);
25
24
  }
26
25
  return PerTitleConfiguration;
@@ -0,0 +1,20 @@
1
+ import ProgramDateTimePlacementMode from './ProgramDateTimePlacementMode';
2
+ /**
3
+ * @export
4
+ * @class ProgramDateTimePlacement
5
+ */
6
+ export declare class ProgramDateTimePlacement {
7
+ /**
8
+ * @type {ProgramDateTimePlacementMode}
9
+ * @memberof ProgramDateTimePlacement
10
+ */
11
+ programDateTimePlacementMode?: ProgramDateTimePlacementMode;
12
+ /**
13
+ * Interval for placing ProgramDateTime. Only required for SEGMENTS_INTERVAL or SECONDS_INTERVAL.
14
+ * @type {number}
15
+ * @memberof ProgramDateTimePlacement
16
+ */
17
+ interval?: number;
18
+ constructor(obj?: Partial<ProgramDateTimePlacement>);
19
+ }
20
+ export default ProgramDateTimePlacement;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProgramDateTimePlacement = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ /**
6
+ * @export
7
+ * @class ProgramDateTimePlacement
8
+ */
9
+ var ProgramDateTimePlacement = /** @class */ (function () {
10
+ function ProgramDateTimePlacement(obj) {
11
+ if (!obj) {
12
+ return;
13
+ }
14
+ this.programDateTimePlacementMode = (0, Mapper_1.map)(obj.programDateTimePlacementMode);
15
+ this.interval = (0, Mapper_1.map)(obj.interval);
16
+ }
17
+ return ProgramDateTimePlacement;
18
+ }());
19
+ exports.ProgramDateTimePlacement = ProgramDateTimePlacement;
20
+ exports.default = ProgramDateTimePlacement;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Placement mode of the ProgramDateTime tag.
3
+ * @export
4
+ * @enum {string}
5
+ */
6
+ export declare enum ProgramDateTimePlacementMode {
7
+ ONCE_PER_PLAYLIST = "ONCE_PER_PLAYLIST",
8
+ SEGMENTS_INTERVAL = "SEGMENTS_INTERVAL",
9
+ SECONDS_INTERVAL = "SECONDS_INTERVAL"
10
+ }
11
+ export default ProgramDateTimePlacementMode;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProgramDateTimePlacementMode = void 0;
4
+ /**
5
+ * Placement mode of the ProgramDateTime tag.
6
+ * @export
7
+ * @enum {string}
8
+ */
9
+ var ProgramDateTimePlacementMode;
10
+ (function (ProgramDateTimePlacementMode) {
11
+ ProgramDateTimePlacementMode["ONCE_PER_PLAYLIST"] = "ONCE_PER_PLAYLIST";
12
+ ProgramDateTimePlacementMode["SEGMENTS_INTERVAL"] = "SEGMENTS_INTERVAL";
13
+ ProgramDateTimePlacementMode["SECONDS_INTERVAL"] = "SECONDS_INTERVAL";
14
+ })(ProgramDateTimePlacementMode || (exports.ProgramDateTimePlacementMode = ProgramDateTimePlacementMode = {}));
15
+ exports.default = ProgramDateTimePlacementMode;
@@ -1,3 +1,4 @@
1
+ import ProgramDateTimePlacement from './ProgramDateTimePlacement';
1
2
  import ProgramDateTimeSource from './ProgramDateTimeSource';
2
3
  /**
3
4
  * @export
@@ -9,6 +10,11 @@ export declare class ProgramDateTimeSettings {
9
10
  * @memberof ProgramDateTimeSettings
10
11
  */
11
12
  programDateTimeSource?: ProgramDateTimeSource;
13
+ /**
14
+ * @type {ProgramDateTimePlacement}
15
+ * @memberof ProgramDateTimeSettings
16
+ */
17
+ programDateTimePlacement?: ProgramDateTimePlacement;
12
18
  constructor(obj?: Partial<ProgramDateTimeSettings>);
13
19
  }
14
20
  export default ProgramDateTimeSettings;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ProgramDateTimeSettings = void 0;
4
4
  var Mapper_1 = require("../common/Mapper");
5
+ var ProgramDateTimePlacement_1 = require("./ProgramDateTimePlacement");
5
6
  /**
6
7
  * @export
7
8
  * @class ProgramDateTimeSettings
@@ -12,6 +13,7 @@ var ProgramDateTimeSettings = /** @class */ (function () {
12
13
  return;
13
14
  }
14
15
  this.programDateTimeSource = (0, Mapper_1.map)(obj.programDateTimeSource);
16
+ this.programDateTimePlacement = (0, Mapper_1.map)(obj.programDateTimePlacement, ProgramDateTimePlacement_1.default);
15
17
  }
16
18
  return ProgramDateTimeSettings;
17
19
  }());
@@ -4,6 +4,12 @@ import PerTitleConfiguration from './PerTitleConfiguration';
4
4
  * @class Vp9PerTitleConfiguration
5
5
  */
6
6
  export declare class Vp9PerTitleConfiguration extends PerTitleConfiguration {
7
+ /**
8
+ * Desired target quality of the highest representation expressed as CRF value
9
+ * @type {number}
10
+ * @memberof Vp9PerTitleConfiguration
11
+ */
12
+ targetQualityCrf?: number;
7
13
  constructor(obj?: Partial<Vp9PerTitleConfiguration>);
8
14
  }
9
15
  export default Vp9PerTitleConfiguration;
@@ -16,6 +16,7 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.Vp9PerTitleConfiguration = void 0;
19
+ var Mapper_1 = require("../common/Mapper");
19
20
  var PerTitleConfiguration_1 = require("./PerTitleConfiguration");
20
21
  /**
21
22
  * @export
@@ -28,6 +29,7 @@ var Vp9PerTitleConfiguration = /** @class */ (function (_super) {
28
29
  if (!obj) {
29
30
  return _this;
30
31
  }
32
+ _this.targetQualityCrf = (0, Mapper_1.map)(obj.targetQualityCrf);
31
33
  return _this;
32
34
  }
33
35
  return Vp9PerTitleConfiguration;
@@ -233,6 +233,7 @@ export * from './DashCmafRepresentation';
233
233
  export * from './DashEditionCompatibility';
234
234
  export * from './DashFmp4DrmRepresentation';
235
235
  export * from './DashFmp4Representation';
236
+ export * from './DashISO8601TimestampFormat';
236
237
  export * from './DashImscRepresentation';
237
238
  export * from './DashManifest';
238
239
  export * from './DashManifestDefault';
@@ -587,6 +588,8 @@ export * from './PrimeTimeDrm';
587
588
  export * from './ProfileH262';
588
589
  export * from './ProfileH264';
589
590
  export * from './ProfileH265';
591
+ export * from './ProgramDateTimePlacement';
592
+ export * from './ProgramDateTimePlacementMode';
590
593
  export * from './ProgramDateTimeSettings';
591
594
  export * from './ProgramDateTimeSource';
592
595
  export * from './ProgressiveMovMuxing';
@@ -249,6 +249,7 @@ __exportStar(require("./DashCmafRepresentation"), exports);
249
249
  __exportStar(require("./DashEditionCompatibility"), exports);
250
250
  __exportStar(require("./DashFmp4DrmRepresentation"), exports);
251
251
  __exportStar(require("./DashFmp4Representation"), exports);
252
+ __exportStar(require("./DashISO8601TimestampFormat"), exports);
252
253
  __exportStar(require("./DashImscRepresentation"), exports);
253
254
  __exportStar(require("./DashManifest"), exports);
254
255
  __exportStar(require("./DashManifestDefault"), exports);
@@ -603,6 +604,8 @@ __exportStar(require("./PrimeTimeDrm"), exports);
603
604
  __exportStar(require("./ProfileH262"), exports);
604
605
  __exportStar(require("./ProfileH264"), exports);
605
606
  __exportStar(require("./ProfileH265"), exports);
607
+ __exportStar(require("./ProgramDateTimePlacement"), exports);
608
+ __exportStar(require("./ProgramDateTimePlacementMode"), exports);
606
609
  __exportStar(require("./ProgramDateTimeSettings"), exports);
607
610
  __exportStar(require("./ProgramDateTimeSource"), exports);
608
611
  __exportStar(require("./ProgressiveMovMuxing"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmovin/api-sdk",
3
- "version": "1.217.0",
3
+ "version": "1.219.0",
4
4
  "description": "Bitmovin JS/TS API SDK",
5
5
  "author": "Bitmovin Inc",
6
6
  "keywords": [
@@ -24,15 +24,12 @@
24
24
  "format-check": "prettier --list-different \"./src/**/*.{ts,tsx,scss}\""
25
25
  },
26
26
  "dependencies": {
27
- "es6-promise": "^4.2.5",
28
- "isomorphic-fetch": ">=3.0.0",
29
27
  "url-join": "^4.0.0"
30
28
  },
31
29
  "files": [
32
30
  "dist"
33
31
  ],
34
32
  "devDependencies": {
35
- "@types/isomorphic-fetch": ">=0.0.35",
36
33
  "@types/node": "^20.8.9",
37
34
  "ts-loader": "^9.2.8",
38
35
  "cross-env": "^5.2.0",
@@ -1,7 +0,0 @@
1
- /*!
2
- * @overview es6-promise - a tiny implementation of Promises/A+.
3
- * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
4
- * @license Licensed under MIT license
5
- * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
6
- * @version v4.2.8+1e68dce6
7
- */