@bitmovin/api-sdk 1.280.0 → 1.282.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 (59) hide show
  1. package/README.md +1 -1
  2. package/dist/aiSceneAnalysis/AiSceneAnalysisApi.d.ts +2 -0
  3. package/dist/aiSceneAnalysis/AiSceneAnalysisApi.js +2 -0
  4. package/dist/aiSceneAnalysis/liveAnalyses/AiSceneAnalysisLiveResponseListQueryParams.d.ts +28 -0
  5. package/dist/aiSceneAnalysis/liveAnalyses/AiSceneAnalysisLiveResponseListQueryParams.js +28 -0
  6. package/dist/aiSceneAnalysis/liveAnalyses/LiveAnalysesApi.d.ts +60 -0
  7. package/dist/aiSceneAnalysis/liveAnalyses/LiveAnalysesApi.js +107 -0
  8. package/dist/aiSceneAnalysis/liveAnalyses/results/ResultsApi.d.ts +13 -0
  9. package/dist/aiSceneAnalysis/liveAnalyses/results/ResultsApi.js +17 -0
  10. package/dist/aiSceneAnalysis/liveAnalyses/results/latest/LatestApi.d.ts +19 -0
  11. package/dist/aiSceneAnalysis/liveAnalyses/results/latest/LatestApi.js +31 -0
  12. package/dist/bitmovin-api-sdk.browser.js +818 -1
  13. package/dist/bitmovin-api-sdk.browser.min.js +1 -1
  14. package/dist/common/RestClient.js +1 -1
  15. package/dist/encoding/encodings/live/LiveApi.d.ts +2 -0
  16. package/dist/encoding/encodings/live/LiveApi.js +2 -0
  17. package/dist/encoding/encodings/live/updateAutoshutdownConfig/UpdateAutoshutdownConfigApi.d.ts +21 -0
  18. package/dist/encoding/encodings/live/updateAutoshutdownConfig/UpdateAutoshutdownConfigApi.js +32 -0
  19. package/dist/models/AiSceneAnalysisLiveCreateRequest.d.ts +42 -0
  20. package/dist/models/AiSceneAnalysisLiveCreateRequest.js +25 -0
  21. package/dist/models/AiSceneAnalysisLiveError.d.ts +26 -0
  22. package/dist/models/AiSceneAnalysisLiveError.js +20 -0
  23. package/dist/models/AiSceneAnalysisLiveObservation.d.ts +33 -0
  24. package/dist/models/AiSceneAnalysisLiveObservation.js +22 -0
  25. package/dist/models/AiSceneAnalysisLiveOutput.d.ts +34 -0
  26. package/dist/models/AiSceneAnalysisLiveOutput.js +23 -0
  27. package/dist/models/AiSceneAnalysisLiveRecording.d.ts +16 -0
  28. package/dist/models/AiSceneAnalysisLiveRecording.js +20 -0
  29. package/dist/models/AiSceneAnalysisLiveRecordingRequest.d.ts +15 -0
  30. package/dist/models/AiSceneAnalysisLiveRecordingRequest.js +19 -0
  31. package/dist/models/AiSceneAnalysisLiveResponse.d.ts +67 -0
  32. package/dist/models/AiSceneAnalysisLiveResponse.js +30 -0
  33. package/dist/models/AiSceneAnalysisLiveResult.d.ts +78 -0
  34. package/dist/models/AiSceneAnalysisLiveResult.js +32 -0
  35. package/dist/models/AiSceneAnalysisLiveResultMetadata.d.ts +20 -0
  36. package/dist/models/AiSceneAnalysisLiveResultMetadata.js +19 -0
  37. package/dist/models/AiSceneAnalysisLiveSourceGap.d.ts +27 -0
  38. package/dist/models/AiSceneAnalysisLiveSourceGap.js +20 -0
  39. package/dist/models/AiSceneAnalysisLiveSourceGapReason.d.ts +12 -0
  40. package/dist/models/AiSceneAnalysisLiveSourceGapReason.js +16 -0
  41. package/dist/models/AiSceneAnalysisLiveStatus.d.ts +14 -0
  42. package/dist/models/AiSceneAnalysisLiveStatus.js +18 -0
  43. package/dist/models/Av1DynamicRangeFormat.d.ts +12 -0
  44. package/dist/models/Av1DynamicRangeFormat.js +16 -0
  45. package/dist/models/Av1VideoConfiguration.d.ts +14 -0
  46. package/dist/models/Av1VideoConfiguration.js +2 -0
  47. package/dist/models/H265V2PresetConfiguration.d.ts +2 -0
  48. package/dist/models/H265V2PresetConfiguration.js +2 -0
  49. package/dist/models/LevelAv1.d.ts +22 -0
  50. package/dist/models/LevelAv1.js +26 -0
  51. package/dist/models/LiveAutoShutdownConfigurationUpdateRequest.d.ts +10 -0
  52. package/dist/models/LiveAutoShutdownConfigurationUpdateRequest.js +19 -0
  53. package/dist/models/LiveAutoShutdownConfigurationUpdateResponse.d.ts +16 -0
  54. package/dist/models/LiveAutoShutdownConfigurationUpdateResponse.js +21 -0
  55. package/dist/models/StreamMetadata.d.ts +8 -2
  56. package/dist/models/StreamMetadata.js +1 -0
  57. package/dist/models/index.d.ts +16 -0
  58. package/dist/models/index.js +16 -0
  59. 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.280.0',
