@bitmovin/api-sdk 1.139.0 → 1.141.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.
Files changed (52) hide show
  1. package/README.md +1 -1
  2. package/dist/bitmovin-api-sdk.browser.js +100 -6
  3. package/dist/bitmovin-api-sdk.browser.min.js +1 -1
  4. package/dist/common/ConsoleLogger.js +1 -1
  5. package/dist/common/Mapper.d.ts +1 -1
  6. package/dist/common/NullLogger.js +1 -1
  7. package/dist/common/RestClient.d.ts +1 -1
  8. package/dist/common/RestClient.js +2 -2
  9. package/dist/models/AbstractCondition.d.ts +1 -1
  10. package/dist/models/AdAnalyticsAbstractFilter.d.ts +1 -1
  11. package/dist/models/AdaptationSet.d.ts +1 -1
  12. package/dist/models/AnalyticsAbstractFilter.d.ts +1 -1
  13. package/dist/models/AnalyticsOutput.d.ts +1 -1
  14. package/dist/models/BroadcastTsTransportConfiguration.d.ts +2 -2
  15. package/dist/models/CodecConfiguration.d.ts +1 -1
  16. package/dist/models/DashRepresentation.d.ts +1 -1
  17. package/dist/models/DefaultManifestCondition.d.ts +1 -1
  18. package/dist/models/DolbyVisionTrackSampleEntryName.d.ts +1 -1
  19. package/dist/models/DolbyVisionTrackSampleEntryName.js +1 -1
  20. package/dist/models/Drm.d.ts +1 -1
  21. package/dist/models/Filter.d.ts +1 -1
  22. package/dist/models/H262VideoConfiguration.d.ts +1 -1
  23. package/dist/models/H264VideoConfiguration.d.ts +6 -6
  24. package/dist/models/H265VideoConfiguration.d.ts +7 -7
  25. package/dist/models/HeAacV1AudioConfiguration.d.ts +1 -1
  26. package/dist/models/HeAacV2AudioConfiguration.d.ts +1 -1
  27. package/dist/models/Id3Tag.d.ts +1 -1
  28. package/dist/models/Input.d.ts +1 -1
  29. package/dist/models/InputStream.d.ts +1 -1
  30. package/dist/models/Muxing.d.ts +1 -1
  31. package/dist/models/MvPredictionMode.d.ts +1 -1
  32. package/dist/models/MvPredictionMode.js +1 -1
  33. package/dist/models/Output.d.ts +2 -1
  34. package/dist/models/SidecarFile.d.ts +1 -1
  35. package/dist/models/SimpleEncodingLiveJobOutput.d.ts +2 -2
  36. package/dist/models/SimpleEncodingVodJobCdnOutput.d.ts +1 -1
  37. package/dist/models/SimpleEncodingVodJobInput.d.ts +1 -1
  38. package/dist/models/SimpleEncodingVodJobOutput.d.ts +1 -1
  39. package/dist/models/StartEncodingRequest.d.ts +3 -3
  40. package/dist/models/StartLiveEncodingRequest.d.ts +1 -1
  41. package/dist/models/StartManifestRequest.d.ts +1 -1
  42. package/dist/models/StreamsLiveUpdateRequest.d.ts +20 -0
  43. package/dist/models/StreamsLiveUpdateRequest.js +20 -0
  44. package/dist/models/Vp8VideoConfiguration.d.ts +3 -3
  45. package/dist/models/Vp9VideoConfiguration.d.ts +3 -3
  46. package/dist/models/index.d.ts +1 -0
  47. package/dist/models/index.js +1 -0
  48. package/dist/streams/StreamsApi.d.ts +2 -0
  49. package/dist/streams/StreamsApi.js +2 -0
  50. package/dist/streams/live/LiveApi.d.ts +20 -0
  51. package/dist/streams/live/LiveApi.js +49 -0
  52. package/package.json +1 -1
@@ -1,6 +1,7 @@
1
1
  import { BaseAPI } from '../common/BaseAPI';
