transloadit 3.0.2 → 4.0.0-2

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 (477) hide show
  1. package/CHANGELOG.md +9 -12
  2. package/README.md +175 -129
  3. package/dist/ApiError.d.ts +20 -0
  4. package/dist/ApiError.d.ts.map +1 -0
  5. package/dist/ApiError.js +35 -0
  6. package/dist/ApiError.js.map +1 -0
  7. package/dist/InconsistentResponseError.d.ts +4 -0
  8. package/dist/InconsistentResponseError.d.ts.map +1 -0
  9. package/dist/InconsistentResponseError.js +7 -0
  10. package/dist/InconsistentResponseError.js.map +1 -0
  11. package/dist/PaginationStream.d.ts +14 -0
  12. package/dist/PaginationStream.d.ts.map +1 -0
  13. package/dist/PaginationStream.js +39 -0
  14. package/dist/PaginationStream.js.map +1 -0
  15. package/dist/PollingTimeoutError.d.ts +5 -0
  16. package/dist/PollingTimeoutError.d.ts.map +1 -0
  17. package/dist/PollingTimeoutError.js +8 -0
  18. package/dist/PollingTimeoutError.js.map +1 -0
  19. package/dist/Transloadit.d.ts +227 -0
  20. package/dist/Transloadit.d.ts.map +1 -0
  21. package/dist/Transloadit.js +628 -0
  22. package/dist/Transloadit.js.map +1 -0
  23. package/dist/alphalib/types/assemblyStatus.d.ts +6208 -0
  24. package/dist/alphalib/types/assemblyStatus.d.ts.map +1 -0
  25. package/dist/alphalib/types/assemblyStatus.js +285 -0
  26. package/dist/alphalib/types/assemblyStatus.js.map +1 -0
  27. package/dist/alphalib/types/robots/_index.d.ts +56966 -0
  28. package/dist/alphalib/types/robots/_index.d.ts.map +1 -0
  29. package/dist/alphalib/types/robots/_index.js +347 -0
  30. package/dist/alphalib/types/robots/_index.js.map +1 -0
  31. package/dist/alphalib/types/robots/_instructions-primitives.d.ts +2157 -0
  32. package/dist/alphalib/types/robots/_instructions-primitives.d.ts.map +1 -0
  33. package/dist/alphalib/types/robots/_instructions-primitives.js +655 -0
  34. package/dist/alphalib/types/robots/_instructions-primitives.js.map +1 -0
  35. package/dist/alphalib/types/robots/audio-artwork.d.ts +628 -0
  36. package/dist/alphalib/types/robots/audio-artwork.d.ts.map +1 -0
  37. package/dist/alphalib/types/robots/audio-artwork.js +55 -0
  38. package/dist/alphalib/types/robots/audio-artwork.js.map +1 -0
  39. package/dist/alphalib/types/robots/audio-concat.d.ts +632 -0
  40. package/dist/alphalib/types/robots/audio-concat.d.ts.map +1 -0
  41. package/dist/alphalib/types/robots/audio-concat.js +66 -0
  42. package/dist/alphalib/types/robots/audio-concat.js.map +1 -0
  43. package/dist/alphalib/types/robots/audio-encode.d.ts +629 -0
  44. package/dist/alphalib/types/robots/audio-encode.d.ts.map +1 -0
  45. package/dist/alphalib/types/robots/audio-encode.js +55 -0
  46. package/dist/alphalib/types/robots/audio-encode.js.map +1 -0
  47. package/dist/alphalib/types/robots/audio-loop.d.ts +631 -0
  48. package/dist/alphalib/types/robots/audio-loop.d.ts.map +1 -0
  49. package/dist/alphalib/types/robots/audio-loop.js +54 -0
  50. package/dist/alphalib/types/robots/audio-loop.js.map +1 -0
  51. package/dist/alphalib/types/robots/audio-merge.d.ts +637 -0
  52. package/dist/alphalib/types/robots/audio-merge.d.ts.map +1 -0
  53. package/dist/alphalib/types/robots/audio-merge.js +65 -0
  54. package/dist/alphalib/types/robots/audio-merge.js.map +1 -0
  55. package/dist/alphalib/types/robots/audio-waveform.d.ts +642 -0
  56. package/dist/alphalib/types/robots/audio-waveform.d.ts.map +1 -0
  57. package/dist/alphalib/types/robots/audio-waveform.js +80 -0
  58. package/dist/alphalib/types/robots/audio-waveform.js.map +1 -0
  59. package/dist/alphalib/types/robots/azure-import.d.ts +46 -0
  60. package/dist/alphalib/types/robots/azure-import.d.ts.map +1 -0
  61. package/dist/alphalib/types/robots/azure-import.js +58 -0
  62. package/dist/alphalib/types/robots/azure-import.js.map +1 -0
  63. package/dist/alphalib/types/robots/azure-store.d.ts +129 -0
  64. package/dist/alphalib/types/robots/azure-store.d.ts.map +1 -0
  65. package/dist/alphalib/types/robots/azure-store.js +73 -0
  66. package/dist/alphalib/types/robots/azure-store.js.map +1 -0
  67. package/dist/alphalib/types/robots/backblaze-import.d.ts +49 -0
  68. package/dist/alphalib/types/robots/backblaze-import.d.ts.map +1 -0
  69. package/dist/alphalib/types/robots/backblaze-import.js +66 -0
  70. package/dist/alphalib/types/robots/backblaze-import.js.map +1 -0
  71. package/dist/alphalib/types/robots/backblaze-store.d.ts +111 -0
  72. package/dist/alphalib/types/robots/backblaze-store.d.ts.map +1 -0
  73. package/dist/alphalib/types/robots/backblaze-store.js +58 -0
  74. package/dist/alphalib/types/robots/backblaze-store.js.map +1 -0
  75. package/dist/alphalib/types/robots/cloudfiles-import.d.ts +55 -0
  76. package/dist/alphalib/types/robots/cloudfiles-import.d.ts.map +1 -0
  77. package/dist/alphalib/types/robots/cloudfiles-import.js +65 -0
  78. package/dist/alphalib/types/robots/cloudfiles-import.js.map +1 -0
  79. package/dist/alphalib/types/robots/cloudfiles-store.d.ts +114 -0
  80. package/dist/alphalib/types/robots/cloudfiles-store.d.ts.map +1 -0
  81. package/dist/alphalib/types/robots/cloudfiles-store.js +56 -0
  82. package/dist/alphalib/types/robots/cloudfiles-store.js.map +1 -0
  83. package/dist/alphalib/types/robots/cloudflare-import.d.ts +52 -0
  84. package/dist/alphalib/types/robots/cloudflare-import.d.ts.map +1 -0
  85. package/dist/alphalib/types/robots/cloudflare-import.js +68 -0
  86. package/dist/alphalib/types/robots/cloudflare-import.js.map +1 -0
  87. package/dist/alphalib/types/robots/cloudflare-store.d.ts +117 -0
  88. package/dist/alphalib/types/robots/cloudflare-store.d.ts.map +1 -0
  89. package/dist/alphalib/types/robots/cloudflare-store.js +57 -0
  90. package/dist/alphalib/types/robots/cloudflare-store.js.map +1 -0
  91. package/dist/alphalib/types/robots/digitalocean-import.d.ts +52 -0
  92. package/dist/alphalib/types/robots/digitalocean-import.d.ts.map +1 -0
  93. package/dist/alphalib/types/robots/digitalocean-import.js +65 -0
  94. package/dist/alphalib/types/robots/digitalocean-import.js.map +1 -0
  95. package/dist/alphalib/types/robots/digitalocean-store.d.ts +123 -0
  96. package/dist/alphalib/types/robots/digitalocean-store.d.ts.map +1 -0
  97. package/dist/alphalib/types/robots/digitalocean-store.js +62 -0
  98. package/dist/alphalib/types/robots/digitalocean-store.js.map +1 -0
  99. package/dist/alphalib/types/robots/document-autorotate.d.ts +91 -0
  100. package/dist/alphalib/types/robots/document-autorotate.d.ts.map +1 -0
  101. package/dist/alphalib/types/robots/document-autorotate.js +31 -0
  102. package/dist/alphalib/types/robots/document-autorotate.js.map +1 -0
  103. package/dist/alphalib/types/robots/document-convert.d.ts +118 -0
  104. package/dist/alphalib/types/robots/document-convert.d.ts.map +1 -0
  105. package/dist/alphalib/types/robots/document-convert.js +182 -0
  106. package/dist/alphalib/types/robots/document-convert.js.map +1 -0
  107. package/dist/alphalib/types/robots/document-merge.d.ts +97 -0
  108. package/dist/alphalib/types/robots/document-merge.d.ts.map +1 -0
  109. package/dist/alphalib/types/robots/document-merge.js +66 -0
  110. package/dist/alphalib/types/robots/document-merge.js.map +1 -0
  111. package/dist/alphalib/types/robots/document-ocr.d.ts +100 -0
  112. package/dist/alphalib/types/robots/document-ocr.d.ts.map +1 -0
  113. package/dist/alphalib/types/robots/document-ocr.js +65 -0
  114. package/dist/alphalib/types/robots/document-ocr.js.map +1 -0
  115. package/dist/alphalib/types/robots/document-split.d.ts +94 -0
  116. package/dist/alphalib/types/robots/document-split.d.ts.map +1 -0
  117. package/dist/alphalib/types/robots/document-split.js +34 -0
  118. package/dist/alphalib/types/robots/document-split.js.map +1 -0
  119. package/dist/alphalib/types/robots/document-thumbs.d.ts +134 -0
  120. package/dist/alphalib/types/robots/document-thumbs.d.ts.map +1 -0
  121. package/dist/alphalib/types/robots/document-thumbs.js +111 -0
  122. package/dist/alphalib/types/robots/document-thumbs.js.map +1 -0
  123. package/dist/alphalib/types/robots/dropbox-import.d.ts +43 -0
  124. package/dist/alphalib/types/robots/dropbox-import.d.ts.map +1 -0
  125. package/dist/alphalib/types/robots/dropbox-import.js +52 -0
  126. package/dist/alphalib/types/robots/dropbox-import.js.map +1 -0
  127. package/dist/alphalib/types/robots/dropbox-store.d.ts +114 -0
  128. package/dist/alphalib/types/robots/dropbox-store.d.ts.map +1 -0
  129. package/dist/alphalib/types/robots/dropbox-store.js +49 -0
  130. package/dist/alphalib/types/robots/dropbox-store.js.map +1 -0
  131. package/dist/alphalib/types/robots/edgly-deliver.d.ts +19 -0
  132. package/dist/alphalib/types/robots/edgly-deliver.d.ts.map +1 -0
  133. package/dist/alphalib/types/robots/edgly-deliver.js +31 -0
  134. package/dist/alphalib/types/robots/edgly-deliver.js.map +1 -0
  135. package/dist/alphalib/types/robots/file-compress.d.ts +106 -0
  136. package/dist/alphalib/types/robots/file-compress.d.ts.map +1 -0
  137. package/dist/alphalib/types/robots/file-compress.js +102 -0
  138. package/dist/alphalib/types/robots/file-compress.js.map +1 -0
  139. package/dist/alphalib/types/robots/file-decompress.d.ts +94 -0
  140. package/dist/alphalib/types/robots/file-decompress.d.ts.map +1 -0
  141. package/dist/alphalib/types/robots/file-decompress.js +81 -0
  142. package/dist/alphalib/types/robots/file-decompress.js.map +1 -0
  143. package/dist/alphalib/types/robots/file-filter.d.ts +107 -0
  144. package/dist/alphalib/types/robots/file-filter.d.ts.map +1 -0
  145. package/dist/alphalib/types/robots/file-filter.js +108 -0
  146. package/dist/alphalib/types/robots/file-filter.js.map +1 -0
  147. package/dist/alphalib/types/robots/file-hash.d.ts +94 -0
  148. package/dist/alphalib/types/robots/file-hash.d.ts.map +1 -0
  149. package/dist/alphalib/types/robots/file-hash.js +49 -0
  150. package/dist/alphalib/types/robots/file-hash.js.map +1 -0
  151. package/dist/alphalib/types/robots/file-preview.d.ts +393 -0
  152. package/dist/alphalib/types/robots/file-preview.d.ts.map +1 -0
  153. package/dist/alphalib/types/robots/file-preview.js +155 -0
  154. package/dist/alphalib/types/robots/file-preview.js.map +1 -0
  155. package/dist/alphalib/types/robots/file-read.d.ts +91 -0
  156. package/dist/alphalib/types/robots/file-read.d.ts.map +1 -0
  157. package/dist/alphalib/types/robots/file-read.js +34 -0
  158. package/dist/alphalib/types/robots/file-read.js.map +1 -0
  159. package/dist/alphalib/types/robots/file-serve.d.ts +95 -0
  160. package/dist/alphalib/types/robots/file-serve.d.ts.map +1 -0
  161. package/dist/alphalib/types/robots/file-serve.js +56 -0
  162. package/dist/alphalib/types/robots/file-serve.js.map +1 -0
  163. package/dist/alphalib/types/robots/file-verify.d.ts +100 -0
  164. package/dist/alphalib/types/robots/file-verify.d.ts.map +1 -0
  165. package/dist/alphalib/types/robots/file-verify.js +52 -0
  166. package/dist/alphalib/types/robots/file-verify.js.map +1 -0
  167. package/dist/alphalib/types/robots/file-virusscan.d.ts +97 -0
  168. package/dist/alphalib/types/robots/file-virusscan.d.ts.map +1 -0
  169. package/dist/alphalib/types/robots/file-virusscan.js +55 -0
  170. package/dist/alphalib/types/robots/file-virusscan.js.map +1 -0
  171. package/dist/alphalib/types/robots/file-watermark.d.ts +92 -0
  172. package/dist/alphalib/types/robots/file-watermark.d.ts.map +1 -0
  173. package/dist/alphalib/types/robots/file-watermark.js +13 -0
  174. package/dist/alphalib/types/robots/file-watermark.js.map +1 -0
  175. package/dist/alphalib/types/robots/ftp-import.d.ts +46 -0
  176. package/dist/alphalib/types/robots/ftp-import.d.ts.map +1 -0
  177. package/dist/alphalib/types/robots/ftp-import.js +47 -0
  178. package/dist/alphalib/types/robots/ftp-import.js.map +1 -0
  179. package/dist/alphalib/types/robots/ftp-store.d.ts +120 -0
  180. package/dist/alphalib/types/robots/ftp-store.d.ts.map +1 -0
  181. package/dist/alphalib/types/robots/ftp-store.js +57 -0
  182. package/dist/alphalib/types/robots/ftp-store.js.map +1 -0
  183. package/dist/alphalib/types/robots/google-import.d.ts +40 -0
  184. package/dist/alphalib/types/robots/google-import.d.ts.map +1 -0
  185. package/dist/alphalib/types/robots/google-import.js +65 -0
  186. package/dist/alphalib/types/robots/google-import.js.map +1 -0
  187. package/dist/alphalib/types/robots/google-store.d.ts +113 -0
  188. package/dist/alphalib/types/robots/google-store.d.ts.map +1 -0
  189. package/dist/alphalib/types/robots/google-store.js +86 -0
  190. package/dist/alphalib/types/robots/google-store.js.map +1 -0
  191. package/dist/alphalib/types/robots/html-convert.d.ts +115 -0
  192. package/dist/alphalib/types/robots/html-convert.d.ts.map +1 -0
  193. package/dist/alphalib/types/robots/html-convert.js +81 -0
  194. package/dist/alphalib/types/robots/html-convert.js.map +1 -0
  195. package/dist/alphalib/types/robots/http-import.d.ts +42 -0
  196. package/dist/alphalib/types/robots/http-import.d.ts.map +1 -0
  197. package/dist/alphalib/types/robots/http-import.js +76 -0
  198. package/dist/alphalib/types/robots/http-import.js.map +1 -0
  199. package/dist/alphalib/types/robots/image-describe.d.ts +103 -0
  200. package/dist/alphalib/types/robots/image-describe.d.ts.map +1 -0
  201. package/dist/alphalib/types/robots/image-describe.js +66 -0
  202. package/dist/alphalib/types/robots/image-describe.js.map +1 -0
  203. package/dist/alphalib/types/robots/image-facedetect.d.ts +109 -0
  204. package/dist/alphalib/types/robots/image-facedetect.d.ts.map +1 -0
  205. package/dist/alphalib/types/robots/image-facedetect.js +125 -0
  206. package/dist/alphalib/types/robots/image-facedetect.js.map +1 -0
  207. package/dist/alphalib/types/robots/image-generate.d.ts +229 -0
  208. package/dist/alphalib/types/robots/image-generate.d.ts.map +1 -0
  209. package/dist/alphalib/types/robots/image-generate.js +27 -0
  210. package/dist/alphalib/types/robots/image-generate.js.map +1 -0
  211. package/dist/alphalib/types/robots/image-merge.d.ts +109 -0
  212. package/dist/alphalib/types/robots/image-merge.d.ts.map +1 -0
  213. package/dist/alphalib/types/robots/image-merge.js +74 -0
  214. package/dist/alphalib/types/robots/image-merge.js.map +1 -0
  215. package/dist/alphalib/types/robots/image-ocr.d.ts +100 -0
  216. package/dist/alphalib/types/robots/image-ocr.d.ts.map +1 -0
  217. package/dist/alphalib/types/robots/image-ocr.js +64 -0
  218. package/dist/alphalib/types/robots/image-ocr.js.map +1 -0
  219. package/dist/alphalib/types/robots/image-optimize.d.ts +103 -0
  220. package/dist/alphalib/types/robots/image-optimize.d.ts.map +1 -0
  221. package/dist/alphalib/types/robots/image-optimize.js +60 -0
  222. package/dist/alphalib/types/robots/image-optimize.js.map +1 -0
  223. package/dist/alphalib/types/robots/image-remove-background.d.ts +98 -0
  224. package/dist/alphalib/types/robots/image-remove-background.d.ts.map +1 -0
  225. package/dist/alphalib/types/robots/image-remove-background.js +21 -0
  226. package/dist/alphalib/types/robots/image-remove-background.js.map +1 -0
  227. package/dist/alphalib/types/robots/image-resize.d.ts +696 -0
  228. package/dist/alphalib/types/robots/image-resize.d.ts.map +1 -0
  229. package/dist/alphalib/types/robots/image-resize.js +364 -0
  230. package/dist/alphalib/types/robots/image-resize.js.map +1 -0
  231. package/dist/alphalib/types/robots/media-playlist.d.ts +115 -0
  232. package/dist/alphalib/types/robots/media-playlist.d.ts.map +1 -0
  233. package/dist/alphalib/types/robots/media-playlist.js +56 -0
  234. package/dist/alphalib/types/robots/media-playlist.js.map +1 -0
  235. package/dist/alphalib/types/robots/meta-write.d.ts +623 -0
  236. package/dist/alphalib/types/robots/meta-write.d.ts.map +1 -0
  237. package/dist/alphalib/types/robots/meta-write.js +53 -0
  238. package/dist/alphalib/types/robots/meta-write.js.map +1 -0
  239. package/dist/alphalib/types/robots/minio-import.d.ts +52 -0
  240. package/dist/alphalib/types/robots/minio-import.d.ts.map +1 -0
  241. package/dist/alphalib/types/robots/minio-import.js +68 -0
  242. package/dist/alphalib/types/robots/minio-import.js.map +1 -0
  243. package/dist/alphalib/types/robots/minio-store.d.ts +120 -0
  244. package/dist/alphalib/types/robots/minio-store.d.ts.map +1 -0
  245. package/dist/alphalib/types/robots/minio-store.js +61 -0
  246. package/dist/alphalib/types/robots/minio-store.js.map +1 -0
  247. package/dist/alphalib/types/robots/progress-simulate.d.ts +29 -0
  248. package/dist/alphalib/types/robots/progress-simulate.d.ts.map +1 -0
  249. package/dist/alphalib/types/robots/progress-simulate.js +15 -0
  250. package/dist/alphalib/types/robots/progress-simulate.js.map +1 -0
  251. package/dist/alphalib/types/robots/s3-import.d.ts +52 -0
  252. package/dist/alphalib/types/robots/s3-import.d.ts.map +1 -0
  253. package/dist/alphalib/types/robots/s3-import.js +104 -0
  254. package/dist/alphalib/types/robots/s3-import.js.map +1 -0
  255. package/dist/alphalib/types/robots/s3-store.d.ts +135 -0
  256. package/dist/alphalib/types/robots/s3-store.d.ts.map +1 -0
  257. package/dist/alphalib/types/robots/s3-store.js +118 -0
  258. package/dist/alphalib/types/robots/s3-store.js.map +1 -0
  259. package/dist/alphalib/types/robots/script-run.d.ts +94 -0
  260. package/dist/alphalib/types/robots/script-run.d.ts.map +1 -0
  261. package/dist/alphalib/types/robots/script-run.js +79 -0
  262. package/dist/alphalib/types/robots/script-run.js.map +1 -0
  263. package/dist/alphalib/types/robots/sftp-import.d.ts +43 -0
  264. package/dist/alphalib/types/robots/sftp-import.d.ts.map +1 -0
  265. package/dist/alphalib/types/robots/sftp-import.js +45 -0
  266. package/dist/alphalib/types/robots/sftp-import.js.map +1 -0
  267. package/dist/alphalib/types/robots/sftp-store.d.ts +120 -0
  268. package/dist/alphalib/types/robots/sftp-store.d.ts.map +1 -0
  269. package/dist/alphalib/types/robots/sftp-store.js +58 -0
  270. package/dist/alphalib/types/robots/sftp-store.js.map +1 -0
  271. package/dist/alphalib/types/robots/speech-transcribe.d.ts +210 -0
  272. package/dist/alphalib/types/robots/speech-transcribe.d.ts.map +1 -0
  273. package/dist/alphalib/types/robots/speech-transcribe.js +80 -0
  274. package/dist/alphalib/types/robots/speech-transcribe.js.map +1 -0
  275. package/dist/alphalib/types/robots/supabase-import.d.ts +52 -0
  276. package/dist/alphalib/types/robots/supabase-import.d.ts.map +1 -0
  277. package/dist/alphalib/types/robots/supabase-import.js +70 -0
  278. package/dist/alphalib/types/robots/supabase-import.js.map +1 -0
  279. package/dist/alphalib/types/robots/supabase-store.d.ts +117 -0
  280. package/dist/alphalib/types/robots/supabase-store.d.ts.map +1 -0
  281. package/dist/alphalib/types/robots/supabase-store.js +54 -0
  282. package/dist/alphalib/types/robots/supabase-store.js.map +1 -0
  283. package/dist/alphalib/types/robots/swift-import.d.ts +52 -0
  284. package/dist/alphalib/types/robots/swift-import.d.ts.map +1 -0
  285. package/dist/alphalib/types/robots/swift-import.js +68 -0
  286. package/dist/alphalib/types/robots/swift-import.js.map +1 -0
  287. package/dist/alphalib/types/robots/swift-store.d.ts +120 -0
  288. package/dist/alphalib/types/robots/swift-store.d.ts.map +1 -0
  289. package/dist/alphalib/types/robots/swift-store.js +58 -0
  290. package/dist/alphalib/types/robots/swift-store.js.map +1 -0
  291. package/dist/alphalib/types/robots/text-speak.d.ts +106 -0
  292. package/dist/alphalib/types/robots/text-speak.d.ts.map +1 -0
  293. package/dist/alphalib/types/robots/text-speak.js +97 -0
  294. package/dist/alphalib/types/robots/text-speak.js.map +1 -0
  295. package/dist/alphalib/types/robots/text-translate.d.ts +100 -0
  296. package/dist/alphalib/types/robots/text-translate.d.ts.map +1 -0
  297. package/dist/alphalib/types/robots/text-translate.js +196 -0
  298. package/dist/alphalib/types/robots/text-translate.js.map +1 -0
  299. package/dist/alphalib/types/robots/tigris-import.d.ts +52 -0
  300. package/dist/alphalib/types/robots/tigris-import.d.ts.map +1 -0
  301. package/dist/alphalib/types/robots/tigris-import.js +68 -0
  302. package/dist/alphalib/types/robots/tigris-import.js.map +1 -0
  303. package/dist/alphalib/types/robots/tigris-store.d.ts +120 -0
  304. package/dist/alphalib/types/robots/tigris-store.d.ts.map +1 -0
  305. package/dist/alphalib/types/robots/tigris-store.js +61 -0
  306. package/dist/alphalib/types/robots/tigris-store.js.map +1 -0
  307. package/dist/alphalib/types/robots/tlcdn-deliver.d.ts +19 -0
  308. package/dist/alphalib/types/robots/tlcdn-deliver.d.ts.map +1 -0
  309. package/dist/alphalib/types/robots/tlcdn-deliver.js +31 -0
  310. package/dist/alphalib/types/robots/tlcdn-deliver.js.map +1 -0
  311. package/dist/alphalib/types/robots/tus-store.d.ts +110 -0
  312. package/dist/alphalib/types/robots/tus-store.d.ts.map +1 -0
  313. package/dist/alphalib/types/robots/tus-store.js +74 -0
  314. package/dist/alphalib/types/robots/tus-store.js.map +1 -0
  315. package/dist/alphalib/types/robots/upload-handle.d.ts +92 -0
  316. package/dist/alphalib/types/robots/upload-handle.d.ts.map +1 -0
  317. package/dist/alphalib/types/robots/upload-handle.js +54 -0
  318. package/dist/alphalib/types/robots/upload-handle.js.map +1 -0
  319. package/dist/alphalib/types/robots/video-adaptive.d.ts +640 -0
  320. package/dist/alphalib/types/robots/video-adaptive.d.ts.map +1 -0
  321. package/dist/alphalib/types/robots/video-adaptive.js +119 -0
  322. package/dist/alphalib/types/robots/video-adaptive.js.map +1 -0
  323. package/dist/alphalib/types/robots/video-concat.d.ts +634 -0
  324. package/dist/alphalib/types/robots/video-concat.d.ts.map +1 -0
  325. package/dist/alphalib/types/robots/video-concat.js +65 -0
  326. package/dist/alphalib/types/robots/video-concat.js.map +1 -0
  327. package/dist/alphalib/types/robots/video-encode.d.ts +1439 -0
  328. package/dist/alphalib/types/robots/video-encode.d.ts.map +1 -0
  329. package/dist/alphalib/types/robots/video-encode.js +157 -0
  330. package/dist/alphalib/types/robots/video-encode.js.map +1 -0
  331. package/dist/alphalib/types/robots/video-merge.d.ts +655 -0
  332. package/dist/alphalib/types/robots/video-merge.d.ts.map +1 -0
  333. package/dist/alphalib/types/robots/video-merge.js +64 -0
  334. package/dist/alphalib/types/robots/video-merge.js.map +1 -0
  335. package/dist/alphalib/types/robots/video-subtitle.d.ts +649 -0
  336. package/dist/alphalib/types/robots/video-subtitle.d.ts.map +1 -0
  337. package/dist/alphalib/types/robots/video-subtitle.js +77 -0
  338. package/dist/alphalib/types/robots/video-subtitle.js.map +1 -0
  339. package/dist/alphalib/types/robots/video-thumbs.d.ts +642 -0
  340. package/dist/alphalib/types/robots/video-thumbs.d.ts.map +1 -0
  341. package/dist/alphalib/types/robots/video-thumbs.js +79 -0
  342. package/dist/alphalib/types/robots/video-thumbs.js.map +1 -0
  343. package/dist/alphalib/types/robots/vimeo-store.d.ts +116 -0
  344. package/dist/alphalib/types/robots/vimeo-store.d.ts.map +1 -0
  345. package/dist/alphalib/types/robots/vimeo-store.js +81 -0
  346. package/dist/alphalib/types/robots/vimeo-store.js.map +1 -0
  347. package/dist/alphalib/types/robots/wasabi-import.d.ts +53 -0
  348. package/dist/alphalib/types/robots/wasabi-import.d.ts.map +1 -0
  349. package/dist/alphalib/types/robots/wasabi-import.js +72 -0
  350. package/dist/alphalib/types/robots/wasabi-import.js.map +1 -0
  351. package/dist/alphalib/types/robots/wasabi-store.d.ts +120 -0
  352. package/dist/alphalib/types/robots/wasabi-store.d.ts.map +1 -0
  353. package/dist/alphalib/types/robots/wasabi-store.js +59 -0
  354. package/dist/alphalib/types/robots/wasabi-store.js.map +1 -0
  355. package/dist/alphalib/types/robots/youtube-store.d.ts +110 -0
  356. package/dist/alphalib/types/robots/youtube-store.d.ts.map +1 -0
  357. package/dist/alphalib/types/robots/youtube-store.js +105 -0
  358. package/dist/alphalib/types/robots/youtube-store.js.map +1 -0
  359. package/dist/alphalib/types/stackVersions.d.ts +13 -0
  360. package/dist/alphalib/types/stackVersions.d.ts.map +1 -0
  361. package/dist/alphalib/types/stackVersions.js +16 -0
  362. package/dist/alphalib/types/stackVersions.js.map +1 -0
  363. package/dist/alphalib/types/template.d.ts +77150 -0
  364. package/dist/alphalib/types/template.d.ts.map +1 -0
  365. package/dist/alphalib/types/template.js +49 -0
  366. package/dist/alphalib/types/template.js.map +1 -0
  367. package/dist/alphalib/zodParseWithContext.d.ts +18 -0
  368. package/dist/alphalib/zodParseWithContext.d.ts.map +1 -0
  369. package/dist/alphalib/zodParseWithContext.js +123 -0
  370. package/dist/alphalib/zodParseWithContext.js.map +1 -0
  371. package/dist/apiTypes.d.ts +127 -0
  372. package/dist/apiTypes.d.ts.map +1 -0
  373. package/dist/apiTypes.js +3 -0
  374. package/dist/apiTypes.js.map +1 -0
  375. package/dist/tus.d.ts +17 -0
  376. package/dist/tus.d.ts.map +1 -0
  377. package/dist/tus.js +88 -0
  378. package/dist/tus.js.map +1 -0
  379. package/package.json +58 -39
  380. package/src/ApiError.ts +44 -0
  381. package/src/InconsistentResponseError.ts +3 -0
  382. package/src/PaginationStream.ts +55 -0
  383. package/src/PollingTimeoutError.ts +5 -0
  384. package/src/Transloadit.ts +826 -0
  385. package/src/alphalib/types/assemblyStatus.ts +300 -0
  386. package/src/alphalib/types/robots/_index.ts +437 -0
  387. package/src/alphalib/types/robots/_instructions-primitives.ts +835 -0
  388. package/src/alphalib/types/robots/audio-artwork.ts +57 -0
  389. package/src/alphalib/types/robots/audio-concat.ts +74 -0
  390. package/src/alphalib/types/robots/audio-encode.ts +63 -0
  391. package/src/alphalib/types/robots/audio-loop.ts +62 -0
  392. package/src/alphalib/types/robots/audio-merge.ts +73 -0
  393. package/src/alphalib/types/robots/audio-waveform.ts +83 -0
  394. package/src/alphalib/types/robots/azure-import.ts +69 -0
  395. package/src/alphalib/types/robots/azure-store.ts +76 -0
  396. package/src/alphalib/types/robots/backblaze-import.ts +81 -0
  397. package/src/alphalib/types/robots/backblaze-store.ts +63 -0
  398. package/src/alphalib/types/robots/cloudfiles-import.ts +80 -0
  399. package/src/alphalib/types/robots/cloudfiles-store.ts +63 -0
  400. package/src/alphalib/types/robots/cloudflare-import.ts +84 -0
  401. package/src/alphalib/types/robots/cloudflare-store.ts +64 -0
  402. package/src/alphalib/types/robots/digitalocean-import.ts +81 -0
  403. package/src/alphalib/types/robots/digitalocean-store.ts +69 -0
  404. package/src/alphalib/types/robots/document-autorotate.ts +36 -0
  405. package/src/alphalib/types/robots/document-convert.ts +186 -0
  406. package/src/alphalib/types/robots/document-merge.ts +68 -0
  407. package/src/alphalib/types/robots/document-ocr.ts +72 -0
  408. package/src/alphalib/types/robots/document-split.ts +38 -0
  409. package/src/alphalib/types/robots/document-thumbs.ts +119 -0
  410. package/src/alphalib/types/robots/dropbox-import.ts +58 -0
  411. package/src/alphalib/types/robots/dropbox-store.ts +52 -0
  412. package/src/alphalib/types/robots/edgly-deliver.ts +32 -0
  413. package/src/alphalib/types/robots/file-compress.ts +104 -0
  414. package/src/alphalib/types/robots/file-decompress.ts +86 -0
  415. package/src/alphalib/types/robots/file-filter.ts +115 -0
  416. package/src/alphalib/types/robots/file-hash.ts +51 -0
  417. package/src/alphalib/types/robots/file-preview.ts +174 -0
  418. package/src/alphalib/types/robots/file-read.ts +36 -0
  419. package/src/alphalib/types/robots/file-serve.ts +60 -0
  420. package/src/alphalib/types/robots/file-verify.ts +55 -0
  421. package/src/alphalib/types/robots/file-virusscan.ts +60 -0
  422. package/src/alphalib/types/robots/file-watermark.ts +13 -0
  423. package/src/alphalib/types/robots/ftp-import.ts +52 -0
  424. package/src/alphalib/types/robots/ftp-store.ts +61 -0
  425. package/src/alphalib/types/robots/google-import.ts +77 -0
  426. package/src/alphalib/types/robots/google-store.ts +89 -0
  427. package/src/alphalib/types/robots/html-convert.ts +83 -0
  428. package/src/alphalib/types/robots/http-import.ts +79 -0
  429. package/src/alphalib/types/robots/image-describe.ts +74 -0
  430. package/src/alphalib/types/robots/image-facedetect.ts +131 -0
  431. package/src/alphalib/types/robots/image-generate.ts +32 -0
  432. package/src/alphalib/types/robots/image-merge.ts +81 -0
  433. package/src/alphalib/types/robots/image-ocr.ts +71 -0
  434. package/src/alphalib/types/robots/image-optimize.ts +61 -0
  435. package/src/alphalib/types/robots/image-remove-background.ts +23 -0
  436. package/src/alphalib/types/robots/image-resize.ts +401 -0
  437. package/src/alphalib/types/robots/media-playlist.ts +58 -0
  438. package/src/alphalib/types/robots/meta-write.ts +55 -0
  439. package/src/alphalib/types/robots/minio-import.ts +80 -0
  440. package/src/alphalib/types/robots/minio-store.ts +64 -0
  441. package/src/alphalib/types/robots/progress-simulate.ts +16 -0
  442. package/src/alphalib/types/robots/s3-import.ts +116 -0
  443. package/src/alphalib/types/robots/s3-store.ts +121 -0
  444. package/src/alphalib/types/robots/script-run.ts +81 -0
  445. package/src/alphalib/types/robots/sftp-import.ts +50 -0
  446. package/src/alphalib/types/robots/sftp-store.ts +61 -0
  447. package/src/alphalib/types/robots/speech-transcribe.ts +96 -0
  448. package/src/alphalib/types/robots/supabase-import.ts +84 -0
  449. package/src/alphalib/types/robots/supabase-store.ts +59 -0
  450. package/src/alphalib/types/robots/swift-import.ts +80 -0
  451. package/src/alphalib/types/robots/swift-store.ts +61 -0
  452. package/src/alphalib/types/robots/text-speak.ts +100 -0
  453. package/src/alphalib/types/robots/text-translate.ts +199 -0
  454. package/src/alphalib/types/robots/tigris-import.ts +80 -0
  455. package/src/alphalib/types/robots/tigris-store.ts +64 -0
  456. package/src/alphalib/types/robots/tlcdn-deliver.ts +32 -0
  457. package/src/alphalib/types/robots/tus-store.ts +77 -0
  458. package/src/alphalib/types/robots/upload-handle.ts +58 -0
  459. package/src/alphalib/types/robots/video-adaptive.ts +123 -0
  460. package/src/alphalib/types/robots/video-concat.ts +68 -0
  461. package/src/alphalib/types/robots/video-encode.ts +182 -0
  462. package/src/alphalib/types/robots/video-merge.ts +72 -0
  463. package/src/alphalib/types/robots/video-subtitle.ts +86 -0
  464. package/src/alphalib/types/robots/video-thumbs.ts +88 -0
  465. package/src/alphalib/types/robots/vimeo-store.ts +84 -0
  466. package/src/alphalib/types/robots/wasabi-import.ts +84 -0
  467. package/src/alphalib/types/robots/wasabi-store.ts +62 -0
  468. package/src/alphalib/types/robots/youtube-store.ts +108 -0
  469. package/src/alphalib/types/stackVersions.ts +12 -0
  470. package/src/alphalib/types/template.ts +71 -0
  471. package/src/alphalib/zodParseWithContext.ts +151 -0
  472. package/src/apiTypes.ts +165 -0
  473. package/src/tus.ts +123 -0
  474. package/index.js +0 -1
  475. package/src/PaginationStream.js +0 -39
  476. package/src/Transloadit.js +0 -701
  477. package/types/index.d.ts +0 -217
