@bitmovin/api-sdk 1.130.0 → 1.131.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.130.0',
243
+ 'X-Api-Client-Version': '1.131.0',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @export
3
+ * @enum {string}
4
+ */
5
+ export declare enum BitmovinStreamQuality {
6
+ NONE = "NONE",
7
+ PREVIEW = "PREVIEW",
8
+ DEFAULT = "DEFAULT"
9
+ }
10
+ export default BitmovinStreamQuality;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BitmovinStreamQuality = void 0;
4
+ /**
5
+ * @export
6
+ * @enum {string}
7
+ */
8
+ var BitmovinStreamQuality;
9
+ (function (BitmovinStreamQuality) {
10
+ BitmovinStreamQuality["NONE"] = "NONE";
11
+ BitmovinStreamQuality["PREVIEW"] = "PREVIEW";
12
+ BitmovinStreamQuality["DEFAULT"] = "DEFAULT";
13
+ })(BitmovinStreamQuality = exports.BitmovinStreamQuality || (exports.BitmovinStreamQuality = {}));
14
+ exports.default = BitmovinStreamQuality;
@@ -0,0 +1,58 @@
1
+ import BitmovinStreamQuality from './BitmovinStreamQuality';
2
+ import BitmovinStreamStatus from './BitmovinStreamStatus';
3
+ /**
4
+ * @export
5
+ * @class BitmovinStreamResponse
6
+ */
7
+ export declare class BitmovinStreamResponse {
8
+ /**
9
+ * The identifier of the Stream
10
+ * @type {string}
11
+ * @memberof BitmovinStreamResponse
12
+ */
13
+ id?: string;
14
+ /**
15
+ * The asset URL of the Stream
16
+ * @type {string}
17
+ * @memberof BitmovinStreamResponse
18
+ */
19
+ assetUrl?: string;
20
+ /**
21
+ * The title of the Stream
22
+ * @type {string}
23
+ * @memberof BitmovinStreamResponse
24
+ */
25
+ title?: string;
26
+ /**
27
+ * The description of the Stream
28
+ * @type {string}
29
+ * @memberof BitmovinStreamResponse
30
+ */
31
+ description?: string;
32
+ /**
33
+ * Creation timestamp, returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
34
+ * @type {Date}
35
+ * @memberof BitmovinStreamResponse
36
+ */
37
+ createdAt?: Date;
38
+ /**
39
+ * The status of the Stream
40
+ * @type {BitmovinStreamStatus}
41
+ * @memberof BitmovinStreamResponse
42
+ */
43
+ status?: BitmovinStreamStatus;
44
+ /**
45
+ * The target quality of the Stream
46
+ * @type {BitmovinStreamQuality}
47
+ * @memberof BitmovinStreamResponse
48
+ */
49
+ targetQuality?: BitmovinStreamQuality;
50
+ /**
51
+ * List of available stream qualities
52
+ * @type {BitmovinStreamQuality[]}
53
+ * @memberof BitmovinStreamResponse
54
+ */
55
+ availableQualities?: BitmovinStreamQuality[];
56
+ constructor(obj?: Partial<BitmovinStreamResponse>);
57
+ }
58
+ export default BitmovinStreamResponse;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BitmovinStreamResponse = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ /**
6
+ * @export
7
+ * @class BitmovinStreamResponse
8
+ */
9
+ var BitmovinStreamResponse = /** @class */ (function () {
10
+ function BitmovinStreamResponse(obj) {
11
+ if (!obj) {
12
+ return;
13
+ }
14
+ this.id = (0, Mapper_1.map)(obj.id);
15
+ this.assetUrl = (0, Mapper_1.map)(obj.assetUrl);
16
+ this.title = (0, Mapper_1.map)(obj.title);
17
+ this.description = (0, Mapper_1.map)(obj.description);
18
+ this.createdAt = (0, Mapper_1.map)(obj.createdAt, Date);
19
+ this.status = (0, Mapper_1.map)(obj.status);
20
+ this.targetQuality = (0, Mapper_1.map)(obj.targetQuality);
21
+ this.availableQualities = (0, Mapper_1.mapArray)(obj.availableQualities);
22
+ }
23
+ return BitmovinStreamResponse;
24
+ }());
25
+ exports.BitmovinStreamResponse = BitmovinStreamResponse;
26
+ exports.default = BitmovinStreamResponse;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @export
3
+ * @enum {string}
4
+ */
5
+ export declare enum BitmovinStreamStatus {
6
+ PUBLISHED = "PUBLISHED",
7
+ UNPUBLISHED = "UNPUBLISHED"
8
+ }
9
+ export default BitmovinStreamStatus;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BitmovinStreamStatus = void 0;
4
+ /**
5
+ * @export
6
+ * @enum {string}
7
+ */
8
+ var BitmovinStreamStatus;
9
+ (function (BitmovinStreamStatus) {
10
+ BitmovinStreamStatus["PUBLISHED"] = "PUBLISHED";
11
+ BitmovinStreamStatus["UNPUBLISHED"] = "UNPUBLISHED";
12
+ })(BitmovinStreamStatus = exports.BitmovinStreamStatus || (exports.BitmovinStreamStatus = {}));
13
+ exports.default = BitmovinStreamStatus;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @export
3
+ * @class CreateBitmovinStreamRequest
4
+ */
5
+ export declare class CreateBitmovinStreamRequest {
6
+ /**
7
+ * The Streams input asset URL
8
+ * @type {string}
9
+ * @memberof CreateBitmovinStreamRequest
10
+ */
11
+ assetUrl?: string;
12
+ /**
13
+ * Title of the Stream
14
+ * @type {string}
15
+ * @memberof CreateBitmovinStreamRequest
16
+ */
17
+ title?: string;
18
+ /**
19
+ * Description of the Stream
20
+ * @type {string}
21
+ * @memberof CreateBitmovinStreamRequest
22
+ */
23
+ description?: string;
24
+ constructor(obj?: Partial<CreateBitmovinStreamRequest>);
25
+ }
26
+ export default CreateBitmovinStreamRequest;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateBitmovinStreamRequest = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ /**
6
+ * @export
7
+ * @class CreateBitmovinStreamRequest
8
+ */
9
+ var CreateBitmovinStreamRequest = /** @class */ (function () {
10
+ function CreateBitmovinStreamRequest(obj) {
11
+ if (!obj) {
12
+ return;
13
+ }
14
+ this.assetUrl = (0, Mapper_1.map)(obj.assetUrl);
15
+ this.title = (0, Mapper_1.map)(obj.title);
16
+ this.description = (0, Mapper_1.map)(obj.description);
17
+ }
18
+ return CreateBitmovinStreamRequest;
19
+ }());
20
+ exports.CreateBitmovinStreamRequest = CreateBitmovinStreamRequest;
21
+ exports.default = CreateBitmovinStreamRequest;
@@ -0,0 +1,27 @@
1
+ import BitmovinStreamStatus from './BitmovinStreamStatus';
2
+ /**
3
+ * @export
4
+ * @class UpdateBitmovinStreamRequest
5
+ */
6
+ export declare class UpdateBitmovinStreamRequest {
7
+ /**
8
+ * The status of the Stream
9
+ * @type {BitmovinStreamStatus}
10
+ * @memberof UpdateBitmovinStreamRequest
11
+ */
12
+ status?: BitmovinStreamStatus;
13
+ /**
14
+ * Title of the Stream
15
+ * @type {string}
16
+ * @memberof UpdateBitmovinStreamRequest
17
+ */
18
+ title?: string;
19
+ /**
20
+ * Description of the Stream
21
+ * @type {string}
22
+ * @memberof UpdateBitmovinStreamRequest
23
+ */
24
+ description?: string;
25
+ constructor(obj?: Partial<UpdateBitmovinStreamRequest>);
26
+ }
27
+ export default UpdateBitmovinStreamRequest;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateBitmovinStreamRequest = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ /**
6
+ * @export
7
+ * @class UpdateBitmovinStreamRequest
8
+ */
9
+ var UpdateBitmovinStreamRequest = /** @class */ (function () {
10
+ function UpdateBitmovinStreamRequest(obj) {
11
+ if (!obj) {
12
+ return;
13
+ }
14
+ this.status = (0, Mapper_1.map)(obj.status);
15
+ this.title = (0, Mapper_1.map)(obj.title);
16
+ this.description = (0, Mapper_1.map)(obj.description);
17
+ }
18
+ return UpdateBitmovinStreamRequest;
19
+ }());
20
+ exports.UpdateBitmovinStreamRequest = UpdateBitmovinStreamRequest;
21
+ exports.default = UpdateBitmovinStreamRequest;
@@ -159,6 +159,9 @@ export * from './BillableEncodingMinutesDetails';
159
159
  export * from './BitmovinResource';
