@bitmovin/api-sdk 1.146.0 → 1.148.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.
@@ -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.146.0',
243
+ 'X-Api-Client-Version': '1.148.0',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -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
@@ -19,7 +19,7 @@ export declare class BroadcastTsMuxing extends Muxing {
19
19
  */
20
20
  segmentLength?: number;
21
21
  /**
22
- * Name of the new Video
22
+ * Name of the output file
23
23
  * @type {string}
24
24
  * @memberof BroadcastTsMuxing
25
25
  */
@@ -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;
@@ -18,7 +18,7 @@ export declare class ChunkedTextMuxing extends Muxing {
18
18
  */
19
19
  segmentLength?: number;
20
20
  /**
21
- * Segment naming template
21
+ * Segment naming policy
22
22
  * @type {string}
23
23
  * @memberof ChunkedTextMuxing
24
24
  */
@@ -37,7 +37,7 @@ export declare class Message extends BitmovinResponse {
37
37
  */
38
38
  more?: any;
39
39
  /**
40
- * Timestamp when the message occured
40
+ * Timestamp when the message occurred
41
41
  * @type {Date}
42
42
  * @memberof Message
43
43
  */
@@ -12,7 +12,7 @@ export declare class Mp3Muxing extends Muxing {
12
12
  */
13
13
  readonly type: MuxingType;
14
14
  /**
15
- * Name of the new file (required)
15
+ * Name of the output file (required)
16
16
  * @type {string}
17
17
  * @memberof Mp3Muxing
18
18
  */
@@ -15,7 +15,7 @@ export declare class Mp4Muxing extends Muxing {
15
15
  */
16
16
  readonly type: MuxingType;
17
17
  /**
18
- * Name of the new Video
18
+ * Name of the output file
19
19
  * @type {string}
20
20
  * @memberof Mp4Muxing
21
21
  */
@@ -12,7 +12,7 @@ export declare class MxfMuxing extends Muxing {
12
12
  */
13
13
  readonly type: MuxingType;
14
14
  /**
15
- * Name of the new file (required)
15
+ * Name of the output file (required)
16
16
  * @type {string}
17
17
  * @memberof MxfMuxing
18
18
  */
@@ -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. If segmentNamingTemplate is set, segmentNaming must not be set. The required filename extension depends on the codec (e.g. '.aac' for AAC).
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
  */
@@ -12,7 +12,7 @@ export declare class ProgressiveMovMuxing extends Muxing {
12
12
  */
13
13
  readonly type: MuxingType;
14
14
  /**
15
- * The output file name
15
+ * Name of the output file
16
16
  * @type {string}
17
17
  * @memberof ProgressiveMovMuxing
18
18
  */
@@ -18,7 +18,7 @@ export declare class ProgressiveTsMuxing extends Muxing {
18
18
  */
19
19
  segmentLength?: number;
20
20
  /**
21
- * Name of the new Video
21
+ * Name of the output file
22
22
  * @type {string}
23
23
  * @memberof ProgressiveTsMuxing
24
24
  */
@@ -13,7 +13,7 @@ export declare class ProgressiveWebmMuxing extends Muxing {
13
13
  */
14
14
  readonly type: MuxingType;
15
15
  /**
16
- * Name of the new Video
16
+ * Name of the output file
17
17
  * @type {string}
18
18
  * @memberof ProgressiveWebmMuxing
19
19
  */
@@ -12,7 +12,7 @@ export declare class TextMuxing extends Muxing {
12
12
  */
13
13
  readonly type: MuxingType;
14
14
  /**
15
- * The output file name (required)
15
+ * Name of the output file (required)
16
16
  * @type {string}
17
17
  * @memberof TextMuxing
18
18
  */
@@ -13,7 +13,7 @@ export declare class TsMuxing extends Muxing {
13
13
  */
14
14
  readonly type: MuxingType;
15
15
  /**
16
- * Length of the fragments in seconds (required)
16
+ * Length of the fragments in seconds
17
17
  * @type {number}
18
18
  * @memberof TsMuxing
19
19
  */
@@ -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';
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmovin/api-sdk",
3
- "version": "1.146.0",
3
+ "version": "1.148.0",
4
4
  "description": "Bitmovin JS/TS API SDK",
5
5
  "author": "Bitmovin Inc",
6
6
  "keywords": [