@bitmovin/api-sdk 1.153.0 → 1.155.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 +1 -1
- package/dist/bitmovin-api-sdk.browser.js +132 -1
- package/dist/bitmovin-api-sdk.browser.min.js +1 -1
- package/dist/common/RestClient.js +1 -1
- package/dist/models/StreamsConfigResponse.d.ts +26 -0
- package/dist/models/StreamsConfigResponse.js +21 -0
- package/dist/models/StreamsConfigUpdateRequest.d.ts +14 -0
- package/dist/models/StreamsConfigUpdateRequest.js +19 -0
- package/dist/models/StreamsLiveUpdateRequest.d.ts +6 -0
- package/dist/models/StreamsLiveUpdateRequest.js +1 -0
- package/dist/models/StreamsVideoCreateRequest.d.ts +6 -0
- package/dist/models/StreamsVideoCreateRequest.js +1 -0
- package/dist/models/StreamsVideoResponse.d.ts +6 -0
- package/dist/models/StreamsVideoResponse.js +2 -0
- package/dist/models/StreamsVideoUpdateRequest.d.ts +6 -0
- package/dist/models/StreamsVideoUpdateRequest.js +1 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/streams/StreamsApi.d.ts +2 -0
- package/dist/streams/StreamsApi.js +2 -0
- package/dist/streams/configs/ConfigsApi.d.ts +21 -0
- package/dist/streams/configs/ConfigsApi.js +49 -0
- package/package.json +3 -3
|
@@ -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.
|
|
243
|
+
'X-Api-Client-Version': '1.155.0',
|
|
244
244
|
'Content-Type': 'application/json'
|
|
245
245
|
};
|
|
246
246
|
if (tenantOrgId) {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @export
|
|
3
|
+
* @class StreamsConfigResponse
|
|
4
|
+
*/
|
|
5
|
+
export declare class StreamsConfigResponse {
|
|
6
|
+
/**
|
|
7
|
+
* The identifier of the stream config
|
|
8
|
+
* @type {string}
|
|
9
|
+
* @memberof StreamsConfigResponse
|
|
10
|
+
*/
|
|
11
|
+
id?: string;
|
|
12
|
+
/**
|
|
13
|
+
* UUID of the associated organization
|
|
14
|
+
* @type {string}
|
|
15
|
+
* @memberof StreamsConfigResponse
|
|
16
|
+
*/
|
|
17
|
+
orgId?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Player style config
|
|
20
|
+
* @type {any}
|
|
21
|
+
* @memberof StreamsConfigResponse
|
|
22
|
+
*/
|
|
23
|
+
playerStyle?: any;
|
|
24
|
+
constructor(obj?: Partial<StreamsConfigResponse>);
|
|
25
|
+
}
|
|
26
|
+
export default StreamsConfigResponse;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StreamsConfigResponse = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @class StreamsConfigResponse
|
|
8
|
+
*/
|
|
9
|
+
var StreamsConfigResponse = /** @class */ (function () {
|
|
10
|
+
function StreamsConfigResponse(obj) {
|
|
11
|
+
if (!obj) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this.id = (0, Mapper_1.map)(obj.id);
|
|
15
|
+
this.orgId = (0, Mapper_1.map)(obj.orgId);
|
|
16
|
+
this.playerStyle = (0, Mapper_1.map)(obj.playerStyle);
|
|
17
|
+
}
|
|
18
|
+
return StreamsConfigResponse;
|
|
19
|
+
}());
|
|
20
|
+
exports.StreamsConfigResponse = StreamsConfigResponse;
|
|
21
|
+
exports.default = StreamsConfigResponse;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @export
|
|
3
|
+
* @class StreamsConfigUpdateRequest
|
|
4
|
+
*/
|
|
5
|
+
export declare class StreamsConfigUpdateRequest {
|
|
6
|
+
/**
|
|
7
|
+
* Player style config (required)
|
|
8
|
+
* @type {any}
|
|
9
|
+
* @memberof StreamsConfigUpdateRequest
|
|
10
|
+
*/
|
|
11
|
+
playerStyle?: any;
|
|
12
|
+
constructor(obj?: Partial<StreamsConfigUpdateRequest>);
|
|
13
|
+
}
|
|
14
|
+
export default StreamsConfigUpdateRequest;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StreamsConfigUpdateRequest = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @class StreamsConfigUpdateRequest
|
|
8
|
+
*/
|
|
9
|
+
var StreamsConfigUpdateRequest = /** @class */ (function () {
|
|
10
|
+
function StreamsConfigUpdateRequest(obj) {
|
|
11
|
+
if (!obj) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this.playerStyle = (0, Mapper_1.map)(obj.playerStyle);
|
|
15
|
+
}
|
|
16
|
+
return StreamsConfigUpdateRequest;
|
|
17
|
+
}());
|
|
18
|
+
exports.StreamsConfigUpdateRequest = StreamsConfigUpdateRequest;
|
|
19
|
+
exports.default = StreamsConfigUpdateRequest;
|
|
@@ -15,6 +15,12 @@ export declare class StreamsLiveUpdateRequest {
|
|
|
15
15
|
* @memberof StreamsLiveUpdateRequest
|
|
16
16
|
*/
|
|
17
17
|
description?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Id of the stream config to use
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StreamsLiveUpdateRequest
|
|
22
|
+
*/
|
|
23
|
+
configId?: string;
|
|
18
24
|
constructor(obj?: Partial<StreamsLiveUpdateRequest>);
|
|
19
25
|
}
|
|
20
26
|
export default StreamsLiveUpdateRequest;
|
|
@@ -13,6 +13,7 @@ var StreamsLiveUpdateRequest = /** @class */ (function () {
|
|
|
13
13
|
}
|
|
14
14
|
this.title = (0, Mapper_1.map)(obj.title);
|
|
15
15
|
this.description = (0, Mapper_1.map)(obj.description);
|
|
16
|
+
this.configId = (0, Mapper_1.map)(obj.configId);
|
|
16
17
|
}
|
|
17
18
|
return StreamsLiveUpdateRequest;
|
|
18
19
|
}());
|
|
@@ -21,6 +21,12 @@ export declare class StreamsVideoCreateRequest {
|
|
|
21
21
|
* @memberof StreamsVideoCreateRequest
|
|
22
22
|
*/
|
|
23
23
|
description?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Id of the stream config to use
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StreamsVideoCreateRequest
|
|
28
|
+
*/
|
|
29
|
+
configId?: string;
|
|
24
30
|
constructor(obj?: Partial<StreamsVideoCreateRequest>);
|
|
25
31
|
}
|
|
26
32
|
export default StreamsVideoCreateRequest;
|
|
@@ -14,6 +14,7 @@ var StreamsVideoCreateRequest = /** @class */ (function () {
|
|
|
14
14
|
this.assetUrl = (0, Mapper_1.map)(obj.assetUrl);
|
|
15
15
|
this.title = (0, Mapper_1.map)(obj.title);
|
|
16
16
|
this.description = (0, Mapper_1.map)(obj.description);
|
|
17
|
+
this.configId = (0, Mapper_1.map)(obj.configId);
|
|
17
18
|
}
|
|
18
19
|
return StreamsVideoCreateRequest;
|
|
19
20
|
}());
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import StreamsConfigResponse from './StreamsConfigResponse';
|
|
1
2
|
import StreamsVideoEncodingTask from './StreamsVideoEncodingTask';
|
|
2
3
|
import StreamsVideoStatus from './StreamsVideoStatus';
|
|
3
4
|
/**
|
|
@@ -41,6 +42,11 @@ export declare class StreamsVideoResponse {
|
|
|
41
42
|
* @memberof StreamsVideoResponse
|
|
42
43
|
*/
|
|
43
44
|
status?: StreamsVideoStatus;
|
|
45
|
+
/**
|
|
46
|
+
* @type {StreamsConfigResponse}
|
|
47
|
+
* @memberof StreamsVideoResponse
|
|
48
|
+
*/
|
|
49
|
+
config?: StreamsConfigResponse;
|
|
44
50
|
/**
|
|
45
51
|
* List of encoding status information
|
|
46
52
|
* @type {StreamsVideoEncodingTask[]}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StreamsVideoResponse = void 0;
|
|
4
4
|
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
var StreamsConfigResponse_1 = require("./StreamsConfigResponse");
|
|
5
6
|
var StreamsVideoEncodingTask_1 = require("./StreamsVideoEncodingTask");
|
|
6
7
|
/**
|
|
7
8
|
* @export
|
|
@@ -18,6 +19,7 @@ var StreamsVideoResponse = /** @class */ (function () {
|
|
|
18
19
|
this.description = (0, Mapper_1.map)(obj.description);
|
|
19
20
|
this.createdAt = (0, Mapper_1.map)(obj.createdAt, Date);
|
|
20
21
|
this.status = (0, Mapper_1.map)(obj.status);
|
|
22
|
+
this.config = (0, Mapper_1.map)(obj.config, StreamsConfigResponse_1.default);
|
|
21
23
|
this.encodingTasks = (0, Mapper_1.mapArray)(obj.encodingTasks, StreamsVideoEncodingTask_1.default);
|
|
22
24
|
}
|
|
23
25
|
return StreamsVideoResponse;
|
|
@@ -22,6 +22,12 @@ export declare class StreamsVideoUpdateRequest {
|
|
|
22
22
|
* @memberof StreamsVideoUpdateRequest
|
|
23
23
|
*/
|
|
24
24
|
description?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Id of the stream config to use
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof StreamsVideoUpdateRequest
|
|
29
|
+
*/
|
|
30
|
+
configId?: string;
|
|
25
31
|
constructor(obj?: Partial<StreamsVideoUpdateRequest>);
|
|
26
32
|
}
|
|
27
33
|
export default StreamsVideoUpdateRequest;
|
|
@@ -14,6 +14,7 @@ var StreamsVideoUpdateRequest = /** @class */ (function () {
|
|
|
14
14
|
this.status = (0, Mapper_1.map)(obj.status);
|
|
15
15
|
this.title = (0, Mapper_1.map)(obj.title);
|
|
16
16
|
this.description = (0, Mapper_1.map)(obj.description);
|
|
17
|
+
this.configId = (0, Mapper_1.map)(obj.configId);
|
|
17
18
|
}
|
|
18
19
|
return StreamsVideoUpdateRequest;
|
|
19
20
|
}());
|
package/dist/models/index.d.ts
CHANGED
|
@@ -690,6 +690,8 @@ export * from './StreamMode';
|
|
|
690
690
|
export * from './StreamPerTitleFixedResolutionAndBitrateSettings';
|
|
691
691
|
export * from './StreamPerTitleSettings';
|
|
692
692
|
export * from './StreamSelectionMode';
|
|
693
|
+
export * from './StreamsConfigResponse';
|
|
694
|
+
export * from './StreamsConfigUpdateRequest';
|
|
693
695
|
export * from './StreamsLiveUpdateRequest';
|
|
694
696
|
export * from './StreamsVideoCreateRequest';
|
|
695
697
|
export * from './StreamsVideoEncodingStatus';
|
package/dist/models/index.js
CHANGED
|
@@ -706,6 +706,8 @@ __exportStar(require("./StreamMode"), exports);
|
|
|
706
706
|
__exportStar(require("./StreamPerTitleFixedResolutionAndBitrateSettings"), exports);
|
|
707
707
|
__exportStar(require("./StreamPerTitleSettings"), exports);
|
|
708
708
|
__exportStar(require("./StreamSelectionMode"), exports);
|
|
709
|
+
__exportStar(require("./StreamsConfigResponse"), exports);
|
|
710
|
+
__exportStar(require("./StreamsConfigUpdateRequest"), exports);
|
|
709
711
|
__exportStar(require("./StreamsLiveUpdateRequest"), exports);
|
|
710
712
|
__exportStar(require("./StreamsVideoCreateRequest"), exports);
|
|
711
713
|
__exportStar(require("./StreamsVideoEncodingStatus"), exports);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseAPI } from '../common/BaseAPI';
|
|
2
2
|
import Configuration from '../common/Configuration';
|
|
3
|
+
import ConfigsApi from './configs/ConfigsApi';
|
|
3
4
|
import VideoApi from './video/VideoApi';
|
|
4
5
|
import LiveApi from './live/LiveApi';
|
|
5
6
|
/**
|
|
@@ -9,6 +10,7 @@ import LiveApi from './live/LiveApi';
|
|
|
9
10
|
* @extends {BaseAPI}
|
|
10
11
|
*/
|
|
11
12
|
export default class StreamsApi extends BaseAPI {
|
|
13
|
+
configs: ConfigsApi;
|
|
12
14
|
video: VideoApi;
|
|
13
15
|
live: LiveApi;
|
|
14
16
|
constructor(configuration: Configuration);
|
|
@@ -16,6 +16,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
var BaseAPI_1 = require("../common/BaseAPI");
|
|
19
|
+
var ConfigsApi_1 = require("./configs/ConfigsApi");
|
|
19
20
|
var VideoApi_1 = require("./video/VideoApi");
|
|
20
21
|
var LiveApi_1 = require("./live/LiveApi");
|
|
21
22
|
/**
|
|
@@ -28,6 +29,7 @@ var StreamsApi = /** @class */ (function (_super) {
|
|
|
28
29
|
__extends(StreamsApi, _super);
|
|
29
30
|
function StreamsApi(configuration) {
|
|
30
31
|
var _this = _super.call(this, configuration) || this;
|
|
32
|
+
_this.configs = new ConfigsApi_1.default(configuration);
|
|
31
33
|
_this.video = new VideoApi_1.default(configuration);
|
|
32
34
|
_this.live = new LiveApi_1.default(configuration);
|
|
33
35
|
return _this;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseAPI } from '../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../common/Configuration';
|
|
3
|
+
import StreamsConfigResponse from '../../models/StreamsConfigResponse';
|
|
4
|
+
import StreamsConfigUpdateRequest from '../../models/StreamsConfigUpdateRequest';
|
|
5
|
+
/**
|
|
6
|
+
* ConfigsApi - object-oriented interface
|
|
7
|
+
* @export
|
|
8
|
+
* @class ConfigsApi
|
|
9
|
+
* @extends {BaseAPI}
|
|
10
|
+
*/
|
|
11
|
+
export default class ConfigsApi extends BaseAPI {
|
|
12
|
+
constructor(configuration: Configuration);
|
|
13
|
+
/**
|
|
14
|
+
* @summary Update stream config by id
|
|
15
|
+
* @param {string} configId Id of the stream config.
|
|
16
|
+
* @param {StreamsConfigUpdateRequest} streamsConfigUpdateRequest The updated stream config object.
|
|
17
|
+
* @throws {BitmovinError}
|
|
18
|
+
* @memberof ConfigsApi
|
|
19
|
+
*/
|
|
20
|
+
patchStreamConfig(configId: string, streamsConfigUpdateRequest?: StreamsConfigUpdateRequest): Promise<StreamsConfigResponse>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 StreamsConfigResponse_1 = require("../../models/StreamsConfigResponse");
|
|
21
|
+
/**
|
|
22
|
+
* ConfigsApi - object-oriented interface
|
|
23
|
+
* @export
|
|
24
|
+
* @class ConfigsApi
|
|
25
|
+
* @extends {BaseAPI}
|
|
26
|
+
*/
|
|
27
|
+
var ConfigsApi = /** @class */ (function (_super) {
|
|
28
|
+
__extends(ConfigsApi, _super);
|
|
29
|
+
function ConfigsApi(configuration) {
|
|
30
|
+
return _super.call(this, configuration) || this;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @summary Update stream config by id
|
|
34
|
+
* @param {string} configId Id of the stream config.
|
|
35
|
+
* @param {StreamsConfigUpdateRequest} streamsConfigUpdateRequest The updated stream config object.
|
|
36
|
+
* @throws {BitmovinError}
|
|
37
|
+
* @memberof ConfigsApi
|
|
38
|
+
*/
|
|
39
|
+
ConfigsApi.prototype.patchStreamConfig = function (configId, streamsConfigUpdateRequest) {
|
|
40
|
+
var pathParamMap = {
|
|
41
|
+
config_id: configId
|
|
42
|
+
};
|
|
43
|
+
return this.restClient.patch('/streams/configs/{config_id}', pathParamMap, streamsConfigUpdateRequest).then(function (response) {
|
|
44
|
+
return (0, Mapper_1.map)(response, StreamsConfigResponse_1.default);
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
return ConfigsApi;
|
|
48
|
+
}(BaseAPI_1.BaseAPI));
|
|
49
|
+
exports.default = ConfigsApi;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitmovin/api-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.155.0",
|
|
4
4
|
"description": "Bitmovin JS/TS API SDK",
|
|
5
5
|
"author": "Bitmovin Inc",
|
|
6
6
|
"keywords": [
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"es6-promise": "^4.2.5",
|
|
28
28
|
"isomorphic-fetch": ">=3.0.0",
|
|
29
|
-
"typedoc": "
|
|
29
|
+
"typedoc": "0.22.15",
|
|
30
30
|
"url-join": "^4.0.0"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/isomorphic-fetch": ">=0.0.35",
|
|
37
37
|
"@types/node": ">=17.0.23",
|
|
38
|
-
"ts-loader": "^9.2.8",
|
|
39
38
|
"cross-env": "^5.2.0",
|
|
40
39
|
"prettier": "^1.16.4",
|
|
40
|
+
"ts-loader": "^9.2.8",
|
|
41
41
|
"tslint": "^5.12.1",
|
|
42
42
|
"tslint-config-prettier": "^1.18.0",
|
|
43
43
|
"typescript": "^4.6.3",
|