160
160
  export * from './BitmovinResponse';
161
161
  export * from './BitmovinResponseList';
162
+ export * from './BitmovinStreamQuality';
163
+ export * from './BitmovinStreamResponse';
164
+ export * from './BitmovinStreamStatus';
162
165
  export * from './BitrateSelectionMode';
163
166
  export * from './BroadcastTsAudioInputStreamConfiguration';
164
167
  export * from './BroadcastTsInputStreamConfiguration';
@@ -210,6 +213,7 @@ export * from './ContentProtection';
210
213
  export * from './ConvertSccCaption';
211
214
  export * from './ConvertSccCaptionWebVttSettings';
212
215
  export * from './ConvertSccPositionMode';
216
+ export * from './CreateBitmovinStreamRequest';
213
217
  export * from './CropFilter';
214
218
  export * from './CustomAttribute';
215
219
  export * from './CustomData';
@@ -718,6 +722,7 @@ export * from './TuInterDepth';
718
722
  export * from './TuIntraDepth';
719
723
  export * from './Tweaks';
720
724
  export * from './UnsharpFilter';
725
+ export * from './UpdateBitmovinStreamRequest';
721
726
  export * from './UpdateOrganizationRequest';
722
727
  export * from './UtcTiming';
723
728
  export * from './VariantStreamDroppingMode';
