@bitmovin/api-sdk 1.138.0 → 1.140.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 +448 -275
- package/dist/bitmovin-api-sdk.browser.min.js +1 -1
- package/dist/common/ConsoleLogger.js +1 -1
- package/dist/common/Mapper.d.ts +1 -1
- package/dist/common/NullLogger.js +1 -1
- package/dist/common/RestClient.d.ts +1 -1
- package/dist/common/RestClient.js +2 -2
- package/dist/models/AbstractCondition.d.ts +1 -1
- package/dist/models/AdAnalyticsAbstractFilter.d.ts +1 -1
- package/dist/models/AdaptationSet.d.ts +1 -1
- package/dist/models/AnalyticsAbstractFilter.d.ts +1 -1
- package/dist/models/AnalyticsOutput.d.ts +1 -1
- package/dist/models/CodecConfiguration.d.ts +1 -1
- package/dist/models/DashRepresentation.d.ts +1 -1
- package/dist/models/DefaultManifestCondition.d.ts +1 -1
- package/dist/models/Drm.d.ts +1 -1
- package/dist/models/Filter.d.ts +1 -1
- package/dist/models/Id3Tag.d.ts +1 -1
- package/dist/models/Input.d.ts +1 -1
- package/dist/models/InputStream.d.ts +1 -1
- package/dist/models/Muxing.d.ts +1 -1
- package/dist/models/Output.d.ts +2 -1
- package/dist/models/SidecarFile.d.ts +1 -1
- package/dist/models/SimpleEncodingLiveJobOutput.d.ts +1 -1
- package/dist/models/SimpleEncodingVodJobInput.d.ts +1 -1
- package/dist/models/SimpleEncodingVodJobOutput.d.ts +8 -1
- 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/StreamsLiveUpdateRequest.d.ts +20 -0
- package/dist/models/StreamsLiveUpdateRequest.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 +9 -7
- package/dist/models/index.js +9 -7
- package/dist/streams/StreamsApi.d.ts +4 -34
- package/dist/streams/StreamsApi.js +6 -63
- package/dist/streams/live/LiveApi.d.ts +20 -0
- package/dist/streams/live/LiveApi.js +49 -0
- 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
|
@@ -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,14 @@ export * from './StreamMode';
|
|
|
693
688
|
export * from './StreamPerTitleFixedResolutionAndBitrateSettings';
|
|
694
689
|
export * from './StreamPerTitleSettings';
|
|
695
690
|
export * from './StreamSelectionMode';
|
|
691
|
+
export * from './StreamsLiveUpdateRequest';
|
|
692
|
+
export * from './StreamsVideoCreateRequest';
|
|
693
|
+
export * from './StreamsVideoEncodingStatus';
|
|
694
|
+
export * from './StreamsVideoEncodingTask';
|
|
695
|
+
export * from './StreamsVideoQuality';
|
|
696
|
+
export * from './StreamsVideoResponse';
|
|
697
|
+
export * from './StreamsVideoStatus';
|
|
698
|
+
export * from './StreamsVideoUpdateRequest';
|
|
696
699
|
export * from './Subtask';
|
|
697
700
|
export * from './SubtitleAdaptationSet';
|
|
698
701
|
export * from './SubtitleConfiguration';
|
|
@@ -725,7 +728,6 @@ export * from './TuInterDepth';
|
|
|
725
728
|
export * from './TuIntraDepth';
|
|
726
729
|
export * from './Tweaks';
|
|
727
730
|
export * from './UnsharpFilter';
|
|
728
|
-
export * from './UpdateBitmovinStreamRequest';
|
|
729
731
|
export * from './UpdateOrganizationRequest';
|
|
730
732
|
export * from './UtcTiming';
|
|
731
733
|
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,14 @@ __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("./StreamsLiveUpdateRequest"), exports);
|
|
708
|
+
__exportStar(require("./StreamsVideoCreateRequest"), exports);
|
|
709
|
+
__exportStar(require("./StreamsVideoEncodingStatus"), exports);
|
|
710
|
+
__exportStar(require("./StreamsVideoEncodingTask"), exports);
|
|
711
|
+
__exportStar(require("./StreamsVideoQuality"), exports);
|
|
712
|
+
__exportStar(require("./StreamsVideoResponse"), exports);
|
|
713
|
+
__exportStar(require("./StreamsVideoStatus"), exports);
|
|
714
|
+
__exportStar(require("./StreamsVideoUpdateRequest"), exports);
|
|
712
715
|
__exportStar(require("./Subtask"), exports);
|
|
713
716
|
__exportStar(require("./SubtitleAdaptationSet"), exports);
|
|
714
717
|
__exportStar(require("./SubtitleConfiguration"), exports);
|
|
@@ -741,7 +744,6 @@ __exportStar(require("./TuInterDepth"), exports);
|
|
|
741
744
|
__exportStar(require("./TuIntraDepth"), exports);
|
|
742
745
|
__exportStar(require("./Tweaks"), exports);
|
|
743
746
|
__exportStar(require("./UnsharpFilter"), exports);
|
|
744
|
-
__exportStar(require("./UpdateBitmovinStreamRequest"), exports);
|
|
745
747
|
__exportStar(require("./UpdateOrganizationRequest"), exports);
|
|
746
748
|
__exportStar(require("./UtcTiming"), exports);
|
|
747
749
|
__exportStar(require("./VariantStreamDroppingMode"), exports);
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { BaseAPI } from '../common/BaseAPI';
|
|
2
2
|
import Configuration from '../common/Configuration';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import UpdateBitmovinStreamRequest from '../models/UpdateBitmovinStreamRequest';
|
|
6
|
-
import PaginationResponse from '../models/PaginationResponse';
|
|
7
|
-
import { BitmovinStreamResponseListQueryParams, BitmovinStreamResponseListQueryParamsBuilder } from './BitmovinStreamResponseListQueryParams';
|
|
3
|
+
import VideoApi from './video/VideoApi';
|
|
4
|
+
import LiveApi from './live/LiveApi';
|
|
8
5
|
/**
|
|
9
6
|
* StreamsApi - object-oriented interface
|
|
10
7
|
* @export
|
|
@@ -12,34 +9,7 @@ import { BitmovinStreamResponseListQueryParams, BitmovinStreamResponseListQueryP
|
|
|
12
9
|
* @extends {BaseAPI}
|
|
13
10
|
*/
|
|
14
11
|
export default class StreamsApi extends BaseAPI {
|
|
12
|
+
video: VideoApi;
|
|
13
|
+
live: LiveApi;
|
|
15
14
|
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
15
|
}
|
|
@@ -16,10 +16,8 @@ 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
|
|
21
|
-
var PaginationResponse_1 = require("../models/PaginationResponse");
|
|
22
|
-
var BitmovinStreamResponseListQueryParams_1 = require("./BitmovinStreamResponseListQueryParams");
|
|
19
|
+
var VideoApi_1 = require("./video/VideoApi");
|
|
20
|
+
var LiveApi_1 = require("./live/LiveApi");
|
|
23
21
|
/**
|
|
24
22
|
* StreamsApi - object-oriented interface
|
|
25
23
|
* @export
|
|
@@ -29,66 +27,11 @@ var BitmovinStreamResponseListQueryParams_1 = require("./BitmovinStreamResponseL
|
|
|
29
27
|
var StreamsApi = /** @class */ (function (_super) {
|
|
30
28
|
__extends(StreamsApi, _super);
|
|
31
29
|
function StreamsApi(configuration) {
|
|
32
|
-
|
|
30
|
+
var _this = _super.call(this, configuration) || this;
|
|
31
|
+
_this.video = new VideoApi_1.default(configuration);
|
|
32
|
+
_this.live = new LiveApi_1.default(configuration);
|
|
33
|
+
return _this;
|
|
33
34
|
}
|
|
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
35
|
return StreamsApi;
|
|
93
36
|
}(BaseAPI_1.BaseAPI));
|
|
94
37
|
exports.default = StreamsApi;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseAPI } from '../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../common/Configuration';
|
|
3
|
+
import StreamsLiveUpdateRequest from '../../models/StreamsLiveUpdateRequest';
|
|
4
|
+
/**
|
|
5
|
+
* LiveApi - object-oriented interface
|
|
6
|
+
* @export
|
|
7
|
+
* @class LiveApi
|
|
8
|
+
* @extends {BaseAPI}
|
|
9
|
+
*/
|
|
10
|
+
export default class LiveApi extends BaseAPI {
|
|
11
|
+
constructor(configuration: Configuration);
|
|
12
|
+
/**
|
|
13
|
+
* @summary Update stream by id
|
|
14
|
+
* @param {string} streamId Id of the stream.
|
|
15
|
+
* @param {StreamsLiveUpdateRequest} streamsLiveUpdateRequest Stream fields to update.
|
|
16
|
+
* @throws {BitmovinError}
|
|
17
|
+
* @memberof LiveApi
|
|
18
|
+
*/
|
|
19
|
+
patchStreamsLive(streamId: string, streamsLiveUpdateRequest?: StreamsLiveUpdateRequest): Promise<StreamsLiveUpdateRequest>;
|
|
20
|
+
}
|
|
@@ -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 StreamsLiveUpdateRequest_1 = require("../../models/StreamsLiveUpdateRequest");
|
|
21
|
+
/**
|
|
22
|
+
* LiveApi - object-oriented interface
|
|
23
|
+
* @export
|
|
24
|
+
* @class LiveApi
|
|
25
|
+
* @extends {BaseAPI}
|
|
26
|
+
*/
|
|
27
|
+
var LiveApi = /** @class */ (function (_super) {
|
|
28
|
+
__extends(LiveApi, _super);
|
|
29
|
+
function LiveApi(configuration) {
|
|
30
|
+
return _super.call(this, configuration) || this;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @summary Update stream by id
|
|
34
|
+
* @param {string} streamId Id of the stream.
|
|
35
|
+
* @param {StreamsLiveUpdateRequest} streamsLiveUpdateRequest Stream fields to update.
|
|
36
|
+
* @throws {BitmovinError}
|
|
37
|
+
* @memberof LiveApi
|
|
38
|
+
*/
|
|
39
|
+
LiveApi.prototype.patchStreamsLive = function (streamId, streamsLiveUpdateRequest) {
|
|
40
|
+
var pathParamMap = {
|
|
41
|
+
stream_id: streamId
|
|
42
|
+
};
|
|
43
|
+
return this.restClient.patch('/streams/live/{stream_id}', pathParamMap, streamsLiveUpdateRequest).then(function (response) {
|
|
44
|
+
return (0, Mapper_1.map)(response, StreamsLiveUpdateRequest_1.default);
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
return LiveApi;
|
|
48
|
+
}(BaseAPI_1.BaseAPI));
|
|
49
|
+
exports.default = LiveApi;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface StreamsVideoResponseListQueryParams {
|
|
2
2
|
/**
|
|
3
3
|
* Index of the first item to return, starting at 0. Default is 0
|
|
4
4
|
* @type {number}
|
|
5
|
-
* @memberof
|
|
5
|
+
* @memberof StreamsVideoResponseListQueryParams
|
|
6
6
|
*/
|
|
7
7
|
offset?: number | undefined;
|
|
8
8
|
/**
|
|
9
9
|
* Maximum number of items to return. Default is 25, maximum is 100
|
|
10
10
|
* @type {number}
|
|
11
|
-
* @memberof
|
|
11
|
+
* @memberof StreamsVideoResponseListQueryParams
|
|
12
12
|
*/
|
|
13
13
|
limit?: number | undefined;
|
|
14
14
|
/**
|
|
15
15
|
* Order list result according an resource attribute. The fields that can be used for sorting are: + `createdAt`
|
|
16
16
|
* @type {string}
|
|
17
|
-
* @memberof
|
|
17
|
+
* @memberof StreamsVideoResponseListQueryParams
|
|
18
18
|
*/
|
|
19
19
|
sort?: string | undefined;
|
|
20
20
|
}
|
|
21
|
-
export declare class
|
|
21
|
+
export declare class StreamsVideoResponseListQueryParamsBuilder {
|
|
22
22
|
private internalParams;
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
@@ -35,5 +35,5 @@ export declare class BitmovinStreamResponseListQueryParamsBuilder {
|
|
|
35
35
|
* @param sort Order list result according an resource attribute. The fields that can be used for sorting are: + `createdAt`
|
|
36
36
|
*/
|
|
37
37
|
sort(sort: string): this;
|
|
38
|
-
buildQueryParams():
|
|
38
|
+
buildQueryParams(): StreamsVideoResponseListQueryParams;
|
|
39
39
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
function
|
|
3
|
+
exports.StreamsVideoResponseListQueryParamsBuilder = void 0;
|
|
4
|
+
var StreamsVideoResponseListQueryParamsBuilder = /** @class */ (function () {
|
|
5
|
+
function StreamsVideoResponseListQueryParamsBuilder() {
|
|
6
6
|
this.internalParams = {};
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
10
|
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
StreamsVideoResponseListQueryParamsBuilder.prototype.offset = function (offset) {
|
|
13
13
|
this.internalParams.offset = offset;
|
|
14
14
|
return this;
|
|
15
15
|
};
|
|
@@ -17,7 +17,7 @@ var BitmovinStreamResponseListQueryParamsBuilder = /** @class */ (function () {
|
|
|
17
17
|
*
|
|
18
18
|
* @param limit Maximum number of items to return. Default is 25, maximum is 100
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
StreamsVideoResponseListQueryParamsBuilder.prototype.limit = function (limit) {
|
|
21
21
|
this.internalParams.limit = limit;
|
|
22
22
|
return this;
|
|
23
23
|
};
|
|
@@ -25,13 +25,13 @@ var BitmovinStreamResponseListQueryParamsBuilder = /** @class */ (function () {
|
|
|
25
25
|
*
|
|
26
26
|
* @param sort Order list result according an resource attribute. The fields that can be used for sorting are: + `createdAt`
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
StreamsVideoResponseListQueryParamsBuilder.prototype.sort = function (sort) {
|
|
29
29
|
this.internalParams.sort = sort;
|
|
30
30
|
return this;
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
StreamsVideoResponseListQueryParamsBuilder.prototype.buildQueryParams = function () {
|
|
33
33
|
return this.internalParams;
|
|
34
34
|
};
|
|
35
|
-
return
|
|
35
|
+
return StreamsVideoResponseListQueryParamsBuilder;
|
|
36
36
|
}());
|
|
37
|
-
exports.
|
|
37
|
+
exports.StreamsVideoResponseListQueryParamsBuilder = StreamsVideoResponseListQueryParamsBuilder;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { BaseAPI } from '../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../common/Configuration';
|
|
3
|
+
import StreamsVideoCreateRequest from '../../models/StreamsVideoCreateRequest';
|
|
4
|
+
import StreamsVideoResponse from '../../models/StreamsVideoResponse';
|
|
5
|
+
import StreamsVideoUpdateRequest from '../../models/StreamsVideoUpdateRequest';
|
|
6
|
+
import PaginationResponse from '../../models/PaginationResponse';
|
|
7
|
+
import { StreamsVideoResponseListQueryParams, StreamsVideoResponseListQueryParamsBuilder } from './StreamsVideoResponseListQueryParams';
|
|
8
|
+
/**
|
|
9
|
+
* VideoApi - object-oriented interface
|
|
10
|
+
* @export
|
|
11
|
+
* @class VideoApi
|
|
12
|
+
* @extends {BaseAPI}
|
|
13
|
+
*/
|
|
14
|
+
export default class VideoApi extends BaseAPI {
|
|
15
|
+
constructor(configuration: Configuration);
|
|
16
|
+
/**
|
|
17
|
+
* @summary Create new Stream
|
|
18
|
+
* @param {StreamsVideoCreateRequest} streamsVideoCreateRequest Create a new stream.
|
|
19
|
+
* @throws {BitmovinError}
|
|
20
|
+
* @memberof VideoApi
|
|
21
|
+
*/
|
|
22
|
+
create(streamsVideoCreateRequest?: StreamsVideoCreateRequest): Promise<StreamsVideoResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* @summary Get stream by id
|
|
25
|
+
* @param {string} streamId Id of the stream.
|
|
26
|
+
* @throws {BitmovinError}
|
|
27
|
+
* @memberof VideoApi
|
|
28
|
+
*/
|
|
29
|
+
get(streamId: string): Promise<StreamsVideoResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* @summary Get paginated list of streams
|
|
32
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
33
|
+
* @throws {BitmovinError}
|
|
34
|
+
* @memberof VideoApi
|
|
35
|
+
*/
|
|
36
|
+
list(queryParameters?: StreamsVideoResponseListQueryParams | ((q: StreamsVideoResponseListQueryParamsBuilder) => StreamsVideoResponseListQueryParamsBuilder)): Promise<PaginationResponse<StreamsVideoResponse>>;
|
|
37
|
+
/**
|
|
38
|
+
* @summary Update stream by id
|
|
39
|
+
* @param {string} streamId Id of the stream.
|
|
40
|
+
* @param {StreamsVideoUpdateRequest} streamsVideoUpdateRequest Stream fields to update.
|
|
41
|
+
* @throws {BitmovinError}
|
|
42
|
+
* @memberof VideoApi
|
|
43
|
+
*/
|
|
44
|
+
patchStreamsVideo(streamId: string, streamsVideoUpdateRequest?: StreamsVideoUpdateRequest): Promise<StreamsVideoResponse>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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 StreamsVideoResponse_1 = require("../../models/StreamsVideoResponse");
|
|
21
|
+
var PaginationResponse_1 = require("../../models/PaginationResponse");
|
|
22
|
+
var StreamsVideoResponseListQueryParams_1 = require("./StreamsVideoResponseListQueryParams");
|
|
23
|
+
/**
|
|
24
|
+
* VideoApi - object-oriented interface
|
|
25
|
+
* @export
|
|
26
|
+
* @class VideoApi
|
|
27
|
+
* @extends {BaseAPI}
|
|
28
|
+
*/
|
|
29
|
+
var VideoApi = /** @class */ (function (_super) {
|
|
30
|
+
__extends(VideoApi, _super);
|
|
31
|
+
function VideoApi(configuration) {
|
|
32
|
+
return _super.call(this, configuration) || this;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @summary Create new Stream
|
|
36
|
+
* @param {StreamsVideoCreateRequest} streamsVideoCreateRequest Create a new stream.
|
|
37
|
+
* @throws {BitmovinError}
|
|
38
|
+
* @memberof VideoApi
|
|
39
|
+
*/
|
|
40
|
+
VideoApi.prototype.create = function (streamsVideoCreateRequest) {
|
|
41
|
+
return this.restClient.post('/streams/video', {}, streamsVideoCreateRequest).then(function (response) {
|
|
42
|
+
return (0, Mapper_1.map)(response, StreamsVideoResponse_1.default);
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* @summary Get stream by id
|
|
47
|
+
* @param {string} streamId Id of the stream.
|
|
48
|
+
* @throws {BitmovinError}
|
|
49
|
+
* @memberof VideoApi
|
|
50
|
+
*/
|
|
51
|
+
VideoApi.prototype.get = function (streamId) {
|
|
52
|
+
var pathParamMap = {
|
|
53
|
+
stream_id: streamId
|
|
54
|
+
};
|
|
55
|
+
return this.restClient.get('/streams/video/{stream_id}', pathParamMap).then(function (response) {
|
|
56
|
+
return (0, Mapper_1.map)(response, StreamsVideoResponse_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 VideoApi
|
|
64
|
+
*/
|
|
65
|
+
VideoApi.prototype.list = function (queryParameters) {
|
|
66
|
+
var queryParams = {};
|
|
67
|
+
if (typeof queryParameters === 'function') {
|
|
68
|
+
queryParams = queryParameters(new StreamsVideoResponseListQueryParams_1.StreamsVideoResponseListQueryParamsBuilder()).buildQueryParams();
|
|
69
|
+
}
|
|
70
|
+
else if (queryParameters) {
|
|
71
|
+
queryParams = queryParameters;
|
|
72
|
+
}
|
|
73
|
+
return this.restClient.get('/streams/video', {}, queryParams).then(function (response) {
|
|
74
|
+
return new PaginationResponse_1.default(response, StreamsVideoResponse_1.default);
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* @summary Update stream by id
|
|
79
|
+
* @param {string} streamId Id of the stream.
|
|
80
|
+
* @param {StreamsVideoUpdateRequest} streamsVideoUpdateRequest Stream fields to update.
|
|
81
|
+
* @throws {BitmovinError}
|
|
82
|
+
* @memberof VideoApi
|
|
83
|
+
*/
|
|
84
|
+
VideoApi.prototype.patchStreamsVideo = function (streamId, streamsVideoUpdateRequest) {
|
|
85
|
+
var pathParamMap = {
|
|
86
|
+
stream_id: streamId
|
|
87
|
+
};
|
|
88
|
+
return this.restClient.patch('/streams/video/{stream_id}', pathParamMap, streamsVideoUpdateRequest).then(function (response) {
|
|
89
|
+
return (0, Mapper_1.map)(response, StreamsVideoResponse_1.default);
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
return VideoApi;
|
|
93
|
+
}(BaseAPI_1.BaseAPI));
|
|
94
|
+
exports.default = VideoApi;
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BitmovinStreamEncodingStatus = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @export
|
|
6
|
-
* @enum {string}
|
|
7
|
-
*/
|
|
8
|
-
var BitmovinStreamEncodingStatus;
|
|
9
|
-
(function (BitmovinStreamEncodingStatus) {
|
|
10
|
-
BitmovinStreamEncodingStatus["STARTED"] = "STARTED";
|
|
11
|
-
BitmovinStreamEncodingStatus["ERROR"] = "ERROR";
|
|
12
|
-
BitmovinStreamEncodingStatus["FINISHED"] = "FINISHED";
|
|
13
|
-
})(BitmovinStreamEncodingStatus = exports.BitmovinStreamEncodingStatus || (exports.BitmovinStreamEncodingStatus = {}));
|
|
14
|
-
exports.default = BitmovinStreamEncodingStatus;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import BitmovinStreamEncodingStatus from './BitmovinStreamEncodingStatus';
|
|
2
|
-
import BitmovinStreamQuality from './BitmovinStreamQuality';
|
|
3
|
-
/**
|
|
4
|
-
* @export
|
|
5
|
-
* @class BitmovinStreamEncodingTask
|
|
6
|
-
*/
|
|
7
|
-
export declare class BitmovinStreamEncodingTask {
|
|
8
|
-
/**
|
|
9
|
-
* Quality of the encoding
|
|
10
|
-
* @type {BitmovinStreamQuality}
|
|
11
|
-
* @memberof BitmovinStreamEncodingTask
|
|
12
|
-
*/
|
|
13
|
-
quality?: BitmovinStreamQuality;
|
|
14
|
-
/**
|
|
15
|
-
* Current state of the encoding
|
|
16
|
-
* @type {BitmovinStreamEncodingStatus}
|
|
17
|
-
* @memberof BitmovinStreamEncodingTask
|
|
18
|
-
*/
|
|
19
|
-
status?: BitmovinStreamEncodingStatus;
|
|
20
|
-
constructor(obj?: Partial<BitmovinStreamEncodingTask>);
|
|
21
|
-
}
|
|
22
|
-
export default BitmovinStreamEncodingTask;
|