transloadit 3.0.2 → 4.0.0-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (477) hide show
  1. package/CHANGELOG.md +9 -12
  2. package/README.md +175 -129
  3. package/dist/ApiError.d.ts +20 -0
  4. package/dist/ApiError.d.ts.map +1 -0
  5. package/dist/ApiError.js +35 -0
  6. package/dist/ApiError.js.map +1 -0
  7. package/dist/InconsistentResponseError.d.ts +4 -0
  8. package/dist/InconsistentResponseError.d.ts.map +1 -0
  9. package/dist/InconsistentResponseError.js +7 -0
  10. package/dist/InconsistentResponseError.js.map +1 -0
  11. package/dist/PaginationStream.d.ts +14 -0
  12. package/dist/PaginationStream.d.ts.map +1 -0
  13. package/dist/PaginationStream.js +39 -0
  14. package/dist/PaginationStream.js.map +1 -0
  15. package/dist/PollingTimeoutError.d.ts +5 -0
  16. package/dist/PollingTimeoutError.d.ts.map +1 -0
  17. package/dist/PollingTimeoutError.js +8 -0
  18. package/dist/PollingTimeoutError.js.map +1 -0
  19. package/dist/Transloadit.d.ts +227 -0
  20. package/dist/Transloadit.d.ts.map +1 -0
  21. package/dist/Transloadit.js +628 -0
  22. package/dist/Transloadit.js.map +1 -0
  23. package/dist/alphalib/types/assemblyStatus.d.ts +6208 -0
  24. package/dist/alphalib/types/assemblyStatus.d.ts.map +1 -0
  25. package/dist/alphalib/types/assemblyStatus.js +285 -0
  26. package/dist/alphalib/types/assemblyStatus.js.map +1 -0
  27. package/dist/alphalib/types/robots/_index.d.ts +56966 -0
  28. package/dist/alphalib/types/robots/_index.d.ts.map +1 -0
  29. package/dist/alphalib/types/robots/_index.js +347 -0
  30. package/dist/alphalib/types/robots/_index.js.map +1 -0
  31. package/dist/alphalib/types/robots/_instructions-primitives.d.ts +2157 -0
  32. package/dist/alphalib/types/robots/_instructions-primitives.d.ts.map +1 -0
  33. package/dist/alphalib/types/robots/_instructions-primitives.js +655 -0
  34. package/dist/alphalib/types/robots/_instructions-primitives.js.map +1 -0
  35. package/dist/alphalib/types/robots/audio-artwork.d.ts +628 -0
  36. package/dist/alphalib/types/robots/audio-artwork.d.ts.map +1 -0
  37. package/dist/alphalib/types/robots/audio-artwork.js +55 -0
  38. package/dist/alphalib/types/robots/audio-artwork.js.map +1 -0
  39. package/dist/alphalib/types/robots/audio-concat.d.ts +632 -0
  40. package/dist/alphalib/types/robots/audio-concat.d.ts.map +1 -0
  41. package/dist/alphalib/types/robots/audio-concat.js +66 -0
  42. package/dist/alphalib/types/robots/audio-concat.js.map +1 -0
  43. package/dist/alphalib/types/robots/audio-encode.d.ts +629 -0
  44. package/dist/alphalib/types/robots/audio-encode.d.ts.map +1 -0
  45. package/dist/alphalib/types/robots/audio-encode.js +55 -0
  46. package/dist/alphalib/types/robots/audio-encode.js.map +1 -0
  47. package/dist/alphalib/types/robots/audio-loop.d.ts +631 -0
  48. package/dist/alphalib/types/robots/audio-loop.d.ts.map +1 -0
  49. package/dist/alphalib/types/robots/audio-loop.js +54 -0
  50. package/dist/alphalib/types/robots/audio-loop.js.map +1 -0
  51. package/dist/alphalib/types/robots/audio-merge.d.ts +637 -0
  52. package/dist/alphalib/types/robots/audio-merge.d.ts.map +1 -0
  53. package/dist/alphalib/types/robots/audio-merge.js +65 -0
  54. package/dist/alphalib/types/robots/audio-merge.js.map +1 -0
  55. package/dist/alphalib/types/robots/audio-waveform.d.ts +642 -0
  56. package/dist/alphalib/types/robots/audio-waveform.d.ts.map +1 -0
  57. package/dist/alphalib/types/robots/audio-waveform.js +80 -0
  58. package/dist/alphalib/types/robots/audio-waveform.js.map +1 -0
  59. package/dist/alphalib/types/robots/azure-import.d.ts +46 -0
  60. package/dist/alphalib/types/robots/azure-import.d.ts.map +1 -0
  61. package/dist/alphalib/types/robots/azure-import.js +58 -0
  62. package/dist/alphalib/types/robots/azure-import.js.map +1 -0
  63. package/dist/alphalib/types/robots/azure-store.d.ts +129 -0
  64. package/dist/alphalib/types/robots/azure-store.d.ts.map +1 -0
  65. package/dist/alphalib/types/robots/azure-store.js +73 -0
  66. package/dist/alphalib/types/robots/azure-store.js.map +1 -0
  67. package/dist/alphalib/types/robots/backblaze-import.d.ts +49 -0
  68. package/dist/alphalib/types/robots/backblaze-import.d.ts.map +1 -0
  69. package/dist/alphalib/types/robots/backblaze-import.js +66 -0
  70. package/dist/alphalib/types/robots/backblaze-import.js.map +1 -0
  71. package/dist/alphalib/types/robots/backblaze-store.d.ts +111 -0
  72. package/dist/alphalib/types/robots/backblaze-store.d.ts.map +1 -0
  73. package/dist/alphalib/types/robots/backblaze-store.js +58 -0
  74. package/dist/alphalib/types/robots/backblaze-store.js.map +1 -0
  75. package/dist/alphalib/types/robots/cloudfiles-import.d.ts +55 -0
  76. package/dist/alphalib/types/robots/cloudfiles-import.d.ts.map +1 -0
  77. package/dist/alphalib/types/robots/cloudfiles-import.js +65 -0
  78. package/dist/alphalib/types/robots/cloudfiles-import.js.map +1 -0
  79. package/dist/alphalib/types/robots/cloudfiles-store.d.ts +114 -0
  80. package/dist/alphalib/types/robots/cloudfiles-store.d.ts.map +1 -0
  81. package/dist/alphalib/types/robots/cloudfiles-store.js +56 -0
  82. package/dist/alphalib/types/robots/cloudfiles-store.js.map +1 -0
  83. package/dist/alphalib/types/robots/cloudflare-import.d.ts +52 -0
  84. package/dist/alphalib/types/robots/cloudflare-import.d.ts.map +1 -0
  85. package/dist/alphalib/types/robots/cloudflare-import.js +68 -0
  86. package/dist/alphalib/types/robots/cloudflare-import.js.map +1 -0
  87. package/dist/alphalib/types/robots/cloudflare-store.d.ts +117 -0
  88. package/dist/alphalib/types/robots/cloudflare-store.d.ts.map +1 -0
  89. package/dist/alphalib/types/robots/cloudflare-store.js +57 -0
  90. package/dist/alphalib/types/robots/cloudflare-store.js.map +1 -0
  91. package/dist/alphalib/types/robots/digitalocean-import.d.ts +52 -0
  92. package/dist/alphalib/types/robots/digitalocean-import.d.ts.map +1 -0
  93. package/dist/alphalib/types/robots/digitalocean-import.js +65 -0
  94. package/dist/alphalib/types/robots/digitalocean-import.js.map +1 -0
  95. package/dist/alphalib/types/robots/digitalocean-store.d.ts +123 -0
  96. package/dist/alphalib/types/robots/digitalocean-store.d.ts.map +1 -0
  97. package/dist/alphalib/types/robots/digitalocean-store.js +62 -0
  98. package/dist/alphalib/types/robots/digitalocean-store.js.map +1 -0
  99. package/dist/alphalib/types/robots/document-autorotate.d.ts +91 -0
  100. package/dist/alphalib/types/robots/document-autorotate.d.ts.map +1 -0
  101. package/dist/alphalib/types/robots/document-autorotate.js +31 -0
  102. package/dist/alphalib/types/robots/document-autorotate.js.map +1 -0
  103. package/dist/alphalib/types/robots/document-convert.d.ts +118 -0
  104. package/dist/alphalib/types/robots/document-convert.d.ts.map +1 -0
  105. package/dist/alphalib/types/robots/document-convert.js +182 -0
  106. package/dist/alphalib/types/robots/document-convert.js.map +1 -0
  107. package/dist/alphalib/types/robots/document-merge.d.ts +97 -0
  108. package/dist/alphalib/types/robots/document-merge.d.ts.map +1 -0
  109. package/dist/alphalib/types/robots/document-merge.js +66 -0
  110. package/dist/alphalib/types/robots/document-merge.js.map +1 -0
  111. package/dist/alphalib/types/robots/document-ocr.d.ts +100 -0
  112. package/dist/alphalib/types/robots/document-ocr.d.ts.map +1 -0
  113. package/dist/alphalib/types/robots/document-ocr.js +65 -0
  114. package/dist/alphalib/types/robots/document-ocr.js.map +1 -0
  115. package/dist/alphalib/types/robots/document-split.d.ts +94 -0
  116. package/dist/alphalib/types/robots/document-split.d.ts.map +1 -0
  117. package/dist/alphalib/types/robots/document-split.js +34 -0
  118. package/dist/alphalib/types/robots/document-split.js.map +1 -0
  119. package/dist/alphalib/types/robots/document-thumbs.d.ts +134 -0
  120. package/dist/alphalib/types/robots/document-thumbs.d.ts.map +1 -0
  121. package/dist/alphalib/types/robots/document-thumbs.js +111 -0
  122. package/dist/alphalib/types/robots/document-thumbs.js.map +1 -0
  123. package/dist/alphalib/types/robots/dropbox-import.d.ts +43 -0
  124. package/dist/alphalib/types/robots/dropbox-import.d.ts.map +1 -0
  125. package/dist/alphalib/types/robots/dropbox-import.js +52 -0
  126. package/dist/alphalib/types/robots/dropbox-import.js.map +1 -0
  127. package/dist/alphalib/types/robots/dropbox-store.d.ts +114 -0
  128. package/dist/alphalib/types/robots/dropbox-store.d.ts.map +1 -0
  129. package/dist/alphalib/types/robots/dropbox-store.js +49 -0
  130. package/dist/alphalib/types/robots/dropbox-store.js.map +1 -0
  131. package/dist/alphalib/types/robots/edgly-deliver.d.ts +19 -0
  132. package/dist/alphalib/types/robots/edgly-deliver.d.ts.map +1 -0
  133. package/dist/alphalib/types/robots/edgly-deliver.js +31 -0
  134. package/dist/alphalib/types/robots/edgly-deliver.js.map +1 -0
  135. package/dist/alphalib/types/robots/file-compress.d.ts +106 -0
  136. package/dist/alphalib/types/robots/file-compress.d.ts.map +1 -0
  137. package/dist/alphalib/types/robots/file-compress.js +102 -0
  138. package/dist/alphalib/types/robots/file-compress.js.map +1 -0
  139. package/dist/alphalib/types/robots/file-decompress.d.ts +94 -0
  140. package/dist/alphalib/types/robots/file-decompress.d.ts.map +1 -0
  141. package/dist/alphalib/types/robots/file-decompress.js +81 -0
  142. package/dist/alphalib/types/robots/file-decompress.js.map +1 -0
  143. package/dist/alphalib/types/robots/file-filter.d.ts +107 -0
  144. package/dist/alphalib/types/robots/file-filter.d.ts.map +1 -0
  145. package/dist/alphalib/types/robots/file-filter.js +108 -0
  146. package/dist/alphalib/types/robots/file-filter.js.map +1 -0
  147. package/dist/alphalib/types/robots/file-hash.d.ts +94 -0
  148. package/dist/alphalib/types/robots/file-hash.d.ts.map +1 -0
  149. package/dist/alphalib/types/robots/file-hash.js +49 -0
  150. package/dist/alphalib/types/robots/file-hash.js.map +1 -0
  151. package/dist/alphalib/types/robots/file-preview.d.ts +393 -0
  152. package/dist/alphalib/types/robots/file-preview.d.ts.map +1 -0
  153. package/dist/alphalib/types/robots/file-preview.js +155 -0
  154. package/dist/alphalib/types/robots/file-preview.js.map +1 -0
  155. package/dist/alphalib/types/robots/file-read.d.ts +91 -0
  156. package/dist/alphalib/types/robots/file-read.d.ts.map +1 -0
  157. package/dist/alphalib/types/robots/file-read.js +34 -0
  158. package/dist/alphalib/types/robots/file-read.js.map +1 -0
  159. package/dist/alphalib/types/robots/file-serve.d.ts +95 -0
  160. package/dist/alphalib/types/robots/file-serve.d.ts.map +1 -0
  161. package/dist/alphalib/types/robots/file-serve.js +56 -0
  162. package/dist/alphalib/types/robots/file-serve.js.map +1 -0
  163. package/dist/alphalib/types/robots/file-verify.d.ts +100 -0
  164. package/dist/alphalib/types/robots/file-verify.d.ts.map +1 -0
  165. package/dist/alphalib/types/robots/file-verify.js +52 -0
  166. package/dist/alphalib/types/robots/file-verify.js.map +1 -0
  167. package/dist/alphalib/types/robots/file-virusscan.d.ts +97 -0
  168. package/dist/alphalib/types/robots/file-virusscan.d.ts.map +1 -0
  169. package/dist/alphalib/types/robots/file-virusscan.js +55 -0
  170. package/dist/alphalib/types/robots/file-virusscan.js.map +1 -0
  171. package/dist/alphalib/types/robots/file-watermark.d.ts +92 -0
  172. package/dist/alphalib/types/robots/file-watermark.d.ts.map +1 -0
  173. package/dist/alphalib/types/robots/file-watermark.js +13 -0
  174. package/dist/alphalib/types/robots/file-watermark.js.map +1 -0
  175. package/dist/alphalib/types/robots/ftp-import.d.ts +46 -0
  176. package/dist/alphalib/types/robots/ftp-import.d.ts.map +1 -0
  177. package/dist/alphalib/types/robots/ftp-import.js +47 -0
  178. package/dist/alphalib/types/robots/ftp-import.js.map +1 -0
  179. package/dist/alphalib/types/robots/ftp-store.d.ts +120 -0
  180. package/dist/alphalib/types/robots/ftp-store.d.ts.map +1 -0
  181. package/dist/alphalib/types/robots/ftp-store.js +57 -0
  182. package/dist/alphalib/types/robots/ftp-store.js.map +1 -0
  183. package/dist/alphalib/types/robots/google-import.d.ts +40 -0
  184. package/dist/alphalib/types/robots/google-import.d.ts.map +1 -0
  185. package/dist/alphalib/types/robots/google-import.js +65 -0
  186. package/dist/alphalib/types/robots/google-import.js.map +1 -0
  187. package/dist/alphalib/types/robots/google-store.d.ts +113 -0
  188. package/dist/alphalib/types/robots/google-store.d.ts.map +1 -0
  189. package/dist/alphalib/types/robots/google-store.js +86 -0
  190. package/dist/alphalib/types/robots/google-store.js.map +1 -0
  191. package/dist/alphalib/types/robots/html-convert.d.ts +115 -0
  192. package/dist/alphalib/types/robots/html-convert.d.ts.map +1 -0
  193. package/dist/alphalib/types/robots/html-convert.js +81 -0
  194. package/dist/alphalib/types/robots/html-convert.js.map +1 -0
  195. package/dist/alphalib/types/robots/http-import.d.ts +42 -0
  196. package/dist/alphalib/types/robots/http-import.d.ts.map +1 -0
  197. package/dist/alphalib/types/robots/http-import.js +76 -0
  198. package/dist/alphalib/types/robots/http-import.js.map +1 -0
  199. package/dist/alphalib/types/robots/image-describe.d.ts +103 -0
  200. package/dist/alphalib/types/robots/image-describe.d.ts.map +1 -0
  201. package/dist/alphalib/types/robots/image-describe.js +66 -0
  202. package/dist/alphalib/types/robots/image-describe.js.map +1 -0
  203. package/dist/alphalib/types/robots/image-facedetect.d.ts +109 -0
  204. package/dist/alphalib/types/robots/image-facedetect.d.ts.map +1 -0
  205. package/dist/alphalib/types/robots/image-facedetect.js +125 -0
  206. package/dist/alphalib/types/robots/image-facedetect.js.map +1 -0
  207. package/dist/alphalib/types/robots/image-generate.d.ts +229 -0
  208. package/dist/alphalib/types/robots/image-generate.d.ts.map +1 -0
  209. package/dist/alphalib/types/robots/image-generate.js +27 -0
  210. package/dist/alphalib/types/robots/image-generate.js.map +1 -0
  211. package/dist/alphalib/types/robots/image-merge.d.ts +109 -0
  212. package/dist/alphalib/types/robots/image-merge.d.ts.map +1 -0
  213. package/dist/alphalib/types/robots/image-merge.js +74 -0
  214. package/dist/alphalib/types/robots/image-merge.js.map +1 -0
  215. package/dist/alphalib/types/robots/image-ocr.d.ts +100 -0
  216. package/dist/alphalib/types/robots/image-ocr.d.ts.map +1 -0
  217. package/dist/alphalib/types/robots/image-ocr.js +64 -0
  218. package/dist/alphalib/types/robots/image-ocr.js.map +1 -0
  219. package/dist/alphalib/types/robots/image-optimize.d.ts +103 -0
  220. package/dist/alphalib/types/robots/image-optimize.d.ts.map +1 -0
  221. package/dist/alphalib/types/robots/image-optimize.js +60 -0
  222. package/dist/alphalib/types/robots/image-optimize.js.map +1 -0
  223. package/dist/alphalib/types/robots/image-remove-background.d.ts +98 -0
  224. package/dist/alphalib/types/robots/image-remove-background.d.ts.map +1 -0
  225. package/dist/alphalib/types/robots/image-remove-background.js +21 -0
  226. package/dist/alphalib/types/robots/image-remove-background.js.map +1 -0
  227. package/dist/alphalib/types/robots/image-resize.d.ts +696 -0
  228. package/dist/alphalib/types/robots/image-resize.d.ts.map +1 -0
  229. package/dist/alphalib/types/robots/image-resize.js +364 -0
  230. package/dist/alphalib/types/robots/image-resize.js.map +1 -0
  231. package/dist/alphalib/types/robots/media-playlist.d.ts +115 -0
  232. package/dist/alphalib/types/robots/media-playlist.d.ts.map +1 -0
  233. package/dist/alphalib/types/robots/media-playlist.js +56 -0
  234. package/dist/alphalib/types/robots/media-playlist.js.map +1 -0
  235. package/dist/alphalib/types/robots/meta-write.d.ts +623 -0
  236. package/dist/alphalib/types/robots/meta-write.d.ts.map +1 -0
  237. package/dist/alphalib/types/robots/meta-write.js +53 -0
  238. package/dist/alphalib/types/robots/meta-write.js.map +1 -0
  239. package/dist/alphalib/types/robots/minio-import.d.ts +52 -0
  240. package/dist/alphalib/types/robots/minio-import.d.ts.map +1 -0
  241. package/dist/alphalib/types/robots/minio-import.js +68 -0
  242. package/dist/alphalib/types/robots/minio-import.js.map +1 -0
  243. package/dist/alphalib/types/robots/minio-store.d.ts +120 -0
  244. package/dist/alphalib/types/robots/minio-store.d.ts.map +1 -0
  245. package/dist/alphalib/types/robots/minio-store.js +61 -0
  246. package/dist/alphalib/types/robots/minio-store.js.map +1 -0
  247. package/dist/alphalib/types/robots/progress-simulate.d.ts +29 -0
  248. package/dist/alphalib/types/robots/progress-simulate.d.ts.map +1 -0
  249. package/dist/alphalib/types/robots/progress-simulate.js +15 -0
  250. package/dist/alphalib/types/robots/progress-simulate.js.map +1 -0
  251. package/dist/alphalib/types/robots/s3-import.d.ts +52 -0
  252. package/dist/alphalib/types/robots/s3-import.d.ts.map +1 -0
  253. package/dist/alphalib/types/robots/s3-import.js +104 -0
  254. package/dist/alphalib/types/robots/s3-import.js.map +1 -0
  255. package/dist/alphalib/types/robots/s3-store.d.ts +135 -0
  256. package/dist/alphalib/types/robots/s3-store.d.ts.map +1 -0
  257. package/dist/alphalib/types/robots/s3-store.js +118 -0
  258. package/dist/alphalib/types/robots/s3-store.js.map +1 -0
  259. package/dist/alphalib/types/robots/script-run.d.ts +94 -0
  260. package/dist/alphalib/types/robots/script-run.d.ts.map +1 -0
  261. package/dist/alphalib/types/robots/script-run.js +79 -0
  262. package/dist/alphalib/types/robots/script-run.js.map +1 -0
  263. package/dist/alphalib/types/robots/sftp-import.d.ts +43 -0
  264. package/dist/alphalib/types/robots/sftp-import.d.ts.map +1 -0
  265. package/dist/alphalib/types/robots/sftp-import.js +45 -0
  266. package/dist/alphalib/types/robots/sftp-import.js.map +1 -0
  267. package/dist/alphalib/types/robots/sftp-store.d.ts +120 -0
  268. package/dist/alphalib/types/robots/sftp-store.d.ts.map +1 -0
  269. package/dist/alphalib/types/robots/sftp-store.js +58 -0
  270. package/dist/alphalib/types/robots/sftp-store.js.map +1 -0
  271. package/dist/alphalib/types/robots/speech-transcribe.d.ts +210 -0
  272. package/dist/alphalib/types/robots/speech-transcribe.d.ts.map +1 -0
  273. package/dist/alphalib/types/robots/speech-transcribe.js +80 -0
  274. package/dist/alphalib/types/robots/speech-transcribe.js.map +1 -0
  275. package/dist/alphalib/types/robots/supabase-import.d.ts +52 -0
  276. package/dist/alphalib/types/robots/supabase-import.d.ts.map +1 -0
  277. package/dist/alphalib/types/robots/supabase-import.js +70 -0
  278. package/dist/alphalib/types/robots/supabase-import.js.map +1 -0
  279. package/dist/alphalib/types/robots/supabase-store.d.ts +117 -0
  280. package/dist/alphalib/types/robots/supabase-store.d.ts.map +1 -0
  281. package/dist/alphalib/types/robots/supabase-store.js +54 -0
  282. package/dist/alphalib/types/robots/supabase-store.js.map +1 -0
  283. package/dist/alphalib/types/robots/swift-import.d.ts +52 -0
  284. package/dist/alphalib/types/robots/swift-import.d.ts.map +1 -0
  285. package/dist/alphalib/types/robots/swift-import.js +68 -0
  286. package/dist/alphalib/types/robots/swift-import.js.map +1 -0
  287. package/dist/alphalib/types/robots/swift-store.d.ts +120 -0
  288. package/dist/alphalib/types/robots/swift-store.d.ts.map +1 -0
  289. package/dist/alphalib/types/robots/swift-store.js +58 -0
  290. package/dist/alphalib/types/robots/swift-store.js.map +1 -0
  291. package/dist/alphalib/types/robots/text-speak.d.ts +106 -0
  292. package/dist/alphalib/types/robots/text-speak.d.ts.map +1 -0
  293. package/dist/alphalib/types/robots/text-speak.js +97 -0
  294. package/dist/alphalib/types/robots/text-speak.js.map +1 -0
  295. package/dist/alphalib/types/robots/text-translate.d.ts +100 -0
  296. package/dist/alphalib/types/robots/text-translate.d.ts.map +1 -0
  297. package/dist/alphalib/types/robots/text-translate.js +196 -0
  298. package/dist/alphalib/types/robots/text-translate.js.map +1 -0
  299. package/dist/alphalib/types/robots/tigris-import.d.ts +52 -0
  300. package/dist/alphalib/types/robots/tigris-import.d.ts.map +1 -0
  301. package/dist/alphalib/types/robots/tigris-import.js +68 -0
  302. package/dist/alphalib/types/robots/tigris-import.js.map +1 -0
  303. package/dist/alphalib/types/robots/tigris-store.d.ts +120 -0
  304. package/dist/alphalib/types/robots/tigris-store.d.ts.map +1 -0
  305. package/dist/alphalib/types/robots/tigris-store.js +61 -0
  306. package/dist/alphalib/types/robots/tigris-store.js.map +1 -0
  307. package/dist/alphalib/types/robots/tlcdn-deliver.d.ts +19 -0
  308. package/dist/alphalib/types/robots/tlcdn-deliver.d.ts.map +1 -0
  309. package/dist/alphalib/types/robots/tlcdn-deliver.js +31 -0
  310. package/dist/alphalib/types/robots/tlcdn-deliver.js.map +1 -0
  311. package/dist/alphalib/types/robots/tus-store.d.ts +110 -0
  312. package/dist/alphalib/types/robots/tus-store.d.ts.map +1 -0
  313. package/dist/alphalib/types/robots/tus-store.js +74 -0
  314. package/dist/alphalib/types/robots/tus-store.js.map +1 -0
  315. package/dist/alphalib/types/robots/upload-handle.d.ts +92 -0
  316. package/dist/alphalib/types/robots/upload-handle.d.ts.map +1 -0
  317. package/dist/alphalib/types/robots/upload-handle.js +54 -0
  318. package/dist/alphalib/types/robots/upload-handle.js.map +1 -0
  319. package/dist/alphalib/types/robots/video-adaptive.d.ts +640 -0
  320. package/dist/alphalib/types/robots/video-adaptive.d.ts.map +1 -0
  321. package/dist/alphalib/types/robots/video-adaptive.js +119 -0
  322. package/dist/alphalib/types/robots/video-adaptive.js.map +1 -0
  323. package/dist/alphalib/types/robots/video-concat.d.ts +634 -0
  324. package/dist/alphalib/types/robots/video-concat.d.ts.map +1 -0
  325. package/dist/alphalib/types/robots/video-concat.js +65 -0
  326. package/dist/alphalib/types/robots/video-concat.js.map +1 -0
  327. package/dist/alphalib/types/robots/video-encode.d.ts +1439 -0
  328. package/dist/alphalib/types/robots/video-encode.d.ts.map +1 -0
  329. package/dist/alphalib/types/robots/video-encode.js +157 -0
  330. package/dist/alphalib/types/robots/video-encode.js.map +1 -0
  331. package/dist/alphalib/types/robots/video-merge.d.ts +655 -0
  332. package/dist/alphalib/types/robots/video-merge.d.ts.map +1 -0
  333. package/dist/alphalib/types/robots/video-merge.js +64 -0
  334. package/dist/alphalib/types/robots/video-merge.js.map +1 -0
  335. package/dist/alphalib/types/robots/video-subtitle.d.ts +649 -0
  336. package/dist/alphalib/types/robots/video-subtitle.d.ts.map +1 -0
  337. package/dist/alphalib/types/robots/video-subtitle.js +77 -0
  338. package/dist/alphalib/types/robots/video-subtitle.js.map +1 -0
  339. package/dist/alphalib/types/robots/video-thumbs.d.ts +642 -0
  340. package/dist/alphalib/types/robots/video-thumbs.d.ts.map +1 -0
  341. package/dist/alphalib/types/robots/video-thumbs.js +79 -0
  342. package/dist/alphalib/types/robots/video-thumbs.js.map +1 -0
  343. package/dist/alphalib/types/robots/vimeo-store.d.ts +116 -0
  344. package/dist/alphalib/types/robots/vimeo-store.d.ts.map +1 -0
  345. package/dist/alphalib/types/robots/vimeo-store.js +81 -0
  346. package/dist/alphalib/types/robots/vimeo-store.js.map +1 -0
  347. package/dist/alphalib/types/robots/wasabi-import.d.ts +53 -0
  348. package/dist/alphalib/types/robots/wasabi-import.d.ts.map +1 -0
  349. package/dist/alphalib/types/robots/wasabi-import.js +72 -0
  350. package/dist/alphalib/types/robots/wasabi-import.js.map +1 -0
  351. package/dist/alphalib/types/robots/wasabi-store.d.ts +120 -0
  352. package/dist/alphalib/types/robots/wasabi-store.d.ts.map +1 -0
  353. package/dist/alphalib/types/robots/wasabi-store.js +59 -0
  354. package/dist/alphalib/types/robots/wasabi-store.js.map +1 -0
  355. package/dist/alphalib/types/robots/youtube-store.d.ts +110 -0
  356. package/dist/alphalib/types/robots/youtube-store.d.ts.map +1 -0
  357. package/dist/alphalib/types/robots/youtube-store.js +105 -0
  358. package/dist/alphalib/types/robots/youtube-store.js.map +1 -0
  359. package/dist/alphalib/types/stackVersions.d.ts +13 -0
  360. package/dist/alphalib/types/stackVersions.d.ts.map +1 -0
  361. package/dist/alphalib/types/stackVersions.js +16 -0
  362. package/dist/alphalib/types/stackVersions.js.map +1 -0
  363. package/dist/alphalib/types/template.d.ts +77150 -0
  364. package/dist/alphalib/types/template.d.ts.map +1 -0
  365. package/dist/alphalib/types/template.js +49 -0
  366. package/dist/alphalib/types/template.js.map +1 -0
  367. package/dist/alphalib/zodParseWithContext.d.ts +18 -0
  368. package/dist/alphalib/zodParseWithContext.d.ts.map +1 -0
  369. package/dist/alphalib/zodParseWithContext.js +123 -0
  370. package/dist/alphalib/zodParseWithContext.js.map +1 -0
  371. package/dist/apiTypes.d.ts +127 -0
  372. package/dist/apiTypes.d.ts.map +1 -0
  373. package/dist/apiTypes.js +3 -0
  374. package/dist/apiTypes.js.map +1 -0
  375. package/dist/tus.d.ts +17 -0
  376. package/dist/tus.d.ts.map +1 -0
  377. package/dist/tus.js +88 -0
  378. package/dist/tus.js.map +1 -0
  379. package/package.json +58 -39
  380. package/src/ApiError.ts +44 -0
  381. package/src/InconsistentResponseError.ts +3 -0
  382. package/src/PaginationStream.ts +55 -0
  383. package/src/PollingTimeoutError.ts +5 -0
  384. package/src/Transloadit.ts +826 -0
  385. package/src/alphalib/types/assemblyStatus.ts +300 -0
  386. package/src/alphalib/types/robots/_index.ts +437 -0
  387. package/src/alphalib/types/robots/_instructions-primitives.ts +835 -0
  388. package/src/alphalib/types/robots/audio-artwork.ts +57 -0
  389. package/src/alphalib/types/robots/audio-concat.ts +74 -0
  390. package/src/alphalib/types/robots/audio-encode.ts +63 -0
  391. package/src/alphalib/types/robots/audio-loop.ts +62 -0
  392. package/src/alphalib/types/robots/audio-merge.ts +73 -0
  393. package/src/alphalib/types/robots/audio-waveform.ts +83 -0
  394. package/src/alphalib/types/robots/azure-import.ts +69 -0
  395. package/src/alphalib/types/robots/azure-store.ts +76 -0
  396. package/src/alphalib/types/robots/backblaze-import.ts +81 -0
  397. package/src/alphalib/types/robots/backblaze-store.ts +63 -0
  398. package/src/alphalib/types/robots/cloudfiles-import.ts +80 -0
  399. package/src/alphalib/types/robots/cloudfiles-store.ts +63 -0
  400. package/src/alphalib/types/robots/cloudflare-import.ts +84 -0
  401. package/src/alphalib/types/robots/cloudflare-store.ts +64 -0
  402. package/src/alphalib/types/robots/digitalocean-import.ts +81 -0
  403. package/src/alphalib/types/robots/digitalocean-store.ts +69 -0
  404. package/src/alphalib/types/robots/document-autorotate.ts +36 -0
  405. package/src/alphalib/types/robots/document-convert.ts +186 -0
  406. package/src/alphalib/types/robots/document-merge.ts +68 -0
  407. package/src/alphalib/types/robots/document-ocr.ts +72 -0
  408. package/src/alphalib/types/robots/document-split.ts +38 -0
  409. package/src/alphalib/types/robots/document-thumbs.ts +119 -0
  410. package/src/alphalib/types/robots/dropbox-import.ts +58 -0
  411. package/src/alphalib/types/robots/dropbox-store.ts +52 -0
  412. package/src/alphalib/types/robots/edgly-deliver.ts +32 -0
  413. package/src/alphalib/types/robots/file-compress.ts +104 -0
  414. package/src/alphalib/types/robots/file-decompress.ts +86 -0
  415. package/src/alphalib/types/robots/file-filter.ts +115 -0
  416. package/src/alphalib/types/robots/file-hash.ts +51 -0
  417. package/src/alphalib/types/robots/file-preview.ts +174 -0
  418. package/src/alphalib/types/robots/file-read.ts +36 -0
  419. package/src/alphalib/types/robots/file-serve.ts +60 -0
  420. package/src/alphalib/types/robots/file-verify.ts +55 -0
  421. package/src/alphalib/types/robots/file-virusscan.ts +60 -0
  422. package/src/alphalib/types/robots/file-watermark.ts +13 -0
  423. package/src/alphalib/types/robots/ftp-import.ts +52 -0
  424. package/src/alphalib/types/robots/ftp-store.ts +61 -0
  425. package/src/alphalib/types/robots/google-import.ts +77 -0
  426. package/src/alphalib/types/robots/google-store.ts +89 -0
  427. package/src/alphalib/types/robots/html-convert.ts +83 -0
  428. package/src/alphalib/types/robots/http-import.ts +79 -0
  429. package/src/alphalib/types/robots/image-describe.ts +74 -0
  430. package/src/alphalib/types/robots/image-facedetect.ts +131 -0
  431. package/src/alphalib/types/robots/image-generate.ts +32 -0
  432. package/src/alphalib/types/robots/image-merge.ts +81 -0
  433. package/src/alphalib/types/robots/image-ocr.ts +71 -0
  434. package/src/alphalib/types/robots/image-optimize.ts +61 -0
  435. package/src/alphalib/types/robots/image-remove-background.ts +23 -0
  436. package/src/alphalib/types/robots/image-resize.ts +401 -0
  437. package/src/alphalib/types/robots/media-playlist.ts +58 -0
  438. package/src/alphalib/types/robots/meta-write.ts +55 -0
  439. package/src/alphalib/types/robots/minio-import.ts +80 -0
  440. package/src/alphalib/types/robots/minio-store.ts +64 -0
  441. package/src/alphalib/types/robots/progress-simulate.ts +16 -0
  442. package/src/alphalib/types/robots/s3-import.ts +116 -0
  443. package/src/alphalib/types/robots/s3-store.ts +121 -0
  444. package/src/alphalib/types/robots/script-run.ts +81 -0
  445. package/src/alphalib/types/robots/sftp-import.ts +50 -0
  446. package/src/alphalib/types/robots/sftp-store.ts +61 -0
  447. package/src/alphalib/types/robots/speech-transcribe.ts +96 -0
  448. package/src/alphalib/types/robots/supabase-import.ts +84 -0
  449. package/src/alphalib/types/robots/supabase-store.ts +59 -0
  450. package/src/alphalib/types/robots/swift-import.ts +80 -0
  451. package/src/alphalib/types/robots/swift-store.ts +61 -0
  452. package/src/alphalib/types/robots/text-speak.ts +100 -0
  453. package/src/alphalib/types/robots/text-translate.ts +199 -0
  454. package/src/alphalib/types/robots/tigris-import.ts +80 -0
  455. package/src/alphalib/types/robots/tigris-store.ts +64 -0
  456. package/src/alphalib/types/robots/tlcdn-deliver.ts +32 -0
  457. package/src/alphalib/types/robots/tus-store.ts +77 -0
  458. package/src/alphalib/types/robots/upload-handle.ts +58 -0
  459. package/src/alphalib/types/robots/video-adaptive.ts +123 -0
  460. package/src/alphalib/types/robots/video-concat.ts +68 -0
  461. package/src/alphalib/types/robots/video-encode.ts +182 -0
  462. package/src/alphalib/types/robots/video-merge.ts +72 -0
  463. package/src/alphalib/types/robots/video-subtitle.ts +86 -0
  464. package/src/alphalib/types/robots/video-thumbs.ts +88 -0
  465. package/src/alphalib/types/robots/vimeo-store.ts +84 -0
  466. package/src/alphalib/types/robots/wasabi-import.ts +84 -0
  467. package/src/alphalib/types/robots/wasabi-store.ts +62 -0
  468. package/src/alphalib/types/robots/youtube-store.ts +108 -0
  469. package/src/alphalib/types/stackVersions.ts +12 -0
  470. package/src/alphalib/types/template.ts +71 -0
  471. package/src/alphalib/zodParseWithContext.ts +151 -0
  472. package/src/apiTypes.ts +165 -0
  473. package/src/tus.ts +123 -0
  474. package/index.js +0 -1
  475. package/src/PaginationStream.js +0 -39
  476. package/src/Transloadit.js +0 -701
  477. package/types/index.d.ts +0 -217
