@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,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* SOPHON Encoding API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUploadPartResponse = instanceOfUploadPartResponse;
|
|
17
|
+
exports.UploadPartResponseFromJSON = UploadPartResponseFromJSON;
|
|
18
|
+
exports.UploadPartResponseFromJSONTyped = UploadPartResponseFromJSONTyped;
|
|
19
|
+
exports.UploadPartResponseToJSON = UploadPartResponseToJSON;
|
|
20
|
+
exports.UploadPartResponseToJSONTyped = UploadPartResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UploadPartResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUploadPartResponse(value) {
|
|
25
|
+
if (!('part_number' in value) || value['part_number'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('received' in value) || value['received'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function UploadPartResponseFromJSON(json) {
|
|
32
|
+
return UploadPartResponseFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function UploadPartResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'part_number': json['part_number'],
|
|
40
|
+
'received': json['received'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function UploadPartResponseToJSON(json) {
|
|
44
|
+
return UploadPartResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function UploadPartResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'part_number': value['part_number'],
|
|
52
|
+
'received': value['received'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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 UploadStatusResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface UploadStatusResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UploadStatusResponse
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {UploadStatusResponseStatusEnum}
|
|
27
|
+
* @memberof UploadStatusResponse
|
|
28
|
+
*/
|
|
29
|
+
status: UploadStatusResponseStatusEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UploadStatusResponse
|
|
34
|
+
*/
|
|
35
|
+
file_name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof UploadStatusResponse
|
|
40
|
+
*/
|
|
41
|
+
total_chunks: number;
|
|
42
|
+
/**
|
|
43
|
+
* Array of 0-indexed part numbers that have been received.
|
|
44
|
+
* @type {Array<number>}
|
|
45
|
+
* @memberof UploadStatusResponse
|
|
46
|
+
*/
|
|
47
|
+
received_chunks: Array<number>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof UploadStatusResponse
|
|
52
|
+
*/
|
|
53
|
+
expires_at: Date;
|
|
54
|
+
/**
|
|
55
|
+
* Source media width in pixels, populated from ffprobe after upload
|
|
56
|
+
* assembly. Null for uploads in `initiated`/`uploading` state or
|
|
57
|
+
* when probe failed.
|
|
58
|
+
*
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof UploadStatusResponse
|
|
61
|
+
*/
|
|
62
|
+
source_width?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Source media height in pixels. See `source_width`.
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @memberof UploadStatusResponse
|
|
67
|
+
*/
|
|
68
|
+
source_height?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Source media duration in seconds, from ffprobe after upload
|
|
71
|
+
* assembly. Used by the webapp free-tier budget check to compute
|
|
72
|
+
* realistic billable_seconds (5-second ceiling rounding).
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof UploadStatusResponse
|
|
76
|
+
*/
|
|
77
|
+
source_duration_seconds?: number;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
* @enum {string}
|
|
82
|
+
*/
|
|
83
|
+
export declare enum UploadStatusResponseStatusEnum {
|
|
84
|
+
UPLOADING = "uploading",
|
|
85
|
+
ASSEMBLING = "assembling",
|
|
86
|
+
COMPLETED = "completed",
|
|
87
|
+
CANCELED = "canceled"
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Check if a given object implements the UploadStatusResponse interface.
|
|
91
|
+
*/
|
|
92
|
+
export declare function instanceOfUploadStatusResponse(value: object): value is UploadStatusResponse;
|
|
93
|
+
export declare function UploadStatusResponseFromJSON(json: any): UploadStatusResponse;
|
|
94
|
+
export declare function UploadStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadStatusResponse;
|
|
95
|
+
export declare function UploadStatusResponseToJSON(json: any): UploadStatusResponse;
|
|
96
|
+
export declare function UploadStatusResponseToJSONTyped(value?: UploadStatusResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* SOPHON Encoding API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UploadStatusResponseStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfUploadStatusResponse = instanceOfUploadStatusResponse;
|
|
18
|
+
exports.UploadStatusResponseFromJSON = UploadStatusResponseFromJSON;
|
|
19
|
+
exports.UploadStatusResponseFromJSONTyped = UploadStatusResponseFromJSONTyped;
|
|
20
|
+
exports.UploadStatusResponseToJSON = UploadStatusResponseToJSON;
|
|
21
|
+
exports.UploadStatusResponseToJSONTyped = UploadStatusResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
* @enum {string}
|
|
25
|
+
*/
|
|
26
|
+
var UploadStatusResponseStatusEnum;
|
|
27
|
+
(function (UploadStatusResponseStatusEnum) {
|
|
28
|
+
UploadStatusResponseStatusEnum["UPLOADING"] = "uploading";
|
|
29
|
+
UploadStatusResponseStatusEnum["ASSEMBLING"] = "assembling";
|
|
30
|
+
UploadStatusResponseStatusEnum["COMPLETED"] = "completed";
|
|
31
|
+
UploadStatusResponseStatusEnum["CANCELED"] = "canceled";
|
|
32
|
+
})(UploadStatusResponseStatusEnum || (exports.UploadStatusResponseStatusEnum = UploadStatusResponseStatusEnum = {}));
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the UploadStatusResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfUploadStatusResponse(value) {
|
|
37
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('file_name' in value) || value['file_name'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('total_chunks' in value) || value['total_chunks'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('received_chunks' in value) || value['received_chunks'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('expires_at' in value) || value['expires_at'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
function UploadStatusResponseFromJSON(json) {
|
|
52
|
+
return UploadStatusResponseFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function UploadStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'id': json['id'],
|
|
60
|
+
'status': json['status'],
|
|
61
|
+
'file_name': json['file_name'],
|
|
62
|
+
'total_chunks': json['total_chunks'],
|
|
63
|
+
'received_chunks': json['received_chunks'],
|
|
64
|
+
'expires_at': (new Date(json['expires_at'])),
|
|
65
|
+
'source_width': json['source_width'] == null ? undefined : json['source_width'],
|
|
66
|
+
'source_height': json['source_height'] == null ? undefined : json['source_height'],
|
|
67
|
+
'source_duration_seconds': json['source_duration_seconds'] == null ? undefined : json['source_duration_seconds'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function UploadStatusResponseToJSON(json) {
|
|
71
|
+
return UploadStatusResponseToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
function UploadStatusResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'id': value['id'],
|
|
79
|
+
'status': value['status'],
|
|
80
|
+
'file_name': value['file_name'],
|
|
81
|
+
'total_chunks': value['total_chunks'],
|
|
82
|
+
'received_chunks': value['received_chunks'],
|
|
83
|
+
'expires_at': value['expires_at'].toISOString(),
|
|
84
|
+
'source_width': value['source_width'],
|
|
85
|
+
'source_height': value['source_height'],
|
|
86
|
+
'source_duration_seconds': value['source_duration_seconds'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
* Payload delivered to registered webhook endpoints on terminal job events.
|
|
14
|
+
* Signed with HMAC-SHA256 over `"{timestamp}.{raw_body}"` using the
|
|
15
|
+
* per-webhook secret. Consumers must verify the signature before processing.
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface WebhookDeliveryPayload
|
|
19
|
+
*/
|
|
20
|
+
export interface WebhookDeliveryPayload {
|
|
21
|
+
/**
|
|
22
|
+
* Unique delivery event ID for deduplication.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof WebhookDeliveryPayload
|
|
25
|
+
*/
|
|
26
|
+
event_id: string;
|
|
27
|
+
/**
|
|
28
|
+
* Event type.
|
|
29
|
+
* @type {WebhookDeliveryPayloadTypeEnum}
|
|
30
|
+
* @memberof WebhookDeliveryPayload
|
|
31
|
+
*/
|
|
32
|
+
type: WebhookDeliveryPayloadTypeEnum;
|
|
33
|
+
/**
|
|
34
|
+
* ISO 8601 timestamp of the event.
|
|
35
|
+
* @type {Date}
|
|
36
|
+
* @memberof WebhookDeliveryPayload
|
|
37
|
+
*/
|
|
38
|
+
timestamp: Date;
|
|
39
|
+
/**
|
|
40
|
+
* The job that reached a terminal state.
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof WebhookDeliveryPayload
|
|
43
|
+
*/
|
|
44
|
+
job_id: string;
|
|
45
|
+
/**
|
|
46
|
+
* Terminal job status.
|
|
47
|
+
* @type {WebhookDeliveryPayloadStatusEnum}
|
|
48
|
+
* @memberof WebhookDeliveryPayload
|
|
49
|
+
*/
|
|
50
|
+
status: WebhookDeliveryPayloadStatusEnum;
|
|
51
|
+
/**
|
|
52
|
+
* Opaque metadata from the original job submission.
|
|
53
|
+
* @type {{ [key: string]: any; }}
|
|
54
|
+
* @memberof WebhookDeliveryPayload
|
|
55
|
+
*/
|
|
56
|
+
metadata: {
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @export
|
|
62
|
+
* @enum {string}
|
|
63
|
+
*/
|
|
64
|
+
export declare enum WebhookDeliveryPayloadTypeEnum {
|
|
65
|
+
JOB_COMPLETED = "job.completed",
|
|
66
|
+
JOB_FAILED = "job.failed",
|
|
67
|
+
JOB_CANCELED = "job.canceled"
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
* @enum {string}
|
|
72
|
+
*/
|
|
73
|
+
export declare enum WebhookDeliveryPayloadStatusEnum {
|
|
74
|
+
COMPLETED = "completed",
|
|
75
|
+
FAILED = "failed",
|
|
76
|
+
CANCELED = "canceled"
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the WebhookDeliveryPayload interface.
|
|
80
|
+
*/
|
|
81
|
+
export declare function instanceOfWebhookDeliveryPayload(value: object): value is WebhookDeliveryPayload;
|
|
82
|
+
export declare function WebhookDeliveryPayloadFromJSON(json: any): WebhookDeliveryPayload;
|
|
83
|
+
export declare function WebhookDeliveryPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookDeliveryPayload;
|
|
84
|
+
export declare function WebhookDeliveryPayloadToJSON(json: any): WebhookDeliveryPayload;
|
|
85
|
+
export declare function WebhookDeliveryPayloadToJSONTyped(value?: WebhookDeliveryPayload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* SOPHON Encoding API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.WebhookDeliveryPayloadStatusEnum = exports.WebhookDeliveryPayloadTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfWebhookDeliveryPayload = instanceOfWebhookDeliveryPayload;
|
|
18
|
+
exports.WebhookDeliveryPayloadFromJSON = WebhookDeliveryPayloadFromJSON;
|
|
19
|
+
exports.WebhookDeliveryPayloadFromJSONTyped = WebhookDeliveryPayloadFromJSONTyped;
|
|
20
|
+
exports.WebhookDeliveryPayloadToJSON = WebhookDeliveryPayloadToJSON;
|
|
21
|
+
exports.WebhookDeliveryPayloadToJSONTyped = WebhookDeliveryPayloadToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
* @enum {string}
|
|
25
|
+
*/
|
|
26
|
+
var WebhookDeliveryPayloadTypeEnum;
|
|
27
|
+
(function (WebhookDeliveryPayloadTypeEnum) {
|
|
28
|
+
WebhookDeliveryPayloadTypeEnum["JOB_COMPLETED"] = "job.completed";
|
|
29
|
+
WebhookDeliveryPayloadTypeEnum["JOB_FAILED"] = "job.failed";
|
|
30
|
+
WebhookDeliveryPayloadTypeEnum["JOB_CANCELED"] = "job.canceled";
|
|
31
|
+
})(WebhookDeliveryPayloadTypeEnum || (exports.WebhookDeliveryPayloadTypeEnum = WebhookDeliveryPayloadTypeEnum = {}));
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
* @enum {string}
|
|
35
|
+
*/
|
|
36
|
+
var WebhookDeliveryPayloadStatusEnum;
|
|
37
|
+
(function (WebhookDeliveryPayloadStatusEnum) {
|
|
38
|
+
WebhookDeliveryPayloadStatusEnum["COMPLETED"] = "completed";
|
|
39
|
+
WebhookDeliveryPayloadStatusEnum["FAILED"] = "failed";
|
|
40
|
+
WebhookDeliveryPayloadStatusEnum["CANCELED"] = "canceled";
|
|
41
|
+
})(WebhookDeliveryPayloadStatusEnum || (exports.WebhookDeliveryPayloadStatusEnum = WebhookDeliveryPayloadStatusEnum = {}));
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the WebhookDeliveryPayload interface.
|
|
44
|
+
*/
|
|
45
|
+
function instanceOfWebhookDeliveryPayload(value) {
|
|
46
|
+
if (!('event_id' in value) || value['event_id'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('job_id' in value) || value['job_id'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
function WebhookDeliveryPayloadFromJSON(json) {
|
|
61
|
+
return WebhookDeliveryPayloadFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function WebhookDeliveryPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'event_id': json['event_id'],
|
|
69
|
+
'type': json['type'],
|
|
70
|
+
'timestamp': (new Date(json['timestamp'])),
|
|
71
|
+
'job_id': json['job_id'],
|
|
72
|
+
'status': json['status'],
|
|
73
|
+
'metadata': json['metadata'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function WebhookDeliveryPayloadToJSON(json) {
|
|
77
|
+
return WebhookDeliveryPayloadToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
function WebhookDeliveryPayloadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
'event_id': value['event_id'],
|
|
85
|
+
'type': value['type'],
|
|
86
|
+
'timestamp': value['timestamp'].toISOString(),
|
|
87
|
+
'job_id': value['job_id'],
|
|
88
|
+
'status': value['status'],
|
|
89
|
+
'metadata': value['metadata'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 WebhookListItem
|
|
16
|
+
*/
|
|
17
|
+
export interface WebhookListItem {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WebhookListItem
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WebhookListItem
|
|
28
|
+
*/
|
|
29
|
+
url: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof WebhookListItem
|
|
34
|
+
*/
|
|
35
|
+
active: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof WebhookListItem
|
|
40
|
+
*/
|
|
41
|
+
created_at: Date;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the WebhookListItem interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfWebhookListItem(value: object): value is WebhookListItem;
|
|
47
|
+
export declare function WebhookListItemFromJSON(json: any): WebhookListItem;
|
|
48
|
+
export declare function WebhookListItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookListItem;
|
|
49
|
+
export declare function WebhookListItemToJSON(json: any): WebhookListItem;
|
|
50
|
+
export declare function WebhookListItemToJSONTyped(value?: WebhookListItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* SOPHON Encoding API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfWebhookListItem = instanceOfWebhookListItem;
|
|
17
|
+
exports.WebhookListItemFromJSON = WebhookListItemFromJSON;
|
|
18
|
+
exports.WebhookListItemFromJSONTyped = WebhookListItemFromJSONTyped;
|
|
19
|
+
exports.WebhookListItemToJSON = WebhookListItemToJSON;
|
|
20
|
+
exports.WebhookListItemToJSONTyped = WebhookListItemToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the WebhookListItem interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfWebhookListItem(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('active' in value) || value['active'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('created_at' in value) || value['created_at'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function WebhookListItemFromJSON(json) {
|
|
36
|
+
return WebhookListItemFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function WebhookListItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'url': json['url'],
|
|
45
|
+
'active': json['active'],
|
|
46
|
+
'created_at': (new Date(json['created_at'])),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function WebhookListItemToJSON(json) {
|
|
50
|
+
return WebhookListItemToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function WebhookListItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'url': value['url'],
|
|
59
|
+
'active': value['active'],
|
|
60
|
+
'created_at': value['created_at'].toISOString(),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -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 { WebhookListItem } from './WebhookListItem';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WebhookListResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface WebhookListResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<WebhookListItem>}
|
|
22
|
+
* @memberof WebhookListResponse
|
|
23
|
+
*/
|
|
24
|
+
webhooks: Array<WebhookListItem>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the WebhookListResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfWebhookListResponse(value: object): value is WebhookListResponse;
|
|
30
|
+
export declare function WebhookListResponseFromJSON(json: any): WebhookListResponse;
|
|
31
|
+
export declare function WebhookListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookListResponse;
|
|
32
|
+
export declare function WebhookListResponseToJSON(json: any): WebhookListResponse;
|
|
33
|
+
export declare function WebhookListResponseToJSONTyped(value?: WebhookListResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* SOPHON Encoding API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfWebhookListResponse = instanceOfWebhookListResponse;
|
|
17
|
+
exports.WebhookListResponseFromJSON = WebhookListResponseFromJSON;
|
|
18
|
+
exports.WebhookListResponseFromJSONTyped = WebhookListResponseFromJSONTyped;
|
|
19
|
+
exports.WebhookListResponseToJSON = WebhookListResponseToJSON;
|
|
20
|
+
exports.WebhookListResponseToJSONTyped = WebhookListResponseToJSONTyped;
|
|
21
|
+
const WebhookListItem_1 = require("./WebhookListItem");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the WebhookListResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfWebhookListResponse(value) {
|
|
26
|
+
if (!('webhooks' in value) || value['webhooks'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function WebhookListResponseFromJSON(json) {
|
|
31
|
+
return WebhookListResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function WebhookListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'webhooks': (json['webhooks'].map(WebhookListItem_1.WebhookListItemFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function WebhookListResponseToJSON(json) {
|
|
42
|
+
return WebhookListResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function WebhookListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'webhooks': (value['webhooks'].map(WebhookListItem_1.WebhookListItemToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 WebhookResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface WebhookResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WebhookResponse
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WebhookResponse
|
|
28
|
+
*/
|
|
29
|
+
url: string;
|
|
30
|
+
/**
|
|
31
|
+
* HMAC signing secret (64-char hex string, 32 random bytes).
|
|
32
|
+
* Only returned on creation. Use to verify webhook delivery signatures.
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof WebhookResponse
|
|
36
|
+
*/
|
|
37
|
+
secret: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof WebhookResponse
|
|
42
|
+
*/
|
|
43
|
+
active: boolean;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Date}
|
|
47
|
+
* @memberof WebhookResponse
|
|
48
|
+
*/
|
|
49
|
+
created_at: Date;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the WebhookResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfWebhookResponse(value: object): value is WebhookResponse;
|
|
55
|
+
export declare function WebhookResponseFromJSON(json: any): WebhookResponse;
|
|
56
|
+
export declare function WebhookResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookResponse;
|
|
57
|
+
export declare function WebhookResponseToJSON(json: any): WebhookResponse;
|
|
58
|
+
export declare function WebhookResponseToJSONTyped(value?: WebhookResponse | null, ignoreDiscriminator?: boolean): any;
|