@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,63 @@
|
|
|
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 CompleteUploadResponseStatusEnum;
|
|
19
|
+
(function (CompleteUploadResponseStatusEnum) {
|
|
20
|
+
CompleteUploadResponseStatusEnum["COMPLETED"] = "completed";
|
|
21
|
+
})(CompleteUploadResponseStatusEnum || (CompleteUploadResponseStatusEnum = {}));
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CompleteUploadResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfCompleteUploadResponse(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('sha256' in value) || value['sha256'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('bytes' in value) || value['bytes'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function CompleteUploadResponseFromJSON(json) {
|
|
37
|
+
return CompleteUploadResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function CompleteUploadResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': json['id'],
|
|
45
|
+
'status': json['status'],
|
|
46
|
+
'sha256': json['sha256'],
|
|
47
|
+
'bytes': json['bytes'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export function CompleteUploadResponseToJSON(json) {
|
|
51
|
+
return CompleteUploadResponseToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function CompleteUploadResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value['id'],
|
|
59
|
+
'status': value['status'],
|
|
60
|
+
'sha256': value['sha256'],
|
|
61
|
+
'bytes': value['bytes'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { OutputContainer } from './OutputContainer';
|
|
13
|
+
/**
|
|
14
|
+
* Optional output shaping knobs for a new job.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateJobOutputOptions
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateJobOutputOptions {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {OutputContainer}
|
|
22
|
+
* @memberof CreateJobOutputOptions
|
|
23
|
+
*/
|
|
24
|
+
container?: OutputContainer;
|
|
25
|
+
/**
|
|
26
|
+
* When true, audio is included in the output. MKV preserves
|
|
27
|
+
* source audio streams unchanged. MP4 preserves broadly compatible
|
|
28
|
+
* source audio codecs when possible, and may normalize
|
|
29
|
+
* incompatible codecs to AAC for playback compatibility.
|
|
30
|
+
* When false, the output is video only.
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof CreateJobOutputOptions
|
|
34
|
+
*/
|
|
35
|
+
audio?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Target output height in pixels. When set, output is scaled down
|
|
38
|
+
* (aspect ratio preserved, width derived from source, both dims
|
|
39
|
+
* rounded to even). If absent or larger than source height, output
|
|
40
|
+
* uses source dimensions. Billing tier is determined by the actual
|
|
41
|
+
* encoded output, not by this requested value.
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof CreateJobOutputOptions
|
|
45
|
+
*/
|
|
46
|
+
target_height?: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the CreateJobOutputOptions interface.
|
|
50
|
+
*/
|
|
51
|
+
export declare function instanceOfCreateJobOutputOptions(value: object): value is CreateJobOutputOptions;
|
|
52
|
+
export declare function CreateJobOutputOptionsFromJSON(json: any): CreateJobOutputOptions;
|
|
53
|
+
export declare function CreateJobOutputOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateJobOutputOptions;
|
|
54
|
+
export declare function CreateJobOutputOptionsToJSON(json: any): CreateJobOutputOptions;
|
|
55
|
+
export declare function CreateJobOutputOptionsToJSONTyped(value?: CreateJobOutputOptions | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { OutputContainerFromJSON, OutputContainerToJSON, } from './OutputContainer';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the CreateJobOutputOptions interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfCreateJobOutputOptions(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function CreateJobOutputOptionsFromJSON(json) {
|
|
22
|
+
return CreateJobOutputOptionsFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function CreateJobOutputOptionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'container': json['container'] == null ? undefined : OutputContainerFromJSON(json['container']),
|
|
30
|
+
'audio': json['audio'] == null ? undefined : json['audio'],
|
|
31
|
+
'target_height': json['target_height'] == null ? undefined : json['target_height'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function CreateJobOutputOptionsToJSON(json) {
|
|
35
|
+
return CreateJobOutputOptionsToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function CreateJobOutputOptionsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'container': OutputContainerToJSON(value['container']),
|
|
43
|
+
'audio': value['audio'],
|
|
44
|
+
'target_height': value['target_height'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { CreateJobOutputOptions } from './CreateJobOutputOptions';
|
|
13
|
+
import type { JobProfile } from './JobProfile';
|
|
14
|
+
import type { UploadJobSource } from './UploadJobSource';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface CreateJobRequest
|
|
19
|
+
*/
|
|
20
|
+
export interface CreateJobRequest {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {UploadJobSource}
|
|
24
|
+
* @memberof CreateJobRequest
|
|
25
|
+
*/
|
|
26
|
+
source: UploadJobSource;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {JobProfile}
|
|
30
|
+
* @memberof CreateJobRequest
|
|
31
|
+
*/
|
|
32
|
+
profile: JobProfile;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {CreateJobOutputOptions}
|
|
36
|
+
* @memberof CreateJobRequest
|
|
37
|
+
*/
|
|
38
|
+
output?: CreateJobOutputOptions;
|
|
39
|
+
/**
|
|
40
|
+
* IDs of registered webhook endpoints to notify on job state changes.
|
|
41
|
+
* @type {Array<string>}
|
|
42
|
+
* @memberof CreateJobRequest
|
|
43
|
+
*/
|
|
44
|
+
webhook_ids?: Array<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Arbitrary key-value metadata attached to the job. Max 16 KiB serialized.
|
|
47
|
+
* @type {{ [key: string]: any; }}
|
|
48
|
+
* @memberof CreateJobRequest
|
|
49
|
+
*/
|
|
50
|
+
metadata?: {
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the CreateJobRequest interface.
|
|
56
|
+
*/
|
|
57
|
+
export declare function instanceOfCreateJobRequest(value: object): value is CreateJobRequest;
|
|
58
|
+
export declare function CreateJobRequestFromJSON(json: any): CreateJobRequest;
|
|
59
|
+
export declare function CreateJobRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateJobRequest;
|
|
60
|
+
export declare function CreateJobRequestToJSON(json: any): CreateJobRequest;
|
|
61
|
+
export declare function CreateJobRequestToJSONTyped(value?: CreateJobRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { CreateJobOutputOptionsFromJSON, CreateJobOutputOptionsToJSON, } from './CreateJobOutputOptions';
|
|
15
|
+
import { JobProfileFromJSON, JobProfileToJSON, } from './JobProfile';
|
|
16
|
+
import { UploadJobSourceFromJSON, UploadJobSourceToJSON, } from './UploadJobSource';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the CreateJobRequest interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfCreateJobRequest(value) {
|
|
21
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('profile' in value) || value['profile'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function CreateJobRequestFromJSON(json) {
|
|
28
|
+
return CreateJobRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function CreateJobRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'source': UploadJobSourceFromJSON(json['source']),
|
|
36
|
+
'profile': JobProfileFromJSON(json['profile']),
|
|
37
|
+
'output': json['output'] == null ? undefined : CreateJobOutputOptionsFromJSON(json['output']),
|
|
38
|
+
'webhook_ids': json['webhook_ids'] == null ? undefined : json['webhook_ids'],
|
|
39
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function CreateJobRequestToJSON(json) {
|
|
43
|
+
return CreateJobRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function CreateJobRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'source': UploadJobSourceToJSON(value['source']),
|
|
51
|
+
'profile': JobProfileToJSON(value['profile']),
|
|
52
|
+
'output': CreateJobOutputOptionsToJSON(value['output']),
|
|
53
|
+
'webhook_ids': value['webhook_ids'],
|
|
54
|
+
'metadata': value['metadata'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 CreateUploadRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateUploadRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateUploadRequest
|
|
22
|
+
*/
|
|
23
|
+
file_name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Total file size in bytes.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CreateUploadRequest
|
|
28
|
+
*/
|
|
29
|
+
file_size: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateUploadRequest
|
|
34
|
+
*/
|
|
35
|
+
mime_type: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the CreateUploadRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfCreateUploadRequest(value: object): value is CreateUploadRequest;
|
|
41
|
+
export declare function CreateUploadRequestFromJSON(json: any): CreateUploadRequest;
|
|
42
|
+
export declare function CreateUploadRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUploadRequest;
|
|
43
|
+
export declare function CreateUploadRequestToJSON(json: any): CreateUploadRequest;
|
|
44
|
+
export declare function CreateUploadRequestToJSONTyped(value?: CreateUploadRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
* Check if a given object implements the CreateUploadRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateUploadRequest(value) {
|
|
18
|
+
if (!('file_name' in value) || value['file_name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('file_size' in value) || value['file_size'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('mime_type' in value) || value['mime_type'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function CreateUploadRequestFromJSON(json) {
|
|
27
|
+
return CreateUploadRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function CreateUploadRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'file_name': json['file_name'],
|
|
35
|
+
'file_size': json['file_size'],
|
|
36
|
+
'mime_type': json['mime_type'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function CreateUploadRequestToJSON(json) {
|
|
40
|
+
return CreateUploadRequestToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function CreateUploadRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'file_name': value['file_name'],
|
|
48
|
+
'file_size': value['file_size'],
|
|
49
|
+
'mime_type': value['mime_type'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 CreateUploadResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateUploadResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateUploadResponse
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Size of each chunk in bytes. Tiered by file size:
|
|
26
|
+
* <64 MB = whole file, <=1 GB = 8 MB, <=10 GB = 16 MB, >10 GB = 32 MB.
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof CreateUploadResponse
|
|
30
|
+
*/
|
|
31
|
+
chunk_size: number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof CreateUploadResponse
|
|
36
|
+
*/
|
|
37
|
+
total_chunks: number;
|
|
38
|
+
/**
|
|
39
|
+
* Upload session expiry (24 hours from creation).
|
|
40
|
+
* @type {Date}
|
|
41
|
+
* @memberof CreateUploadResponse
|
|
42
|
+
*/
|
|
43
|
+
expires_at: Date;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the CreateUploadResponse interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfCreateUploadResponse(value: object): value is CreateUploadResponse;
|
|
49
|
+
export declare function CreateUploadResponseFromJSON(json: any): CreateUploadResponse;
|
|
50
|
+
export declare function CreateUploadResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUploadResponse;
|
|
51
|
+
export declare function CreateUploadResponseToJSON(json: any): CreateUploadResponse;
|
|
52
|
+
export declare function CreateUploadResponseToJSONTyped(value?: CreateUploadResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
* Check if a given object implements the CreateUploadResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateUploadResponse(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('chunk_size' in value) || value['chunk_size'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('total_chunks' in value) || value['total_chunks'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('expires_at' in value) || value['expires_at'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function CreateUploadResponseFromJSON(json) {
|
|
29
|
+
return CreateUploadResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function CreateUploadResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
'chunk_size': json['chunk_size'],
|
|
38
|
+
'total_chunks': json['total_chunks'],
|
|
39
|
+
'expires_at': (new Date(json['expires_at'])),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function CreateUploadResponseToJSON(json) {
|
|
43
|
+
return CreateUploadResponseToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function CreateUploadResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'chunk_size': value['chunk_size'],
|
|
52
|
+
'total_chunks': value['total_chunks'],
|
|
53
|
+
'expires_at': value['expires_at'].toISOString(),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 CreateWebhookRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateWebhookRequest {
|
|
18
|
+
/**
|
|
19
|
+
* HTTPS URL to receive webhook deliveries. Must not point to
|
|
20
|
+
* private, loopback, link-local, or multicast addresses (SSRF prevention).
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CreateWebhookRequest
|
|
24
|
+
*/
|
|
25
|
+
url: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CreateWebhookRequest
|
|
30
|
+
*/
|
|
31
|
+
name?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the CreateWebhookRequest interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfCreateWebhookRequest(value: object): value is CreateWebhookRequest;
|
|
37
|
+
export declare function CreateWebhookRequestFromJSON(json: any): CreateWebhookRequest;
|
|
38
|
+
export declare function CreateWebhookRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWebhookRequest;
|
|
39
|
+
export declare function CreateWebhookRequestToJSON(json: any): CreateWebhookRequest;
|
|
40
|
+
export declare function CreateWebhookRequestToJSONTyped(value?: CreateWebhookRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
* Check if a given object implements the CreateWebhookRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateWebhookRequest(value) {
|
|
18
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function CreateWebhookRequestFromJSON(json) {
|
|
23
|
+
return CreateWebhookRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function CreateWebhookRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'url': json['url'],
|
|
31
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function CreateWebhookRequestToJSON(json) {
|
|
35
|
+
return CreateWebhookRequestToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function CreateWebhookRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'url': value['url'],
|
|
43
|
+
'name': value['name'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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 ErrorBody
|
|
16
|
+
*/
|
|
17
|
+
export interface ErrorBody {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {ErrorBodyCodeEnum}
|
|
21
|
+
* @memberof ErrorBody
|
|
22
|
+
*/
|
|
23
|
+
code: ErrorBodyCodeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ErrorBody
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
/**
|
|
31
|
+
* True for rate_limited, capacity_exceeded, and internal_error.
|
|
32
|
+
* Clients should retry with exponential backoff when true.
|
|
33
|
+
*
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof ErrorBody
|
|
36
|
+
*/
|
|
37
|
+
retryable: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Server-assigned request ID for correlation with logs.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ErrorBody
|
|
42
|
+
*/
|
|
43
|
+
request_id?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
* @enum {string}
|
|
48
|
+
*/
|
|
49
|
+
export declare enum ErrorBodyCodeEnum {
|
|
50
|
+
VALIDATION_ERROR = "validation_error",
|
|
51
|
+
UNAUTHORIZED = "unauthorized",
|
|
52
|
+
FORBIDDEN = "forbidden",
|
|
53
|
+
NOT_FOUND = "not_found",
|
|
54
|
+
CONFLICT = "conflict",
|
|
55
|
+
RATE_LIMITED = "rate_limited",
|
|
56
|
+
QUOTA_EXCEEDED = "quota_exceeded",
|
|
57
|
+
CAPACITY_EXCEEDED = "capacity_exceeded",
|
|
58
|
+
SOURCE_INVALID = "source_invalid",
|
|
59
|
+
SOURCE_UNSUPPORTED = "source_unsupported",
|
|
60
|
+
JOB_NOT_CANCELABLE = "job_not_cancelable",
|
|
61
|
+
OUTPUT_NOT_READY = "output_not_ready",
|
|
62
|
+
OUTPUT_PERSISTENCE_FAILED = "output_persistence_failed",
|
|
63
|
+
INTERNAL_ERROR = "internal_error"
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the ErrorBody interface.
|
|
67
|
+
*/
|
|
68
|
+
export declare function instanceOfErrorBody(value: object): value is ErrorBody;
|
|
69
|
+
export declare function ErrorBodyFromJSON(json: any): ErrorBody;
|
|
70
|
+
export declare function ErrorBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorBody;
|
|
71
|
+
export declare function ErrorBodyToJSON(json: any): ErrorBody;
|
|
72
|
+
export declare function ErrorBodyToJSONTyped(value?: ErrorBody | null, ignoreDiscriminator?: boolean): any;
|