@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.
Files changed (230) hide show
  1. package/.github/workflows/publish.yml +56 -0
  2. package/.openapi-generator/FILES +73 -0
  3. package/.openapi-generator/VERSION +1 -0
  4. package/.openapi-generator-ignore +23 -0
  5. package/LICENSE +12 -0
  6. package/README.md +164 -0
  7. package/dist/apis/DownloadsApi.d.ts +63 -0
  8. package/dist/apis/DownloadsApi.js +58 -0
  9. package/dist/apis/HealthApi.d.ts +92 -0
  10. package/dist/apis/HealthApi.js +85 -0
  11. package/dist/apis/JobsApi.d.ts +225 -0
  12. package/dist/apis/JobsApi.js +245 -0
  13. package/dist/apis/UploadsApi.d.ts +228 -0
  14. package/dist/apis/UploadsApi.js +255 -0
  15. package/dist/apis/WebhooksApi.d.ts +138 -0
  16. package/dist/apis/WebhooksApi.js +152 -0
  17. package/dist/apis/index.d.ts +5 -0
  18. package/dist/apis/index.js +23 -0
  19. package/dist/esm/apis/DownloadsApi.d.ts +63 -0
  20. package/dist/esm/apis/DownloadsApi.js +54 -0
  21. package/dist/esm/apis/HealthApi.d.ts +92 -0
  22. package/dist/esm/apis/HealthApi.js +81 -0
  23. package/dist/esm/apis/JobsApi.d.ts +225 -0
  24. package/dist/esm/apis/JobsApi.js +241 -0
  25. package/dist/esm/apis/UploadsApi.d.ts +228 -0
  26. package/dist/esm/apis/UploadsApi.js +251 -0
  27. package/dist/esm/apis/WebhooksApi.d.ts +138 -0
  28. package/dist/esm/apis/WebhooksApi.js +148 -0
  29. package/dist/esm/apis/index.d.ts +5 -0
  30. package/dist/esm/apis/index.js +7 -0
  31. package/dist/esm/helpers/index.d.ts +3 -0
  32. package/dist/esm/helpers/index.js +3 -0
  33. package/dist/esm/helpers/jobs.d.ts +48 -0
  34. package/dist/esm/helpers/jobs.js +61 -0
  35. package/dist/esm/helpers/uploads.d.ts +71 -0
  36. package/dist/esm/helpers/uploads.js +146 -0
  37. package/dist/esm/helpers/webhooks.d.ts +23 -0
  38. package/dist/esm/helpers/webhooks.js +84 -0
  39. package/dist/esm/index.d.ts +4 -0
  40. package/dist/esm/index.js +6 -0
  41. package/dist/esm/models/CompleteUploadResponse.d.ts +57 -0
  42. package/dist/esm/models/CompleteUploadResponse.js +63 -0
  43. package/dist/esm/models/CreateJobOutputOptions.d.ts +55 -0
  44. package/dist/esm/models/CreateJobOutputOptions.js +46 -0
  45. package/dist/esm/models/CreateJobRequest.d.ts +61 -0
  46. package/dist/esm/models/CreateJobRequest.js +56 -0
  47. package/dist/esm/models/CreateUploadRequest.d.ts +44 -0
  48. package/dist/esm/models/CreateUploadRequest.js +51 -0
  49. package/dist/esm/models/CreateUploadResponse.d.ts +52 -0
  50. package/dist/esm/models/CreateUploadResponse.js +55 -0
  51. package/dist/esm/models/CreateWebhookRequest.d.ts +40 -0
  52. package/dist/esm/models/CreateWebhookRequest.js +45 -0
  53. package/dist/esm/models/ErrorBody.d.ts +72 -0
  54. package/dist/esm/models/ErrorBody.js +74 -0
  55. package/dist/esm/models/ErrorEnvelope.d.ts +33 -0
  56. package/dist/esm/models/ErrorEnvelope.js +44 -0
  57. package/dist/esm/models/JobOutputInfo.d.ts +95 -0
  58. package/dist/esm/models/JobOutputInfo.js +72 -0
  59. package/dist/esm/models/JobProfile.d.ts +49 -0
  60. package/dist/esm/models/JobProfile.js +69 -0
  61. package/dist/esm/models/JobProgress.d.ts +75 -0
  62. package/dist/esm/models/JobProgress.js +60 -0
  63. package/dist/esm/models/JobResponse.d.ts +134 -0
  64. package/dist/esm/models/JobResponse.js +94 -0
  65. package/dist/esm/models/JobSourceInfo.d.ts +62 -0
  66. package/dist/esm/models/JobSourceInfo.js +53 -0
  67. package/dist/esm/models/JobSourceType.d.ts +24 -0
  68. package/dist/esm/models/JobSourceType.js +44 -0
  69. package/dist/esm/models/JobStatus.d.ts +31 -0
  70. package/dist/esm/models/JobStatus.js +51 -0
  71. package/dist/esm/models/ListJobsResponse.d.ts +45 -0
  72. package/dist/esm/models/ListJobsResponse.js +50 -0
  73. package/dist/esm/models/OutputContainer.d.ts +27 -0
  74. package/dist/esm/models/OutputContainer.js +47 -0
  75. package/dist/esm/models/ReadyResponse.d.ts +38 -0
  76. package/dist/esm/models/ReadyResponse.js +45 -0
  77. package/dist/esm/models/UploadJobSource.d.ts +39 -0
  78. package/dist/esm/models/UploadJobSource.js +48 -0
  79. package/dist/esm/models/UploadPartResponse.d.ts +38 -0
  80. package/dist/esm/models/UploadPartResponse.js +47 -0
  81. package/dist/esm/models/UploadStatusResponse.d.ts +96 -0
  82. package/dist/esm/models/UploadStatusResponse.js +80 -0
  83. package/dist/esm/models/WebhookDeliveryPayload.d.ts +85 -0
  84. package/dist/esm/models/WebhookDeliveryPayload.js +83 -0
  85. package/dist/esm/models/WebhookListItem.d.ts +50 -0
  86. package/dist/esm/models/WebhookListItem.js +55 -0
  87. package/dist/esm/models/WebhookListResponse.d.ts +33 -0
  88. package/dist/esm/models/WebhookListResponse.js +44 -0
  89. package/dist/esm/models/WebhookResponse.d.ts +58 -0
  90. package/dist/esm/models/WebhookResponse.js +59 -0
  91. package/dist/esm/models/index.d.ts +25 -0
  92. package/dist/esm/models/index.js +27 -0
  93. package/dist/esm/runtime.d.ts +184 -0
  94. package/dist/esm/runtime.js +348 -0
  95. package/dist/helpers/index.d.ts +3 -0
  96. package/dist/helpers/index.js +19 -0
  97. package/dist/helpers/jobs.d.ts +48 -0
  98. package/dist/helpers/jobs.js +67 -0
  99. package/dist/helpers/uploads.d.ts +71 -0
  100. package/dist/helpers/uploads.js +149 -0
  101. package/dist/helpers/webhooks.d.ts +23 -0
  102. package/dist/helpers/webhooks.js +89 -0
  103. package/dist/index.d.ts +4 -0
  104. package/dist/index.js +22 -0
  105. package/dist/models/CompleteUploadResponse.d.ts +57 -0
  106. package/dist/models/CompleteUploadResponse.js +71 -0
  107. package/dist/models/CreateJobOutputOptions.d.ts +55 -0
  108. package/dist/models/CreateJobOutputOptions.js +53 -0
  109. package/dist/models/CreateJobRequest.d.ts +61 -0
  110. package/dist/models/CreateJobRequest.js +63 -0
  111. package/dist/models/CreateUploadRequest.d.ts +44 -0
  112. package/dist/models/CreateUploadRequest.js +58 -0
  113. package/dist/models/CreateUploadResponse.d.ts +52 -0
  114. package/dist/models/CreateUploadResponse.js +62 -0
  115. package/dist/models/CreateWebhookRequest.d.ts +40 -0
  116. package/dist/models/CreateWebhookRequest.js +52 -0
  117. package/dist/models/ErrorBody.d.ts +72 -0
  118. package/dist/models/ErrorBody.js +82 -0
  119. package/dist/models/ErrorEnvelope.d.ts +33 -0
  120. package/dist/models/ErrorEnvelope.js +51 -0
  121. package/dist/models/JobOutputInfo.d.ts +95 -0
  122. package/dist/models/JobOutputInfo.js +80 -0
  123. package/dist/models/JobProfile.d.ts +49 -0
  124. package/dist/models/JobProfile.js +77 -0
  125. package/dist/models/JobProgress.d.ts +75 -0
  126. package/dist/models/JobProgress.js +67 -0
  127. package/dist/models/JobResponse.d.ts +134 -0
  128. package/dist/models/JobResponse.js +101 -0
  129. package/dist/models/JobSourceInfo.d.ts +62 -0
  130. package/dist/models/JobSourceInfo.js +60 -0
  131. package/dist/models/JobSourceType.d.ts +24 -0
  132. package/dist/models/JobSourceType.js +52 -0
  133. package/dist/models/JobStatus.d.ts +31 -0
  134. package/dist/models/JobStatus.js +59 -0
  135. package/dist/models/ListJobsResponse.d.ts +45 -0
  136. package/dist/models/ListJobsResponse.js +57 -0
  137. package/dist/models/OutputContainer.d.ts +27 -0
  138. package/dist/models/OutputContainer.js +55 -0
  139. package/dist/models/ReadyResponse.d.ts +38 -0
  140. package/dist/models/ReadyResponse.js +52 -0
  141. package/dist/models/UploadJobSource.d.ts +39 -0
  142. package/dist/models/UploadJobSource.js +55 -0
  143. package/dist/models/UploadPartResponse.d.ts +38 -0
  144. package/dist/models/UploadPartResponse.js +54 -0
  145. package/dist/models/UploadStatusResponse.d.ts +96 -0
  146. package/dist/models/UploadStatusResponse.js +88 -0
  147. package/dist/models/WebhookDeliveryPayload.d.ts +85 -0
  148. package/dist/models/WebhookDeliveryPayload.js +91 -0
  149. package/dist/models/WebhookListItem.d.ts +50 -0
  150. package/dist/models/WebhookListItem.js +62 -0
  151. package/dist/models/WebhookListResponse.d.ts +33 -0
  152. package/dist/models/WebhookListResponse.js +51 -0
  153. package/dist/models/WebhookResponse.d.ts +58 -0
  154. package/dist/models/WebhookResponse.js +66 -0
  155. package/dist/models/index.d.ts +25 -0
  156. package/dist/models/index.js +43 -0
  157. package/dist/runtime.d.ts +184 -0
  158. package/dist/runtime.js +364 -0
  159. package/docs/CompleteUploadResponse.md +40 -0
  160. package/docs/CreateJobOutputOptions.md +39 -0
  161. package/docs/CreateJobRequest.md +42 -0
  162. package/docs/CreateUploadRequest.md +38 -0
  163. package/docs/CreateUploadResponse.md +40 -0
  164. package/docs/CreateWebhookRequest.md +36 -0
  165. package/docs/DownloadsApi.md +78 -0
  166. package/docs/ErrorBody.md +40 -0
  167. package/docs/ErrorEnvelope.md +34 -0
  168. package/docs/HealthApi.md +129 -0
  169. package/docs/JobOutputInfo.md +50 -0
  170. package/docs/JobProfile.md +33 -0
  171. package/docs/JobProgress.md +48 -0
  172. package/docs/JobResponse.md +62 -0
  173. package/docs/JobSourceInfo.md +44 -0
  174. package/docs/JobSourceType.md +33 -0
  175. package/docs/JobStatus.md +33 -0
  176. package/docs/JobsApi.md +407 -0
  177. package/docs/ListJobsResponse.md +38 -0
  178. package/docs/OutputContainer.md +33 -0
  179. package/docs/ReadyResponse.md +36 -0
  180. package/docs/UploadJobSource.md +37 -0
  181. package/docs/UploadPartResponse.md +36 -0
  182. package/docs/UploadStatusResponse.md +50 -0
  183. package/docs/UploadsApi.md +415 -0
  184. package/docs/WebhookDeliveryPayload.md +45 -0
  185. package/docs/WebhookEventsApi.md +91 -0
  186. package/docs/WebhookListItem.md +40 -0
  187. package/docs/WebhookListResponse.md +34 -0
  188. package/docs/WebhookResponse.md +42 -0
  189. package/docs/WebhooksApi.md +235 -0
  190. package/package.json +24 -0
  191. package/src/apis/DownloadsApi.ts +114 -0
  192. package/src/apis/HealthApi.ts +160 -0
  193. package/src/apis/JobsApi.ts +491 -0
  194. package/src/apis/UploadsApi.ts +522 -0
  195. package/src/apis/WebhooksApi.ts +298 -0
  196. package/src/apis/index.ts +7 -0
  197. package/src/helpers/index.ts +3 -0
  198. package/src/helpers/jobs.ts +112 -0
  199. package/src/helpers/uploads.ts +243 -0
  200. package/src/helpers/webhooks.ts +134 -0
  201. package/src/index.ts +7 -0
  202. package/src/models/CompleteUploadResponse.ts +102 -0
  203. package/src/models/CreateJobOutputOptions.ts +101 -0
  204. package/src/models/CreateJobRequest.ts +123 -0
  205. package/src/models/CreateUploadRequest.ts +84 -0
  206. package/src/models/CreateUploadResponse.ts +95 -0
  207. package/src/models/CreateWebhookRequest.ts +76 -0
  208. package/src/models/ErrorBody.ts +116 -0
  209. package/src/models/ErrorEnvelope.ts +74 -0
  210. package/src/models/JobOutputInfo.ts +149 -0
  211. package/src/models/JobProfile.ts +76 -0
  212. package/src/models/JobProgress.ts +133 -0
  213. package/src/models/JobResponse.ts +236 -0
  214. package/src/models/JobSourceInfo.ts +106 -0
  215. package/src/models/JobSourceType.ts +51 -0
  216. package/src/models/JobStatus.ts +58 -0
  217. package/src/models/ListJobsResponse.ts +91 -0
  218. package/src/models/OutputContainer.ts +54 -0
  219. package/src/models/ReadyResponse.ts +74 -0
  220. package/src/models/UploadJobSource.ts +85 -0
  221. package/src/models/UploadPartResponse.ts +75 -0
  222. package/src/models/UploadStatusResponse.ts +153 -0
  223. package/src/models/WebhookDeliveryPayload.ts +134 -0
  224. package/src/models/WebhookListItem.ts +93 -0
  225. package/src/models/WebhookListResponse.ts +74 -0
  226. package/src/models/WebhookResponse.ts +104 -0
  227. package/src/models/index.ts +27 -0
  228. package/src/runtime.ts +450 -0
  229. package/tsconfig.esm.json +7 -0
  230. 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;