@@ -175,6 +175,9 @@ __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("./BitmovinStreamQuality"), exports);
179
+ __exportStar(require("./BitmovinStreamResponse"), exports);
180
+ __exportStar(require("./BitmovinStreamStatus"), exports);
178
181
  __exportStar(require("./BitrateSelectionMode"), exports);
179
182
  __exportStar(require("./BroadcastTsAudioInputStreamConfiguration"), exports);
180
183
  __exportStar(require("./BroadcastTsInputStreamConfiguration"), exports);
@@ -226,6 +229,7 @@ __exportStar(require("./ContentProtection"), exports);
226
229
  __exportStar(require("./ConvertSccCaption"), exports);
227
230
  __exportStar(require("./ConvertSccCaptionWebVttSettings"), exports);
228
231
  __exportStar(require("./ConvertSccPositionMode"), exports);
232
+ __exportStar(require("./CreateBitmovinStreamRequest"), exports);
229
233
  __exportStar(require("./CropFilter"), exports);
230
234
  __exportStar(require("./CustomAttribute"), exports);
231
235
  __exportStar(require("./CustomData"), exports);
@@ -734,6 +738,7 @@ __exportStar(require("./TuInterDepth"), exports);
734
738
  __exportStar(require("./TuIntraDepth"), exports);
735
739
  __exportStar(require("./Tweaks"), exports);
736
740
  __exportStar(require("./UnsharpFilter"), exports);
741
+ __exportStar(require("./UpdateBitmovinStreamRequest"), exports);
737
742
  __exportStar(require("./UpdateOrganizationRequest"), exports);
738
743
  __exportStar(require("./UtcTiming"), exports);
739
744
  __exportStar(require("./VariantStreamDroppingMode"), exports);
