@bitmovin/api-sdk 1.172.0 → 1.173.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.172.0',
243
+ 'X-Api-Client-Version': '1.173.0',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -24,6 +24,13 @@ export default class LiveApi extends BaseAPI {
24
24
  * @memberof LiveApi
25
25
  */
26
26
  create(streamsLiveCreateRequest?: StreamsLiveCreateRequest): Promise<StreamsLiveResponse>;
27
+ /**
28
+ * @summary Delete Stream
29
+ * @param {string} streamId Id of the stream.
30
+ * @throws {BitmovinError}
31
+ * @memberof LiveApi
32
+ */
33
+ delete(streamId: string): Promise<Response>;
27
34
  /**
28
35
  * @summary Get live stream by id
29
36
  * @param {string} streamId Id of the stream.
@@ -47,6 +47,20 @@ var LiveApi = /** @class */ (function (_super) {
47
47
  return (0, Mapper_1.map)(response, StreamsLiveResponse_1.default);
48
48
  });
49
49
  };
50
+ /**
51
+ * @summary Delete Stream
52
+ * @param {string} streamId Id of the stream.
53
+ * @throws {BitmovinError}
54
+ * @memberof LiveApi
55
+ */
56
+ LiveApi.prototype.delete = function (streamId) {
57
+ var pathParamMap = {
58
+ stream_id: streamId
59
+ };
60
+ return this.restClient.delete('/streams/live/{stream_id}', pathParamMap).then(function (response) {
61
+ return (0, Mapper_1.map)(response);
62
+ });
63
+ };
50
64
  /**
51
65
  * @summary Get live stream by id
52
66
  * @param {string} streamId Id of the stream.
@@ -20,6 +20,13 @@ export default class VideoApi extends BaseAPI {
20
20
  * @memberof VideoApi
21
21
  */
22
22
  create(streamsVideoCreateRequest?: StreamsVideoCreateRequest): Promise<StreamsVideoResponse>;
23
+ /**
24
+ * @summary Delete Stream
25
+ * @param {string} streamId Id of the stream.
26
+ * @throws {BitmovinError}
27
+ * @memberof VideoApi
28
+ */
29
+ delete(streamId: string): Promise<Response>;
23
30
  /**
24
31
  * @summary Get Streams video by id
25
32
  * @param {string} streamId Id of the stream.
@@ -42,6 +42,20 @@ var VideoApi = /** @class */ (function (_super) {
42
42
  return (0, Mapper_1.map)(response, StreamsVideoResponse_1.default);
43
43
  });
44
44
  };
45
+ /**
46
+ * @summary Delete Stream
47
+ * @param {string} streamId Id of the stream.
48
+ * @throws {BitmovinError}
49
+ * @memberof VideoApi
50
+ */
51
+ VideoApi.prototype.delete = function (streamId) {
52
+ var pathParamMap = {
53
+ stream_id: streamId
54
+ };
55
+ return this.restClient.delete('/streams/video/{stream_id}', pathParamMap).then(function (response) {
56
+ return (0, Mapper_1.map)(response);
57
+ });
58
+ };
45
59
  /**
46
60
  * @summary Get Streams video by id
47
61
  * @param {string} streamId Id of the stream.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmovin/api-sdk",
3
- "version": "1.172.0",
3
+ "version": "1.173.0",
4
4
  "description": "Bitmovin JS/TS API SDK",
5
5
  "author": "Bitmovin Inc",
6
6
  "keywords": [