@liqhtworks/sophon-sdk 0.1.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/.github/workflows/publish.yml +56 -0
- package/.openapi-generator/FILES +73 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/LICENSE +12 -0
- package/README.md +164 -0
- package/dist/apis/DownloadsApi.d.ts +63 -0
- package/dist/apis/DownloadsApi.js +58 -0
- package/dist/apis/HealthApi.d.ts +92 -0
- package/dist/apis/HealthApi.js +85 -0
- package/dist/apis/JobsApi.d.ts +225 -0
- package/dist/apis/JobsApi.js +245 -0
- package/dist/apis/UploadsApi.d.ts +228 -0
- package/dist/apis/UploadsApi.js +255 -0
- package/dist/apis/WebhooksApi.d.ts +138 -0
- package/dist/apis/WebhooksApi.js +152 -0
- package/dist/apis/index.d.ts +5 -0
- package/dist/apis/index.js +23 -0
- package/dist/esm/apis/DownloadsApi.d.ts +63 -0
- package/dist/esm/apis/DownloadsApi.js +54 -0
- package/dist/esm/apis/HealthApi.d.ts +92 -0
- package/dist/esm/apis/HealthApi.js +81 -0
- package/dist/esm/apis/JobsApi.d.ts +225 -0
- package/dist/esm/apis/JobsApi.js +241 -0
- package/dist/esm/apis/UploadsApi.d.ts +228 -0
- package/dist/esm/apis/UploadsApi.js +251 -0
- package/dist/esm/apis/WebhooksApi.d.ts +138 -0
- package/dist/esm/apis/WebhooksApi.js +148 -0
- package/dist/esm/apis/index.d.ts +5 -0
- package/dist/esm/apis/index.js +7 -0
- package/dist/esm/helpers/index.d.ts +3 -0
- package/dist/esm/helpers/index.js +3 -0
- package/dist/esm/helpers/jobs.d.ts +48 -0
- package/dist/esm/helpers/jobs.js +61 -0
- package/dist/esm/helpers/uploads.d.ts +71 -0
- package/dist/esm/helpers/uploads.js +146 -0
- package/dist/esm/helpers/webhooks.d.ts +23 -0
- package/dist/esm/helpers/webhooks.js +84 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/models/CompleteUploadResponse.d.ts +57 -0
- package/dist/esm/models/CompleteUploadResponse.js +63 -0
- package/dist/esm/models/CreateJobOutputOptions.d.ts +55 -0
- package/dist/esm/models/CreateJobOutputOptions.js +46 -0
- package/dist/esm/models/CreateJobRequest.d.ts +61 -0
- package/dist/esm/models/CreateJobRequest.js +56 -0
- package/dist/esm/models/CreateUploadRequest.d.ts +44 -0
- package/dist/esm/models/CreateUploadRequest.js +51 -0
- package/dist/esm/models/CreateUploadResponse.d.ts +52 -0
- package/dist/esm/models/CreateUploadResponse.js +55 -0
- package/dist/esm/models/CreateWebhookRequest.d.ts +40 -0
- package/dist/esm/models/CreateWebhookRequest.js +45 -0
- package/dist/esm/models/ErrorBody.d.ts +72 -0
- package/dist/esm/models/ErrorBody.js +74 -0
- package/dist/esm/models/ErrorEnvelope.d.ts +33 -0
- package/dist/esm/models/ErrorEnvelope.js +44 -0
- package/dist/esm/models/JobOutputInfo.d.ts +95 -0
- package/dist/esm/models/JobOutputInfo.js +72 -0
- package/dist/esm/models/JobProfile.d.ts +49 -0
- package/dist/esm/models/JobProfile.js +69 -0
- package/dist/esm/models/JobProgress.d.ts +75 -0
- package/dist/esm/models/JobProgress.js +60 -0
- package/dist/esm/models/JobResponse.d.ts +134 -0
- package/dist/esm/models/JobResponse.js +94 -0
- package/dist/esm/models/JobSourceInfo.d.ts +62 -0
- package/dist/esm/models/JobSourceInfo.js +53 -0
- package/dist/esm/models/JobSourceType.d.ts +24 -0
- package/dist/esm/models/JobSourceType.js +44 -0
- package/dist/esm/models/JobStatus.d.ts +31 -0
- package/dist/esm/models/JobStatus.js +51 -0
- package/dist/esm/models/ListJobsResponse.d.ts +45 -0
- package/dist/esm/models/ListJobsResponse.js +50 -0
- package/dist/esm/models/OutputContainer.d.ts +27 -0
- package/dist/esm/models/OutputContainer.js +47 -0
- package/dist/esm/models/ReadyResponse.d.ts +38 -0
- package/dist/esm/models/ReadyResponse.js +45 -0
- package/dist/esm/models/UploadJobSource.d.ts +39 -0
- package/dist/esm/models/UploadJobSource.js +48 -0
- package/dist/esm/models/UploadPartResponse.d.ts +38 -0
- package/dist/esm/models/UploadPartResponse.js +47 -0
- package/dist/esm/models/UploadStatusResponse.d.ts +96 -0
- package/dist/esm/models/UploadStatusResponse.js +80 -0
- package/dist/esm/models/WebhookDeliveryPayload.d.ts +85 -0
- package/dist/esm/models/WebhookDeliveryPayload.js +83 -0
- package/dist/esm/models/WebhookListItem.d.ts +50 -0
- package/dist/esm/models/WebhookListItem.js +55 -0
- package/dist/esm/models/WebhookListResponse.d.ts +33 -0
- package/dist/esm/models/WebhookListResponse.js +44 -0
- package/dist/esm/models/WebhookResponse.d.ts +58 -0
- package/dist/esm/models/WebhookResponse.js +59 -0
- package/dist/esm/models/index.d.ts +25 -0
- package/dist/esm/models/index.js +27 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +348 -0
- package/dist/helpers/index.d.ts +3 -0
- package/dist/helpers/index.js +19 -0
- package/dist/helpers/jobs.d.ts +48 -0
- package/dist/helpers/jobs.js +67 -0
- package/dist/helpers/uploads.d.ts +71 -0
- package/dist/helpers/uploads.js +149 -0
- package/dist/helpers/webhooks.d.ts +23 -0
- package/dist/helpers/webhooks.js +89 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +22 -0
- package/dist/models/CompleteUploadResponse.d.ts +57 -0
- package/dist/models/CompleteUploadResponse.js +71 -0
- package/dist/models/CreateJobOutputOptions.d.ts +55 -0
- package/dist/models/CreateJobOutputOptions.js +53 -0
- package/dist/models/CreateJobRequest.d.ts +61 -0
- package/dist/models/CreateJobRequest.js +63 -0
- package/dist/models/CreateUploadRequest.d.ts +44 -0
- package/dist/models/CreateUploadRequest.js +58 -0
- package/dist/models/CreateUploadResponse.d.ts +52 -0
- package/dist/models/CreateUploadResponse.js +62 -0
- package/dist/models/CreateWebhookRequest.d.ts +40 -0
- package/dist/models/CreateWebhookRequest.js +52 -0
- package/dist/models/ErrorBody.d.ts +72 -0
- package/dist/models/ErrorBody.js +82 -0
- package/dist/models/ErrorEnvelope.d.ts +33 -0
- package/dist/models/ErrorEnvelope.js +51 -0
- package/dist/models/JobOutputInfo.d.ts +95 -0
- package/dist/models/JobOutputInfo.js +80 -0
- package/dist/models/JobProfile.d.ts +49 -0
- package/dist/models/JobProfile.js +77 -0
- package/dist/models/JobProgress.d.ts +75 -0
- package/dist/models/JobProgress.js +67 -0
- package/dist/models/JobResponse.d.ts +134 -0
- package/dist/models/JobResponse.js +101 -0
- package/dist/models/JobSourceInfo.d.ts +62 -0
- package/dist/models/JobSourceInfo.js +60 -0
- package/dist/models/JobSourceType.d.ts +24 -0
- package/dist/models/JobSourceType.js +52 -0
- package/dist/models/JobStatus.d.ts +31 -0
- package/dist/models/JobStatus.js +59 -0
- package/dist/models/ListJobsResponse.d.ts +45 -0
- package/dist/models/ListJobsResponse.js +57 -0
- package/dist/models/OutputContainer.d.ts +27 -0
- package/dist/models/OutputContainer.js +55 -0
- package/dist/models/ReadyResponse.d.ts +38 -0
- package/dist/models/ReadyResponse.js +52 -0
- package/dist/models/UploadJobSource.d.ts +39 -0
- package/dist/models/UploadJobSource.js +55 -0
- package/dist/models/UploadPartResponse.d.ts +38 -0
- package/dist/models/UploadPartResponse.js +54 -0
- package/dist/models/UploadStatusResponse.d.ts +96 -0
- package/dist/models/UploadStatusResponse.js +88 -0
- package/dist/models/WebhookDeliveryPayload.d.ts +85 -0
- package/dist/models/WebhookDeliveryPayload.js +91 -0
- package/dist/models/WebhookListItem.d.ts +50 -0
- package/dist/models/WebhookListItem.js +62 -0
- package/dist/models/WebhookListResponse.d.ts +33 -0
- package/dist/models/WebhookListResponse.js +51 -0
- package/dist/models/WebhookResponse.d.ts +58 -0
- package/dist/models/WebhookResponse.js +66 -0
- package/dist/models/index.d.ts +25 -0
- package/dist/models/index.js +43 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +364 -0
- package/docs/CompleteUploadResponse.md +40 -0
- package/docs/CreateJobOutputOptions.md +39 -0
- package/docs/CreateJobRequest.md +42 -0
- package/docs/CreateUploadRequest.md +38 -0
- package/docs/CreateUploadResponse.md +40 -0
- package/docs/CreateWebhookRequest.md +36 -0
- package/docs/DownloadsApi.md +78 -0
- package/docs/ErrorBody.md +40 -0
- package/docs/ErrorEnvelope.md +34 -0
- package/docs/HealthApi.md +129 -0
- package/docs/JobOutputInfo.md +50 -0
- package/docs/JobProfile.md +33 -0
- package/docs/JobProgress.md +48 -0
- package/docs/JobResponse.md +62 -0
- package/docs/JobSourceInfo.md +44 -0
- package/docs/JobSourceType.md +33 -0
- package/docs/JobStatus.md +33 -0
- package/docs/JobsApi.md +407 -0
- package/docs/ListJobsResponse.md +38 -0
- package/docs/OutputContainer.md +33 -0
- package/docs/ReadyResponse.md +36 -0
- package/docs/UploadJobSource.md +37 -0
- package/docs/UploadPartResponse.md +36 -0
- package/docs/UploadStatusResponse.md +50 -0
- package/docs/UploadsApi.md +415 -0
- package/docs/WebhookDeliveryPayload.md +45 -0
- package/docs/WebhookEventsApi.md +91 -0
- package/docs/WebhookListItem.md +40 -0
- package/docs/WebhookListResponse.md +34 -0
- package/docs/WebhookResponse.md +42 -0
- package/docs/WebhooksApi.md +235 -0
- package/package.json +24 -0
- package/src/apis/DownloadsApi.ts +114 -0
- package/src/apis/HealthApi.ts +160 -0
- package/src/apis/JobsApi.ts +491 -0
- package/src/apis/UploadsApi.ts +522 -0
- package/src/apis/WebhooksApi.ts +298 -0
- package/src/apis/index.ts +7 -0
- package/src/helpers/index.ts +3 -0
- package/src/helpers/jobs.ts +112 -0
- package/src/helpers/uploads.ts +243 -0
- package/src/helpers/webhooks.ts +134 -0
- package/src/index.ts +7 -0
- package/src/models/CompleteUploadResponse.ts +102 -0
- package/src/models/CreateJobOutputOptions.ts +101 -0
- package/src/models/CreateJobRequest.ts +123 -0
- package/src/models/CreateUploadRequest.ts +84 -0
- package/src/models/CreateUploadResponse.ts +95 -0
- package/src/models/CreateWebhookRequest.ts +76 -0
- package/src/models/ErrorBody.ts +116 -0
- package/src/models/ErrorEnvelope.ts +74 -0
- package/src/models/JobOutputInfo.ts +149 -0
- package/src/models/JobProfile.ts +76 -0
- package/src/models/JobProgress.ts +133 -0
- package/src/models/JobResponse.ts +236 -0
- package/src/models/JobSourceInfo.ts +106 -0
- package/src/models/JobSourceType.ts +51 -0
- package/src/models/JobStatus.ts +58 -0
- package/src/models/ListJobsResponse.ts +91 -0
- package/src/models/OutputContainer.ts +54 -0
- package/src/models/ReadyResponse.ts +74 -0
- package/src/models/UploadJobSource.ts +85 -0
- package/src/models/UploadPartResponse.ts +75 -0
- package/src/models/UploadStatusResponse.ts +153 -0
- package/src/models/WebhookDeliveryPayload.ts +134 -0
- package/src/models/WebhookListItem.ts +93 -0
- package/src/models/WebhookListResponse.ts +74 -0
- package/src/models/WebhookResponse.ts +104 -0
- package/src/models/index.ts +27 -0
- package/src/runtime.ts +450 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* SOPHON Encoding API
|
|
5
|
+
* REST API for submitting, monitoring, and retrieving SOPHON encoding jobs. Authentication is via Bearer API key or session cookie. All POST endpoints require an Idempotency-Key header. List endpoints use opaque cursor-based pagination.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
* @enum {string}
|
|
17
|
+
*/
|
|
18
|
+
export var ErrorBodyCodeEnum;
|
|
19
|
+
(function (ErrorBodyCodeEnum) {
|
|
20
|
+
ErrorBodyCodeEnum["VALIDATION_ERROR"] = "validation_error";
|
|
21
|
+
ErrorBodyCodeEnum["UNAUTHORIZED"] = "unauthorized";
|
|
22
|
+
ErrorBodyCodeEnum["FORBIDDEN"] = "forbidden";
|
|
23
|
+
ErrorBodyCodeEnum["NOT_FOUND"] = "not_found";
|
|
24
|
+
ErrorBodyCodeEnum["CONFLICT"] = "conflict";
|
|
25
|
+
ErrorBodyCodeEnum["RATE_LIMITED"] = "rate_limited";
|
|
26
|
+
ErrorBodyCodeEnum["QUOTA_EXCEEDED"] = "quota_exceeded";
|
|
27
|
+
ErrorBodyCodeEnum["CAPACITY_EXCEEDED"] = "capacity_exceeded";
|
|
28
|
+
ErrorBodyCodeEnum["SOURCE_INVALID"] = "source_invalid";
|
|
29
|
+
ErrorBodyCodeEnum["SOURCE_UNSUPPORTED"] = "source_unsupported";
|
|
30
|
+
ErrorBodyCodeEnum["JOB_NOT_CANCELABLE"] = "job_not_cancelable";
|
|
31
|
+
ErrorBodyCodeEnum["OUTPUT_NOT_READY"] = "output_not_ready";
|
|
32
|
+
ErrorBodyCodeEnum["OUTPUT_PERSISTENCE_FAILED"] = "output_persistence_failed";
|
|
33
|
+
ErrorBodyCodeEnum["INTERNAL_ERROR"] = "internal_error";
|
|
34
|
+
})(ErrorBodyCodeEnum || (ErrorBodyCodeEnum = {}));
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the ErrorBody interface.
|
|
37
|
+
*/
|
|
38
|
+
export function instanceOfErrorBody(value) {
|
|
39
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('retryable' in value) || value['retryable'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
export function ErrorBodyFromJSON(json) {
|
|
48
|
+
return ErrorBodyFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
export function ErrorBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'code': json['code'],
|
|
56
|
+
'message': json['message'],
|
|
57
|
+
'retryable': json['retryable'],
|
|
58
|
+
'request_id': json['request_id'] == null ? undefined : json['request_id'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export function ErrorBodyToJSON(json) {
|
|
62
|
+
return ErrorBodyToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
export function ErrorBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'code': value['code'],
|
|
70
|
+
'message': value['message'],
|
|
71
|
+
'retryable': value['retryable'],
|
|
72
|
+
'request_id': value['request_id'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SOPHON Encoding API
|
|
3
|
+
* REST API for submitting, monitoring, and retrieving SOPHON encoding jobs. Authentication is via Bearer API key or session cookie. All POST endpoints require an Idempotency-Key header. List endpoints use opaque cursor-based pagination.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ErrorBody } from './ErrorBody';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ErrorEnvelope
|
|
17
|
+
*/
|
|
18
|
+
export interface ErrorEnvelope {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ErrorBody}
|
|
22
|
+
* @memberof ErrorEnvelope
|
|
23
|
+
*/
|
|
24
|
+
error: ErrorBody;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ErrorEnvelope interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfErrorEnvelope(value: object): value is ErrorEnvelope;
|
|
30
|
+
export declare function ErrorEnvelopeFromJSON(json: any): ErrorEnvelope;
|
|
31
|
+
export declare function ErrorEnvelopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorEnvelope;
|
|
32
|
+
export declare function ErrorEnvelopeToJSON(json: any): ErrorEnvelope;
|
|
33
|
+
export declare function ErrorEnvelopeToJSONTyped(value?: ErrorEnvelope | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* SOPHON Encoding API
|
|
5
|
+
* REST API for submitting, monitoring, and retrieving SOPHON encoding jobs. Authentication is via Bearer API key or session cookie. All POST endpoints require an Idempotency-Key header. List endpoints use opaque cursor-based pagination.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ErrorBodyFromJSON, ErrorBodyToJSON, } from './ErrorBody';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ErrorEnvelope interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfErrorEnvelope(value) {
|
|
19
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function ErrorEnvelopeFromJSON(json) {
|
|
24
|
+
return ErrorEnvelopeFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function ErrorEnvelopeFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'error': ErrorBodyFromJSON(json['error']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function ErrorEnvelopeToJSON(json) {
|
|
35
|
+
return ErrorEnvelopeToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ErrorEnvelopeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'error': ErrorBodyToJSON(value['error']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SOPHON Encoding API
|
|
3
|
+
* REST API for submitting, monitoring, and retrieving SOPHON encoding jobs. Authentication is via Bearer API key or session cookie. All POST endpoints require an Idempotency-Key header. List endpoints use opaque cursor-based pagination.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface JobOutputInfo
|
|
16
|
+
*/
|
|
17
|
+
export interface JobOutputInfo {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {JobOutputInfoStateEnum}
|
|
21
|
+
* @memberof JobOutputInfo
|
|
22
|
+
*/
|
|
23
|
+
state: JobOutputInfoStateEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Output container format ("mp4" or "mkv").
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof JobOutputInfo
|
|
28
|
+
*/
|
|
29
|
+
container: string;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the output file actually contains audio.
|
|
32
|
+
* Reflects the muxed result, not the request flag — a
|
|
33
|
+
* video-only source with audio requested will report false.
|
|
34
|
+
*
|
|
35
|
+
* @type {boolean}
|
|
36
|
+
* @memberof JobOutputInfo
|
|
37
|
+
*/
|
|
38
|
+
audio: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Customer-requested output height, echoed back. Null when the
|
|
41
|
+
* job ran at source dimensions (passthrough).
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof JobOutputInfo
|
|
45
|
+
*/
|
|
46
|
+
target_height?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Actual encoded output width in pixels (post-ffprobe). Null until
|
|
49
|
+
* the job completes or if the probe failed.
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof JobOutputInfo
|
|
53
|
+
*/
|
|
54
|
+
width?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Actual encoded output height in pixels. See `width`.
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof JobOutputInfo
|
|
59
|
+
*/
|
|
60
|
+
height?: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof JobOutputInfo
|
|
65
|
+
*/
|
|
66
|
+
bytes?: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof JobOutputInfo
|
|
71
|
+
*/
|
|
72
|
+
sha256?: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof JobOutputInfo
|
|
77
|
+
*/
|
|
78
|
+
retention_expires_at?: Date;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @export
|
|
82
|
+
* @enum {string}
|
|
83
|
+
*/
|
|
84
|
+
export declare enum JobOutputInfoStateEnum {
|
|
85
|
+
PENDING = "pending",
|
|
86
|
+
AVAILABLE = "available"
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the JobOutputInfo interface.
|
|
90
|
+
*/
|
|
91
|
+
export declare function instanceOfJobOutputInfo(value: object): value is JobOutputInfo;
|
|
92
|
+
export declare function JobOutputInfoFromJSON(json: any): JobOutputInfo;
|
|
93
|
+
export declare function JobOutputInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobOutputInfo;
|
|
94
|
+
export declare function JobOutputInfoToJSON(json: any): JobOutputInfo;
|
|
95
|
+
export declare function JobOutputInfoToJSONTyped(value?: JobOutputInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* SOPHON Encoding API
|
|
5
|
+
* REST API for submitting, monitoring, and retrieving SOPHON encoding jobs. Authentication is via Bearer API key or session cookie. All POST endpoints require an Idempotency-Key header. List endpoints use opaque cursor-based pagination.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
* @enum {string}
|
|
17
|
+
*/
|
|
18
|
+
export var JobOutputInfoStateEnum;
|
|
19
|
+
(function (JobOutputInfoStateEnum) {
|
|
20
|
+
JobOutputInfoStateEnum["PENDING"] = "pending";
|
|
21
|
+
JobOutputInfoStateEnum["AVAILABLE"] = "available";
|
|
22
|
+
})(JobOutputInfoStateEnum || (JobOutputInfoStateEnum = {}));
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the JobOutputInfo interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfJobOutputInfo(value) {
|
|
27
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('container' in value) || value['container'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('audio' in value) || value['audio'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
export function JobOutputInfoFromJSON(json) {
|
|
36
|
+
return JobOutputInfoFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function JobOutputInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'state': json['state'],
|
|
44
|
+
'container': json['container'],
|
|
45
|
+
'audio': json['audio'],
|
|
46
|
+
'target_height': json['target_height'] == null ? undefined : json['target_height'],
|
|
47
|
+
'width': json['width'] == null ? undefined : json['width'],
|
|
48
|
+
'height': json['height'] == null ? undefined : json['height'],
|
|
49
|
+
'bytes': json['bytes'] == null ? undefined : json['bytes'],
|
|
50
|
+
'sha256': json['sha256'] == null ? undefined : json['sha256'],
|
|
51
|
+
'retention_expires_at': json['retention_expires_at'] == null ? undefined : (new Date(json['retention_expires_at'])),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export function JobOutputInfoToJSON(json) {
|
|
55
|
+
return JobOutputInfoToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
export function JobOutputInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'state': value['state'],
|
|
63
|
+
'container': value['container'],
|
|
64
|
+
'audio': value['audio'],
|
|
65
|
+
'target_height': value['target_height'],
|
|
66
|
+
'width': value['width'],
|
|
67
|
+
'height': value['height'],
|
|
68
|
+
'bytes': value['bytes'],
|
|
69
|
+
'sha256': value['sha256'],
|
|
70
|
+
'retention_expires_at': value['retention_expires_at'] == null ? value['retention_expires_at'] : value['retention_expires_at'].toISOString(),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SOPHON Encoding API
|
|
3
|
+
* REST API for submitting, monitoring, and retrieving SOPHON encoding jobs. Authentication is via Bearer API key or session cookie. All POST endpoints require an Idempotency-Key header. List endpoints use opaque cursor-based pagination.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Encoding profile ID. Coffee-themed naming: prep time maps to encode speed,
|
|
14
|
+
* bare name is the 8-bit default (universal decoder compatibility),
|
|
15
|
+
* `-10bit` suffix opts into HEVC Main10 for higher-quality playback on
|
|
16
|
+
* newer decoders.
|
|
17
|
+
*
|
|
18
|
+
* **8-bit (default):**
|
|
19
|
+
* - `sophon-espresso` — fastest, lowest compression
|
|
20
|
+
* - `sophon-cortado` — balanced speed and quality
|
|
21
|
+
* - `sophon-americano` — slowest, highest compression
|
|
22
|
+
*
|
|
23
|
+
* **10-bit (HEVC Main10):**
|
|
24
|
+
* - `sophon-espresso-10bit`
|
|
25
|
+
* - `sophon-cortado-10bit`
|
|
26
|
+
* - `sophon-americano-10bit`
|
|
27
|
+
*
|
|
28
|
+
* **Adaptive dispatcher:**
|
|
29
|
+
* - `sophon-auto` — public opt-in profile. The worker classifies
|
|
30
|
+
* the source and records the concrete `effective_profile_id` on
|
|
31
|
+
* the job once dispatch resolves.
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @enum {string}
|
|
35
|
+
*/
|
|
36
|
+
export declare enum JobProfile {
|
|
37
|
+
SOPHON_ESPRESSO = "sophon-espresso",
|
|
38
|
+
SOPHON_CORTADO = "sophon-cortado",
|
|
39
|
+
SOPHON_AMERICANO = "sophon-americano",
|
|
40
|
+
SOPHON_ESPRESSO_10BIT = "sophon-espresso-10bit",
|
|
41
|
+
SOPHON_CORTADO_10BIT = "sophon-cortado-10bit",
|
|
42
|
+
SOPHON_AMERICANO_10BIT = "sophon-americano-10bit",
|
|
43
|
+
SOPHON_AUTO = "sophon-auto"
|
|
44
|
+
}
|
|
45
|
+
export declare function instanceOfJobProfile(value: any): boolean;
|
|
46
|
+
export declare function JobProfileFromJSON(json: any): JobProfile;
|
|
47
|
+
export declare function JobProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobProfile;
|
|
48
|
+
export declare function JobProfileToJSON(value?: JobProfile | null): any;
|
|
49
|
+
export declare function JobProfileToJSONTyped(value: any, ignoreDiscriminator: boolean): JobProfile;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* SOPHON Encoding API
|
|
5
|
+
* REST API for submitting, monitoring, and retrieving SOPHON encoding jobs. Authentication is via Bearer API key or session cookie. All POST endpoints require an Idempotency-Key header. List endpoints use opaque cursor-based pagination.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Encoding profile ID. Coffee-themed naming: prep time maps to encode speed,
|
|
16
|
+
* bare name is the 8-bit default (universal decoder compatibility),
|
|
17
|
+
* `-10bit` suffix opts into HEVC Main10 for higher-quality playback on
|
|
18
|
+
* newer decoders.
|
|
19
|
+
*
|
|
20
|
+
* **8-bit (default):**
|
|
21
|
+
* - `sophon-espresso` — fastest, lowest compression
|
|
22
|
+
* - `sophon-cortado` — balanced speed and quality
|
|
23
|
+
* - `sophon-americano` — slowest, highest compression
|
|
24
|
+
*
|
|
25
|
+
* **10-bit (HEVC Main10):**
|
|
26
|
+
* - `sophon-espresso-10bit`
|
|
27
|
+
* - `sophon-cortado-10bit`
|
|
28
|
+
* - `sophon-americano-10bit`
|
|
29
|
+
*
|
|
30
|
+
* **Adaptive dispatcher:**
|
|
31
|
+
* - `sophon-auto` — public opt-in profile. The worker classifies
|
|
32
|
+
* the source and records the concrete `effective_profile_id` on
|
|
33
|
+
* the job once dispatch resolves.
|
|
34
|
+
*
|
|
35
|
+
* @export
|
|
36
|
+
* @enum {string}
|
|
37
|
+
*/
|
|
38
|
+
export var JobProfile;
|
|
39
|
+
(function (JobProfile) {
|
|
40
|
+
JobProfile["SOPHON_ESPRESSO"] = "sophon-espresso";
|
|
41
|
+
JobProfile["SOPHON_CORTADO"] = "sophon-cortado";
|
|
42
|
+
JobProfile["SOPHON_AMERICANO"] = "sophon-americano";
|
|
43
|
+
JobProfile["SOPHON_ESPRESSO_10BIT"] = "sophon-espresso-10bit";
|
|
44
|
+
JobProfile["SOPHON_CORTADO_10BIT"] = "sophon-cortado-10bit";
|
|
45
|
+
JobProfile["SOPHON_AMERICANO_10BIT"] = "sophon-americano-10bit";
|
|
46
|
+
JobProfile["SOPHON_AUTO"] = "sophon-auto";
|
|
47
|
+
})(JobProfile || (JobProfile = {}));
|
|
48
|
+
export function instanceOfJobProfile(value) {
|
|
49
|
+
for (const key in JobProfile) {
|
|
50
|
+
if (Object.prototype.hasOwnProperty.call(JobProfile, key)) {
|
|
51
|
+
if (JobProfile[key] === value) {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
export function JobProfileFromJSON(json) {
|
|
59
|
+
return JobProfileFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
export function JobProfileFromJSONTyped(json, ignoreDiscriminator) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
export function JobProfileToJSON(value) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
export function JobProfileToJSONTyped(value, ignoreDiscriminator) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SOPHON Encoding API
|
|
3
|
+
* REST API for submitting, monitoring, and retrieving SOPHON encoding jobs. Authentication is via Bearer API key or session cookie. All POST endpoints require an Idempotency-Key header. List endpoints use opaque cursor-based pagination.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { JobStatus } from './JobStatus';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface JobProgress
|
|
17
|
+
*/
|
|
18
|
+
export interface JobProgress {
|
|
19
|
+
/**
|
|
20
|
+
* Current processing stage label (e.g. "probing", "encoding", "muxing").
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof JobProgress
|
|
23
|
+
*/
|
|
24
|
+
stage?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Canonical pipeline phase used for progress semantics.
|
|
27
|
+
* @type {JobStatus}
|
|
28
|
+
* @memberof JobProgress
|
|
29
|
+
*/
|
|
30
|
+
phase: JobStatus;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof JobProgress
|
|
35
|
+
*/
|
|
36
|
+
percent: number;
|
|
37
|
+
/**
|
|
38
|
+
* Progress within the current phase. Null before active processing.
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof JobProgress
|
|
41
|
+
*/
|
|
42
|
+
phase_percent?: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof JobProgress
|
|
47
|
+
*/
|
|
48
|
+
fps?: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof JobProgress
|
|
53
|
+
*/
|
|
54
|
+
eta_seconds?: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof JobProgress
|
|
59
|
+
*/
|
|
60
|
+
frames_done?: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof JobProgress
|
|
65
|
+
*/
|
|
66
|
+
frames_total?: number;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the JobProgress interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfJobProgress(value: object): value is JobProgress;
|
|
72
|
+
export declare function JobProgressFromJSON(json: any): JobProgress;
|
|
73
|
+
export declare function JobProgressFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobProgress;
|
|
74
|
+
export declare function JobProgressToJSON(json: any): JobProgress;
|
|
75
|
+
export declare function JobProgressToJSONTyped(value?: JobProgress | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* SOPHON Encoding API
|
|
5
|
+
* REST API for submitting, monitoring, and retrieving SOPHON encoding jobs. Authentication is via Bearer API key or session cookie. All POST endpoints require an Idempotency-Key header. List endpoints use opaque cursor-based pagination.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { JobStatusFromJSON, JobStatusToJSON, } from './JobStatus';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the JobProgress interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfJobProgress(value) {
|
|
19
|
+
if (!('phase' in value) || value['phase'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('percent' in value) || value['percent'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function JobProgressFromJSON(json) {
|
|
26
|
+
return JobProgressFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function JobProgressFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'stage': json['stage'] == null ? undefined : json['stage'],
|
|
34
|
+
'phase': JobStatusFromJSON(json['phase']),
|
|
35
|
+
'percent': json['percent'],
|
|
36
|
+
'phase_percent': json['phase_percent'] == null ? undefined : json['phase_percent'],
|
|
37
|
+
'fps': json['fps'] == null ? undefined : json['fps'],
|
|
38
|
+
'eta_seconds': json['eta_seconds'] == null ? undefined : json['eta_seconds'],
|
|
39
|
+
'frames_done': json['frames_done'] == null ? undefined : json['frames_done'],
|
|
40
|
+
'frames_total': json['frames_total'] == null ? undefined : json['frames_total'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function JobProgressToJSON(json) {
|
|
44
|
+
return JobProgressToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function JobProgressToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'stage': value['stage'],
|
|
52
|
+
'phase': JobStatusToJSON(value['phase']),
|
|
53
|
+
'percent': value['percent'],
|
|
54
|
+
'phase_percent': value['phase_percent'],
|
|
55
|
+
'fps': value['fps'],
|
|
56
|
+
'eta_seconds': value['eta_seconds'],
|
|
57
|
+
'frames_done': value['frames_done'],
|
|
58
|
+
'frames_total': value['frames_total'],
|
|
59
|
+
};
|
|
60
|
+
}
|