@bitmovin/api-sdk 1.268.0 → 1.270.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.268.0',
243
+ 'X-Api-Client-Version': '1.270.0',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -3,6 +3,7 @@ import Configuration from '../../../common/Configuration';
3
3
  import EsamApi from './esam/EsamApi';
4
4
  import ResetLiveManifestTimeshiftApi from './resetLiveManifestTimeshift/ResetLiveManifestTimeshiftApi';
5
5
  import HeartbeatApi from './heartbeat/HeartbeatApi';
6
+ import HeartbeatFinalApi from './heartbeatFinal/HeartbeatFinalApi';
6
7
  import HdApi from './hd/HdApi';
7
8
  import InsertableContentApi from './insertableContent/InsertableContentApi';
8
9
  import Scte35CueApi from './scte35Cue/Scte35CueApi';
@@ -19,6 +20,7 @@ export default class LiveApi extends BaseAPI {
19
20
  esam: EsamApi;
20
21
  resetLiveManifestTimeshift: ResetLiveManifestTimeshiftApi;
21
22
  heartbeat: HeartbeatApi;
23
+ heartbeatFinal: HeartbeatFinalApi;
22
24
  hd: HdApi;
23
25
  insertableContent: InsertableContentApi;
24
26
  scte35Cue: Scte35CueApi;
@@ -20,6 +20,7 @@ var Mapper_1 = require("../../../common/Mapper");
20
20
  var EsamApi_1 = require("./esam/EsamApi");
21
21
  var ResetLiveManifestTimeshiftApi_1 = require("./resetLiveManifestTimeshift/ResetLiveManifestTimeshiftApi");
22
22
  var HeartbeatApi_1 = require("./heartbeat/HeartbeatApi");
23
+ var HeartbeatFinalApi_1 = require("./heartbeatFinal/HeartbeatFinalApi");
23
24
  var HdApi_1 = require("./hd/HdApi");
24
25
  var InsertableContentApi_1 = require("./insertableContent/InsertableContentApi");
25
26
  var Scte35CueApi_1 = require("./scte35Cue/Scte35CueApi");
@@ -39,6 +40,7 @@ var LiveApi = /** @class */ (function (_super) {
39
40
  _this.esam = new EsamApi_1.default(configuration);
40
41
  _this.resetLiveManifestTimeshift = new ResetLiveManifestTimeshiftApi_1.default(configuration);
41
42
  _this.heartbeat = new HeartbeatApi_1.default(configuration);
43
+ _this.heartbeatFinal = new HeartbeatFinalApi_1.default(configuration);
42
44
  _this.hd = new HdApi_1.default(configuration);
43
45
  _this.insertableContent = new InsertableContentApi_1.default(configuration);
44
46
  _this.scte35Cue = new Scte35CueApi_1.default(configuration);
@@ -0,0 +1,19 @@
1
+ import { BaseAPI } from '../../../../common/BaseAPI';
2
+ import Configuration from '../../../../common/Configuration';
3
+ import LiveEncodingHeartbeatUrlResponse from '../../../../models/LiveEncodingHeartbeatUrlResponse';
4
+ /**
5
+ * HeartbeatFinalApi - object-oriented interface
6
+ * @export
7
+ * @class HeartbeatFinalApi
8
+ * @extends {BaseAPI}
9
+ */
10
+ export default class HeartbeatFinalApi extends BaseAPI {
11
+ constructor(configuration: Configuration);
12
+ /**
13
+ * @summary Get Final Live Encoding Heartbeat Download URL
14
+ * @param {string} encodingId Id of the encoding.
15
+ * @throws {BitmovinError}
16
+ * @memberof HeartbeatFinalApi
17
+ */
18
+ get(encodingId: string): Promise<LiveEncodingHeartbeatUrlResponse>;
19
+ }
@@ -0,0 +1,48 @@
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 LiveEncodingHeartbeatUrlResponse_1 = require("../../../../models/LiveEncodingHeartbeatUrlResponse");
21
+ /**
22
+ * HeartbeatFinalApi - object-oriented interface
23
+ * @export
24
+ * @class HeartbeatFinalApi
25
+ * @extends {BaseAPI}
26
+ */
27
+ var HeartbeatFinalApi = /** @class */ (function (_super) {
28
+ __extends(HeartbeatFinalApi, _super);
29
+ function HeartbeatFinalApi(configuration) {
30
+ return _super.call(this, configuration) || this;
31
+ }
32
+ /**
33
+ * @summary Get Final Live Encoding Heartbeat Download URL
34
+ * @param {string} encodingId Id of the encoding.
35
+ * @throws {BitmovinError}
36
+ * @memberof HeartbeatFinalApi
37
+ */
38
+ HeartbeatFinalApi.prototype.get = function (encodingId) {
39
+ var pathParamMap = {
40
+ encoding_id: encodingId
41
+ };
42
+ return this.restClient.get('/encoding/encodings/{encoding_id}/live/heartbeat-final', pathParamMap).then(function (response) {
43
+ return (0, Mapper_1.map)(response, LiveEncodingHeartbeatUrlResponse_1.default);
44
+ });
45
+ };
46
+ return HeartbeatFinalApi;
47
+ }(BaseAPI_1.BaseAPI));
48
+ exports.default = HeartbeatFinalApi;
@@ -68,6 +68,12 @@ export declare class AccountInformation extends BitmovinResource {
68
68
  * @memberof AccountInformation
69
69
  */
70
70
  samlDomain?: string;
71
+ /**
72
+ * Whether the user has accepted the Terms of Service. Users created via SAML SSO start as `false` because the SAML flow bypasses the registration form that normally captures TOS acceptance; all other signup paths default to `true`. Acceptance is one-way: sending `true` accepts the TOS, sending `false` is ignored.
73
+ * @type {boolean}
74
+ * @memberof AccountInformation
75
+ */
76
+ tosAccepted?: boolean;
71
77
  constructor(obj?: Partial<AccountInformation>);
72
78
  }
73
79
  export default AccountInformation;
@@ -41,6 +41,7 @@ var AccountInformation = /** @class */ (function (_super) {
41
41
  _this.mfaEnabled = (0, Mapper_1.map)(obj.mfaEnabled);
42
42
  _this.intercomIdVerification = (0, Mapper_1.map)(obj.intercomIdVerification);
43
43
  _this.samlDomain = (0, Mapper_1.map)(obj.samlDomain);
44
+ _this.tosAccepted = (0, Mapper_1.map)(obj.tosAccepted);
44
45
  return _this;
45
46
  }
46
47
  return AccountInformation;
@@ -141,6 +141,7 @@ export declare enum AdAnalyticsAttribute {
141
141
  HOUR = "HOUR",
142
142
  IP_ADDRESS = "IP_ADDRESS",
143
143
  IS_LINEAR = "IS_LINEAR",
144
+ IS_SLATE = "IS_SLATE",
144
145
  ISP = "ISP",
145
146
  LANGUAGE = "LANGUAGE",
146
147
  LICENSE_KEY = "LICENSE_KEY",
@@ -145,6 +145,7 @@ var AdAnalyticsAttribute;
145
145
  AdAnalyticsAttribute["HOUR"] = "HOUR";
146
146
  AdAnalyticsAttribute["IP_ADDRESS"] = "IP_ADDRESS";
147
147
  AdAnalyticsAttribute["IS_LINEAR"] = "IS_LINEAR";
148
+ AdAnalyticsAttribute["IS_SLATE"] = "IS_SLATE";
148
149
  AdAnalyticsAttribute["ISP"] = "ISP";
149
150
  AdAnalyticsAttribute["LANGUAGE"] = "LANGUAGE";
150
151
  AdAnalyticsAttribute["LICENSE_KEY"] = "LICENSE_KEY";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Azure service principal credentials for Microsoft Entra ID authentication
2
+ * Azure service principal credentials for Microsoft Entra ID authentication. This authentication method is usable from encoder version 2.273.0 onwards.
3
3
  * @export
4
4
  * @class AzureServicePrincipal
5
5
  */
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AzureServicePrincipal = void 0;
4
4
  var Mapper_1 = require("../common/Mapper");
5
5
  /**
6
- * Azure service principal credentials for Microsoft Entra ID authentication
6
+ * Azure service principal credentials for Microsoft Entra ID authentication. This authentication method is usable from encoder version 2.273.0 onwards.
7
7
  * @export
8
8
  * @class AzureServicePrincipal
9
9
  */
@@ -36,6 +36,30 @@ export declare class LiveEncodingHeartbeatIngest {
36
36
  * @memberof LiveEncodingHeartbeatIngest
37
37
  */
38
38
  rtmpUserIngestInfo?: RtmpUserIngestInfo;
39
+ /**
40
+ * Total number of dropped video packets since the live encoding started.
41
+ * @type {number}
42
+ * @memberof LiveEncodingHeartbeatIngest
43
+ */
44
+ droppedPacketsVideo?: number;
45
+ /**
46
+ * Total number of dropped audio packets since the live encoding started.
47
+ * @type {number}
48
+ * @memberof LiveEncodingHeartbeatIngest
49
+ */
50
+ droppedPacketsAudio?: number;
51
+ /**
52
+ * Total number of corrupt video packets since the live encoding started.
53
+ * @type {number}
54
+ * @memberof LiveEncodingHeartbeatIngest
55
+ */
56
+ corruptPacketsVideo?: number;
57
+ /**
58
+ * Total number of corrupt audio packets since the live encoding started.
59
+ * @type {number}
60
+ * @memberof LiveEncodingHeartbeatIngest
61
+ */
62
+ corruptPacketsAudio?: number;
39
63
  constructor(obj?: Partial<LiveEncodingHeartbeatIngest>);
40
64
  }
41
65
  export default LiveEncodingHeartbeatIngest;
@@ -20,6 +20,10 @@ var LiveEncodingHeartbeatIngest = /** @class */ (function () {
20
20
  this.ingestPoints = (0, Mapper_1.mapArray)(obj.ingestPoints, LiveEncodingHeartbeatIngestPoint_1.default);
21
21
  this.streams = (0, Mapper_1.mapArray)(obj.streams, LiveEncodingHeartbeatIngestStream_1.default);
22
22
  this.rtmpUserIngestInfo = (0, Mapper_1.map)(obj.rtmpUserIngestInfo, RtmpUserIngestInfo_1.default);
23
+ this.droppedPacketsVideo = (0, Mapper_1.map)(obj.droppedPacketsVideo);
24
+ this.droppedPacketsAudio = (0, Mapper_1.map)(obj.droppedPacketsAudio);
25
+ this.corruptPacketsVideo = (0, Mapper_1.map)(obj.corruptPacketsVideo);
26
+ this.corruptPacketsAudio = (0, Mapper_1.map)(obj.corruptPacketsAudio);
23
27
  }
24
28
  return LiveEncodingHeartbeatIngest;
25
29
  }());
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @export
3
+ * @class LiveEncodingHeartbeatUrlResponse
4
+ */
5
+ export declare class LiveEncodingHeartbeatUrlResponse {
6
+ /**
7
+ * Presigned S3 URL to download the final heartbeat JSON of the live encoding. Valid for 10 minutes. (required)
8
+ * @type {string}
9
+ * @memberof LiveEncodingHeartbeatUrlResponse
10
+ */
11
+ url?: string;
12
+ constructor(obj?: Partial<LiveEncodingHeartbeatUrlResponse>);
13
+ }
14
+ export default LiveEncodingHeartbeatUrlResponse;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LiveEncodingHeartbeatUrlResponse = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ /**
6
+ * @export
7
+ * @class LiveEncodingHeartbeatUrlResponse
8
+ */
9
+ var LiveEncodingHeartbeatUrlResponse = /** @class */ (function () {
10
+ function LiveEncodingHeartbeatUrlResponse(obj) {
11
+ if (!obj) {
12
+ return;
13
+ }
14
+ this.url = (0, Mapper_1.map)(obj.url);
15
+ }
16
+ return LiveEncodingHeartbeatUrlResponse;
17
+ }());
18
+ exports.LiveEncodingHeartbeatUrlResponse = LiveEncodingHeartbeatUrlResponse;
19
+ exports.default = LiveEncodingHeartbeatUrlResponse;
@@ -523,6 +523,7 @@ export * from './LiveEncodingHeartbeatEventType';
523
523
  export * from './LiveEncodingHeartbeatIngest';
524
524
  export * from './LiveEncodingHeartbeatIngestPoint';
525
525
  export * from './LiveEncodingHeartbeatIngestStream';
526
+ export * from './LiveEncodingHeartbeatUrlResponse';
526
527
  export * from './LiveEncodingHeartbeatWebhook';
527
528
  export * from './LiveEncodingOptionsStatistics';
528
529
  export * from './LiveEncodingStats';
@@ -539,6 +539,7 @@ __exportStar(require("./LiveEncodingHeartbeatEventType"), exports);
539
539
  __exportStar(require("./LiveEncodingHeartbeatIngest"), exports);
540
540
  __exportStar(require("./LiveEncodingHeartbeatIngestPoint"), exports);
541
541
  __exportStar(require("./LiveEncodingHeartbeatIngestStream"), exports);
542
+ __exportStar(require("./LiveEncodingHeartbeatUrlResponse"), exports);
542
543
  __exportStar(require("./LiveEncodingHeartbeatWebhook"), exports);
543
544
  __exportStar(require("./LiveEncodingOptionsStatistics"), exports);
544
545
  __exportStar(require("./LiveEncodingStats"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmovin/api-sdk",
3
- "version": "1.268.0",
3
+ "version": "1.270.0",
4
4
  "description": "Bitmovin JS/TS API SDK",
5
5
  "author": "Bitmovin Inc",
6
6
  "keywords": [