@bitmovin/api-sdk 1.158.0 → 1.159.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.158.0',
243
+ 'X-Api-Client-Version': '1.159.0',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Enable/disable automatic calculation of level, maxBitrate, and bufsize based on the least level that satisfies maximum property values for picture resolution, frame rate, and bit rate.
3
+ * @export
4
+ * @enum {string}
5
+ */
6
+ export declare enum AutoLevelSetup {
7
+ ENABLED = "ENABLED",
8
+ DISABLED = "DISABLED"
9
+ }
10
+ export default AutoLevelSetup;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AutoLevelSetup = void 0;
4
+ /**
5
+ * Enable/disable automatic calculation of level, maxBitrate, and bufsize based on the least level that satisfies maximum property values for picture resolution, frame rate, and bit rate.
6
+ * @export
7
+ * @enum {string}
8
+ */
9
+ var AutoLevelSetup;
10
+ (function (AutoLevelSetup) {
11
+ AutoLevelSetup["ENABLED"] = "ENABLED";
12
+ AutoLevelSetup["DISABLED"] = "DISABLED";
13
+ })(AutoLevelSetup = exports.AutoLevelSetup || (exports.AutoLevelSetup = {}));
14
+ exports.default = AutoLevelSetup;
@@ -1,3 +1,4 @@
1
+ import AutoLevelSetup from './AutoLevelSetup';
1
2
  import Av1PresetConfiguration from './Av1PresetConfiguration';
2
3
  import CodecConfigType from './CodecConfigType';
3
4
  import VideoConfiguration from './VideoConfiguration';
@@ -18,6 +19,12 @@ export declare class Av1VideoConfiguration extends VideoConfiguration {
18
19
  * @memberof Av1VideoConfiguration
19
20
  */
20
21
  presetConfiguration?: Av1PresetConfiguration;
22
+ /**
23
+ * Enable/disable automatic calculation of level, maxBitrate, and bufsize based on the least level that satisfies maximum property values for picture resolution, frame rate, and bit rate.
24
+ * @type {AutoLevelSetup}
25
+ * @memberof Av1VideoConfiguration
26
+ */
27
+ autoLevelSetup?: AutoLevelSetup;
21
28
  constructor(obj?: Partial<Av1VideoConfiguration>);
22
29
  }
23
30
  export default Av1VideoConfiguration;
@@ -37,6 +37,7 @@ var Av1VideoConfiguration = /** @class */ (function (_super) {
37
37
  return _this;
38
38
  }
39
39
  _this.presetConfiguration = (0, Mapper_1.map)(obj.presetConfiguration);
40
+ _this.autoLevelSetup = (0, Mapper_1.map)(obj.autoLevelSetup);
40
41
  return _this;
41
42
  }
42
43
  return Av1VideoConfiguration;
@@ -1,4 +1,5 @@
1
1
  import AdaptiveQuantMode from './AdaptiveQuantMode';
2
+ import AutoLevelSetup from './AutoLevelSetup';
2
3
  import BAdapt from './BAdapt';
3
4
  import Cea608708SubtitleConfiguration from './Cea608708SubtitleConfiguration';
4
5
  import CodecConfigType from './CodecConfigType';
@@ -294,6 +295,12 @@ export declare class H264VideoConfiguration extends VideoConfiguration {
294
295
  * @memberof H264VideoConfiguration
295
296
  */
296
297
  psyTrellis?: number;
298
+ /**
299
+ * Enable/disable automatic calculation of level, maxBitrate, and bufsize based on the least level that satisfies maximum property values for picture resolution, frame rate, and bit rate. Explicitly setting level, maxBitrate, or bufsize properties will automatically disable the calculation.
300
+ * @type {AutoLevelSetup}
301
+ * @memberof H264VideoConfiguration
302
+ */
303
+ autoLevelSetup?: AutoLevelSetup;
297
304
  constructor(obj?: Partial<H264VideoConfiguration>);
298
305
  }
299
306
  export default H264VideoConfiguration;
