transloadit 4.7.4 → 4.8.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 (585) hide show
  1. package/README.md +915 -5
  2. package/dist/Transloadit.d.ts +3 -3
  3. package/dist/Transloadit.d.ts.map +1 -1
  4. package/dist/Transloadit.js +2 -2
  5. package/dist/Transloadit.js.map +1 -1
  6. package/dist/alphalib/assembly-linter.js +1 -1
  7. package/dist/alphalib/assembly-linter.js.map +1 -1
  8. package/dist/alphalib/stepParsing.js +2 -2
  9. package/dist/alphalib/stepParsing.js.map +1 -1
  10. package/dist/alphalib/types/assembliesGet.d.ts +5 -0
  11. package/dist/alphalib/types/assembliesGet.d.ts.map +1 -1
  12. package/dist/alphalib/types/assemblyReplay.d.ts +7 -7860
  13. package/dist/alphalib/types/assemblyReplay.d.ts.map +1 -1
  14. package/dist/alphalib/types/assemblyReplayNotification.d.ts +7 -7860
  15. package/dist/alphalib/types/assemblyReplayNotification.d.ts.map +1 -1
  16. package/dist/alphalib/types/assemblyStatus.d.ts +4822 -313
  17. package/dist/alphalib/types/assemblyStatus.d.ts.map +1 -1
  18. package/dist/alphalib/types/assemblyStatus.js +40 -2
  19. package/dist/alphalib/types/assemblyStatus.js.map +1 -1
  20. package/dist/alphalib/types/bill.d.ts +5 -0
  21. package/dist/alphalib/types/bill.d.ts.map +1 -1
  22. package/dist/alphalib/types/builtinTemplates.d.ts +83 -0
  23. package/dist/alphalib/types/builtinTemplates.d.ts.map +1 -0
  24. package/dist/alphalib/types/builtinTemplates.js +19 -0
  25. package/dist/alphalib/types/builtinTemplates.js.map +1 -0
  26. package/dist/alphalib/types/robots/_index.d.ts +903 -72620
  27. package/dist/alphalib/types/robots/_index.d.ts.map +1 -1
  28. package/dist/alphalib/types/robots/_index.js +62 -11
  29. package/dist/alphalib/types/robots/_index.js.map +1 -1
  30. package/dist/alphalib/types/robots/_instructions-primitives.d.ts +41 -10
  31. package/dist/alphalib/types/robots/_instructions-primitives.d.ts.map +1 -1
  32. package/dist/alphalib/types/robots/_instructions-primitives.js +89 -3
  33. package/dist/alphalib/types/robots/_instructions-primitives.js.map +1 -1
  34. package/dist/alphalib/types/robots/ai-chat.d.ts +33 -0
  35. package/dist/alphalib/types/robots/ai-chat.d.ts.map +1 -1
  36. package/dist/alphalib/types/robots/ai-chat.js +28 -4
  37. package/dist/alphalib/types/robots/ai-chat.js.map +1 -1
  38. package/dist/alphalib/types/robots/assembly-savejson.d.ts.map +1 -1
  39. package/dist/alphalib/types/robots/assembly-savejson.js +8 -0
  40. package/dist/alphalib/types/robots/assembly-savejson.js.map +1 -1
  41. package/dist/alphalib/types/robots/audio-artwork.d.ts.map +1 -1
  42. package/dist/alphalib/types/robots/audio-artwork.js +4 -5
  43. package/dist/alphalib/types/robots/audio-artwork.js.map +1 -1
  44. package/dist/alphalib/types/robots/audio-concat.d.ts.map +1 -1
  45. package/dist/alphalib/types/robots/audio-concat.js +1 -2
  46. package/dist/alphalib/types/robots/audio-concat.js.map +1 -1
  47. package/dist/alphalib/types/robots/audio-encode.d.ts.map +1 -1
  48. package/dist/alphalib/types/robots/audio-encode.js +1 -2
  49. package/dist/alphalib/types/robots/audio-encode.js.map +1 -1
  50. package/dist/alphalib/types/robots/audio-loop.d.ts.map +1 -1
  51. package/dist/alphalib/types/robots/audio-loop.js +1 -2
  52. package/dist/alphalib/types/robots/audio-loop.js.map +1 -1
  53. package/dist/alphalib/types/robots/audio-merge.d.ts.map +1 -1
  54. package/dist/alphalib/types/robots/audio-merge.js +1 -2
  55. package/dist/alphalib/types/robots/audio-merge.js.map +1 -1
  56. package/dist/alphalib/types/robots/audio-split.d.ts +2936 -0
  57. package/dist/alphalib/types/robots/audio-split.d.ts.map +1 -0
  58. package/dist/alphalib/types/robots/audio-split.js +88 -0
  59. package/dist/alphalib/types/robots/audio-split.js.map +1 -0
  60. package/dist/alphalib/types/robots/audio-waveform.d.ts +92 -6
  61. package/dist/alphalib/types/robots/audio-waveform.d.ts.map +1 -1
  62. package/dist/alphalib/types/robots/audio-waveform.js +72 -6
  63. package/dist/alphalib/types/robots/audio-waveform.js.map +1 -1
  64. package/dist/alphalib/types/robots/azure-import.d.ts.map +1 -1
  65. package/dist/alphalib/types/robots/azure-import.js +0 -1
  66. package/dist/alphalib/types/robots/azure-import.js.map +1 -1
  67. package/dist/alphalib/types/robots/azure-store.d.ts.map +1 -1
  68. package/dist/alphalib/types/robots/azure-store.js +0 -1
  69. package/dist/alphalib/types/robots/azure-store.js.map +1 -1
  70. package/dist/alphalib/types/robots/backblaze-import.d.ts.map +1 -1
  71. package/dist/alphalib/types/robots/backblaze-import.js +0 -1
  72. package/dist/alphalib/types/robots/backblaze-import.js.map +1 -1
  73. package/dist/alphalib/types/robots/backblaze-store.d.ts.map +1 -1
  74. package/dist/alphalib/types/robots/backblaze-store.js +0 -1
  75. package/dist/alphalib/types/robots/backblaze-store.js.map +1 -1
  76. package/dist/alphalib/types/robots/box-import.d.ts +150 -0
  77. package/dist/alphalib/types/robots/box-import.d.ts.map +1 -0
  78. package/dist/alphalib/types/robots/box-import.js +63 -0
  79. package/dist/alphalib/types/robots/box-import.js.map +1 -0
  80. package/dist/alphalib/types/robots/box-store.d.ts +455 -0
  81. package/dist/alphalib/types/robots/box-store.d.ts.map +1 -0
  82. package/dist/alphalib/types/robots/box-store.js +66 -0
  83. package/dist/alphalib/types/robots/box-store.js.map +1 -0
  84. package/dist/alphalib/types/robots/cloudfiles-import.d.ts.map +1 -1
  85. package/dist/alphalib/types/robots/cloudfiles-import.js +0 -1
  86. package/dist/alphalib/types/robots/cloudfiles-import.js.map +1 -1
  87. package/dist/alphalib/types/robots/cloudfiles-store.d.ts.map +1 -1
  88. package/dist/alphalib/types/robots/cloudfiles-store.js +0 -1
  89. package/dist/alphalib/types/robots/cloudfiles-store.js.map +1 -1
  90. package/dist/alphalib/types/robots/cloudflare-import.d.ts.map +1 -1
  91. package/dist/alphalib/types/robots/cloudflare-import.js +0 -1
  92. package/dist/alphalib/types/robots/cloudflare-import.js.map +1 -1
  93. package/dist/alphalib/types/robots/cloudflare-store.d.ts.map +1 -1
  94. package/dist/alphalib/types/robots/cloudflare-store.js +0 -1
  95. package/dist/alphalib/types/robots/cloudflare-store.js.map +1 -1
  96. package/dist/alphalib/types/robots/digitalocean-import.d.ts.map +1 -1
  97. package/dist/alphalib/types/robots/digitalocean-import.js +0 -1
  98. package/dist/alphalib/types/robots/digitalocean-import.js.map +1 -1
  99. package/dist/alphalib/types/robots/digitalocean-store.d.ts.map +1 -1
  100. package/dist/alphalib/types/robots/digitalocean-store.js +0 -1
  101. package/dist/alphalib/types/robots/digitalocean-store.js.map +1 -1
  102. package/dist/alphalib/types/robots/document-autorotate.d.ts.map +1 -1
  103. package/dist/alphalib/types/robots/document-autorotate.js +8 -1
  104. package/dist/alphalib/types/robots/document-autorotate.js.map +1 -1
  105. package/dist/alphalib/types/robots/document-convert.d.ts +8 -8
  106. package/dist/alphalib/types/robots/document-convert.d.ts.map +1 -1
  107. package/dist/alphalib/types/robots/document-convert.js +9 -3
  108. package/dist/alphalib/types/robots/document-convert.js.map +1 -1
  109. package/dist/alphalib/types/robots/document-merge.d.ts.map +1 -1
  110. package/dist/alphalib/types/robots/document-merge.js +0 -1
  111. package/dist/alphalib/types/robots/document-merge.js.map +1 -1
  112. package/dist/alphalib/types/robots/document-ocr.d.ts.map +1 -1
  113. package/dist/alphalib/types/robots/document-ocr.js +0 -1
  114. package/dist/alphalib/types/robots/document-ocr.js.map +1 -1
  115. package/dist/alphalib/types/robots/document-optimize.d.ts.map +1 -1
  116. package/dist/alphalib/types/robots/document-optimize.js +0 -1
  117. package/dist/alphalib/types/robots/document-optimize.js.map +1 -1
  118. package/dist/alphalib/types/robots/document-split.d.ts.map +1 -1
  119. package/dist/alphalib/types/robots/document-split.js +9 -1
  120. package/dist/alphalib/types/robots/document-split.js.map +1 -1
  121. package/dist/alphalib/types/robots/document-thumbs.d.ts +12 -0
  122. package/dist/alphalib/types/robots/document-thumbs.d.ts.map +1 -1
  123. package/dist/alphalib/types/robots/document-thumbs.js +23 -4
  124. package/dist/alphalib/types/robots/document-thumbs.js.map +1 -1
  125. package/dist/alphalib/types/robots/dropbox-import.d.ts.map +1 -1
  126. package/dist/alphalib/types/robots/dropbox-import.js +0 -1
  127. package/dist/alphalib/types/robots/dropbox-import.js.map +1 -1
  128. package/dist/alphalib/types/robots/dropbox-store.d.ts.map +1 -1
  129. package/dist/alphalib/types/robots/dropbox-store.js +0 -1
  130. package/dist/alphalib/types/robots/dropbox-store.js.map +1 -1
  131. package/dist/alphalib/types/robots/edgly-deliver.d.ts.map +1 -1
  132. package/dist/alphalib/types/robots/edgly-deliver.js +8 -1
  133. package/dist/alphalib/types/robots/edgly-deliver.js.map +1 -1
  134. package/dist/alphalib/types/robots/file-compress.d.ts +12 -0
  135. package/dist/alphalib/types/robots/file-compress.d.ts.map +1 -1
  136. package/dist/alphalib/types/robots/file-compress.js +8 -1
  137. package/dist/alphalib/types/robots/file-compress.js.map +1 -1
  138. package/dist/alphalib/types/robots/file-decompress.d.ts +24 -0
  139. package/dist/alphalib/types/robots/file-decompress.d.ts.map +1 -1
  140. package/dist/alphalib/types/robots/file-decompress.js +30 -5
  141. package/dist/alphalib/types/robots/file-decompress.js.map +1 -1
  142. package/dist/alphalib/types/robots/file-filter.d.ts.map +1 -1
  143. package/dist/alphalib/types/robots/file-filter.js +23 -6
  144. package/dist/alphalib/types/robots/file-filter.js.map +1 -1
  145. package/dist/alphalib/types/robots/file-hash.d.ts +24 -0
  146. package/dist/alphalib/types/robots/file-hash.d.ts.map +1 -1
  147. package/dist/alphalib/types/robots/file-hash.js +23 -1
  148. package/dist/alphalib/types/robots/file-hash.js.map +1 -1
  149. package/dist/alphalib/types/robots/file-preview.d.ts +12 -0
  150. package/dist/alphalib/types/robots/file-preview.d.ts.map +1 -1
  151. package/dist/alphalib/types/robots/file-preview.js +8 -1
  152. package/dist/alphalib/types/robots/file-preview.js.map +1 -1
  153. package/dist/alphalib/types/robots/file-read.d.ts.map +1 -1
  154. package/dist/alphalib/types/robots/file-read.js +9 -1
  155. package/dist/alphalib/types/robots/file-read.js.map +1 -1
  156. package/dist/alphalib/types/robots/file-serve.d.ts +12 -0
  157. package/dist/alphalib/types/robots/file-serve.d.ts.map +1 -1
  158. package/dist/alphalib/types/robots/file-serve.js +38 -7
  159. package/dist/alphalib/types/robots/file-serve.js.map +1 -1
  160. package/dist/alphalib/types/robots/file-verify.d.ts.map +1 -1
  161. package/dist/alphalib/types/robots/file-verify.js +0 -1
  162. package/dist/alphalib/types/robots/file-verify.js.map +1 -1
  163. package/dist/alphalib/types/robots/file-virusscan.d.ts.map +1 -1
  164. package/dist/alphalib/types/robots/file-virusscan.js +5 -4
  165. package/dist/alphalib/types/robots/file-virusscan.js.map +1 -1
  166. package/dist/alphalib/types/robots/file-watermark.d.ts.map +1 -1
  167. package/dist/alphalib/types/robots/file-watermark.js +10 -0
  168. package/dist/alphalib/types/robots/file-watermark.js.map +1 -1
  169. package/dist/alphalib/types/robots/ftp-import.d.ts.map +1 -1
  170. package/dist/alphalib/types/robots/ftp-import.js +0 -1
  171. package/dist/alphalib/types/robots/ftp-import.js.map +1 -1
  172. package/dist/alphalib/types/robots/ftp-store.d.ts.map +1 -1
  173. package/dist/alphalib/types/robots/ftp-store.js +0 -1
  174. package/dist/alphalib/types/robots/ftp-store.js.map +1 -1
  175. package/dist/alphalib/types/robots/google-import.d.ts.map +1 -1
  176. package/dist/alphalib/types/robots/google-import.js +0 -1
  177. package/dist/alphalib/types/robots/google-import.js.map +1 -1
  178. package/dist/alphalib/types/robots/google-store.d.ts.map +1 -1
  179. package/dist/alphalib/types/robots/google-store.js +0 -1
  180. package/dist/alphalib/types/robots/google-store.js.map +1 -1
  181. package/dist/alphalib/types/robots/html-convert.d.ts.map +1 -1
  182. package/dist/alphalib/types/robots/html-convert.js +0 -1
  183. package/dist/alphalib/types/robots/html-convert.js.map +1 -1
  184. package/dist/alphalib/types/robots/http-import.d.ts.map +1 -1
  185. package/dist/alphalib/types/robots/http-import.js +0 -1
  186. package/dist/alphalib/types/robots/http-import.js.map +1 -1
  187. package/dist/alphalib/types/robots/image-bgremove.d.ts +8 -8
  188. package/dist/alphalib/types/robots/image-bgremove.d.ts.map +1 -1
  189. package/dist/alphalib/types/robots/image-bgremove.js +4 -2
  190. package/dist/alphalib/types/robots/image-bgremove.js.map +1 -1
  191. package/dist/alphalib/types/robots/image-copyrightdetect.d.ts +465 -0
  192. package/dist/alphalib/types/robots/image-copyrightdetect.d.ts.map +1 -0
  193. package/dist/alphalib/types/robots/image-copyrightdetect.js +136 -0
  194. package/dist/alphalib/types/robots/image-copyrightdetect.js.map +1 -0
  195. package/dist/alphalib/types/robots/image-describe.d.ts.map +1 -1
  196. package/dist/alphalib/types/robots/image-describe.js +0 -1
  197. package/dist/alphalib/types/robots/image-describe.js.map +1 -1
  198. package/dist/alphalib/types/robots/image-enhance.d.ts +502 -0
  199. package/dist/alphalib/types/robots/image-enhance.d.ts.map +1 -0
  200. package/dist/alphalib/types/robots/image-enhance.js +146 -0
  201. package/dist/alphalib/types/robots/image-enhance.js.map +1 -0
  202. package/dist/alphalib/types/robots/image-facedetect.d.ts.map +1 -1
  203. package/dist/alphalib/types/robots/image-facedetect.js +0 -1
  204. package/dist/alphalib/types/robots/image-facedetect.js.map +1 -1
  205. package/dist/alphalib/types/robots/image-generate.d.ts +4 -5
  206. package/dist/alphalib/types/robots/image-generate.d.ts.map +1 -1
  207. package/dist/alphalib/types/robots/image-generate.js +62 -8
  208. package/dist/alphalib/types/robots/image-generate.js.map +1 -1
  209. package/dist/alphalib/types/robots/image-merge.d.ts +12 -12
  210. package/dist/alphalib/types/robots/image-merge.d.ts.map +1 -1
  211. package/dist/alphalib/types/robots/image-merge.js +0 -1
  212. package/dist/alphalib/types/robots/image-merge.js.map +1 -1
  213. package/dist/alphalib/types/robots/image-ocr.d.ts.map +1 -1
  214. package/dist/alphalib/types/robots/image-ocr.js +0 -1
  215. package/dist/alphalib/types/robots/image-ocr.js.map +1 -1
  216. package/dist/alphalib/types/robots/image-optimize.d.ts +12 -0
  217. package/dist/alphalib/types/robots/image-optimize.d.ts.map +1 -1
  218. package/dist/alphalib/types/robots/image-optimize.js +16 -3
  219. package/dist/alphalib/types/robots/image-optimize.js.map +1 -1
  220. package/dist/alphalib/types/robots/image-resize.d.ts +20 -8
  221. package/dist/alphalib/types/robots/image-resize.d.ts.map +1 -1
  222. package/dist/alphalib/types/robots/image-resize.js +37 -1
  223. package/dist/alphalib/types/robots/image-resize.js.map +1 -1
  224. package/dist/alphalib/types/robots/image-upscale.d.ts +447 -0
  225. package/dist/alphalib/types/robots/image-upscale.d.ts.map +1 -0
  226. package/dist/alphalib/types/robots/image-upscale.js +65 -0
  227. package/dist/alphalib/types/robots/image-upscale.js.map +1 -0
  228. package/dist/alphalib/types/robots/mega-import.d.ts +244 -0
  229. package/dist/alphalib/types/robots/mega-import.d.ts.map +1 -0
  230. package/dist/alphalib/types/robots/mega-import.js +84 -0
  231. package/dist/alphalib/types/robots/mega-import.js.map +1 -0
  232. package/dist/alphalib/types/robots/mega-store.d.ts +526 -0
  233. package/dist/alphalib/types/robots/mega-store.d.ts.map +1 -0
  234. package/dist/alphalib/types/robots/mega-store.js +82 -0
  235. package/dist/alphalib/types/robots/mega-store.js.map +1 -0
  236. package/dist/alphalib/types/robots/meta-read.d.ts.map +1 -1
  237. package/dist/alphalib/types/robots/meta-read.js +8 -0
  238. package/dist/alphalib/types/robots/meta-read.js.map +1 -1
  239. package/dist/alphalib/types/robots/meta-write.d.ts.map +1 -1
  240. package/dist/alphalib/types/robots/meta-write.js +0 -1
  241. package/dist/alphalib/types/robots/meta-write.js.map +1 -1
  242. package/dist/alphalib/types/robots/minio-import.d.ts.map +1 -1
  243. package/dist/alphalib/types/robots/minio-import.js +0 -1
  244. package/dist/alphalib/types/robots/minio-import.js.map +1 -1
  245. package/dist/alphalib/types/robots/minio-store.d.ts.map +1 -1
  246. package/dist/alphalib/types/robots/minio-store.js +0 -1
  247. package/dist/alphalib/types/robots/minio-store.js.map +1 -1
  248. package/dist/alphalib/types/robots/progress-simulate.d.ts.map +1 -1
  249. package/dist/alphalib/types/robots/progress-simulate.js +13 -0
  250. package/dist/alphalib/types/robots/progress-simulate.js.map +1 -1
  251. package/dist/alphalib/types/robots/s3-import.d.ts.map +1 -1
  252. package/dist/alphalib/types/robots/s3-import.js +0 -1
  253. package/dist/alphalib/types/robots/s3-import.js.map +1 -1
  254. package/dist/alphalib/types/robots/s3-store.d.ts.map +1 -1
  255. package/dist/alphalib/types/robots/s3-store.js +0 -1
  256. package/dist/alphalib/types/robots/s3-store.js.map +1 -1
  257. package/dist/alphalib/types/robots/script-run.d.ts.map +1 -1
  258. package/dist/alphalib/types/robots/script-run.js +10 -1
  259. package/dist/alphalib/types/robots/script-run.js.map +1 -1
  260. package/dist/alphalib/types/robots/sftp-import.d.ts.map +1 -1
  261. package/dist/alphalib/types/robots/sftp-import.js +0 -1
  262. package/dist/alphalib/types/robots/sftp-import.js.map +1 -1
  263. package/dist/alphalib/types/robots/sftp-store.d.ts.map +1 -1
  264. package/dist/alphalib/types/robots/sftp-store.js +0 -1
  265. package/dist/alphalib/types/robots/sftp-store.js.map +1 -1
  266. package/dist/alphalib/types/robots/speech-transcribe.d.ts.map +1 -1
  267. package/dist/alphalib/types/robots/speech-transcribe.js +0 -1
  268. package/dist/alphalib/types/robots/speech-transcribe.js.map +1 -1
  269. package/dist/alphalib/types/robots/supabase-import.d.ts.map +1 -1
  270. package/dist/alphalib/types/robots/supabase-import.js +0 -1
  271. package/dist/alphalib/types/robots/supabase-import.js.map +1 -1
  272. package/dist/alphalib/types/robots/supabase-store.d.ts.map +1 -1
  273. package/dist/alphalib/types/robots/supabase-store.js +0 -1
  274. package/dist/alphalib/types/robots/supabase-store.js.map +1 -1
  275. package/dist/alphalib/types/robots/swift-import.d.ts.map +1 -1
  276. package/dist/alphalib/types/robots/swift-import.js +0 -1
  277. package/dist/alphalib/types/robots/swift-import.js.map +1 -1
  278. package/dist/alphalib/types/robots/swift-store.d.ts.map +1 -1
  279. package/dist/alphalib/types/robots/swift-store.js +0 -1
  280. package/dist/alphalib/types/robots/swift-store.js.map +1 -1
  281. package/dist/alphalib/types/robots/text-speak.d.ts.map +1 -1
  282. package/dist/alphalib/types/robots/text-speak.js +0 -1
  283. package/dist/alphalib/types/robots/text-speak.js.map +1 -1
  284. package/dist/alphalib/types/robots/text-translate.d.ts.map +1 -1
  285. package/dist/alphalib/types/robots/text-translate.js +0 -1
  286. package/dist/alphalib/types/robots/text-translate.js.map +1 -1
  287. package/dist/alphalib/types/robots/tigris-import.d.ts.map +1 -1
  288. package/dist/alphalib/types/robots/tigris-import.js +0 -1
  289. package/dist/alphalib/types/robots/tigris-import.js.map +1 -1
  290. package/dist/alphalib/types/robots/tigris-store.d.ts.map +1 -1
  291. package/dist/alphalib/types/robots/tigris-store.js +0 -1
  292. package/dist/alphalib/types/robots/tigris-store.js.map +1 -1
  293. package/dist/alphalib/types/robots/tlcdn-deliver.d.ts.map +1 -1
  294. package/dist/alphalib/types/robots/tlcdn-deliver.js +8 -1
  295. package/dist/alphalib/types/robots/tlcdn-deliver.js.map +1 -1
  296. package/dist/alphalib/types/robots/tus-store.d.ts.map +1 -1
  297. package/dist/alphalib/types/robots/tus-store.js +1 -14
  298. package/dist/alphalib/types/robots/tus-store.js.map +1 -1
  299. package/dist/alphalib/types/robots/upload-handle.d.ts.map +1 -1
  300. package/dist/alphalib/types/robots/upload-handle.js +0 -1
  301. package/dist/alphalib/types/robots/upload-handle.js.map +1 -1
  302. package/dist/alphalib/types/robots/video-adaptive.d.ts +32 -8
  303. package/dist/alphalib/types/robots/video-adaptive.d.ts.map +1 -1
  304. package/dist/alphalib/types/robots/video-adaptive.js +22 -6
  305. package/dist/alphalib/types/robots/video-adaptive.js.map +1 -1
  306. package/dist/alphalib/types/robots/video-artwork.d.ts +2855 -0
  307. package/dist/alphalib/types/robots/video-artwork.d.ts.map +1 -0
  308. package/dist/alphalib/types/robots/video-artwork.js +66 -0
  309. package/dist/alphalib/types/robots/video-artwork.js.map +1 -0
  310. package/dist/alphalib/types/robots/video-concat.d.ts +36 -0
  311. package/dist/alphalib/types/robots/video-concat.d.ts.map +1 -1
  312. package/dist/alphalib/types/robots/video-concat.js +30 -1
  313. package/dist/alphalib/types/robots/video-concat.js.map +1 -1
  314. package/dist/alphalib/types/robots/video-encode.d.ts.map +1 -1
  315. package/dist/alphalib/types/robots/video-encode.js +0 -1
  316. package/dist/alphalib/types/robots/video-encode.js.map +1 -1
  317. package/dist/alphalib/types/robots/video-generate.d.ts +594 -0
  318. package/dist/alphalib/types/robots/video-generate.d.ts.map +1 -0
  319. package/dist/alphalib/types/robots/video-generate.js +90 -0
  320. package/dist/alphalib/types/robots/video-generate.js.map +1 -0
  321. package/dist/alphalib/types/robots/video-merge.d.ts +24 -0
  322. package/dist/alphalib/types/robots/video-merge.d.ts.map +1 -1
  323. package/dist/alphalib/types/robots/video-merge.js +33 -1
  324. package/dist/alphalib/types/robots/video-merge.js.map +1 -1
  325. package/dist/alphalib/types/robots/video-ondemand.d.ts.map +1 -1
  326. package/dist/alphalib/types/robots/video-ondemand.js +3 -4
  327. package/dist/alphalib/types/robots/video-ondemand.js.map +1 -1
  328. package/dist/alphalib/types/robots/video-split.d.ts +2939 -0
  329. package/dist/alphalib/types/robots/video-split.d.ts.map +1 -0
  330. package/dist/alphalib/types/robots/video-split.js +78 -0
  331. package/dist/alphalib/types/robots/video-split.js.map +1 -0
  332. package/dist/alphalib/types/robots/video-subtitle.d.ts +52 -4
  333. package/dist/alphalib/types/robots/video-subtitle.d.ts.map +1 -1
  334. package/dist/alphalib/types/robots/video-subtitle.js +61 -8
  335. package/dist/alphalib/types/robots/video-subtitle.js.map +1 -1
  336. package/dist/alphalib/types/robots/video-thumbs.d.ts.map +1 -1
  337. package/dist/alphalib/types/robots/video-thumbs.js +0 -1
  338. package/dist/alphalib/types/robots/video-thumbs.js.map +1 -1
  339. package/dist/alphalib/types/robots/vimeo-import.d.ts +4 -4
  340. package/dist/alphalib/types/robots/vimeo-import.d.ts.map +1 -1
  341. package/dist/alphalib/types/robots/vimeo-import.js +0 -1
  342. package/dist/alphalib/types/robots/vimeo-import.js.map +1 -1
  343. package/dist/alphalib/types/robots/vimeo-store.d.ts +2 -2
  344. package/dist/alphalib/types/robots/vimeo-store.d.ts.map +1 -1
  345. package/dist/alphalib/types/robots/vimeo-store.js +14 -3
  346. package/dist/alphalib/types/robots/vimeo-store.js.map +1 -1
  347. package/dist/alphalib/types/robots/wasabi-import.d.ts.map +1 -1
  348. package/dist/alphalib/types/robots/wasabi-import.js +0 -1
  349. package/dist/alphalib/types/robots/wasabi-import.js.map +1 -1
  350. package/dist/alphalib/types/robots/wasabi-store.d.ts.map +1 -1
  351. package/dist/alphalib/types/robots/wasabi-store.js +0 -1
  352. package/dist/alphalib/types/robots/wasabi-store.js.map +1 -1
  353. package/dist/alphalib/types/robots/youtube-store.d.ts.map +1 -1
  354. package/dist/alphalib/types/robots/youtube-store.js +4 -5
  355. package/dist/alphalib/types/robots/youtube-store.js.map +1 -1
  356. package/dist/alphalib/types/skillFrontmatter.d.ts +29 -0
  357. package/dist/alphalib/types/skillFrontmatter.d.ts.map +1 -0
  358. package/dist/alphalib/types/skillFrontmatter.js +19 -0
  359. package/dist/alphalib/types/skillFrontmatter.js.map +1 -0
  360. package/dist/alphalib/types/template.d.ts +77 -132175
  361. package/dist/alphalib/types/template.d.ts.map +1 -1
  362. package/dist/alphalib/types/template.js +26 -3
  363. package/dist/alphalib/types/template.js.map +1 -1
  364. package/dist/alphalib/types/templateCredential.d.ts +13 -3
  365. package/dist/alphalib/types/templateCredential.d.ts.map +1 -1
  366. package/dist/alphalib/types/templateCredential.js +1 -0
  367. package/dist/alphalib/types/templateCredential.js.map +1 -1
  368. package/dist/alphalib/zodParseWithContext.d.ts.map +1 -1
  369. package/dist/alphalib/zodParseWithContext.js +15 -11
  370. package/dist/alphalib/zodParseWithContext.js.map +1 -1
  371. package/dist/cli/commands/assemblies.d.ts +8 -2
  372. package/dist/cli/commands/assemblies.d.ts.map +1 -1
  373. package/dist/cli/commands/assemblies.js +566 -411
  374. package/dist/cli/commands/assemblies.js.map +1 -1
  375. package/dist/cli/commands/index.d.ts.map +1 -1
  376. package/dist/cli/commands/index.js +5 -0
  377. package/dist/cli/commands/index.js.map +1 -1
  378. package/dist/cli/commands/templates.d.ts.map +1 -1
  379. package/dist/cli/commands/templates.js +4 -14
  380. package/dist/cli/commands/templates.js.map +1 -1
  381. package/dist/cli/fileProcessingOptions.d.ts +35 -0
  382. package/dist/cli/fileProcessingOptions.d.ts.map +1 -0
  383. package/dist/cli/fileProcessingOptions.js +182 -0
  384. package/dist/cli/fileProcessingOptions.js.map +1 -0
  385. package/dist/cli/generateIntentDocs.d.ts +6 -0
  386. package/dist/cli/generateIntentDocs.d.ts.map +1 -0
  387. package/dist/cli/generateIntentDocs.js +337 -0
  388. package/dist/cli/generateIntentDocs.js.map +1 -0
  389. package/dist/cli/intentCommandSpecs.d.ts +36 -0
  390. package/dist/cli/intentCommandSpecs.d.ts.map +1 -0
  391. package/dist/cli/intentCommandSpecs.js +179 -0
  392. package/dist/cli/intentCommandSpecs.js.map +1 -0
  393. package/dist/cli/intentCommands.d.ts +13 -0
  394. package/dist/cli/intentCommands.d.ts.map +1 -0
  395. package/dist/cli/intentCommands.js +368 -0
  396. package/dist/cli/intentCommands.js.map +1 -0
  397. package/dist/cli/intentFields.d.ts +25 -0
  398. package/dist/cli/intentFields.d.ts.map +1 -0
  399. package/dist/cli/intentFields.js +298 -0
  400. package/dist/cli/intentFields.js.map +1 -0
  401. package/dist/cli/intentInputPolicy.d.ts +10 -0
  402. package/dist/cli/intentInputPolicy.d.ts.map +1 -0
  403. package/dist/cli/intentInputPolicy.js +2 -0
  404. package/dist/cli/intentInputPolicy.js.map +1 -0
  405. package/dist/cli/intentRuntime.d.ts +114 -0
  406. package/dist/cli/intentRuntime.d.ts.map +1 -0
  407. package/dist/cli/intentRuntime.js +464 -0
  408. package/dist/cli/intentRuntime.js.map +1 -0
  409. package/dist/cli/resultFiles.d.ts +19 -0
  410. package/dist/cli/resultFiles.d.ts.map +1 -0
  411. package/dist/cli/resultFiles.js +66 -0
  412. package/dist/cli/resultFiles.js.map +1 -0
  413. package/dist/cli/resultUrls.d.ts +19 -0
  414. package/dist/cli/resultUrls.d.ts.map +1 -0
  415. package/dist/cli/resultUrls.js +36 -0
  416. package/dist/cli/resultUrls.js.map +1 -0
  417. package/dist/cli/semanticIntents/imageDescribe.d.ts +45 -0
  418. package/dist/cli/semanticIntents/imageDescribe.d.ts.map +1 -0
  419. package/dist/cli/semanticIntents/imageDescribe.js +188 -0
  420. package/dist/cli/semanticIntents/imageDescribe.js.map +1 -0
  421. package/dist/cli/semanticIntents/imageGenerate.d.ts +94 -0
  422. package/dist/cli/semanticIntents/imageGenerate.d.ts.map +1 -0
  423. package/dist/cli/semanticIntents/imageGenerate.js +215 -0
  424. package/dist/cli/semanticIntents/imageGenerate.js.map +1 -0
  425. package/dist/cli/semanticIntents/index.d.ts +20 -0
  426. package/dist/cli/semanticIntents/index.d.ts.map +1 -0
  427. package/dist/cli/semanticIntents/index.js +20 -0
  428. package/dist/cli/semanticIntents/index.js.map +1 -0
  429. package/dist/cli/semanticIntents/markdownPdf.d.ts +4 -0
  430. package/dist/cli/semanticIntents/markdownPdf.d.ts.map +1 -0
  431. package/dist/cli/semanticIntents/markdownPdf.js +93 -0
  432. package/dist/cli/semanticIntents/markdownPdf.js.map +1 -0
  433. package/dist/cli/semanticIntents/parsing.d.ts +11 -0
  434. package/dist/cli/semanticIntents/parsing.d.ts.map +1 -0
  435. package/dist/cli/semanticIntents/parsing.js +29 -0
  436. package/dist/cli/semanticIntents/parsing.js.map +1 -0
  437. package/dist/cli/stepsInput.d.ts +4 -0
  438. package/dist/cli/stepsInput.d.ts.map +1 -0
  439. package/dist/cli/stepsInput.js +23 -0
  440. package/dist/cli/stepsInput.js.map +1 -0
  441. package/dist/cli.d.ts +1 -1
  442. package/dist/cli.d.ts.map +1 -1
  443. package/dist/cli.js +5 -4
  444. package/dist/cli.js.map +1 -1
  445. package/dist/ensureUniqueCounter.d.ts +8 -0
  446. package/dist/ensureUniqueCounter.d.ts.map +1 -0
  447. package/dist/ensureUniqueCounter.js +48 -0
  448. package/dist/ensureUniqueCounter.js.map +1 -0
  449. package/dist/inputFiles.d.ts +9 -0
  450. package/dist/inputFiles.d.ts.map +1 -1
  451. package/dist/inputFiles.js +177 -26
  452. package/dist/inputFiles.js.map +1 -1
  453. package/dist/robots.js +3 -3
  454. package/dist/robots.js.map +1 -1
  455. package/package.json +9 -7
  456. package/src/Transloadit.ts +3 -3
  457. package/src/alphalib/assembly-linter.ts +1 -1
  458. package/src/alphalib/stepParsing.ts +2 -2
  459. package/src/alphalib/types/assemblyStatus.ts +45 -3
  460. package/src/alphalib/types/builtinTemplates.ts +24 -0
  461. package/src/alphalib/types/robots/_index.ts +211 -20
  462. package/src/alphalib/types/robots/_instructions-primitives.ts +93 -3
  463. package/src/alphalib/types/robots/ai-chat.ts +35 -4
  464. package/src/alphalib/types/robots/assembly-savejson.ts +8 -0
  465. package/src/alphalib/types/robots/audio-artwork.ts +4 -5
  466. package/src/alphalib/types/robots/audio-concat.ts +1 -2
  467. package/src/alphalib/types/robots/audio-encode.ts +1 -2
  468. package/src/alphalib/types/robots/audio-loop.ts +1 -2
  469. package/src/alphalib/types/robots/audio-merge.ts +1 -2
  470. package/src/alphalib/types/robots/audio-split.ts +130 -0
  471. package/src/alphalib/types/robots/audio-waveform.ts +90 -6
  472. package/src/alphalib/types/robots/azure-import.ts +0 -1
  473. package/src/alphalib/types/robots/azure-store.ts +0 -1
  474. package/src/alphalib/types/robots/backblaze-import.ts +0 -1
  475. package/src/alphalib/types/robots/backblaze-store.ts +0 -1
  476. package/src/alphalib/types/robots/box-import.ts +97 -0
  477. package/src/alphalib/types/robots/box-store.ts +94 -0
  478. package/src/alphalib/types/robots/cloudfiles-import.ts +0 -1
  479. package/src/alphalib/types/robots/cloudfiles-store.ts +0 -1
  480. package/src/alphalib/types/robots/cloudflare-import.ts +0 -1
  481. package/src/alphalib/types/robots/cloudflare-store.ts +0 -1
  482. package/src/alphalib/types/robots/digitalocean-import.ts +0 -1
  483. package/src/alphalib/types/robots/digitalocean-store.ts +0 -1
  484. package/src/alphalib/types/robots/document-autorotate.ts +8 -1
  485. package/src/alphalib/types/robots/document-convert.ts +10 -3
  486. package/src/alphalib/types/robots/document-merge.ts +0 -1
  487. package/src/alphalib/types/robots/document-ocr.ts +0 -1
  488. package/src/alphalib/types/robots/document-optimize.ts +0 -1
  489. package/src/alphalib/types/robots/document-split.ts +9 -1
  490. package/src/alphalib/types/robots/document-thumbs.ts +26 -4
  491. package/src/alphalib/types/robots/dropbox-import.ts +0 -1
  492. package/src/alphalib/types/robots/dropbox-store.ts +0 -1
  493. package/src/alphalib/types/robots/edgly-deliver.ts +8 -1
  494. package/src/alphalib/types/robots/file-compress.ts +8 -1
  495. package/src/alphalib/types/robots/file-decompress.ts +30 -5
  496. package/src/alphalib/types/robots/file-filter.ts +23 -6
  497. package/src/alphalib/types/robots/file-hash.ts +23 -1
  498. package/src/alphalib/types/robots/file-preview.ts +8 -1
  499. package/src/alphalib/types/robots/file-read.ts +9 -1
  500. package/src/alphalib/types/robots/file-serve.ts +39 -7
  501. package/src/alphalib/types/robots/file-verify.ts +0 -1
  502. package/src/alphalib/types/robots/file-virusscan.ts +6 -4
  503. package/src/alphalib/types/robots/file-watermark.ts +10 -0
  504. package/src/alphalib/types/robots/ftp-import.ts +0 -1
  505. package/src/alphalib/types/robots/ftp-store.ts +0 -1
  506. package/src/alphalib/types/robots/google-import.ts +0 -1
  507. package/src/alphalib/types/robots/google-store.ts +0 -1
  508. package/src/alphalib/types/robots/html-convert.ts +0 -1
  509. package/src/alphalib/types/robots/http-import.ts +0 -1
  510. package/src/alphalib/types/robots/image-bgremove.ts +4 -2
  511. package/src/alphalib/types/robots/image-copyrightdetect.ts +167 -0
  512. package/src/alphalib/types/robots/image-describe.ts +0 -1
  513. package/src/alphalib/types/robots/image-enhance.ts +185 -0
  514. package/src/alphalib/types/robots/image-facedetect.ts +0 -1
  515. package/src/alphalib/types/robots/image-generate.ts +74 -8
  516. package/src/alphalib/types/robots/image-merge.ts +0 -1
  517. package/src/alphalib/types/robots/image-ocr.ts +0 -1
  518. package/src/alphalib/types/robots/image-optimize.ts +16 -3
  519. package/src/alphalib/types/robots/image-resize.ts +37 -1
  520. package/src/alphalib/types/robots/image-upscale.ts +93 -0
  521. package/src/alphalib/types/robots/mega-import.ts +123 -0
  522. package/src/alphalib/types/robots/mega-store.ts +109 -0
  523. package/src/alphalib/types/robots/meta-read.ts +8 -0
  524. package/src/alphalib/types/robots/meta-write.ts +0 -1
  525. package/src/alphalib/types/robots/minio-import.ts +0 -1
  526. package/src/alphalib/types/robots/minio-store.ts +0 -1
  527. package/src/alphalib/types/robots/progress-simulate.ts +13 -0
  528. package/src/alphalib/types/robots/s3-import.ts +0 -1
  529. package/src/alphalib/types/robots/s3-store.ts +0 -1
  530. package/src/alphalib/types/robots/script-run.ts +11 -1
  531. package/src/alphalib/types/robots/sftp-import.ts +0 -1
  532. package/src/alphalib/types/robots/sftp-store.ts +0 -1
  533. package/src/alphalib/types/robots/speech-transcribe.ts +0 -1
  534. package/src/alphalib/types/robots/supabase-import.ts +0 -1
  535. package/src/alphalib/types/robots/supabase-store.ts +0 -1
  536. package/src/alphalib/types/robots/swift-import.ts +0 -1
  537. package/src/alphalib/types/robots/swift-store.ts +0 -1
  538. package/src/alphalib/types/robots/text-speak.ts +0 -1
  539. package/src/alphalib/types/robots/text-translate.ts +0 -1
  540. package/src/alphalib/types/robots/tigris-import.ts +0 -1
  541. package/src/alphalib/types/robots/tigris-store.ts +0 -1
  542. package/src/alphalib/types/robots/tlcdn-deliver.ts +8 -1
  543. package/src/alphalib/types/robots/tus-store.ts +1 -14
  544. package/src/alphalib/types/robots/upload-handle.ts +0 -1
  545. package/src/alphalib/types/robots/video-adaptive.ts +22 -6
  546. package/src/alphalib/types/robots/video-artwork.ts +100 -0
  547. package/src/alphalib/types/robots/video-concat.ts +30 -1
  548. package/src/alphalib/types/robots/video-encode.ts +0 -1
  549. package/src/alphalib/types/robots/video-generate.ts +120 -0
  550. package/src/alphalib/types/robots/video-merge.ts +33 -1
  551. package/src/alphalib/types/robots/video-ondemand.ts +3 -4
  552. package/src/alphalib/types/robots/video-split.ts +117 -0
  553. package/src/alphalib/types/robots/video-subtitle.ts +61 -8
  554. package/src/alphalib/types/robots/video-thumbs.ts +0 -1
  555. package/src/alphalib/types/robots/vimeo-import.ts +0 -1
  556. package/src/alphalib/types/robots/vimeo-store.ts +14 -3
  557. package/src/alphalib/types/robots/wasabi-import.ts +0 -1
  558. package/src/alphalib/types/robots/wasabi-store.ts +0 -1
  559. package/src/alphalib/types/robots/youtube-store.ts +4 -5
  560. package/src/alphalib/types/skillFrontmatter.ts +24 -0
  561. package/src/alphalib/types/template.ts +61 -15
  562. package/src/alphalib/types/templateCredential.ts +1 -0
  563. package/src/alphalib/zodParseWithContext.ts +19 -12
  564. package/src/cli/commands/assemblies.ts +825 -505
  565. package/src/cli/commands/index.ts +6 -3
  566. package/src/cli/commands/templates.ts +6 -17
  567. package/src/cli/fileProcessingOptions.ts +294 -0
  568. package/src/cli/generateIntentDocs.ts +438 -0
  569. package/src/cli/intentCommandSpecs.ts +277 -0
  570. package/src/cli/intentCommands.ts +525 -0
  571. package/src/cli/intentFields.ts +403 -0
  572. package/src/cli/intentInputPolicy.ts +11 -0
  573. package/src/cli/intentRuntime.ts +739 -0
  574. package/src/cli/resultFiles.ts +105 -0
  575. package/src/cli/resultUrls.ts +72 -0
  576. package/src/cli/semanticIntents/imageDescribe.ts +257 -0
  577. package/src/cli/semanticIntents/imageGenerate.ts +254 -0
  578. package/src/cli/semanticIntents/index.ts +53 -0
  579. package/src/cli/semanticIntents/markdownPdf.ts +120 -0
  580. package/src/cli/semanticIntents/parsing.ts +56 -0
  581. package/src/cli/stepsInput.ts +32 -0
  582. package/src/cli.ts +5 -4
  583. package/src/ensureUniqueCounter.ts +75 -0
  584. package/src/inputFiles.ts +277 -26
  585. package/src/robots.ts +3 -3
