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