@bitmovin/api-sdk 1.174.0 → 1.176.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.174.0',
243
+ 'X-Api-Client-Version': '1.176.0',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -12,11 +12,23 @@ export interface FilterListQueryParams {
12
12
  */
13
13
  limit?: number | undefined;
14
14
  /**
15
- * Filter filters by name
15
+ * Filter filters by name. Multiple names are separated with a `,`
16
16
  * @type {string}
17
17
  * @memberof FilterListQueryParams
18
18
  */
19
19
  name?: string | undefined;
20
+ /**
21
+ * Order list result according to a filter resource attribute. The fields that can be used for sorting are: + `id` + `createdAt` + `modifiedAt` + `type` + `name`
22
+ * @type {string}
23
+ * @memberof FilterListQueryParams
24
+ */
25
+ sort?: string | undefined;
26
+ /**
27
+ * Filter filters by type. Multiple types are separated with a `,`
28
+ * @type {string}
29
+ * @memberof FilterListQueryParams
30
+ */
31
+ type?: string | undefined;
20
32
  }
21
33
  export declare class FilterListQueryParamsBuilder {
22
34
  private internalParams;
@@ -32,8 +44,18 @@ export declare class FilterListQueryParamsBuilder {
32
44
  limit(limit: number): this;
33
45
  /**
34
46
  *
35
- * @param name Filter filters by name
47
+ * @param name Filter filters by name. Multiple names are separated with a `,`
36
48
  */
37
49
  name(name: string): this;
50
+ /**
51
+ *
52
+ * @param sort Order list result according to a filter resource attribute. The fields that can be used for sorting are: + `id` + `createdAt` + `modifiedAt` + `type` + `name`
53
+ */
54
+ sort(sort: string): this;
55
+ /**
56
+ *
57
+ * @param type Filter filters by type. Multiple types are separated with a `,`
58
+ */
59
+ type(type: string): this;
38
60
  buildQueryParams(): FilterListQueryParams;
39
61
  }
@@ -23,12 +23,28 @@ var FilterListQueryParamsBuilder = /** @class */ (function () {
23
23
  };
24
24
  /**
25
25
  *
26
- * @param name Filter filters by name
26
+ * @param name Filter filters by name. Multiple names are separated with a `,`
27
27
  */
28
28
  FilterListQueryParamsBuilder.prototype.name = function (name) {
29
29
  this.internalParams.name = name;
30
30
  return this;
31
31
  };
32
+ /**
33
+ *
34
+ * @param sort Order list result according to a filter resource attribute. The fields that can be used for sorting are: + `id` + `createdAt` + `modifiedAt` + `type` + `name`
35
+ */
36
+ FilterListQueryParamsBuilder.prototype.sort = function (sort) {
37
+ this.internalParams.sort = sort;
38
+ return this;
39
+ };
40
+ /**
41
+ *
42
+ * @param type Filter filters by type. Multiple types are separated with a `,`
43
+ */
44
+ FilterListQueryParamsBuilder.prototype.type = function (type) {
45
+ this.internalParams.type = type;
46
+ return this;
47
+ };
32
48
  FilterListQueryParamsBuilder.prototype.buildQueryParams = function () {
33
49
  return this.internalParams;
34
50
  };
@@ -98,6 +98,12 @@ export declare class Encoding extends BitmovinResource {
98
98
  * @memberof Encoding
99
99
  */
100
100
  selectedCloudRegion?: CloudRegion;
101
+ /**
102
+ * After the encoding has been started, this will contain the fallback cloud regions that were actually used. This will differ from fallbackCloudRegions if any of the fallbackCloudRegions were set to an unspecific region (e.g. 'AUTO')
103
+ * @type {CloudRegion[]}
104
+ * @memberof Encoding
105
+ */
106
+ selectedFallbackCloudRegions?: CloudRegion[];
101
107
  /**
102
108
  * The current status of the encoding.
103
109
  * @type {Status}
@@ -45,6 +45,7 @@ var Encoding = /** @class */ (function (_super) {
45
45
  _this.selectedEncoderVersion = (0, Mapper_1.map)(obj.selectedEncoderVersion);
46
46
  _this.selectedEncodingMode = (0, Mapper_1.map)(obj.selectedEncodingMode);
47
47
  _this.selectedCloudRegion = (0, Mapper_1.map)(obj.selectedCloudRegion);
48
+ _this.selectedFallbackCloudRegions = (0, Mapper_1.mapArray)(obj.selectedFallbackCloudRegions);
48
49
  _this.status = (0, Mapper_1.map)(obj.status);
49
50
  _this.labels = (0, Mapper_1.mapArray)(obj.labels);
50
51
  _this.liveOptionsType = (0, Mapper_1.map)(obj.liveOptionsType);
@@ -15,7 +15,7 @@ export declare class EncodingStatisticsVod extends EncodingStatistics {
15
15
  * @type {number}
16
16
  * @memberof EncodingStatisticsVod
17
17
  */
18
- realTimeFactor?: number;
18
+ realtimeFactor?: number;
19
19
  constructor(obj?: Partial<EncodingStatisticsVod>);
20
20
  }
21
21
  export default EncodingStatisticsVod;
@@ -30,7 +30,7 @@ var EncodingStatisticsVod = /** @class */ (function (_super) {
30
30
  return _this;
31
31
  }
32
32
  _this.timeEnqueued = (0, Mapper_1.map)(obj.timeEnqueued);
33
- _this.realTimeFactor = (0, Mapper_1.map)(obj.realTimeFactor);
33
+ _this.realtimeFactor = (0, Mapper_1.map)(obj.realtimeFactor);
34
34
  return _this;
35
35
  }
36
36
  return EncodingStatisticsVod;
@@ -1,6 +1,7 @@
1
1
  import BitmovinResource from './BitmovinResource';
2
2
  import OrganizationType from './OrganizationType';
3
3
  import ResourceLimitContainer from './ResourceLimitContainer';
4
+ import SignupSource from './SignupSource';
4
5
  /**
5
6
  * @export
6
7
  * @class Organization
@@ -29,6 +30,12 @@ export declare class Organization extends BitmovinResource {
29
30
  * @memberof Organization
30
31
  */
31
32
  limitsPerResource?: ResourceLimitContainer[];
33
+ /**
34
+ * which platform initiated organisation creation
35
+ * @type {SignupSource}
36
+ * @memberof Organization
37
+ */
38
+ signupSource?: SignupSource;
32
39
  constructor(obj?: Partial<Organization>);
33
40
  }
34
41
  export default Organization;
@@ -34,6 +34,7 @@ var Organization = /** @class */ (function (_super) {
34
34
  _this.parentId = (0, Mapper_1.map)(obj.parentId);
35
35
  _this.labelColor = (0, Mapper_1.map)(obj.labelColor);
36
36
  _this.limitsPerResource = (0, Mapper_1.mapArray)(obj.limitsPerResource, ResourceLimitContainer_1.default);
37
+ _this.signupSource = (0, Mapper_1.map)(obj.signupSource);
37
38
  return _this;
38
39
  }
39
40
  return Organization;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * platform which initiated the creation of the resource
3
+ * @export
4
+ * @enum {string}
5
+ */
6
+ export declare enum SignupSource {
7
+ AWS = "AWS",
8
+ AZURE = "AZURE",
9
+ BITMOVIN = "BITMOVIN",
10
+ GOOGLE = "GOOGLE"
11
+ }
12
+ export default SignupSource;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SignupSource = void 0;
4
+ /**
5
+ * platform which initiated the creation of the resource
6
+ * @export
7
+ * @enum {string}
8
+ */
9
+ var SignupSource;
10
+ (function (SignupSource) {
11
+ SignupSource["AWS"] = "AWS";
12
+ SignupSource["AZURE"] = "AZURE";
13
+ SignupSource["BITMOVIN"] = "BITMOVIN";
14
+ SignupSource["GOOGLE"] = "GOOGLE";
15
+ })(SignupSource = exports.SignupSource || (exports.SignupSource = {}));
16
+ exports.default = SignupSource;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @export
3
+ * @enum {string}
4
+ */
5
+ export declare enum StreamsEncodingProfile {
6
+ PER_TITLE = "PER_TITLE",
7
+ FIXED_RESOLUTIONS = "FIXED_RESOLUTIONS"
8
+ }
9
+ export default StreamsEncodingProfile;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StreamsEncodingProfile = void 0;
4
+ /**
5
+ * @export
6
+ * @enum {string}
7
+ */
8
+ var StreamsEncodingProfile;
9
+ (function (StreamsEncodingProfile) {
10
+ StreamsEncodingProfile["PER_TITLE"] = "PER_TITLE";
11
+ StreamsEncodingProfile["FIXED_RESOLUTIONS"] = "FIXED_RESOLUTIONS";
12
+ })(StreamsEncodingProfile = exports.StreamsEncodingProfile || (exports.StreamsEncodingProfile = {}));
13
+ exports.default = StreamsEncodingProfile;
@@ -15,18 +15,6 @@ export declare class StreamsLiveCreateRequest {
15
15
  * @memberof StreamsLiveCreateRequest
16
16
  */
17
17
  description?: string;
18
- /**
19
- * Id of the style config to use
20
- * @type {string}
21
- * @memberof StreamsLiveCreateRequest
22
- */
23
- styleConfigId?: string;
24
- /**
25
- * Id of the advertisement config to use
26
- * @type {string}
27
- * @memberof StreamsLiveCreateRequest
28
- */
29
- adConfigId?: string;
30
18
  constructor(obj?: Partial<StreamsLiveCreateRequest>);
31
19
  }
32
20
  export default StreamsLiveCreateRequest;
@@ -13,8 +13,6 @@ var StreamsLiveCreateRequest = /** @class */ (function () {
13
13
  }
14
14
  this.title = (0, Mapper_1.map)(obj.title);
15
15
  this.description = (0, Mapper_1.map)(obj.description);
16
- this.styleConfigId = (0, Mapper_1.map)(obj.styleConfigId);
17
- this.adConfigId = (0, Mapper_1.map)(obj.adConfigId);
18
16
  }
19
17
  return StreamsLiveCreateRequest;
20
18
  }());
@@ -15,30 +15,12 @@ export declare class StreamsLiveUpdateRequest {
15
15
  * @memberof StreamsLiveUpdateRequest
16
16
  */
17
17
  description?: string;
18
- /**
19
- * Id of the style config to use
20
- * @type {string}
21
- * @memberof StreamsLiveUpdateRequest
22
- */
23
- styleConfigId?: string;
24
18
  /**
25
19
  * URL to hosted poster image
26
20
  * @type {string}
27
21
  * @memberof StreamsLiveUpdateRequest
28
22
  */
29
23
  posterUrl?: string;
30
- /**
31
- * Id of the advertisement config to use
32
- * @type {string}
33
- * @memberof StreamsLiveUpdateRequest
34
- */
35
- adConfigId?: string;
36
- /**
37
- * Id of the content protection config to use
38
- * @type {string}
39
- * @memberof StreamsLiveUpdateRequest
40
- */
41
- contentProtectionId?: string;
42
24
  constructor(obj?: Partial<StreamsLiveUpdateRequest>);
43
25
  }
44
26
  export default StreamsLiveUpdateRequest;
@@ -13,10 +13,7 @@ var StreamsLiveUpdateRequest = /** @class */ (function () {
13
13
  }
14
14
  this.title = (0, Mapper_1.map)(obj.title);
15
15
  this.description = (0, Mapper_1.map)(obj.description);
16
- this.styleConfigId = (0, Mapper_1.map)(obj.styleConfigId);
17
16
  this.posterUrl = (0, Mapper_1.map)(obj.posterUrl);
18
- this.adConfigId = (0, Mapper_1.map)(obj.adConfigId);
19
- this.contentProtectionId = (0, Mapper_1.map)(obj.contentProtectionId);
20
17
  }
21
18
  return StreamsLiveUpdateRequest;
22
19
  }());
@@ -1,3 +1,4 @@
1
+ import StreamsEncodingProfile from './StreamsEncodingProfile';
1
2
  /**
2
3
  * @export
3
4
  * @class StreamsVideoCreateRequest
@@ -22,17 +23,11 @@ export declare class StreamsVideoCreateRequest {
22
23
  */
23
24
  description?: string;
24
25
  /**
25
- * Id of the style config to use
26
- * @type {string}
27
- * @memberof StreamsVideoCreateRequest
28
- */
29
- styleConfigId?: string;
30
- /**
31
- * Id of the advertisement config to use
32
- * @type {string}
26
+ * Profile to be used in encoding
27
+ * @type {StreamsEncodingProfile}
33
28
  * @memberof StreamsVideoCreateRequest
34
29
  */
35
- adConfigId?: string;
30
+ encodingProfile?: StreamsEncodingProfile;
36
31
  constructor(obj?: Partial<StreamsVideoCreateRequest>);
37
32
  }
