@bitmovin/api-sdk 1.145.0 → 1.147.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 +84 -2
- package/dist/bitmovin-api-sdk.browser.min.js +1 -1
- package/dist/common/RestClient.js +1 -1
- package/dist/encoding/encodings/live/LiveApi.d.ts +1 -1
- package/dist/encoding/encodings/live/LiveApi.js +1 -1
- package/dist/encoding/outputs/OutputsApi.d.ts +10 -0
- package/dist/encoding/outputs/OutputsApi.js +16 -0
- package/dist/models/BroadcastTsMuxing.d.ts +1 -1
- package/dist/models/CheckOutputPermissionsRequest.d.ts +14 -0
- package/dist/models/CheckOutputPermissionsRequest.js +19 -0
- package/dist/models/CheckOutputPermissionsResponse.d.ts +39 -0
- package/dist/models/CheckOutputPermissionsResponse.js +23 -0
- package/dist/models/ChunkedTextMuxing.d.ts +1 -1
- package/dist/models/Message.d.ts +1 -1
- package/dist/models/Mp3Muxing.d.ts +1 -1
- package/dist/models/Mp4Muxing.d.ts +1 -1
- package/dist/models/MxfMuxing.d.ts +1 -1
- package/dist/models/PackedAudioMuxing.d.ts +2 -2
- package/dist/models/ProgressiveMovMuxing.d.ts +1 -1
- package/dist/models/ProgressiveTsMuxing.d.ts +1 -1
- package/dist/models/ProgressiveWebmMuxing.d.ts +1 -1
- package/dist/models/TextMuxing.d.ts +1 -1
- package/dist/models/TsMuxing.d.ts +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
|
@@ -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.147.0',
|
|
244
244
|
'Content-Type': 'application/json'
|
|
245
245
|
};
|
|
246
246
|
if (tenantOrgId) {
|
|
@@ -31,7 +31,7 @@ export default class LiveApi extends BaseAPI {
|
|
|
31
31
|
getStartRequest(encodingId: string): Promise<StartLiveEncodingRequest>;
|
|
32
32
|
/**
|
|
33
33
|
* @summary Re-Start Live Encoding
|
|
34
|
-
* @param {string} encodingId Id of the encoding
|
|
34
|
+
* @param {string} encodingId Id of the encoding. **Important:** Only live encodings with the status `RUNNING`, `FINISHED`, `CANCELED` or `ERROR` can be restarted.
|
|
35
35
|
* @throws {BitmovinError}
|
|
36
36
|
* @memberof LiveApi
|
|
37
37
|
*/
|
|
@@ -66,7 +66,7 @@ var LiveApi = /** @class */ (function (_super) {
|
|
|
66
66
|
};
|
|
67
67
|
/**
|
|
68
68
|
* @summary Re-Start Live Encoding
|
|
69
|
-
* @param {string} encodingId Id of the encoding
|
|
69
|
+
* @param {string} encodingId Id of the encoding. **Important:** Only live encodings with the status `RUNNING`, `FINISHED`, `CANCELED` or `ERROR` can be restarted.
|
|
70
70
|
* @throws {BitmovinError}
|
|
71
71
|
* @memberof LiveApi
|
|
72
72
|
*/
|
|
@@ -14,6 +14,8 @@ import AkamaiMslApi from './akamaiMsl/AkamaiMslApi';
|
|
|
14
14
|
import AkamaiNetstorageApi from './akamaiNetstorage/AkamaiNetstorageApi';
|
|
15
15
|
import LiveMediaIngestApi from './liveMediaIngest/LiveMediaIngestApi';
|
|
16
16
|
import CdnApi from './cdn/CdnApi';
|
|
17
|
+
import CheckOutputPermissionsRequest from '../../models/CheckOutputPermissionsRequest';
|
|
18
|
+
import CheckOutputPermissionsResponse from '../../models/CheckOutputPermissionsResponse';
|
|
17
19
|
import Output from '../../models/Output';
|
|
18
20
|
import PaginationResponse from '../../models/PaginationResponse';
|
|
19
21
|
import { OutputListQueryParams, OutputListQueryParamsBuilder } from './OutputListQueryParams';
|
|
@@ -39,6 +41,14 @@ export default class OutputsApi extends BaseAPI {
|
|
|
39
41
|
liveMediaIngest: LiveMediaIngestApi;
|
|
40
42
|
cdn: CdnApi;
|
|
41
43
|
constructor(configuration: Configuration);
|
|
44
|
+
/**
|
|
45
|
+
* @summary Check output permissions (S3 only)
|
|
46
|
+
* @param {string} outputId Id of the output to be checked. Currently limited to S3 outputs. The access credentials that have been provided for this Output still need to be valid, otherwise the request will fail. If they are not valid any more, create a new Output with new credentials (resources are immutable).
|
|
47
|
+
* @param {CheckOutputPermissionsRequest} [checkOutputPermissionsRequest] Additional parameters for the permissions check
|
|
48
|
+
* @throws {BitmovinError}
|
|
49
|
+
* @memberof OutputsApi
|
|
50
|
+
*/
|
|
51
|
+
checkPermissions(outputId: string, checkOutputPermissionsRequest?: CheckOutputPermissionsRequest): Promise<CheckOutputPermissionsResponse>;
|
|
42
52
|
/**
|
|
43
53
|
* @summary Get Output Details
|
|
44
54
|
* @param {string} outputId Id of the wanted output
|
|
@@ -31,6 +31,7 @@ var AkamaiMslApi_1 = require("./akamaiMsl/AkamaiMslApi");
|
|
|
31
31
|
var AkamaiNetstorageApi_1 = require("./akamaiNetstorage/AkamaiNetstorageApi");
|
|
32
32
|
var LiveMediaIngestApi_1 = require("./liveMediaIngest/LiveMediaIngestApi");
|
|
33
33
|
var CdnApi_1 = require("./cdn/CdnApi");
|
|
34
|
+
var CheckOutputPermissionsResponse_1 = require("../../models/CheckOutputPermissionsResponse");
|
|
34
35
|
var Output_1 = require("../../models/Output");
|
|
35
36
|
var PaginationResponse_1 = require("../../models/PaginationResponse");
|
|
36
37
|
var OutputListQueryParams_1 = require("./OutputListQueryParams");
|
|
@@ -60,6 +61,21 @@ var OutputsApi = /** @class */ (function (_super) {
|
|
|
60
61
|
_this.cdn = new CdnApi_1.default(configuration);
|
|
61
62
|
return _this;
|
|
62
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* @summary Check output permissions (S3 only)
|
|
66
|
+
* @param {string} outputId Id of the output to be checked. Currently limited to S3 outputs. The access credentials that have been provided for this Output still need to be valid, otherwise the request will fail. If they are not valid any more, create a new Output with new credentials (resources are immutable).
|
|
67
|
+
* @param {CheckOutputPermissionsRequest} [checkOutputPermissionsRequest] Additional parameters for the permissions check
|
|
68
|
+
* @throws {BitmovinError}
|
|
69
|
+
* @memberof OutputsApi
|
|
70
|
+
*/
|
|
71
|
+
OutputsApi.prototype.checkPermissions = function (outputId, checkOutputPermissionsRequest) {
|
|
72
|
+
var pathParamMap = {
|
|
73
|
+
output_id: outputId
|
|
74
|
+
};
|
|
75
|
+
return this.restClient.post('/encoding/outputs/{output_id}/check-permissions', pathParamMap, checkOutputPermissionsRequest).then(function (response) {
|
|
76
|
+
return (0, Mapper_1.map)(response, CheckOutputPermissionsResponse_1.default);
|
|
77
|
+
});
|
|
78
|
+
};
|
|
63
79
|
/**
|
|
64
80
|
* @summary Get Output Details
|
|
65
81
|
* @param {string} outputId Id of the wanted output
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @export
|
|
3
|
+
* @class CheckOutputPermissionsRequest
|
|
4
|
+
*/
|
|
5
|
+
export declare class CheckOutputPermissionsRequest {
|
|
6
|
+
/**
|
|
7
|
+
* The path on the storage for which permissions should be checked. In AWS S3 terminology, this corresponds to a \"prefix\". To perform the check, an empty test file (WritePermissionTestFile.txt) will be created in this location. Defaults to an empty string, which corresponds to the root directory.
|
|
8
|
+
* @type {string}
|
|
9
|
+
* @memberof CheckOutputPermissionsRequest
|
|
10
|
+
*/
|
|
11
|
+
path?: string;
|
|
12
|
+
constructor(obj?: Partial<CheckOutputPermissionsRequest>);
|
|
13
|
+
}
|
|
14
|
+
export default CheckOutputPermissionsRequest;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CheckOutputPermissionsRequest = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @class CheckOutputPermissionsRequest
|
|
8
|
+
*/
|
|
9
|
+
var CheckOutputPermissionsRequest = /** @class */ (function () {
|
|
10
|
+
function CheckOutputPermissionsRequest(obj) {
|
|
11
|
+
if (!obj) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this.path = (0, Mapper_1.map)(obj.path);
|
|
15
|
+
}
|
|
16
|
+
return CheckOutputPermissionsRequest;
|
|
17
|
+
}());
|
|
18
|
+
exports.CheckOutputPermissionsRequest = CheckOutputPermissionsRequest;
|
|
19
|
+
exports.default = CheckOutputPermissionsRequest;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import OutputType from './OutputType';
|
|
2
|
+
/**
|
|
3
|
+
* @export
|
|
4
|
+
* @class CheckOutputPermissionsResponse
|
|
5
|
+
*/
|
|
6
|
+
export declare class CheckOutputPermissionsResponse {
|
|
7
|
+
/**
|
|
8
|
+
* Id of the output for which permissions were checked
|
|
9
|
+
* @type {string}
|
|
10
|
+
* @memberof CheckOutputPermissionsResponse
|
|
11
|
+
*/
|
|
12
|
+
outputId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The type of the output for which permissions were checked
|
|
15
|
+
* @type {OutputType}
|
|
16
|
+
* @memberof CheckOutputPermissionsResponse
|
|
17
|
+
*/
|
|
18
|
+
outputType?: OutputType;
|
|
19
|
+
/**
|
|
20
|
+
* The path on the storage for which permissions were checked. In AWS S3 terminology, this corresponds to a \"prefix\". An empty string corresponds to the root directory.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CheckOutputPermissionsResponse
|
|
23
|
+
*/
|
|
24
|
+
path?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Indicates if permissions on the storage are configured correctly to be used as output target by the Bitmovin encoder. If \"false\", *failureReason* will provide additional information.
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof CheckOutputPermissionsResponse
|
|
29
|
+
*/
|
|
30
|
+
passed?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Contains nothing if the check succeeded. Otherwise, contains a message explaining why it failed.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CheckOutputPermissionsResponse
|
|
35
|
+
*/
|
|
36
|
+
failureReason?: string;
|
|
37
|
+
constructor(obj?: Partial<CheckOutputPermissionsResponse>);
|
|
38
|
+
}
|
|
39
|
+
export default CheckOutputPermissionsResponse;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CheckOutputPermissionsResponse = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @class CheckOutputPermissionsResponse
|
|
8
|
+
*/
|
|
9
|
+
var CheckOutputPermissionsResponse = /** @class */ (function () {
|
|
10
|
+
function CheckOutputPermissionsResponse(obj) {
|
|
11
|
+
if (!obj) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this.outputId = (0, Mapper_1.map)(obj.outputId);
|
|
15
|
+
this.outputType = (0, Mapper_1.map)(obj.outputType);
|
|
16
|
+
this.path = (0, Mapper_1.map)(obj.path);
|
|
17
|
+
this.passed = (0, Mapper_1.map)(obj.passed);
|
|
18
|
+
this.failureReason = (0, Mapper_1.map)(obj.failureReason);
|
|
19
|
+
}
|
|
20
|
+
return CheckOutputPermissionsResponse;
|
|
21
|
+
}());
|
|
22
|
+
exports.CheckOutputPermissionsResponse = CheckOutputPermissionsResponse;
|
|
23
|
+
exports.default = CheckOutputPermissionsResponse;
|
package/dist/models/Message.d.ts
CHANGED
|
@@ -18,13 +18,13 @@ export declare class PackedAudioMuxing extends Muxing {
|
|
|
18
18
|
*/
|
|
19
19
|
segmentLength?: number;
|
|
20
20
|
/**
|
|
21
|
-
* Segment naming policy. The required filename extension depends on the codec (e.g. '.aac' for AAC).
|
|
21
|
+
* Segment naming policy. The required filename extension depends on the codec (e.g. '.aac' for AAC). Either this or *segmentNamingTemplate* must be set.
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof PackedAudioMuxing
|
|
24
24
|
*/
|
|
25
25
|
segmentNaming?: string;
|
|
26
26
|
/**
|
|
27
|
-
* Segment naming policy containing a placeholder of the format '{rand_chars:x}', which will be replaced by a random alphanumeric string of length x (default 32) on each (re)start of the encoding. The resulting string will be copied to the segmentNaming property. Intended to avoid re-use of segment names after restarting a live encoding.
|
|
27
|
+
* Segment naming policy containing a placeholder of the format '{rand_chars:x}', which will be replaced by a random alphanumeric string of length x (default 32) on each (re)start of the encoding. The resulting string will be copied to the segmentNaming property. Intended to avoid re-use of segment names after restarting a live encoding. Either this or *segmentNaming* must be set. The required filename extension depends on the codec (e.g. '.aac' for AAC).
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof PackedAudioMuxing
|
|
30
30
|
*/
|
package/dist/models/index.d.ts
CHANGED
|
@@ -186,6 +186,8 @@ export * from './CencPlayReady';
|
|
|
186
186
|
export * from './CencWidevine';
|
|
187
187
|
export * from './ChannelLayout';
|
|
188
188
|
export * from './ChannelsAttributeForAudio';
|
|
189
|
+
export * from './CheckOutputPermissionsRequest';
|
|
190
|
+
export * from './CheckOutputPermissionsResponse';
|
|
189
191
|
export * from './ChromaLocation';
|
|
190
192
|
export * from './ChunkedTextMuxing';
|
|
191
193
|
export * from './ClearKeyDrm';
|
package/dist/models/index.js
CHANGED
|
@@ -202,6 +202,8 @@ __exportStar(require("./CencPlayReady"), exports);
|
|
|
202
202
|
__exportStar(require("./CencWidevine"), exports);
|
|
203
203
|
__exportStar(require("./ChannelLayout"), exports);
|
|
204
204
|
__exportStar(require("./ChannelsAttributeForAudio"), exports);
|
|
205
|
+
__exportStar(require("./CheckOutputPermissionsRequest"), exports);
|
|
206
|
+
__exportStar(require("./CheckOutputPermissionsResponse"), exports);
|
|
205
207
|
__exportStar(require("./ChromaLocation"), exports);
|
|
206
208
|
__exportStar(require("./ChunkedTextMuxing"), exports);
|
|
207
209
|
__exportStar(require("./ClearKeyDrm"), exports);
|