@@ -82,6 +82,7 @@ var H264VideoConfiguration = /** @class */ (function (_super) {
82
82
  _this.quantizerCurveCompression = (0, Mapper_1.map)(obj.quantizerCurveCompression);
83
83
  _this.psyRateDistortionOptimization = (0, Mapper_1.map)(obj.psyRateDistortionOptimization);
84
84
  _this.psyTrellis = (0, Mapper_1.map)(obj.psyTrellis);
85
+ _this.autoLevelSetup = (0, Mapper_1.map)(obj.autoLevelSetup);
85
86
  return _this;
86
87
  }
87
88
  return H264VideoConfiguration;
@@ -1,4 +1,5 @@
1
1
  import AdaptiveQuantMode from './AdaptiveQuantMode';
2
+ import AutoLevelSetup from './AutoLevelSetup';
2
3
  import BAdapt from './BAdapt';
3
4
  import Cea608708SubtitleConfiguration from './Cea608708SubtitleConfiguration';
4
5
  import CodecConfigType from './CodecConfigType';
@@ -602,6 +603,12 @@ export declare class H265VideoConfiguration extends VideoConfiguration {
602
603
  * @memberof H265VideoConfiguration
603
604
  */
604
605
  cea608708SubtitleConfig?: Cea608708SubtitleConfiguration;
606
+ /**
607
+ * Enable/disable automatic calculation of level, maxBitrate, and bufsize based on the least level that satisfies maximum property values for picture resolution, frame rate, and bit rate. Explicitly setting level, maxBitrate, or bufsize properties will automatically disable the calculation.
608
+ * @type {AutoLevelSetup}
609
+ * @memberof H265VideoConfiguration
610
+ */
611
+ autoLevelSetup?: AutoLevelSetup;
605
612
  constructor(obj?: Partial<H265VideoConfiguration>);
606
613
  }
607
614
  export default H265VideoConfiguration;
@@ -133,6 +133,7 @@ var H265VideoConfiguration = /** @class */ (function (_super) {
133
133
  _this.limitSao = (0, Mapper_1.map)(obj.limitSao);
134
134
  _this.lowpassDct = (0, Mapper_1.map)(obj.lowpassDct);
135
135
  _this.cea608708SubtitleConfig = (0, Mapper_1.map)(obj.cea608708SubtitleConfig, Cea608708SubtitleConfiguration_1.default);
136
+ _this.autoLevelSetup = (0, Mapper_1.map)(obj.autoLevelSetup);
136
137
  return _this;
137
138
  }
138
139
  return H265VideoConfiguration;
@@ -46,6 +46,12 @@ export declare class StreamsLiveResponse {
46
46
  * @memberof StreamsLiveResponse
47
47
  */
48
48
  config?: StreamsConfigResponse;
49
+ /**
50
+ * Poster URL
51
+ * @type {string}
52
+ * @memberof StreamsLiveResponse
53
+ */
54
+ posterUrl?: string;
49
55
  constructor(obj?: Partial<StreamsLiveResponse>);
50
56
  }
51
57
  export default StreamsLiveResponse;
@@ -19,6 +19,7 @@ var StreamsLiveResponse = /** @class */ (function () {
19
19
  this.createdAt = (0, Mapper_1.map)(obj.createdAt, Date);
20
20
  this.lifeCycle = (0, Mapper_1.map)(obj.lifeCycle);
21
21
  this.config = (0, Mapper_1.map)(obj.config, StreamsConfigResponse_1.default);
22
+ this.posterUrl = (0, Mapper_1.map)(obj.posterUrl);
22
23
  }
23
24
  return StreamsLiveResponse;
24
25
  }());
@@ -21,6 +21,12 @@ export declare class StreamsLiveUpdateRequest {
21
21
  * @memberof StreamsLiveUpdateRequest
22
22
  */
23
23
  configId?: string;
24
+ /**
25
+ * URL to hosted poster image
26
+ * @type {string}
27
+ * @memberof StreamsLiveUpdateRequest
28
+ */
29
+ posterUrl?: string;
24
30
  constructor(obj?: Partial<StreamsLiveUpdateRequest>);
25
31
  }
26
32
  export default StreamsLiveUpdateRequest;
@@ -14,6 +14,7 @@ var StreamsLiveUpdateRequest = /** @class */ (function () {
14
14
  this.title = (0, Mapper_1.map)(obj.title);
15
15
  this.description = (0, Mapper_1.map)(obj.description);
16
16
  this.configId = (0, Mapper_1.map)(obj.configId);
17
+ this.posterUrl = (0, Mapper_1.map)(obj.posterUrl);
17
18
  }
18
19
  return StreamsLiveUpdateRequest;
19
20
  }());
@@ -53,6 +53,12 @@ export declare class StreamsVideoResponse {
53
53
  * @memberof StreamsVideoResponse
54
54
  */
55
55
  encodingTasks?: StreamsVideoEncodingTask[];
56
+ /**
57
+ * Poster URL
58
+ * @type {string}
59
+ * @memberof StreamsVideoResponse
60
+ */
61
+ posterUrl?: string;
56
62
  constructor(obj?: Partial<StreamsVideoResponse>);
57
63
  }