38
33
  export default StreamsVideoCreateRequest;
@@ -14,8 +14,7 @@ var StreamsVideoCreateRequest = /** @class */ (function () {
14
14
  this.assetUrl = (0, Mapper_1.map)(obj.assetUrl);
15
15
  this.title = (0, Mapper_1.map)(obj.title);
16
16
  this.description = (0, Mapper_1.map)(obj.description);
17
- this.styleConfigId = (0, Mapper_1.map)(obj.styleConfigId);
18
- this.adConfigId = (0, Mapper_1.map)(obj.adConfigId);
17
+ this.encodingProfile = (0, Mapper_1.map)(obj.encodingProfile);
19
18
  }
20
19
  return StreamsVideoCreateRequest;
21
20
  }());
@@ -22,30 +22,12 @@ export declare class StreamsVideoUpdateRequest {
22
22
  * @memberof StreamsVideoUpdateRequest
23
23
  */
24
24
  description?: string;
25
- /**
26
- * Id of the style config to use
27
- * @type {string}
28
- * @memberof StreamsVideoUpdateRequest
29
- */
30
- styleConfigId?: string;
31
25
  /**
32
26
  * URL to hosted poster image
33
27
  * @type {string}
34
28
  * @memberof StreamsVideoUpdateRequest
35
29
  */
36
30
  posterUrl?: string;
37
- /**
38
- * Id of the advertisement config to use
39
- * @type {string}
40
- * @memberof StreamsVideoUpdateRequest
41
- */
42
- adConfigId?: string;
43
- /**
44
- * Id of the content protection config to use
45
- * @type {string}
46
- * @memberof StreamsVideoUpdateRequest
47
- */
48
- contentProtectionId?: string;
49
31
  constructor(obj?: Partial<StreamsVideoUpdateRequest>);
50
32
  }
