@bitmovin/api-sdk 1.280.0 → 1.281.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.
- package/README.md +1 -1
- package/dist/aiSceneAnalysis/AiSceneAnalysisApi.d.ts +2 -0
- package/dist/aiSceneAnalysis/AiSceneAnalysisApi.js +2 -0
- package/dist/aiSceneAnalysis/liveAnalyses/AiSceneAnalysisLiveResponseListQueryParams.d.ts +28 -0
- package/dist/aiSceneAnalysis/liveAnalyses/AiSceneAnalysisLiveResponseListQueryParams.js +28 -0
- package/dist/aiSceneAnalysis/liveAnalyses/LiveAnalysesApi.d.ts +60 -0
- package/dist/aiSceneAnalysis/liveAnalyses/LiveAnalysesApi.js +107 -0
- package/dist/aiSceneAnalysis/liveAnalyses/results/ResultsApi.d.ts +13 -0
- package/dist/aiSceneAnalysis/liveAnalyses/results/ResultsApi.js +17 -0
- package/dist/aiSceneAnalysis/liveAnalyses/results/latest/LatestApi.d.ts +19 -0
- package/dist/aiSceneAnalysis/liveAnalyses/results/latest/LatestApi.js +31 -0
- package/dist/bitmovin-api-sdk.browser.js +639 -1
- package/dist/bitmovin-api-sdk.browser.min.js +1 -1
- package/dist/common/RestClient.js +1 -1
- package/dist/models/AiSceneAnalysisLiveCreateRequest.d.ts +42 -0
- package/dist/models/AiSceneAnalysisLiveCreateRequest.js +25 -0
- package/dist/models/AiSceneAnalysisLiveError.d.ts +26 -0
- package/dist/models/AiSceneAnalysisLiveError.js +20 -0
- package/dist/models/AiSceneAnalysisLiveObservation.d.ts +33 -0
- package/dist/models/AiSceneAnalysisLiveObservation.js +22 -0
- package/dist/models/AiSceneAnalysisLiveOutput.d.ts +34 -0
- package/dist/models/AiSceneAnalysisLiveOutput.js +23 -0
- package/dist/models/AiSceneAnalysisLiveRecording.d.ts +16 -0
- package/dist/models/AiSceneAnalysisLiveRecording.js +20 -0
- package/dist/models/AiSceneAnalysisLiveRecordingRequest.d.ts +15 -0
- package/dist/models/AiSceneAnalysisLiveRecordingRequest.js +19 -0
- package/dist/models/AiSceneAnalysisLiveResponse.d.ts +67 -0
- package/dist/models/AiSceneAnalysisLiveResponse.js +30 -0
- package/dist/models/AiSceneAnalysisLiveResult.d.ts +72 -0
- package/dist/models/AiSceneAnalysisLiveResult.js +31 -0
- package/dist/models/AiSceneAnalysisLiveResultMetadata.d.ts +20 -0
- package/dist/models/AiSceneAnalysisLiveResultMetadata.js +19 -0
- package/dist/models/AiSceneAnalysisLiveSourceGap.d.ts +27 -0
- package/dist/models/AiSceneAnalysisLiveSourceGap.js +20 -0
- package/dist/models/AiSceneAnalysisLiveSourceGapReason.d.ts +12 -0
- package/dist/models/AiSceneAnalysisLiveSourceGapReason.js +16 -0
- package/dist/models/AiSceneAnalysisLiveStatus.d.ts +14 -0
- package/dist/models/AiSceneAnalysisLiveStatus.js +18 -0
- package/dist/models/H265V2PresetConfiguration.d.ts +2 -0
- package/dist/models/H265V2PresetConfiguration.js +2 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/package.json +1 -1
|
@@ -165,7 +165,7 @@ class HeaderHandler extends DelegatingHandler {
|
|
|
165
165
|
const headers = {
|
|
166
166
|
'X-Api-Key': apiKey,
|
|
167
167
|
'X-Api-Client': 'bitmovin-api-sdk-javascript',
|
|
168
|
-
'X-Api-Client-Version': '1.
|
|
168
|
+
'X-Api-Client-Version': '1.281.0',
|
|
169
169
|
'Content-Type': 'application/json'
|
|
170
170
|
};
|
|
171
171
|
if (tenantOrgId) {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import AiSceneAnalysisLiveOutput from './AiSceneAnalysisLiveOutput';
|
|
2
|
+
import AiSceneAnalysisLiveRecordingRequest from './AiSceneAnalysisLiveRecordingRequest';
|
|
3
|
+
import CloudRegion from './CloudRegion';
|
|
4
|
+
/**
|
|
5
|
+
* Configuration for a Live Analysis. Each recording and analysis destination references an existing Encoding Output or provides an inline Output definition. Inline Outputs are created synchronously. Within this request, identical complete inline Output definitions, including credentials, are created once and reused across all destinations; destination paths and ACLs do not affect that reuse.
|
|
6
|
+
* @export
|
|
7
|
+
* @class AiSceneAnalysisLiveCreateRequest
|
|
8
|
+
*/
|
|
9
|
+
export declare class AiSceneAnalysisLiveCreateRequest {
|
|
10
|
+
/**
|
|
11
|
+
* Name of the Analysis
|
|
12
|
+
* @type {string}
|
|
13
|
+
* @memberof AiSceneAnalysisLiveCreateRequest
|
|
14
|
+
*/
|
|
15
|
+
name?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Key used to publish the RTMP stream. When the Live Analysis is `RUNNING`, the Get Live Analysis details response returns the current value in `ingest.streamKey`. (required)
|
|
18
|
+
* @type {string}
|
|
19
|
+
* @memberof AiSceneAnalysisLiveCreateRequest
|
|
20
|
+
*/
|
|
21
|
+
streamKey?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Region in which the AI analysis runs. `EXTERNAL` is not supported yet.
|
|
24
|
+
* @type {CloudRegion}
|
|
25
|
+
* @memberof AiSceneAnalysisLiveCreateRequest
|
|
26
|
+
*/
|
|
27
|
+
cloudRegion?: CloudRegion;
|
|
28
|
+
/**
|
|
29
|
+
* Destinations for the stream recording (required)
|
|
30
|
+
* @type {AiSceneAnalysisLiveRecordingRequest}
|
|
31
|
+
* @memberof AiSceneAnalysisLiveCreateRequest
|
|
32
|
+
*/
|
|
33
|
+
recording?: AiSceneAnalysisLiveRecordingRequest;
|
|
34
|
+
/**
|
|
35
|
+
* Destinations for cumulative AI analysis results (required)
|
|
36
|
+
* @type {AiSceneAnalysisLiveOutput[]}
|
|
37
|
+
* @memberof AiSceneAnalysisLiveCreateRequest
|
|
38
|
+
*/
|
|
39
|
+
outputs?: AiSceneAnalysisLiveOutput[];
|
|
40
|
+
constructor(obj?: Partial<AiSceneAnalysisLiveCreateRequest>);
|
|
41
|
+
}
|
|
42
|
+
export default AiSceneAnalysisLiveCreateRequest;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiSceneAnalysisLiveCreateRequest = void 0;
|
|
4
|
+
const Mapper_1 = require("../common/Mapper");
|
|
5
|
+
const AiSceneAnalysisLiveOutput_1 = require("./AiSceneAnalysisLiveOutput");
|
|
6
|
+
const AiSceneAnalysisLiveRecordingRequest_1 = require("./AiSceneAnalysisLiveRecordingRequest");
|
|
7
|
+
/**
|
|
8
|
+
* Configuration for a Live Analysis. Each recording and analysis destination references an existing Encoding Output or provides an inline Output definition. Inline Outputs are created synchronously. Within this request, identical complete inline Output definitions, including credentials, are created once and reused across all destinations; destination paths and ACLs do not affect that reuse.
|
|
9
|
+
* @export
|
|
10
|
+
* @class AiSceneAnalysisLiveCreateRequest
|
|
11
|
+
*/
|
|
12
|
+
class AiSceneAnalysisLiveCreateRequest {
|
|
13
|
+
constructor(obj) {
|
|
14
|
+
if (!obj) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
this.name = (0, Mapper_1.map)(obj.name);
|
|
18
|
+
this.streamKey = (0, Mapper_1.map)(obj.streamKey);
|
|
19
|
+
this.cloudRegion = (0, Mapper_1.map)(obj.cloudRegion);
|
|
20
|
+
this.recording = (0, Mapper_1.map)(obj.recording, AiSceneAnalysisLiveRecordingRequest_1.default);
|
|
21
|
+
this.outputs = (0, Mapper_1.mapArray)(obj.outputs, AiSceneAnalysisLiveOutput_1.default);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.AiSceneAnalysisLiveCreateRequest = AiSceneAnalysisLiveCreateRequest;
|
|
25
|
+
exports.default = AiSceneAnalysisLiveCreateRequest;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @export
|
|
3
|
+
* @class AiSceneAnalysisLiveError
|
|
4
|
+
*/
|
|
5
|
+
export declare class AiSceneAnalysisLiveError {
|
|
6
|
+
/**
|
|
7
|
+
* Stable machine-readable failure code (required)
|
|
8
|
+
* @type {string}
|
|
9
|
+
* @memberof AiSceneAnalysisLiveError
|
|
10
|
+
*/
|
|
11
|
+
code?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Credential-free failure description safe to expose to the customer (required)
|
|
14
|
+
* @type {string}
|
|
15
|
+
* @memberof AiSceneAnalysisLiveError
|
|
16
|
+
*/
|
|
17
|
+
message?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Time at which the failure was recorded (required)
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof AiSceneAnalysisLiveError
|
|
22
|
+
*/
|
|
23
|
+
timestamp?: Date;
|
|
24
|
+
constructor(obj?: Partial<AiSceneAnalysisLiveError>);
|
|
25
|
+
}
|
|
26
|
+
export default AiSceneAnalysisLiveError;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiSceneAnalysisLiveError = void 0;
|
|
4
|
+
const Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @class AiSceneAnalysisLiveError
|
|
8
|
+
*/
|
|
9
|
+
class AiSceneAnalysisLiveError {
|
|
10
|
+
constructor(obj) {
|
|
11
|
+
if (!obj) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this.code = (0, Mapper_1.map)(obj.code);
|
|
15
|
+
this.message = (0, Mapper_1.map)(obj.message);
|
|
16
|
+
this.timestamp = (0, Mapper_1.map)(obj.timestamp, Date);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.AiSceneAnalysisLiveError = AiSceneAnalysisLiveError;
|
|
20
|
+
exports.default = AiSceneAnalysisLiveError;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Immutable consumer-visible observation produced from an analyzed media window
|
|
3
|
+
* @export
|
|
4
|
+
* @class AiSceneAnalysisLiveObservation
|
|
5
|
+
*/
|
|
6
|
+
export declare class AiSceneAnalysisLiveObservation {
|
|
7
|
+
/**
|
|
8
|
+
* Stable opaque observation ID that remains unchanged across cumulative result generations (required)
|
|
9
|
+
* @type {string}
|
|
10
|
+
* @memberof AiSceneAnalysisLiveObservation
|
|
11
|
+
*/
|
|
12
|
+
id?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Consumer-visible description of a development in the analyzed media (required)
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof AiSceneAnalysisLiveObservation
|
|
17
|
+
*/
|
|
18
|
+
text?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Start of the analyzed media window that produced the observation (required)
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof AiSceneAnalysisLiveObservation
|
|
23
|
+
*/
|
|
24
|
+
startTimeSeconds?: number;
|
|
25
|
+
/**
|
|
26
|
+
* End of the analyzed media window that produced the observation (required)
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof AiSceneAnalysisLiveObservation
|
|
29
|
+
*/
|
|
30
|
+
endTimeSeconds?: number;
|
|
31
|
+
constructor(obj?: Partial<AiSceneAnalysisLiveObservation>);
|
|
32
|
+
}
|
|
33
|
+
export default AiSceneAnalysisLiveObservation;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiSceneAnalysisLiveObservation = void 0;
|
|
4
|
+
const Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* Immutable consumer-visible observation produced from an analyzed media window
|
|
7
|
+
* @export
|
|
8
|
+
* @class AiSceneAnalysisLiveObservation
|
|
9
|
+
*/
|
|
10
|
+
class AiSceneAnalysisLiveObservation {
|
|
11
|
+
constructor(obj) {
|
|
12
|
+
if (!obj) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
this.id = (0, Mapper_1.map)(obj.id);
|
|
16
|
+
this.text = (0, Mapper_1.map)(obj.text);
|
|
17
|
+
this.startTimeSeconds = (0, Mapper_1.map)(obj.startTimeSeconds);
|
|
18
|
+
this.endTimeSeconds = (0, Mapper_1.map)(obj.endTimeSeconds);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.AiSceneAnalysisLiveObservation = AiSceneAnalysisLiveObservation;
|
|
22
|
+
exports.default = AiSceneAnalysisLiveObservation;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import AclEntry from './AclEntry';
|
|
2
|
+
import Output from './Output';
|
|
3
|
+
/**
|
|
4
|
+
* @export
|
|
5
|
+
* @class AiSceneAnalysisLiveOutput
|
|
6
|
+
*/
|
|
7
|
+
export declare class AiSceneAnalysisLiveOutput {
|
|
8
|
+
/**
|
|
9
|
+
* ID of an existing Encoding Output owned by the organization. Set either this property or `output`, but not both.
|
|
10
|
+
* @type {string}
|
|
11
|
+
* @memberof AiSceneAnalysisLiveOutput
|
|
12
|
+
*/
|
|
13
|
+
outputId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Inline definition of a concrete, publicly creatable Encoding Output to create synchronously. Only properties defined by the selected concrete Output type are accepted; internal types and properties are not supported. Deprecated properties that remain supported by the Encoding Output creation API are accepted. Set either this property or `outputId`, but not both. Put ACL entries on the destination-level `acl` property, not in this resource definition. The created Output is an ordinary reusable Encoding resource and is not automatically deleted with the Live Analysis or after provisioning failure.
|
|
16
|
+
* @type {Output}
|
|
17
|
+
* @memberof AiSceneAnalysisLiveOutput
|
|
18
|
+
*/
|
|
19
|
+
output?: Output;
|
|
20
|
+
/**
|
|
21
|
+
* Subdirectory where files are written. This destination setting is not part of the inline Output resource definition. (required)
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AiSceneAnalysisLiveOutput
|
|
24
|
+
*/
|
|
25
|
+
outputPath?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Determines accessibility of files written to this destination. Only applies to Output types that support ACLs. Defaults to PUBLIC_READ if the list is empty.
|
|
28
|
+
* @type {AclEntry[]}
|
|
29
|
+
* @memberof AiSceneAnalysisLiveOutput
|
|
30
|
+
*/
|
|
31
|
+
acl?: AclEntry[];
|
|
32
|
+
constructor(obj?: Partial<AiSceneAnalysisLiveOutput>);
|
|
33
|
+
}
|
|
34
|
+
export default AiSceneAnalysisLiveOutput;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiSceneAnalysisLiveOutput = void 0;
|
|
4
|
+
const Mapper_1 = require("../common/Mapper");
|
|
5
|
+
const AclEntry_1 = require("./AclEntry");
|
|
6
|
+
const Output_1 = require("./Output");
|
|
7
|
+
/**
|
|
8
|
+
* @export
|
|
9
|
+
* @class AiSceneAnalysisLiveOutput
|
|
10
|
+
*/
|
|
11
|
+
class AiSceneAnalysisLiveOutput {
|
|
12
|
+
constructor(obj) {
|
|
13
|
+
if (!obj) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
this.outputId = (0, Mapper_1.map)(obj.outputId);
|
|
17
|
+
this.output = (0, Mapper_1.map)(obj.output, Output_1.default);
|
|
18
|
+
this.outputPath = (0, Mapper_1.map)(obj.outputPath);
|
|
19
|
+
this.acl = (0, Mapper_1.mapArray)(obj.acl, AclEntry_1.default);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.AiSceneAnalysisLiveOutput = AiSceneAnalysisLiveOutput;
|
|
23
|
+
exports.default = AiSceneAnalysisLiveOutput;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import EncodingOutput from './EncodingOutput';
|
|
2
|
+
/**
|
|
3
|
+
* Resolved output configuration for the stream recording
|
|
4
|
+
* @export
|
|
5
|
+
* @class AiSceneAnalysisLiveRecording
|
|
6
|
+
*/
|
|
7
|
+
export declare class AiSceneAnalysisLiveRecording {
|
|
8
|
+
/**
|
|
9
|
+
* Resolved Encoding Output ID references for the stream recording (required)
|
|
10
|
+
* @type {EncodingOutput[]}
|
|
11
|
+
* @memberof AiSceneAnalysisLiveRecording
|
|
12
|
+
*/
|
|
13
|
+
outputs?: EncodingOutput[];
|
|
14
|
+
constructor(obj?: Partial<AiSceneAnalysisLiveRecording>);
|
|
15
|
+
}
|
|
16
|
+
export default AiSceneAnalysisLiveRecording;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiSceneAnalysisLiveRecording = void 0;
|
|
4
|
+
const Mapper_1 = require("../common/Mapper");
|
|
5
|
+
const EncodingOutput_1 = require("./EncodingOutput");
|
|
6
|
+
/**
|
|
7
|
+
* Resolved output configuration for the stream recording
|
|
8
|
+
* @export
|
|
9
|
+
* @class AiSceneAnalysisLiveRecording
|
|
10
|
+
*/
|
|
11
|
+
class AiSceneAnalysisLiveRecording {
|
|
12
|
+
constructor(obj) {
|
|
13
|
+
if (!obj) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
this.outputs = (0, Mapper_1.mapArray)(obj.outputs, EncodingOutput_1.default);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.AiSceneAnalysisLiveRecording = AiSceneAnalysisLiveRecording;
|
|
20
|
+
exports.default = AiSceneAnalysisLiveRecording;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import AiSceneAnalysisLiveOutput from './AiSceneAnalysisLiveOutput';
|
|
2
|
+
/**
|
|
3
|
+
* @export
|
|
4
|
+
* @class AiSceneAnalysisLiveRecordingRequest
|
|
5
|
+
*/
|
|
6
|
+
export declare class AiSceneAnalysisLiveRecordingRequest {
|
|
7
|
+
/**
|
|
8
|
+
* Destinations for the stream recording (required)
|
|
9
|
+
* @type {AiSceneAnalysisLiveOutput[]}
|
|
10
|
+
* @memberof AiSceneAnalysisLiveRecordingRequest
|
|
11
|
+
*/
|
|
12
|
+
outputs?: AiSceneAnalysisLiveOutput[];
|
|
13
|
+
constructor(obj?: Partial<AiSceneAnalysisLiveRecordingRequest>);
|
|
14
|
+
}
|
|
15
|
+
export default AiSceneAnalysisLiveRecordingRequest;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiSceneAnalysisLiveRecordingRequest = void 0;
|
|
4
|
+
const Mapper_1 = require("../common/Mapper");
|
|
5
|
+
const AiSceneAnalysisLiveOutput_1 = require("./AiSceneAnalysisLiveOutput");
|
|
6
|
+
/**
|
|
7
|
+
* @export
|
|
8
|
+
* @class AiSceneAnalysisLiveRecordingRequest
|
|
9
|
+
*/
|
|
10
|
+
class AiSceneAnalysisLiveRecordingRequest {
|
|
11
|
+
constructor(obj) {
|
|
12
|
+
if (!obj) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
this.outputs = (0, Mapper_1.mapArray)(obj.outputs, AiSceneAnalysisLiveOutput_1.default);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.AiSceneAnalysisLiveRecordingRequest = AiSceneAnalysisLiveRecordingRequest;
|
|
19
|
+
exports.default = AiSceneAnalysisLiveRecordingRequest;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import AiSceneAnalysisLiveError from './AiSceneAnalysisLiveError';
|
|
2
|
+
import AiSceneAnalysisLiveRecording from './AiSceneAnalysisLiveRecording';
|
|
3
|
+
import AiSceneAnalysisLiveStatus from './AiSceneAnalysisLiveStatus';
|
|
4
|
+
import EncodingOutput from './EncodingOutput';
|
|
5
|
+
import LiveEncoding from './LiveEncoding';
|
|
6
|
+
/**
|
|
7
|
+
* @export
|
|
8
|
+
* @class AiSceneAnalysisLiveResponse
|
|
9
|
+
*/
|
|
10
|
+
export declare class AiSceneAnalysisLiveResponse {
|
|
11
|
+
/**
|
|
12
|
+
* ID of the Live Analysis resource (required)
|
|
13
|
+
* @type {string}
|
|
14
|
+
* @memberof AiSceneAnalysisLiveResponse
|
|
15
|
+
*/
|
|
16
|
+
analysisId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* ID of the Encoding associated with the Analysis (required)
|
|
19
|
+
* @type {string}
|
|
20
|
+
* @memberof AiSceneAnalysisLiveResponse
|
|
21
|
+
*/
|
|
22
|
+
encodingId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Name of the Analysis
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof AiSceneAnalysisLiveResponse
|
|
27
|
+
*/
|
|
28
|
+
name?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Current lifecycle state of the Live Analysis (required)
|
|
31
|
+
* @type {AiSceneAnalysisLiveStatus}
|
|
32
|
+
* @memberof AiSceneAnalysisLiveResponse
|
|
33
|
+
*/
|
|
34
|
+
status?: AiSceneAnalysisLiveStatus;
|
|
35
|
+
/**
|
|
36
|
+
* Resolved output configuration for the stream recording (required)
|
|
37
|
+
* @type {AiSceneAnalysisLiveRecording}
|
|
38
|
+
* @memberof AiSceneAnalysisLiveResponse
|
|
39
|
+
*/
|
|
40
|
+
recording?: AiSceneAnalysisLiveRecording;
|
|
41
|
+
/**
|
|
42
|
+
* Resolved Encoding Output ID references for cumulative AI analysis results (required)
|
|
43
|
+
* @type {EncodingOutput[]}
|
|
44
|
+
* @memberof AiSceneAnalysisLiveResponse
|
|
45
|
+
*/
|
|
46
|
+
outputs?: EncodingOutput[];
|
|
47
|
+
/**
|
|
48
|
+
* Current RTMP ingest details. Present only in the Get Live Analysis details response while the Live Analysis is `RUNNING`.
|
|
49
|
+
* @type {LiveEncoding}
|
|
50
|
+
* @memberof AiSceneAnalysisLiveResponse
|
|
51
|
+
*/
|
|
52
|
+
ingest?: LiveEncoding;
|
|
53
|
+
/**
|
|
54
|
+
* Failure details. Present only when the status is `ERROR` or `TRANSFER_ERROR`.
|
|
55
|
+
* @type {AiSceneAnalysisLiveError}
|
|
56
|
+
* @memberof AiSceneAnalysisLiveResponse
|
|
57
|
+
*/
|
|
58
|
+
error?: AiSceneAnalysisLiveError;
|
|
59
|
+
/**
|
|
60
|
+
* Creation timestamp, returned as UTC in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ (required)
|
|
61
|
+
* @type {Date}
|
|
62
|
+
* @memberof AiSceneAnalysisLiveResponse
|
|
63
|
+
*/
|
|
64
|
+
createdAt?: Date;
|
|
65
|
+
constructor(obj?: Partial<AiSceneAnalysisLiveResponse>);
|
|
66
|
+
}
|
|
67
|
+
export default AiSceneAnalysisLiveResponse;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiSceneAnalysisLiveResponse = void 0;
|
|
4
|
+
const Mapper_1 = require("../common/Mapper");
|
|
5
|
+
const AiSceneAnalysisLiveError_1 = require("./AiSceneAnalysisLiveError");
|
|
6
|
+
const AiSceneAnalysisLiveRecording_1 = require("./AiSceneAnalysisLiveRecording");
|
|
7
|
+
const EncodingOutput_1 = require("./EncodingOutput");
|
|
8
|
+
const LiveEncoding_1 = require("./LiveEncoding");
|
|
9
|
+
/**
|
|
10
|
+
* @export
|
|
11
|
+
* @class AiSceneAnalysisLiveResponse
|
|
12
|
+
*/
|
|
13
|
+
class AiSceneAnalysisLiveResponse {
|
|
14
|
+
constructor(obj) {
|
|
15
|
+
if (!obj) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
this.analysisId = (0, Mapper_1.map)(obj.analysisId);
|
|
19
|
+
this.encodingId = (0, Mapper_1.map)(obj.encodingId);
|
|
20
|
+
this.name = (0, Mapper_1.map)(obj.name);
|
|
21
|
+
this.status = (0, Mapper_1.map)(obj.status);
|
|
22
|
+
this.recording = (0, Mapper_1.map)(obj.recording, AiSceneAnalysisLiveRecording_1.default);
|
|
23
|
+
this.outputs = (0, Mapper_1.mapArray)(obj.outputs, EncodingOutput_1.default);
|
|
24
|
+
this.ingest = (0, Mapper_1.map)(obj.ingest, LiveEncoding_1.default);
|
|
25
|
+
this.error = (0, Mapper_1.map)(obj.error, AiSceneAnalysisLiveError_1.default);
|
|
26
|
+
this.createdAt = (0, Mapper_1.map)(obj.createdAt, Date);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.AiSceneAnalysisLiveResponse = AiSceneAnalysisLiveResponse;
|
|
30
|
+
exports.default = AiSceneAnalysisLiveResponse;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import AiSceneAnalysisLiveObservation from './AiSceneAnalysisLiveObservation';
|
|
2
|
+
import AiSceneAnalysisLiveResultMetadata from './AiSceneAnalysisLiveResultMetadata';
|
|
3
|
+
import AiSceneAnalysisLiveSourceGap from './AiSceneAnalysisLiveSourceGap';
|
|
4
|
+
/**
|
|
5
|
+
* Cumulative immutable result generation for a Live Analysis
|
|
6
|
+
* @export
|
|
7
|
+
* @class AiSceneAnalysisLiveResult
|
|
8
|
+
*/
|
|
9
|
+
export declare class AiSceneAnalysisLiveResult {
|
|
10
|
+
/**
|
|
11
|
+
* ID of the Live Analysis resource (required)
|
|
12
|
+
* @type {string}
|
|
13
|
+
* @memberof AiSceneAnalysisLiveResult
|
|
14
|
+
*/
|
|
15
|
+
analysisId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* ID of the Encoding associated with the Analysis (required)
|
|
18
|
+
* @type {string}
|
|
19
|
+
* @memberof AiSceneAnalysisLiveResult
|
|
20
|
+
*/
|
|
21
|
+
encodingId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Monotonically increasing generation sequence, starting at 1 (required)
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AiSceneAnalysisLiveResult
|
|
26
|
+
*/
|
|
27
|
+
sequence?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Time at which the AI analysis produced this result generation (required)
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof AiSceneAnalysisLiveResult
|
|
32
|
+
*/
|
|
33
|
+
producedAt?: Date;
|
|
34
|
+
/**
|
|
35
|
+
* Whether AI analysis produced this as the final result generation. This does not by itself imply that the Analysis completed successfully. (required)
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof AiSceneAnalysisLiveResult
|
|
38
|
+
*/
|
|
39
|
+
isFinal?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Start of cumulative analyzed coverage on the monotonic analysis timeline (required)
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof AiSceneAnalysisLiveResult
|
|
44
|
+
*/
|
|
45
|
+
analyzedStartTimeSeconds?: number;
|
|
46
|
+
/**
|
|
47
|
+
* End of cumulative analyzed coverage on the monotonic analysis timeline (required)
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof AiSceneAnalysisLiveResult
|
|
50
|
+
*/
|
|
51
|
+
analyzedEndTimeSeconds?: number;
|
|
52
|
+
/**
|
|
53
|
+
* Cumulative closed source gaps on the monotonic analysis timeline (required)
|
|
54
|
+
* @type {AiSceneAnalysisLiveSourceGap[]}
|
|
55
|
+
* @memberof AiSceneAnalysisLiveResult
|
|
56
|
+
*/
|
|
57
|
+
sourceGaps?: AiSceneAnalysisLiveSourceGap[];
|
|
58
|
+
/**
|
|
59
|
+
* Producer metadata for this generation (required)
|
|
60
|
+
* @type {AiSceneAnalysisLiveResultMetadata}
|
|
61
|
+
* @memberof AiSceneAnalysisLiveResult
|
|
62
|
+
*/
|
|
63
|
+
metadata?: AiSceneAnalysisLiveResultMetadata;
|
|
64
|
+
/**
|
|
65
|
+
* Cumulative immutable observations. Existing observations retain the same ID and content across later generations. Each time range identifies the analyzed media window that produced the observation, not an exact event location. (required)
|
|
66
|
+
* @type {AiSceneAnalysisLiveObservation[]}
|
|
67
|
+
* @memberof AiSceneAnalysisLiveResult
|
|
68
|
+
*/
|
|
69
|
+
observations?: AiSceneAnalysisLiveObservation[];
|
|
70
|
+
constructor(obj?: Partial<AiSceneAnalysisLiveResult>);
|
|
71
|
+
}
|
|
72
|
+
export default AiSceneAnalysisLiveResult;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiSceneAnalysisLiveResult = void 0;
|
|
4
|
+
const Mapper_1 = require("../common/Mapper");
|
|
5
|
+
const AiSceneAnalysisLiveObservation_1 = require("./AiSceneAnalysisLiveObservation");
|
|
6
|
+
const AiSceneAnalysisLiveResultMetadata_1 = require("./AiSceneAnalysisLiveResultMetadata");
|
|
7
|
+
const AiSceneAnalysisLiveSourceGap_1 = require("./AiSceneAnalysisLiveSourceGap");
|
|
8
|
+
/**
|
|
9
|
+
* Cumulative immutable result generation for a Live Analysis
|
|
10
|
+
* @export
|
|
11
|
+
* @class AiSceneAnalysisLiveResult
|
|
12
|
+
*/
|
|
13
|
+
class AiSceneAnalysisLiveResult {
|
|
14
|
+
constructor(obj) {
|
|
15
|
+
if (!obj) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
this.analysisId = (0, Mapper_1.map)(obj.analysisId);
|
|
19
|
+
this.encodingId = (0, Mapper_1.map)(obj.encodingId);
|
|
20
|
+
this.sequence = (0, Mapper_1.map)(obj.sequence);
|
|
21
|
+
this.producedAt = (0, Mapper_1.map)(obj.producedAt, Date);
|
|
22
|
+
this.isFinal = (0, Mapper_1.map)(obj.isFinal);
|
|
23
|
+
this.analyzedStartTimeSeconds = (0, Mapper_1.map)(obj.analyzedStartTimeSeconds);
|
|
24
|
+
this.analyzedEndTimeSeconds = (0, Mapper_1.map)(obj.analyzedEndTimeSeconds);
|
|
25
|
+
this.sourceGaps = (0, Mapper_1.mapArray)(obj.sourceGaps, AiSceneAnalysisLiveSourceGap_1.default);
|
|
26
|
+
this.metadata = (0, Mapper_1.map)(obj.metadata, AiSceneAnalysisLiveResultMetadata_1.default);
|
|
27
|
+
this.observations = (0, Mapper_1.mapArray)(obj.observations, AiSceneAnalysisLiveObservation_1.default);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.AiSceneAnalysisLiveResult = AiSceneAnalysisLiveResult;
|
|
31
|
+
exports.default = AiSceneAnalysisLiveResult;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @export
|
|
3
|
+
* @class AiSceneAnalysisLiveResultMetadata
|
|
4
|
+
*/
|
|
5
|
+
export declare class AiSceneAnalysisLiveResultMetadata {
|
|
6
|
+
/**
|
|
7
|
+
* Version of the AI analysis software (required)
|
|
8
|
+
* @type {string}
|
|
9
|
+
* @memberof AiSceneAnalysisLiveResultMetadata
|
|
10
|
+
*/
|
|
11
|
+
version?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Disclaimer associated with AI-generated analysis data (required)
|
|
14
|
+
* @type {string}
|
|
15
|
+
* @memberof AiSceneAnalysisLiveResultMetadata
|
|
16
|
+
*/
|
|
17
|
+
disclaimer?: string;
|
|
18
|
+
constructor(obj?: Partial<AiSceneAnalysisLiveResultMetadata>);
|
|
19
|
+
}
|
|
20
|
+
export default AiSceneAnalysisLiveResultMetadata;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiSceneAnalysisLiveResultMetadata = void 0;
|
|
4
|
+
const Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @class AiSceneAnalysisLiveResultMetadata
|
|
8
|
+
*/
|
|
9
|
+
class AiSceneAnalysisLiveResultMetadata {
|
|
10
|
+
constructor(obj) {
|
|
11
|
+
if (!obj) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this.version = (0, Mapper_1.map)(obj.version);
|
|
15
|
+
this.disclaimer = (0, Mapper_1.map)(obj.disclaimer);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.AiSceneAnalysisLiveResultMetadata = AiSceneAnalysisLiveResultMetadata;
|
|
19
|
+
exports.default = AiSceneAnalysisLiveResultMetadata;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import AiSceneAnalysisLiveSourceGapReason from './AiSceneAnalysisLiveSourceGapReason';
|
|
2
|
+
/**
|
|
3
|
+
* @export
|
|
4
|
+
* @class AiSceneAnalysisLiveSourceGap
|
|
5
|
+
*/
|
|
6
|
+
export declare class AiSceneAnalysisLiveSourceGap {
|
|
7
|
+
/**
|
|
8
|
+
* Gap start on the monotonic analysis timeline (required)
|
|
9
|
+
* @type {number}
|
|
10
|
+
* @memberof AiSceneAnalysisLiveSourceGap
|
|
11
|
+
*/
|
|
12
|
+
startTimeSeconds?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Gap end on the monotonic analysis timeline (required)
|
|
15
|
+
* @type {number}
|
|
16
|
+
* @memberof AiSceneAnalysisLiveSourceGap
|
|
17
|
+
*/
|
|
18
|
+
endTimeSeconds?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Reason for the source gap (required)
|
|
21
|
+
* @type {AiSceneAnalysisLiveSourceGapReason}
|
|
22
|
+
* @memberof AiSceneAnalysisLiveSourceGap
|
|
23
|
+
*/
|
|
24
|
+
reason?: AiSceneAnalysisLiveSourceGapReason;
|
|
25
|
+
constructor(obj?: Partial<AiSceneAnalysisLiveSourceGap>);
|
|
26
|
+
}
|
|
27
|
+
export default AiSceneAnalysisLiveSourceGap;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiSceneAnalysisLiveSourceGap = void 0;
|
|
4
|
+
const Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @class AiSceneAnalysisLiveSourceGap
|
|
8
|
+
*/
|
|
9
|
+
class AiSceneAnalysisLiveSourceGap {
|
|
10
|
+
constructor(obj) {
|
|
11
|
+
if (!obj) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this.startTimeSeconds = (0, Mapper_1.map)(obj.startTimeSeconds);
|
|
15
|
+
this.endTimeSeconds = (0, Mapper_1.map)(obj.endTimeSeconds);
|
|
16
|
+
this.reason = (0, Mapper_1.map)(obj.reason);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.AiSceneAnalysisLiveSourceGap = AiSceneAnalysisLiveSourceGap;
|
|
20
|
+
exports.default = AiSceneAnalysisLiveSourceGap;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @export
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*/
|
|
5
|
+
export declare enum AiSceneAnalysisLiveSourceGapReason {
|
|
6
|
+
SOURCE_DISCONNECTED = "SOURCE_DISCONNECTED",
|
|
7
|
+
PROCESSING_MEDIA_PRESSURE = "PROCESSING_MEDIA_PRESSURE",
|
|
8
|
+
ANALYSIS_LAG = "ANALYSIS_LAG",
|
|
9
|
+
WINDOW_BUILD_FAILED = "WINDOW_BUILD_FAILED",
|
|
10
|
+
FINALIZATION_BACKLOG = "FINALIZATION_BACKLOG"
|
|
11
|
+
}
|
|
12
|
+
export default AiSceneAnalysisLiveSourceGapReason;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiSceneAnalysisLiveSourceGapReason = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @export
|
|
6
|
+
* @enum {string}
|
|
7
|
+
*/
|
|
8
|
+
var AiSceneAnalysisLiveSourceGapReason;
|
|
9
|
+
(function (AiSceneAnalysisLiveSourceGapReason) {
|
|
10
|
+
AiSceneAnalysisLiveSourceGapReason["SOURCE_DISCONNECTED"] = "SOURCE_DISCONNECTED";
|
|
11
|
+
AiSceneAnalysisLiveSourceGapReason["PROCESSING_MEDIA_PRESSURE"] = "PROCESSING_MEDIA_PRESSURE";
|
|
12
|
+
AiSceneAnalysisLiveSourceGapReason["ANALYSIS_LAG"] = "ANALYSIS_LAG";
|
|
13
|
+
AiSceneAnalysisLiveSourceGapReason["WINDOW_BUILD_FAILED"] = "WINDOW_BUILD_FAILED";
|
|
14
|
+
AiSceneAnalysisLiveSourceGapReason["FINALIZATION_BACKLOG"] = "FINALIZATION_BACKLOG";
|
|
15
|
+
})(AiSceneAnalysisLiveSourceGapReason || (exports.AiSceneAnalysisLiveSourceGapReason = AiSceneAnalysisLiveSourceGapReason = {}));
|
|
16
|
+
exports.default = AiSceneAnalysisLiveSourceGapReason;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @export
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*/
|
|
5
|
+
export declare enum AiSceneAnalysisLiveStatus {
|
|
6
|
+
CREATED = "CREATED",
|
|
7
|
+
QUEUED = "QUEUED",
|
|
8
|
+
RUNNING = "RUNNING",
|
|
9
|
+
FINISHED = "FINISHED",
|
|
10
|
+
CANCELED = "CANCELED",
|
|
11
|
+
ERROR = "ERROR",
|
|
12
|
+
TRANSFER_ERROR = "TRANSFER_ERROR"
|
|
13
|
+
}
|
|
14
|
+
export default AiSceneAnalysisLiveStatus;
|