@chunkify/chunkify 0.5.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 (507) hide show
  1. package/CHANGELOG.md +102 -0
  2. package/LICENSE +201 -0
  3. package/README.md +395 -0
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +222 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +222 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +509 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +505 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/pagination.d.mts +62 -0
  37. package/core/pagination.d.mts.map +1 -0
  38. package/core/pagination.d.ts +62 -0
  39. package/core/pagination.d.ts.map +1 -0
  40. package/core/pagination.js +108 -0
  41. package/core/pagination.js.map +1 -0
  42. package/core/pagination.mjs +102 -0
  43. package/core/pagination.mjs.map +1 -0
  44. package/core/resource.d.mts +6 -0
  45. package/core/resource.d.mts.map +1 -0
  46. package/core/resource.d.ts +6 -0
  47. package/core/resource.d.ts.map +1 -0
  48. package/core/resource.js +11 -0
  49. package/core/resource.js.map +1 -0
  50. package/core/resource.mjs +7 -0
  51. package/core/resource.mjs.map +1 -0
  52. package/core/uploads.d.mts +3 -0
  53. package/core/uploads.d.mts.map +1 -0
  54. package/core/uploads.d.ts +3 -0
  55. package/core/uploads.d.ts.map +1 -0
  56. package/core/uploads.js +6 -0
  57. package/core/uploads.js.map +1 -0
  58. package/core/uploads.mjs +2 -0
  59. package/core/uploads.mjs.map +1 -0
  60. package/error.d.mts +2 -0
  61. package/error.d.mts.map +1 -0
  62. package/error.d.ts +2 -0
  63. package/error.d.ts.map +1 -0
  64. package/error.js +6 -0
  65. package/error.js.map +1 -0
  66. package/error.mjs +2 -0
  67. package/error.mjs.map +1 -0
  68. package/index.d.mts +7 -0
  69. package/index.d.mts.map +1 -0
  70. package/index.d.ts +7 -0
  71. package/index.d.ts.map +1 -0
  72. package/index.js +32 -0
  73. package/index.js.map +1 -0
  74. package/index.mjs +8 -0
  75. package/index.mjs.map +1 -0
  76. package/internal/builtin-types.d.mts +73 -0
  77. package/internal/builtin-types.d.mts.map +1 -0
  78. package/internal/builtin-types.d.ts +73 -0
  79. package/internal/builtin-types.d.ts.map +1 -0
  80. package/internal/builtin-types.js +4 -0
  81. package/internal/builtin-types.js.map +1 -0
  82. package/internal/builtin-types.mjs +3 -0
  83. package/internal/builtin-types.mjs.map +1 -0
  84. package/internal/detect-platform.d.mts +15 -0
  85. package/internal/detect-platform.d.mts.map +1 -0
  86. package/internal/detect-platform.d.ts +15 -0
  87. package/internal/detect-platform.d.ts.map +1 -0
  88. package/internal/detect-platform.js +162 -0
  89. package/internal/detect-platform.js.map +1 -0
  90. package/internal/detect-platform.mjs +157 -0
  91. package/internal/detect-platform.mjs.map +1 -0
  92. package/internal/errors.d.mts +3 -0
  93. package/internal/errors.d.mts.map +1 -0
  94. package/internal/errors.d.ts +3 -0
  95. package/internal/errors.d.ts.map +1 -0
  96. package/internal/errors.js +41 -0
  97. package/internal/errors.js.map +1 -0
  98. package/internal/errors.mjs +36 -0
  99. package/internal/errors.mjs.map +1 -0
  100. package/internal/headers.d.mts +20 -0
  101. package/internal/headers.d.mts.map +1 -0
  102. package/internal/headers.d.ts +20 -0
  103. package/internal/headers.d.ts.map +1 -0
  104. package/internal/headers.js +79 -0
  105. package/internal/headers.js.map +1 -0
  106. package/internal/headers.mjs +74 -0
  107. package/internal/headers.mjs.map +1 -0
  108. package/internal/parse.d.mts +12 -0
  109. package/internal/parse.d.mts.map +1 -0
  110. package/internal/parse.d.ts +12 -0
  111. package/internal/parse.d.ts.map +1 -0
  112. package/internal/parse.js +35 -0
  113. package/internal/parse.js.map +1 -0
  114. package/internal/parse.mjs +32 -0
  115. package/internal/parse.mjs.map +1 -0
  116. package/internal/qs/formats.d.mts +7 -0
  117. package/internal/qs/formats.d.mts.map +1 -0
  118. package/internal/qs/formats.d.ts +7 -0
  119. package/internal/qs/formats.d.ts.map +1 -0
  120. package/internal/qs/formats.js +13 -0
  121. package/internal/qs/formats.js.map +1 -0
  122. package/internal/qs/formats.mjs +9 -0
  123. package/internal/qs/formats.mjs.map +1 -0
  124. package/internal/qs/index.d.mts +10 -0
  125. package/internal/qs/index.d.mts.map +1 -0
  126. package/internal/qs/index.d.ts +10 -0
  127. package/internal/qs/index.d.ts.map +1 -0
  128. package/internal/qs/index.js +14 -0
  129. package/internal/qs/index.js.map +1 -0
  130. package/internal/qs/index.mjs +10 -0
  131. package/internal/qs/index.mjs.map +1 -0
  132. package/internal/qs/stringify.d.mts +3 -0
  133. package/internal/qs/stringify.d.mts.map +1 -0
  134. package/internal/qs/stringify.d.ts +3 -0
  135. package/internal/qs/stringify.d.ts.map +1 -0
  136. package/internal/qs/stringify.js +277 -0
  137. package/internal/qs/stringify.js.map +1 -0
  138. package/internal/qs/stringify.mjs +274 -0
  139. package/internal/qs/stringify.mjs.map +1 -0
  140. package/internal/qs/types.d.mts +57 -0
  141. package/internal/qs/types.d.mts.map +1 -0
  142. package/internal/qs/types.d.ts +57 -0
  143. package/internal/qs/types.d.ts.map +1 -0
  144. package/internal/qs/types.js +3 -0
  145. package/internal/qs/types.js.map +1 -0
  146. package/internal/qs/types.mjs +2 -0
  147. package/internal/qs/types.mjs.map +1 -0
  148. package/internal/qs/utils.d.mts +15 -0
  149. package/internal/qs/utils.d.mts.map +1 -0
  150. package/internal/qs/utils.d.ts +15 -0
  151. package/internal/qs/utils.d.ts.map +1 -0
  152. package/internal/qs/utils.js +230 -0
  153. package/internal/qs/utils.js.map +1 -0
  154. package/internal/qs/utils.mjs +217 -0
  155. package/internal/qs/utils.mjs.map +1 -0
  156. package/internal/request-options.d.mts +75 -0
  157. package/internal/request-options.d.mts.map +1 -0
  158. package/internal/request-options.d.ts +75 -0
  159. package/internal/request-options.d.ts.map +1 -0
  160. package/internal/request-options.js +14 -0
  161. package/internal/request-options.js.map +1 -0
  162. package/internal/request-options.mjs +10 -0
  163. package/internal/request-options.mjs.map +1 -0
  164. package/internal/shim-types.d.mts +17 -0
  165. package/internal/shim-types.d.mts.map +1 -0
  166. package/internal/shim-types.d.ts +17 -0
  167. package/internal/shim-types.d.ts.map +1 -0
  168. package/internal/shim-types.js +4 -0
  169. package/internal/shim-types.js.map +1 -0
  170. package/internal/shim-types.mjs +3 -0
  171. package/internal/shim-types.mjs.map +1 -0
  172. package/internal/shims.d.mts +20 -0
  173. package/internal/shims.d.mts.map +1 -0
  174. package/internal/shims.d.ts +20 -0
  175. package/internal/shims.d.ts.map +1 -0
  176. package/internal/shims.js +92 -0
  177. package/internal/shims.js.map +1 -0
  178. package/internal/shims.mjs +85 -0
  179. package/internal/shims.mjs.map +1 -0
  180. package/internal/to-file.d.mts +45 -0
  181. package/internal/to-file.d.mts.map +1 -0
  182. package/internal/to-file.d.ts +45 -0
  183. package/internal/to-file.d.ts.map +1 -0
  184. package/internal/to-file.js +91 -0
  185. package/internal/to-file.js.map +1 -0
  186. package/internal/to-file.mjs +88 -0
  187. package/internal/to-file.mjs.map +1 -0
  188. package/internal/tslib.js +81 -0
  189. package/internal/tslib.mjs +17 -0
  190. package/internal/types.d.mts +69 -0
  191. package/internal/types.d.mts.map +1 -0
  192. package/internal/types.d.ts +69 -0
  193. package/internal/types.d.ts.map +1 -0
  194. package/internal/types.js +4 -0
  195. package/internal/types.js.map +1 -0
  196. package/internal/types.mjs +3 -0
  197. package/internal/types.mjs.map +1 -0
  198. package/internal/uploads.d.mts +42 -0
  199. package/internal/uploads.d.mts.map +1 -0
  200. package/internal/uploads.d.ts +42 -0
  201. package/internal/uploads.d.ts.map +1 -0
  202. package/internal/uploads.js +141 -0
  203. package/internal/uploads.js.map +1 -0
  204. package/internal/uploads.mjs +131 -0
  205. package/internal/uploads.mjs.map +1 -0
  206. package/internal/utils/base64.d.mts +3 -0
  207. package/internal/utils/base64.d.mts.map +1 -0
  208. package/internal/utils/base64.d.ts +3 -0
  209. package/internal/utils/base64.d.ts.map +1 -0
  210. package/internal/utils/base64.js +38 -0
  211. package/internal/utils/base64.js.map +1 -0
  212. package/internal/utils/base64.mjs +33 -0
  213. package/internal/utils/base64.mjs.map +1 -0
  214. package/internal/utils/bytes.d.mts +4 -0
  215. package/internal/utils/bytes.d.mts.map +1 -0
  216. package/internal/utils/bytes.d.ts +4 -0
  217. package/internal/utils/bytes.d.ts.map +1 -0
  218. package/internal/utils/bytes.js +31 -0
  219. package/internal/utils/bytes.js.map +1 -0
  220. package/internal/utils/bytes.mjs +26 -0
  221. package/internal/utils/bytes.mjs.map +1 -0
  222. package/internal/utils/env.d.mts +9 -0
  223. package/internal/utils/env.d.mts.map +1 -0
  224. package/internal/utils/env.d.ts +9 -0
  225. package/internal/utils/env.d.ts.map +1 -0
  226. package/internal/utils/env.js +22 -0
  227. package/internal/utils/env.js.map +1 -0
  228. package/internal/utils/env.mjs +18 -0
  229. package/internal/utils/env.mjs.map +1 -0
  230. package/internal/utils/log.d.mts +37 -0
  231. package/internal/utils/log.d.mts.map +1 -0
  232. package/internal/utils/log.d.ts +37 -0
  233. package/internal/utils/log.d.ts.map +1 -0
  234. package/internal/utils/log.js +85 -0
  235. package/internal/utils/log.js.map +1 -0
  236. package/internal/utils/log.mjs +79 -0
  237. package/internal/utils/log.mjs.map +1 -0
  238. package/internal/utils/path.d.mts +15 -0
  239. package/internal/utils/path.d.mts.map +1 -0
  240. package/internal/utils/path.d.ts +15 -0
  241. package/internal/utils/path.d.ts.map +1 -0
  242. package/internal/utils/path.js +79 -0
  243. package/internal/utils/path.js.map +1 -0
  244. package/internal/utils/path.mjs +74 -0
  245. package/internal/utils/path.mjs.map +1 -0
  246. package/internal/utils/sleep.d.mts +2 -0
  247. package/internal/utils/sleep.d.mts.map +1 -0
  248. package/internal/utils/sleep.d.ts +2 -0
  249. package/internal/utils/sleep.d.ts.map +1 -0
  250. package/internal/utils/sleep.js +7 -0
  251. package/internal/utils/sleep.js.map +1 -0
  252. package/internal/utils/sleep.mjs +3 -0
  253. package/internal/utils/sleep.mjs.map +1 -0
  254. package/internal/utils/uuid.d.mts +5 -0
  255. package/internal/utils/uuid.d.mts.map +1 -0
  256. package/internal/utils/uuid.d.ts +5 -0
  257. package/internal/utils/uuid.d.ts.map +1 -0
  258. package/internal/utils/uuid.js +19 -0
  259. package/internal/utils/uuid.js.map +1 -0
  260. package/internal/utils/uuid.mjs +15 -0
  261. package/internal/utils/uuid.mjs.map +1 -0
  262. package/internal/utils/values.d.mts +18 -0
  263. package/internal/utils/values.d.mts.map +1 -0
  264. package/internal/utils/values.d.ts +18 -0
  265. package/internal/utils/values.d.ts.map +1 -0
  266. package/internal/utils/values.js +112 -0
  267. package/internal/utils/values.js.map +1 -0
  268. package/internal/utils/values.mjs +94 -0
  269. package/internal/utils/values.mjs.map +1 -0
  270. package/internal/utils.d.mts +7 -0
  271. package/internal/utils.d.mts.map +1 -0
  272. package/internal/utils.d.ts +7 -0
  273. package/internal/utils.d.ts.map +1 -0
  274. package/internal/utils.js +11 -0
  275. package/internal/utils.js.map +1 -0
  276. package/internal/utils.mjs +8 -0
  277. package/internal/utils.mjs.map +1 -0
  278. package/package.json +149 -0
  279. package/pagination.d.mts +2 -0
  280. package/pagination.d.mts.map +1 -0
  281. package/pagination.d.ts +2 -0
  282. package/pagination.d.ts.map +1 -0
  283. package/pagination.js +6 -0
  284. package/pagination.js.map +1 -0
  285. package/pagination.mjs +2 -0
  286. package/pagination.mjs.map +1 -0
  287. package/resource.d.mts +2 -0
  288. package/resource.d.mts.map +1 -0
  289. package/resource.d.ts +2 -0
  290. package/resource.d.ts.map +1 -0
  291. package/resource.js +6 -0
  292. package/resource.js.map +1 -0
  293. package/resource.mjs +2 -0
  294. package/resource.mjs.map +1 -0
  295. package/resources/files.d.mts +236 -0
  296. package/resources/files.d.mts.map +1 -0
  297. package/resources/files.d.ts +236 -0
  298. package/resources/files.d.ts.map +1 -0
  299. package/resources/files.js +34 -0
  300. package/resources/files.js.map +1 -0
  301. package/resources/files.mjs +30 -0
  302. package/resources/files.mjs.map +1 -0
  303. package/resources/index.d.mts +11 -0
  304. package/resources/index.d.mts.map +1 -0
  305. package/resources/index.d.ts +11 -0
  306. package/resources/index.d.ts.map +1 -0
  307. package/resources/index.js +25 -0
  308. package/resources/index.js.map +1 -0
  309. package/resources/index.mjs +12 -0
  310. package/resources/index.mjs.map +1 -0
  311. package/resources/jobs/files.d.mts +24 -0
  312. package/resources/jobs/files.d.mts.map +1 -0
  313. package/resources/jobs/files.d.ts +24 -0
  314. package/resources/jobs/files.d.ts.map +1 -0
  315. package/resources/jobs/files.js +16 -0
  316. package/resources/jobs/files.js.map +1 -0
  317. package/resources/jobs/files.mjs +12 -0
  318. package/resources/jobs/files.mjs.map +1 -0
  319. package/resources/jobs/index.d.mts +5 -0
  320. package/resources/jobs/index.d.mts.map +1 -0
  321. package/resources/jobs/index.d.ts +5 -0
  322. package/resources/jobs/index.d.ts.map +1 -0
  323. package/resources/jobs/index.js +13 -0
  324. package/resources/jobs/index.js.map +1 -0
  325. package/resources/jobs/index.mjs +6 -0
  326. package/resources/jobs/index.mjs.map +1 -0
  327. package/resources/jobs/jobs.d.mts +1207 -0
  328. package/resources/jobs/jobs.d.mts.map +1 -0
  329. package/resources/jobs/jobs.d.ts +1207 -0
  330. package/resources/jobs/jobs.d.ts.map +1 -0
  331. package/resources/jobs/jobs.js +64 -0
  332. package/resources/jobs/jobs.js.map +1 -0
  333. package/resources/jobs/jobs.mjs +59 -0
  334. package/resources/jobs/jobs.mjs.map +1 -0
  335. package/resources/jobs/logs.d.mts +63 -0
  336. package/resources/jobs/logs.d.mts.map +1 -0
  337. package/resources/jobs/logs.d.ts +63 -0
  338. package/resources/jobs/logs.d.ts.map +1 -0
  339. package/resources/jobs/logs.js +16 -0
  340. package/resources/jobs/logs.js.map +1 -0
  341. package/resources/jobs/logs.mjs +12 -0
  342. package/resources/jobs/logs.mjs.map +1 -0
  343. package/resources/jobs/transcoders.d.mts +93 -0
  344. package/resources/jobs/transcoders.d.mts.map +1 -0
  345. package/resources/jobs/transcoders.d.ts +93 -0
  346. package/resources/jobs/transcoders.d.ts.map +1 -0
  347. package/resources/jobs/transcoders.js +16 -0
  348. package/resources/jobs/transcoders.js.map +1 -0
  349. package/resources/jobs/transcoders.mjs +12 -0
  350. package/resources/jobs/transcoders.mjs.map +1 -0
  351. package/resources/jobs.d.mts +2 -0
  352. package/resources/jobs.d.mts.map +1 -0
  353. package/resources/jobs.d.ts +2 -0
  354. package/resources/jobs.d.ts.map +1 -0
  355. package/resources/jobs.js +6 -0
  356. package/resources/jobs.js.map +1 -0
  357. package/resources/jobs.mjs +3 -0
  358. package/resources/jobs.mjs.map +1 -0
  359. package/resources/notifications.d.mts +118 -0
  360. package/resources/notifications.d.mts.map +1 -0
  361. package/resources/notifications.d.ts +118 -0
  362. package/resources/notifications.d.ts.map +1 -0
  363. package/resources/notifications.js +42 -0
  364. package/resources/notifications.js.map +1 -0
  365. package/resources/notifications.mjs +38 -0
  366. package/resources/notifications.mjs.map +1 -0
  367. package/resources/projects.d.mts +87 -0
  368. package/resources/projects.d.mts.map +1 -0
  369. package/resources/projects.d.ts +87 -0
  370. package/resources/projects.d.ts.map +1 -0
  371. package/resources/projects.js +51 -0
  372. package/resources/projects.js.map +1 -0
  373. package/resources/projects.mjs +47 -0
  374. package/resources/projects.mjs.map +1 -0
  375. package/resources/shared.d.mts +15 -0
  376. package/resources/shared.d.mts.map +1 -0
  377. package/resources/shared.d.ts +15 -0
  378. package/resources/shared.d.ts.map +1 -0
  379. package/resources/shared.js +4 -0
  380. package/resources/shared.js.map +1 -0
  381. package/resources/shared.mjs +3 -0
  382. package/resources/shared.mjs.map +1 -0
  383. package/resources/sources.d.mts +235 -0
  384. package/resources/sources.d.mts.map +1 -0
  385. package/resources/sources.d.ts +235 -0
  386. package/resources/sources.d.ts.map +1 -0
  387. package/resources/sources.js +43 -0
  388. package/resources/sources.js.map +1 -0
  389. package/resources/sources.mjs +39 -0
  390. package/resources/sources.mjs.map +1 -0
  391. package/resources/storages.d.mts +216 -0
  392. package/resources/storages.d.mts.map +1 -0
  393. package/resources/storages.d.ts +216 -0
  394. package/resources/storages.d.ts.map +1 -0
  395. package/resources/storages.js +41 -0
  396. package/resources/storages.js.map +1 -0
  397. package/resources/storages.mjs +37 -0
  398. package/resources/storages.mjs.map +1 -0
  399. package/resources/tokens.d.mts +74 -0
  400. package/resources/tokens.d.mts.map +1 -0
  401. package/resources/tokens.d.ts +74 -0
  402. package/resources/tokens.d.ts.map +1 -0
  403. package/resources/tokens.js +37 -0
  404. package/resources/tokens.js.map +1 -0
  405. package/resources/tokens.mjs +33 -0
  406. package/resources/tokens.mjs.map +1 -0
  407. package/resources/uploads.d.mts +117 -0
  408. package/resources/uploads.d.mts.map +1 -0
  409. package/resources/uploads.d.ts +117 -0
  410. package/resources/uploads.d.ts.map +1 -0
  411. package/resources/uploads.js +40 -0
  412. package/resources/uploads.js.map +1 -0
  413. package/resources/uploads.mjs +36 -0
  414. package/resources/uploads.mjs.map +1 -0
  415. package/resources/webhooks.d.mts +194 -0
  416. package/resources/webhooks.d.mts.map +1 -0
  417. package/resources/webhooks.d.ts +194 -0
  418. package/resources/webhooks.d.ts.map +1 -0
  419. package/resources/webhooks.js +64 -0
  420. package/resources/webhooks.js.map +1 -0
  421. package/resources/webhooks.mjs +60 -0
  422. package/resources/webhooks.mjs.map +1 -0
  423. package/resources.d.mts +2 -0
  424. package/resources.d.mts.map +1 -0
  425. package/resources.d.ts +2 -0
  426. package/resources.d.ts.map +1 -0
  427. package/resources.js +5 -0
  428. package/resources.js.map +1 -0
  429. package/resources.mjs +2 -0
  430. package/resources.mjs.map +1 -0
  431. package/src/api-promise.ts +2 -0
  432. package/src/client.ts +935 -0
  433. package/src/core/README.md +3 -0
  434. package/src/core/api-promise.ts +92 -0
  435. package/src/core/error.ts +130 -0
  436. package/src/core/pagination.ts +176 -0
  437. package/src/core/resource.ts +11 -0
  438. package/src/core/uploads.ts +2 -0
  439. package/src/error.ts +2 -0
  440. package/src/index.ts +23 -0
  441. package/src/internal/README.md +3 -0
  442. package/src/internal/builtin-types.ts +93 -0
  443. package/src/internal/detect-platform.ts +196 -0
  444. package/src/internal/errors.ts +33 -0
  445. package/src/internal/headers.ts +97 -0
  446. package/src/internal/parse.ts +50 -0
  447. package/src/internal/qs/LICENSE.md +13 -0
  448. package/src/internal/qs/README.md +3 -0
  449. package/src/internal/qs/formats.ts +10 -0
  450. package/src/internal/qs/index.ts +13 -0
  451. package/src/internal/qs/stringify.ts +385 -0
  452. package/src/internal/qs/types.ts +71 -0
  453. package/src/internal/qs/utils.ts +265 -0
  454. package/src/internal/request-options.ts +91 -0
  455. package/src/internal/shim-types.ts +26 -0
  456. package/src/internal/shims.ts +107 -0
  457. package/src/internal/to-file.ts +154 -0
  458. package/src/internal/types.ts +95 -0
  459. package/src/internal/uploads.ts +187 -0
  460. package/src/internal/utils/base64.ts +40 -0
  461. package/src/internal/utils/bytes.ts +32 -0
  462. package/src/internal/utils/env.ts +18 -0
  463. package/src/internal/utils/log.ts +126 -0
  464. package/src/internal/utils/path.ts +88 -0
  465. package/src/internal/utils/sleep.ts +3 -0
  466. package/src/internal/utils/uuid.ts +17 -0
  467. package/src/internal/utils/values.ts +105 -0
  468. package/src/internal/utils.ts +8 -0
  469. package/src/lib/.keep +4 -0
  470. package/src/pagination.ts +2 -0
  471. package/src/resource.ts +2 -0
  472. package/src/resources/files.ts +315 -0
  473. package/src/resources/index.ts +59 -0
  474. package/src/resources/jobs/files.ts +32 -0
  475. package/src/resources/jobs/index.ts +20 -0
  476. package/src/resources/jobs/jobs.ts +1690 -0
  477. package/src/resources/jobs/logs.ts +77 -0
  478. package/src/resources/jobs/transcoders.ts +118 -0
  479. package/src/resources/jobs.ts +3 -0
  480. package/src/resources/notifications.ts +190 -0
  481. package/src/resources/projects.ts +138 -0
  482. package/src/resources/shared.ts +29 -0
  483. package/src/resources/sources.ts +312 -0
  484. package/src/resources/storages.ts +335 -0
  485. package/src/resources/tokens.ts +107 -0
  486. package/src/resources/uploads.ts +164 -0
  487. package/src/resources/webhooks.ts +299 -0
  488. package/src/resources.ts +1 -0
  489. package/src/tsconfig.json +11 -0
  490. package/src/uploads.ts +2 -0
  491. package/src/version.ts +1 -0
  492. package/uploads.d.mts +2 -0
  493. package/uploads.d.mts.map +1 -0
  494. package/uploads.d.ts +2 -0
  495. package/uploads.d.ts.map +1 -0
  496. package/uploads.js +6 -0
  497. package/uploads.js.map +1 -0
  498. package/uploads.mjs +2 -0
  499. package/uploads.mjs.map +1 -0
  500. package/version.d.mts +2 -0
  501. package/version.d.mts.map +1 -0
  502. package/version.d.ts +2 -0
  503. package/version.d.ts.map +1 -0
  504. package/version.js +5 -0
  505. package/version.js.map +1 -0
  506. package/version.mjs +2 -0
  507. package/version.mjs.map +1 -0