51
33
  export default StreamsVideoUpdateRequest;
@@ -14,10 +14,7 @@ var StreamsVideoUpdateRequest = /** @class */ (function () {
14
14
  this.status = (0, Mapper_1.map)(obj.status);
15
15
  this.title = (0, Mapper_1.map)(obj.title);
16
16
  this.description = (0, Mapper_1.map)(obj.description);
17
- this.styleConfigId = (0, Mapper_1.map)(obj.styleConfigId);
18
17
  this.posterUrl = (0, Mapper_1.map)(obj.posterUrl);
19
- this.adConfigId = (0, Mapper_1.map)(obj.adConfigId);
20
- this.contentProtectionId = (0, Mapper_1.map)(obj.contentProtectionId);
21
18
  }
22
19
  return StreamsVideoUpdateRequest;
23
20
  }());
@@ -616,6 +616,7 @@ export * from './SidecarErrorMode';
616
616
  export * from './SidecarFile';
617
617
  export * from './SidecarFileType';
618
618
  export * from './SignatureType';
619
+ export * from './SignupSource';
619
620
  export * from './SimpleEncodingLiveCloudRegion';
620
621
  export * from './SimpleEncodingLiveJobAccessKeyCredentials';
621
622
  export * from './SimpleEncodingLiveJobAzureCredentials';
