@bitmovin/api-sdk 1.246.0 → 1.248.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.246.0',
243
+ 'X-Api-Client-Version': '1.248.0',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -86,6 +86,12 @@ export declare class AnalyticsLicense {
86
86
  * @memberof AnalyticsLicense
87
87
  */
88
88
  compressedRetentionTime?: string;
89
+ /**
90
+ * The date and time up until which the compressed data is available. Returned as ISO 8601 date-time format
91
+ * @type {Date}
92
+ * @memberof AnalyticsLicense
93
+ */
94
+ compressionAvailableTo?: Date;
89
95
  /**
90
96
  * Whitelisted domains
91
97
  * @type {AnalyticsLicenseDomain[]}
@@ -27,6 +27,7 @@ var AnalyticsLicense = /** @class */ (function () {
27
27
  this.timeZone = (0, Mapper_1.map)(obj.timeZone);
28
28
  this.retentionTime = (0, Mapper_1.map)(obj.retentionTime);
29
29
  this.compressedRetentionTime = (0, Mapper_1.map)(obj.compressedRetentionTime);
30
+ this.compressionAvailableTo = (0, Mapper_1.map)(obj.compressionAvailableTo, Date);
30
31
  this.domains = (0, Mapper_1.mapArray)(obj.domains, AnalyticsLicenseDomain_1.default);
31
32
  this.playerDomains = (0, Mapper_1.mapArray)(obj.playerDomains);
32
33
  this.includeInInsights = (0, Mapper_1.map)(obj.includeInInsights);
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Represents a main subject or object detected within a shot, including its classification, spatial position, and appearance timing
3
+ * @export
4
+ * @class MainSubject
5
+ */
6
+ export declare class MainSubject {
7
+ /**
8
+ * The category or type of the detected subject based on the YOLOv8 OIv7 (Open Images V7) object detection model (e.g., 'person', 'vehicle', 'building') (required)
9
+ * @type {string}
10
+ * @memberof MainSubject
11
+ */
12
+ classification?: string;
13
+ /**
14
+ * A detailed textual description of the subject's appearance and characteristics (required)
15
+ * @type {string}
16
+ * @memberof MainSubject
17
+ */
18
+ description?: string;
19
+ /**
20
+ * The timestamp in seconds when this subject first appears or is most prominently visible in the shot (required)
21
+ * @type {number}
22
+ * @memberof MainSubject
23
+ */
24
+ appearanceTimeInSeconds?: number;
25
+ /**
26
+ * The horizontal center position of the subject as a percentage from the left edge (0-100, where 0 is the left edge and 100 is the right edge) (required)
27
+ * @type {number}
28
+ * @memberof MainSubject
29
+ */
30
+ centerX?: number;
31
+ /**
32
+ * The vertical center position of the subject as a percentage from the top edge (0-100, where 0 is the top edge and 100 is the bottom edge) (required)
33
+ * @type {number}
34
+ * @memberof MainSubject
35
+ */
36
+ centerY?: number;
37
+ constructor(obj?: Partial<MainSubject>);
38
+ }
39
+ export default MainSubject;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MainSubject = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ /**
6
+ * Represents a main subject or object detected within a shot, including its classification, spatial position, and appearance timing
7
+ * @export
8
+ * @class MainSubject
9
+ */
10
+ var MainSubject = /** @class */ (function () {
11
+ function MainSubject(obj) {
12
+ if (!obj) {
13
+ return;
14
+ }
15
+ this.classification = (0, Mapper_1.map)(obj.classification);
16
+ this.description = (0, Mapper_1.map)(obj.description);
17
+ this.appearanceTimeInSeconds = (0, Mapper_1.map)(obj.appearanceTimeInSeconds);
18
+ this.centerX = (0, Mapper_1.map)(obj.centerX);
19
+ this.centerY = (0, Mapper_1.map)(obj.centerY);
20
+ }
21
+ return MainSubject;
22
+ }());
23
+ exports.MainSubject = MainSubject;
24
+ exports.default = MainSubject;
@@ -1,6 +1,7 @@
1
1
  import Content from './Content';
2
2
  import IABTaxonomy from './IABTaxonomy';
3
3
  import SceneType from './SceneType';
4
+ import Shot from './Shot';
4
5
  /**
5
6
  * @export
6
7
  * @class Scene
@@ -62,6 +63,12 @@ export declare class Scene {
62
63
  * @memberof Scene
63
64
  */
64
65
  type?: SceneType;
66
+ /**
67
+ * A detailed breakdown of individual camera shots within this scene, providing granular analysis of visual content and subjects
68
+ * @type {Shot[]}
69
+ * @memberof Scene
70
+ */
71
+ shots?: Shot[];
65
72
  constructor(obj?: Partial<Scene>);
66
73
  }
67
74
  export default Scene;
@@ -4,6 +4,7 @@ exports.Scene = void 0;
4
4
  var Mapper_1 = require("../common/Mapper");
5
5
  var Content_1 = require("./Content");
6
6
  var IABTaxonomy_1 = require("./IABTaxonomy");
7
+ var Shot_1 = require("./Shot");
7
8
  /**
8
9
  * @export
9
10
  * @class Scene
@@ -24,6 +25,7 @@ var Scene = /** @class */ (function () {
24
25
  this.keywords = (0, Mapper_1.mapArray)(obj.keywords);
25
26
  this.iab = (0, Mapper_1.map)(obj.iab, IABTaxonomy_1.default);
26
27
  this.type = (0, Mapper_1.map)(obj.type);
28
+ this.shots = (0, Mapper_1.mapArray)(obj.shots, Shot_1.default);
27
29
  }
28
30
  return Scene;
29
31
  }());
@@ -0,0 +1,40 @@
1
+ import MainSubject from './MainSubject';
2
+ /**
3
+ * Represents a continuous camera shot within a scene, containing detailed visual analysis including subjects, timing, and descriptive metadata
4
+ * @export
5
+ * @class Shot
6
+ */
7
+ export declare class Shot {
8
+ /**
9
+ * The start time of the shot in seconds from the beginning of the video (required)
10
+ * @type {number}
11
+ * @memberof Shot
12
+ */
13
+ startInSeconds?: number;
14
+ /**
15
+ * The end time of the shot in seconds from the beginning of the video (required)
16
+ * @type {number}
17
+ * @memberof Shot
18
+ */
19
+ endInSeconds?: number;
20
+ /**
21
+ * A comprehensive textual description of the visual content, action, and context within this shot
22
+ * @type {string}
23
+ * @memberof Shot
24
+ */
25
+ detailedDescription?: string;
26
+ /**
27
+ * A list of relevant keywords and tags that describe the content, themes, or notable elements in this shot
28
+ * @type {string[]}
29
+ * @memberof Shot
30
+ */
31
+ keywords?: string[];
32
+ /**
33
+ * A collection of the primary subjects or objects detected and tracked within this shot, including their positions and characteristics
34
+ * @type {MainSubject[]}
35
+ * @memberof Shot
36
+ */
37
+ mainSubjects?: MainSubject[];
38
+ constructor(obj?: Partial<Shot>);
39
+ }
40
+ export default Shot;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Shot = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ var MainSubject_1 = require("./MainSubject");
6
+ /**
7
+ * Represents a continuous camera shot within a scene, containing detailed visual analysis including subjects, timing, and descriptive metadata
8
+ * @export
9
+ * @class Shot
10
+ */
11
+ var Shot = /** @class */ (function () {
12
+ function Shot(obj) {
13
+ if (!obj) {
14
+ return;
15
+ }
16
+ this.startInSeconds = (0, Mapper_1.map)(obj.startInSeconds);
17
+ this.endInSeconds = (0, Mapper_1.map)(obj.endInSeconds);
18
+ this.detailedDescription = (0, Mapper_1.map)(obj.detailedDescription);
19
+ this.keywords = (0, Mapper_1.mapArray)(obj.keywords);
20
+ this.mainSubjects = (0, Mapper_1.mapArray)(obj.mainSubjects, MainSubject_1.default);
21
+ }
22
+ return Shot;
23
+ }());
24
+ exports.Shot = Shot;
25
+ exports.default = Shot;
@@ -1,6 +1,7 @@
1
1
  import BitmovinResponse from './BitmovinResponse';
2
2
  import Message from './Message';
3
3
  import Status from './Status';
4
+ import SubtaskMetadata from './SubtaskMetadata';
4
5
  /**
5
6
  * @export
6
7
  * @class Subtask
@@ -30,6 +31,12 @@ export declare class Subtask extends BitmovinResponse {
30
31
  * @memberof Subtask
31
32
  */
32
33
  messages?: Message[];
34
+ /**
35
+ * Task specific metadata
36
+ * @type {SubtaskMetadata[]}
37
+ * @memberof Subtask
38
+ */
39
+ metadata?: SubtaskMetadata[];
33
40
  /**
34
41
  * Timestamp when the subtask was created, returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
35
42
  * @type {Date}
@@ -19,6 +19,7 @@ exports.Subtask = void 0;
19
19
  var Mapper_1 = require("../common/Mapper");
20
20
  var BitmovinResponse_1 = require("./BitmovinResponse");
21
21
  var Message_1 = require("./Message");
22
+ var SubtaskMetadata_1 = require("./SubtaskMetadata");
22
23
  /**
23
24
  * @export
24
25
  * @class Subtask
@@ -34,6 +35,7 @@ var Subtask = /** @class */ (function (_super) {
34
35
  _this.progress = (0, Mapper_1.map)(obj.progress);
35
36
  _this.name = (0, Mapper_1.map)(obj.name);
36
37
  _this.messages = (0, Mapper_1.mapArray)(obj.messages, Message_1.default);
38
+ _this.metadata = (0, Mapper_1.mapArray)(obj.metadata, SubtaskMetadata_1.default);
37
39
  _this.createdAt = (0, Mapper_1.map)(obj.createdAt, Date);
38
40
  _this.updatedAt = (0, Mapper_1.map)(obj.updatedAt, Date);
39
41
  _this.startedAt = (0, Mapper_1.map)(obj.startedAt, Date);
@@ -0,0 +1,20 @@
1
+ import SubtaskMetadataData from './SubtaskMetadataData';
2
+ /**
3
+ * @export
4
+ * @class SubtaskMetadata
5
+ */
6
+ export declare class SubtaskMetadata {
7
+ /**
8
+ * The timestamp of the metadata record (required)
9
+ * @type {Date}
10
+ * @memberof SubtaskMetadata
11
+ */
12
+ date?: Date;
13
+ /**
14
+ * @type {SubtaskMetadataData}
15
+ * @memberof SubtaskMetadata
16
+ */
17
+ data?: SubtaskMetadataData;
18
+ constructor(obj?: Partial<SubtaskMetadata>);
19
+ }
20
+ export default SubtaskMetadata;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubtaskMetadata = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ var SubtaskMetadataData_1 = require("./SubtaskMetadataData");
6
+ /**
7
+ * @export
8
+ * @class SubtaskMetadata
9
+ */
10
+ var SubtaskMetadata = /** @class */ (function () {
11
+ function SubtaskMetadata(obj) {
12
+ if (!obj) {
13
+ return;
14
+ }
15
+ this.date = (0, Mapper_1.map)(obj.date, Date);
16
+ this.data = (0, Mapper_1.map)(obj.data, SubtaskMetadataData_1.default);
17
+ }
18
+ return SubtaskMetadata;
19
+ }());
20
+ exports.SubtaskMetadata = SubtaskMetadata;
21
+ exports.default = SubtaskMetadata;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @export
3
+ * @class SubtaskMetadataData
4
+ */
5
+ export declare class SubtaskMetadataData {
6
+ /**
7
+ * @type {number}
8
+ * @memberof SubtaskMetadataData
9
+ */
10
+ avgFramesEncodedPerSecond?: number;
11
+ /**
12
+ * @type {number}
13
+ * @memberof SubtaskMetadataData
14
+ */
15
+ bytesEncoded?: number;
16
+ /**
17
+ * @type {number}
18
+ * @memberof SubtaskMetadataData
19
+ */
20
+ framesAnalysed?: number;
21
+ /**
22
+ * @type {number}
23
+ * @memberof SubtaskMetadataData
24
+ */
25
+ framesEncoded?: number;
26
+ /**
27
+ * @type {number}
28
+ * @memberof SubtaskMetadataData
29
+ */
30
+ realtimeFactor?: number;
31
+ /**
32
+ * @type {number}
33
+ * @memberof SubtaskMetadataData
34
+ */
35
+ size?: number;
36
+ constructor(obj?: Partial<SubtaskMetadataData>);
37
+ }
38
+ export default SubtaskMetadataData;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubtaskMetadataData = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ /**
6
+ * @export
7
+ * @class SubtaskMetadataData
8
+ */
9
+ var SubtaskMetadataData = /** @class */ (function () {
10
+ function SubtaskMetadataData(obj) {
11
+ if (!obj) {
12
+ return;
13
+ }
14
+ this.avgFramesEncodedPerSecond = (0, Mapper_1.map)(obj.avgFramesEncodedPerSecond);
15
+ this.bytesEncoded = (0, Mapper_1.map)(obj.bytesEncoded);
16
+ this.framesAnalysed = (0, Mapper_1.map)(obj.framesAnalysed);
17
+ this.framesEncoded = (0, Mapper_1.map)(obj.framesEncoded);
18
+ this.realtimeFactor = (0, Mapper_1.map)(obj.realtimeFactor);
19
+ this.size = (0, Mapper_1.map)(obj.size);
20
+ }
21
+ return SubtaskMetadataData;
22
+ }());
23
+ exports.SubtaskMetadataData = SubtaskMetadataData;
24
+ exports.default = SubtaskMetadataData;
@@ -520,6 +520,7 @@ export * from './LiveStandbyPoolUpdate';
520
520
  export * from './LocalInput';
521
521
  export * from './LocalOutput';
522
522
  export * from './Location';
523
+ export * from './MainSubject';
523
524
  export * from './Manifest';
524
525
  export * from './ManifestGenerator';
525
526
  export * from './ManifestResource';
@@ -682,6 +683,7 @@ export * from './SegmentsMediaInfo';
682
683
  export * from './Setting';
683
684
  export * from './SftpInput';
684
685
  export * from './SftpOutput';
686
+ export * from './Shot';
685
687
  export * from './SidecarErrorMode';
686
688
  export * from './SidecarFile';
687
689
  export * from './SidecarFileType';
@@ -771,6 +773,8 @@ export * from './StreamsVideoResponse';
771
773
  export * from './StreamsVideoStatus';
772
774
  export * from './StreamsVideoUpdateRequest';
773
775
  export * from './Subtask';
776
+ export * from './SubtaskMetadata';
777
+ export * from './SubtaskMetadataData';
774
778
  export * from './SubtitleAdaptationSet';
775
779
  export * from './SubtitleConfiguration';
776
780
  export * from './SubtitleStream';
@@ -536,6 +536,7 @@ __exportStar(require("./LiveStandbyPoolUpdate"), exports);
536
536
  __exportStar(require("./LocalInput"), exports);
537
537
  __exportStar(require("./LocalOutput"), exports);
538
538
  __exportStar(require("./Location"), exports);
539
+ __exportStar(require("./MainSubject"), exports);
539
540
  __exportStar(require("./Manifest"), exports);
540
541
  __exportStar(require("./ManifestGenerator"), exports);
541
542
  __exportStar(require("./ManifestResource"), exports);
@@ -698,6 +699,7 @@ __exportStar(require("./SegmentsMediaInfo"), exports);
698
699
  __exportStar(require("./Setting"), exports);
699
700
  __exportStar(require("./SftpInput"), exports);
700
701
  __exportStar(require("./SftpOutput"), exports);
702
+ __exportStar(require("./Shot"), exports);
701
703
  __exportStar(require("./SidecarErrorMode"), exports);
702
704
  __exportStar(require("./SidecarFile"), exports);
703
705
  __exportStar(require("./SidecarFileType"), exports);
@@ -787,6 +789,8 @@ __exportStar(require("./StreamsVideoResponse"), exports);
787
789
  __exportStar(require("./StreamsVideoStatus"), exports);
788
790
  __exportStar(require("./StreamsVideoUpdateRequest"), exports);
789
791
  __exportStar(require("./Subtask"), exports);
792
+ __exportStar(require("./SubtaskMetadata"), exports);
793
+ __exportStar(require("./SubtaskMetadataData"), exports);
790
794
  __exportStar(require("./SubtitleAdaptationSet"), exports);
791
795
  __exportStar(require("./SubtitleConfiguration"), exports);
792
796
  __exportStar(require("./SubtitleStream"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmovin/api-sdk",
3
- "version": "1.246.0",
3
+ "version": "1.248.0",
4
4
  "description": "Bitmovin JS/TS API SDK",
5
5
  "author": "Bitmovin Inc",
6
6
  "keywords": [