@@ -0,0 +1,86 @@
1
+ import { z } from 'zod'
2
+
3
+ import {
4
+ color_with_alpha,
5
+ color_without_alpha,
6
+ robotFFmpegVideo,
7
+ positionSchema,
8
+ robotBase,
9
+ robotUse,
10
+ } from './_instructions-primitives.ts'
11
+ import type { RobotMeta } from './_instructions-primitives.ts'
12
+ import { stackVersions } from '../stackVersions.ts'
13
+
14
+ export const meta: RobotMeta = {
15
+ allowed_for_url_transform: false,
16
+ bytescount: 1,
17
+ discount_factor: 1,
18
+ discount_pct: 0,
19
+ example_code: {
20
+ steps: {
21
+ subtitled: {
22
+ robot: '/video/subtitle',
23
+ use: {
24
+ steps: [
25
+ { name: ':original', fields: 'input_video', as: 'video' },
26
+ { name: ':original', fields: 'input_srt', as: 'subtitles' },
27
+ ],
28
+ },
29
+ ffmpeg_stack: stackVersions.ffmpeg.recommendedVersion,
30
+ },
31
+ },
32
+ },
33
+ example_code_description:
34
+ 'If you have two file input fields in a form — one for a video and another for an SRT or VTT subtitle, named `input_video` and `input_srt` respectively (with the HTML `name` attribute), hereʼs how to embed the subtitles into the video with Transloadit:',
35
+ minimum_charge: 0,
36
+ output_factor: 0.6,
37
+ override_lvl1: 'Video Encoding',
38
+ purpose_sentence: 'adds subtitles and closed captions to videos',
39
+ purpose_verb: 'subtitle',
40
+ purpose_word: 'subtitle',
41
+ purpose_words: 'Add subtitles to videos',
42
+ service_slug: 'video-encoding',
43
+ slot_count: 60,
44
+ title: 'Add subtitles to videos',
45
+ typical_file_size_mb: 80,
46
+ typical_file_type: 'video',
47
+ uses_tools: ['ffmpeg'],
48
+ }
49
+
50
+ export const robotVideoSubtitleInstructionsSchema = robotBase
51
+ .merge(robotUse)
52
+ .merge(robotFFmpegVideo)
53
+ .extend({
54
+ robot: z.literal('/video/subtitle').describe(`
55
+ This <dfn>Robot</dfn> supports both SRT and VTT subtitle files.
56
+ `),
57
+ subtitles_type: z
58
+ .enum(['burned', 'external', 'burn'])
59
+ .transform((val) => (val === 'burn' ? 'burned' : val))
60
+ .default('external').describe(`
61
+ Determines if subtitles are added as a separate stream to the video (value \`"external"\`) that then can be switched on and off in your video player, or if they should be burned directly into the video (value \`"burned"\` or \`"burn"\`) so that they become part of the video stream.
62
+ `),
63
+ border_style: z.enum(['box', 'outline', 'shadow']).default('outline').describe(`
64
+ Specifies the style of the subtitle. Use the \`border_color\` parameter to specify the color of the border.
65
+ `),
66
+ border_color: color_with_alpha.default('40000000').describe(`
67
+ The color for the subtitle border. The first two hex digits specify the alpha value of the color.
68
+ `),
69
+ // TODO: Make font an enum
70
+ font: z.string().default('Arial').describe(`
71
+ The font family to use. Also includes boldness and style of the font.
72
+
73
+ [Here](/docs/supported-formats/fonts/) is a list of all supported fonts.
74
+ `),
75
+ font_color: color_without_alpha.default('FFFFFF').describe(`
76
+ The color of the subtitle text. The first two hex digits specify the alpha value of the color.
77
+ `),
78
+ font_size: z.number().int().min(1).default(16).describe(`
79
+ Specifies the size of the text.
80
+ `),
81
+ position: positionSchema.default('bottom').describe(`
82
+ Specifies the position of the subtitles.
83
+ `),
84
+ })
85
+ .strict()
86
+ export type RobotVideoSubtitleInstructions = z.infer<typeof robotVideoSubtitleInstructionsSchema>
@@ -0,0 +1,88 @@
1
+ import { z } from 'zod'
2
+
3
+ import {
4
+ color_with_alpha,
5
+ robotFFmpeg,
6
+ percentageSchema,
7
+ resize_strategy,
8
+ robotBase,
9
+ robotUse,
10
+ } from './_instructions-primitives.ts'
11
+ import type { RobotMeta } from './_instructions-primitives.ts'
12
+ import { stackVersions } from '../stackVersions.ts'
13
+
14
+ export const meta: RobotMeta = {
15
+ allowed_for_url_transform: false,
16
+ bytescount: 10,
17
+ discount_factor: 0.1,
18
+ discount_pct: 90,
19
+ docs_redirect_from: ['/docs/extracting-thumbnails-from-videos/'],
20
+ example_code: {
21
+ steps: {
22
+ thumbnailed: {
23
+ robot: '/video/thumbs',
24
+ use: ':original',
25
+ count: 10,
26
+ ffmpeg_stack: stackVersions.ffmpeg.recommendedVersion,
27
+ },
28
+ },
29
+ },
30
+ example_code_description: 'Extract 10 thumbnails from each uploaded video:',
31
+ minimum_charge: 0,
32
+ output_factor: 0.05,
33
+ override_lvl1: 'Video Encoding',
34
+ purpose_sentence: 'extracts any number of images from videos for use as previews',
35
+ purpose_verb: 'extract',
36
+ purpose_word: 'thumbnail',
37
+ purpose_words: 'Extract thumbnails from videos',
38
+ service_slug: 'video-encoding',
39
+ slot_count: 15,
40
+ title: 'Extract thumbnails from videos',
41
+ typical_file_size_mb: 80,
42
+ typical_file_type: 'video',
43
+ uses_tools: ['ffmpeg'],
44
+ }
45
+
46
+ export const robotVideoThumbsInstructionsSchema = robotBase
47
+ .merge(robotUse)
48
+ .merge(robotFFmpeg)
49
+ .extend({
50
+ robot: z.literal('/video/thumbs').describe(`
51
+ **Note:** Even though thumbnails are extracted from videos in parallel, we sort the thumbnails before adding them to the Assembly results. So the order in which they appear there reflects the order in which they appear in the video. You can also make sure by checking the <code>thumb_index</code> meta key. [{.alert .alert-note}]
52
+ `),
53
+ count: z.number().int().min(1).max(999).default(8).describe(`
54
+ The number of thumbnails to be extracted. As some videos have incorrect durations, the actual number of thumbnails generated may be less in rare cases. The maximum number of thumbnails we currently allow is 999.
55
+
56
+ The thumbnails are taken at regular intervals, determined by dividing the video duration by the count. For example, a count of 3 will produce thumbnails at 25%, 50% and 75% through the video.
57
+
58
+ To extract thumbnails for specific timestamps, use the \`offsets\` parameter.
59
+ `),
60
+ offsets: z.union([z.array(z.number().int()), z.array(percentageSchema)]).default([]).describe(`
61
+ An array of offsets representing seconds of the file duration, such as \`[ 2, 45, 120 ]\`. Millisecond durations of a file can also be used by using decimal place values. For example, an offset from 1250 milliseconds would be represented with \`1.25\`. Offsets can also be percentage values such as \`[ "2%", "50%", "75%" ]\`.
62
+
63
+ This option cannot be used with the \`count\` parameter, and takes precedence if both are specified. Out-of-range offsets are silently ignored.
64
+ `),
65
+ format: z.enum(['jpeg', 'jpg', 'png']).default('jpeg').describe(`
66
+ The format of the extracted thumbnail. Supported values are \`"jpg"\`, \`"jpeg"\` and \`"png"\`. Even if you specify the format to be \`"jpeg"\` the resulting thumbnails will have a \`"jpg"\` file extension.
67
+ `),
68
+ width: z.number().int().min(1).max(1920).optional().describe(`
69
+ The width of the thumbnail, in pixels. Defaults to the original width of the video.
70
+ `),
71
+ height: z.number().int().min(1).max(1080).optional().describe(`
72
+ The height of the thumbnail, in pixels. Defaults to the original height of the video.
73
+ `),
74
+ resize_strategy: resize_strategy.describe(`
75
+ One of the [available resize strategies](/docs/transcoding/image-manipulation/image-resize/#resize-strategies).
76
+ `),
77
+ background: color_with_alpha.default('#00000000').describe(`
78
+ The background color of the resulting thumbnails in the \`"rrggbbaa"\` format (red, green, blue, alpha) when used with the \`"pad"\` resize strategy. The default color is black.
79
+ `),
80
+ rotate: z
81
+ .union([z.literal(0), z.literal(90), z.literal(180), z.literal(270), z.literal(360)])
82
+ .default(0).describe(`
83
+ Forces the video to be rotated by the specified degree integer. Currently, only multiples of 90 are supported. We automatically correct the orientation of many videos when the orientation is provided by the camera. This option is only useful for videos requiring rotation because it was not detected by the camera.
84
+ `),
85
+ })
86
+ .strict()
87
+
88
+ export type RobotVideoThumbsInstructions = z.infer<typeof robotVideoThumbsInstructionsSchema>
@@ -0,0 +1,84 @@
1
+ import { z } from 'zod'
2
+
3
+ import { robotBase, robotUse } from './_instructions-primitives.ts'
4
+ import type { RobotMeta } from './_instructions-primitives.ts'
5
+
6
+ export const meta: RobotMeta = {
7
+ allowed_for_url_transform: true,
8
+ bytescount: 6,
9
+ discount_factor: 0.15000150001500018,
10
+ discount_pct: 84.99984999849998,
11
+ example_code: {
12
+ steps: {
13
+ exported: {
14
+ robot: '/vimeo/store',
15
+ use: ':original',
16
+ credentials: 'YOUR_VIMEO_CREDENTIALS',
17
+ title: 'Transloadit: Video Example',
18
+ description: 'Some nice description',
19
+ },
20
+ },
21
+ },
22
+ example_code_description: 'Export an uploaded video to Vimeo and set its title and description:',
23
+ has_small_icon: true,
24
+ minimum_charge: 0,
25
+ output_factor: 1,
26
+ override_lvl1: 'File Exporting',
27
+ purpose_sentence: 'exports encoding results to vimeo',
28
+ purpose_verb: 'export',
29
+ purpose_word: 'Vimeo',
30
+ purpose_words: 'Export files to Vimeo',
31
+ service_slug: 'file-exporting',
32
+ slot_count: 10,
33
+ title: 'Export files to Vimeo',
34
+ typical_file_size_mb: 1.2,
35
+ typical_file_type: 'file',
36
+ }
37
+
38
+ export const robotVimeoStoreInstructionsSchema = robotBase
39
+ .merge(robotUse)
40
+ .extend({
41
+ robot: z.literal('/vimeo/store'),
42
+ credentials: z.string().describe(`
43
+ The authentication Template Credentials used for your Vimeo account. You can generate them on the [Template Credentials page](/c/template-credentials/). You will be redirected to a Vimeo verification page. Accept the presented permissions and you will be good to go.
44
+ `),
45
+ title: z.string().describe(`
46
+ The title of the video to be displayed on Vimeo.
47
+ `),
48
+ description: z.string().describe(`
49
+ The description of the video to be displayed on Vimeo.
50
+ `),
51
+ acl: z
52
+ .enum(['anybody', 'contacts', 'disable', 'nobody', 'password', 'unlisted', 'users'])
53
+ .default('anybody').describe(`
54
+ Controls access permissions for the video. Here are the valid values:
55
+
56
+ - \`"anybody"\` — anyone can access the video.
57
+ - \`"contacts"\` — only those who follow the owner on Vimeo can access the video.
58
+ - \`"disable"\` — the video is embeddable, but it's hidden on Vimeo and can't be played.
59
+ - \`"nobody"\` — no one except the owner can access the video.
60
+ - \`"password"\` — only those with the password can access the video.
61
+ - \`"unlisted"\` — only those with the private link can access the video.
62
+ - \`"users"\` — only Vimeo members can access the video.
63
+ `),
64
+ password: z.string().optional().describe(`
65
+ The password to access the video if \`acl\` is \`"password"\`.
66
+ `),
67
+ showcases: z.array(z.string()).default([]).describe(`
68
+ An array of string IDs of showcases that you want to add the video to. The IDs can be found when browsing Vimeo. For example \`https://vimeo.com/manage/showcases/[SHOWCASE_ID]/info\`.
69
+ `),
70
+ downloadable: z.boolean().default(false).describe(`
71
+ Whether or not the video can be downloaded from the Vimeo website.
72
+
73
+ Only set this to \`true\` if you have unlocked this feature in your Vimeo accounting by upgrading to their "Pro" plan. If you use it while on their Freemium plan, the Vimeo API will return an \`"Invalid parameter supplied"\` error.
74
+ `),
75
+ folder_id: z.string().nullable().default(null).describe(`
76
+ The ID of the folder to which the video is uploaded.
77
+
78
+ When visiting one of your folders, the URL is similar to \`https://vimeo.com/manage/folders/xxxxxxxx\`. The folder_id would be \`"xxxxxxxx"\`.
79
+ `),
80
+ })
81
+ .strict()
82
+
83
+ export type RobotVimeoStoreInstructions = z.infer<typeof robotVimeoStoreInstructionsSchema>
84
+ export type RobotVimeoStoreInstructionsInput = z.input<typeof robotVimeoStoreInstructionsSchema>
@@ -0,0 +1,84 @@
1
+ import { z } from 'zod'
2
+
3
+ import {
4
+ files_per_page,
5
+ robotImport,
6
+ page_number,
7
+ path,
8
+ recursive,
9
+ robotBase,
10
+ wasabiBase,
11
+ } from './_instructions-primitives.ts'
12
+ import type { RobotMeta } from './_instructions-primitives.ts'
13
+
14
+ export const meta: RobotMeta = {
15
+ allowed_for_url_transform: true,
16
+ bytescount: 10,
17
+ discount_factor: 0.1,
18
+ discount_pct: 90,
19
+ example_code: {
20
+ steps: {
21
+ imported: {
22
+ robot: '/wasabi/import',
23
+ credentials: 'YOUR_WASABI_CREDENTIALS',
24
+ path: 'path/to/files/',
25
+ recursive: true,
26
+ },
27
+ },
28
+ },
29
+ example_code_description:
30
+ 'Import files from the `path/to/files` directory and its subdirectories:',
31
+ has_small_icon: true,
32
+ minimum_charge: 0,
33
+ output_factor: 1,
34
+ override_lvl1: 'File Importing',
35
+ purpose_sentence: 'imports whole directories of files from your wasabi bucket',
36
+ purpose_verb: 'import',
37
+ purpose_word: 'Wasabi',
38
+ purpose_words: 'Import files from Wasabi',
39
+ requires_credentials: true,
40
+ service_slug: 'file-importing',
41
+ slot_count: 20,
42
+ title: 'Import files from Wasabi',
43
+ typical_file_size_mb: 1.2,
44
+ typical_file_type: 'file',
45
+ }
46
+
47
+ export const robotWasabiImportInstructionsSchema = robotBase
48
+ .merge(robotImport)
49
+ .merge(wasabiBase)
50
+ .extend({
51
+ result: z
52
+ .boolean()
53
+ .optional()
54
+ .describe(`Whether the results of this Step should be present in the Assembly Status JSON`),
55
+ robot: z.literal('/wasabi/import'),
56
+ path: path.describe(`
57
+ The path in your bucket to the specific file or directory. If the path points to a file, only this file will be imported. For example: \`images/avatar.jpg\`.
58
+
59
+ If it points to a directory, indicated by a trailing slash (\`/\`), then all files that are direct descendants of this directory will be imported. For example: \`images/\`.
60
+
61
+ Directories are **not** imported recursively. If you want to import files from subdirectories and sub-subdirectories, enable the \`recursive\` parameter.
62
+
63
+ If you want to import all files from the root directory, please use \`/\` as the value here. In this case, make sure all your objects belong to a path. If you have objects in the root of your bucket that aren't prefixed with \`/\`, you'll receive an error: \`A client error (NoSuchKey) occurred when calling the GetObject operation: The specified key does not exist.\`
64
+
65
+ You can also use an array of path strings here to import multiple paths in the same <dfn>Robot</dfn>'s <dfn>Step</dfn>.
66
+ `),
67
+ recursive: recursive.describe(`
68
+ Setting this to \`true\` will enable importing files from subfolders and sub-subfolders, etc. of the given path.
69
+
70
+ Please use the pagination parameters \`page_number\` and \`files_per_page\` wisely here.
71
+ `),
72
+ page_number: page_number.describe(`
73
+ The pagination page number. For now, in order to not break backwards compatibility in non-recursive imports, this only works when recursive is set to \`true\`.
74
+
75
+ When doing big imports, make sure no files are added or removed from other scripts within your path, otherwise you might get weird results with the pagination.
76
+ `),
77
+ files_per_page: files_per_page.describe(`
78
+ The pagination page size. This only works when recursive is \`true\` for now, in order to not break backwards compatibility in non-recursive imports.
79
+ `),
80
+ })
81
+ .strict()
82
+
83
+ export type RobotWasabiImportInstructions = z.infer<typeof robotWasabiImportInstructionsSchema>
84
+ export type RobotWasabiImportInstructionsInput = z.input<typeof robotWasabiImportInstructionsSchema>
@@ -0,0 +1,62 @@
1
+ import { z } from 'zod'
2
+
3
+ import { robotBase, robotUse, wasabiBase } from './_instructions-primitives.ts'
4
+ import type { RobotMeta } from './_instructions-primitives.ts'
5
+
6
+ export const meta: RobotMeta = {
7
+ allowed_for_url_transform: true,
8
+ bytescount: 6,
9
+ discount_factor: 0.15000150001500018,
10
+ discount_pct: 84.99984999849998,
11
+ example_code: {
12
+ steps: {
13
+ exported: {
14
+ robot: '/wasabi/store',
15
+ use: ':original',
16
+ credentials: 'YOUR_WASABI_CREDENTIALS',
17
+ path: 'my_target_folder/${unique_prefix}/${file.url_name}',
18
+ },
19
+ },
20
+ },
21
+ example_code_description: 'Export uploaded files to `my_target_folder` on Wasabi:',
22
+ has_small_icon: true,
23
+ minimum_charge: 0,
24
+ output_factor: 1,
25
+ override_lvl1: 'File Exporting',
26
+ purpose_sentence: 'exports encoding results to Wasabi buckets',
27
+ purpose_verb: 'export',
28
+ purpose_word: 'Wasabi',
29
+ purpose_words: 'Export files to Wasabi',
30
+ service_slug: 'file-exporting',
31
+ slot_count: 10,
32
+ title: 'Export files to Wasabi',
33
+ typical_file_size_mb: 1.2,
34
+ typical_file_type: 'file',
35
+ }
36
+
37
+ export const robotWasabiStoreInstructionsSchema = robotBase
38
+ .merge(robotUse)
39
+ .merge(wasabiBase)
40
+ .extend({
41
+ robot: z.literal('/wasabi/store').describe(`
42
+ The URL to the result file will be returned in the <dfn>Assembly Status JSON</dfn>.
43
+ `),
44
+ path: z.string().default('${unique_prefix}/${file.url_name}').describe(`
45
+ The path at which the file is to be stored. This may include any available [Assembly variables](/docs/topics/assembly-instructions/#assembly-variables). The path must not be a directory.
46
+ `),
47
+ acl: z.enum(['private', 'public-read']).default('public-read').describe(`
48
+ The permissions used for this file.
49
+ `),
50
+ headers: z.record(z.string()).default({ 'Content-Type': '${file.mime}' }).describe(`
51
+ An object containing a list of headers to be set for this file on Wasabi Spaces, such as \`{ FileURL: "\${file.url_name}" }\`. This can also include any available [Assembly Variables](/docs/topics/assembly-instructions/#assembly-variables).
52
+
53
+ Object Metadata can be specified using \`x-amz-meta-*\` headers. Note that these headers [do not support non-ASCII metadata values](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#UserMetadata).
54
+ `),
55
+ sign_urls_for: z.number().int().min(0).optional().describe(`
56
+ This parameter provides signed URLs in the result JSON (in the \`signed_ssl_url\` property). The number that you set this parameter to is the URL expiry time in seconds. If this parameter is not used, no URL signing is done.
57
+ `),
58
+ })
59
+ .strict()
60
+
61
+ export type RobotWasabiStoreInstructions = z.infer<typeof robotWasabiStoreInstructionsSchema>
62
+ export type RobotWasabiStoreInstructionsInput = z.input<typeof robotWasabiStoreInstructionsSchema>
@@ -0,0 +1,108 @@
1
+ import { z } from 'zod'
2
+
3
+ import { robotBase, robotUse } from './_instructions-primitives.ts'
4
+ import type { RobotMeta } from './_instructions-primitives.ts'
5
+
6
+ export const meta: RobotMeta = {
7
+ allowed_for_url_transform: true,
8
+ bytescount: 6,
9
+ discount_factor: 0.15000150001500018,
10
+ discount_pct: 84.99984999849998,
11
+ docs_redirect_from: ['/docs/export-to-youtube/'],
12
+ example_code: {
13
+ steps: {
14
+ exported: {
15
+ robot: '/youtube/store',
16
+ use: ':original',
17
+ credentials: 'YOUR_YOUTUBE_CREDENTIALS',
18
+ title: 'Transloadit: Video Example',
19
+ description: 'Some nice description',
20
+ category: 'science & technology',
21
+ keywords: 'transloadit, robots, botty',
22
+ visibility: 'private',
23
+ },
24
+ },
25
+ },
26
+ example_code_description: 'Export an uploaded video to YouTube and set some basic parameters:',
27
+ minimum_charge: 0,
28
+ output_factor: 1,
29
+ override_lvl1: 'File Exporting',
30
+ purpose_sentence: 'exports encoding results to YouTube',
31
+ purpose_verb: 'export',
32
+ purpose_word: 'YouTube',
33
+ purpose_words: 'Export files to YouTube',
34
+ service_slug: 'file-exporting',
35
+ slot_count: 10,
36
+ title: 'Export files to YouTube',
37
+ typical_file_size_mb: 1.2,
38
+ typical_file_type: 'file',
39
+ }
40
+
41
+ export const robotYoutubeStoreInstructionsSchema = robotBase
42
+ .merge(robotUse)
43
+ .extend({
44
+ robot: z.literal('/youtube/store').describe(`
45
+ **Note:** This <dfn>Robot</dfn> only accepts videos. [{.alert .alert-note}]
46
+
47
+ ## Installation
48
+
49
+ Since YouTube works with OAuth, you will need to generate [Template Credentials](/c/template-credentials/) to use this <dfn>Robot</dfn>.
50
+
51
+ To change the \`title\`, \`description\`, \`category\`, or \`keywords\` per video, we recommend to [inject variables into your Template](/docs/topics/templates/).
52
+
53
+ ## Adding a thumbnail image to your video
54
+
55
+ You can add a custom thumbnail to your video on YouTube by using our \`"as"\` syntax for the \`"use"\` parameter to supply both a video and an image to the step:
56
+
57
+ \`\`\`json
58
+ "exported": {
59
+ "use": [
60
+ { "name": "video_encode_step", "as": "video" },
61
+ { "name": "image_resize_step", "as": "image" },
62
+ ],
63
+ ...
64
+ },
65
+ \`\`\`
66
+
67
+ If you encounter an error such as "The authenticated user doesnʼt have permissions to upload and set custom video thumbnails", you should go to your YouTube account and try adding a custom thumbnail to one of your existing videos. Youʼll be prompted to add your phone number. Once youʼve added it, the error should go away.
68
+ `),
69
+ credentials: z.string().describe(`
70
+ The authentication Template credentials used for your YouTube account. You can generate them on the [Template Credentials page](/c/template-credentials/). Simply add the name of your YouTube channel, and you will be redirected to a Google verification page. Accept the presented permissions and you will be good to go.
71
+ `),
72
+ title: z.string().max(80).describe(`
73
+ The title of the video to be displayed on YouTube.
74
+
75
+ Note that since the YouTube API requires titles to be within 80 characters, longer titles may be truncated.
76
+ `),
77
+ description: z.string().describe(`
78
+ The description of the video to be displayed on YouTube. This can be up to 5000 characters, including \`\\n\` for new-lines.
79
+ `),
80
+ category: z.enum([
81
+ 'autos & vehicles',
82
+ 'comedy',
83
+ 'education',
84
+ 'entertainment',
85
+ 'film & animation',
86
+ 'gaming',
87
+ 'howto & style',
88
+ 'music',
89
+ 'news & politics',
90
+ 'people & blogs',
91
+ 'pets & animals',
92
+ 'science & technology',
93
+ 'sports',
94
+ 'travel & events',
95
+ ]).describe(`
96
+ The category to which this video will be assigned.
97
+ `),
98
+ keywords: z.string().describe(`
99
+ Tags used to describe the video, separated by commas. These tags will also be displayed on YouTube.
100
+ `),
101
+ visibility: z.enum(['public', 'private', 'unlisted']).describe(`
102
+ Defines the visibility of the uploaded video.
103
+ `),
104
+ })
105
+ .strict()
106
+
107
+ export type RobotYoutubeStoreInstructions = z.infer<typeof robotYoutubeStoreInstructionsSchema>
108
+ export type RobotYoutubeStoreInstructionsInput = z.input<typeof robotYoutubeStoreInstructionsSchema>
@@ -0,0 +1,12 @@
1
+ export const stackVersions = {
2
+ ffmpeg: {
3
+ recommendedVersion: 'v6' as const,
4
+ test: /^v?[56](\.\d+)?(\.\d+)?$/,
5
+ suggestedValues: ['v5', 'v6'] as const,
6
+ },
7
+ imagemagick: {
8
+ recommendedVersion: 'v3' as const,
9
+ test: /^v?[23](\.\d+)?(\.\d+)?$/,
10
+ suggestedValues: ['v2', 'v3'] as const,
11
+ },
12
+ }
@@ -0,0 +1,71 @@
1
+ import { z } from 'zod'
2
+
3
+ import { robotsWithHiddenBotsAndFieldsSchema, robotsSchema } from './robots/_index.ts'
4
+ import type { RobotUse } from './robots/_instructions-primitives.ts'
5
+
6
+ export const stepSchema = z
7
+ .object({
8
+ // This is a hack to get nicer robot hover messages in editors.
9
+ robot: z.string().describe('The [robot](https://transloadit.com/docs/transcoding/) to use'),
10
+ })
11
+ .and(robotsSchema)
12
+ export const stepsSchema = z.record(stepSchema).describe('Contains Assembly Instructions.')
13
+ export type Step = z.infer<typeof stepSchema>
14
+ export type StepInput = z.input<typeof stepSchema>
15
+ export type StepInputWithUse = StepInput & RobotUse
16
+ export type Steps = z.infer<typeof stepsSchema>
17
+ export type StepsInput = z.input<typeof stepsSchema>
18
+
19
+ export const stepSchemaWithHiddenFields = z
20
+ .object({
21
+ // This is a hack to get nicer robot hover messages in editors.
22
+ robot: z.string().describe('The [robot](https://transloadit.com/docs/transcoding/) to use'),
23
+ })
24
+ .and(robotsWithHiddenBotsAndFieldsSchema)
25
+ export const stepsSchemaWithHiddenFields = z
26
+ .record(stepSchemaWithHiddenFields)
27
+ .describe('Contains Assembly Instructions.')
28
+ export type StepWithHiddenFields = z.infer<typeof stepSchemaWithHiddenFields>
29
+ export type StepWithHiddenFieldsInput = z.input<typeof stepSchemaWithHiddenFields>
30
+ export type StepsWithHiddenFields = z.infer<typeof stepsSchemaWithHiddenFields>
31
+ export type StepsWithHiddenFieldsInput = z.input<typeof stepsSchemaWithHiddenFields>
32
+
33
+ export const assemblyAuthInstructionsSchema = z.object({
34
+ key: z.string().describe('The Transloadit API key to use'),
35
+ secret: z.string().optional().describe('The Transloadit API secret to use'),
36
+ expires: z.string().optional().describe('The Transloadit API expires to use'),
37
+ max_size: z.number().optional().describe('The Transloadit API max_size to use'),
38
+ })
39
+
40
+ export const assemblyInstructionsSchema = z.object({
41
+ auth: assemblyAuthInstructionsSchema.optional(),
42
+ allow_steps_override: z
43
+ .boolean()
44
+ .optional()
45
+ .describe(
46
+ 'Set this to false to disallow Overruling Templates at Runtime. If you set this to false then template_id and steps will be mutually exclusive and you may only supply one of those parameters. Recommended when deploying Transloadit in untrusted environments. This makes sense to set as part of a Template, rather than on the Assembly itself when creating it.',
47
+ ),
48
+ notify_url: z
49
+ .string()
50
+ .optional()
51
+ .describe(
52
+ 'Transloadit can send a Pingback to your server when the Assembly is completed. We’ll send the Assembly status in a form url-encoded JSON string inside of a transloadit field in a multipart POST request to the URL supplied here.',
53
+ ),
54
+ fields: z
55
+ .record(z.any())
56
+ .optional()
57
+ .describe(
58
+ 'An object of string keyed values (name -> value) that can be used as Assembly Variables, just like additional form fields can. You can use anything that is JSON stringifyable as a value',
59
+ ),
60
+ quiet: z
61
+ .boolean()
62
+ .optional()
63
+ .describe(
64
+ 'Set this to true to reduce the response from an Assembly POST request to only the necessary fields. This prevents any potentially confidential information being leaked to the end user who is making the Assembly request. A successful Assembly will only include the ok and assembly_id fields. An erroneous Assembly will only include the error, http_code, message and assembly_id fields. The full Assembly Status will then still be sent to the notify_url if one was specified.',
65
+ ),
66
+ steps: stepsSchema.optional(),
67
+ template_id: z.string().optional().describe('The Template ID to use'),
68
+ })
69
+
70
+ export type AssemblyInstructions = z.infer<typeof assemblyInstructionsSchema>
71
+ export type AssemblyInstructionsInput = z.input<typeof assemblyInstructionsSchema>