58
64
  export default StreamsVideoResponse;
@@ -21,6 +21,7 @@ var StreamsVideoResponse = /** @class */ (function () {
21
21
  this.status = (0, Mapper_1.map)(obj.status);
22
22
  this.config = (0, Mapper_1.map)(obj.config, StreamsConfigResponse_1.default);
23
23
  this.encodingTasks = (0, Mapper_1.mapArray)(obj.encodingTasks, StreamsVideoEncodingTask_1.default);
24
+ this.posterUrl = (0, Mapper_1.map)(obj.posterUrl);
24
25
  }
25
26
  return StreamsVideoResponse;
26
27
  }());
@@ -28,6 +28,12 @@ export declare class StreamsVideoUpdateRequest {
28
28
  * @memberof StreamsVideoUpdateRequest
29
29
  */
30
30
  configId?: string;
31
+ /**
32
+ * URL to hosted poster image
33
+ * @type {string}
34
+ * @memberof StreamsVideoUpdateRequest
35
+ */
36
+ posterUrl?: string;
31
37
  constructor(obj?: Partial<StreamsVideoUpdateRequest>);
32
38
  }
33
39
  export default StreamsVideoUpdateRequest;
@@ -15,6 +15,7 @@ var StreamsVideoUpdateRequest = /** @class */ (function () {
15
15
  this.title = (0, Mapper_1.map)(obj.title);
16
16
  this.description = (0, Mapper_1.map)(obj.description);
17
17
  this.configId = (0, Mapper_1.map)(obj.configId);
18
+ this.posterUrl = (0, Mapper_1.map)(obj.posterUrl);
18
19
  }
19
20
  return StreamsVideoUpdateRequest;
20
21
  }());
@@ -1,3 +1,4 @@
1
+ import AutoLevelSetup from './AutoLevelSetup';
1
2
  import CodecConfigType from './CodecConfigType';
2
3
  import PresetConfiguration from './PresetConfiguration';
3
4
  import VideoConfiguration from './VideoConfiguration';
@@ -211,6 +212,12 @@ export declare class Vp9VideoConfiguration extends VideoConfiguration {
211
212
  * @memberof Vp9VideoConfiguration
212
213
  */
213
214
  arnrType?: Vp9ArnrType;
215
+ /**
216
+ * Enable/disable automatic calculation of level, maxBitrate, and bufsize based on the least level that satisfies maximum property values for picture resolution, frame rate, and bit rate. Explicitly setting targetLevel, rateOvershootPct, or clientBufferSize properties will automatically disable the calculation.
217
+ * @type {AutoLevelSetup}
218
+ * @memberof Vp9VideoConfiguration
219
+ */
220
+ autoLevelSetup?: AutoLevelSetup;
214
221
  constructor(obj?: Partial<Vp9VideoConfiguration>);
215
222
  }
216
223
  export default Vp9VideoConfiguration;
