@bitmovin/api-sdk 1.168.0 → 1.169.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.168.0',
243
+ 'X-Api-Client-Version': '1.169.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 BitmovinResponse from '../../../../models/BitmovinResponse';
3
4
  import StartLiveChannelEncodingRequest from '../../../../models/StartLiveChannelEncodingRequest';
4
5
  /**
5
6
  * HdApi - object-oriented interface
@@ -16,4 +17,12 @@ export default class HdApi extends BaseAPI {
16
17
  * @memberof HdApi
17
18
  */
18
19
  getStartRequest(encodingId: string): Promise<StartLiveChannelEncodingRequest>;
20
+ /**
21
+ * @summary Start Live Encoding
22
+ * @param {string} encodingId Id of the encoding
23
+ * @param {StartLiveChannelEncodingRequest} startLiveChannelEncodingRequest Live Encoding startup options
24
+ * @throws {BitmovinError}
25
+ * @memberof HdApi
26
+ */
27
+ start(encodingId: string, startLiveChannelEncodingRequest?: StartLiveChannelEncodingRequest): Promise<BitmovinResponse>;
19
28
  }
@@ -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 BitmovinResponse_1 = require("../../../../models/BitmovinResponse");
20
21
  var StartLiveChannelEncodingRequest_1 = require("../../../../models/StartLiveChannelEncodingRequest");
21
22
  /**
22
23
  * HdApi - object-oriented interface
@@ -43,6 +44,21 @@ var HdApi = /** @class */ (function (_super) {
43
44
  return (0, Mapper_1.map)(response, StartLiveChannelEncodingRequest_1.default);
44
45
  });
45
46
  };
47
+ /**
48
+ * @summary Start Live Encoding
49
+ * @param {string} encodingId Id of the encoding
50
+ * @param {StartLiveChannelEncodingRequest} startLiveChannelEncodingRequest Live Encoding startup options
51
+ * @throws {BitmovinError}
52
+ * @memberof HdApi
53
+ */
54
+ HdApi.prototype.start = function (encodingId, startLiveChannelEncodingRequest) {
55
+ var pathParamMap = {
56
+ encoding_id: encodingId
57
+ };
58
+ return this.restClient.post('/encoding/encodings/{encoding_id}/live/hd/start', pathParamMap, startLiveChannelEncodingRequest).then(function (response) {
59
+ return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
60
+ });
61
+ };
46
62
  return HdApi;
47
63
  }(BaseAPI_1.BaseAPI));
48
64
  exports.default = HdApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmovin/api-sdk",
3
- "version": "1.168.0",
3
+ "version": "1.169.0",
4
4
  "description": "Bitmovin JS/TS API SDK",
5
5
  "author": "Bitmovin Inc",
6
6
  "keywords": [