@@ -0,0 +1,55 @@
1
+ import { z } from 'zod'
2
+
3
+ import { robotBase, robotUse } from './_instructions-primitives.ts'
4
+ import type { RobotMeta } from './_instructions-primitives.ts'
5
+
6
+ export const meta: RobotMeta = {
7
+ allowed_for_url_transform: true,
8
+ bytescount: 4,
9
+ description:
10
+ '/file/verify is a simple Robot that helps ensure that the files you upload are of the type you initially intended. This is especially useful when handling user-generated content, where you may not want to run certain Steps in your Template if the user hasn’t uploaded a file of the correct type. Another use case for /file/verify is when a user uploads a ZIP file, but we find that it has a few damaged files inside when we extract it. Perhaps you don’t want to error out, but only send the good files to a next processing step. With /file/verify, you can do exactly that (assuming the default of `error_on_decline`: `true`).',
11
+ discount_factor: 0.25,
12
+ discount_pct: 75,
13
+ example_code: {
14
+ steps: {
15
+ scanned: {
16
+ robot: '/file/verify',
17
+ use: ':original',
18
+ error_on_decline: true,
19
+ error_msg: 'At least one of the uploaded files was not the desired type',
20
+ verify_to_be: 'image',
21
+ },
22
+ },
23
+ },
24
+ example_code_description: 'Scan the uploaded files and throw an error if they are not images:',
25
+ minimum_charge: 0,
26
+ output_factor: 1,
27
+ override_lvl1: 'File Filtering',
28
+ purpose_sentence: 'verifies your files are the type that you want',
29
+ purpose_verb: 'verify',
30
+ purpose_word: 'verify the file type',
31
+ purpose_words: 'Verify the file type',
32
+ service_slug: 'file-filtering',
33
+ slot_count: 10,
34
+ title: 'Verify the file type',
35
+ typical_file_size_mb: 1.2,
36
+ typical_file_type: 'file',
37
+ }
38
+
39
+ export const robotFileVerifyInstructionsSchema = robotBase
40
+ .merge(robotUse)
41
+ .extend({
42
+ robot: z.literal('/file/verify'),
43
+ error_on_decline: z.boolean().default(false).describe(`
44
+ If this is set to \`true\` and one or more files are declined, the Assembly will be stopped and marked with an error.
45
+ `),
46
+ error_msg: z.string().default('One of your files was declined').describe(`
47
+ The error message shown to your users (such as by Uppy) when a file is declined and \`error_on_decline\` is set to \`true\`.
48
+ `),
49
+ verify_to_be: z.string().default('pdf').describe(`
50
+ The type that you want to match against to ensure your file is of this type. For example, \`image\` will verify whether uploaded files are images. This also works against file media types, in this case \`image/png\` would also work to match against specifically \`png\` files.
51
+ `),
52
+ })
53
+ .strict()
54
+
55
+ export type RobotFileVerifyInstructions = z.infer<typeof robotFileVerifyInstructionsSchema>
@@ -0,0 +1,60 @@
1
+ import { z } from 'zod'
2
+
3
+ import { robotBase, robotUse } from './_instructions-primitives.ts'
4
+ import type { RobotMeta } from './_instructions-primitives.ts'
5
+
6
+ export const meta: RobotMeta = {
7
+ allowed_for_url_transform: false,
8
+ bytescount: 1,
9
+ description:
10
+ 'While 100% security is a myth, having /file/virusscan as a gatekeeper bot helps reject millions of trojans, viruses, malware &amp; other malicious threats before they reach your platform.',
11
+ discount_factor: 1,
12
+ discount_pct: 0,
13
+ example_code: {
14
+ steps: {
15
+ scanned: {
16
+ robot: '/file/virusscan',
17
+ use: ':original',
18
+ error_on_decline: true,
19
+ error_msg: 'At least one of the uploaded files is malicious and was declined',
20
+ },
21
+ },
22
+ },
23
+ example_code_description:
24
+ 'Scan uploaded files and throw an error if a malicious file is detected:',
25
+ minimum_charge: 1048576,
26
+ ogimage: '/assets/images/robots/ogimages/file-virusscan.jpg',
27
+ output_factor: 1,
28
+ override_lvl1: 'File Filtering',
29
+ purpose_sentence:
30
+ 'rejects millions of trojans, viruses, malware &amp; other malicious threats before they reach your platform',
31
+ purpose_verb: 'scan',
32
+ purpose_word: 'scan for viruses and reject malware',
33
+ purpose_words: 'Scan files for viruses',
34
+ service_slug: 'file-filtering',
35
+ slot_count: 38,
36
+ title: 'Scan files for viruses',
37
+ typical_file_size_mb: 1.2,
38
+ typical_file_type: 'file',
39
+ }
40
+
41
+ export const robotFileVirusscanInstructionsSchema = robotBase
42
+ .merge(robotUse)
43
+ .extend({
44
+ robot: z.literal('/file/virusscan').describe(`
45
+ This <dfn>Robot</dfn> is built on top of [ClamAV](https://www.clamav.net/), the best open source antivirus engine available. We update its signatures on a daily basis.
46
+
47
+ By default, this <dfn>Robot</dfn> excludes all malicious files from further processing without any additional notification. This behavior can be changed by setting \`error_on_decline\` to \`true\`, which will stop <dfn>Assemblies</dfn> as soon as malicious files are found. Such <dfn>Assemblies</dfn> will then be marked with an error.
48
+
49
+ We allow the use of industry standard [EICAR files](https://www.eicar.org/download-anti-malware-testfile/) for integration testing without needing to use potentially dangerous live virus samples.
50
+ `),
51
+ error_on_decline: z.boolean().default(false).describe(`
52
+ If this is set to \`true\` and one or more files are declined, the Assembly will be stopped and marked with an error.
53
+ `),
54
+ error_msg: z.string().default('One of your files was declined').describe(`
55
+ The error message shown to your users (such as by Uppy) when a file is declined and \`error_on_decline\` is set to \`true\`.
56
+ `),
57
+ })
58
+ .strict()
59
+
60
+ export type RobotFileVirusscanInstructions = z.infer<typeof robotFileVirusscanInstructionsSchema>
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod'
2
+
3
+ import { robotBase, robotUse } from './_instructions-primitives.ts'
4
+
5
+ export const robotFileWatermarkInstructionsSchema = robotBase
6
+ .merge(robotUse)
7
+ .extend({
8
+ robot: z.literal('/file/watermark'),
9
+ randomize: z.boolean().optional(),
10
+ })
11
+ .strict()
12
+
13
+ export type RobotFileWatermarkInstructions = z.infer<typeof robotFileWatermarkInstructionsSchema>
@@ -0,0 +1,52 @@
1
+ import { z } from 'zod'
2
+
3
+ import { ftpBase, robotImport, path, robotBase } from './_instructions-primitives.ts'
4
+ import type { RobotMeta } from './_instructions-primitives.ts'
5
+
6
+ export const meta: RobotMeta = {
7
+ allowed_for_url_transform: true,
8
+ bytescount: 10,
9
+ discount_factor: 0.1,
10
+ discount_pct: 90,
11
+ example_code: {
12
+ steps: {
13
+ imported: {
14
+ robot: '/ftp/import',
15
+ credentials: 'YOUR_FTP_CREDENTIALS',
16
+ path: 'path/to/files/',
17
+ },
18
+ },
19
+ },
20
+ example_code_description:
21
+ 'Import files from the `path/to/files` directory and its subdirectories:',
22
+ minimum_charge: 0,
23
+ output_factor: 1,
24
+ override_lvl1: 'File Importing',
25
+ purpose_sentence:
26
+ 'imports whole libraries of files from your FTP servers into Transloadit. This Robot relies on password access. For more security, consider our /sftp/import Robot',
27
+ purpose_verb: 'import',
28
+ purpose_word: 'FTP servers',
29
+ purpose_words: 'Import files from FTP servers',
30
+ service_slug: 'file-importing',
31
+ slot_count: 20,
32
+ title: 'Import files from FTP servers',
33
+ typical_file_size_mb: 1.2,
34
+ typical_file_type: 'file',
35
+ }
36
+
37
+ export const robotFtpImportInstructionsSchema = robotBase
38
+ .merge(robotImport)
39
+ .merge(ftpBase)
40
+ .extend({
41
+ robot: z.literal('/ftp/import'),
42
+ path: path.describe(`
43
+ The path on your FTP server where to search for files. Files are imported recursively from all sub-directories and sub-sub-directories (and so on) from this path.
44
+ `),
45
+ passive_mode: z.boolean().default(true).describe(`
46
+ Determines if passive mode should be used for the FTP connection.
47
+ `),
48
+ })
49
+ .strict()
50
+
51
+ export type RobotFtpImportInstructions = z.infer<typeof robotFtpImportInstructionsSchema>
52
+ export type RobotFtpImportInstructionsInput = z.input<typeof robotFtpImportInstructionsSchema>
@@ -0,0 +1,61 @@
1
+ import { z } from 'zod'
2
+
3
+ import { ftpBase, robotBase, robotUse } from './_instructions-primitives.ts'
4
+ import type { RobotMeta } from './_instructions-primitives.ts'
5
+
6
+ export const meta: RobotMeta = {
7
+ allowed_for_url_transform: true,
8
+ bytescount: 6,
9
+ discount_factor: 0.15000150001500018,
10
+ discount_pct: 84.99984999849998,
11
+ docs_redirect_from: ['/docs/export-to-your-own-ftp-server/'],
12
+ example_code: {
13
+ steps: {
14
+ exported: {
15
+ robot: '/ftp/store',
16
+ use: ':original',
17
+ credentials: 'YOUR_FTP_CREDENTIALS',
18
+ path: 'my_target_folder/${unique_prefix}/${file.url_name}',
19
+ },
20
+ },
21
+ },
22
+ example_code_description: 'Export uploaded files to `my_target_folder` on an FTP server:',
23
+ minimum_charge: 0,
24
+ output_factor: 1,
25
+ override_lvl1: 'File Exporting',
26
+ purpose_sentence:
27
+ 'exports encoding results to your FTP servers. This Robot relies on password access. For more security, consider our /sftp/store Robot',
28
+ purpose_verb: 'export',
29
+ purpose_word: 'FTP servers',
30
+ purpose_words: 'Export files to FTP servers',
31
+ service_slug: 'file-exporting',
32
+ slot_count: 10,
33
+ title: 'Export files to FTP servers',
34
+ typical_file_size_mb: 1.2,
35
+ typical_file_type: 'file',
36
+ }
37
+
38
+ export const robotFtpStoreInstructionsSchema = robotBase
39
+ .merge(robotUse)
40
+ .merge(ftpBase)
41
+ .extend({
42
+ robot: z.literal('/ftp/store'),
43
+ path: z.string().default('${unique_prefix}/${file.url_name}').describe(`
44
+ The path at which the file is to be stored. This can contain any available [Assembly variables](/docs/topics/assembly-instructions/#assembly-variables).
45
+
46
+ Please note that you might need to include your homedir at the beginning of the path.
47
+ `),
48
+ url_template: z.string().default('https://{HOST}/{PATH}').describe(`
49
+ The URL of the file in the result JSON. The following [Assembly variables](/docs/topics/assembly-instructions/#assembly-variables) are supported.
50
+ `),
51
+ ssl_url_template: z.string().default('https://{HOST}/{PATH}').describe(`
52
+ The SSL URL of the file in the result JSON. The following [Assembly variables](/docs/topics/assembly-instructions/#assembly-variables) are supported.
53
+ `),
54
+ secure: z.boolean().default(false).describe(`
55
+ Determines whether to establish a secure connection to the FTP server using SSL.
56
+ `),
57
+ })
58
+ .strict()
59
+
60
+ export type RobotFtpStoreInstructions = z.infer<typeof robotFtpStoreInstructionsSchema>
61
+ export type RobotFtpStoreInstructionsInput = z.input<typeof robotFtpStoreInstructionsSchema>
@@ -0,0 +1,77 @@
1
+ import { z } from 'zod'
2
+
3
+ import {
4
+ files_per_page,
5
+ googleBase,
6
+ robotImport,
7
+ next_page_token,
8
+ path,
9
+ recursive,
10
+ robotBase,
11
+ } from './_instructions-primitives.ts'
12
+ import type { RobotMeta } from './_instructions-primitives.ts'
13
+
14
+ export const meta: RobotMeta = {
15
+ allowed_for_url_transform: true,
16
+ bytescount: 10,
17
+ discount_factor: 0.1,
18
+ discount_pct: 90,
19
+ example_code: {
20
+ steps: {
21
+ imported: {
22
+ robot: '/google/import',
23
+ credentials: 'YOUR_GOOGLE_CREDENTIALS',
24
+ path: 'path/to/files/',
25
+ recursive: true,
26
+ },
27
+ },
28
+ },
29
+ example_code_description:
30
+ 'Import files from the `path/to/files` directory and its subdirectories:',
31
+ has_small_icon: true,
32
+ minimum_charge: 0,
33
+ output_factor: 1,
34
+ override_lvl1: 'File Importing',
35
+ purpose_sentence: 'imports whole directories of files from Google Storage',
36
+ purpose_verb: 'import',
37
+ purpose_word: 'Google Storage',
38
+ purpose_words: 'Import files from Google Storage',
39
+ service_slug: 'file-importing',
40
+ slot_count: 20,
41
+ title: 'Import files from Google Storage',
42
+ typical_file_size_mb: 1.2,
43
+ typical_file_type: 'file',
44
+ }
45
+
46
+ export const robotGoogleImportInstructionsSchema = robotBase
47
+ .merge(robotImport)
48
+ .merge(googleBase)
49
+ .extend({
50
+ robot: z.literal('/google/import'),
51
+ path: path.describe(`
52
+ The path in your bucket to the specific file or directory. If the path points to a file, only this file will be imported. For example: \`images/avatar.jpg\`.
53
+
54
+ If it points to a directory, indicated by a trailing slash (\`/\`), then all files that are direct descendants of this directory will be imported. For example: \`images/\`.
55
+
56
+ Directories are **not** imported recursively. If you want to import files from subdirectories and sub-subdirectories, enable the \`recursive\` parameter.
57
+
58
+ If you want to import all files from the root directory, please use \`/\` as the value here. In this case, make sure all your objects belong to a path. If you have objects in the root of your bucket that aren't prefixed with \`/\`, you'll receive a 404 \`GOOGLE_IMPORT_NOT_FOUND\` error.
59
+
60
+ You can also use an array of path strings here to import multiple paths in the same <dfn>Robot</dfn>'s <dfn>Step</dfn>.
61
+ `),
62
+ recursive: recursive.describe(`
63
+ Setting this to \`true\` will enable importing files from subdirectories and sub-subdirectories (etc.) of the given path.
64
+
65
+ Please use the pagination parameters \`start_file_name\` and \`files_per_page\` wisely here.
66
+ `),
67
+ next_page_token: next_page_token.describe(`
68
+ A string token used for pagination. The returned files of one paginated call have the next page token inside of their meta data, which needs to be used for the subsequent paging call.
69
+ `),
70
+ files_per_page: files_per_page.describe(`
71
+ The pagination page size. This only works when recursive is \`true\` for now, in order to not break backwards compatibility in non-recursive imports.
72
+ `),
73
+ })
74
+ .strict()
75
+
76
+ export type RobotGoogleImportInstructions = z.infer<typeof robotGoogleImportInstructionsSchema>
77
+ export type RobotGoogleImportInstructionsInput = z.input<typeof robotGoogleImportInstructionsSchema>
@@ -0,0 +1,89 @@
1
+ import { z } from 'zod'
2
+
3
+ import { googleBase, robotBase, robotUse } from './_instructions-primitives.ts'
4
+ import type { RobotMeta } from './_instructions-primitives.ts'
5
+
6
+ export const meta: RobotMeta = {
7
+ allowed_for_url_transform: true,
8
+ bytescount: 6,
9
+ discount_factor: 0.15000150001500018,
10
+ discount_pct: 84.99984999849998,
11
+ example_code: {
12
+ steps: {
13
+ exported: {
14
+ robot: '/google/store',
15
+ use: ':original',
16
+ credentials: 'YOUR_GOOGLE_CREDENTIALS',
17
+ path: 'my_target_folder/${unique_prefix}/${file.url_name}',
18
+ },
19
+ },
20
+ },
21
+ example_code_description: 'Export uploaded files to `my_target_folder` on Google Storage:',
22
+ has_small_icon: true,
23
+ minimum_charge: 0,
24
+ output_factor: 1,
25
+ override_lvl1: 'File Exporting',
26
+ purpose_sentence: 'exports encoding results to Google Storage',
27
+ purpose_verb: 'export',
28
+ purpose_word: 'Google Storage',
29
+ purpose_words: 'Export files to Google Storage',
30
+ service_slug: 'file-exporting',
31
+ slot_count: 10,
32
+ title: 'Export files to Google Storage',
33
+ typical_file_size_mb: 1.2,
34
+ typical_file_type: 'file',
35
+ }
36
+
37
+ export const robotGoogleStoreInstructionsSchema = robotBase
38
+ .merge(robotUse)
39
+ .merge(googleBase)
40
+ .extend({
41
+ robot: z.literal('/google/store').describe(`
42
+ The URL to the exported file in your Google bucket will be presented in the Transloadit <dfn>Assembly Status</dfn> JSON. This <dfn>Robot</dfn> can also be used to export encoded files to Google's Firebase as demonstrated in [this blogpost](/blog/2018/12/2h-youtube-clone/).
43
+ `),
44
+ result: z
45
+ .boolean()
46
+ .optional()
47
+ .describe(`Whether the results of this Step should be present in the Assembly Status JSON`),
48
+ credentials: z.string().describe(`
49
+ Create a new [Google service account](https://cloud.google.com/storage/docs/authentication). Set its role to "Storage Object Creator". Choose "JSON" for the key file format and download it to your computer. You will need to upload this file when creating your <dfn>Template Credentials</dfn>.
50
+
51
+ Go back to your Google credentials project and enable the "Google Cloud Storage JSON API" for it. Wait around ten minutes for the action to propagate through the Google network. Grab the project ID from the dropdown menu in the header bar on the Google site. You will also need it later on.
52
+
53
+ Now you can set up the \`storage.objects.create\` and \`storage.objects.delete\` permissions. The latter is optional and only required if you intend to overwrite existing paths.
54
+
55
+ To do this from the Google Cloud console, navigate to "IAM &amp; Admin" and select "Roles". From here, select "+CREATE ROLE", enter a name, set the role launch stage as general availability and set the permissions stated above.
56
+
57
+ Next, relocate to your storage browser and select the ellipsis on your bucket to edit bucket permissions. From here, select "ADD MEMBER", enter your service account as a new member and select your newly created role.
58
+
59
+ Then, create your associated [Template Credentials](/c/template-credentials/) in your Transloadit account and use the name of your <dfn>Template Credentials</dfn> as this parameter's value.
60
+ `),
61
+ path: z.string().default('${unique_prefix}/${file.url_name}').describe(`
62
+ The path at which the file is to be stored. This may include any available [Assembly Variables](/docs/topics/assembly-instructions/#assembly-variables).
63
+ `),
64
+ acl: z
65
+ .enum([
66
+ 'authenticated-read',
67
+ 'bucket-owner-full-control',
68
+ 'private',
69
+ 'project-private',
70
+ 'public-read',
71
+ ])
72
+ .nullable()
73
+ .default('public-read').describe(`
74
+ The permissions used for this file.
75
+ `),
76
+ cache_control: z.string().optional().describe(`
77
+ The \`Cache-Control\` header determines how long browsers are allowed to cache your object for. Values specified with this parameter will be added to the object's metadata under the \`Cache-Control\` header. For more information on valid values, take a look at the [official Google documentation](https://cloud.google.com/storage/docs/metadata#cache-control).
78
+ `),
79
+ url_template: z.string().default('https://{HOST}/{PATH}').describe(`
80
+ The URL of the file in the result JSON. This may include any of the following supported [Assembly variables](/docs/topics/assembly-instructions/#assembly-variables).
81
+ `),
82
+ ssl_url_template: z.string().default('https://{HOST}/{PATH}').describe(`
83
+ The SSL URL of the file in the result JSON. The following [Assembly variables](/docs/topics/assembly-instructions/#assembly-variables) are supported.
84
+ `),
85
+ })
86
+ .strict()
87
+
88
+ export type RobotGoogleStoreInstructions = z.infer<typeof robotGoogleStoreInstructionsSchema>
89
+ export type RobotGoogleStoreInstructionsInput = z.input<typeof robotGoogleStoreInstructionsSchema>
@@ -0,0 +1,83 @@
1
+ import { z } from 'zod'
2
+
3
+ import { robotBase, robotUse } from './_instructions-primitives.ts'
4
+ import type { RobotMeta } from './_instructions-primitives.ts'
5
+
6
+ export const meta: RobotMeta = {
7
+ allowed_for_url_transform: true,
8
+ bytescount: 1,
9
+ discount_factor: 1,
10
+ discount_pct: 0,
11
+ docs_redirect_from: ['/docs/taking-screenshots-of-websites/'],
12
+ example_code: {
13
+ steps: {
14
+ captured: {
15
+ robot: '/html/convert',
16
+ url: 'https://transloadit.com',
17
+ },
18
+ },
19
+ },
20
+ example_code_description: 'Take a full screenshot of the Transloadit homepage:',
21
+ extended_description: `
22
+ **Warning:** A validation error will occur if neither an HTML file is uploaded nor a URL parameter is given. [{.alert .alert-warning}]
23
+
24
+ **Note:** Any files imported within the HTML page will be included in the cost. [{.alert .alert-note}]
25
+ `,
26
+ minimum_charge: 1048576,
27
+ output_factor: 0.5,
28
+ override_lvl1: 'Document Processing',
29
+ purpose_sentence: 'takes screenshots of web pages or uploaded HTML pages',
30
+ purpose_verb: 'take',
31
+ purpose_word: 'take screenshots of a webpage',
32
+ purpose_words: 'Take screenshots of webpages or HTML files',
33
+ service_slug: 'document-processing',
34
+ slot_count: 10,
35
+ title: 'Take screenshots of webpages or uploaded HTML files',
36
+ typical_file_size_mb: 0.6,
37
+ typical_file_type: 'webpage',
38
+ }
39
+
40
+ export const robotHtmlConvertInstructionsSchema = robotBase
41
+ .merge(robotUse)
42
+ .extend({
43
+ robot: z.literal('/html/convert').describe(`
44
+ A URL can be provided instead of an input HTML file, to capture a screenshot from the website referenced by the URL.
45
+
46
+ Use [🤖/image/resize](/docs/transcoding/image-manipulation/image-resize/) to resize or crop the screenshot as needed.
47
+ `),
48
+ url: z.string().nullable().default(null).describe(`
49
+ The URL of the web page to be converted. Optional, as you can also upload/import HTML files and pass it to this <dfn>Robot</dfn>.
50
+ `),
51
+ format: z.enum(['jpeg', 'jpg', 'pdf', 'png']).default('png').describe(`
52
+ The format of the resulting image.
53
+ `),
54
+ fullpage: z.boolean().default(true).describe(`
55
+ Determines if a screenshot of the full page should be taken or not.
56
+
57
+ If set to \`true\`, the \`height\` parameter will not have any effect, as heights of websites vary. You can control the size of the resulting image somewhat, though, by setting the \`width\` parameter.
58
+
59
+ If set to \`false\`, an image will be cropped from the top of the webpage according to your \`width\` and \`height\` parameters.
60
+ `),
61
+ omit_background: z.boolean().default(false).describe(`
62
+ Determines whether to preserve a transparent background in HTML pages. Useful if you're generating artwork in HTML that you want to overlay on e.g. a video.
63
+
64
+ The default of \`false\` fills transparent areas with a white background, for easier reading/printing.
65
+
66
+ This parameter is only used when \`format\` is not \`pdf\`.
67
+ `),
68
+ width: z.number().int().min(1).default(1024).describe(`
69
+ The screen width that will be used, in pixels. Change this to change the dimensions of the resulting image.
70
+ `),
71
+ height: z.number().int().min(1).optional().describe(`
72
+ The screen height that will be used, in pixels. By default this equals the length of the web page in pixels if \`fullpage\` is set to \`true\`. If \`fullpage\` is set to \`false\`, the height parameter takes effect and defaults to the value \`768\`.
73
+ `),
74
+ delay: z.number().int().min(0).default(0).describe(`
75
+ The delay (in milliseconds) applied to allow the page and all of its JavaScript to render before taking the screenshot.
76
+ `),
77
+ headers: z.record(z.string()).optional().describe(`
78
+ An object containing optional headers that will be passed along with the original request to the website. For example, this parameter can be used to pass along an authorization token along with the request.
79
+ `),
80
+ })
81
+ .strict()
82
+
83
+ export type RobotHtmlConvertInstructions = z.infer<typeof robotHtmlConvertInstructionsSchema>
@@ -0,0 +1,79 @@
1
+ import { z } from 'zod'
2
+
3
+ import { robotImport, robotBase } from './_instructions-primitives.ts'
4
+ import type { RobotMeta } from './_instructions-primitives.ts'
5
+
6
+ export const meta: RobotMeta = {
7
+ allowed_for_url_transform: true,
8
+ bytescount: 10,
9
+ discount_factor: 0.1,
10
+ discount_pct: 90,
11
+ docs_redirect_from: ['/docs/import-files-over-http/'],
12
+ example_code: {
13
+ steps: {
14
+ imported: {
15
+ robot: '/http/import',
16
+ url: 'https://demos.transloadit.com/inputs/chameleon.jpg',
17
+ },
18
+ },
19
+ },
20
+ example_code_description: 'Import an image from a specific URL:',
21
+ minimum_charge: 0,
22
+ output_factor: 1,
23
+ override_lvl1: 'File Importing',
24
+ purpose_sentence: 'imports any file that is publicly available via a web URL into Transloadit',
25
+ purpose_verb: 'import',
26
+ purpose_word: 'Webservers',
27
+ purpose_words: 'Import files from web servers',
28
+ service_slug: 'file-importing',
29
+ slot_count: 10,
30
+ title: 'Import files from web servers',
31
+ typical_file_size_mb: 1.2,
32
+ typical_file_type: 'file',
33
+ }
34
+
35
+ export const robotHttpImportInstructionsSchema = robotBase
36
+ .merge(robotImport)
37
+ .extend({
38
+ robot: z.literal('/http/import').describe(`
39
+ The result of this <dfn>Robot</dfn> will carry a field \`import_url\` in their metadata, which references the URL from which they were imported. Further conversion results that use this file will also carry this \`import_url\` field. This allows you to to match conversion results with the original import URL that you used.
40
+
41
+ This <dfn>Robot</dfn> knows to interpret links to files on these services:
42
+
43
+ - Dropbox
44
+ - Google Drive
45
+ - Google Docs
46
+ - OneDrive
47
+
48
+ Instead of downloading the HTML page previewing the file, the actual file itself will be imported.
49
+ `),
50
+ url: z.union([z.string().url(), z.array(z.string().url())]).describe(`
51
+ The URL from which the file to be imported can be retrieved.
52
+
53
+ You can also specify an array of URLs or a string of \`|\` delimited URLs to import several files at once. Please also check the \`url_delimiter\` parameter for that.
54
+ `),
55
+ url_delimiter: z.string().default('|').describe(`
56
+ Provides the delimiter that is used to split the URLs in your \`url\` parameter value.
57
+ `),
58
+ headers: z.array(z.string()).default([]).describe(`
59
+ Custom headers to be sent for file import.
60
+
61
+ This is an empty array by default, such that no additional headers except the necessary ones (e.g. Host) are sent.
62
+ `),
63
+ force_name: z
64
+ .union([z.string(), z.array(z.string())])
65
+ .nullable()
66
+ .default(null).describe(`
67
+ Custom name for the imported file(s). Defaults to \`null\`, which means the file names are derived from the supplied URL(s).
68
+ `),
69
+ import_on_errors: z.array(z.string()).default([]).describe(`
70
+ Setting this to \`"meta"\` will still import the file on metadata extraction errors. \`ignore_errors\` is similar, it also ignores the error and makes sure the Robot doesn't stop, but it doesn't import the file.
71
+ `),
72
+ fail_fast: z.boolean().default(false).describe(`
73
+ Disable the internal retry mechanism, and fail immediately if a resource can't be imported. This can be useful for performance critical applications.
74
+ `),
75
+ })
76
+ .strict()
77
+
78
+ export type RobotHttpImportInstructions = z.infer<typeof robotHttpImportInstructionsSchema>
79
+ export type RobotHttpImportInstructionsInput = z.input<typeof robotHttpImportInstructionsSchema>
@@ -0,0 +1,74 @@
1
+ import { z } from 'zod'
2
+
3
+ import {
4
+ aiProviderSchema,
5
+ granularitySchema,
6
+ robotBase,
7
+ robotUse,
8
+ } from './_instructions-primitives.ts'
9
+ import type { RobotMeta } from './_instructions-primitives.ts'
10
+
11
+ export const meta: RobotMeta = {
12
+ allowed_for_url_transform: true,
13
+ bytescount: 1,
14
+ discount_factor: 1,
15
+ discount_pct: 0,
16
+ example_code: {
17
+ steps: {
18
+ described: {
19
+ robot: '/image/describe',
20
+ use: ':original',
21
+ provider: 'aws',
22
+ },
23
+ },
24
+ },
25
+ example_code_description:
26
+ 'Recognize objects in an uploaded image and store the labels in a JSON file:',
27
+ extended_description: `
28
+ **Warning:** Transloadit aims to be deterministic, but this <dfn>Robot</dfn> uses third-party AI services. The providers (AWS, GCP) will evolve their models over time, giving different responses for the same input images. Avoid relying on exact responses in your tests and application. [{.alert .alert-warning}]
29
+ `,
30
+ minimum_charge: 1572864,
31
+ output_factor: 0.05,
32
+ override_lvl1: 'Artificial Intelligence',
33
+ purpose_sentence: 'recognizes objects in images and returns them as English words',
34
+ purpose_verb: 'recognize',
35
+ purpose_word: 'recognize objects',
36
+ purpose_words: 'Recognize objects in images',
37
+ service_slug: 'artificial-intelligence',
38
+ slot_count: 10,
39
+ title: 'Recognize objects in images',
40
+ typical_file_size_mb: 0.8,
41
+ typical_file_type: 'image',
42
+ }
43
+
44
+ export const robotImageDescribeInstructionsSchema = robotBase
45
+ .merge(robotUse)
46
+ .extend({
47
+ robot: z.literal('/image/describe').describe(`
48
+ You can use the labels that we return in your application to automatically classify images. You can also pass the labels down to other <dfn>Robots</dfn> to filter images that contain (or do not contain) certain content.
49
+ `),
50
+ provider: aiProviderSchema.describe(`
51
+ Which AI provider to leverage.
52
+
53
+ Transloadit outsources this task and abstracts the interface so you can expect the same data structures, but different latencies and information being returned. Different cloud vendors have different areas they shine in, and we recommend to try out and see what yields the best results for your use case.
54
+ `),
55
+ granularity: granularitySchema.describe(`
56
+ Whether to return a full response (\`"full"\`) including confidence percentages for each found label, or just a flat list of labels (\`"list"\`).
57
+ `),
58
+ format: z.enum(['json', 'meta', 'text']).default('json').describe(`
59
+ In what format to return the descriptions.
60
+
61
+ - \`"json"\` returns a JSON file.
62
+ - \`"meta"\` does not return a file, but stores the data inside Transloadit's file object (under \`\${file.meta.descriptions}\`) that's passed around between encoding <dfn>Steps</dfn>, so that you can use the values to burn the data into videos, filter on them, etc.
63
+ `),
64
+ explicit_descriptions: z.boolean().default(false).describe(`
65
+ Whether to return only explicit or only non-explicit descriptions of the provided image. Explicit descriptions include labels for NSFW content (nudity, violence, etc). If set to \`false\`, only non-explicit descriptions (such as human or chair) will be returned. If set to \`true\`, only explicit descriptions will be returned.
66
+
67
+ The possible descriptions depend on the chosen provider. The list of labels from AWS can be found [in their documentation](https://docs.aws.amazon.com/rekognition/latest/dg/moderation.html#moderation-api). GCP labels the image based on five categories, as described [in their documentation](https://cloud.google.com/vision/docs/detecting-safe-search).
68
+
69
+ For an example of how to automatically reject NSFW content and malware, please check out this [blog post](/blog/2022/07/deny-image-uploads/).
70
+ `),
71
+ })
72
+ .strict()
73
+
74
+ export type RobotImageDescribeInstructions = z.infer<typeof robotImageDescribeInstructionsSchema>