@bitmovin/api-sdk 1.190.0 → 1.191.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.190.0',
243
+ 'X-Api-Client-Version': '1.191.0',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -1,5 +1,6 @@
1
1
  import { BaseAPI } from '../../../common/BaseAPI';
2
2
  import Configuration from '../../../common/Configuration';
3
+ import ActionsApi from './actions/ActionsApi';
3
4
  import BitmovinResponse from '../../../models/BitmovinResponse';
4
5
  import StreamKey from '../../../models/StreamKey';
5
6
  import PaginationResponse from '../../../models/PaginationResponse';
@@ -11,6 +12,7 @@ import { StreamKeyListQueryParams, StreamKeyListQueryParamsBuilder } from './Str
11
12
  * @extends {BaseAPI}
12
13
  */
13
14
  export default class StreamKeysApi extends BaseAPI {
15
+ actions: ActionsApi;
14
16
  constructor(configuration: Configuration);
15
17
  /**
16
18
  * @summary Create new stream key
@@ -17,6 +17,7 @@ var __extends = (this && this.__extends) || (function () {
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  var BaseAPI_1 = require("../../../common/BaseAPI");
19
19
  var Mapper_1 = require("../../../common/Mapper");
20
+ var ActionsApi_1 = require("./actions/ActionsApi");
20
21
  var BitmovinResponse_1 = require("../../../models/BitmovinResponse");
21
22
  var StreamKey_1 = require("../../../models/StreamKey");
22
23
  var PaginationResponse_1 = require("../../../models/PaginationResponse");
@@ -30,7 +31,9 @@ var StreamKeyListQueryParams_1 = require("./StreamKeyListQueryParams");
30
31
  var StreamKeysApi = /** @class */ (function (_super) {
31
32
  __extends(StreamKeysApi, _super);
32
33
  function StreamKeysApi(configuration) {
33
- return _super.call(this, configuration) || this;
34
+ var _this = _super.call(this, configuration) || this;
35
+ _this.actions = new ActionsApi_1.default(configuration);
36
+ return _this;
34
37
  }
35
38
  /**
36
39
  * @summary Create new stream key
@@ -0,0 +1,19 @@
1
+ import { BaseAPI } from '../../../../common/BaseAPI';
2
+ import Configuration from '../../../../common/Configuration';
3
+ import StreamKeysUnassignAction from '../../../../models/StreamKeysUnassignAction';
4
+ /**
5
+ * ActionsApi - object-oriented interface
6
+ * @export
7
+ * @class ActionsApi
8
+ * @extends {BaseAPI}
9
+ */
10
+ export default class ActionsApi extends BaseAPI {
11
+ constructor(configuration: Configuration);
12
+ /**
13
+ * @summary Unassign stream keys
14
+ * @param {StreamKeysUnassignAction} streamKeysUnassignAction The action payload for unassigning stream keys
15
+ * @throws {BitmovinError}
16
+ * @memberof ActionsApi
17
+ */
18
+ unassign(streamKeysUnassignAction?: StreamKeysUnassignAction): Promise<StreamKeysUnassignAction>;
19
+ }
@@ -0,0 +1,45 @@
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 StreamKeysUnassignAction_1 = require("../../../../models/StreamKeysUnassignAction");
21
+ /**
22
+ * ActionsApi - object-oriented interface
23
+ * @export
24
+ * @class ActionsApi
25
+ * @extends {BaseAPI}
26
+ */
27
+ var ActionsApi = /** @class */ (function (_super) {
28
+ __extends(ActionsApi, _super);
29
+ function ActionsApi(configuration) {
30
+ return _super.call(this, configuration) || this;
31
+ }
32
+ /**
33
+ * @summary Unassign stream keys
34
+ * @param {StreamKeysUnassignAction} streamKeysUnassignAction The action payload for unassigning stream keys
35
+ * @throws {BitmovinError}
36
+ * @memberof ActionsApi
37
+ */
38
+ ActionsApi.prototype.unassign = function (streamKeysUnassignAction) {
39
+ return this.restClient.post('/encoding/live/stream-keys/actions/unassign', {}, streamKeysUnassignAction).then(function (response) {
40
+ return (0, Mapper_1.map)(response, StreamKeysUnassignAction_1.default);
41
+ });
42
+ };
43
+ return ActionsApi;
44
+ }(BaseAPI_1.BaseAPI));
45
+ exports.default = ActionsApi;
@@ -36,6 +36,12 @@ export declare class Organization extends BitmovinResource {
36
36
  * @memberof Organization
37
37
  */
38
38
  signupSource?: SignupSource;
39
+ /**
40
+ * Flag indicating if MFA is required for the organization
41
+ * @type {boolean}
42
+ * @memberof Organization
43
+ */
44
+ mfaRequired?: boolean;
39
45
  constructor(obj?: Partial<Organization>);
40
46
  }
41
47
  export default Organization;
@@ -35,6 +35,7 @@ var Organization = /** @class */ (function (_super) {
35
35
  _this.labelColor = (0, Mapper_1.map)(obj.labelColor);
36
36
  _this.limitsPerResource = (0, Mapper_1.mapArray)(obj.limitsPerResource, ResourceLimitContainer_1.default);
37
37
  _this.signupSource = (0, Mapper_1.map)(obj.signupSource);
38
+ _this.mfaRequired = (0, Mapper_1.map)(obj.mfaRequired);
38
39
  return _this;
39
40
  }
40
41
  return Organization;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @export
3
+ * @class StreamKeysUnassignAction
4
+ */
5
+ export declare class StreamKeysUnassignAction {
6
+ /**
7
+ * Encoding ID for which stream keys should be unassigned
8
+ * @type {string}
9
+ * @memberof StreamKeysUnassignAction
10
+ */
11
+ encodingId?: string;
12
+ constructor(obj?: Partial<StreamKeysUnassignAction>);
13
+ }
14
+ export default StreamKeysUnassignAction;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StreamKeysUnassignAction = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ /**
6
+ * @export
7
+ * @class StreamKeysUnassignAction
8
+ */
9
+ var StreamKeysUnassignAction = /** @class */ (function () {
10
+ function StreamKeysUnassignAction(obj) {
11
+ if (!obj) {
12
+ return;
13
+ }
14
+ this.encodingId = (0, Mapper_1.map)(obj.encodingId);
15
+ }
16
+ return StreamKeysUnassignAction;
17
+ }());
18
+ exports.StreamKeysUnassignAction = StreamKeysUnassignAction;
19
+ exports.default = StreamKeysUnassignAction;
@@ -708,6 +708,7 @@ export * from './StreamKeyConfiguration';
708
708
  export * from './StreamKeyConfigurationType';
709
709
  export * from './StreamKeyStatus';
710
710
  export * from './StreamKeyType';
711
+ export * from './StreamKeysUnassignAction';
711
712
  export * from './StreamMetadata';
712
713
  export * from './StreamMode';
713
714
  export * from './StreamPerTitleFixedResolutionAndBitrateSettings';
@@ -724,6 +724,7 @@ __exportStar(require("./StreamKeyConfiguration"), exports);
724
724
  __exportStar(require("./StreamKeyConfigurationType"), exports);
725
725
  __exportStar(require("./StreamKeyStatus"), exports);
726
726
  __exportStar(require("./StreamKeyType"), exports);
727
+ __exportStar(require("./StreamKeysUnassignAction"), exports);
727
728
  __exportStar(require("./StreamMetadata"), exports);
728
729
  __exportStar(require("./StreamMode"), exports);
729
730
  __exportStar(require("./StreamPerTitleFixedResolutionAndBitrateSettings"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmovin/api-sdk",
3
- "version": "1.190.0",
3
+ "version": "1.191.0",
4
4
  "description": "Bitmovin JS/TS API SDK",
5
5
  "author": "Bitmovin Inc",
6
6
  "keywords": [