@bitmovin/api-sdk 1.226.0 → 1.227.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.226.0',
243
+ 'X-Api-Client-Version': '1.227.0',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -2,6 +2,7 @@ import { BaseAPI } from '../../../../common/BaseAPI';
2
2
  import Configuration from '../../../../common/Configuration';
3
3
  import DvbsubApi from './dvbsub/DvbsubApi';
4
4
  import SrtApi from './srt/SrtApi';
5
+ import AssaApi from './assa/AssaApi';
5
6
  /**
6
7
  * BurnInSubtitlesApi - object-oriented interface
7
8
  * @export
@@ -11,5 +12,6 @@ import SrtApi from './srt/SrtApi';
11
12
  export default class BurnInSubtitlesApi extends BaseAPI {
12
13
  dvbsub: DvbsubApi;
13
14
  srt: SrtApi;
15
+ assa: AssaApi;
14
16
  constructor(configuration: Configuration);
15
17
  }
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  var BaseAPI_1 = require("../../../../common/BaseAPI");
19
19
  var DvbsubApi_1 = require("./dvbsub/DvbsubApi");
20
20
  var SrtApi_1 = require("./srt/SrtApi");
21
+ var AssaApi_1 = require("./assa/AssaApi");
21
22
  /**
22
23
  * BurnInSubtitlesApi - object-oriented interface
23
24
  * @export
@@ -30,6 +31,7 @@ var BurnInSubtitlesApi = /** @class */ (function (_super) {
30
31
  var _this = _super.call(this, configuration) || this;
31
32
  _this.dvbsub = new DvbsubApi_1.default(configuration);
32
33
  _this.srt = new SrtApi_1.default(configuration);
34
+ _this.assa = new AssaApi_1.default(configuration);
33
35
  return _this;
34
36
  }
35
37
  return BurnInSubtitlesApi;
@@ -0,0 +1,51 @@
1
+ import { BaseAPI } from '../../../../../common/BaseAPI';
2
+ import Configuration from '../../../../../common/Configuration';
3
+ import BitmovinResponse from '../../../../../models/BitmovinResponse';
4
+ import BurnInSubtitleAssa from '../../../../../models/BurnInSubtitleAssa';
5
+ import PaginationResponse from '../../../../../models/PaginationResponse';
6
+ import { BurnInSubtitleAssaListQueryParams, BurnInSubtitleAssaListQueryParamsBuilder } from './BurnInSubtitleAssaListQueryParams';
7
+ /**
8
+ * AssaApi - object-oriented interface
9
+ * @export
10
+ * @class AssaApi
11
+ * @extends {BaseAPI}
12
+ */
13
+ export default class AssaApi extends BaseAPI {
14
+ constructor(configuration: Configuration);
15
+ /**
16
+ * @summary Burn-In ASSA Subtitle into Stream
17
+ * @param {string} encodingId Id of the encoding.
18
+ * @param {string} streamId Id of the stream.
19
+ * @param {BurnInSubtitleAssa} burnInSubtitleAssa The Burn-In ASSA Subtitle to be added
20
+ * @throws {BitmovinError}
21
+ * @memberof AssaApi
22
+ */
23
+ create(encodingId: string, streamId: string, burnInSubtitleAssa?: BurnInSubtitleAssa): Promise<BurnInSubtitleAssa>;
24
+ /**
25
+ * @summary Delete Burn-In ASSA Subtitle from Stream
26
+ * @param {string} encodingId Id of the encoding.
27
+ * @param {string} streamId Id of the stream.
28
+ * @param {string} subtitleId Id of the burn-in subtitle.
29
+ * @throws {BitmovinError}
30
+ * @memberof AssaApi
31
+ */
32
+ delete(encodingId: string, streamId: string, subtitleId: string): Promise<BitmovinResponse>;
33
+ /**
34
+ * @summary Get Burn-In ASSA Subtitle Details
35
+ * @param {string} encodingId Id of the encoding.
36
+ * @param {string} streamId Id of the stream.
37
+ * @param {string} subtitleId Id of the burn-in subtitle.
38
+ * @throws {BitmovinError}
39
+ * @memberof AssaApi
40
+ */
41
+ get(encodingId: string, streamId: string, subtitleId: string): Promise<BurnInSubtitleAssa>;
42
+ /**
43
+ * @summary List the Burn-In ASSA subtitles of a stream
44
+ * @param {string} encodingId Id of the encoding.
45
+ * @param {string} streamId Id of the stream.
46
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
47
+ * @throws {BitmovinError}
48
+ * @memberof AssaApi
49
+ */
50
+ list(encodingId: string, streamId: string, queryParameters?: BurnInSubtitleAssaListQueryParams | ((q: BurnInSubtitleAssaListQueryParamsBuilder) => BurnInSubtitleAssaListQueryParamsBuilder)): Promise<PaginationResponse<BurnInSubtitleAssa>>;
51
+ }
@@ -0,0 +1,114 @@
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 BitmovinResponse_1 = require("../../../../../models/BitmovinResponse");
21
+ var BurnInSubtitleAssa_1 = require("../../../../../models/BurnInSubtitleAssa");
22
+ var PaginationResponse_1 = require("../../../../../models/PaginationResponse");
23
+ var BurnInSubtitleAssaListQueryParams_1 = require("./BurnInSubtitleAssaListQueryParams");
24
+ /**
25
+ * AssaApi - object-oriented interface
26
+ * @export
27
+ * @class AssaApi
28
+ * @extends {BaseAPI}
29
+ */
30
+ var AssaApi = /** @class */ (function (_super) {
31
+ __extends(AssaApi, _super);
32
+ function AssaApi(configuration) {
33
+ return _super.call(this, configuration) || this;
34
+ }
35
+ /**
36
+ * @summary Burn-In ASSA Subtitle into Stream
37
+ * @param {string} encodingId Id of the encoding.
38
+ * @param {string} streamId Id of the stream.
39
+ * @param {BurnInSubtitleAssa} burnInSubtitleAssa The Burn-In ASSA Subtitle to be added
40
+ * @throws {BitmovinError}
41
+ * @memberof AssaApi
42
+ */
43
+ AssaApi.prototype.create = function (encodingId, streamId, burnInSubtitleAssa) {
44
+ var pathParamMap = {
45
+ encoding_id: encodingId,
46
+ stream_id: streamId
47
+ };
48
+ return this.restClient.post('/encoding/encodings/{encoding_id}/streams/{stream_id}/burn-in-subtitles/assa', pathParamMap, burnInSubtitleAssa).then(function (response) {
49
+ return (0, Mapper_1.map)(response, BurnInSubtitleAssa_1.default);
50
+ });
51
+ };
52
+ /**
53
+ * @summary Delete Burn-In ASSA Subtitle from Stream
54
+ * @param {string} encodingId Id of the encoding.
55
+ * @param {string} streamId Id of the stream.
56
+ * @param {string} subtitleId Id of the burn-in subtitle.
57
+ * @throws {BitmovinError}
58
+ * @memberof AssaApi
59
+ */
60
+ AssaApi.prototype.delete = function (encodingId, streamId, subtitleId) {
61
+ var pathParamMap = {
62
+ encoding_id: encodingId,
63
+ stream_id: streamId,
64
+ subtitle_id: subtitleId
65
+ };
66
+ return this.restClient.delete('/encoding/encodings/{encoding_id}/streams/{stream_id}/burn-in-subtitles/assa/{subtitle_id}', pathParamMap).then(function (response) {
67
+ return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
68
+ });
69
+ };
70
+ /**
71
+ * @summary Get Burn-In ASSA Subtitle Details
72
+ * @param {string} encodingId Id of the encoding.
73
+ * @param {string} streamId Id of the stream.
74
+ * @param {string} subtitleId Id of the burn-in subtitle.
75
+ * @throws {BitmovinError}
76
+ * @memberof AssaApi
77
+ */
78
+ AssaApi.prototype.get = function (encodingId, streamId, subtitleId) {
79
+ var pathParamMap = {
80
+ encoding_id: encodingId,
81
+ stream_id: streamId,
82
+ subtitle_id: subtitleId
83
+ };
84
+ return this.restClient.get('/encoding/encodings/{encoding_id}/streams/{stream_id}/burn-in-subtitles/assa/{subtitle_id}', pathParamMap).then(function (response) {
85
+ return (0, Mapper_1.map)(response, BurnInSubtitleAssa_1.default);
86
+ });
87
+ };
88
+ /**
89
+ * @summary List the Burn-In ASSA subtitles of a stream
90
+ * @param {string} encodingId Id of the encoding.
91
+ * @param {string} streamId Id of the stream.
92
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
93
+ * @throws {BitmovinError}
94
+ * @memberof AssaApi
95
+ */
96
+ AssaApi.prototype.list = function (encodingId, streamId, queryParameters) {
97
+ var pathParamMap = {
98
+ encoding_id: encodingId,
99
+ stream_id: streamId
100
+ };
101
+ var queryParams = {};
102
+ if (typeof queryParameters === 'function') {
103
+ queryParams = queryParameters(new BurnInSubtitleAssaListQueryParams_1.BurnInSubtitleAssaListQueryParamsBuilder()).buildQueryParams();
104
+ }
105
+ else if (queryParameters) {
106
+ queryParams = queryParameters;
107
+ }
108
+ return this.restClient.get('/encoding/encodings/{encoding_id}/streams/{stream_id}/burn-in-subtitles/assa', pathParamMap, queryParams).then(function (response) {
109
+ return new PaginationResponse_1.default(response, BurnInSubtitleAssa_1.default);
110
+ });
111
+ };
112
+ return AssaApi;
113
+ }(BaseAPI_1.BaseAPI));
114
+ exports.default = AssaApi;
@@ -0,0 +1,28 @@
1
+ export interface BurnInSubtitleAssaListQueryParams {
2
+ /**
3
+ * Index of the first item to return, starting at 0. Default is 0
4
+ * @type {number}
5
+ * @memberof BurnInSubtitleAssaListQueryParams
6
+ */
7
+ offset?: number | undefined;
8
+ /**
9
+ * Maximum number of items to return. Default is 25, maximum is 100
10
+ * @type {number}
11
+ * @memberof BurnInSubtitleAssaListQueryParams
12
+ */
13
+ limit?: number | undefined;
14
+ }
15
+ export declare class BurnInSubtitleAssaListQueryParamsBuilder {
16
+ private internalParams;
17
+ /**
18
+ *
19
+ * @param offset Index of the first item to return, starting at 0. Default is 0
20
+ */
21
+ offset(offset: number): this;
22
+ /**
23
+ *
24
+ * @param limit Maximum number of items to return. Default is 25, maximum is 100
25
+ */
26
+ limit(limit: number): this;
27
+ buildQueryParams(): BurnInSubtitleAssaListQueryParams;
28
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BurnInSubtitleAssaListQueryParamsBuilder = void 0;
4
+ var BurnInSubtitleAssaListQueryParamsBuilder = /** @class */ (function () {
5
+ function BurnInSubtitleAssaListQueryParamsBuilder() {
6
+ this.internalParams = {};
7
+ }
8
+ /**
9
+ *
10
+ * @param offset Index of the first item to return, starting at 0. Default is 0
11
+ */
12
+ BurnInSubtitleAssaListQueryParamsBuilder.prototype.offset = function (offset) {
13
+ this.internalParams.offset = offset;
14
+ return this;
15
+ };
16
+ /**
17
+ *
18
+ * @param limit Maximum number of items to return. Default is 25, maximum is 100
19
+ */
20
+ BurnInSubtitleAssaListQueryParamsBuilder.prototype.limit = function (limit) {
21
+ this.internalParams.limit = limit;
22
+ return this;
23
+ };
24
+ BurnInSubtitleAssaListQueryParamsBuilder.prototype.buildQueryParams = function () {
25
+ return this.internalParams;
26
+ };
27
+ return BurnInSubtitleAssaListQueryParamsBuilder;
28
+ }());
29
+ exports.BurnInSubtitleAssaListQueryParamsBuilder = BurnInSubtitleAssaListQueryParamsBuilder;
@@ -0,0 +1,23 @@
1
+ import BitmovinResource from './BitmovinResource';
2
+ import CaptionCharacterEncoding from './CaptionCharacterEncoding';
3
+ import InputPath from './InputPath';
4
+ /**
5
+ * @export
6
+ * @class BurnInSubtitleAssa
7
+ */
8
+ export declare class BurnInSubtitleAssa extends BitmovinResource {
9
+ /**
10
+ * Character encoding of the ASSA file (required)
11
+ * @type {CaptionCharacterEncoding}
12
+ * @memberof BurnInSubtitleAssa
13
+ */
14
+ characterEncoding?: CaptionCharacterEncoding;
15
+ /**
16
+ * The input location to get the ASSA file from (required)
17
+ * @type {InputPath}
18
+ * @memberof BurnInSubtitleAssa
19
+ */
20
+ input?: InputPath;
21
+ constructor(obj?: Partial<BurnInSubtitleAssa>);
22
+ }
23
+ export default BurnInSubtitleAssa;
@@ -0,0 +1,40 @@
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
+ exports.BurnInSubtitleAssa = void 0;
19
+ var Mapper_1 = require("../common/Mapper");
20
+ var BitmovinResource_1 = require("./BitmovinResource");
21
+ var InputPath_1 = require("./InputPath");
22
+ /**
23
+ * @export
24
+ * @class BurnInSubtitleAssa
25
+ */
26
+ var BurnInSubtitleAssa = /** @class */ (function (_super) {
27
+ __extends(BurnInSubtitleAssa, _super);
28
+ function BurnInSubtitleAssa(obj) {
29
+ var _this = _super.call(this, obj) || this;
30
+ if (!obj) {
31
+ return _this;
32
+ }
33
+ _this.characterEncoding = (0, Mapper_1.map)(obj.characterEncoding);
34
+ _this.input = (0, Mapper_1.map)(obj.input, InputPath_1.default);
35
+ return _this;
36
+ }
37
+ return BurnInSubtitleAssa;
38
+ }(BitmovinResource_1.default));
39
+ exports.BurnInSubtitleAssa = BurnInSubtitleAssa;
40
+ exports.default = BurnInSubtitleAssa;
@@ -180,6 +180,7 @@ export * from './BroadcastTsProgramConfiguration';
180
180
  export * from './BroadcastTsSubtitleInputStreamConfiguration';
181
181
  export * from './BroadcastTsTransportConfiguration';
182
182
  export * from './BroadcastTsVideoInputStreamConfiguration';
183
+ export * from './BurnInSubtitleAssa';
183
184
  export * from './BurnInSubtitleDvbSub';
184
185
  export * from './BurnInSubtitleSrt';
185
186
  export * from './CacheControl';
@@ -196,6 +196,7 @@ __exportStar(require("./BroadcastTsProgramConfiguration"), exports);
196
196
  __exportStar(require("./BroadcastTsSubtitleInputStreamConfiguration"), exports);
197
197
  __exportStar(require("./BroadcastTsTransportConfiguration"), exports);
198
198
  __exportStar(require("./BroadcastTsVideoInputStreamConfiguration"), exports);
199
+ __exportStar(require("./BurnInSubtitleAssa"), exports);
199
200
  __exportStar(require("./BurnInSubtitleDvbSub"), exports);
200
201
  __exportStar(require("./BurnInSubtitleSrt"), exports);
201
202
  __exportStar(require("./CacheControl"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmovin/api-sdk",
3
- "version": "1.226.0",
3
+ "version": "1.227.0",
4
4
  "description": "Bitmovin JS/TS API SDK",
5
5
  "author": "Bitmovin Inc",
6
6
  "keywords": [