@bitmovin/api-sdk 1.252.0 → 1.253.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.
@@ -240,7 +240,7 @@ var HeaderHandler = /** @class */ (function (_super) {
240
240
  var headers = {
241
241
  'X-Api-Key': apiKey,
242
242
  'X-Api-Client': 'bitmovin-api-sdk-javascript',
243
- 'X-Api-Client-Version': '1.252.0',
243
+ 'X-Api-Client-Version': '1.253.0',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -10,6 +10,7 @@ import TransferRetriesApi from './transferRetries/TransferRetriesApi';
10
10
  import OutputPathsApi from './outputPaths/OutputPathsApi';
11
11
  import CaptionsApi from './captions/CaptionsApi';
12
12
  import SidecarsApi from './sidecars/SidecarsApi';
13
+ import KantarWatermarkApi from './kantarWatermark/KantarWatermarkApi';
13
14
  import KeyframesApi from './keyframes/KeyframesApi';
14
15
  import Scte35TriggersApi from './scte35Triggers/Scte35TriggersApi';
15
16
  import BitmovinResponse from '../../models/BitmovinResponse';
@@ -37,6 +38,7 @@ export default class EncodingsApi extends BaseAPI {
37
38
  outputPaths: OutputPathsApi;
38
39
  captions: CaptionsApi;
39
40
  sidecars: SidecarsApi;
41
+ kantarWatermark: KantarWatermarkApi;
40
42
  keyframes: KeyframesApi;
41
43
  scte35Triggers: Scte35TriggersApi;
42
44
  constructor(configuration: Configuration);
@@ -27,6 +27,7 @@ var TransferRetriesApi_1 = require("./transferRetries/TransferRetriesApi");
27
27
  var OutputPathsApi_1 = require("./outputPaths/OutputPathsApi");
28
28
  var CaptionsApi_1 = require("./captions/CaptionsApi");
29
29
  var SidecarsApi_1 = require("./sidecars/SidecarsApi");
30
+ var KantarWatermarkApi_1 = require("./kantarWatermark/KantarWatermarkApi");
30
31
  var KeyframesApi_1 = require("./keyframes/KeyframesApi");
31
32
  var Scte35TriggersApi_1 = require("./scte35Triggers/Scte35TriggersApi");
32
33
  var BitmovinResponse_1 = require("../../models/BitmovinResponse");
@@ -55,6 +56,7 @@ var EncodingsApi = /** @class */ (function (_super) {
55
56
  _this.outputPaths = new OutputPathsApi_1.default(configuration);
56
57
  _this.captions = new CaptionsApi_1.default(configuration);
57
58
  _this.sidecars = new SidecarsApi_1.default(configuration);
59
+ _this.kantarWatermark = new KantarWatermarkApi_1.default(configuration);
58
60
  _this.keyframes = new KeyframesApi_1.default(configuration);
59
61
  _this.scte35Triggers = new Scte35TriggersApi_1.default(configuration);
60
62
  return _this;
@@ -0,0 +1,35 @@
1
+ import { BaseAPI } from '../../../common/BaseAPI';
2
+ import Configuration from '../../../common/Configuration';
3
+ import BitmovinResponse from '../../../models/BitmovinResponse';
4
+ import KantarWatermark from '../../../models/KantarWatermark';
5
+ /**
6
+ * KantarWatermarkApi - object-oriented interface
7
+ * @export
8
+ * @class KantarWatermarkApi
9
+ * @extends {BaseAPI}
10
+ */
11
+ export default class KantarWatermarkApi extends BaseAPI {
12
+ constructor(configuration: Configuration);
13
+ /**
14
+ * @summary Create or replace the Kantar Watermark for an encoding
15
+ * @param {string} encodingId Id of the encoding.
16
+ * @param {KantarWatermark} kantarWatermark The Kantar Watermark to be created
17
+ * @throws {BitmovinError}
18
+ * @memberof KantarWatermarkApi
19
+ */
20
+ create(encodingId: string, kantarWatermark?: KantarWatermark): Promise<KantarWatermark>;
21
+ /**
22
+ * @summary Delete the Kantar Watermark for an encoding
23
+ * @param {string} encodingId Id of the encoding.
24
+ * @throws {BitmovinError}
25
+ * @memberof KantarWatermarkApi
26
+ */
27
+ delete(encodingId: string): Promise<BitmovinResponse>;
28
+ /**
29
+ * @summary Get the Kantar Watermark for an encoding
30
+ * @param {string} encodingId Id of the encoding.
31
+ * @throws {BitmovinError}
32
+ * @memberof KantarWatermarkApi
33
+ */
34
+ get(encodingId: string): Promise<KantarWatermark>;
35
+ }
@@ -0,0 +1,78 @@
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 BitmovinResponse_1 = require("../../../models/BitmovinResponse");
21
+ var KantarWatermark_1 = require("../../../models/KantarWatermark");
22
+ /**
23
+ * KantarWatermarkApi - object-oriented interface
24
+ * @export
25
+ * @class KantarWatermarkApi
26
+ * @extends {BaseAPI}
27
+ */
28
+ var KantarWatermarkApi = /** @class */ (function (_super) {
29
+ __extends(KantarWatermarkApi, _super);
30
+ function KantarWatermarkApi(configuration) {
31
+ return _super.call(this, configuration) || this;
32
+ }
33
+ /**
34
+ * @summary Create or replace the Kantar Watermark for an encoding
35
+ * @param {string} encodingId Id of the encoding.
36
+ * @param {KantarWatermark} kantarWatermark The Kantar Watermark to be created
37
+ * @throws {BitmovinError}
38
+ * @memberof KantarWatermarkApi
39
+ */
40
+ KantarWatermarkApi.prototype.create = function (encodingId, kantarWatermark) {
41
+ var pathParamMap = {
42
+ encoding_id: encodingId
43
+ };
44
+ return this.restClient.post('/encoding/encodings/{encoding_id}/kantar-watermark', pathParamMap, kantarWatermark).then(function (response) {
45
+ return (0, Mapper_1.map)(response, KantarWatermark_1.default);
46
+ });
47
+ };
48
+ /**
49
+ * @summary Delete the Kantar Watermark for an encoding
50
+ * @param {string} encodingId Id of the encoding.
51
+ * @throws {BitmovinError}
52
+ * @memberof KantarWatermarkApi
53
+ */
54
+ KantarWatermarkApi.prototype.delete = function (encodingId) {
55
+ var pathParamMap = {
56
+ encoding_id: encodingId
57
+ };
58
+ return this.restClient.delete('/encoding/encodings/{encoding_id}/kantar-watermark', pathParamMap).then(function (response) {
59
+ return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
60
+ });
61
+ };
62
+ /**
63
+ * @summary Get the Kantar Watermark for an encoding
64
+ * @param {string} encodingId Id of the encoding.
65
+ * @throws {BitmovinError}
66
+ * @memberof KantarWatermarkApi
67
+ */
68
+ KantarWatermarkApi.prototype.get = function (encodingId) {
69
+ var pathParamMap = {
70
+ encoding_id: encodingId
71
+ };
72
+ return this.restClient.get('/encoding/encodings/{encoding_id}/kantar-watermark', pathParamMap).then(function (response) {
73
+ return (0, Mapper_1.map)(response, KantarWatermark_1.default);
74
+ });
75
+ };
76
+ return KantarWatermarkApi;
77
+ }(BaseAPI_1.BaseAPI));
78
+ exports.default = KantarWatermarkApi;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Mode of clock synchronization for ad insertion
3
+ * @export
4
+ * @enum {string}
5
+ */
6
+ export declare enum ClockSynchronizationMode {
7
+ SYSTEM_CLOCK = "SYSTEM_CLOCK",
8
+ EMBEDDED = "EMBEDDED"
9
+ }
10
+ export default ClockSynchronizationMode;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClockSynchronizationMode = void 0;
4
+ /**
5
+ * Mode of clock synchronization for ad insertion
6
+ * @export
7
+ * @enum {string}
8
+ */
9
+ var ClockSynchronizationMode;
10
+ (function (ClockSynchronizationMode) {
11
+ ClockSynchronizationMode["SYSTEM_CLOCK"] = "SYSTEM_CLOCK";
12
+ ClockSynchronizationMode["EMBEDDED"] = "EMBEDDED";
13
+ })(ClockSynchronizationMode || (exports.ClockSynchronizationMode = ClockSynchronizationMode = {}));
14
+ exports.default = ClockSynchronizationMode;
@@ -7,7 +7,12 @@ export declare class IABTaxonomy {
7
7
  * @type {string}
8
8
  * @memberof IABTaxonomy
9
9
  */
10
- version?: string;
10
+ contentVersion?: string;
11
+ /**
12
+ * @type {string}
13
+ * @memberof IABTaxonomy
14
+ */
15
+ adProductVersion?: string;
11
16
  /**
12
17
  * @type {string[]}
13
18
  * @memberof IABTaxonomy
@@ -11,7 +11,8 @@ var IABTaxonomy = /** @class */ (function () {
11
11
  if (!obj) {
12
12
  return;
13
13
  }
14
- this.version = (0, Mapper_1.map)(obj.version);
14
+ this.contentVersion = (0, Mapper_1.map)(obj.contentVersion);
15
+ this.adProductVersion = (0, Mapper_1.map)(obj.adProductVersion);
15
16
  this.contentTaxonomies = (0, Mapper_1.mapArray)(obj.contentTaxonomies);
16
17
  this.adOpportunityTaxonomies = (0, Mapper_1.mapArray)(obj.adOpportunityTaxonomies);
17
18
  this.sensitiveTopicTaxonomies = (0, Mapper_1.mapArray)(obj.sensitiveTopicTaxonomies);
@@ -0,0 +1,52 @@
1
+ import BitmovinResponse from './BitmovinResponse';
2
+ import EncodingOutput from './EncodingOutput';
3
+ /**
4
+ * @export
5
+ * @class KantarWatermark
6
+ */
7
+ export declare class KantarWatermark extends BitmovinResponse {
8
+ /**
9
+ * Username used to authenticate with the Kantar watermarking service. (required)
10
+ * @type {string}
11
+ * @memberof KantarWatermark
12
+ */
13
+ login?: string;
14
+ /**
15
+ * Password associated with the provided login for authentication. (required)
16
+ * @type {string}
17
+ * @memberof KantarWatermark
18
+ */
19
+ password?: string;
20
+ /**
21
+ * Identifier of the Kantar license to be used when processing the audio watermark. (required)
22
+ * @type {number}
23
+ * @memberof KantarWatermark
24
+ */
25
+ licenseId?: number;
26
+ /**
27
+ * Name of the distribution channel associated with the audio content being watermarked. (required)
28
+ * @type {string}
29
+ * @memberof KantarWatermark
30
+ */
31
+ channelName?: string;
32
+ /**
33
+ * Unique reference or identifier for the audio content that will be processed. (required)
34
+ * @type {string}
35
+ * @memberof KantarWatermark
36
+ */
37
+ contentReference?: string;
38
+ /**
39
+ * URL of the Kantar server endpoint used to apply or validate the audio watermark. (required)
40
+ * @type {string}
41
+ * @memberof KantarWatermark
42
+ */
43
+ serverUrl?: string;
44
+ /**
45
+ * The outputs where the processing report should be delivered. (required)
46
+ * @type {EncodingOutput[]}
47
+ * @memberof KantarWatermark
48
+ */
49
+ reportOutputs?: EncodingOutput[];
50
+ constructor(obj?: Partial<KantarWatermark>);
51
+ }
52
+ export default KantarWatermark;
@@ -0,0 +1,45 @@
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
+ exports.KantarWatermark = void 0;
19
+ var Mapper_1 = require("../common/Mapper");
20
+ var BitmovinResponse_1 = require("./BitmovinResponse");
21
+ var EncodingOutput_1 = require("./EncodingOutput");
22
+ /**
23
+ * @export
24
+ * @class KantarWatermark
25
+ */
26
+ var KantarWatermark = /** @class */ (function (_super) {
27
+ __extends(KantarWatermark, _super);
28
+ function KantarWatermark(obj) {
29
+ var _this = _super.call(this, obj) || this;
30
+ if (!obj) {
31
+ return _this;
32
+ }
33
+ _this.login = (0, Mapper_1.map)(obj.login);
34
+ _this.password = (0, Mapper_1.map)(obj.password);
35
+ _this.licenseId = (0, Mapper_1.map)(obj.licenseId);
36
+ _this.channelName = (0, Mapper_1.map)(obj.channelName);
37
+ _this.contentReference = (0, Mapper_1.map)(obj.contentReference);
38
+ _this.serverUrl = (0, Mapper_1.map)(obj.serverUrl);
39
+ _this.reportOutputs = (0, Mapper_1.mapArray)(obj.reportOutputs, EncodingOutput_1.default);
40
+ return _this;
41
+ }
42
+ return KantarWatermark;
43
+ }(BitmovinResponse_1.default));
44
+ exports.KantarWatermark = KantarWatermark;
45
+ exports.default = KantarWatermark;
@@ -1,3 +1,4 @@
1
+ import ClockSynchronizationMode from './ClockSynchronizationMode';
1
2
  import LiveEncodingEventName from './LiveEncodingEventName';
2
3
  /**
3
4
  * @export
@@ -16,11 +17,53 @@ export declare class LiveEncodingStatsEventDetails {
16
17
  */
17
18
  message?: string;
18
19
  /**
19
- * Additional event details as key-value pairs
20
- * @type {string}
20
+ * Source used for clock-synchronization
21
+ * @type {ClockSynchronizationMode}
22
+ * @memberof LiveEncodingStatsEventDetails
23
+ */
24
+ source?: ClockSynchronizationMode;
25
+ /**
26
+ * Year specified in picture timing
27
+ * @type {number}
28
+ * @memberof LiveEncodingStatsEventDetails
29
+ */
30
+ year?: number;
31
+ /**
32
+ * Month specified in picture timing
33
+ * @type {number}
34
+ * @memberof LiveEncodingStatsEventDetails
35
+ */
36
+ month?: number;
37
+ /**
38
+ * Day specified in picture timing
39
+ * @type {number}
40
+ * @memberof LiveEncodingStatsEventDetails
41
+ */
42
+ day?: number;
43
+ /**
44
+ * Hours specified in picture timing
45
+ * @type {number}
46
+ * @memberof LiveEncodingStatsEventDetails
47
+ */
48
+ hours?: number;
49
+ /**
50
+ * Minutes specified in picture timing
51
+ * @type {number}
52
+ * @memberof LiveEncodingStatsEventDetails
53
+ */
54
+ minutes?: number;
55
+ /**
56
+ * Seconds specified in picture timing
57
+ * @type {number}
58
+ * @memberof LiveEncodingStatsEventDetails
59
+ */
60
+ seconds?: number;
61
+ /**
62
+ * Microseconds specified in picture timing
63
+ * @type {number}
21
64
  * @memberof LiveEncodingStatsEventDetails
22
65
  */
23
- additionalProperties?: string;
66
+ microSeconds?: number;
24
67
  constructor(obj?: Partial<LiveEncodingStatsEventDetails>);
25
68
  }
26
69
  export default LiveEncodingStatsEventDetails;
@@ -13,7 +13,14 @@ var LiveEncodingStatsEventDetails = /** @class */ (function () {
13
13
  }
14
14
  this.eventType = (0, Mapper_1.map)(obj.eventType);
15
15
  this.message = (0, Mapper_1.map)(obj.message);
16
- this.additionalProperties = (0, Mapper_1.map)(obj.additionalProperties);
16
+ this.source = (0, Mapper_1.map)(obj.source);
17
+ this.year = (0, Mapper_1.map)(obj.year);
18
+ this.month = (0, Mapper_1.map)(obj.month);
19
+ this.day = (0, Mapper_1.map)(obj.day);
20
+ this.hours = (0, Mapper_1.map)(obj.hours);
21
+ this.minutes = (0, Mapper_1.map)(obj.minutes);
22
+ this.seconds = (0, Mapper_1.map)(obj.seconds);
23
+ this.microSeconds = (0, Mapper_1.map)(obj.microSeconds);
17
24
  }
18
25
  return LiveEncodingStatsEventDetails;
19
26
  }());
@@ -211,6 +211,7 @@ export * from './CheckOutputPermissionsResponse';
211
211
  export * from './ChromaLocation';
212
212
  export * from './ChunkedTextMuxing';
213
213
  export * from './ClearKeyDrm';
214
+ export * from './ClockSynchronizationMode';
214
215
  export * from './ClosedCaptionsMediaInfo';
215
216
  export * from './CloudRegion';
216
217
  export * from './CmafMuxing';
@@ -477,6 +478,7 @@ export * from './InterlaceMode';
477
478
  export * from './Invitation';
478
479
  export * from './InvitationStatus';
479
480
  export * from './IvSize';
481
+ export * from './KantarWatermark';
480
482
  export * from './Keyframe';
481
483
  export * from './Label';
482
484
  export * from './LevelH262';
@@ -227,6 +227,7 @@ __exportStar(require("./CheckOutputPermissionsResponse"), exports);
227
227
  __exportStar(require("./ChromaLocation"), exports);
228
228
  __exportStar(require("./ChunkedTextMuxing"), exports);
229
229
  __exportStar(require("./ClearKeyDrm"), exports);
230
+ __exportStar(require("./ClockSynchronizationMode"), exports);
230
231
  __exportStar(require("./ClosedCaptionsMediaInfo"), exports);
231
232
  __exportStar(require("./CloudRegion"), exports);
232
233
  __exportStar(require("./CmafMuxing"), exports);
@@ -493,6 +494,7 @@ __exportStar(require("./InterlaceMode"), exports);
493
494
  __exportStar(require("./Invitation"), exports);
494
495
  __exportStar(require("./InvitationStatus"), exports);
495
496
  __exportStar(require("./IvSize"), exports);
497
+ __exportStar(require("./KantarWatermark"), exports);
496
498
  __exportStar(require("./Keyframe"), exports);
497
499
  __exportStar(require("./Label"), exports);
498
500
  __exportStar(require("./LevelH262"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmovin/api-sdk",
3
- "version": "1.252.0",
3
+ "version": "1.253.0",
4
4
  "description": "Bitmovin JS/TS API SDK",
5
5
  "author": "Bitmovin Inc",
6
6
  "keywords": [
@@ -33,7 +33,7 @@
33
33
  ],
34
34
  "devDependencies": {
35
35
  "@types/isomorphic-fetch": ">=0.0.35",
36
- "@types/node": "^20.8.9",
36
+ "@types/node": "^24.10.2",
37
37
  "ts-loader": "^9.2.8",
38
38
  "cross-env": "^5.2.0",
39
39
  "prettier": "^1.16.4",