@bitmovin/api-sdk 1.156.0 → 1.158.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.156.0',
243
+ 'X-Api-Client-Version': '1.158.0',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -21,6 +21,18 @@ export declare class StreamsConfigResponse {
21
21
  * @memberof StreamsConfigResponse
22
22
  */
23
23
  playerStyle?: any;
24
+ /**
25
+ * URL of the watermark image
26
+ * @type {string}
27
+ * @memberof StreamsConfigResponse
28
+ */
29
+ watermarkUrl?: string;
30
+ /**
31
+ * Target link of the watermark image
32
+ * @type {string}
33
+ * @memberof StreamsConfigResponse
34
+ */
35
+ watermarkTargetLink?: string;
24
36
  constructor(obj?: Partial<StreamsConfigResponse>);
25
37
  }
26
38
  export default StreamsConfigResponse;
@@ -14,6 +14,8 @@ var StreamsConfigResponse = /** @class */ (function () {
14
14
  this.id = (0, Mapper_1.map)(obj.id);
15
15
  this.orgId = (0, Mapper_1.map)(obj.orgId);
16
16
  this.playerStyle = (0, Mapper_1.map)(obj.playerStyle);
17
+ this.watermarkUrl = (0, Mapper_1.map)(obj.watermarkUrl);
18
+ this.watermarkTargetLink = (0, Mapper_1.map)(obj.watermarkTargetLink);
17
19
  }
18
20
  return StreamsConfigResponse;
19
21
  }());
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @export
3
+ * @class StreamsLiveCreateRequest
4
+ */
5
+ export declare class StreamsLiveCreateRequest {
6
+ /**
7
+ * Title of the stream
8
+ * @type {string}
9
+ * @memberof StreamsLiveCreateRequest
10
+ */
11
+ title?: string;
12
+ /**
13
+ * Description of the stream
14
+ * @type {string}
15
+ * @memberof StreamsLiveCreateRequest
16
+ */
17
+ description?: string;
18
+ /**
19
+ * Id of the stream config to use
20
+ * @type {string}
21
+ * @memberof StreamsLiveCreateRequest
22
+ */
23
+ configId?: string;
24
+ constructor(obj?: Partial<StreamsLiveCreateRequest>);
25
+ }
26
+ export default StreamsLiveCreateRequest;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StreamsLiveCreateRequest = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ /**
6
+ * @export
7
+ * @class StreamsLiveCreateRequest
8
+ */
9
+ var StreamsLiveCreateRequest = /** @class */ (function () {
10
+ function StreamsLiveCreateRequest(obj) {
11
+ if (!obj) {
12
+ return;
13
+ }
14
+ this.title = (0, Mapper_1.map)(obj.title);
15
+ this.description = (0, Mapper_1.map)(obj.description);
16
+ this.configId = (0, Mapper_1.map)(obj.configId);
17
+ }
18
+ return StreamsLiveCreateRequest;
19
+ }());
20
+ exports.StreamsLiveCreateRequest = StreamsLiveCreateRequest;
21
+ exports.default = StreamsLiveCreateRequest;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @export
3
+ * @enum {string}
4
+ */
5
+ export declare enum StreamsLiveLifeCycle {
6
+ PROVISIONING = "PROVISIONING",
7
+ STOPPED = "STOPPED",
8
+ RUNNING = "RUNNING",
9
+ ERROR = "ERROR"
10
+ }
11
+ export default StreamsLiveLifeCycle;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StreamsLiveLifeCycle = void 0;
4
+ /**
5
+ * @export
6
+ * @enum {string}
7
+ */
8
+ var StreamsLiveLifeCycle;
9
+ (function (StreamsLiveLifeCycle) {
10
+ StreamsLiveLifeCycle["PROVISIONING"] = "PROVISIONING";
11
+ StreamsLiveLifeCycle["STOPPED"] = "STOPPED";
12
+ StreamsLiveLifeCycle["RUNNING"] = "RUNNING";
13
+ StreamsLiveLifeCycle["ERROR"] = "ERROR";
14
+ })(StreamsLiveLifeCycle = exports.StreamsLiveLifeCycle || (exports.StreamsLiveLifeCycle = {}));
15
+ exports.default = StreamsLiveLifeCycle;
@@ -0,0 +1,51 @@
1
+ import StreamsConfigResponse from './StreamsConfigResponse';
2
+ import StreamsLiveLifeCycle from './StreamsLiveLifeCycle';
3
+ /**
4
+ * @export
5
+ * @class StreamsLiveResponse
6
+ */
7
+ export declare class StreamsLiveResponse {
8
+ /**
9
+ * The identifier of the stream
10
+ * @type {string}
11
+ * @memberof StreamsLiveResponse
12
+ */
13
+ id?: string;
14
+ /**
15
+ * The streamKey of the stream
16
+ * @type {string}
17
+ * @memberof StreamsLiveResponse
18
+ */
19
+ streamKey?: string;
20
+ /**
21
+ * The title of the stream
22
+ * @type {string}
23
+ * @memberof StreamsLiveResponse
24
+ */
25
+ title?: string;
26
+ /**
27
+ * The description of the stream
28
+ * @type {string}
29
+ * @memberof StreamsLiveResponse
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 StreamsLiveResponse
36
+ */
37
+ createdAt?: Date;
38
+ /**
39
+ * The life cycle of the stream
40
+ * @type {StreamsLiveLifeCycle}
41
+ * @memberof StreamsLiveResponse
42
+ */
43
+ lifeCycle?: StreamsLiveLifeCycle;
44
+ /**
45
+ * @type {StreamsConfigResponse}
46
+ * @memberof StreamsLiveResponse
47
+ */
48
+ config?: StreamsConfigResponse;
49
+ constructor(obj?: Partial<StreamsLiveResponse>);
50
+ }
51
+ export default StreamsLiveResponse;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StreamsLiveResponse = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ var StreamsConfigResponse_1 = require("./StreamsConfigResponse");
6
+ /**
7
+ * @export
8
+ * @class StreamsLiveResponse
9
+ */
10
+ var StreamsLiveResponse = /** @class */ (function () {
11
+ function StreamsLiveResponse(obj) {
12
+ if (!obj) {
13
+ return;
14
+ }
15
+ this.id = (0, Mapper_1.map)(obj.id);
16
+ this.streamKey = (0, Mapper_1.map)(obj.streamKey);
17
+ this.title = (0, Mapper_1.map)(obj.title);
18
+ this.description = (0, Mapper_1.map)(obj.description);
19
+ this.createdAt = (0, Mapper_1.map)(obj.createdAt, Date);
20
+ this.lifeCycle = (0, Mapper_1.map)(obj.lifeCycle);
21
+ this.config = (0, Mapper_1.map)(obj.config, StreamsConfigResponse_1.default);
22
+ }
23
+ return StreamsLiveResponse;
24
+ }());
25
+ exports.StreamsLiveResponse = StreamsLiveResponse;
26
+ exports.default = StreamsLiveResponse;
@@ -691,7 +691,9 @@ export * from './StreamPerTitleFixedResolutionAndBitrateSettings';
691
691
  export * from './StreamPerTitleSettings';