@@ -0,0 +1,1207 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as JobsAPI from "./jobs.js";
3
+ import * as Shared from "../shared.js";
4
+ import * as FilesAPI from "./files.js";
5
+ import { FileListResponse, Files } from "./files.js";
6
+ import * as LogsAPI from "./logs.js";
7
+ import { LogListParams, LogListResponse, Logs } from "./logs.js";
8
+ import * as TranscodersAPI from "./transcoders.js";
9
+ import { TranscoderListResponse, Transcoders } from "./transcoders.js";
10
+ import { APIPromise } from "../../core/api-promise.js";
11
+ import { PagePromise, PaginatedResults, type PaginatedResultsParams } from "../../core/pagination.js";
12
+ import { RequestOptions } from "../../internal/request-options.js";
13
+ export declare class Jobs extends APIResource {
14
+ files: FilesAPI.Files;
15
+ logs: LogsAPI.Logs;
16
+ transcoders: TranscodersAPI.Transcoders;
17
+ /**
18
+ * Create a new video processing job with specified parameters
19
+ */
20
+ create(body: JobCreateParams, options?: RequestOptions): APIPromise<Job>;
21
+ /**
22
+ * Retrieve details of a specific job
23
+ */
24
+ retrieve(jobID: string, options?: RequestOptions): APIPromise<Job>;
25
+ /**
26
+ * Retrieve a list of jobs with optional filtering and pagination
27
+ */
28
+ list(query?: JobListParams | null | undefined, options?: RequestOptions): PagePromise<JobsPaginatedResults, Job>;
29
+ /**
30
+ * Delete a job.
31
+ */
32
+ delete(jobID: string, options?: RequestOptions): APIPromise<void>;
33
+ /**
34
+ * Cancel a job.
35
+ */
36
+ cancel(jobID: string, options?: RequestOptions): APIPromise<void>;
37
+ }
38
+ export type JobsPaginatedResults = PaginatedResults<Job>;
39
+ export interface HlsAv1 {
40
+ id: 'hls_av1';
41
+ /**
42
+ * AudioBitrate specifies the audio bitrate in bits per second. Must be between
43
+ * 32Kbps and 512Kbps.
44
+ */
45
+ audio_bitrate?: number;
46
+ /**
47
+ * Bufsize specifies the video buffer size in bits. Must be between 100Kbps and
48
+ * 50Mbps.
49
+ */
50
+ bufsize?: number;
51
+ /**
52
+ * Channels specifies the number of audio channels. Valid values: 1 (mono), 2
53
+ * (stereo), 5 (5.1), 7 (7.1)
54
+ */
55
+ channels?: 1 | 2 | 5 | 7;
56
+ /**
57
+ * Crf (Constant Rate Factor) controls the quality of the output video. Lower
58
+ * values mean better quality but larger file size. Range: 16 to 63. Recommended
59
+ * values: 16-35 for high quality, 35-45 for good quality, 45-63 for acceptable
60
+ * quality.
61
+ */
62
+ crf?: number;
63
+ /**
64
+ * DisableAudio indicates whether to disable audio processing.
65
+ */
66
+ disable_audio?: boolean;
67
+ /**
68
+ * DisableVideo indicates whether to disable video processing.
69
+ */
70
+ disable_video?: boolean;
71
+ /**
72
+ * Duration specifies the duration to process in seconds. Must be a positive value.
73
+ */
74
+ duration?: number;
75
+ /**
76
+ * Framerate specifies the output video frame rate. Must be between 15 and 120 fps.
77
+ */
78
+ framerate?: number;
79
+ /**
80
+ * Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 300.
81
+ */
82
+ gop?: number;
83
+ /**
84
+ * Height specifies the output video height in pixels. Must be between -2 and 7680.
85
+ * Use -2 for automatic calculation while maintaining aspect ratio.
86
+ */
87
+ height?: number;
88
+ /**
89
+ * HlsEnc enables encryption for HLS segments when set to true.
90
+ */
91
+ hls_enc?: boolean;
92
+ /**
93
+ * HlsEncIv specifies the initialization vector for encryption. Maximum length: 64
94
+ * characters. Required when HlsEnc is true.
95
+ */
96
+ hls_enc_iv?: string;
97
+ /**
98
+ * HlsEncKey specifies the encryption key for HLS segments. Maximum length: 64
99
+ * characters. Required when HlsEnc is true.
100
+ */
101
+ hls_enc_key?: string;
102
+ /**
103
+ * HlsEncKeyUrl specifies the URL where clients can fetch the encryption key.
104
+ * Required when HlsEnc is true.
105
+ */
106
+ hls_enc_key_url?: string;
107
+ /**
108
+ * HlsSegmentType specifies the type of HLS segments. Valid values:
109
+ *
110
+ * - mpegts: Traditional MPEG-TS segments, better compatibility
111
+ * - fmp4: Fragmented MP4 segments, better efficiency
112
+ */
113
+ hls_segment_type?: 'mpegts' | 'fmp4';
114
+ /**
115
+ * HlsTime specifies the duration of each HLS segment in seconds. Range: 1 to 10.
116
+ * Shorter segments provide faster startup but more overhead, longer segments are
117
+ * more efficient.
118
+ */
119
+ hls_time?: number;
120
+ /**
121
+ * Level specifies the AV1 profile level. Valid values: 30-31 (main), 41 (main10).
122
+ * Higher levels support higher resolutions and bitrates but require more
123
+ * processing power.
124
+ */
125
+ level?: 30 | 31 | 41;
126
+ /**
127
+ * Maxrate specifies the maximum video bitrate in bits per second. Must be between
128
+ * 100Kbps and 50Mbps.
129
+ */
130
+ maxrate?: number;
131
+ /**
132
+ * Minrate specifies the minimum video bitrate in bits per second. Must be between
133
+ * 100Kbps and 50Mbps.
134
+ */
135
+ minrate?: number;
136
+ movflags?: string;
137
+ /**
138
+ * PixFmt specifies the pixel format. Valid value: yuv420p
139
+ */
140
+ pixfmt?: 'yuv410p' | 'yuv411p' | 'yuv420p' | 'yuv422p' | 'yuv440p' | 'yuv444p' | 'yuvJ411p' | 'yuvJ420p' | 'yuvJ422p' | 'yuvJ440p' | 'yuvJ444p' | 'yuv420p10le' | 'yuv422p10le' | 'yuv440p10le' | 'yuv444p10le' | 'yuv420p12le' | 'yuv422p12le' | 'yuv440p12le' | 'yuv444p12le' | 'yuv420p10be' | 'yuv422p10be' | 'yuv440p10be' | 'yuv444p10be' | 'yuv420p12be' | 'yuv422p12be' | 'yuv440p12be' | 'yuv444p12be';
141
+ /**
142
+ * Preset controls the encoding efficiency and processing intensity. Lower presets
143
+ * use more optimization features, creating smaller files with better quality but
144
+ * requiring more compute time. Higher presets encode faster but produce larger
145
+ * files.
146
+ *
147
+ * Preset ranges:
148
+ *
149
+ * - 6-7: Fast encoding for real-time applications (smaller files)
150
+ * - 8-10: Balanced efficiency and speed for general use
151
+ * - 11-13: Fastest encoding for real-time applications (larger files)
152
+ */
153
+ preset?: '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13';
154
+ /**
155
+ * Profilev specifies the AV1 profile. Valid values:
156
+ *
157
+ * - main: Main profile, good for most applications
158
+ * - main10: Main 10-bit profile, supports 10-bit color
159
+ * - mainstillpicture: Still picture profile, optimized for single images
160
+ */
161
+ profilev?: 'main' | 'main10' | 'mainstillpicture';
162
+ /**
163
+ * Seek specifies the timestamp to start processing from (in seconds). Must be a
164
+ * positive value.
165
+ */
166
+ seek?: number;
167
+ /**
168
+ * VideoBitrate specifies the video bitrate in bits per second. Must be between
169
+ * 100Kbps and 50Mbps.
170
+ */
171
+ video_bitrate?: number;
172
+ /**
173
+ * Width specifies the output video width in pixels. Must be between -2 and 7680.
174
+ * Use -2 for automatic calculation while maintaining aspect ratio.
175
+ */
176
+ width?: number;
177
+ }
178
+ export interface HlsH264 {
179
+ id: 'hls_h264';
180
+ /**
181
+ * AudioBitrate specifies the audio bitrate in bits per second. Must be between
182
+ * 32Kbps and 512Kbps.
183
+ */
184
+ audio_bitrate?: number;
185
+ /**
186
+ * Bufsize specifies the video buffer size in bits. Must be between 100Kbps and
187
+ * 50Mbps.
188
+ */
189
+ bufsize?: number;
190
+ /**
191
+ * Channels specifies the number of audio channels. Valid values: 1 (mono), 2
192
+ * (stereo), 5 (5.1), 7 (7.1)
193
+ */
194
+ channels?: 1 | 2 | 5 | 7;
195
+ /**
196
+ * Crf (Constant Rate Factor) controls the quality of the output video. Lower
197
+ * values mean better quality but larger file size. Range: 16 to 35. Recommended
198
+ * values: 18-28 for high quality, 23-28 for good quality, 28-35 for acceptable
199
+ * quality.
200
+ */
201
+ crf?: number;
202
+ /**
203
+ * DisableAudio indicates whether to disable audio processing.
204
+ */
205
+ disable_audio?: boolean;
206
+ /**
207
+ * DisableVideo indicates whether to disable video processing.
208
+ */
209
+ disable_video?: boolean;
210
+ /**
211
+ * Duration specifies the duration to process in seconds. Must be a positive value.
212
+ */
213
+ duration?: number;
214
+ /**
215
+ * Framerate specifies the output video frame rate. Must be between 15 and 120 fps.
216
+ */
217
+ framerate?: number;
218
+ /**
219
+ * Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 300.
220
+ */
221
+ gop?: number;
222
+ /**
223
+ * Height specifies the output video height in pixels. Must be between -2 and 7680.
224
+ * Use -2 for automatic calculation while maintaining aspect ratio.
225
+ */
226
+ height?: number;
227
+ /**
228
+ * HlsEnc enables encryption for HLS segments when set to true.
229
+ */
230
+ hls_enc?: boolean;
231
+ /**
232
+ * HlsEncIv specifies the initialization vector for encryption. Maximum length: 64
233
+ * characters. Required when HlsEnc is true.
234
+ */
235
+ hls_enc_iv?: string;
236
+ /**
237
+ * HlsEncKey specifies the encryption key for HLS segments. Maximum length: 64
238
+ * characters. Required when HlsEnc is true.
239
+ */
240
+ hls_enc_key?: string;
241
+ /**
242
+ * HlsEncKeyUrl specifies the URL where clients can fetch the encryption key.
243
+ * Required when HlsEnc is true.
244
+ */
245
+ hls_enc_key_url?: string;
246
+ /**
247
+ * HlsSegmentType specifies the type of HLS segments. Valid values:
248
+ *
249
+ * - mpegts: Traditional MPEG-TS segments, better compatibility
250
+ * - fmp4: Fragmented MP4 segments, better efficiency
251
+ */
252
+ hls_segment_type?: 'mpegts' | 'fmp4';
253
+ /**
254
+ * HlsTime specifies the duration of each HLS segment in seconds. Range: 1 to 10.
255
+ * Shorter segments provide faster startup but more overhead, longer segments are
256
+ * more efficient.
257
+ */
258
+ hls_time?: number;
259
+ /**
260
+ * Level specifies the H.264 profile level. Valid values: 10-13 (baseline), 20-22
261
+ * (main), 30-32 (high), 40-42 (high), 50-51 (high). Higher levels support higher
262
+ * resolutions and bitrates but require more processing power.
263
+ */
264
+ level?: 10 | 11 | 12 | 13 | 20 | 21 | 22 | 30 | 31 | 32 | 40 | 41 | 42 | 50 | 51;
265
+ /**
266
+ * Maxrate specifies the maximum video bitrate in bits per second. Must be between
267
+ * 100Kbps and 50Mbps.
268
+ */
269
+ maxrate?: number;
270
+ /**
271
+ * Minrate specifies the minimum video bitrate in bits per second. Must be between
272
+ * 100Kbps and 50Mbps.
273
+ */
274
+ minrate?: number;
275
+ movflags?: string;
276
+ /**
277
+ * PixFmt specifies the pixel format. Valid value: yuv420p
278
+ */
279
+ pixfmt?: 'yuv410p' | 'yuv411p' | 'yuv420p' | 'yuv422p' | 'yuv440p' | 'yuv444p' | 'yuvJ411p' | 'yuvJ420p' | 'yuvJ422p' | 'yuvJ440p' | 'yuvJ444p' | 'yuv420p10le' | 'yuv422p10le' | 'yuv440p10le' | 'yuv444p10le' | 'yuv420p12le' | 'yuv422p12le' | 'yuv440p12le' | 'yuv444p12le' | 'yuv420p10be' | 'yuv422p10be' | 'yuv440p10be' | 'yuv444p10be' | 'yuv420p12be' | 'yuv422p12be' | 'yuv440p12be' | 'yuv444p12be';
280
+ /**
281
+ * Preset specifies the encoding speed preset. Valid values (from fastest to
282
+ * slowest):
283
+ *
284
+ * - ultrafast: Fastest encoding, lowest quality
285
+ * - superfast: Very fast encoding, lower quality
286
+ * - veryfast: Fast encoding, moderate quality
287
+ * - faster: Faster encoding, good quality
288
+ * - fast: Fast encoding, better quality
289
+ * - medium: Balanced preset, best quality
290
+ */
291
+ preset?: 'ultrafast' | 'superfast' | 'veryfast' | 'faster' | 'fast' | 'medium';
292
+ /**
293
+ * Profilev specifies the H.264 profile. Valid values:
294
+ *
295
+ * - baseline: Basic profile, good for mobile devices
296
+ * - main: Main profile, good for most applications
297
+ * - high: High profile, best quality but requires more processing
298
+ * - high10: High 10-bit profile, supports 10-bit color
299
+ * - high422: High 4:2:2 profile, supports 4:2:2 color sampling
300
+ * - high444: High 4:4:4 profile, supports 4:4:4 color sampling
301
+ */
302
+ profilev?: 'baseline' | 'main' | 'high' | 'high10' | 'high422' | 'high444';
303
+ /**
304
+ * Seek specifies the timestamp to start processing from (in seconds). Must be a
305
+ * positive value.
306
+ */
307
+ seek?: number;
308
+ /**
309
+ * VideoBitrate specifies the video bitrate in bits per second. Must be between
310
+ * 100Kbps and 50Mbps.
311
+ */
312
+ video_bitrate?: number;
313
+ /**
314
+ * Width specifies the output video width in pixels. Must be between -2 and 7680.
315
+ * Use -2 for automatic calculation while maintaining aspect ratio.
316
+ */
317
+ width?: number;
318
+ /**
319
+ * X264KeyInt specifies the maximum number of frames between keyframes for H.264
320
+ * encoding. Range: 1 to 300. Higher values can improve compression but may affect
321
+ * seeking.
322
+ */
323
+ x264_keyint?: number;
324
+ }
325
+ export interface HlsH265 {
326
+ id: 'hls_h265';
327
+ /**
328
+ * AudioBitrate specifies the audio bitrate in bits per second. Must be between
329
+ * 32Kbps and 512Kbps.
330
+ */
331
+ audio_bitrate?: number;
332
+ /**
333
+ * Bufsize specifies the video buffer size in bits. Must be between 100Kbps and
334
+ * 50Mbps.
335
+ */
336
+ bufsize?: number;
337
+ /**
338
+ * Channels specifies the number of audio channels. Valid values: 1 (mono), 2
339
+ * (stereo), 5 (5.1), 7 (7.1)
340
+ */
341
+ channels?: 1 | 2 | 5 | 7;
342
+ /**
343
+ * Crf (Constant Rate Factor) controls the quality of the output video. Lower
344
+ * values mean better quality but larger file size. Range: 16 to 35. Recommended
345
+ * values: 18-28 for high quality, 23-28 for good quality, 28-35 for acceptable
346
+ * quality.
347
+ */
348
+ crf?: number;
349
+ /**
350
+ * DisableAudio indicates whether to disable audio processing.
351
+ */
352
+ disable_audio?: boolean;
353
+ /**
354
+ * DisableVideo indicates whether to disable video processing.
355
+ */
356
+ disable_video?: boolean;
357
+ /**
358
+ * Duration specifies the duration to process in seconds. Must be a positive value.
359
+ */
360
+ duration?: number;
361
+ /**
362
+ * Framerate specifies the output video frame rate. Must be between 15 and 120 fps.
363
+ */
364
+ framerate?: number;
365
+ /**
366
+ * Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 300.
367
+ */
368
+ gop?: number;
369
+ /**
370
+ * Height specifies the output video height in pixels. Must be between -2 and 7680.
371
+ * Use -2 for automatic calculation while maintaining aspect ratio.
372
+ */
373
+ height?: number;
374
+ /**
375
+ * HlsEnc enables encryption for HLS segments when set to true.
376
+ */
377
+ hls_enc?: boolean;
378
+ /**
379
+ * HlsEncIv specifies the initialization vector for encryption. Maximum length: 64
380
+ * characters. Required when HlsEnc is true.
381
+ */
382
+ hls_enc_iv?: string;
383
+ /**
384
+ * HlsEncKey specifies the encryption key for HLS segments. Maximum length: 64
385
+ * characters. Required when HlsEnc is true.
386
+ */
387
+ hls_enc_key?: string;
388
+ /**
389
+ * HlsEncKeyUrl specifies the URL where clients can fetch the encryption key.
390
+ * Required when HlsEnc is true.
391
+ */
392
+ hls_enc_key_url?: string;
393
+ /**
394
+ * HlsSegmentType specifies the type of HLS segments. Valid values:
395
+ *
396
+ * - mpegts: Traditional MPEG-TS segments, better compatibility
397
+ * - fmp4: Fragmented MP4 segments, better efficiency
398
+ */
399
+ hls_segment_type?: 'mpegts' | 'fmp4';
400
+ /**
401
+ * HlsTime specifies the duration of each HLS segment in seconds. Range: 1 to 10.
402
+ * Shorter segments provide faster startup but more overhead, longer segments are
403
+ * more efficient.
404
+ */
405
+ hls_time?: number;
406
+ /**
407
+ * Level specifies the H.265 profile level. Valid values: 30-31 (main), 41
408
+ * (main10). Higher levels support higher resolutions and bitrates but require more
409
+ * processing power.
410
+ */
411
+ level?: 30 | 31 | 41;
412
+ /**
413
+ * Maxrate specifies the maximum video bitrate in bits per second. Must be between
414
+ * 100Kbps and 50Mbps.
415
+ */
416
+ maxrate?: number;
417
+ /**
418
+ * Minrate specifies the minimum video bitrate in bits per second. Must be between
419
+ * 100Kbps and 50Mbps.
420
+ */
421
+ minrate?: number;
422
+ movflags?: string;
423
+ /**
424
+ * PixFmt specifies the pixel format. Valid value: yuv420p
425
+ */
426
+ pixfmt?: 'yuv410p' | 'yuv411p' | 'yuv420p' | 'yuv422p' | 'yuv440p' | 'yuv444p' | 'yuvJ411p' | 'yuvJ420p' | 'yuvJ422p' | 'yuvJ440p' | 'yuvJ444p' | 'yuv420p10le' | 'yuv422p10le' | 'yuv440p10le' | 'yuv444p10le' | 'yuv420p12le' | 'yuv422p12le' | 'yuv440p12le' | 'yuv444p12le' | 'yuv420p10be' | 'yuv422p10be' | 'yuv440p10be' | 'yuv444p10be' | 'yuv420p12be' | 'yuv422p12be' | 'yuv440p12be' | 'yuv444p12be';
427
+ /**
428
+ * Preset specifies the encoding speed preset. Valid values (from fastest to
429
+ * slowest):
430
+ *
431
+ * - ultrafast: Fastest encoding, lowest quality
432
+ * - superfast: Very fast encoding, lower quality
433
+ * - veryfast: Fast encoding, moderate quality
434
+ * - faster: Faster encoding, good quality
435
+ * - fast: Fast encoding, better quality
436
+ * - medium: Balanced preset, best quality
437
+ */
438
+ preset?: 'ultrafast' | 'superfast' | 'veryfast' | 'faster' | 'fast' | 'medium';
439
+ /**
440
+ * Profilev specifies the H.265 profile. Valid values:
441
+ *
442
+ * - main: Main profile, good for most applications
443
+ * - main10: Main 10-bit profile, supports 10-bit color
444
+ * - mainstillpicture: Still picture profile, optimized for single images
445
+ */
446
+ profilev?: 'main' | 'main10' | 'mainstillpicture';
447
+ /**
448
+ * Seek specifies the timestamp to start processing from (in seconds). Must be a
449
+ * positive value.
450
+ */
451
+ seek?: number;
452
+ /**
453
+ * VideoBitrate specifies the video bitrate in bits per second. Must be between
454
+ * 100Kbps and 50Mbps.
455
+ */
456
+ video_bitrate?: number;
457
+ /**
458
+ * Width specifies the output video width in pixels. Must be between -2 and 7680.
459
+ * Use -2 for automatic calculation while maintaining aspect ratio.
460
+ */
461
+ width?: number;
462
+ /**
463
+ * X265KeyInt specifies the maximum number of frames between keyframes for H.265
464
+ * encoding. Range: 1 to 300. Higher values can improve compression but may affect
465
+ * seeking.
466
+ */
467
+ x265_keyint?: number;
468
+ }
469
+ export interface Job {
470
+ /**
471
+ * Unique identifier for the job
472
+ */
473
+ id: string;
474
+ /**
475
+ * Billable time in seconds
476
+ */
477
+ billable_time: number;
478
+ /**
479
+ * Creation timestamp
480
+ */
481
+ created_at: string;
482
+ /**
483
+ * A template defines the transcoding parameters and settings for a job
484
+ */
485
+ format: Job.MP4Av1 | Job.MP4H264 | Job.MP4H265 | Job.WebmVp9 | Job.HlsAv1 | Job.HlsH264 | Job.HlsH265 | Job.Jpg;
486
+ /**
487
+ * Progress percentage of the job (0-100)
488
+ */
489
+ progress: number;
490
+ /**
491
+ * ID of the source video being transcoded
492
+ */
493
+ source_id: string;
494
+ /**
495
+ * Current status of the job
496
+ */
497
+ status: 'queued' | 'ingesting' | 'transcoding' | 'downloading' | 'merging' | 'uploading' | 'failed' | 'completed' | 'cancelled' | 'merged' | 'downloaded' | 'transcoded' | 'waiting';
498
+ /**
499
+ * Storage settings for where the job output will be saved
500
+ */
501
+ storage: Job.Storage;
502
+ /**
503
+ * The transcoder configuration for a job
504
+ */
505
+ transcoder: Job.Transcoder;
506
+ /**
507
+ * Last update timestamp
508
+ */
509
+ updated_at: string;
510
+ /**
511
+ * Error message for the job
512
+ */
513
+ error?: Shared.ChunkifyError;
514
+ /**
515
+ * HLS manifest ID
516
+ */
517
+ hls_manifest_id?: string;
518
+ /**
519
+ * Additional metadata for the job
520
+ */
521
+ metadata?: {
522
+ [key: string]: string;
523
+ };
524
+ /**
525
+ * When the job started processing
526
+ */
527
+ started_at?: string;
528
+ }
529
+ export declare namespace Job {
530
+ /**
531
+ * FFmpeg encoding parameters specific to MP4 with AV1 encoding.
532
+ */
533
+ interface MP4Av1 extends Omit<JobsAPI.MP4Av1, 'id'> {
534
+ /**
535
+ * The format ID
536
+ */
537
+ id: 'mp4_h264' | 'mp4_h265' | 'mp4_av1' | 'webm_vp9' | 'hls_h264' | 'hls_h265' | 'hls_av1' | 'jpg';
538
+ }
539
+ /**
540
+ * FFmpeg encoding parameters specific to MP4 with H.264 encoding.
541
+ */
542
+ interface MP4H264 extends Omit<JobsAPI.MP4H264, 'id'> {
543
+ /**
544
+ * The format ID
545
+ */
546
+ id: 'mp4_h264' | 'mp4_h265' | 'mp4_av1' | 'webm_vp9' | 'hls_h264' | 'hls_h265' | 'hls_av1' | 'jpg';
547
+ }
548
+ /**
549
+ * FFmpeg encoding parameters specific to MP4 with H.265 encoding.
550
+ */
551
+ interface MP4H265 extends Omit<JobsAPI.MP4H265, 'id'> {
552
+ /**
553
+ * The format ID
554
+ */
555
+ id: 'mp4_h264' | 'mp4_h265' | 'mp4_av1' | 'webm_vp9' | 'hls_h264' | 'hls_h265' | 'hls_av1' | 'jpg';
556
+ }
557
+ /**
558
+ * FFmpeg encoding parameters specific to WebM with VP9 encoding.
559
+ */
560
+ interface WebmVp9 extends Omit<JobsAPI.WebmVp9, 'id'> {
561
+ /**
562
+ * The format ID
563
+ */
564
+ id: 'mp4_h264' | 'mp4_h265' | 'mp4_av1' | 'webm_vp9' | 'hls_h264' | 'hls_h265' | 'hls_av1' | 'jpg';
565
+ }
566
+ /**
567
+ * FFmpeg encoding parameters specific to HLS with AV1 encoding.
568
+ */
569
+ interface HlsAv1 extends Omit<JobsAPI.HlsAv1, 'id'> {
570
+ /**
571
+ * The format ID
572
+ */
573
+ id: 'mp4_h264' | 'mp4_h265' | 'mp4_av1' | 'webm_vp9' | 'hls_h264' | 'hls_h265' | 'hls_av1' | 'jpg';
574
+ }
575
+ /**
576
+ * FFmpeg encoding parameters specific to HLS with H.264 encoding.
577
+ */
578
+ interface HlsH264 extends Omit<JobsAPI.HlsH264, 'id'> {
579
+ /**
580
+ * The format ID
581
+ */
582
+ id: 'mp4_h264' | 'mp4_h265' | 'mp4_av1' | 'webm_vp9' | 'hls_h264' | 'hls_h265' | 'hls_av1' | 'jpg';
583
+ }
584
+ /**
585
+ * FFmpeg encoding parameters specific to HLS with H.265 encoding.
586
+ */
587
+ interface HlsH265 extends Omit<JobsAPI.HlsH265, 'id'> {
588
+ /**
589
+ * The format ID
590
+ */
591
+ id: 'mp4_h264' | 'mp4_h265' | 'mp4_av1' | 'webm_vp9' | 'hls_h264' | 'hls_h265' | 'hls_av1' | 'jpg';
592
+ }
593
+ /**
594
+ * FFmpeg encoding parameters specific to JPEG image extraction.
595
+ */
596
+ interface Jpg extends Omit<JobsAPI.Jpg, 'id'> {
597
+ /**
598
+ * The format ID
599
+ */
600
+ id: 'mp4_h264' | 'mp4_h265' | 'mp4_av1' | 'webm_vp9' | 'hls_h264' | 'hls_h265' | 'hls_av1' | 'jpg';
601
+ }
602
+ /**
603
+ * Storage settings for where the job output will be saved
604
+ */
605
+ interface Storage {
606
+ /**
607
+ * ID of the storage
608
+ */
609
+ id: string;
610
+ /**
611
+ * Path where the output will be stored
612
+ */
613
+ path: string;
614
+ }
615
+ /**
616
+ * The transcoder configuration for a job
617
+ */
618
+ interface Transcoder {
619
+ /**
620
+ * Whether the transcoder configuration is automatically set by Chunkify
621
+ */
622
+ auto: boolean;
623
+ /**
624
+ * Number of instances allocated
625
+ */
626
+ quantity: number;
627
+ /**
628
+ * Type of transcoder instance
629
+ */
630
+ type: '4vCPU' | '8vCPU' | '16vCPU';
631
+ }
632
+ }
633
+ /**
634
+ * FFmpeg encoding parameters specific to JPEG image extraction.
635
+ */
636
+ export interface Jpg {
637
+ id: 'jpg';
638
+ /**
639
+ * Time interval in seconds at which frames are extracted from the video (e.g.,
640
+ * interval=10 extracts frames at 0s, 10s, 20s, etc.). Must be between 1 and 60
641
+ * seconds.
642
+ */
643
+ interval: number;
644
+ chunk_duration?: number;
645
+ /**
646
+ * Duration specifies the duration to process in seconds. Must be a positive value.
647
+ */
648
+ duration?: number;
649
+ frames?: number;
650
+ height?: number;
651
+ /**
652
+ * Seek specifies the timestamp to start processing from (in seconds). Must be a
653
+ * positive value.
654
+ */
655
+ seek?: number;
656
+ sprite?: boolean;
657
+ width?: number;
658
+ }
659
+ export interface MP4Av1 {
660
+ id: 'mp4_av1';
661
+ /**
662
+ * AudioBitrate specifies the audio bitrate in bits per second. Must be between
663
+ * 32Kbps and 512Kbps.
664
+ */
665
+ audio_bitrate?: number;
666
+ /**
667
+ * Bufsize specifies the video buffer size in bits. Must be between 100Kbps and
668
+ * 50Mbps.
669
+ */
670
+ bufsize?: number;
671
+ /**
672
+ * Channels specifies the number of audio channels. Valid values: 1 (mono), 2
673
+ * (stereo), 5 (5.1), 7 (7.1)
674
+ */
675
+ channels?: 1 | 2 | 5 | 7;
676
+ /**
677
+ * Crf (Constant Rate Factor) controls the quality of the output video. Lower
678
+ * values mean better quality but larger file size. Range: 16 to 63. Recommended
679
+ * values: 16-35 for high quality, 35-45 for good quality, 45-63 for acceptable
680
+ * quality.
681
+ */
682
+ crf?: number;
683
+ /**
684
+ * DisableAudio indicates whether to disable audio processing.
685
+ */
686
+ disable_audio?: boolean;
687
+ /**
688
+ * DisableVideo indicates whether to disable video processing.
689
+ */
690
+ disable_video?: boolean;
691
+ /**
692
+ * Duration specifies the duration to process in seconds. Must be a positive value.
693
+ */
694
+ duration?: number;
695
+ /**
696
+ * Framerate specifies the output video frame rate. Must be between 15 and 120 fps.
697
+ */
698
+ framerate?: number;
699
+ /**
700
+ * Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 300.
701
+ */
702
+ gop?: number;
703
+ /**
704
+ * Height specifies the output video height in pixels. Must be between -2 and 7680.
705
+ * Use -2 for automatic calculation while maintaining aspect ratio.
706
+ */
707
+ height?: number;
708
+ /**
709
+ * Level specifies the AV1 profile level. Valid values: 30-31 (main), 41 (main10).
710
+ * Higher levels support higher resolutions and bitrates but require more
711
+ * processing power.
712
+ */
713
+ level?: 30 | 31 | 41;
714
+ /**
715
+ * Maxrate specifies the maximum video bitrate in bits per second. Must be between
716
+ * 100Kbps and 50Mbps.
717
+ */
718
+ maxrate?: number;
719
+ /**
720
+ * Minrate specifies the minimum video bitrate in bits per second. Must be between
721
+ * 100Kbps and 50Mbps.
722
+ */
723
+ minrate?: number;
724
+ movflags?: string;
725
+ /**
726
+ * PixFmt specifies the pixel format. Valid value: yuv420p
727
+ */
728
+ pixfmt?: 'yuv410p' | 'yuv411p' | 'yuv420p' | 'yuv422p' | 'yuv440p' | 'yuv444p' | 'yuvJ411p' | 'yuvJ420p' | 'yuvJ422p' | 'yuvJ440p' | 'yuvJ444p' | 'yuv420p10le' | 'yuv422p10le' | 'yuv440p10le' | 'yuv444p10le' | 'yuv420p12le' | 'yuv422p12le' | 'yuv440p12le' | 'yuv444p12le' | 'yuv420p10be' | 'yuv422p10be' | 'yuv440p10be' | 'yuv444p10be' | 'yuv420p12be' | 'yuv422p12be' | 'yuv440p12be' | 'yuv444p12be';
729
+ /**
730
+ * Preset controls the encoding efficiency and processing intensity. Lower presets
731
+ * use more optimization features, creating smaller files with better quality but
732
+ * requiring more compute time. Higher presets encode faster but produce larger
733
+ * files.
734
+ *
735
+ * Preset ranges:
736
+ *
737
+ * - 6-7: Fast encoding for real-time applications (smaller files)
738
+ * - 8-10: Balanced efficiency and speed for general use
739
+ * - 11-13: Fastest encoding for real-time applications (larger files)
740
+ */
741
+ preset?: '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13';
742
+ /**
743
+ * Profilev specifies the AV1 profile. Valid values:
744
+ *
745
+ * - main: Main profile, good for most applications
746
+ * - main10: Main 10-bit profile, supports 10-bit color
747
+ * - mainstillpicture: Still picture profile, optimized for single images
748
+ */
749
+ profilev?: 'main' | 'main10' | 'mainstillpicture';
750
+ /**
751
+ * Seek specifies the timestamp to start processing from (in seconds). Must be a
752
+ * positive value.
753
+ */
754
+ seek?: number;
755
+ /**
756
+ * VideoBitrate specifies the video bitrate in bits per second. Must be between
757
+ * 100Kbps and 50Mbps.
758
+ */
759
+ video_bitrate?: number;
760
+ /**
761
+ * Width specifies the output video width in pixels. Must be between -2 and 7680.
762
+ * Use -2 for automatic calculation while maintaining aspect ratio.
763
+ */
764
+ width?: number;
765
+ }
766
+ export interface MP4H264 {
767
+ id: 'mp4_h264';
768
+ /**
769
+ * AudioBitrate specifies the audio bitrate in bits per second. Must be between
770
+ * 32Kbps and 512Kbps.
771
+ */
772
+ audio_bitrate?: number;
773
+ /**
774
+ * Bufsize specifies the video buffer size in bits. Must be between 100Kbps and
775
+ * 50Mbps.
776
+ */
777
+ bufsize?: number;
778
+ /**
779
+ * Channels specifies the number of audio channels. Valid values: 1 (mono), 2
780
+ * (stereo), 5 (5.1), 7 (7.1)
781
+ */
782
+ channels?: 1 | 2 | 5 | 7;
783
+ /**
784
+ * Crf (Constant Rate Factor) controls the quality of the output video. Lower
785
+ * values mean better quality but larger file size. Range: 16 to 35. Recommended
786
+ * values: 18-28 for high quality, 23-28 for good quality, 28-35 for acceptable
787
+ * quality.
788
+ */
789
+ crf?: number;
790
+ /**
791
+ * DisableAudio indicates whether to disable audio processing.
792
+ */
793
+ disable_audio?: boolean;
794
+ /**
795
+ * DisableVideo indicates whether to disable video processing.
796
+ */
797
+ disable_video?: boolean;
798
+ /**
799
+ * Duration specifies the duration to process in seconds. Must be a positive value.
800
+ */
801
+ duration?: number;
802
+ /**
803
+ * Framerate specifies the output video frame rate. Must be between 15 and 120 fps.
804
+ */
805
+ framerate?: number;
806
+ /**
807
+ * Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 300.
808
+ */
809
+ gop?: number;
810
+ /**
811
+ * Height specifies the output video height in pixels. Must be between -2 and 7680.
812
+ * Use -2 for automatic calculation while maintaining aspect ratio.
813
+ */
814
+ height?: number;
815
+ /**
816
+ * Level specifies the H.264 profile level. Valid values: 10-13 (baseline), 20-22
817
+ * (main), 30-32 (high), 40-42 (high), 50-51 (high). Higher levels support higher
818
+ * resolutions and bitrates but require more processing power.
819
+ */
820
+ level?: 10 | 11 | 12 | 13 | 20 | 21 | 22 | 30 | 31 | 32 | 40 | 41 | 42 | 50 | 51;
821
+ /**
822
+ * Maxrate specifies the maximum video bitrate in bits per second. Must be between
823
+ * 100Kbps and 50Mbps.
824
+ */
825
+ maxrate?: number;
826
+ /**
827
+ * Minrate specifies the minimum video bitrate in bits per second. Must be between
828
+ * 100Kbps and 50Mbps.
829
+ */
830
+ minrate?: number;
831
+ movflags?: string;
832
+ /**
833
+ * PixFmt specifies the pixel format. Valid value: yuv420p
834
+ */
835
+ pixfmt?: 'yuv410p' | 'yuv411p' | 'yuv420p' | 'yuv422p' | 'yuv440p' | 'yuv444p' | 'yuvJ411p' | 'yuvJ420p' | 'yuvJ422p' | 'yuvJ440p' | 'yuvJ444p' | 'yuv420p10le' | 'yuv422p10le' | 'yuv440p10le' | 'yuv444p10le' | 'yuv420p12le' | 'yuv422p12le' | 'yuv440p12le' | 'yuv444p12le' | 'yuv420p10be' | 'yuv422p10be' | 'yuv440p10be' | 'yuv444p10be' | 'yuv420p12be' | 'yuv422p12be' | 'yuv440p12be' | 'yuv444p12be';
836
+ /**
837
+ * Preset specifies the encoding speed preset. Valid values (from fastest to
838
+ * slowest):
839
+ *
840
+ * - ultrafast: Fastest encoding, lowest quality
841
+ * - superfast: Very fast encoding, lower quality
842
+ * - veryfast: Fast encoding, moderate quality
843
+ * - faster: Faster encoding, good quality
844
+ * - fast: Fast encoding, better quality
845
+ * - medium: Balanced preset, best quality
846
+ */
847
+ preset?: 'ultrafast' | 'superfast' | 'veryfast' | 'faster' | 'fast' | 'medium';
848
+ /**
849
+ * Profilev specifies the H.264 profile. Valid values:
850
+ *
851
+ * - baseline: Basic profile, good for mobile devices
852
+ * - main: Main profile, good for most applications
853
+ * - high: High profile, best quality but requires more processing
854
+ * - high10: High 10-bit profile, supports 10-bit color
855
+ * - high422: High 4:2:2 profile, supports 4:2:2 color sampling
856
+ * - high444: High 4:4:4 profile, supports 4:4:4 color sampling
857
+ */
858
+ profilev?: 'baseline' | 'main' | 'high' | 'high10' | 'high422' | 'high444';
859
+ /**
860
+ * Seek specifies the timestamp to start processing from (in seconds). Must be a
861
+ * positive value.
862
+ */
863
+ seek?: number;
864
+ /**
865
+ * VideoBitrate specifies the video bitrate in bits per second. Must be between
866
+ * 100Kbps and 50Mbps.
867
+ */
868
+ video_bitrate?: number;
869
+ /**
870
+ * Width specifies the output video width in pixels. Must be between -2 and 7680.
871
+ * Use -2 for automatic calculation while maintaining aspect ratio.
872
+ */
873
+ width?: number;
874
+ /**
875
+ * X264KeyInt specifies the maximum number of frames between keyframes for H.264
876
+ * encoding. Range: 1 to 300. Higher values can improve compression but may affect
877
+ * seeking.
878
+ */
879
+ x264_keyint?: number;
880
+ }
881
+ export interface MP4H265 {
882
+ id: 'mp4_h265';
883
+ /**
884
+ * AudioBitrate specifies the audio bitrate in bits per second. Must be between
885
+ * 32Kbps and 512Kbps.
886
+ */
887
+ audio_bitrate?: number;
888
+ /**
889
+ * Bufsize specifies the video buffer size in bits. Must be between 100Kbps and
890
+ * 50Mbps.
891
+ */
892
+ bufsize?: number;
893
+ /**
894
+ * Channels specifies the number of audio channels. Valid values: 1 (mono), 2
895
+ * (stereo), 5 (5.1), 7 (7.1)
896
+ */
897
+ channels?: 1 | 2 | 5 | 7;
898
+ /**
899
+ * Crf (Constant Rate Factor) controls the quality of the output video. Lower
900
+ * values mean better quality but larger file size. Range: 16 to 35. Recommended
901
+ * values: 18-28 for high quality, 23-28 for good quality, 28-35 for acceptable
902
+ * quality.
903
+ */
904
+ crf?: number;
905
+ /**
906
+ * DisableAudio indicates whether to disable audio processing.
907
+ */
908
+ disable_audio?: boolean;
909
+ /**
910
+ * DisableVideo indicates whether to disable video processing.
911
+ */
912
+ disable_video?: boolean;
913
+ /**
914
+ * Duration specifies the duration to process in seconds. Must be a positive value.
915
+ */
916
+ duration?: number;
917
+ /**
918
+ * Framerate specifies the output video frame rate. Must be between 15 and 120 fps.
919
+ */
920
+ framerate?: number;
921
+ /**
922
+ * Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 300.
923
+ */
924
+ gop?: number;
925
+ /**
926
+ * Height specifies the output video height in pixels. Must be between -2 and 7680.
927
+ * Use -2 for automatic calculation while maintaining aspect ratio.
928
+ */
929
+ height?: number;
930
+ /**
931
+ * Level specifies the H.265 profile level. Valid values: 30-31 (main), 41
932
+ * (main10). Higher levels support higher resolutions and bitrates but require more
933
+ * processing power.
934
+ */
935
+ level?: 30 | 31 | 41;
936
+ /**
937
+ * Maxrate specifies the maximum video bitrate in bits per second. Must be between
938
+ * 100Kbps and 50Mbps.
939
+ */
940
+ maxrate?: number;
941
+ /**
942
+ * Minrate specifies the minimum video bitrate in bits per second. Must be between
943
+ * 100Kbps and 50Mbps.
944
+ */
945
+ minrate?: number;
946
+ movflags?: string;
947
+ /**
948
+ * PixFmt specifies the pixel format. Valid value: yuv420p
949
+ */
950
+ pixfmt?: 'yuv410p' | 'yuv411p' | 'yuv420p' | 'yuv422p' | 'yuv440p' | 'yuv444p' | 'yuvJ411p' | 'yuvJ420p' | 'yuvJ422p' | 'yuvJ440p' | 'yuvJ444p' | 'yuv420p10le' | 'yuv422p10le' | 'yuv440p10le' | 'yuv444p10le' | 'yuv420p12le' | 'yuv422p12le' | 'yuv440p12le' | 'yuv444p12le' | 'yuv420p10be' | 'yuv422p10be' | 'yuv440p10be' | 'yuv444p10be' | 'yuv420p12be' | 'yuv422p12be' | 'yuv440p12be' | 'yuv444p12be';
951
+ /**
952
+ * Preset specifies the encoding speed preset. Valid values (from fastest to
953
+ * slowest):
954
+ *
955
+ * - ultrafast: Fastest encoding, lowest quality
956
+ * - superfast: Very fast encoding, lower quality
957
+ * - veryfast: Fast encoding, moderate quality
958
+ * - faster: Faster encoding, good quality
959
+ * - fast: Fast encoding, better quality
960
+ * - medium: Balanced preset, best quality
961
+ */
962
+ preset?: 'ultrafast' | 'superfast' | 'veryfast' | 'faster' | 'fast' | 'medium';
963
+ /**
964
+ * Profilev specifies the H.265 profile. Valid values:
965
+ *
966
+ * - main: Main profile, good for most applications
967
+ * - main10: Main 10-bit profile, supports 10-bit color
968
+ * - mainstillpicture: Still picture profile, optimized for single images
969
+ */
970
+ profilev?: 'main' | 'main10' | 'mainstillpicture';
971
+ /**
972
+ * Seek specifies the timestamp to start processing from (in seconds). Must be a
973
+ * positive value.
974
+ */
975
+ seek?: number;
976
+ /**
977
+ * VideoBitrate specifies the video bitrate in bits per second. Must be between
978
+ * 100Kbps and 50Mbps.
979
+ */
980
+ video_bitrate?: number;
981
+ /**
982
+ * Width specifies the output video width in pixels. Must be between -2 and 7680.
983
+ * Use -2 for automatic calculation while maintaining aspect ratio.
984
+ */
985
+ width?: number;
986
+ /**
987
+ * X265KeyInt specifies the maximum number of frames between keyframes for H.265
988
+ * encoding. Range: 1 to 300. Higher values can improve compression but may affect
989
+ * seeking.
990
+ */
991
+ x265_keyint?: number;
992
+ }
993
+ export interface WebmVp9 {
994
+ id: 'webm_vp9';
995
+ /**
996
+ * AudioBitrate specifies the audio bitrate in bits per second. Must be between
997
+ * 32Kbps and 512Kbps.
998
+ */
999
+ audio_bitrate?: number;
1000
+ /**
1001
+ * Bufsize specifies the video buffer size in bits. Must be between 100Kbps and
1002
+ * 50Mbps.
1003
+ */
1004
+ bufsize?: number;
1005
+ /**
1006
+ * Channels specifies the number of audio channels. Valid values: 1 (mono), 2
1007
+ * (stereo), 5 (5.1), 7 (7.1)
1008
+ */
1009
+ channels?: 1 | 2 | 5 | 7;
1010
+ /**
1011
+ * CpuUsed specifies the CPU usage level for VP9 encoding. Range: 0 to 8. Lower
1012
+ * values mean better quality but slower encoding, higher values mean faster
1013
+ * encoding but lower quality. Recommended values: 0-2 for high quality, 2-4 for
1014
+ * good quality, 4-6 for balanced, 6-8 for speed
1015
+ */
1016
+ cpu_used?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8';
1017
+ /**
1018
+ * Crf (Constant Rate Factor) controls the quality of the output video. Lower
1019
+ * values mean better quality but larger file size. Range: 15 to 35. Recommended
1020
+ * values: 18-28 for high quality, 23-28 for good quality, 28-35 for acceptable
1021
+ * quality.
1022
+ */
1023
+ crf?: number;
1024
+ /**
1025
+ * DisableAudio indicates whether to disable audio processing.
1026
+ */
1027
+ disable_audio?: boolean;
1028
+ /**
1029
+ * DisableVideo indicates whether to disable video processing.
1030
+ */
1031
+ disable_video?: boolean;
1032
+ /**
1033
+ * Duration specifies the duration to process in seconds. Must be a positive value.
1034
+ */
1035
+ duration?: number;
1036
+ /**
1037
+ * Framerate specifies the output video frame rate. Must be between 15 and 120 fps.
1038
+ */
1039
+ framerate?: number;
1040
+ /**
1041
+ * Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 300.
1042
+ */
1043
+ gop?: number;
1044
+ /**
1045
+ * Height specifies the output video height in pixels. Must be between -2 and 7680.
1046
+ * Use -2 for automatic calculation while maintaining aspect ratio.
1047
+ */
1048
+ height?: number;
1049
+ /**
1050
+ * Maxrate specifies the maximum video bitrate in bits per second. Must be between
1051
+ * 100Kbps and 50Mbps.
1052
+ */
1053
+ maxrate?: number;
1054
+ /**
1055
+ * Minrate specifies the minimum video bitrate in bits per second. Must be between
1056
+ * 100Kbps and 50Mbps.
1057
+ */
1058
+ minrate?: number;
1059
+ /**
1060
+ * PixFmt specifies the pixel format. Valid value: yuv420p
1061
+ */
1062
+ pixfmt?: 'yuv410p' | 'yuv411p' | 'yuv420p' | 'yuv422p' | 'yuv440p' | 'yuv444p' | 'yuvJ411p' | 'yuvJ420p' | 'yuvJ422p' | 'yuvJ440p' | 'yuvJ444p' | 'yuv420p10le' | 'yuv422p10le' | 'yuv440p10le' | 'yuv444p10le' | 'yuv420p12le' | 'yuv422p12le' | 'yuv440p12le' | 'yuv444p12le' | 'yuv420p10be' | 'yuv422p10be' | 'yuv440p10be' | 'yuv444p10be' | 'yuv420p12be' | 'yuv422p12be' | 'yuv440p12be' | 'yuv444p12be';
1063
+ /**
1064
+ * Quality specifies the VP9 encoding quality preset. Valid values:
1065
+ *
1066
+ * - good: Balanced quality preset, good for most applications
1067
+ * - best: Best quality preset, slower encoding
1068
+ * - realtime: Fast encoding preset, suitable for live streaming
1069
+ */
1070
+ quality?: 'good' | 'best' | 'realtime';
1071
+ /**
1072
+ * Seek specifies the timestamp to start processing from (in seconds). Must be a
1073
+ * positive value.
1074
+ */
1075
+ seek?: number;
1076
+ /**
1077
+ * VideoBitrate specifies the video bitrate in bits per second. Must be between
1078
+ * 100Kbps and 50Mbps.
1079
+ */
1080
+ video_bitrate?: number;
1081
+ /**
1082
+ * Width specifies the output video width in pixels. Must be between -2 and 7680.
1083
+ * Use -2 for automatic calculation while maintaining aspect ratio.
1084
+ */
1085
+ width?: number;
1086
+ }
1087
+ export interface JobCreateParams {
1088
+ /**
1089
+ * Required format configuration, one and only one valid format configuration must
1090
+ * be provided. If you want to use a format without specifying any configuration,
1091
+ * use an empty object in the corresponding field.
1092
+ */
1093
+ format: MP4Av1 | MP4H264 | MP4H265 | WebmVp9 | HlsAv1 | HlsH264 | HlsH265 | Jpg;
1094
+ /**
1095
+ * The ID of the source file to transcode
1096
+ */
1097
+ source_id: string;
1098
+ /**
1099
+ * Optional HLS manifest configuration Use the same hls manifest ID to group
1100
+ * multiple jobs into a single HLS manifest By default, it's automatically
1101
+ * generated if no set for HLS jobs
1102
+ */
1103
+ hls_manifest_id?: string;
1104
+ /**
1105
+ * Optional metadata to attach to the job (max 1024 bytes)
1106
+ */
1107
+ metadata?: {
1108
+ [key: string]: string;
1109
+ };
1110
+ /**
1111
+ * Optional storage configuration
1112
+ */
1113
+ storage?: JobCreateParams.Storage;
1114
+ /**
1115
+ * Optional transcoder configuration. If not provided, the system will
1116
+ * automatically calculate the optimal quantity and CPU type based on the source
1117
+ * file specifications and output requirements. This auto-scaling ensures efficient
1118
+ * resource utilization.
1119
+ */
1120
+ transcoder?: JobCreateParams.Transcoder;
1121
+ }
1122
+ export declare namespace JobCreateParams {
1123
+ /**
1124
+ * Optional storage configuration
1125
+ */
1126
+ interface Storage {
1127
+ /**
1128
+ * Storage Id specifies the storage configuration to use from pre-configured
1129
+ * storage options. Must be 4-64 characters long and contain only alphanumeric
1130
+ * characters, underscores and hyphens. Optional if Storage Path is provided.
1131
+ */
1132
+ id?: string;
1133
+ /**
1134
+ * Storage Path specifies a custom storage path where processed files will be
1135
+ * stored. Must be a valid file path with max length of 1024 characters. Optional
1136
+ * if Storage Id is provided.
1137
+ */
1138
+ path?: string;
1139
+ }
1140
+ /**
1141
+ * Optional transcoder configuration. If not provided, the system will
1142
+ * automatically calculate the optimal quantity and CPU type based on the source
1143
+ * file specifications and output requirements. This auto-scaling ensures efficient
1144
+ * resource utilization.
1145
+ */
1146
+ interface Transcoder {
1147
+ /**
1148
+ * Quantity specifies the number of transcoder instances. Required if Type is set.
1149
+ */
1150
+ quantity?: number;
1151
+ /**
1152
+ * Type specifies the CPU configuration for each transcoder instance. Required if
1153
+ * Quantity is set.
1154
+ */
1155
+ type?: '4vCPU' | '8vCPU' | '16vCPU';
1156
+ }
1157
+ }
1158
+ export interface JobListParams extends PaginatedResultsParams {
1159
+ /**
1160
+ * Filter by job ID
1161
+ */
1162
+ id?: string;
1163
+ created?: JobListParams.Created;
1164
+ /**
1165
+ * Filter by format id
1166
+ */
1167
+ format_id?: 'mp4_h264' | 'mp4_h265' | 'mp4_av1' | 'webm_vp9' | 'hls_h264' | 'hls_h265' | 'hls_av1' | 'jpg';
1168
+ /**
1169
+ * Filter by hls manifest ID
1170
+ */
1171
+ hls_manifest_id?: string;
1172
+ /**
1173
+ * Filter by metadata
1174
+ */
1175
+ metadata?: Array<Array<string>>;
1176
+ /**
1177
+ * Filter by source ID
1178
+ */
1179
+ source_id?: string;
1180
+ /**
1181
+ * Filter by job status
1182
+ */
1183
+ status?: 'completed' | 'processing' | 'failed' | 'cancelled' | 'queued';
1184
+ }
1185
+ export declare namespace JobListParams {
1186
+ interface Created {
1187
+ /**
1188
+ * Filter by creation date greater than or equal
1189
+ */
1190
+ gte?: number;
1191
+ /**
1192
+ * Filter by creation date less than or equal
1193
+ */
1194
+ lte?: number;
1195
+ /**
1196
+ * Sort by creation date (asc/desc)
1197
+ */
1198
+ sort?: 'asc' | 'desc';
1199
+ }
1200
+ }
1201
+ export declare namespace Jobs {
1202
+ export { type HlsAv1 as HlsAv1, type HlsH264 as HlsH264, type HlsH265 as HlsH265, type Job as Job, type Jpg as Jpg, type MP4Av1 as MP4Av1, type MP4H264 as MP4H264, type MP4H265 as MP4H265, type WebmVp9 as WebmVp9, type JobsPaginatedResults as JobsPaginatedResults, type JobCreateParams as JobCreateParams, type JobListParams as JobListParams, };
1203
+ export { Files as Files, type FileListResponse as FileListResponse };
1204
+ export { Logs as Logs, type LogListResponse as LogListResponse, type LogListParams as LogListParams };
1205
+ export { Transcoders as Transcoders, type TranscoderListResponse as TranscoderListResponse };
1206
+ }
1207
+ //# sourceMappingURL=jobs.d.ts.map