@bitmovin/api-sdk 1.139.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/bitmovin-api-sdk.browser.js +98 -4
- 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 +1 -1
- package/dist/models/StreamsLiveUpdateRequest.d.ts +20 -0
- package/dist/models/StreamsLiveUpdateRequest.js +20 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/streams/StreamsApi.d.ts +2 -0
- package/dist/streams/StreamsApi.js +2 -0
- package/dist/streams/live/LiveApi.d.ts +20 -0
- package/dist/streams/live/LiveApi.js +49 -0
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
package/dist/common/Mapper.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Configuration from './Configuration';
|
|
2
|
-
export
|
|
2
|
+
export type FetchAPI = (url: string, init?: any) => Promise<Response>;
|
|
3
3
|
export declare function copyAndPrepareBody(value: any): any;
|
|
4
4
|
export declare class RestClient {
|
|
5
5
|
private readonly GET;
|
|
@@ -29,7 +29,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
29
29
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
30
|
function step(op) {
|
|
31
31
|
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
-
while (_) try {
|
|
32
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
33
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
34
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
35
|
switch (op[0]) {
|
|
@@ -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.140.0',
|
|
244
244
|
'Content-Type': 'application/json'
|
|
245
245
|
};
|
|
246
246
|
if (tenantOrgId) {
|
|
@@ -2,7 +2,7 @@ import AndConjunction from './AndConjunction';
|
|
|
2
2
|
import Condition from './Condition';
|
|
3
3
|
import ConditionType from './ConditionType';
|
|
4
4
|
import OrConjunction from './OrConjunction';
|
|
5
|
-
export
|
|
5
|
+
export type AbstractConditionUnion = Condition | AndConjunction | OrConjunction;
|
|
6
6
|
/**
|
|
7
7
|
* @export
|
|
8
8
|
* @class AbstractCondition
|
|
@@ -9,7 +9,7 @@ import AdAnalyticsLessThanOrEqualFilter from './AdAnalyticsLessThanOrEqualFilter
|
|
|
9
9
|
import AdAnalyticsNotContainsFilter from './AdAnalyticsNotContainsFilter';
|
|
10
10
|
import AdAnalyticsNotEqualFilter from './AdAnalyticsNotEqualFilter';
|
|
11
11
|
import AnalyticsQueryOperator from './AnalyticsQueryOperator';
|
|
12
|
-
export
|
|
12
|
+
export type AdAnalyticsAbstractFilterUnion = AdAnalyticsInFilter | AdAnalyticsEqualFilter | AdAnalyticsNotEqualFilter | AdAnalyticsLessThanFilter | AdAnalyticsLessThanOrEqualFilter | AdAnalyticsGreaterThanFilter | AdAnalyticsGreaterThanOrEqualFilter | AdAnalyticsContainsFilter | AdAnalyticsNotContainsFilter;
|
|
13
13
|
/**
|
|
14
14
|
* @export
|
|
15
15
|
* @class AdAnalyticsAbstractFilter
|
|
@@ -8,7 +8,7 @@ import ImageAdaptationSet from './ImageAdaptationSet';
|
|
|
8
8
|
import Label from './Label';
|
|
9
9
|
import SubtitleAdaptationSet from './SubtitleAdaptationSet';
|
|
10
10
|
import VideoAdaptationSet from './VideoAdaptationSet';
|
|
11
|
-
export
|
|
11
|
+
export type AdaptationSetUnion = VideoAdaptationSet | AudioAdaptationSet | ImageAdaptationSet | SubtitleAdaptationSet;
|
|
12
12
|
/**
|
|
13
13
|
* @export
|
|
14
14
|
* @class AdaptationSet
|
|
@@ -9,7 +9,7 @@ import AnalyticsLessThanOrEqualFilter from './AnalyticsLessThanOrEqualFilter';
|
|
|
9
9
|
import AnalyticsNotContainsFilter from './AnalyticsNotContainsFilter';
|
|
10
10
|
import AnalyticsNotEqualFilter from './AnalyticsNotEqualFilter';
|
|
11
11
|
import AnalyticsQueryOperator from './AnalyticsQueryOperator';
|
|
12
|
-
export
|
|
12
|
+
export type AnalyticsAbstractFilterUnion = AnalyticsInFilter | AnalyticsEqualFilter | AnalyticsNotEqualFilter | AnalyticsLessThanFilter | AnalyticsLessThanOrEqualFilter | AnalyticsGreaterThanFilter | AnalyticsGreaterThanOrEqualFilter | AnalyticsContainsFilter | AnalyticsNotContainsFilter;
|
|
13
13
|
/**
|
|
14
14
|
* @export
|
|
15
15
|
* @class AnalyticsAbstractFilter
|
|
@@ -4,7 +4,7 @@ import AnalyticsGcsServiceAccountOutput from './AnalyticsGcsServiceAccountOutput
|
|
|
4
4
|
import AnalyticsOutputType from './AnalyticsOutputType';
|
|
5
5
|
import AnalyticsS3RoleBasedOutput from './AnalyticsS3RoleBasedOutput';
|
|
6
6
|
import BitmovinResource from './BitmovinResource';
|
|
7
|
-
export
|
|
7
|
+
export type AnalyticsOutputUnion = AnalyticsS3RoleBasedOutput | AnalyticsGcsServiceAccountOutput | AnalyticsAzureOutput;
|
|
8
8
|
/**
|
|
9
9
|
* @export
|
|
10
10
|
* @class AnalyticsOutput
|
|
@@ -26,7 +26,7 @@ import VorbisAudioConfiguration from './VorbisAudioConfiguration';
|
|
|
26
26
|
import Vp8VideoConfiguration from './Vp8VideoConfiguration';
|
|
27
27
|
import Vp9VideoConfiguration from './Vp9VideoConfiguration';
|
|
28
28
|
import WebVttConfiguration from './WebVttConfiguration';
|
|
29
|
-
export
|
|
29
|
+
export type CodecConfigurationUnion = AacAudioConfiguration | DtsPassthroughAudioConfiguration | DtsAudioConfiguration | DtsXAudioConfiguration | DvbSubtitleConfiguration | HeAacV1AudioConfiguration | HeAacV2AudioConfiguration | H264VideoConfiguration | H265VideoConfiguration | Vp9VideoConfiguration | Vp8VideoConfiguration | Mp2AudioConfiguration | Mp3AudioConfiguration | Ac3AudioConfiguration | DolbyDigitalAudioConfiguration | Eac3AudioConfiguration | DolbyDigitalPlusAudioConfiguration | OpusAudioConfiguration | VorbisAudioConfiguration | MjpegVideoConfiguration | Av1VideoConfiguration | DolbyAtmosAudioConfiguration | H262VideoConfiguration | PcmAudioConfiguration | WebVttConfiguration | ImscConfiguration;
|
|
30
30
|
/**
|
|
31
31
|
* @export
|
|
32
32
|
* @class CodecConfiguration
|
|
@@ -12,7 +12,7 @@ import DashRepresentationTypeDiscriminator from './DashRepresentationTypeDiscrim
|
|
|
12
12
|
import DashVttRepresentation from './DashVttRepresentation';
|
|
13
13
|
import DashWebmRepresentation from './DashWebmRepresentation';
|
|
14
14
|
import SpriteRepresentation from './SpriteRepresentation';
|
|
15
|
-
export
|
|
15
|
+
export type DashRepresentationUnion = DashFmp4DrmRepresentation | DashFmp4Representation | DashWebmRepresentation | DashCmafRepresentation | DashChunkedTextRepresentation | DashMp4Representation | DashMp4DrmRepresentation | DashProgressiveWebmRepresentation | DashVttRepresentation | SpriteRepresentation | DashImscRepresentation | ContentProtection;
|
|
16
16
|
/**
|
|
17
17
|
* @export
|
|
18
18
|
* @class DashRepresentation
|
|
@@ -2,7 +2,7 @@ import ConditionType from './ConditionType';
|
|
|
2
2
|
import DefaultManifestAndCondition from './DefaultManifestAndCondition';
|
|
3
3
|
import DefaultManifestAttributeCondition from './DefaultManifestAttributeCondition';
|
|
4
4
|
import DefaultManifestOrCondition from './DefaultManifestOrCondition';
|
|
5
|
-
export
|
|
5
|
+
export type DefaultManifestConditionUnion = DefaultManifestAttributeCondition | DefaultManifestAndCondition | DefaultManifestOrCondition;
|
|
6
6
|
/**
|
|
7
7
|
* @export
|
|
8
8
|
* @class DefaultManifestCondition
|
package/dist/models/Drm.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import PlayReadyDrm from './PlayReadyDrm';
|
|
|
10
10
|
import PrimeTimeDrm from './PrimeTimeDrm';
|
|
11
11
|
import SpekeDrm from './SpekeDrm';
|
|
12
12
|
import WidevineDrm from './WidevineDrm';
|
|
13
|
-
export
|
|
13
|
+
export type DrmUnion = WidevineDrm | PlayReadyDrm | PrimeTimeDrm | FairPlayDrm | MarlinDrm | ClearKeyDrm | AesEncryptionDrm | CencDrm | SpekeDrm;
|
|
14
14
|
/**
|
|
15
15
|
* @export
|
|
16
16
|
* @class Drm
|
package/dist/models/Filter.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import ScaleFilter from './ScaleFilter';
|
|
|
15
15
|
import TextFilter from './TextFilter';
|
|
16
16
|
import UnsharpFilter from './UnsharpFilter';
|
|
17
17
|
import WatermarkFilter from './WatermarkFilter';
|
|
18
|
-
export
|
|
18
|
+
export type FilterUnion = CropFilter | ConformFilter | WatermarkFilter | EnhancedWatermarkFilter | RotateFilter | DeinterlaceFilter | EnhancedDeinterlaceFilter | AudioMixFilter | DenoiseHqdn3dFilter | TextFilter | UnsharpFilter | ScaleFilter | InterlaceFilter | AudioVolumeFilter | EbuR128SinglePassFilter;
|
|
19
19
|
/**
|
|
20
20
|
* @export
|
|
21
21
|
* @class Filter
|
package/dist/models/Id3Tag.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import Id3TagPositionMode from './Id3TagPositionMode';
|
|
|
4
4
|
import Id3TagType from './Id3TagType';
|
|
5
5
|
import PlaintextId3Tag from './PlaintextId3Tag';
|
|
6
6
|
import RawId3Tag from './RawId3Tag';
|
|
7
|
-
export
|
|
7
|
+
export type Id3TagUnion = RawId3Tag | FrameIdId3Tag | PlaintextId3Tag;
|
|
8
8
|
/**
|
|
9
9
|
* @export
|
|
10
10
|
* @class Id3Tag
|
package/dist/models/Input.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import S3RoleBasedInput from './S3RoleBasedInput';
|
|
|
18
18
|
import SftpInput from './SftpInput';
|
|
19
19
|
import SrtInput from './SrtInput';
|
|
20
20
|
import ZixiInput from './ZixiInput';
|
|
21
|
-
export
|
|
21
|
+
export type InputUnion = AkamaiNetStorageInput | AsperaInput | AzureInput | RedundantRtmpInput | FtpInput | GenericS3Input | GcsInput | HttpInput | HttpsInput | LocalInput | RtmpInput | S3Input | S3RoleBasedInput | SftpInput | ZixiInput | SrtInput | GcsServiceAccountInput | DirectFileUploadInput;
|
|
22
22
|
/**
|
|
23
23
|
* @export
|
|
24
24
|
* @class Input
|
|
@@ -14,7 +14,7 @@ import IngestInputStream from './IngestInputStream';
|
|
|
14
14
|
import InputStreamType from './InputStreamType';
|
|
15
15
|
import TimeBasedTrimmingInputStream from './TimeBasedTrimmingInputStream';
|
|
16
16
|
import TimecodeTrackTrimmingInputStream from './TimecodeTrackTrimmingInputStream';
|
|
17
|
-
export
|
|
17
|
+
export type InputStreamUnion = IngestInputStream | ConcatenationInputStream | TimeBasedTrimmingInputStream | TimecodeTrackTrimmingInputStream | H264PictureTimingTrimmingInputStream | AudioMixInputStream | DolbyVisionMetadataIngestInputStream | Cea608CaptionInputStream | Cea708CaptionInputStream | FileInputStream | DvbSubtitleInputStream | DvbTeletextInputStream | DolbyAtmosIngestInputStream | DolbyVisionInputStream;
|
|
18
18
|
/**
|
|
19
19
|
* @export
|
|
20
20
|
* @class InputStream
|
package/dist/models/Muxing.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ import StreamConditionsMode from './StreamConditionsMode';
|
|
|
19
19
|
import TextMuxing from './TextMuxing';
|
|
20
20
|
import TsMuxing from './TsMuxing';
|
|
21
21
|
import WebmMuxing from './WebmMuxing';
|
|
22
|
-
export
|
|
22
|
+
export type MuxingUnion = Fmp4Muxing | CmafMuxing | Mp4Muxing | TsMuxing | WebmMuxing | Mp3Muxing | MxfMuxing | ProgressiveWebmMuxing | ProgressiveMovMuxing | ProgressiveTsMuxing | BroadcastTsMuxing | ChunkedTextMuxing | TextMuxing | SegmentedRawMuxing | PackedAudioMuxing;
|
|
23
23
|
/**
|
|
24
24
|
* @export
|
|
25
25
|
* @class Muxing
|
package/dist/models/Output.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import OutputType from './OutputType';
|
|
|
14
14
|
import S3Output from './S3Output';
|
|
15
15
|
import S3RoleBasedOutput from './S3RoleBasedOutput';
|
|
16
16
|
import SftpOutput from './SftpOutput';
|
|
17
|
-
export
|
|
17
|
+
export type OutputUnion = AkamaiNetStorageOutput | AzureOutput | CdnOutput | GenericS3Output | GcsOutput | FtpOutput | LocalOutput | S3Output | S3RoleBasedOutput | SftpOutput | AkamaiMslOutput | LiveMediaIngestOutput | GcsServiceAccountOutput;
|
|
18
18
|
/**
|
|
19
19
|
* @export
|
|
20
20
|
* @class Output
|
|
@@ -25,6 +25,7 @@ export declare class Output extends BitmovinResource {
|
|
|
25
25
|
[key in keyof typeof OutputType]: string;
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
|
+
* Deprecation notice: This property does not have any effect and will not be returned by GET endpoints
|
|
28
29
|
* @type {AclEntry[]}
|
|
29
30
|
* @memberof Output
|
|
30
31
|
*/
|
|
@@ -3,7 +3,7 @@ import EncodingOutput from './EncodingOutput';
|
|
|
3
3
|
import SidecarErrorMode from './SidecarErrorMode';
|
|
4
4
|
import SidecarFileType from './SidecarFileType';
|
|
5
5
|
import WebVttSidecarFile from './WebVttSidecarFile';
|
|
6
|
-
export
|
|
6
|
+
export type SidecarFileUnion = WebVttSidecarFile;
|
|
7
7
|
/**
|
|
8
8
|
* A file that is added to an encoding. The size limit for a sidecar file is 10 MB
|
|
9
9
|
* @export
|
|
@@ -2,7 +2,7 @@ import SimpleEncodingLiveJobCdnOutput from './SimpleEncodingLiveJobCdnOutput';
|
|
|
2
2
|
import SimpleEncodingLiveJobOutputType from './SimpleEncodingLiveJobOutputType';
|
|
3
3
|
import SimpleEncodingLiveJobUrlOutput from './SimpleEncodingLiveJobUrlOutput';
|
|
4
4
|
import SimpleEncodingLiveMaxResolution from './SimpleEncodingLiveMaxResolution';
|
|
5
|
-
export
|
|
5
|
+
export type SimpleEncodingLiveJobOutputUnion = SimpleEncodingLiveJobUrlOutput | SimpleEncodingLiveJobCdnOutput;
|
|
6
6
|
/**
|
|
7
7
|
* @export
|
|
8
8
|
* @class SimpleEncodingLiveJobOutput
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import SimpleEncodingVodJobDirectFileUploadInput from './SimpleEncodingVodJobDirectFileUploadInput';
|
|
2
2
|
import SimpleEncodingVodJobInputSourceType from './SimpleEncodingVodJobInputSourceType';
|
|
3
3
|
import SimpleEncodingVodJobUrlInput from './SimpleEncodingVodJobUrlInput';
|
|
4
|
-
export
|
|
4
|
+
export type SimpleEncodingVodJobInputUnion = SimpleEncodingVodJobUrlInput | SimpleEncodingVodJobDirectFileUploadInput;
|
|
5
5
|
/**
|
|
6
6
|
* @export
|
|
7
7
|
* @class SimpleEncodingVodJobInput
|
|
@@ -2,7 +2,7 @@ import SimpleEncodingVodJobCdnOutput from './SimpleEncodingVodJobCdnOutput';
|
|
|
2
2
|
import SimpleEncodingVodJobOutputArtifact from './SimpleEncodingVodJobOutputArtifact';
|
|
3
3
|
import SimpleEncodingVodJobOutputType from './SimpleEncodingVodJobOutputType';
|
|
4
4
|
import SimpleEncodingVodJobUrlOutput from './SimpleEncodingVodJobUrlOutput';
|
|
5
|
-
export
|
|
5
|
+
export type SimpleEncodingVodJobOutputUnion = SimpleEncodingVodJobUrlOutput | SimpleEncodingVodJobCdnOutput;
|
|
6
6
|
/**
|
|
7
7
|
* @export
|
|
8
8
|
* @class SimpleEncodingVodJobOutput
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @export
|
|
3
|
+
* @class StreamsLiveUpdateRequest
|
|
4
|
+
*/
|
|
5
|
+
export declare class StreamsLiveUpdateRequest {
|
|
6
|
+
/**
|
|
7
|
+
* The new title of the stream
|
|
8
|
+
* @type {string}
|
|
9
|
+
* @memberof StreamsLiveUpdateRequest
|
|
10
|
+
*/
|
|
11
|
+
title?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The new description of the stream
|
|
14
|
+
* @type {string}
|
|
15
|
+
* @memberof StreamsLiveUpdateRequest
|
|
16
|
+
*/
|
|
17
|
+
description?: string;
|
|
18
|
+
constructor(obj?: Partial<StreamsLiveUpdateRequest>);
|
|
19
|
+
}
|
|
20
|
+
export default StreamsLiveUpdateRequest;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StreamsLiveUpdateRequest = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @class StreamsLiveUpdateRequest
|
|
8
|
+
*/
|
|
9
|
+
var StreamsLiveUpdateRequest = /** @class */ (function () {
|
|
10
|
+
function StreamsLiveUpdateRequest(obj) {
|
|
11
|
+
if (!obj) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this.title = (0, Mapper_1.map)(obj.title);
|
|
15
|
+
this.description = (0, Mapper_1.map)(obj.description);
|
|
16
|
+
}
|
|
17
|
+
return StreamsLiveUpdateRequest;
|
|
18
|
+
}());
|
|
19
|
+
exports.StreamsLiveUpdateRequest = StreamsLiveUpdateRequest;
|
|
20
|
+
exports.default = StreamsLiveUpdateRequest;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -688,6 +688,7 @@ export * from './StreamMode';
|
|
|
688
688
|
export * from './StreamPerTitleFixedResolutionAndBitrateSettings';
|
|
689
689
|
export * from './StreamPerTitleSettings';
|
|
690
690
|
export * from './StreamSelectionMode';
|
|
691
|
+
export * from './StreamsLiveUpdateRequest';
|
|
691
692
|
export * from './StreamsVideoCreateRequest';
|
|
692
693
|
export * from './StreamsVideoEncodingStatus';
|
|
693
694
|
export * from './StreamsVideoEncodingTask';
|
package/dist/models/index.js
CHANGED
|
@@ -704,6 +704,7 @@ __exportStar(require("./StreamMode"), exports);
|
|
|
704
704
|
__exportStar(require("./StreamPerTitleFixedResolutionAndBitrateSettings"), exports);
|
|
705
705
|
__exportStar(require("./StreamPerTitleSettings"), exports);
|
|
706
706
|
__exportStar(require("./StreamSelectionMode"), exports);
|
|
707
|
+
__exportStar(require("./StreamsLiveUpdateRequest"), exports);
|
|
707
708
|
__exportStar(require("./StreamsVideoCreateRequest"), exports);
|
|
708
709
|
__exportStar(require("./StreamsVideoEncodingStatus"), exports);
|
|
709
710
|
__exportStar(require("./StreamsVideoEncodingTask"), exports);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseAPI } from '../common/BaseAPI';
|
|
2
2
|
import Configuration from '../common/Configuration';
|
|
3
3
|
import VideoApi from './video/VideoApi';
|
|
4
|
+
import LiveApi from './live/LiveApi';
|
|
4
5
|
/**
|
|
5
6
|
* StreamsApi - object-oriented interface
|
|
6
7
|
* @export
|
|
@@ -9,5 +10,6 @@ import VideoApi from './video/VideoApi';
|
|
|
9
10
|
*/
|
|
10
11
|
export default class StreamsApi extends BaseAPI {
|
|
11
12
|
video: VideoApi;
|
|
13
|
+
live: LiveApi;
|
|
12
14
|
constructor(configuration: Configuration);
|
|
13
15
|
}
|
|
@@ -17,6 +17,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
var BaseAPI_1 = require("../common/BaseAPI");
|
|
19
19
|
var VideoApi_1 = require("./video/VideoApi");
|
|
20
|
+
var LiveApi_1 = require("./live/LiveApi");
|
|
20
21
|
/**
|
|
21
22
|
* StreamsApi - object-oriented interface
|
|
22
23
|
* @export
|
|
@@ -28,6 +29,7 @@ var StreamsApi = /** @class */ (function (_super) {
|
|
|
28
29
|
function StreamsApi(configuration) {
|
|
29
30
|
var _this = _super.call(this, configuration) || this;
|
|
30
31
|
_this.video = new VideoApi_1.default(configuration);
|
|
32
|
+
_this.live = new LiveApi_1.default(configuration);
|
|
31
33
|
return _this;
|
|
32
34
|
}
|
|
33
35
|
return 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;
|