692
692
  export * from './StreamSelectionMode';
693
693
  export * from './StreamsConfigResponse';
694
- export * from './StreamsConfigUpdateRequest';
694
+ export * from './StreamsLiveCreateRequest';
695
+ export * from './StreamsLiveLifeCycle';
696
+ export * from './StreamsLiveResponse';
695
697
  export * from './StreamsLiveUpdateRequest';
696
698
  export * from './StreamsVideoCreateRequest';
697
699
  export * from './StreamsVideoEncodingStatus';
@@ -707,7 +707,9 @@ __exportStar(require("./StreamPerTitleFixedResolutionAndBitrateSettings"), expor
707
707
  __exportStar(require("./StreamPerTitleSettings"), exports);
708
708
  __exportStar(require("./StreamSelectionMode"), exports);
709
709
  __exportStar(require("./StreamsConfigResponse"), exports);
710
- __exportStar(require("./StreamsConfigUpdateRequest"), exports);
710
+ __exportStar(require("./StreamsLiveCreateRequest"), exports);
711
+ __exportStar(require("./StreamsLiveLifeCycle"), exports);
712
+ __exportStar(require("./StreamsLiveResponse"), exports);
711
713
  __exportStar(require("./StreamsLiveUpdateRequest"), exports);
712
714
  __exportStar(require("./StreamsVideoCreateRequest"), exports);
713
715
  __exportStar(require("./StreamsVideoEncodingStatus"), exports);
@@ -1,6 +1,5 @@
1
1
  import { BaseAPI } from '../common/BaseAPI';
2
2
  import Configuration from '../common/Configuration';
3
- import ConfigsApi from './configs/ConfigsApi';
4
3
  import VideoApi from './video/VideoApi';
5
4
  import LiveApi from './live/LiveApi';
6
5
  /**
@@ -10,7 +9,6 @@ import LiveApi from './live/LiveApi';
10
9
  * @extends {BaseAPI}
11
10
  */
12
11
  export default class StreamsApi extends BaseAPI {
13
- configs: ConfigsApi;
14
12
  video: VideoApi;
15
13
  live: LiveApi;
16
14
  constructor(configuration: Configuration);
@@ -16,7 +16,6 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  var BaseAPI_1 = require("../common/BaseAPI");
19
- var ConfigsApi_1 = require("./configs/ConfigsApi");
20
19
  var VideoApi_1 = require("./video/VideoApi");
21
20
  var LiveApi_1 = require("./live/LiveApi");
22
21
  /**
@@ -29,7 +28,6 @@ var StreamsApi = /** @class */ (function (_super) {
29
28
  __extends(StreamsApi, _super);
30
29
  function StreamsApi(configuration) {
31
30
  var _this = _super.call(this, configuration) || this;
32
- _this.configs = new ConfigsApi_1.default(configuration);
33
31
  _this.video = new VideoApi_1.default(configuration);
34
32
  _this.live = new LiveApi_1.default(configuration);
35
33
  return _this;
@@ -1,6 +1,12 @@
1
1
  import { BaseAPI } from '../../common/BaseAPI';
2
2
  import Configuration from '../../common/Configuration';
3
+ import StopApi from './stop/StopApi';
4
+ import StartApi from './start/StartApi';
5
+ import StreamsLiveCreateRequest from '../../models/StreamsLiveCreateRequest';
6
+ import StreamsLiveResponse from '../../models/StreamsLiveResponse';
3
7
  import StreamsLiveUpdateRequest from '../../models/StreamsLiveUpdateRequest';
8
+ import PaginationResponse from '../../models/PaginationResponse';
9
+ import { StreamsLiveResponseListQueryParams, StreamsLiveResponseListQueryParamsBuilder } from './StreamsLiveResponseListQueryParams';
4
10
  /**
5
11
  * LiveApi - object-oriented interface
6
12
  * @export
@@ -8,7 +14,30 @@ import StreamsLiveUpdateRequest from '../../models/StreamsLiveUpdateRequest';
8
14
  * @extends {BaseAPI}
9
15
  */
10
16
  export default class LiveApi extends BaseAPI {
17
+ stop: StopApi;
18
+ start: StartApi;
11
19
  constructor(configuration: Configuration);
20
+ /**
21
+ * @summary Create new live stream
22
+ * @param {StreamsLiveCreateRequest} streamsLiveCreateRequest Create a new stream.
23
+ * @throws {BitmovinError}
24
+ * @memberof LiveApi
25
+ */
26
+ create(streamsLiveCreateRequest?: StreamsLiveCreateRequest): Promise<StreamsLiveResponse>;
27
+ /**
28
+ * @summary Get live stream by id
29
+ * @param {string} streamId Id of the stream.
30
+ * @throws {BitmovinError}
31
+ * @memberof LiveApi
32
+ */
33
+ get(streamId: string): Promise<StreamsLiveResponse>;
34
+ /**
35
+ * @summary Get paginated list of live streams
36
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
37
+ * @throws {BitmovinError}
38
+ * @memberof LiveApi
39
+ */
40
+ list(queryParameters?: StreamsLiveResponseListQueryParams | ((q: StreamsLiveResponseListQueryParamsBuilder) => StreamsLiveResponseListQueryParamsBuilder)): Promise<PaginationResponse<StreamsLiveResponse>>;
12
41
  /**
13
42
  * @summary Update live stream by id
14
43
  * @param {string} streamId Id of the stream.
@@ -17,7 +17,12 @@ 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 StopApi_1 = require("./stop/StopApi");
21
+ var StartApi_1 = require("./start/StartApi");
22
+ var StreamsLiveResponse_1 = require("../../models/StreamsLiveResponse");
20
23
  var StreamsLiveUpdateRequest_1 = require("../../models/StreamsLiveUpdateRequest");
24
+ var PaginationResponse_1 = require("../../models/PaginationResponse");
25
+ var StreamsLiveResponseListQueryParams_1 = require("./StreamsLiveResponseListQueryParams");
21
26
  /**
22
27
  * LiveApi - object-oriented interface
23
28
  * @export
@@ -27,8 +32,54 @@ var StreamsLiveUpdateRequest_1 = require("../../models/StreamsLiveUpdateRequest"
27
32
  var LiveApi = /** @class */ (function (_super) {
28
33
  __extends(LiveApi, _super);
29
34
  function LiveApi(configuration) {
30
- return _super.call(this, configuration) || this;
35
+ var _this = _super.call(this, configuration) || this;
36
+ _this.stop = new StopApi_1.default(configuration);
37
+ _this.start = new StartApi_1.default(configuration);
38
+ return _this;
31
39
  }
40
+ /**
41
+ * @summary Create new live stream
42
+ * @param {StreamsLiveCreateRequest} streamsLiveCreateRequest Create a new stream.
43
+ * @throws {BitmovinError}
44
+ * @memberof LiveApi
45
+ */
46
+ LiveApi.prototype.create = function (streamsLiveCreateRequest) {
47
+ return this.restClient.post('/streams/live', {}, streamsLiveCreateRequest).then(function (response) {
48
+ return (0, Mapper_1.map)(response, StreamsLiveResponse_1.default);
49
+ });
50
+ };
51
+ /**
52
+ * @summary Get live stream by id
53
+ * @param {string} streamId Id of the stream.
54
+ * @throws {BitmovinError}
55
+ * @memberof LiveApi
56
+ */
57
+ LiveApi.prototype.get = function (streamId) {
58
+ var pathParamMap = {
59
+ stream_id: streamId
60
+ };
61
+ return this.restClient.get('/streams/live/{stream_id}', pathParamMap).then(function (response) {
62
+ return (0, Mapper_1.map)(response, StreamsLiveResponse_1.default);
63
+ });
64
+ };
65
+ /**
66
+ * @summary Get paginated list of live streams
67
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
68
+ * @throws {BitmovinError}
69
+ * @memberof LiveApi
70
+ */
71
+ LiveApi.prototype.list = function (queryParameters) {
72
+ var queryParams = {};
73
+ if (typeof queryParameters === 'function') {
74
+ queryParams = queryParameters(new StreamsLiveResponseListQueryParams_1.StreamsLiveResponseListQueryParamsBuilder()).buildQueryParams();
75
+ }
76
+ else if (queryParameters) {
77
+ queryParams = queryParameters;
78
+ }
79
+ return this.restClient.get('/streams/live', {}, queryParams).then(function (response) {
80
+ return new PaginationResponse_1.default(response, StreamsLiveResponse_1.default);
81
+ });
82
+ };
32
83
  /**
33
84
  * @summary Update live stream by id
34
85
  * @param {string} streamId Id of the stream.
@@ -0,0 +1,39 @@
1
+ export interface StreamsLiveResponseListQueryParams {
2
+ /**
3
+ * Index of the first item to return, starting at 0. Default is 0
4
+ * @type {number}
5
+ * @memberof StreamsLiveResponseListQueryParams
6
+ */
7
+ offset?: number | undefined;
8
+ /**
9
+ * Maximum number of items to return. Default is 25, maximum is 100
10
+ * @type {number}
11
+ * @memberof StreamsLiveResponseListQueryParams
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 StreamsLiveResponseListQueryParams
18
+ */
19
+ sort?: string | undefined;
20
+ }
21
+ export declare class StreamsLiveResponseListQueryParamsBuilder {
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(): StreamsLiveResponseListQueryParams;
39
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StreamsLiveResponseListQueryParamsBuilder = void 0;
4
+ var StreamsLiveResponseListQueryParamsBuilder = /** @class */ (function () {
5
+ function StreamsLiveResponseListQueryParamsBuilder() {
6
+ this.internalParams = {};
7
+ }
8
+ /**
9
+ *
10
+ * @param offset Index of the first item to return, starting at 0. Default is 0
11
+ */
12
+ StreamsLiveResponseListQueryParamsBuilder.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
+ StreamsLiveResponseListQueryParamsBuilder.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
+ StreamsLiveResponseListQueryParamsBuilder.prototype.sort = function (sort) {
29
+ this.internalParams.sort = sort;
30
+ return this;
31
+ };
32
+ StreamsLiveResponseListQueryParamsBuilder.prototype.buildQueryParams = function () {
33
+ return this.internalParams;
34
+ };
35
+ return StreamsLiveResponseListQueryParamsBuilder;
36
+ }());
37
+ exports.StreamsLiveResponseListQueryParamsBuilder = StreamsLiveResponseListQueryParamsBuilder;
@@ -0,0 +1,18 @@
1
+ import { BaseAPI } from '../../../common/BaseAPI';
2
+ import Configuration from '../../../common/Configuration';
3
+ /**
4
+ * StartApi - object-oriented interface
5
+ * @export
6
+ * @class StartApi
7
+ * @extends {BaseAPI}
8
+ */
9
+ export default class StartApi extends BaseAPI {
10
+ constructor(configuration: Configuration);
11
+ /**
12
+ * @summary Start live stream by id
13
+ * @param {string} streamId Id of the stream.
14
+ * @throws {BitmovinError}
15
+ * @memberof StartApi
16
+ */
17
+ update(streamId: string): Promise<Response>;
18
+ }
@@ -15,35 +15,33 @@ var __extends = (this && this.__extends) || (function () {
15
15
  };
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- var BaseAPI_1 = require("../../common/BaseAPI");
19
- var Mapper_1 = require("../../common/Mapper");
20
- var StreamsConfigResponse_1 = require("../../models/StreamsConfigResponse");
18
+ var BaseAPI_1 = require("../../../common/BaseAPI");
19
+ var Mapper_1 = require("../../../common/Mapper");
21
20
  /**
22
- * ConfigsApi - object-oriented interface
21
+ * StartApi - object-oriented interface
23
22
  * @export
24
- * @class ConfigsApi
23
+ * @class StartApi
25
24
  * @extends {BaseAPI}
26
25
  */
27
- var ConfigsApi = /** @class */ (function (_super) {
28
- __extends(ConfigsApi, _super);
29
- function ConfigsApi(configuration) {
26
+ var StartApi = /** @class */ (function (_super) {
27
+ __extends(StartApi, _super);
28
+ function StartApi(configuration) {
30
29
  return _super.call(this, configuration) || this;
31
30
  }
32
31
  /**
33
- * @summary Update stream config by id
34
- * @param {string} configId Id of the stream config.
35
- * @param {StreamsConfigUpdateRequest} streamsConfigUpdateRequest The updated stream config object.
32
+ * @summary Start live stream by id
33
+ * @param {string} streamId Id of the stream.
36
34
  * @throws {BitmovinError}
37
- * @memberof ConfigsApi
35
+ * @memberof StartApi
38
36
  */
39
- ConfigsApi.prototype.patchStreamConfig = function (configId, streamsConfigUpdateRequest) {
37
+ StartApi.prototype.update = function (streamId) {
40
38
  var pathParamMap = {
41
- config_id: configId
39
+ stream_id: streamId
42
40
  };
43
- return this.restClient.patch('/streams/configs/{config_id}', pathParamMap, streamsConfigUpdateRequest).then(function (response) {
44
- return (0, Mapper_1.map)(response, StreamsConfigResponse_1.default);
41
+ return this.restClient.put('/streams/live/{stream_id}/start', pathParamMap).then(function (response) {
42
+ return (0, Mapper_1.map)(response);
45
43
  });
46
44
  };
47
- return ConfigsApi;
45
+ return StartApi;
48
46
  }(BaseAPI_1.BaseAPI));
49
- exports.default = ConfigsApi;
47
+ exports.default = StartApi;
@@ -0,0 +1,18 @@
1
+ import { BaseAPI } from '../../../common/BaseAPI';
2
+ import Configuration from '../../../common/Configuration';
3
+ /**
4
+ * StopApi - object-oriented interface
5
+ * @export
6
+ * @class StopApi
7
+ * @extends {BaseAPI}
8
+ */
9
+ export default class StopApi extends BaseAPI {
10
+ constructor(configuration: Configuration);
11
+ /**
12
+ * @summary Stop live stream by id
13
+ * @param {string} streamId Id of the stream.
14
+ * @throws {BitmovinError}
15
+ * @memberof StopApi
16
+ */
17
+ update(streamId: string): Promise<Response>;
18
+ }
@@ -0,0 +1,47 @@
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
+ /**
21
+ * StopApi - object-oriented interface
22
+ * @export
23
+ * @class StopApi
24
+ * @extends {BaseAPI}
25
+ */
26
+ var StopApi = /** @class */ (function (_super) {
27
+ __extends(StopApi, _super);
28
+ function StopApi(configuration) {
29
+ return _super.call(this, configuration) || this;
30
+ }
31
+ /**
32
+ * @summary Stop live stream by id
33
+ * @param {string} streamId Id of the stream.
34
+ * @throws {BitmovinError}
35
+ * @memberof StopApi
36
+ */
37
+ StopApi.prototype.update = function (streamId) {
38
+ var pathParamMap = {
39
+ stream_id: streamId
40
+ };
41
+ return this.restClient.put('/streams/live/{stream_id}/stop', pathParamMap).then(function (response) {
42
+ return (0, Mapper_1.map)(response);
43
+ });
44
+ };
45
+ return StopApi;
46
+ }(BaseAPI_1.BaseAPI));
47
+ exports.default = StopApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmovin/api-sdk",
3
- "version": "1.156.0",
3
+ "version": "1.158.0",
4
4
  "description": "Bitmovin JS/TS API SDK",
5
5
  "author": "Bitmovin Inc",
6
6
  "keywords": [
@@ -1,14 +0,0 @@
1
- /**
2
- * @export
3
- * @class StreamsConfigUpdateRequest
4
- */
5
- export declare class StreamsConfigUpdateRequest {
6
- /**
7
- * Player style config (required)
8
- * @type {any}
9
- * @memberof StreamsConfigUpdateRequest
10
- */
11
- playerStyle?: any;
12
- constructor(obj?: Partial<StreamsConfigUpdateRequest>);
13
- }
14
- export default StreamsConfigUpdateRequest;
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StreamsConfigUpdateRequest = void 0;
4
- var Mapper_1 = require("../common/Mapper");
5
- /**
6
- * @export
7
- * @class StreamsConfigUpdateRequest
8
- */
9
- var StreamsConfigUpdateRequest = /** @class */ (function () {
10
- function StreamsConfigUpdateRequest(obj) {
11
- if (!obj) {
12
- return;
13
- }
14
- this.playerStyle = (0, Mapper_1.map)(obj.playerStyle);
15
- }
16
- return StreamsConfigUpdateRequest;
17
- }());
18
- exports.StreamsConfigUpdateRequest = StreamsConfigUpdateRequest;
19
- exports.default = StreamsConfigUpdateRequest;
@@ -1,21 +0,0 @@
1
- import { BaseAPI } from '../../common/BaseAPI';
2
- import Configuration from '../../common/Configuration';
3
- import StreamsConfigResponse from '../../models/StreamsConfigResponse';
4
- import StreamsConfigUpdateRequest from '../../models/StreamsConfigUpdateRequest';
5
- /**
6
- * ConfigsApi - object-oriented interface
7
- * @export
8
- * @class ConfigsApi
9
- * @extends {BaseAPI}
10
- */
11
- export default class ConfigsApi extends BaseAPI {
12
- constructor(configuration: Configuration);
13
- /**
14
- * @summary Update stream config by id
15
- * @param {string} configId Id of the stream config.
16
- * @param {StreamsConfigUpdateRequest} streamsConfigUpdateRequest The updated stream config object.
17
- * @throws {BitmovinError}
18
- * @memberof ConfigsApi
19
- */
20
- patchStreamConfig(configId: string, streamsConfigUpdateRequest?: StreamsConfigUpdateRequest): Promise<StreamsConfigResponse>;
21
- }