package/README.md CHANGED
@@ -33,15 +33,18 @@ This is a **Node.js** SDK to make it easy to talk to the
33
33
  Inside your project, type:
34
34
 
35
35
  ```bash
36
- yarn add transloadit
36
+ yarn add @transloadit/node
37
37
  ```
38
38
 
39
39
  or
40
40
 
41
41
  ```bash
42
- npm install --save transloadit
42
+ npm install --save @transloadit/node
43
43
  ```
44
44
 
45
+ The legacy npm package name `transloadit` is kept as an alias for backward compatibility, but
46
+ `@transloadit/node` is the canonical package name.
47
+
45
48
  ## Command Line Interface (CLI)
46
49
 
47
50
  This package includes a full-featured CLI for interacting with Transloadit from your terminal.
@@ -54,9 +57,12 @@ export TRANSLOADIT_KEY="YOUR_TRANSLOADIT_KEY"
54
57
  export TRANSLOADIT_SECRET="YOUR_TRANSLOADIT_SECRET"
55
58
 
56
59
  # See all available commands
57
- npx transloadit --help
60
+ npx -y @transloadit/node --help
58
61
  ```
59
62
 
63
+ The CLI binary is still called `transloadit`, so command examples below may use
64
+ `npx transloadit ...`.
65
+
60
66
  ### Minting Bearer Tokens (Hosted MCP)
61
67
 
62
68
  If you want to connect an agent to the Transloadit-hosted MCP endpoint, mint a short-lived bearer
@@ -78,7 +84,905 @@ npx -y transloadit auth token --aud mcp --scope assemblies:write,templates:read
78
84
 
79
85
  ### Processing Media
80
86
 
81
- Create Assemblies to process files using Assembly Instructions (steps) or Templates:
87
+ For common one-off tasks, prefer the intent-first commands:
88
+
89
+ The full generated intent reference also lives in [`docs/intent-commands.md`](./docs/intent-commands.md).
90
+
91
+ <!-- GENERATED_INTENT_DOCS:START -->
92
+
93
+ #### At a glance
94
+
95
+ Intent commands are the fastest path to common one-off tasks from the CLI.
96
+ Use `--print-urls` when you want temporary result URLs without downloading locally.
97
+ All intent commands also support the global CLI flags `--json`, `--log-level`, `--endpoint`, and `--help`.
98
+
99
+ | Command | What it does | Input | Output |
100
+ | --- | --- | --- | --- |
101
+ | `image generate` | Generate images from text prompts | file, dir, URL, base64 | file |
102
+ | `preview generate` | Generate a preview thumbnail | file, dir, URL, base64 | file |
103
+ | `image remove-background` | Remove the background from images | file, dir, URL, base64 | file |
104
+ | `image optimize` | Optimize images without quality loss | file, dir, URL, base64 | file |
105
+ | `image resize` | Convert, resize, or watermark images | file, dir, URL, base64 | file |
106
+ | `document convert` | Convert documents into different formats | file, dir, URL, base64 | file |
107
+ | `document optimize` | Reduce PDF file size | file, dir, URL, base64 | file |
108
+ | `document auto-rotate` | Auto-rotate documents to the correct orientation | file, dir, URL, base64 | file |
109
+ | `document thumbs` | Extract thumbnail images from documents | file, dir, URL, base64 | directory |
110
+ | `audio waveform` | Generate waveform images from audio | file, dir, URL, base64 | file |
111
+ | `text speak` | Speak text | file, dir, URL, base64 | file |
112
+ | `video thumbs` | Extract thumbnails from videos | file, dir, URL, base64 | directory |
113
+ | `video encode-hls` | Run builtin/encode-hls-video@latest | file, dir, URL, base64 | directory |
114
+ | `image describe` | Describe images as labels or publishable text fields | file, dir, URL, base64 | file |
115
+ | `markdown pdf` | Render Markdown files as PDFs | file, dir, URL, base64 | file |
116
+ | `markdown docx` | Render Markdown files as DOCX documents | file, dir, URL, base64 | file |
117
+ | `file compress` | Compress files | file, dir, URL, base64 | file |
118
+ | `file decompress` | Decompress archives | file, dir, URL, base64 | directory |
119
+
120
+ > At least one of `--out` or `--print-urls` is required on every intent command.
121
+
122
+ #### Shared flags
123
+
124
+ These flags are available across many intent commands, so the per-command sections below focus on differences.
125
+
126
+ **Shared file input & output flags**
127
+
128
+ | Flag | Type | Required | Example | Description |
129
+ | --- | --- | --- | --- | --- |
130
+ | `--input, -i` | `path \| dir \| url \| -` | varies | `input.file` | Provide an input path, directory, URL, or - for stdin |
131
+ | `--input-base64` | `base64 \| data URL` | no | `data:text/plain;base64,SGVsbG8=` | Provide base64-encoded input content directly |
132
+ | `--out, -o` | `path` | yes* | `output.file` | Write the result to this path or directory |
133
+ | `--print-urls` | `boolean` | no | `false` | Print temporary result URLs after completion |
134
+
135
+ **Shared no-input output flags**
136
+
137
+ | Flag | Type | Required | Example | Description |
138
+ | --- | --- | --- | --- | --- |
139
+ | `--out, -o` | `path` | yes* | `output.file` | Write the result to this path |
140
+ | `--print-urls` | `boolean` | no | `false` | Print temporary result URLs after completion |
141
+
142
+ **Shared processing flags**
143
+
144
+ | Flag | Type | Required | Example | Description |
145
+ | --- | --- | --- | --- | --- |
146
+ | `--recursive, -r` | `boolean` | no | `false` | Enumerate input directories recursively |
147
+ | `--delete-after-processing, -d` | `boolean` | no | `false` | Delete input files after they are processed |
148
+ | `--reprocess-stale` | `boolean` | no | `false` | Process inputs even if output is newer |
149
+
150
+ **Shared watch flags**
151
+
152
+ | Flag | Type | Required | Example | Description |
153
+ | --- | --- | --- | --- | --- |
154
+ | `--watch, -w` | `boolean` | no | `false` | Watch inputs for changes |
155
+ | `--concurrency, -c` | `number` | no | `5` | Maximum number of concurrent assemblies (default: 5) |
156
+
157
+ **Shared bundling flags**
158
+
159
+ | Flag | Type | Required | Example | Description |
160
+ | --- | --- | --- | --- | --- |
161
+ | `--single-assembly` | `boolean` | no | `false` | Pass all input files to a single assembly instead of one assembly per file |
162
+
163
+ #### `image generate`
164
+
165
+ Generate images from text prompts
166
+
167
+ Runs `/image/generate`. Without inputs, this is text-to-image. With one or more `--input` files, the inputs are bundled into a single assembly so the prompt can refer to them by filename.
168
+
169
+ **Usage**
170
+
171
+ ```bash
172
+ npx transloadit image generate [--input <path|dir|url|->] [options]
173
+ ```
174
+
175
+ **Quick facts**
176
+
177
+ - Input: file, dir, URL, base64
178
+ - Output: file
179
+ - Execution: single assembly
180
+ - Backend: semantic alias `image-generate`
181
+
182
+ **Shared flags**
183
+
184
+ - Uses the shared file input and output flags listed above.
185
+ - Also supports the shared base processing flags listed above.
186
+
187
+ **Command options**
188
+
189
+ | Flag | Type | Required | Example | Description |
190
+ | --- | --- | --- | --- | --- |
191
+ | `--prompt` | `string` | yes | `"A red bicycle in a studio"` | The prompt describing the desired image content. |
192
+ | `--model` | `string` | no | `google/nano-banana-2` | The AI model to use for image generation. Defaults to google/nano-banana-2. |
193
+ | `--format` | `string` | no | `jpg` | Format of the generated image. |
194
+ | `--seed` | `number` | no | — | Seed for the random number generator. |
195
+ | `--aspect-ratio` | `string` | no | — | Aspect ratio of the generated image. |
196
+ | `--height` | `number` | no | — | Height of the generated image. |
197
+ | `--width` | `number` | no | — | Width of the generated image. |
198
+ | `--style` | `string` | no | — | Style of the generated image. |
199
+ | `--num-outputs` | `number` | no | — | Number of image variants to generate. |
200
+
201
+ **Examples**
202
+
203
+ ```bash
204
+ # Generate an image from text
205
+ transloadit image generate --prompt "A red bicycle in a studio" --out output.png
206
+ # Guide generation with one input image
207
+ transloadit image generate --input subject.jpg --prompt "Place subject.jpg on a magazine cover" --out output.png
208
+ # Guide generation with multiple input images
209
+ transloadit image generate --input person1.jpg --input person2.jpg --input background.jpg --prompt "Place person1.jpg feeding person2.jpg in front of background.jpg" --out output.png
210
+ ```
211
+
212
+ #### `preview generate`
213
+
214
+ Generate a preview thumbnail
215
+
216
+ Runs `/file/preview` on each input file and writes the result to `--out`.
217
+
218
+ **Usage**
219
+
220
+ ```bash
221
+ npx transloadit preview generate --input <path|dir|url|-> [options]
222
+ ```
223
+
224
+ **Quick facts**
225
+
226
+ - Input: file, dir, URL, base64
227
+ - Output: file
228
+ - Execution: per-file; supports `--single-assembly` and `--watch`
229
+ - Backend: `/file/preview`
230
+
231
+ **Shared flags**
232
+
233
+ - Uses the shared file input and output flags listed above.
234
+ - Also supports the shared base processing flags, watch flags, bundling flags listed above.
235
+
236
+ **Command options**
237
+
238
+ | Flag | Type | Required | Example | Description |
239
+ | --- | --- | --- | --- | --- |
240
+ | `--format` | `string` | no | `jpg` | The output format for the generated thumbnail image. If a short video clip is generated using the clip strategy, its format is defined by clip_format. |
241
+ | `--width` | `number` | no | `1` | Width of the thumbnail, in pixels. |
242
+ | `--height` | `number` | no | `1` | Height of the thumbnail, in pixels. |
243
+ | `--resize-strategy` | `string` | no | `crop` | To achieve the desired dimensions of the preview thumbnail, the Robot might have to resize the generated image. |
244
+ | `--background` | `string` | no | `value` | The hexadecimal code of the color used to fill the background (only used for the pad resize strategy). |
245
+ | `--zoom` | `boolean` | no | `true` | If set to false, smaller images will not be stretched to the desired width and height. |
246
+ | `--strategy` | `json` | no | `value` | Definition of the thumbnail generation process per file category. |
247
+ | `--artwork-outer-color` | `string` | no | `value` | The color used in the outer parts of the artwork's gradient. |
248
+ | `--artwork-center-color` | `string` | no | `value` | The color used in the center of the artwork's gradient. |
249
+ | `--waveform-center-color` | `string` | no | `value` | The color used in the center of the waveform's gradient. The format is #rrggbb[aa] (red, green, blue, alpha). Only used if the waveform strategy for audio files is applied. |
250
+ | `--waveform-outer-color` | `string` | no | `value` | The color used in the outer parts of the waveform's gradient. The format is #rrggbb[aa] (red, green, blue, alpha). Only used if the waveform strategy for audio files is applied. |
251
+ | `--waveform-height` | `number` | no | `1` | Height of the waveform, in pixels. Only used if the waveform strategy for audio files is applied. It can be utilized to ensure that the waveform only takes up a section of the… |
252
+ | `--waveform-width` | `number` | no | `1` | Width of the waveform, in pixels. Only used if the waveform strategy for audio files is applied. It can be utilized to ensure that the waveform only takes up a section of the… |
253
+ | `--icon-style` | `string` | no | `square` | The style of the icon generated if the icon strategy is applied. |
254
+ | `--icon-text-color` | `string` | no | `value` | The color of the text used in the icon. The format is #rrggbb[aa]. Only used if the icon strategy is applied. |
255
+ | `--icon-text-font` | `string` | no | `value` | The font family of the text used in the icon. Only used if the icon strategy is applied. Here is a list of all supported fonts. |
256
+ | `--icon-text-content` | `string` | no | `extension` | The content of the text box in generated icons. Only used if the icon_style parameter is set to with-text. The default value, extension, adds the file extension (e.g. MP4, JPEG)… |
257
+ | `--optimize` | `boolean` | no | `true` | Specifies whether the generated preview image should be optimized to reduce the image's file size while keeping their quaility. |
258
+ | `--optimize-priority` | `string` | no | `compression-ratio` | Specifies whether conversion speed or compression ratio is prioritized when optimizing images. |
259
+ | `--optimize-progressive` | `boolean` | no | `true` | Specifies whether images should be interlaced, which makes the result image load progressively in browsers. |
260
+ | `--clip-format` | `string` | no | `apng` | The animated image format for the generated video clip. Only used if the clip strategy for video files is applied. Please consult the MDN Web Docs for detailed information about… |
261
+ | `--clip-offset` | `number` | no | `1` | The start position in seconds of where the clip is cut. Only used if the clip strategy for video files is applied. Be aware that for larger video only the first few MBs of the… |
262
+ | `--clip-duration` | `number` | no | `1` | The duration in seconds of the generated video clip. Only used if the clip strategy for video files is applied. Be aware that a longer clip duration also results in a larger file… |
263
+ | `--clip-framerate` | `number` | no | `1` | The framerate of the generated video clip. Only used if the clip strategy for video files is applied. Be aware that a higher framerate appears smoother but also results in a… |
264
+ | `--clip-loop` | `boolean` | no | `true` | Specifies whether the generated animated image should loop forever (true) or stop after playing the animation once (false). |
265
+
266
+ **Examples**
267
+
268
+ ```bash
269
+ transloadit preview generate --input input.file --out output.file
270
+ ```
271
+
272
+ #### `image remove-background`
273
+
274
+ Remove the background from images
275
+
276
+ Runs `/image/bgremove` on each input file and writes the result to `--out`.
277
+
278
+ **Usage**
279
+
280
+ ```bash
281
+ npx transloadit image remove-background --input <path|dir|url|-> [options]
282
+ ```
283
+
284
+ **Quick facts**
285
+
286
+ - Input: file, dir, URL, base64
287
+ - Output: file
288
+ - Execution: per-file; supports `--single-assembly` and `--watch`
289
+ - Backend: `/image/bgremove`
290
+
291
+ **Shared flags**
292
+
293
+ - Uses the shared file input and output flags listed above.
294
+ - Also supports the shared base processing flags, watch flags, bundling flags listed above.
295
+
296
+ **Command options**
297
+
298
+ | Flag | Type | Required | Example | Description |
299
+ | --- | --- | --- | --- | --- |
300
+ | `--select` | `string` | no | `foreground` | Region to select and keep in the image. The other region is removed. |
301
+ | `--format` | `string` | no | `png` | Format of the generated image. Defaults to PNG when not provided. |
302
+ | `--provider` | `string` | no | `aws` | Provider to use for removing the background. |
303
+ | `--model` | `string` | no | `value` | Provider-specific model to use for removing the background. Mostly intended for testing and evaluation. |
304
+
305
+ **Examples**
306
+
307
+ ```bash
308
+ transloadit image remove-background --input input.png --out output.png
309
+ ```
310
+
311
+ #### `image optimize`
312
+
313
+ Optimize images without quality loss
314
+
315
+ Runs `/image/optimize` on each input file and writes the result to `--out`.
316
+
317
+ **Usage**
318
+
319
+ ```bash
320
+ npx transloadit image optimize --input <path|dir|url|-> [options]
321
+ ```
322
+
323
+ **Quick facts**
324
+
325
+ - Input: file, dir, URL, base64
326
+ - Output: file
327
+ - Execution: per-file; supports `--single-assembly` and `--watch`
328
+ - Backend: `/image/optimize`
329
+
330
+ **Shared flags**
331
+
332
+ - Uses the shared file input and output flags listed above.
333
+ - Also supports the shared base processing flags, watch flags, bundling flags listed above.
334
+
335
+ **Command options**
336
+
337
+ | Flag | Type | Required | Example | Description |
338
+ | --- | --- | --- | --- | --- |
339
+ | `--priority` | `string` | no | `compression-ratio` | Provides different algorithms for better or worse compression for your images, but that run slower or faster. |
340
+ | `--progressive` | `boolean` | no | `true` | Interlaces the image if set to true, which makes the result image load progressively in browsers. |
341
+ | `--preserve-meta-data` | `boolean` | no | `true` | Specifies if the image's metadata should be preserved during the optimization, or not. |
342
+ | `--fix-breaking-images` | `boolean` | no | `true` | If set to true this parameter tries to fix images that would otherwise make the underlying tool error out and thereby break your Assemblies . |
343
+ | `--lossy` | `boolean` | no | `true` | When set to false (the default), only lossless PNG optimizers are used, disabling pngquant to preserve color accuracy. |
344
+
345
+ **Examples**
346
+
347
+ ```bash
348
+ transloadit image optimize --input input.png --out output.png
349
+ ```
350
+
351
+ #### `image resize`
352
+
353
+ Convert, resize, or watermark images
354
+
355
+ Runs `/image/resize` on each input file and writes the result to `--out`.
356
+
357
+ **Usage**
358
+
359
+ ```bash
360
+ npx transloadit image resize --input <path|dir|url|-> [options]
361
+ ```
362
+
363
+ **Quick facts**
364
+
365
+ - Input: file, dir, URL, base64
366
+ - Output: file
367
+ - Execution: per-file; supports `--single-assembly` and `--watch`
368
+ - Backend: `/image/resize`
369
+
370
+ **Shared flags**
371
+
372
+ - Uses the shared file input and output flags listed above.
373
+ - Also supports the shared base processing flags, watch flags, bundling flags listed above.
374
+
375
+ **Command options**
376
+
377
+ | Flag | Type | Required | Example | Description |
378
+ | --- | --- | --- | --- | --- |
379
+ | `--format` | `string` | no | `value` | The output format for the modified image. Some of the most important available formats are "jpg", "png", "gif", and "tiff". For a complete lists of all formats that we can write… |
380
+ | `--width` | `number` | no | `1` | Width of the result in pixels. If not specified, will default to the width of the original. |
381
+ | `--height` | `number` | no | `1` | Height of the new image, in pixels. If not specified, will default to the height of the input image. |
382
+ | `--resize-strategy` | `string` | no | `crop` | See the list of available resize strategies. |
383
+ | `--zoom` | `boolean` | no | `true` | If this is set to false, smaller images will not be stretched to the desired width and height. |
384
+ | `--crop` | `auto` | no | `value` | Specify an object containing coordinates for the top left and bottom right corners of the rectangle to be cropped from the original image(s). |
385
+ | `--gravity` | `string` | no | `bottom` | The direction from which the image is to be cropped, when "resize_strategy" is set to "crop", but no crop coordinates are defined. |
386
+ | `--strip` | `boolean` | no | `true` | Strips all metadata from the image. This is useful to keep thumbnails as small as possible. |
387
+ | `--alpha` | `string` | no | `Activate` | Gives control of the alpha/matte channel of an image. |
388
+ | `--preclip-alpha` | `string` | no | `Activate` | Gives control of the alpha/matte channel of an image before applying the clipping path via clip: true. |
389
+ | `--flatten` | `boolean` | no | `true` | Flattens all layers onto the specified background to achieve better results from transparent formats to non-transparent formats, as explained in the ImageMagick documentation. |
390
+ | `--correct-gamma` | `boolean` | no | `true` | Prevents gamma errors common in many image scaling algorithms. |
391
+ | `--quality` | `number` | no | `1` | Controls the image compression for JPG and PNG images. Please also take a look at 🤖/image/optimize. |
392
+ | `--adaptive-filtering` | `boolean` | no | `true` | Controls the image compression for PNG images. Setting to true results in smaller file size, while increasing processing time. It is encouraged to keep this option disabled. |
393
+ | `--background` | `string` | no | `transparent` | Either the hexadecimal code or name of the color used to fill the background (used for the pad resize strategy). |
394
+ | `--frame` | `number` | no | `1` | Use this parameter when dealing with animated GIF files to specify which frame of the GIF is used for the operation. |
395
+ | `--colorspace` | `string` | no | `CMY` | Sets the image colorspace. For details about the available values, see the ImageMagick documentation. Please note that if you were using "RGB", we recommend using "sRGB" instead… |
396
+ | `--type` | `string` | no | `Bilevel` | Sets the image color type. For details about the available values, see the ImageMagick documentation. If you're using colorspace, ImageMagick might try to find the most efficient… |
397
+ | `--sepia` | `number` | no | `1` | Applies a sepia tone effect in percent. |
398
+ | `--rotation` | `auto` | no | `auto` | Determines whether the image should be rotated. Use any number to specify the rotation angle in degrees (e.g., 90, 180, 270, 360, or precise values like 2.9). Use the value true… |
399
+ | `--compress` | `string` | no | `BZip` | Specifies pixel compression for when the image is written. Compression is disabled by default. Please also take a look at 🤖/image/optimize. |
400
+ | `--blur` | `string` | no | `value` | Specifies gaussian blur, using a value with the form {radius}x{sigma}. |
401
+ | `--blur-regions` | `json` | no | `value` | Specifies an array of ellipse objects that should be blurred on the image. |
402
+ | `--brightness` | `number` | no | `1` | Increases or decreases the brightness of the image by using a multiplier. For example 1.5 would increase the brightness by 50%, and 0.75 would decrease the brightness by 25%. |
403
+ | `--saturation` | `number` | no | `1` | Increases or decreases the saturation of the image by using a multiplier. For example 1.5 would increase the saturation by 50%, and 0.75 would decrease the saturation by 25%. |
404
+ | `--hue` | `number` | no | `1` | Changes the hue by rotating the color of the image. The value 100 would produce no change whereas 0 and 200 will negate the colors in the image. |
405
+ | `--contrast` | `number` | no | `1` | Adjusts the contrast of the image. A value of 1 produces no change. Values below 1 decrease contrast (with 0 being minimum contrast), and values above 1 increase contrast (with 2… |
406
+ | `--watermark-url` | `string` | no | `value` | A URL indicating a PNG image to be overlaid above this image. |
407
+ | `--watermark-position` | `string[]` | no | `bottom` | The position at which the watermark is placed. The available options are "center", "top", "bottom", "left", and "right". You can also combine options, such as "bottom-right". An… |
408
+ | `--watermark-x-offset` | `number` | no | `1` | The x-offset in number of pixels at which the watermark will be placed in relation to the position it has due to watermark_position. |
409
+ | `--watermark-y-offset` | `number` | no | `1` | The y-offset in number of pixels at which the watermark will be placed in relation to the position it has due to watermark_position. |
410
+ | `--watermark-size` | `string` | no | `value` | The size of the watermark, as a percentage. For example, a value of "50%" means that size of the watermark will be 50% of the size of image on which it is placed. The exact… |
411
+ | `--watermark-resize-strategy` | `string` | no | `area` | Available values are "fit", "min_fit", "stretch" and "area". |
412
+ | `--watermark-opacity` | `number` | no | `1` | The opacity of the watermark, where 0.0 is fully transparent and 1.0 is fully opaque. |
413
+ | `--watermark-repeat-x` | `boolean` | no | `true` | When set to true, the watermark will be repeated horizontally across the entire width of the image. |
414
+ | `--watermark-repeat-y` | `boolean` | no | `true` | When set to true, the watermark will be repeated vertically across the entire height of the image. |
415
+ | `--text` | `json` | no | `value` | Text overlays to be applied to the image. Can be either a single text object or an array of text objects. Each text object contains text rules. The following text parameters are… |
416
+ | `--progressive` | `boolean` | no | `true` | Interlaces the image if set to true, which makes the image load progressively in browsers. |
417
+ | `--transparent` | `string` | no | `transparent` | Make this color transparent within the image. Example: "255,255,255". |
418
+ | `--trim-whitespace` | `boolean` | no | `true` | This determines if additional whitespace around the image should first be trimmed away. |
419
+ | `--clip` | `auto` | no | `value` | Apply the clipping path to other operations in the resize job, if one is present. |
420
+ | `--negate` | `boolean` | no | `true` | Replace each pixel with its complementary color, effectively negating the image. Especially useful when testing clipping. |
421
+ | `--clut` | `boolean` | no | `true` | Applies a Color Look-Up Table (CLUT) image to remap the colors of the input image using ImageMagick's -clut operator. |
422
+ | `--density` | `string` | no | `value` | While in-memory quality and file format depth specifies the color resolution, the density of an image is the spatial (space) resolution of the image. |
423
+ | `--monochrome` | `boolean` | no | `true` | Transform the image to black and white. This is a shortcut for setting the colorspace to Gray and type to Bilevel. |
424
+ | `--shave` | `auto` | no | `value` | Shave pixels from the image edges. The value should be in the format width or widthxheight to specify the number of pixels to remove from each side. |
425
+
426
+ **Examples**
427
+
428
+ ```bash
429
+ transloadit image resize --input input.png --out output.png
430
+ ```
431
+
432
+ #### `document convert`
433
+
434
+ Convert documents into different formats
435
+
436
+ Runs `/document/convert` on each input file and writes the result to `--out`.
437
+
438
+ **Usage**
439
+
440
+ ```bash
441
+ npx transloadit document convert --input <path|dir|url|-> [options]
442
+ ```
443
+
444
+ **Quick facts**
445
+
446
+ - Input: file, dir, URL, base64
447
+ - Output: file
448
+ - Execution: per-file; supports `--single-assembly` and `--watch`
449
+ - Backend: `/document/convert`
450
+
451
+ **Shared flags**
452
+
453
+ - Uses the shared file input and output flags listed above.
454
+ - Also supports the shared base processing flags, watch flags, bundling flags listed above.
455
+
456
+ **Command options**
457
+
458
+ | Flag | Type | Required | Example | Description |
459
+ | --- | --- | --- | --- | --- |
460
+ | `--format` | `string` | yes | `pdf` | The desired format for document conversion. |
461
+ | `--markdown-format` | `string` | no | `commonmark` | Markdown can be represented in several variants, so when using this Robot to transform Markdown into HTML please specify which revision is being used. |
462
+ | `--markdown-theme` | `string` | no | `bare` | This parameter overhauls your Markdown files styling based on several canned presets. |
463
+ | `--pdf-margin` | `string` | no | `value` | PDF Paper margins, separated by , and with units. We support the following unit values: px, in, cm, mm. Currently this parameter is only supported when converting from html. |
464
+ | `--pdf-print-background` | `boolean` | no | `true` | Print PDF background graphics. Currently this parameter is only supported when converting from html. |
465
+ | `--pdf-format` | `string` | no | `A0` | PDF paper format. Currently this parameter is only supported when converting from html. |
466
+ | `--pdf-display-header-footer` | `boolean` | no | `true` | Display PDF header and footer. Currently this parameter is only supported when converting from html. |
467
+ | `--pdf-header-template` | `string` | no | `value` | HTML template for the PDF print header. Should be valid HTML markup with following classes used to inject printing values into them: - date formatted print date - title document… |
468
+ | `--pdf-footer-template` | `string` | no | `value` | HTML template for the PDF print footer. Should use the same format as the pdf_header_template. Currently this parameter is only supported when converting from html, and requires… |
469
+
470
+ **Examples**
471
+
472
+ ```bash
473
+ transloadit document convert --input input.pdf --format pdf --out output.pdf
474
+ ```
475
+
476
+ #### `document optimize`
477
+
478
+ Reduce PDF file size
479
+
480
+ Runs `/document/optimize` on each input file and writes the result to `--out`.
481
+
482
+ **Usage**
483
+
484
+ ```bash
485
+ npx transloadit document optimize --input <path|dir|url|-> [options]
486
+ ```
487
+
488
+ **Quick facts**
489
+
490
+ - Input: file, dir, URL, base64
491
+ - Output: file
492
+ - Execution: per-file; supports `--single-assembly` and `--watch`
493
+ - Backend: `/document/optimize`
494
+
495
+ **Shared flags**
496
+
497
+ - Uses the shared file input and output flags listed above.
498
+ - Also supports the shared base processing flags, watch flags, bundling flags listed above.
499
+
500
+ **Command options**
501
+
502
+ | Flag | Type | Required | Example | Description |
503
+ | --- | --- | --- | --- | --- |
504
+ | `--preset` | `string` | no | `screen` | The quality preset to use for optimization. Each preset provides a different balance between file size and quality: - screen - Lowest quality, smallest file size. Best for screen… |
505
+ | `--image-dpi` | `number` | no | `1` | Target DPI (dots per inch) for embedded images. When specified, this overrides the DPI setting from the preset. Higher DPI values result in better image quality but larger file… |
506
+ | `--compress-fonts` | `boolean` | no | `true` | Whether to compress embedded fonts. When enabled, fonts are compressed to reduce file size. |
507
+ | `--subset-fonts` | `boolean` | no | `true` | Whether to subset embedded fonts, keeping only the glyphs that are actually used in the document. |
508
+ | `--remove-metadata` | `boolean` | no | `true` | Whether to strip document metadata (title, author, keywords, etc.) from the PDF. This can provide a small reduction in file size and may be useful for privacy. |
509
+ | `--linearize` | `boolean` | no | `true` | Whether to linearize (optimize for Fast Web View) the output PDF. |
510
+ | `--compatibility` | `string` | no | `1.4` | The PDF version compatibility level. Lower versions have broader compatibility but fewer features. Higher versions support more advanced features but may not open in older PDF… |
511
+
512
+ **Examples**
513
+
514
+ ```bash
515
+ transloadit document optimize --input input.pdf --out output.pdf
516
+ ```
517
+
518
+ #### `document auto-rotate`
519
+
520
+ Auto-rotate documents to the correct orientation
521
+
522
+ Runs `/document/autorotate` on each input file and writes the result to `--out`.
523
+
524
+ **Usage**
525
+
526
+ ```bash
527
+ npx transloadit document auto-rotate --input <path|dir|url|-> [options]
528
+ ```
529
+
530
+ **Quick facts**
531
+
532
+ - Input: file, dir, URL, base64
533
+ - Output: file
534
+ - Execution: per-file; supports `--single-assembly` and `--watch`
535
+ - Backend: `/document/autorotate`
536
+
537
+ **Shared flags**
538
+
539
+ - Uses the shared file input and output flags listed above.
540
+ - Also supports the shared base processing flags, watch flags, bundling flags listed above.
541
+
542
+ **Examples**
543
+
544
+ ```bash
545
+ transloadit document auto-rotate --input input.pdf --out output.pdf
546
+ ```
547
+
548
+ #### `document thumbs`
549
+
550
+ Extract thumbnail images from documents
551
+
552
+ Runs `/document/thumbs` on each input file and writes the results to `--out`.
553
+
554
+ **Usage**
555
+
556
+ ```bash
557
+ npx transloadit document thumbs --input <path|dir|url|-> [options]
558
+ ```
559
+
560
+ **Quick facts**
561
+
562
+ - Input: file, dir, URL, base64
563
+ - Output: directory
564
+ - Execution: per-file; supports `--single-assembly` and `--watch`
565
+ - Backend: `/document/thumbs`
566
+
567
+ **Shared flags**
568
+
569
+ - Uses the shared file input and output flags listed above.
570
+ - Also supports the shared base processing flags, watch flags, bundling flags listed above.
571
+
572
+ **Command options**
573
+
574
+ | Flag | Type | Required | Example | Description |
575
+ | --- | --- | --- | --- | --- |
576
+ | `--page` | `number` | no | `1` | The PDF page that you want to convert to an image. By default the value is null which means that all pages will be converted into images. |
577
+ | `--page-range` | `string` | no | `value` | A page range to extract, in the format "start-end" (e.g., "1-20"). |
578
+ | `--format` | `string` | no | `jpg` | The format of the extracted image(s). If you specify the value "gif", then an animated gif cycling through all pages is created. Please check out this demo to learn more about… |
579
+ | `--delay` | `number` | no | `1` | If your output format is "gif" then this parameter sets the number of 100th seconds to pass before the next frame is shown in the animation. |
580
+ | `--width` | `number` | no | `1` | Width of the new image, in pixels. If not specified, will default to the width of the input image |
581
+ | `--height` | `number` | no | `1` | Height of the new image, in pixels. If not specified, will default to the height of the input image |
582
+ | `--resize-strategy` | `string` | no | `crop` | One of the available resize strategies. |
583
+ | `--background` | `string` | no | `value` | Either the hexadecimal code or name of the color used to fill the background (only used for the pad resize strategy). |
584
+ | `--alpha` | `string` | no | `Remove` | Change how the alpha channel of the resulting image should work. |
585
+ | `--density` | `string` | no | `value` | While in-memory quality and file format depth specifies the color resolution, the density of an image is the spatial (space) resolution of the image. |
586
+ | `--antialiasing` | `boolean` | no | `true` | Controls whether or not antialiasing is used to remove jagged edges from text or images in a document. |
587
+ | `--colorspace` | `string` | no | `CMY` | Sets the image colorspace. For details about the available values, see the ImageMagick documentation. Please note that if you were using "RGB", we recommend using "sRGB".… |
588
+ | `--trim-whitespace` | `boolean` | no | `true` | This determines if additional whitespace around the PDF should first be trimmed away before it is converted to an image. |
589
+ | `--pdf-use-cropbox` | `boolean` | no | `true` | Some PDF documents lie about their dimensions. For instance they'll say they are landscape, but when opened in decent Desktop readers, it's really in portrait mode. This can… |
590
+ | `--turbo` | `boolean` | no | `true` | Enables high-performance mode for faster document processing. |
591
+
592
+ **Examples**
593
+
594
+ ```bash
595
+ transloadit document thumbs --input input.pdf --out output/
596
+ ```
597
+
598
+ #### `audio waveform`
599
+
600
+ Generate waveform images from audio
601
+
602
+ Runs `/audio/waveform` on each input file and writes the result to `--out`.
603
+
604
+ **Usage**
605
+
606
+ ```bash
607
+ npx transloadit audio waveform --input <path|dir|url|-> [options]
608
+ ```
609
+
610
+ **Quick facts**
611
+
612
+ - Input: file, dir, URL, base64
613
+ - Output: file
614
+ - Execution: per-file; supports `--single-assembly` and `--watch`
615
+ - Backend: `/audio/waveform`
616
+
617
+ **Shared flags**
618
+
619
+ - Uses the shared file input and output flags listed above.
620
+ - Also supports the shared base processing flags, watch flags, bundling flags listed above.
621
+
622
+ **Command options**
623
+
624
+ | Flag | Type | Required | Example | Description |
625
+ | --- | --- | --- | --- | --- |
626
+ | `--ffmpeg` | `json` | no | `value` | A parameter object to be passed to FFmpeg. If a preset is used, the options specified are merged on top of the ones from the preset. For available options, see the FFmpeg… |
627
+ | `--format` | `string` | no | `image` | The format of the result file. Can be "image" or "json". If "image" is supplied, a PNG image will be created, otherwise a JSON file. When style is "spectrogram", only "image" is… |
628
+ | `--width` | `number` | no | `1` | The width of the resulting image if the format "image" was selected. |
629
+ | `--height` | `number` | no | `1` | The height of the resulting image if the format "image" was selected. |
630
+ | `--antialiasing` | `auto` | no | `0` | Either a value of 0 or 1, or true/false, corresponding to if you want to enable antialiasing to achieve smoother edges in the waveform graph or not. |
631
+ | `--background-color` | `string` | no | `value` | The background color of the resulting image in the "rrggbbaa" format (red, green, blue, alpha), if the format "image" was selected. |
632
+ | `--center-color` | `string` | no | `value` | The color used in the center of the gradient. The format is "rrggbbaa" (red, green, blue, alpha). |
633
+ | `--outer-color` | `string` | no | `value` | The color used in the outer parts of the gradient. The format is "rrggbbaa" (red, green, blue, alpha). |
634
+ | `--style` | `string` | no | `v0` | Waveform style version. - "v0": Legacy waveform generation (default). - "v1": Advanced waveform generation with additional parameters. - "spectrogram": Spectrogram visualization… |
635
+ | `--split-channels` | `boolean` | no | `true` | Available when style is "v1". If set to true, outputs multi-channel waveform data or image files, one per channel. |
636
+ | `--zoom` | `number` | no | `1` | Available when style is "v1". Zoom level in samples per pixel. This parameter cannot be used together with pixels_per_second. |
637
+ | `--pixels-per-second` | `number` | no | `1` | Available when style is "v1". Zoom level in pixels per second. This parameter cannot be used together with zoom. |
638
+ | `--bits` | `number` | no | `8` | Available when style is "v1". Bit depth for waveform data. Can be 8 or 16. |
639
+ | `--start` | `number` | no | `1` | Available when style is "v1". Start time in seconds. |
640
+ | `--end` | `number` | no | `1` | Available when style is "v1". End time in seconds (0 means end of audio). |
641
+ | `--colors` | `string` | no | `audition` | Available when style is "v1". Color scheme to use. Can be "audition" or "audacity". |
642
+ | `--border-color` | `string` | no | `value` | Available when style is "v1". Border color in "rrggbbaa" format. |
643
+ | `--waveform-style` | `string` | no | `normal` | Available when style is "v1". Waveform style. Can be "normal" or "bars". |
644
+ | `--bar-width` | `number` | no | `1` | Available when style is "v1". Width of bars in pixels when waveform_style is "bars". |
645
+ | `--bar-gap` | `number` | no | `1` | Available when style is "v1". Gap between bars in pixels when waveform_style is "bars". |
646
+ | `--bar-style` | `string` | no | `square` | Available when style is "v1". Bar style when waveform_style is "bars". |
647
+ | `--axis-label-color` | `string` | no | `value` | Available when style is "v1". Color for axis labels in "rrggbbaa" format. |
648
+ | `--no-axis-labels` | `boolean` | no | `true` | Available when style is "v1". If set to true, renders waveform image without axis labels. |
649
+ | `--with-axis-labels` | `boolean` | no | `true` | Available when style is "v1". If set to true, renders waveform image with axis labels. |
650
+ | `--amplitude-scale` | `number` | no | `1` | Available when style is "v1". Amplitude scale factor. |
651
+ | `--compression` | `number` | no | `1` | Available when style is "v1". PNG compression level: 0 (none) to 9 (best), or -1 (default). Only applicable when format is "image". |
652
+ | `--color-map` | `string` | no | `viridis` | Available when style is "spectrogram". Color scheme for the spectrogram visualization. Defaults to "viridis". |
653
+ | `--frequency-scale` | `string` | no | `linear` | Available when style is "spectrogram". Frequency scale for the spectrogram. "linear" shows frequencies evenly spaced, "logarithmic" emphasizes lower frequencies. Defaults to… |
654
+ | `--frequency-min` | `number` | no | `1` | Available when style is "spectrogram". Minimum frequency in Hz to display. Defaults to 0. |
655
+ | `--frequency-max` | `number` | no | `1` | Available when style is "spectrogram". Maximum frequency in Hz to display. Defaults to half the sample rate (Nyquist frequency). |
656
+ | `--legend` | `boolean` | no | `true` | Available when style is "spectrogram". Whether to include a legend showing the frequency and time scales. Defaults to false. |
657
+ | `--gain` | `number` | no | `1` | Available when style is "spectrogram". Linear gain factor for spectrogram intensity. Defaults to 1. |
658
+ | `--orientation` | `string` | no | `vertical` | Available when style is "spectrogram". Orientation of the spectrogram. "horizontal" shows time on the x-axis (default), "vertical" shows time on the y-axis. |
659
+
660
+ **Examples**
661
+
662
+ ```bash
663
+ transloadit audio waveform --input input.mp3 --out output.png
664
+ ```
665
+
666
+ #### `text speak`
667
+
668
+ Speak text
669
+
670
+ Runs `/text/speak` on each input file and writes the result to `--out`.
671
+
672
+ **Usage**
673
+
674
+ ```bash
675
+ npx transloadit text speak [--input <path|dir|url|->] [options]
676
+ ```
677
+
678
+ **Quick facts**
679
+
680
+ - Input: file, dir, URL, base64
681
+ - Output: file
682
+ - Execution: per-file; supports `--single-assembly` and `--watch`
683
+ - Backend: `/text/speak`
684
+
685
+ **Shared flags**
686
+
687
+ - Uses the shared file input and output flags listed above.
688
+ - Also supports the shared base processing flags, watch flags, bundling flags listed above.
689
+
690
+ **Command options**
691
+
692
+ | Flag | Type | Required | Example | Description |
693
+ | --- | --- | --- | --- | --- |
694
+ | `--prompt` | `string` | no | `"A red bicycle in a studio"` | Which text to speak. You can also set this to null and supply an input text file. |
695
+ | `--provider` | `string` | yes | `aws` | Which AI provider to leverage. Transloadit outsources this task and abstracts the interface so you can expect the same data structures, but different latencies and information… |
696
+ | `--target-language` | `string` | no | `en-US` | The written language of the document. This will also be the language of the spoken text. The language should be specified in the BCP-47 format, such as "en-GB", "de-DE" or… |
697
+ | `--voice` | `string` | no | `female-1` | The gender to be used for voice synthesis. Please consult the list of supported languages and voices. |
698
+ | `--ssml` | `boolean` | no | `true` | Supply Speech Synthesis Markup Language instead of raw text, in order to gain more control over how your text is voiced, including rests and pronounciations. |
699
+
700
+ **Examples**
701
+
702
+ ```bash
703
+ transloadit text speak --input input.pdf --provider aws --out output.mp3
704
+ ```
705
+
706
+ #### `video thumbs`
707
+
708
+ Extract thumbnails from videos
709
+
710
+ Runs `/video/thumbs` on each input file and writes the results to `--out`.
711
+
712
+ **Usage**
713
+
714
+ ```bash
715
+ npx transloadit video thumbs --input <path|dir|url|-> [options]
716
+ ```
717
+
718
+ **Quick facts**
719
+
720
+ - Input: file, dir, URL, base64
721
+ - Output: directory
722
+ - Execution: per-file; supports `--single-assembly` and `--watch`
723
+ - Backend: `/video/thumbs`
724
+
725
+ **Shared flags**
726
+
727
+ - Uses the shared file input and output flags listed above.
728
+ - Also supports the shared base processing flags, watch flags, bundling flags listed above.
729
+
730
+ **Command options**
731
+
732
+ | Flag | Type | Required | Example | Description |
733
+ | --- | --- | --- | --- | --- |
734
+ | `--ffmpeg` | `json` | no | `value` | A parameter object to be passed to FFmpeg. If a preset is used, the options specified are merged on top of the ones from the preset. For available options, see the FFmpeg… |
735
+ | `--count` | `number` | no | `1` | 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… |
736
+ | `--offsets` | `auto` | no | `value` | An array of offsets representing seconds of the file duration, such as [ 2, 45, 120 ]. |
737
+ | `--format` | `string` | no | `jpg` | 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… |
738
+ | `--width` | `number` | no | `1` | The width of the thumbnail, in pixels. Defaults to the original width of the video. |
739
+ | `--height` | `number` | no | `1` | The height of the thumbnail, in pixels. Defaults to the original height of the video. |
740
+ | `--resize-strategy` | `string` | no | `crop` | One of the available resize strategies. |
741
+ | `--background` | `string` | no | `value` | 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. |
742
+ | `--rotate` | `number` | no | `0` | Forces the video to be rotated by the specified degree integer. |
743
+ | `--input-codec` | `string` | no | `value` | Specifies the input codec to use when decoding the video. This is useful for videos with special codecs that require specific decoders. |
744
+
745
+ **Examples**
746
+
747
+ ```bash
748
+ transloadit video thumbs --input input.mp4 --out output/
749
+ ```
750
+
751
+ #### `video encode-hls`
752
+
753
+ Run builtin/encode-hls-video@latest
754
+
755
+ Runs the `builtin/encode-hls-video@latest` template and writes the outputs to `--out`.
756
+
757
+ **Usage**
758
+
759
+ ```bash
760
+ npx transloadit video encode-hls --input <path|dir|url|-> [options]
761
+ ```
762
+
763
+ **Quick facts**
764
+
765
+ - Input: file, dir, URL, base64
766
+ - Output: directory
767
+ - Execution: per-file; supports `--single-assembly` and `--watch`
768
+ - Backend: `builtin/encode-hls-video@latest`
769
+
770
+ **Shared flags**
771
+
772
+ - Uses the shared file input and output flags listed above.
773
+ - Also supports the shared base processing flags, watch flags, bundling flags listed above.
774
+
775
+ **Examples**
776
+
777
+ ```bash
778
+ transloadit video encode-hls --input input.mp4 --out output/
779
+ ```
780
+
781
+ #### `image describe`
782
+
783
+ Describe images as labels or publishable text fields
784
+
785
+ Generates image labels through `/image/describe`, or structured altText/title/caption/description through `/ai/chat`, then writes the JSON result to `--out`.
786
+
787
+ **Usage**
788
+
789
+ ```bash
790
+ npx transloadit image describe --input <path|dir|url|-> [options]
791
+ ```
792
+
793
+ **Quick facts**
794
+
795
+ - Input: file, dir, URL, base64
796
+ - Output: file
797
+ - Execution: per-file; supports `--watch`
798
+ - Backend: semantic alias `image-describe`
799
+
800
+ **Shared flags**
801
+
802
+ - Uses the shared file input and output flags listed above.
803
+ - Also supports the shared base processing flags, watch flags listed above.
804
+
805
+ **Command options**
806
+
807
+ | Flag | Type | Required | Example | Description |
808
+ | --- | --- | --- | --- | --- |
809
+ | `--fields` | `string[]` | no | — | Describe output fields to generate, for example labels or altText,title,caption,description |
810
+ | `--for` | `string` | no | — | Use a named output profile, currently: wordpress |
811
+ | `--model` | `string` | no | — | Model to use for generated text fields (default: anthropic/claude-4-sonnet-20250514) |
812
+
813
+ **Examples**
814
+
815
+ ```bash
816
+ # Describe an image as labels
817
+ transloadit image describe --input hero.jpg --out labels.json
818
+ # Generate WordPress-ready fields
819
+ transloadit image describe --input hero.jpg --for wordpress --out fields.json
820
+ # Request a custom field set
821
+ transloadit image describe --input hero.jpg --fields altText,title,caption --out fields.json
822
+ ```
823
+
824
+ #### `markdown pdf`
825
+
826
+ Render Markdown files as PDFs
827
+
828
+ Runs `/document/convert` with `format: pdf`, letting the backend render Markdown and preserve features such as internal heading links in the generated PDF.
829
+
830
+ **Usage**
831
+
832
+ ```bash
833
+ npx transloadit markdown pdf --input <path|dir|url|-> [options]
834
+ ```
835
+
836
+ **Quick facts**
837
+
838
+ - Input: file, dir, URL, base64
839
+ - Output: file
840
+ - Execution: per-file; supports `--watch`
841
+ - Backend: semantic alias `markdown-pdf`
842
+
843
+ **Shared flags**
844
+
845
+ - Uses the shared file input and output flags listed above.
846
+ - Also supports the shared base processing flags, watch flags listed above.
847
+
848
+ **Command options**
849
+
850
+ | Flag | Type | Required | Example | Description |
851
+ | --- | --- | --- | --- | --- |
852
+ | `--markdown-format` | `string` | no | — | Markdown variant to parse, either commonmark or gfm |
853
+ | `--markdown-theme` | `string` | no | — | Markdown theme to render, either github or bare |
854
+
855
+ **Examples**
856
+
857
+ ```bash
858
+ # Render a Markdown file as a PDF file
859
+ transloadit markdown pdf --input README.md --out README.pdf
860
+ # Print a temporary result URL without downloading locally
861
+ transloadit markdown pdf --input README.md --print-urls
862
+ ```
863
+
864
+ #### `markdown docx`
865
+
866
+ Render Markdown files as DOCX documents
867
+
868
+ Runs `/document/convert` with `format: docx`, letting the backend render Markdown and convert it into a Word document.
869
+
870
+ **Usage**
871
+
872
+ ```bash
873
+ npx transloadit markdown docx --input <path|dir|url|-> [options]
874
+ ```
875
+
876
+ **Quick facts**
877
+
878
+ - Input: file, dir, URL, base64
879
+ - Output: file
880
+ - Execution: per-file; supports `--watch`
881
+ - Backend: semantic alias `markdown-docx`
882
+
883
+ **Shared flags**
884
+
885
+ - Uses the shared file input and output flags listed above.
886
+ - Also supports the shared base processing flags, watch flags listed above.
887
+
888
+ **Command options**
889
+
890
+ | Flag | Type | Required | Example | Description |
891
+ | --- | --- | --- | --- | --- |
892
+ | `--markdown-format` | `string` | no | — | Markdown variant to parse, either commonmark or gfm |
893
+ | `--markdown-theme` | `string` | no | — | Markdown theme to render, either github or bare |
894
+
895
+ **Examples**
896
+
897
+ ```bash
898
+ # Render a Markdown file as a DOCX file
899
+ transloadit markdown docx --input README.md --out README.docx
900
+ # Print a temporary result URL without downloading locally
901
+ transloadit markdown docx --input README.md --print-urls
902
+ ```
903
+
904
+ #### `file compress`
905
+
906
+ Compress files
907
+
908
+ Runs `/file/compress` for the provided inputs and writes the result to `--out`.
909
+
910
+ **Usage**
911
+
912
+ ```bash
913
+ npx transloadit file compress --input <path|dir|url|-> [options]
914
+ ```
915
+
916
+ **Quick facts**
917
+
918
+ - Input: file, dir, URL, base64
919
+ - Output: file
920
+ - Execution: single assembly
921
+ - Backend: `/file/compress`
922
+
923
+ **Shared flags**
924
+
925
+ - Uses the shared file input and output flags listed above.
926
+ - Also supports the shared base processing flags listed above.
927
+
928
+ **Command options**
929
+
930
+ | Flag | Type | Required | Example | Description |
931
+ | --- | --- | --- | --- | --- |
932
+ | `--format` | `string` | no | `zip` | The format of the archive to be created. Supported values are "tar" and "zip". Note that "tar" without setting gzip to true results in an archive that's not compressed in any way. |
933
+ | `--gzip` | `boolean` | no | `true` | Determines if the result archive should also be gzipped. Gzip compression is only applied if you use the "tar" format. |
934
+ | `--password` | `string` | no | `value` | This allows you to encrypt all archive contents with a password and thereby protect it against unauthorized use. |
935
+ | `--compression-level` | `number` | no | `1` | Determines how fiercely to try to compress the archive. -0 is compressionless, which is suitable for media that is already compressed. -1 is fastest with lowest compression. -9… |
936
+ | `--file-layout` | `string` | no | `advanced` | Determines if the result archive should contain all files in one directory (value for this is "simple") or in subfolders according to the explanation below (value for this is… |
937
+ | `--archive-name` | `string` | no | `value` | The name of the archive file to be created (without the file extension). |
938
+ | `--path` | `string` | no | `value` | The path at which each file is to be placed inside the archive. |
939
+
940
+ **Examples**
941
+
942
+ ```bash
943
+ transloadit file compress --input input.file --out output.file
944
+ ```
945
+
946
+ #### `file decompress`
947
+
948
+ Decompress archives
949
+
950
+ Runs `/file/decompress` on each input file and writes the results to `--out`.
951
+
952
+ **Usage**
953
+
954
+ ```bash
955
+ npx transloadit file decompress --input <path|dir|url|-> [options]
956
+ ```
957
+
958
+ **Quick facts**
959
+
960
+ - Input: file, dir, URL, base64
961
+ - Output: directory
962
+ - Execution: per-file; supports `--single-assembly` and `--watch`
963
+ - Backend: `/file/decompress`
964
+
965
+ **Shared flags**
966
+
967
+ - Uses the shared file input and output flags listed above.
968
+ - Also supports the shared base processing flags, watch flags, bundling flags listed above.
969
+
970
+ **Command options**
971
+
972
+ | Flag | Type | Required | Example | Description |
973
+ | --- | --- | --- | --- | --- |
974
+ | `--password` | `string` | no | `value` | The password to use for decrypting password-protected archives. |
975
+ | `--turbo` | `boolean` | no | `true` | Enables Turbo Mode for /file/decompress. This setting defaults to true. Set it to false to disable Turbo Mode. When enabled, extracted files are emitted as soon as they are… |
976
+
977
+ **Examples**
978
+
979
+ ```bash
980
+ transloadit file decompress --input input.file --out output/
981
+ ```
982
+
983
+ <!-- GENERATED_INTENT_DOCS:END -->
984
+
985
+ For full control, create Assemblies directly using Assembly Instructions (steps) or Templates:
82
986
 
83
987
  ```bash
84
988
  # Process a file using a steps file
@@ -300,7 +1204,7 @@ npx transloadit assemblies list -l 7
300
1204
  The following code will upload an image and resize it to a thumbnail:
301
1205
 
302
1206
  ```javascript
303
- import { Transloadit } from 'transloadit'
1207
+ import { Transloadit } from '@transloadit/node'
304
1208
 
305
1209
  const transloadit = new Transloadit({
306
1210
  authKey: 'YOUR_TRANSLOADIT_KEY',
@@ -852,3 +1756,9 @@ Thanks to [Ian Hansen](https://github.com/supershabam) for donating the `translo
852
1756
  ## Development
853
1757
 
854
1758
  See [CONTRIBUTING](./CONTRIBUTING.md).
1759
+
1760
+
1761
+
1762
+
1763
+
1764
+