@@ -0,0 +1,39 @@
1
+ export interface BitmovinStreamResponseListQueryParams {
2
+ /**
3
+ * Index of the first item to return, starting at 0. Default is 0
4
+ * @type {number}
5
+ * @memberof BitmovinStreamResponseListQueryParams
6
+ */
7
+ offset?: number | undefined;
8
+ /**
9
+ * Maximum number of items to return. Default is 25, maximum is 100
10
+ * @type {number}
11
+ * @memberof BitmovinStreamResponseListQueryParams
12
+ */
13
+ limit?: number | undefined;
14
+ /**
15
+ * Order list result according an resource attribute. The fields that can be used for sorting are: + `createdAt`
16
+ * @type {string}
17
+ * @memberof BitmovinStreamResponseListQueryParams
18
+ */
19
+ sort?: string | undefined;
20
+ }
21
+ export declare class BitmovinStreamResponseListQueryParamsBuilder {
22
+ private internalParams;
23
+ /**
24
+ *
25
+ * @param offset Index of the first item to return, starting at 0. Default is 0
26
+ */
27
+ offset(offset: number): this;
28
+ /**
29
+ *
30
+ * @param limit Maximum number of items to return. Default is 25, maximum is 100
31
+ */
32
+ limit(limit: number): this;
33
+ /**
34
+ *
35
+ * @param sort Order list result according an resource attribute. The fields that can be used for sorting are: + `createdAt`
36
+ */
37
+ sort(sort: string): this;
38
+ buildQueryParams(): BitmovinStreamResponseListQueryParams;
39
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BitmovinStreamResponseListQueryParamsBuilder = void 0;
4
+ var BitmovinStreamResponseListQueryParamsBuilder = /** @class */ (function () {
5
+ function BitmovinStreamResponseListQueryParamsBuilder() {
6
+ this.internalParams = {};
7
+ }
8
+ /**
9
+ *
10
+ * @param offset Index of the first item to return, starting at 0. Default is 0
11
+ */
12
+ BitmovinStreamResponseListQueryParamsBuilder.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
+ BitmovinStreamResponseListQueryParamsBuilder.prototype.limit = function (limit) {
21
+ this.internalParams.limit = limit;
22
+ return this;
23
+ };
24
+ /**
25
+ *
26
+ * @param sort Order list result according an resource attribute. The fields that can be used for sorting are: + `createdAt`
27
+ */
28
+ BitmovinStreamResponseListQueryParamsBuilder.prototype.sort = function (sort) {
29
+ this.internalParams.sort = sort;
30
+ return this;
31
+ };
32
+ BitmovinStreamResponseListQueryParamsBuilder.prototype.buildQueryParams = function () {
33
+ return this.internalParams;
34
+ };
35
+ return BitmovinStreamResponseListQueryParamsBuilder;
36
+ }());
37
+ exports.BitmovinStreamResponseListQueryParamsBuilder = BitmovinStreamResponseListQueryParamsBuilder;
@@ -0,0 +1,45 @@
1
+ import { BaseAPI } from '../common/BaseAPI';
2
+ import Configuration from '../common/Configuration';
3
+ import BitmovinStreamResponse from '../models/BitmovinStreamResponse';
4
+ import CreateBitmovinStreamRequest from '../models/CreateBitmovinStreamRequest';
5
+ import UpdateBitmovinStreamRequest from '../models/UpdateBitmovinStreamRequest';
6
+ import PaginationResponse from '../models/PaginationResponse';
7
+ import { BitmovinStreamResponseListQueryParams, BitmovinStreamResponseListQueryParamsBuilder } from './BitmovinStreamResponseListQueryParams';
8
+ /**
9
+ * StreamsApi - object-oriented interface
10
+ * @export
11
+ * @class StreamsApi
12
+ * @extends {BaseAPI}
13
+ */
14
+ export default class StreamsApi extends BaseAPI {
15
+ 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
+ }
@@ -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 BitmovinStreamResponse_1 = require("../models/BitmovinStreamResponse");
21
+ var PaginationResponse_1 = require("../models/PaginationResponse");
22
+ var BitmovinStreamResponseListQueryParams_1 = require("./BitmovinStreamResponseListQueryParams");
23
+ /**
24
+ * StreamsApi - object-oriented interface
25
+ * @export
26
+ * @class StreamsApi
27
+ * @extends {BaseAPI}
28
+ */
29
+ var StreamsApi = /** @class */ (function (_super) {
30
+ __extends(StreamsApi, _super);
31
+ function StreamsApi(configuration) {
32
+ return _super.call(this, configuration) || this;
33
+ }
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
+ return StreamsApi;
93
+ }(BaseAPI_1.BaseAPI));
94
+ exports.default = StreamsApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmovin/api-sdk",
3
- "version": "1.130.0",
3
+ "version": "1.131.0",
4
4
  "description": "Bitmovin JS/TS API SDK",
5
5
  "author": "Bitmovin Inc",
6
6
  "keywords": [