@bitmovin/api-sdk 1.137.0 → 1.139.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/BitmovinApi.d.ts +2 -2
- package/dist/BitmovinApi.js +2 -2
- package/dist/bitmovin-api-sdk.browser.js +351 -272
- package/dist/bitmovin-api-sdk.browser.min.js +1 -1
- package/dist/common/RestClient.js +1 -1
- package/dist/models/SimpleEncodingVodJobOutput.d.ts +7 -0
- package/dist/models/SimpleEncodingVodJobOutput.js +3 -0
- package/dist/models/SimpleEncodingVodJobOutputArtifact.d.ts +20 -0
- package/dist/models/SimpleEncodingVodJobOutputArtifact.js +20 -0
- package/dist/models/StreamsVideoCreateRequest.d.ts +26 -0
- package/dist/models/{CreateBitmovinStreamRequest.js → StreamsVideoCreateRequest.js} +7 -7
- package/dist/models/{BitmovinStreamEncodingStatus.d.ts → StreamsVideoEncodingStatus.d.ts} +2 -2
- package/dist/models/StreamsVideoEncodingStatus.js +14 -0
- package/dist/models/StreamsVideoEncodingTask.d.ts +22 -0
- package/dist/models/StreamsVideoEncodingTask.js +20 -0
- package/dist/models/{BitmovinStreamQuality.d.ts → StreamsVideoQuality.d.ts} +2 -2
- package/dist/models/StreamsVideoQuality.js +14 -0
- package/dist/models/StreamsVideoResponse.d.ts +52 -0
- package/dist/models/{BitmovinStreamResponse.js → StreamsVideoResponse.js} +9 -11
- package/dist/models/{BitmovinStreamStatus.d.ts → StreamsVideoStatus.d.ts} +2 -2
- package/dist/models/StreamsVideoStatus.js +13 -0
- package/dist/models/StreamsVideoUpdateRequest.d.ts +27 -0
- package/dist/models/{UpdateBitmovinStreamRequest.js → StreamsVideoUpdateRequest.js} +7 -7
- package/dist/models/index.d.ts +8 -7
- package/dist/models/index.js +8 -7
- package/dist/streams/StreamsApi.d.ts +2 -34
- package/dist/streams/StreamsApi.js +4 -63
- package/dist/streams/{BitmovinStreamResponseListQueryParams.d.ts → video/StreamsVideoResponseListQueryParams.d.ts} +6 -6
- package/dist/streams/{BitmovinStreamResponseListQueryParams.js → video/StreamsVideoResponseListQueryParams.js} +9 -9
- package/dist/streams/video/VideoApi.d.ts +45 -0
- package/dist/streams/video/VideoApi.js +94 -0
- package/package.json +1 -1
- package/dist/models/BitmovinStreamEncodingStatus.js +0 -14
- package/dist/models/BitmovinStreamEncodingTask.d.ts +0 -22
- package/dist/models/BitmovinStreamEncodingTask.js +0 -20
- package/dist/models/BitmovinStreamQuality.js +0 -14
- package/dist/models/BitmovinStreamResponse.d.ts +0 -65
- package/dist/models/BitmovinStreamStatus.js +0 -13
- package/dist/models/CreateBitmovinStreamRequest.d.ts +0 -26
- package/dist/models/UpdateBitmovinStreamRequest.d.ts +0 -27
|
@@ -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.139.0',
|
|
244
244
|
'Content-Type': 'application/json'
|
|
245
245
|
};
|
|
246
246
|
if (tenantOrgId) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import SimpleEncodingVodJobCdnOutput from './SimpleEncodingVodJobCdnOutput';
|
|
2
|
+
import SimpleEncodingVodJobOutputArtifact from './SimpleEncodingVodJobOutputArtifact';
|
|
2
3
|
import SimpleEncodingVodJobOutputType from './SimpleEncodingVodJobOutputType';
|
|
3
4
|
import SimpleEncodingVodJobUrlOutput from './SimpleEncodingVodJobUrlOutput';
|
|
4
5
|
export declare type SimpleEncodingVodJobOutputUnion = SimpleEncodingVodJobUrlOutput | SimpleEncodingVodJobCdnOutput;
|
|
@@ -11,6 +12,12 @@ export declare class SimpleEncodingVodJobOutput {
|
|
|
11
12
|
protected static readonly _discriminatorMapping: {
|
|
12
13
|
[key in keyof typeof SimpleEncodingVodJobOutputType]: string;
|
|
13
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* List of artifacts created by the encoding job. Artifacts are files essential for playback of the generated content, e.g. manifests.
|
|
17
|
+
* @type {SimpleEncodingVodJobOutputArtifact[]}
|
|
18
|
+
* @memberof SimpleEncodingVodJobOutput
|
|
19
|
+
*/
|
|
20
|
+
artifacts?: SimpleEncodingVodJobOutputArtifact[];
|
|
14
21
|
constructor(obj?: Partial<SimpleEncodingVodJobOutput>);
|
|
15
22
|
}
|
|
16
23
|
export default SimpleEncodingVodJobOutput;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SimpleEncodingVodJobOutput = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
var SimpleEncodingVodJobOutputArtifact_1 = require("./SimpleEncodingVodJobOutputArtifact");
|
|
4
6
|
/**
|
|
5
7
|
* @export
|
|
6
8
|
* @class SimpleEncodingVodJobOutput
|
|
@@ -10,6 +12,7 @@ var SimpleEncodingVodJobOutput = /** @class */ (function () {
|
|
|
10
12
|
if (!obj) {
|
|
11
13
|
return;
|
|
12
14
|
}
|
|
15
|
+
this.artifacts = (0, Mapper_1.mapArray)(obj.artifacts, SimpleEncodingVodJobOutputArtifact_1.default);
|
|
13
16
|
}
|
|
14
17
|
SimpleEncodingVodJobOutput._discriminatorName = 'type';
|
|
15
18
|
SimpleEncodingVodJobOutput._discriminatorMapping = {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @export
|
|
3
|
+
* @class SimpleEncodingVodJobOutputArtifact
|
|
4
|
+
*/
|
|
5
|
+
export declare class SimpleEncodingVodJobOutputArtifact {
|
|
6
|
+
/**
|
|
7
|
+
* Name of the artifact. Currently we provide the URL of the HLS manifest with name 'HLS_MANIFEST_URL' and the URL of the DASH manifest with name 'DASH_MANIFEST_URL'
|
|
8
|
+
* @type {string}
|
|
9
|
+
* @memberof SimpleEncodingVodJobOutputArtifact
|
|
10
|
+
*/
|
|
11
|
+
name?: string;
|
|
12
|
+
/**
|
|
13
|
+
* A string value described by the 'name' property. Typically this is an absolute URL pointing to a file on the output you specified for the encoding job. The protocol depends on the type of output: \"s3://\" for AWS S3,\"gcs://\" for Google Cloud Storage, \"https://\" for Azure Blob Storage and Akamai NetStorage )
|
|
14
|
+
* @type {string}
|
|
15
|
+
* @memberof SimpleEncodingVodJobOutputArtifact
|
|
16
|
+
*/
|
|
17
|
+
value?: string;
|
|
18
|
+
constructor(obj?: Partial<SimpleEncodingVodJobOutputArtifact>);
|
|
19
|
+
}
|
|
20
|
+
export default SimpleEncodingVodJobOutputArtifact;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SimpleEncodingVodJobOutputArtifact = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @class SimpleEncodingVodJobOutputArtifact
|
|
8
|
+
*/
|
|
9
|
+
var SimpleEncodingVodJobOutputArtifact = /** @class */ (function () {
|
|
10
|
+
function SimpleEncodingVodJobOutputArtifact(obj) {
|
|
11
|
+
if (!obj) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this.name = (0, Mapper_1.map)(obj.name);
|
|
15
|
+
this.value = (0, Mapper_1.map)(obj.value);
|
|
16
|
+
}
|
|
17
|
+
return SimpleEncodingVodJobOutputArtifact;
|
|
18
|
+
}());
|
|
19
|
+
exports.SimpleEncodingVodJobOutputArtifact = SimpleEncodingVodJobOutputArtifact;
|
|
20
|
+
exports.default = SimpleEncodingVodJobOutputArtifact;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @export
|
|
3
|
+
* @class StreamsVideoCreateRequest
|
|
4
|
+
*/
|
|
5
|
+
export declare class StreamsVideoCreateRequest {
|
|
6
|
+
/**
|
|
7
|
+
* The streams input asset URL
|
|
8
|
+
* @type {string}
|
|
9
|
+
* @memberof StreamsVideoCreateRequest
|
|
10
|
+
*/
|
|
11
|
+
assetUrl?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Title of the stream
|
|
14
|
+
* @type {string}
|
|
15
|
+
* @memberof StreamsVideoCreateRequest
|
|
16
|
+
*/
|
|
17
|
+
title?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Description of the stream
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StreamsVideoCreateRequest
|
|
22
|
+
*/
|
|
23
|
+
description?: string;
|
|
24
|
+
constructor(obj?: Partial<StreamsVideoCreateRequest>);
|
|
25
|
+
}
|
|
26
|
+
export default StreamsVideoCreateRequest;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.StreamsVideoCreateRequest = void 0;
|
|
4
4
|
var Mapper_1 = require("../common/Mapper");
|
|
5
5
|
/**
|
|
6
6
|
* @export
|
|
7
|
-
* @class
|
|
7
|
+
* @class StreamsVideoCreateRequest
|
|
8
8
|
*/
|
|
9
|
-
var
|
|
10
|
-
function
|
|
9
|
+
var StreamsVideoCreateRequest = /** @class */ (function () {
|
|
10
|
+
function StreamsVideoCreateRequest(obj) {
|
|
11
11
|
if (!obj) {
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
@@ -15,7 +15,7 @@ var CreateBitmovinStreamRequest = /** @class */ (function () {
|
|
|
15
15
|
this.title = (0, Mapper_1.map)(obj.title);
|
|
16
16
|
this.description = (0, Mapper_1.map)(obj.description);
|
|
17
17
|
}
|
|
18
|
-
return
|
|
18
|
+
return StreamsVideoCreateRequest;
|
|
19
19
|
}());
|
|
20
|
-
exports.
|
|
21
|
-
exports.default =
|
|
20
|
+
exports.StreamsVideoCreateRequest = StreamsVideoCreateRequest;
|
|
21
|
+
exports.default = StreamsVideoCreateRequest;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* @export
|
|
3
3
|
* @enum {string}
|
|
4
4
|
*/
|
|
5
|
-
export declare enum
|
|
5
|
+
export declare enum StreamsVideoEncodingStatus {
|
|
6
6
|
STARTED = "STARTED",
|
|
7
7
|
ERROR = "ERROR",
|
|
8
8
|
FINISHED = "FINISHED"
|
|
9
9
|
}
|
|
10
|
-
export default
|
|
10
|
+
export default StreamsVideoEncodingStatus;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StreamsVideoEncodingStatus = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @export
|
|
6
|
+
* @enum {string}
|
|
7
|
+
*/
|
|
8
|
+
var StreamsVideoEncodingStatus;
|
|
9
|
+
(function (StreamsVideoEncodingStatus) {
|
|
10
|
+
StreamsVideoEncodingStatus["STARTED"] = "STARTED";
|
|
11
|
+
StreamsVideoEncodingStatus["ERROR"] = "ERROR";
|
|
12
|
+
StreamsVideoEncodingStatus["FINISHED"] = "FINISHED";
|
|
13
|
+
})(StreamsVideoEncodingStatus = exports.StreamsVideoEncodingStatus || (exports.StreamsVideoEncodingStatus = {}));
|
|
14
|
+
exports.default = StreamsVideoEncodingStatus;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import StreamsVideoEncodingStatus from './StreamsVideoEncodingStatus';
|
|
2
|
+
import StreamsVideoQuality from './StreamsVideoQuality';
|
|
3
|
+
/**
|
|
4
|
+
* @export
|
|
5
|
+
* @class StreamsVideoEncodingTask
|
|
6
|
+
*/
|
|
7
|
+
export declare class StreamsVideoEncodingTask {
|
|
8
|
+
/**
|
|
9
|
+
* Quality of the encoding
|
|
10
|
+
* @type {StreamsVideoQuality}
|
|
11
|
+
* @memberof StreamsVideoEncodingTask
|
|
12
|
+
*/
|
|
13
|
+
quality?: StreamsVideoQuality;
|
|
14
|
+
/**
|
|
15
|
+
* Current state of the encoding
|
|
16
|
+
* @type {StreamsVideoEncodingStatus}
|
|
17
|
+
* @memberof StreamsVideoEncodingTask
|
|
18
|
+
*/
|
|
19
|
+
status?: StreamsVideoEncodingStatus;
|
|
20
|
+
constructor(obj?: Partial<StreamsVideoEncodingTask>);
|
|
21
|
+
}
|
|
22
|
+
export default StreamsVideoEncodingTask;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StreamsVideoEncodingTask = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @class StreamsVideoEncodingTask
|
|
8
|
+
*/
|
|
9
|
+
var StreamsVideoEncodingTask = /** @class */ (function () {
|
|
10
|
+
function StreamsVideoEncodingTask(obj) {
|
|
11
|
+
if (!obj) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this.quality = (0, Mapper_1.map)(obj.quality);
|
|
15
|
+
this.status = (0, Mapper_1.map)(obj.status);
|
|
16
|
+
}
|
|
17
|
+
return StreamsVideoEncodingTask;
|
|
18
|
+
}());
|
|
19
|
+
exports.StreamsVideoEncodingTask = StreamsVideoEncodingTask;
|
|
20
|
+
exports.default = StreamsVideoEncodingTask;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* @export
|
|
3
3
|
* @enum {string}
|
|
4
4
|
*/
|
|
5
|
-
export declare enum
|
|
5
|
+
export declare enum StreamsVideoQuality {
|
|
6
6
|
NONE = "NONE",
|
|
7
7
|
PREVIEW = "PREVIEW",
|
|
8
8
|
DEFAULT = "DEFAULT"
|
|
9
9
|
}
|
|
10
|
-
export default
|
|
10
|
+
export default StreamsVideoQuality;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StreamsVideoQuality = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @export
|
|
6
|
+
* @enum {string}
|
|
7
|
+
*/
|
|
8
|
+
var StreamsVideoQuality;
|
|
9
|
+
(function (StreamsVideoQuality) {
|
|
10
|
+
StreamsVideoQuality["NONE"] = "NONE";
|
|
11
|
+
StreamsVideoQuality["PREVIEW"] = "PREVIEW";
|
|
12
|
+
StreamsVideoQuality["DEFAULT"] = "DEFAULT";
|
|
13
|
+
})(StreamsVideoQuality = exports.StreamsVideoQuality || (exports.StreamsVideoQuality = {}));
|
|
14
|
+
exports.default = StreamsVideoQuality;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import StreamsVideoEncodingTask from './StreamsVideoEncodingTask';
|
|
2
|
+
import StreamsVideoStatus from './StreamsVideoStatus';
|
|
3
|
+
/**
|
|
4
|
+
* @export
|
|
5
|
+
* @class StreamsVideoResponse
|
|
6
|
+
*/
|
|
7
|
+
export declare class StreamsVideoResponse {
|
|
8
|
+
/**
|
|
9
|
+
* The identifier of the stream
|
|
10
|
+
* @type {string}
|
|
11
|
+
* @memberof StreamsVideoResponse
|
|
12
|
+
*/
|
|
13
|
+
id?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The asset URL of the stream
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof StreamsVideoResponse
|
|
18
|
+
*/
|
|
19
|
+
assetUrl?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The title of the stream
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof StreamsVideoResponse
|
|
24
|
+
*/
|
|
25
|
+
title?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The description of the stream
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof StreamsVideoResponse
|
|
30
|
+
*/
|
|
31
|
+
description?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Creation timestamp, returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
|
|
34
|
+
* @type {Date}
|
|
35
|
+
* @memberof StreamsVideoResponse
|
|
36
|
+
*/
|
|
37
|
+
createdAt?: Date;
|
|
38
|
+
/**
|
|
39
|
+
* The status of the stream
|
|
40
|
+
* @type {StreamsVideoStatus}
|
|
41
|
+
* @memberof StreamsVideoResponse
|
|
42
|
+
*/
|
|
43
|
+
status?: StreamsVideoStatus;
|
|
44
|
+
/**
|
|
45
|
+
* List of encoding status information
|
|
46
|
+
* @type {StreamsVideoEncodingTask[]}
|
|
47
|
+
* @memberof StreamsVideoResponse
|
|
48
|
+
*/
|
|
49
|
+
encodingTasks?: StreamsVideoEncodingTask[];
|
|
50
|
+
constructor(obj?: Partial<StreamsVideoResponse>);
|
|
51
|
+
}
|
|
52
|
+
export default StreamsVideoResponse;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.StreamsVideoResponse = void 0;
|
|
4
4
|
var Mapper_1 = require("../common/Mapper");
|
|
5
|
-
var
|
|
5
|
+
var StreamsVideoEncodingTask_1 = require("./StreamsVideoEncodingTask");
|
|
6
6
|
/**
|
|
7
7
|
* @export
|
|
8
|
-
* @class
|
|
8
|
+
* @class StreamsVideoResponse
|
|
9
9
|
*/
|
|
10
|
-
var
|
|
11
|
-
function
|
|
10
|
+
var StreamsVideoResponse = /** @class */ (function () {
|
|
11
|
+
function StreamsVideoResponse(obj) {
|
|
12
12
|
if (!obj) {
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
@@ -18,11 +18,9 @@ var BitmovinStreamResponse = /** @class */ (function () {
|
|
|
18
18
|
this.description = (0, Mapper_1.map)(obj.description);
|
|
19
19
|
this.createdAt = (0, Mapper_1.map)(obj.createdAt, Date);
|
|
20
20
|
this.status = (0, Mapper_1.map)(obj.status);
|
|
21
|
-
this.
|
|
22
|
-
this.availableQualities = (0, Mapper_1.mapArray)(obj.availableQualities);
|
|
23
|
-
this.encodingTasks = (0, Mapper_1.mapArray)(obj.encodingTasks, BitmovinStreamEncodingTask_1.default);
|
|
21
|
+
this.encodingTasks = (0, Mapper_1.mapArray)(obj.encodingTasks, StreamsVideoEncodingTask_1.default);
|
|
24
22
|
}
|
|
25
|
-
return
|
|
23
|
+
return StreamsVideoResponse;
|
|
26
24
|
}());
|
|
27
|
-
exports.
|
|
28
|
-
exports.default =
|
|
25
|
+
exports.StreamsVideoResponse = StreamsVideoResponse;
|
|
26
|
+
exports.default = StreamsVideoResponse;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StreamsVideoStatus = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @export
|
|
6
|
+
* @enum {string}
|
|
7
|
+
*/
|
|
8
|
+
var StreamsVideoStatus;
|
|
9
|
+
(function (StreamsVideoStatus) {
|
|
10
|
+
StreamsVideoStatus["PUBLISHED"] = "PUBLISHED";
|
|
11
|
+
StreamsVideoStatus["UNPUBLISHED"] = "UNPUBLISHED";
|
|
12
|
+
})(StreamsVideoStatus = exports.StreamsVideoStatus || (exports.StreamsVideoStatus = {}));
|
|
13
|
+
exports.default = StreamsVideoStatus;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import StreamsVideoStatus from './StreamsVideoStatus';
|
|
2
|
+
/**
|
|
3
|
+
* @export
|
|
4
|
+
* @class StreamsVideoUpdateRequest
|
|
5
|
+
*/
|
|
6
|
+
export declare class StreamsVideoUpdateRequest {
|
|
7
|
+
/**
|
|
8
|
+
* The new status of the stream
|
|
9
|
+
* @type {StreamsVideoStatus}
|
|
10
|
+
* @memberof StreamsVideoUpdateRequest
|
|
11
|
+
*/
|
|
12
|
+
status?: StreamsVideoStatus;
|
|
13
|
+
/**
|
|
14
|
+
* The new title of the stream
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof StreamsVideoUpdateRequest
|
|
17
|
+
*/
|
|
18
|
+
title?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The new description of the stream
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof StreamsVideoUpdateRequest
|
|
23
|
+
*/
|
|
24
|
+
description?: string;
|
|
25
|
+
constructor(obj?: Partial<StreamsVideoUpdateRequest>);
|
|
26
|
+
}
|
|
27
|
+
export default StreamsVideoUpdateRequest;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.StreamsVideoUpdateRequest = void 0;
|
|
4
4
|
var Mapper_1 = require("../common/Mapper");
|
|
5
5
|
/**
|
|
6
6
|
* @export
|
|
7
|
-
* @class
|
|
7
|
+
* @class StreamsVideoUpdateRequest
|
|
8
8
|
*/
|
|
9
|
-
var
|
|
10
|
-
function
|
|
9
|
+
var StreamsVideoUpdateRequest = /** @class */ (function () {
|
|
10
|
+
function StreamsVideoUpdateRequest(obj) {
|
|
11
11
|
if (!obj) {
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
@@ -15,7 +15,7 @@ var UpdateBitmovinStreamRequest = /** @class */ (function () {
|
|
|
15
15
|
this.title = (0, Mapper_1.map)(obj.title);
|
|
16
16
|
this.description = (0, Mapper_1.map)(obj.description);
|
|
17
17
|
}
|
|
18
|
-
return
|
|
18
|
+
return StreamsVideoUpdateRequest;
|
|
19
19
|
}());
|
|
20
|
-
exports.
|
|
21
|
-
exports.default =
|
|
20
|
+
exports.StreamsVideoUpdateRequest = StreamsVideoUpdateRequest;
|
|
21
|
+
exports.default = StreamsVideoUpdateRequest;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -159,11 +159,6 @@ export * from './BillableEncodingMinutesDetails';
|
|
|
159
159
|
export * from './BitmovinResource';
|
|
160
160
|
export * from './BitmovinResponse';
|
|
161
161
|
export * from './BitmovinResponseList';
|
|
162
|
-
export * from './BitmovinStreamEncodingStatus';
|
|
163
|
-
export * from './BitmovinStreamEncodingTask';
|
|
164
|
-
export * from './BitmovinStreamQuality';
|
|
165
|
-
export * from './BitmovinStreamResponse';
|
|
166
|
-
export * from './BitmovinStreamStatus';
|
|
167
162
|
export * from './BitrateSelectionMode';
|
|
168
163
|
export * from './BroadcastTsAudioInputStreamConfiguration';
|
|
169
164
|
export * from './BroadcastTsInputStreamConfiguration';
|
|
@@ -215,7 +210,6 @@ export * from './ContentProtection';
|
|
|
215
210
|
export * from './ConvertSccCaption';
|
|
216
211
|
export * from './ConvertSccCaptionWebVttSettings';
|
|
217
212
|
export * from './ConvertSccPositionMode';
|
|
218
|
-
export * from './CreateBitmovinStreamRequest';
|
|
219
213
|
export * from './CropFilter';
|
|
220
214
|
export * from './CustomAttribute';
|
|
221
215
|
export * from './CustomData';
|
|
@@ -636,6 +630,7 @@ export * from './SimpleEncodingVodJobInput';
|
|
|
636
630
|
export * from './SimpleEncodingVodJobInputSourceType';
|
|
637
631
|
export * from './SimpleEncodingVodJobInputType';
|
|
638
632
|
export * from './SimpleEncodingVodJobOutput';
|
|
633
|
+
export * from './SimpleEncodingVodJobOutputArtifact';
|
|
639
634
|
export * from './SimpleEncodingVodJobOutputType';
|
|
640
635
|
export * from './SimpleEncodingVodJobRequest';
|
|
641
636
|
export * from './SimpleEncodingVodJobResponse';
|
|
@@ -693,6 +688,13 @@ export * from './StreamMode';
|
|
|
693
688
|
export * from './StreamPerTitleFixedResolutionAndBitrateSettings';
|
|
694
689
|
export * from './StreamPerTitleSettings';
|
|
695
690
|
export * from './StreamSelectionMode';
|
|
691
|
+
export * from './StreamsVideoCreateRequest';
|
|
692
|
+
export * from './StreamsVideoEncodingStatus';
|
|
693
|
+
export * from './StreamsVideoEncodingTask';
|
|
694
|
+
export * from './StreamsVideoQuality';
|
|
695
|
+
export * from './StreamsVideoResponse';
|
|
696
|
+
export * from './StreamsVideoStatus';
|
|
697
|
+
export * from './StreamsVideoUpdateRequest';
|
|
696
698
|
export * from './Subtask';
|
|
697
699
|
export * from './SubtitleAdaptationSet';
|
|
698
700
|
export * from './SubtitleConfiguration';
|
|
@@ -725,7 +727,6 @@ export * from './TuInterDepth';
|
|
|
725
727
|
export * from './TuIntraDepth';
|
|
726
728
|
export * from './Tweaks';
|
|
727
729
|
export * from './UnsharpFilter';
|
|
728
|
-
export * from './UpdateBitmovinStreamRequest';
|
|
729
730
|
export * from './UpdateOrganizationRequest';
|
|
730
731
|
export * from './UtcTiming';
|
|
731
732
|
export * from './VariantStreamDroppingMode';
|
package/dist/models/index.js
CHANGED
|
@@ -175,11 +175,6 @@ __exportStar(require("./BillableEncodingMinutesDetails"), exports);
|
|
|
175
175
|
__exportStar(require("./BitmovinResource"), exports);
|
|
176
176
|
__exportStar(require("./BitmovinResponse"), exports);
|
|
177
177
|
__exportStar(require("./BitmovinResponseList"), exports);
|
|
178
|
-
__exportStar(require("./BitmovinStreamEncodingStatus"), exports);
|
|
179
|
-
__exportStar(require("./BitmovinStreamEncodingTask"), exports);
|
|
180
|
-
__exportStar(require("./BitmovinStreamQuality"), exports);
|
|
181
|
-
__exportStar(require("./BitmovinStreamResponse"), exports);
|
|
182
|
-
__exportStar(require("./BitmovinStreamStatus"), exports);
|
|
183
178
|
__exportStar(require("./BitrateSelectionMode"), exports);
|
|
184
179
|
__exportStar(require("./BroadcastTsAudioInputStreamConfiguration"), exports);
|
|
185
180
|
__exportStar(require("./BroadcastTsInputStreamConfiguration"), exports);
|
|
@@ -231,7 +226,6 @@ __exportStar(require("./ContentProtection"), exports);
|
|
|
231
226
|
__exportStar(require("./ConvertSccCaption"), exports);
|
|
232
227
|
__exportStar(require("./ConvertSccCaptionWebVttSettings"), exports);
|
|
233
228
|
__exportStar(require("./ConvertSccPositionMode"), exports);
|
|
234
|
-
__exportStar(require("./CreateBitmovinStreamRequest"), exports);
|
|
235
229
|
__exportStar(require("./CropFilter"), exports);
|
|
236
230
|
__exportStar(require("./CustomAttribute"), exports);
|
|
237
231
|
__exportStar(require("./CustomData"), exports);
|
|
@@ -652,6 +646,7 @@ __exportStar(require("./SimpleEncodingVodJobInput"), exports);
|
|
|
652
646
|
__exportStar(require("./SimpleEncodingVodJobInputSourceType"), exports);
|
|
653
647
|
__exportStar(require("./SimpleEncodingVodJobInputType"), exports);
|
|
654
648
|
__exportStar(require("./SimpleEncodingVodJobOutput"), exports);
|
|
649
|
+
__exportStar(require("./SimpleEncodingVodJobOutputArtifact"), exports);
|
|
655
650
|
__exportStar(require("./SimpleEncodingVodJobOutputType"), exports);
|
|
656
651
|
__exportStar(require("./SimpleEncodingVodJobRequest"), exports);
|
|
657
652
|
__exportStar(require("./SimpleEncodingVodJobResponse"), exports);
|
|
@@ -709,6 +704,13 @@ __exportStar(require("./StreamMode"), exports);
|
|
|
709
704
|
__exportStar(require("./StreamPerTitleFixedResolutionAndBitrateSettings"), exports);
|
|
710
705
|
__exportStar(require("./StreamPerTitleSettings"), exports);
|
|
711
706
|
__exportStar(require("./StreamSelectionMode"), exports);
|
|
707
|
+
__exportStar(require("./StreamsVideoCreateRequest"), exports);
|
|
708
|
+
__exportStar(require("./StreamsVideoEncodingStatus"), exports);
|
|
709
|
+
__exportStar(require("./StreamsVideoEncodingTask"), exports);
|
|
710
|
+
__exportStar(require("./StreamsVideoQuality"), exports);
|
|
711
|
+
__exportStar(require("./StreamsVideoResponse"), exports);
|
|
712
|
+
__exportStar(require("./StreamsVideoStatus"), exports);
|
|
713
|
+
__exportStar(require("./StreamsVideoUpdateRequest"), exports);
|
|
712
714
|
__exportStar(require("./Subtask"), exports);
|
|
713
715
|
__exportStar(require("./SubtitleAdaptationSet"), exports);
|
|
714
716
|
__exportStar(require("./SubtitleConfiguration"), exports);
|
|
@@ -741,7 +743,6 @@ __exportStar(require("./TuInterDepth"), exports);
|
|
|
741
743
|
__exportStar(require("./TuIntraDepth"), exports);
|
|
742
744
|
__exportStar(require("./Tweaks"), exports);
|
|
743
745
|
__exportStar(require("./UnsharpFilter"), exports);
|
|
744
|
-
__exportStar(require("./UpdateBitmovinStreamRequest"), exports);
|
|
745
746
|
__exportStar(require("./UpdateOrganizationRequest"), exports);
|
|
746
747
|
__exportStar(require("./UtcTiming"), exports);
|
|
747
748
|
__exportStar(require("./VariantStreamDroppingMode"), exports);
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { BaseAPI } from '../common/BaseAPI';
|
|
2
2
|
import Configuration from '../common/Configuration';
|
|
3
|
-
import
|
|
4
|
-
import CreateBitmovinStreamRequest from '../models/CreateBitmovinStreamRequest';
|
|
5
|
-
import UpdateBitmovinStreamRequest from '../models/UpdateBitmovinStreamRequest';
|
|
6
|
-
import PaginationResponse from '../models/PaginationResponse';
|
|
7
|
-
import { BitmovinStreamResponseListQueryParams, BitmovinStreamResponseListQueryParamsBuilder } from './BitmovinStreamResponseListQueryParams';
|
|
3
|
+
import VideoApi from './video/VideoApi';
|
|
8
4
|
/**
|
|
9
5
|
* StreamsApi - object-oriented interface
|
|
10
6
|
* @export
|
|
@@ -12,34 +8,6 @@ import { BitmovinStreamResponseListQueryParams, BitmovinStreamResponseListQueryP
|
|
|
12
8
|
* @extends {BaseAPI}
|
|
13
9
|
*/
|
|
14
10
|
export default class StreamsApi extends BaseAPI {
|
|
11
|
+
video: VideoApi;
|
|
15
12
|
constructor(configuration: Configuration);
|
|
16
|
-
/**
|
|
17
|
-
* @summary Create new Stream
|
|
18
|
-
* @param {CreateBitmovinStreamRequest} createBitmovinStreamRequest Create a new Stream.
|
|
19
|
-
* @throws {BitmovinError}
|
|
20
|
-
* @memberof StreamsApi
|
|
21
|
-
*/
|
|
22
|
-
create(createBitmovinStreamRequest?: CreateBitmovinStreamRequest): Promise<BitmovinStreamResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* @summary Get Stream by id
|
|
25
|
-
* @param {string} streamId Id of the Stream.
|
|
26
|
-
* @throws {BitmovinError}
|
|
27
|
-
* @memberof StreamsApi
|
|
28
|
-
*/
|
|
29
|
-
get(streamId: string): Promise<BitmovinStreamResponse>;
|
|
30
|
-
/**
|
|
31
|
-
* @summary Get paginated list of Streams
|
|
32
|
-
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
33
|
-
* @throws {BitmovinError}
|
|
34
|
-
* @memberof StreamsApi
|
|
35
|
-
*/
|
|
36
|
-
list(queryParameters?: BitmovinStreamResponseListQueryParams | ((q: BitmovinStreamResponseListQueryParamsBuilder) => BitmovinStreamResponseListQueryParamsBuilder)): Promise<PaginationResponse<BitmovinStreamResponse>>;
|
|
37
|
-
/**
|
|
38
|
-
* @summary Update Stream by id
|
|
39
|
-
* @param {string} streamId Id of the Stream.
|
|
40
|
-
* @param {UpdateBitmovinStreamRequest} updateBitmovinStreamRequest Stream fields to update.
|
|
41
|
-
* @throws {BitmovinError}
|
|
42
|
-
* @memberof StreamsApi
|
|
43
|
-
*/
|
|
44
|
-
patchBitmovinStreamsStreamsByStreamId(streamId: string, updateBitmovinStreamRequest?: UpdateBitmovinStreamRequest): Promise<BitmovinStreamResponse>;
|
|
45
13
|
}
|
|
@@ -16,10 +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
|
|
20
|
-
var BitmovinStreamResponse_1 = require("../models/BitmovinStreamResponse");
|
|
21
|
-
var PaginationResponse_1 = require("../models/PaginationResponse");
|
|
22
|
-
var BitmovinStreamResponseListQueryParams_1 = require("./BitmovinStreamResponseListQueryParams");
|
|
19
|
+
var VideoApi_1 = require("./video/VideoApi");
|
|
23
20
|
/**
|
|
24
21
|
* StreamsApi - object-oriented interface
|
|
25
22
|
* @export
|
|
@@ -29,66 +26,10 @@ var BitmovinStreamResponseListQueryParams_1 = require("./BitmovinStreamResponseL
|
|
|
29
26
|
var StreamsApi = /** @class */ (function (_super) {
|
|
30
27
|
__extends(StreamsApi, _super);
|
|
31
28
|
function StreamsApi(configuration) {
|
|
32
|
-
|
|
29
|
+
var _this = _super.call(this, configuration) || this;
|
|
30
|
+
_this.video = new VideoApi_1.default(configuration);
|
|
31
|
+
return _this;
|
|
33
32
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @summary Create new Stream
|
|
36
|
-
* @param {CreateBitmovinStreamRequest} createBitmovinStreamRequest Create a new Stream.
|
|
37
|
-
* @throws {BitmovinError}
|
|
38
|
-
* @memberof StreamsApi
|
|
39
|
-
*/
|
|
40
|
-
StreamsApi.prototype.create = function (createBitmovinStreamRequest) {
|
|
41
|
-
return this.restClient.post('/streams', {}, createBitmovinStreamRequest).then(function (response) {
|
|
42
|
-
return (0, Mapper_1.map)(response, BitmovinStreamResponse_1.default);
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* @summary Get Stream by id
|
|
47
|
-
* @param {string} streamId Id of the Stream.
|
|
48
|
-
* @throws {BitmovinError}
|
|
49
|
-
* @memberof StreamsApi
|
|
50
|
-
*/
|
|
51
|
-
StreamsApi.prototype.get = function (streamId) {
|
|
52
|
-
var pathParamMap = {
|
|
53
|
-
stream_id: streamId
|
|
54
|
-
};
|
|
55
|
-
return this.restClient.get('/streams/{stream_id}', pathParamMap).then(function (response) {
|
|
56
|
-
return (0, Mapper_1.map)(response, BitmovinStreamResponse_1.default);
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* @summary Get paginated list of Streams
|
|
61
|
-
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
62
|
-
* @throws {BitmovinError}
|
|
63
|
-
* @memberof StreamsApi
|
|
64
|
-
*/
|
|
65
|
-
StreamsApi.prototype.list = function (queryParameters) {
|
|
66
|
-
var queryParams = {};
|
|
67
|
-
if (typeof queryParameters === 'function') {
|
|
68
|
-
queryParams = queryParameters(new BitmovinStreamResponseListQueryParams_1.BitmovinStreamResponseListQueryParamsBuilder()).buildQueryParams();
|
|
69
|
-
}
|
|
70
|
-
else if (queryParameters) {
|
|
71
|
-
queryParams = queryParameters;
|
|
72
|
-
}
|
|
73
|
-
return this.restClient.get('/streams', {}, queryParams).then(function (response) {
|
|
74
|
-
return new PaginationResponse_1.default(response, BitmovinStreamResponse_1.default);
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
/**
|
|
78
|
-
* @summary Update Stream by id
|
|
79
|
-
* @param {string} streamId Id of the Stream.
|
|
80
|
-
* @param {UpdateBitmovinStreamRequest} updateBitmovinStreamRequest Stream fields to update.
|
|
81
|
-
* @throws {BitmovinError}
|
|
82
|
-
* @memberof StreamsApi
|
|
83
|
-
*/
|
|
84
|
-
StreamsApi.prototype.patchBitmovinStreamsStreamsByStreamId = function (streamId, updateBitmovinStreamRequest) {
|
|
85
|
-
var pathParamMap = {
|
|
86
|
-
stream_id: streamId
|
|
87
|
-
};
|
|
88
|
-
return this.restClient.patch('/streams/{stream_id}', pathParamMap, updateBitmovinStreamRequest).then(function (response) {
|
|
89
|
-
return (0, Mapper_1.map)(response, BitmovinStreamResponse_1.default);
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
33
|
return StreamsApi;
|
|
93
34
|
}(BaseAPI_1.BaseAPI));
|
|
94
35
|
exports.default = StreamsApi;
|