2
2
  import Configuration from '../common/Configuration';
3
3
  import VideoApi from './video/VideoApi';
4
+ import LiveApi from './live/LiveApi';
4
5
  /**
5
6
  * StreamsApi - object-oriented interface
6
7
  * @export
@@ -9,5 +10,6 @@ import VideoApi from './video/VideoApi';
9
10
  */
10
11
  export default class StreamsApi extends BaseAPI {
11
12
  video: VideoApi;
13
+ live: LiveApi;
12
14
  constructor(configuration: Configuration);
13
15
  }
@@ -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 VideoApi_1 = require("./video/VideoApi");
20
+ var LiveApi_1 = require("./live/LiveApi");
20
21
  /**
21
22
  * StreamsApi - object-oriented interface
22
23
  * @export
@@ -28,6 +29,7 @@ var StreamsApi = /** @class */ (function (_super) {
28
29
  function StreamsApi(configuration) {
29
30
  var _this = _super.call(this, configuration) || this;
30
31
  _this.video = new VideoApi_1.default(configuration);
32
+ _this.live = new LiveApi_1.default(configuration);
31
33
  return _this;
32
34
  }
33
35
  return StreamsApi;
@@ -0,0 +1,20 @@
1
+ import { BaseAPI } from '../../common/BaseAPI';
2
+ import Configuration from '../../common/Configuration';
3
+ import StreamsLiveUpdateRequest from '../../models/StreamsLiveUpdateRequest';
4
+ /**
5
+ * LiveApi - object-oriented interface
6
+ * @export
7
+ * @class LiveApi
8
+ * @extends {BaseAPI}
9
+ */
10
+ export default class LiveApi extends BaseAPI {
11
+ constructor(configuration: Configuration);
12
+ /**
13
+ * @summary Update stream by id
14
+ * @param {string} streamId Id of the stream.
15
+ * @param {StreamsLiveUpdateRequest} streamsLiveUpdateRequest Stream fields to update.
16
+ * @throws {BitmovinError}
17
+ * @memberof LiveApi
18
+ */
19
+ patchStreamsLive(streamId: string, streamsLiveUpdateRequest?: StreamsLiveUpdateRequest): Promise<StreamsLiveUpdateRequest>;
20
+ }
@@ -0,0 +1,49 @@
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 StreamsLiveUpdateRequest_1 = require("../../models/StreamsLiveUpdateRequest");
21
+ /**
22
+ * LiveApi - object-oriented interface
23
+ * @export
24
+ * @class LiveApi
25
+ * @extends {BaseAPI}
26
+ */
27
+ var LiveApi = /** @class */ (function (_super) {
28
+ __extends(LiveApi, _super);
29
+ function LiveApi(configuration) {
30
+ return _super.call(this, configuration) || this;
31
+ }
32
+ /**
33
+ * @summary Update stream by id
34
+ * @param {string} streamId Id of the stream.
35
+ * @param {StreamsLiveUpdateRequest} streamsLiveUpdateRequest Stream fields to update.
36
+ * @throws {BitmovinError}
37
+ * @memberof LiveApi
38
+ */
39
+ LiveApi.prototype.patchStreamsLive = function (streamId, streamsLiveUpdateRequest) {
40
+ var pathParamMap = {
41
+ stream_id: streamId
42
+ };
43
+ return this.restClient.patch('/streams/live/{stream_id}', pathParamMap, streamsLiveUpdateRequest).then(function (response) {
44
+ return (0, Mapper_1.map)(response, StreamsLiveUpdateRequest_1.default);
45
+ });
46
+ };
47
+ return LiveApi;
48
+ }(BaseAPI_1.BaseAPI));
49
+ exports.default = LiveApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmovin/api-sdk",
3
- "version": "1.139.0",
3
+ "version": "1.141.0",
4
4
  "description": "Bitmovin JS/TS API SDK",
5
5
  "author": "Bitmovin Inc",
6
6
  "keywords": [