@@ -708,6 +709,7 @@ export * from './StreamSelectionMode';
708
709
  export * from './StreamsAdConfigAd';
709
710
  export * from './StreamsAdConfigResponse';
710
711
  export * from './StreamsContentProtectionResponse';
712
+ export * from './StreamsEncodingProfile';
711
713
  export * from './StreamsLiveCreateRequest';
712
714
  export * from './StreamsLiveLifeCycle';
713
715
  export * from './StreamsLiveResponse';
@@ -632,6 +632,7 @@ __exportStar(require("./SidecarErrorMode"), exports);
632
632
  __exportStar(require("./SidecarFile"), exports);
633
633
  __exportStar(require("./SidecarFileType"), exports);
634
634
  __exportStar(require("./SignatureType"), exports);
635
+ __exportStar(require("./SignupSource"), exports);
635
636
  __exportStar(require("./SimpleEncodingLiveCloudRegion"), exports);
636
637
  __exportStar(require("./SimpleEncodingLiveJobAccessKeyCredentials"), exports);
637
638
  __exportStar(require("./SimpleEncodingLiveJobAzureCredentials"), exports);
@@ -724,6 +725,7 @@ __exportStar(require("./StreamSelectionMode"), exports);
724
725
  __exportStar(require("./StreamsAdConfigAd"), exports);
