UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

29 lines (28 loc) 1.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const BaseAPI_1 = require("../../../../common/BaseAPI"); const Mapper_1 = require("../../../../common/Mapper"); const StreamKeysUnassignAction_1 = require("../../../../models/StreamKeysUnassignAction"); /** * ActionsApi - object-oriented interface * @export * @class ActionsApi * @extends {BaseAPI} */ class ActionsApi extends BaseAPI_1.BaseAPI { constructor(configuration) { super(configuration); } /** * @summary Unassign stream keys * @param {StreamKeysUnassignAction} streamKeysUnassignAction The action payload for unassigning stream keys * @throws {BitmovinError} * @memberof ActionsApi */ unassign(streamKeysUnassignAction) { return this.restClient.post('/encoding/live/stream-keys/actions/unassign', {}, streamKeysUnassignAction).then((response) => { return (0, Mapper_1.map)(response, StreamKeysUnassignAction_1.default); }); } } exports.default = ActionsApi;