168
+ 'X-Api-Client-Version': '1.282.0',
169
169
  'Content-Type': 'application/json'
170
170
  };
171
171
  if (tenantOrgId) {
@@ -2,6 +2,7 @@ import { BaseAPI } from '../../../common/BaseAPI';
2
2
  import Configuration from '../../../common/Configuration';
3
3
  import EsamApi from './esam/EsamApi';
4
4
  import ResetLiveManifestTimeshiftApi from './resetLiveManifestTimeshift/ResetLiveManifestTimeshiftApi';
5
+ import UpdateAutoshutdownConfigApi from './updateAutoshutdownConfig/UpdateAutoshutdownConfigApi';
5
6
  import HeartbeatApi from './heartbeat/HeartbeatApi';
6
7
  import HeartbeatFinalApi from './heartbeatFinal/HeartbeatFinalApi';
7
8
  import HdApi from './hd/HdApi';
@@ -19,6 +20,7 @@ import StartLiveEncodingRequest from '../../../models/StartLiveEncodingRequest';
19
20
  export default class LiveApi extends BaseAPI {
20
21
  esam: EsamApi;
21
22
  resetLiveManifestTimeshift: ResetLiveManifestTimeshiftApi;
23
+ updateAutoshutdownConfig: UpdateAutoshutdownConfigApi;
22
24
  heartbeat: HeartbeatApi;
23
25
  heartbeatFinal: HeartbeatFinalApi;
24
26
  hd: HdApi;
@@ -4,6 +4,7 @@ const BaseAPI_1 = require("../../../common/BaseAPI");
4
4
  const Mapper_1 = require("../../../common/Mapper");
5
5
  const EsamApi_1 = require("./esam/EsamApi");
6
6
  const ResetLiveManifestTimeshiftApi_1 = require("./resetLiveManifestTimeshift/ResetLiveManifestTimeshiftApi");
7
+ const UpdateAutoshutdownConfigApi_1 = require("./updateAutoshutdownConfig/UpdateAutoshutdownConfigApi");
7
8
  const HeartbeatApi_1 = require("./heartbeat/HeartbeatApi");
8
9
  const HeartbeatFinalApi_1 = require("./heartbeatFinal/HeartbeatFinalApi");
9
10
  const HdApi_1 = require("./hd/HdApi");
@@ -23,6 +24,7 @@ class LiveApi extends BaseAPI_1.BaseAPI {
23
24
  super(configuration);
24
25
  this.esam = new EsamApi_1.default(configuration);
25
26
  this.resetLiveManifestTimeshift = new ResetLiveManifestTimeshiftApi_1.default(configuration);
27
+ this.updateAutoshutdownConfig = new UpdateAutoshutdownConfigApi_1.default(configuration);
26
28
  this.heartbeat = new HeartbeatApi_1.default(configuration);
27
29
  this.heartbeatFinal = new HeartbeatFinalApi_1.default(configuration);
28
30
  this.hd = new HdApi_1.default(configuration);
@@ -0,0 +1,21 @@
1
+ import { BaseAPI } from '../../../../common/BaseAPI';
2
+ import Configuration from '../../../../common/Configuration';
3
+ import LiveAutoShutdownConfigurationUpdateRequest from '../../../../models/LiveAutoShutdownConfigurationUpdateRequest';
4
+ import LiveAutoShutdownConfigurationUpdateResponse from '../../../../models/LiveAutoShutdownConfigurationUpdateResponse';
5
+ /**
6
+ * UpdateAutoshutdownConfigApi - object-oriented interface
7
+ * @export
8
+ * @class UpdateAutoshutdownConfigApi
9
+ * @extends {BaseAPI}
10
+ */
11
+ export default class UpdateAutoshutdownConfigApi extends BaseAPI {
12
+ constructor(configuration: Configuration);
13
+ /**
14
+ * @summary Replace Live Auto Shutdown Configuration
15
+ * @param {string} encodingId Id of the encoding.
16
+ * @param {LiveAutoShutdownConfigurationUpdateRequest} liveAutoShutdownConfigurationUpdateRequest Applies a new auto shutdown configuration to a Live Encoding that is already running, without interrupting the stream. **The body is a full replacement, not a partial update.** Every field that is omitted or set to `null` disarms the corresponding timer, and an empty body `{}` disarms all timers. Always send the complete configuration you want the encoding to run with, including the values you want to keep. **`streamTimeoutMinutes` is counted from this call, not from the start of the encoding.** The encoding is stopped that many minutes after the update is accepted, whereas in the start request the same field is counted from when the encoding started. An encoding started at 12:00 with `streamTimeoutMinutes` of 120 is scheduled to stop at 14:00; updating it at 13:30 with `streamTimeoutMinutes` of 150 moves the shutdown to 16:00, not to 14:30. `bytesReadTimeoutSeconds` is relative by nature, as it always counts from the last byte received, and `waitingForFirstConnectTimeoutMinutes` has no effect once the input is connected. The organization's maximum live encoding runtime still bounds the total runtime of the encoding, measured from the start of the encoding. An update that would push the shutdown past that limit is rejected rather than extending the encoding beyond it. **Do not leave the call to the last few seconds.** The update is rejected with `409` when any armed shutdown timer is within 10 seconds of firing, because at that point the shutdown sequence is effectively already in flight.
17
+ * @throws {BitmovinError}
18
+ * @memberof UpdateAutoshutdownConfigApi
19
+ */
20
+ create(encodingId: string, liveAutoShutdownConfigurationUpdateRequest?: LiveAutoShutdownConfigurationUpdateRequest): Promise<LiveAutoShutdownConfigurationUpdateResponse>;
21
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const BaseAPI_1 = require("../../../../common/BaseAPI");
4
+ const Mapper_1 = require("../../../../common/Mapper");
5
+ const LiveAutoShutdownConfigurationUpdateResponse_1 = require("../../../../models/LiveAutoShutdownConfigurationUpdateResponse");
6
+ /**
7
+ * UpdateAutoshutdownConfigApi - object-oriented interface
8
+ * @export
9
+ * @class UpdateAutoshutdownConfigApi
10
+ * @extends {BaseAPI}
11
+ */
12
+ class UpdateAutoshutdownConfigApi extends BaseAPI_1.BaseAPI {
13
+ constructor(configuration) {
14
+ super(configuration);
15
+ }
16
+ /**
17
+ * @summary Replace Live Auto Shutdown Configuration
18
+ * @param {string} encodingId Id of the encoding.
19
+ * @param {LiveAutoShutdownConfigurationUpdateRequest} liveAutoShutdownConfigurationUpdateRequest Applies a new auto shutdown configuration to a Live Encoding that is already running, without interrupting the stream. **The body is a full replacement, not a partial update.** Every field that is omitted or set to &#x60;null&#x60; disarms the corresponding timer, and an empty body &#x60;{}&#x60; disarms all timers. Always send the complete configuration you want the encoding to run with, including the values you want to keep. **&#x60;streamTimeoutMinutes&#x60; is counted from this call, not from the start of the encoding.** The encoding is stopped that many minutes after the update is accepted, whereas in the start request the same field is counted from when the encoding started. An encoding started at 12:00 with &#x60;streamTimeoutMinutes&#x60; of 120 is scheduled to stop at 14:00; updating it at 13:30 with &#x60;streamTimeoutMinutes&#x60; of 150 moves the shutdown to 16:00, not to 14:30. &#x60;bytesReadTimeoutSeconds&#x60; is relative by nature, as it always counts from the last byte received, and &#x60;waitingForFirstConnectTimeoutMinutes&#x60; has no effect once the input is connected. The organization&#39;s maximum live encoding runtime still bounds the total runtime of the encoding, measured from the start of the encoding. An update that would push the shutdown past that limit is rejected rather than extending the encoding beyond it. **Do not leave the call to the last few seconds.** The update is rejected with &#x60;409&#x60; when any armed shutdown timer is within 10 seconds of firing, because at that point the shutdown sequence is effectively already in flight.
20
+ * @throws {BitmovinError}
21
+ * @memberof UpdateAutoshutdownConfigApi
22
+ */
23
+ create(encodingId, liveAutoShutdownConfigurationUpdateRequest) {
24
+ const pathParamMap = {
25
+ encoding_id: encodingId
26
+ };
27
+ return this.restClient.post('/encoding/encodings/{encoding_id}/live/update-autoshutdown-config', pathParamMap, liveAutoShutdownConfigurationUpdateRequest).then((response) => {
28
+ return (0, Mapper_1.map)(response, LiveAutoShutdownConfigurationUpdateResponse_1.default);
29
+ });
30
+ }
31
+ }
32
+ exports.default = UpdateAutoshutdownConfigApi;
@@ -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,78 @@
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
+ * UTC presentation-clock time in Unix milliseconds corresponding to media time zero. This origin is fixed for the Live Analysis; coverage, observation, and source-gap times remain relative to it. It is not the source capture time or result publication time. (required)
36
+ * @type {number}
37
+ * @memberof AiSceneAnalysisLiveResult
38
+ */
39
+ mediaTimeOriginUnixMs?: number;
40
+ /**
41
+ * Whether AI analysis produced this as the final result generation. This does not by itself imply that the Analysis completed successfully. (required)
42
+ * @type {boolean}
43
+ * @memberof AiSceneAnalysisLiveResult
44
+ */
45
+ isFinal?: boolean;
46
+ /**
47
+ * Start of cumulative analyzed coverage on the monotonic analysis timeline (required)
48
+ * @type {number}
49
+ * @memberof AiSceneAnalysisLiveResult
50
+ */
51
+ analyzedStartTimeSeconds?: number;
52
+ /**
53
+ * End of cumulative analyzed coverage on the monotonic analysis timeline (required)
54
+ * @type {number}
55
+ * @memberof AiSceneAnalysisLiveResult
56
+ */
57
+ analyzedEndTimeSeconds?: number;
58
+ /**
59
+ * Cumulative closed source gaps on the monotonic analysis timeline (required)
60
+ * @type {AiSceneAnalysisLiveSourceGap[]}
61
+ * @memberof AiSceneAnalysisLiveResult
62
+ */
63
+ sourceGaps?: AiSceneAnalysisLiveSourceGap[];
64
+ /**
65
+ * Producer metadata for this generation (required)
66
+ * @type {AiSceneAnalysisLiveResultMetadata}
67
+ * @memberof AiSceneAnalysisLiveResult
68
+ */
69
+ metadata?: AiSceneAnalysisLiveResultMetadata;
70
+ /**
71
+ * 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)
72
+ * @type {AiSceneAnalysisLiveObservation[]}
73
+ * @memberof AiSceneAnalysisLiveResult
74
+ */
75
+ observations?: AiSceneAnalysisLiveObservation[];
76
+ constructor(obj?: Partial<AiSceneAnalysisLiveResult>);
77
+ }
78
+ export default AiSceneAnalysisLiveResult;
@@ -0,0 +1,32 @@
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.mediaTimeOriginUnixMs = (0, Mapper_1.map)(obj.mediaTimeOriginUnixMs);
23
+ this.isFinal = (0, Mapper_1.map)(obj.isFinal);
24
+ this.analyzedStartTimeSeconds = (0, Mapper_1.map)(obj.analyzedStartTimeSeconds);
25
+ this.analyzedEndTimeSeconds = (0, Mapper_1.map)(obj.analyzedEndTimeSeconds);
26
+ this.sourceGaps = (0, Mapper_1.mapArray)(obj.sourceGaps, AiSceneAnalysisLiveSourceGap_1.default);
27
+ this.metadata = (0, Mapper_1.map)(obj.metadata, AiSceneAnalysisLiveResultMetadata_1.default);
28
+ this.observations = (0, Mapper_1.mapArray)(obj.observations, AiSceneAnalysisLiveObservation_1.default);
29
+ }
30
+ }
31
+ exports.AiSceneAnalysisLiveResult = AiSceneAnalysisLiveResult;
32
+ 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;