725
726
  __exportStar(require("./StreamsAdConfigResponse"), exports);
726
727
  __exportStar(require("./StreamsContentProtectionResponse"), exports);
728
+ __exportStar(require("./StreamsEncodingProfile"), exports);
727
729
  __exportStar(require("./StreamsLiveCreateRequest"), exports);
728
730
  __exportStar(require("./StreamsLiveLifeCycle"), exports);
729
731
  __exportStar(require("./StreamsLiveResponse"), exports);
@@ -53,12 +53,4 @@ export default class LiveApi extends BaseAPI {
53
53
  * @memberof LiveApi
54
54
  */
55
55
  patchStreamsLive(streamId: string, streamsLiveUpdateRequest?: StreamsLiveUpdateRequest): Promise<StreamsLiveResponse>;
56
- /**
57
- * @summary Update live stream by id
58
- * @param {string} streamId Id of the stream.
59
- * @param {StreamsLiveUpdateRequest} streamsLiveUpdateRequest The updated Streams live object.
60
- * @throws {BitmovinError}
61
- * @memberof LiveApi
62
- */
63
- update(streamId: string, streamsLiveUpdateRequest?: StreamsLiveUpdateRequest): Promise<StreamsLiveResponse>;
64
56
  }
@@ -108,21 +108,6 @@ var LiveApi = /** @class */ (function (_super) {
108
108
  return (0, Mapper_1.map)(response, StreamsLiveResponse_1.default);
109
109
  });
110
110
  };
111
- /**
112
- * @summary Update live stream by id
113
- * @param {string} streamId Id of the stream.
114
- * @param {StreamsLiveUpdateRequest} streamsLiveUpdateRequest The updated Streams live object.
115
- * @throws {BitmovinError}
116
- * @memberof LiveApi
117
- */
118
- LiveApi.prototype.update = function (streamId, streamsLiveUpdateRequest) {
119
- var pathParamMap = {
120
- stream_id: streamId
121
- };
122
- return this.restClient.put('/streams/live/{stream_id}', pathParamMap, streamsLiveUpdateRequest).then(function (response) {
123
- return (0, Mapper_1.map)(response, StreamsLiveResponse_1.default);
124
- });
125
- };
126
111
  return LiveApi;
127
112
  }(BaseAPI_1.BaseAPI));
128
113
  exports.default = LiveApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmovin/api-sdk",
3
- "version": "1.174.0",
3
+ "version": "1.176.0",
4
4
  "description": "Bitmovin JS/TS API SDK",
5
5
  "author": "Bitmovin Inc",
6
6
  "keywords": [