@@ -69,6 +69,7 @@ var Vp9VideoConfiguration = /** @class */ (function (_super) {
69
69
  _this.arnrMaxFrames = (0, Mapper_1.map)(obj.arnrMaxFrames);
70
70
  _this.arnrStrength = (0, Mapper_1.map)(obj.arnrStrength);
71
71
  _this.arnrType = (0, Mapper_1.map)(obj.arnrType);
72
+ _this.autoLevelSetup = (0, Mapper_1.map)(obj.autoLevelSetup);
72
73
  return _this;
73
74
  }
74
75
  return Vp9VideoConfiguration;
@@ -135,6 +135,7 @@ export * from './AudioVideoSyncMode';
135
135
  export * from './AudioVolumeFilter';
136
136
  export * from './AudioVolumeFormat';
137
137
  export * from './AudioVolumeUnit';
138
+ export * from './AutoLevelSetup';
138
139
  export * from './AutoRepresentation';
139
140
  export * from './AutoRestartConfiguration';
140
141
  export * from './Av1PerTitleConfiguration';
@@ -151,6 +151,7 @@ __exportStar(require("./AudioVideoSyncMode"), exports);
151
151
  __exportStar(require("./AudioVolumeFilter"), exports);
152
152
  __exportStar(require("./AudioVolumeFormat"), exports);
153
153
  __exportStar(require("./AudioVolumeUnit"), exports);
154
+ __exportStar(require("./AutoLevelSetup"), exports);
154
155
  __exportStar(require("./AutoRepresentation"), exports);
155
156
  __exportStar(require("./AutoRestartConfiguration"), exports);
156
157
  __exportStar(require("./Av1PerTitleConfiguration"), exports);
@@ -39,11 +39,19 @@ export default class LiveApi extends BaseAPI {
39
39
  */
40
40
  list(queryParameters?: StreamsLiveResponseListQueryParams | ((q: StreamsLiveResponseListQueryParamsBuilder) => StreamsLiveResponseListQueryParamsBuilder)): Promise<PaginationResponse<StreamsLiveResponse>>;
41
41
  /**
42
- * @summary Update live stream by id
42
+ * @summary Partially update live stream by id
43
43
  * @param {string} streamId Id of the stream.
44
44
  * @param {StreamsLiveUpdateRequest} streamsLiveUpdateRequest Stream fields to update.
45
45
  * @throws {BitmovinError}
46
46
  * @memberof LiveApi
47
47
  */
48
48
  patchStreamsLive(streamId: string, streamsLiveUpdateRequest?: StreamsLiveUpdateRequest): Promise<StreamsLiveUpdateRequest>;
49
+ /**
50
+ * @summary Update live stream by id
51
+ * @param {string} streamId Id of the stream.
52
+ * @param {StreamsLiveUpdateRequest} streamsLiveUpdateRequest The updated stream config object.
53
+ * @throws {BitmovinError}
54
+ * @memberof LiveApi
55
+ */
56
+ update(streamId: string, streamsLiveUpdateRequest?: StreamsLiveUpdateRequest): Promise<StreamsLiveUpdateRequest>;
49
57
  }
@@ -81,7 +81,7 @@ var LiveApi = /** @class */ (function (_super) {
81
81
  });
82
82
  };
83
83
  /**
84
- * @summary Update live stream by id
84
+ * @summary Partially update live stream by id
85
85
  * @param {string} streamId Id of the stream.
86
86
  * @param {StreamsLiveUpdateRequest} streamsLiveUpdateRequest Stream fields to update.
87
87
  * @throws {BitmovinError}
@@ -95,6 +95,21 @@ var LiveApi = /** @class */ (function (_super) {
95
95
  return (0, Mapper_1.map)(response, StreamsLiveUpdateRequest_1.default);
96
96
  });
97
97
  };
98
+ /**
99
+ * @summary Update live stream by id
100
+ * @param {string} streamId Id of the stream.
101
+ * @param {StreamsLiveUpdateRequest} streamsLiveUpdateRequest The updated stream config object.
102
+ * @throws {BitmovinError}
103
+ * @memberof LiveApi
104
+ */
105
+ LiveApi.prototype.update = function (streamId, streamsLiveUpdateRequest) {
106
+ var pathParamMap = {
107
+ stream_id: streamId
108
+ };
109
+ return this.restClient.put('/streams/live/{stream_id}', pathParamMap, streamsLiveUpdateRequest).then(function (response) {
110
+ return (0, Mapper_1.map)(response, StreamsLiveUpdateRequest_1.default);
111
+ });
112
+ };
98
113
  return LiveApi;
99
114
  }(BaseAPI_1.BaseAPI));
100
115
  exports.default = LiveApi;
@@ -35,7 +35,7 @@ export default class VideoApi extends BaseAPI {
35
35
  */
36
36
  list(queryParameters?: StreamsVideoResponseListQueryParams | ((q: StreamsVideoResponseListQueryParamsBuilder) => StreamsVideoResponseListQueryParamsBuilder)): Promise<PaginationResponse<StreamsVideoResponse>>;
37
37
  /**
38
- * @summary Update Streams video by id
38
+ * @summary Partially update stream config by id
39
39
  * @param {string} streamId Id of the stream.
40
40
  * @param {StreamsVideoUpdateRequest} streamsVideoUpdateRequest Stream fields to update.
41
41
  * @throws {BitmovinError}
@@ -75,7 +75,7 @@ var VideoApi = /** @class */ (function (_super) {
75
75
  });
76
76
  };
77
77
  /**
78
- * @summary Update Streams video by id
78
+ * @summary Partially update stream config by id
79
79
  * @param {string} streamId Id of the stream.
80
80
  * @param {StreamsVideoUpdateRequest} streamsVideoUpdateRequest Stream fields to update.
81
81
  * @throws {BitmovinError}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmovin/api-sdk",
3
- "version": "1.158.0",
3
+ "version": "1.159.0",
4
4
  "description": "Bitmovin JS/TS API SDK",
5
5
  "author": "Bitmovin Inc",
6
6
  "keywords": [