@transloadit/node 4.1.3

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 (593) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +701 -0
  3. package/dist/ApiError.d.ts +22 -0
  4. package/dist/ApiError.d.ts.map +1 -0
  5. package/dist/ApiError.js +33 -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 +4 -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 +36 -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 +5 -0
  18. package/dist/PollingTimeoutError.js.map +1 -0
  19. package/dist/Transloadit.d.ts +250 -0
  20. package/dist/Transloadit.d.ts.map +1 -0
  21. package/dist/Transloadit.js +661 -0
  22. package/dist/Transloadit.js.map +1 -0
  23. package/dist/alphalib/lib/nativeGlobby.d.ts +14 -0
  24. package/dist/alphalib/lib/nativeGlobby.d.ts.map +1 -0
  25. package/dist/alphalib/lib/nativeGlobby.js +181 -0
  26. package/dist/alphalib/lib/nativeGlobby.js.map +1 -0
  27. package/dist/alphalib/mcache.d.ts +65 -0
  28. package/dist/alphalib/mcache.d.ts.map +1 -0
  29. package/dist/alphalib/mcache.js +135 -0
  30. package/dist/alphalib/mcache.js.map +1 -0
  31. package/dist/alphalib/tryCatch.d.ts +21 -0
  32. package/dist/alphalib/tryCatch.d.ts.map +1 -0
  33. package/dist/alphalib/tryCatch.js +17 -0
  34. package/dist/alphalib/tryCatch.js.map +1 -0
  35. package/dist/alphalib/types/assembliesGet.d.ts +62 -0
  36. package/dist/alphalib/types/assembliesGet.d.ts.map +1 -0
  37. package/dist/alphalib/types/assembliesGet.js +33 -0
  38. package/dist/alphalib/types/assembliesGet.js.map +1 -0
  39. package/dist/alphalib/types/assemblyReplay.d.ts +7858 -0
  40. package/dist/alphalib/types/assemblyReplay.d.ts.map +1 -0
  41. package/dist/alphalib/types/assemblyReplay.js +15 -0
  42. package/dist/alphalib/types/assemblyReplay.js.map +1 -0
  43. package/dist/alphalib/types/assemblyReplayNotification.d.ts +7849 -0
  44. package/dist/alphalib/types/assemblyReplayNotification.d.ts.map +1 -0
  45. package/dist/alphalib/types/assemblyReplayNotification.js +13 -0
  46. package/dist/alphalib/types/assemblyReplayNotification.js.map +1 -0
  47. package/dist/alphalib/types/assemblyStatus.d.ts +71084 -0
  48. package/dist/alphalib/types/assemblyStatus.d.ts.map +1 -0
  49. package/dist/alphalib/types/assemblyStatus.js +710 -0
  50. package/dist/alphalib/types/assemblyStatus.js.map +1 -0
  51. package/dist/alphalib/types/bill.d.ts +44 -0
  52. package/dist/alphalib/types/bill.d.ts.map +1 -0
  53. package/dist/alphalib/types/bill.js +8 -0
  54. package/dist/alphalib/types/bill.js.map +1 -0
  55. package/dist/alphalib/types/robots/_index.d.ts +76306 -0
  56. package/dist/alphalib/types/robots/_index.d.ts.map +1 -0
  57. package/dist/alphalib/types/robots/_index.js +354 -0
  58. package/dist/alphalib/types/robots/_index.js.map +1 -0
  59. package/dist/alphalib/types/robots/_instructions-primitives.d.ts +3533 -0
  60. package/dist/alphalib/types/robots/_instructions-primitives.d.ts.map +1 -0
  61. package/dist/alphalib/types/robots/_instructions-primitives.js +1491 -0
  62. package/dist/alphalib/types/robots/_instructions-primitives.js.map +1 -0
  63. package/dist/alphalib/types/robots/ai-chat.d.ts +2096 -0
  64. package/dist/alphalib/types/robots/ai-chat.d.ts.map +1 -0
  65. package/dist/alphalib/types/robots/ai-chat.js +223 -0
  66. package/dist/alphalib/types/robots/ai-chat.js.map +1 -0
  67. package/dist/alphalib/types/robots/assembly-savejson.d.ts +52 -0
  68. package/dist/alphalib/types/robots/assembly-savejson.d.ts.map +1 -0
  69. package/dist/alphalib/types/robots/assembly-savejson.js +22 -0
  70. package/dist/alphalib/types/robots/assembly-savejson.js.map +1 -0
  71. package/dist/alphalib/types/robots/audio-artwork.d.ts +2867 -0
  72. package/dist/alphalib/types/robots/audio-artwork.d.ts.map +1 -0
  73. package/dist/alphalib/types/robots/audio-artwork.js +73 -0
  74. package/dist/alphalib/types/robots/audio-artwork.js.map +1 -0
  75. package/dist/alphalib/types/robots/audio-concat.d.ts +2916 -0
  76. package/dist/alphalib/types/robots/audio-concat.d.ts.map +1 -0
  77. package/dist/alphalib/types/robots/audio-concat.js +106 -0
  78. package/dist/alphalib/types/robots/audio-concat.js.map +1 -0
  79. package/dist/alphalib/types/robots/audio-encode.d.ts +2864 -0
  80. package/dist/alphalib/types/robots/audio-encode.d.ts.map +1 -0
  81. package/dist/alphalib/types/robots/audio-encode.js +67 -0
  82. package/dist/alphalib/types/robots/audio-encode.js.map +1 -0
  83. package/dist/alphalib/types/robots/audio-loop.d.ts +2879 -0
  84. package/dist/alphalib/types/robots/audio-loop.d.ts.map +1 -0
  85. package/dist/alphalib/types/robots/audio-loop.js +67 -0
  86. package/dist/alphalib/types/robots/audio-loop.js.map +1 -0
  87. package/dist/alphalib/types/robots/audio-merge.d.ts +2931 -0
  88. package/dist/alphalib/types/robots/audio-merge.d.ts.map +1 -0
  89. package/dist/alphalib/types/robots/audio-merge.js +101 -0
  90. package/dist/alphalib/types/robots/audio-merge.js.map +1 -0
  91. package/dist/alphalib/types/robots/audio-waveform.d.ts +3131 -0
  92. package/dist/alphalib/types/robots/audio-waveform.d.ts.map +1 -0
  93. package/dist/alphalib/types/robots/audio-waveform.js +238 -0
  94. package/dist/alphalib/types/robots/audio-waveform.js.map +1 -0
  95. package/dist/alphalib/types/robots/azure-import.d.ts +210 -0
  96. package/dist/alphalib/types/robots/azure-import.d.ts.map +1 -0
  97. package/dist/alphalib/types/robots/azure-import.js +73 -0
  98. package/dist/alphalib/types/robots/azure-import.js.map +1 -0
  99. package/dist/alphalib/types/robots/azure-store.d.ts +562 -0
  100. package/dist/alphalib/types/robots/azure-store.d.ts.map +1 -0
  101. package/dist/alphalib/types/robots/azure-store.js +115 -0
  102. package/dist/alphalib/types/robots/azure-store.js.map +1 -0
  103. package/dist/alphalib/types/robots/backblaze-import.d.ts +210 -0
  104. package/dist/alphalib/types/robots/backblaze-import.d.ts.map +1 -0
  105. package/dist/alphalib/types/robots/backblaze-import.js +81 -0
  106. package/dist/alphalib/types/robots/backblaze-import.js.map +1 -0
  107. package/dist/alphalib/types/robots/backblaze-store.d.ts +478 -0
  108. package/dist/alphalib/types/robots/backblaze-store.d.ts.map +1 -0
  109. package/dist/alphalib/types/robots/backblaze-store.js +76 -0
  110. package/dist/alphalib/types/robots/backblaze-store.js.map +1 -0
  111. package/dist/alphalib/types/robots/cloudfiles-import.d.ts +234 -0
  112. package/dist/alphalib/types/robots/cloudfiles-import.d.ts.map +1 -0
  113. package/dist/alphalib/types/robots/cloudfiles-import.js +80 -0
  114. package/dist/alphalib/types/robots/cloudfiles-import.js.map +1 -0
  115. package/dist/alphalib/types/robots/cloudfiles-store.d.ts +490 -0
  116. package/dist/alphalib/types/robots/cloudfiles-store.d.ts.map +1 -0
  117. package/dist/alphalib/types/robots/cloudfiles-store.js +70 -0
  118. package/dist/alphalib/types/robots/cloudfiles-store.js.map +1 -0
  119. package/dist/alphalib/types/robots/cloudflare-import.d.ts +234 -0
  120. package/dist/alphalib/types/robots/cloudflare-import.d.ts.map +1 -0
  121. package/dist/alphalib/types/robots/cloudflare-import.js +81 -0
  122. package/dist/alphalib/types/robots/cloudflare-import.js.map +1 -0
  123. package/dist/alphalib/types/robots/cloudflare-store.d.ts +514 -0
  124. package/dist/alphalib/types/robots/cloudflare-store.d.ts.map +1 -0
  125. package/dist/alphalib/types/robots/cloudflare-store.js +86 -0
  126. package/dist/alphalib/types/robots/cloudflare-store.js.map +1 -0
  127. package/dist/alphalib/types/robots/digitalocean-import.d.ts +234 -0
  128. package/dist/alphalib/types/robots/digitalocean-import.d.ts.map +1 -0
  129. package/dist/alphalib/types/robots/digitalocean-import.js +78 -0
  130. package/dist/alphalib/types/robots/digitalocean-import.js.map +1 -0
  131. package/dist/alphalib/types/robots/digitalocean-store.d.ts +526 -0
  132. package/dist/alphalib/types/robots/digitalocean-store.d.ts.map +1 -0
  133. package/dist/alphalib/types/robots/digitalocean-store.js +91 -0
  134. package/dist/alphalib/types/robots/digitalocean-store.js.map +1 -0
  135. package/dist/alphalib/types/robots/document-autorotate.d.ts +405 -0
  136. package/dist/alphalib/types/robots/document-autorotate.d.ts.map +1 -0
  137. package/dist/alphalib/types/robots/document-autorotate.js +44 -0
  138. package/dist/alphalib/types/robots/document-autorotate.js.map +1 -0
  139. package/dist/alphalib/types/robots/document-convert.d.ts +513 -0
  140. package/dist/alphalib/types/robots/document-convert.d.ts.map +1 -0
  141. package/dist/alphalib/types/robots/document-convert.js +273 -0
  142. package/dist/alphalib/types/robots/document-convert.js.map +1 -0
  143. package/dist/alphalib/types/robots/document-merge.d.ts +429 -0
  144. package/dist/alphalib/types/robots/document-merge.d.ts.map +1 -0
  145. package/dist/alphalib/types/robots/document-merge.js +86 -0
  146. package/dist/alphalib/types/robots/document-merge.js.map +1 -0
  147. package/dist/alphalib/types/robots/document-ocr.d.ts +441 -0
  148. package/dist/alphalib/types/robots/document-ocr.d.ts.map +1 -0
  149. package/dist/alphalib/types/robots/document-ocr.js +86 -0
  150. package/dist/alphalib/types/robots/document-ocr.js.map +1 -0
  151. package/dist/alphalib/types/robots/document-split.d.ts +417 -0
  152. package/dist/alphalib/types/robots/document-split.d.ts.map +1 -0
  153. package/dist/alphalib/types/robots/document-split.js +48 -0
  154. package/dist/alphalib/types/robots/document-split.js.map +1 -0
  155. package/dist/alphalib/types/robots/document-thumbs.d.ts +592 -0
  156. package/dist/alphalib/types/robots/document-thumbs.d.ts.map +1 -0
  157. package/dist/alphalib/types/robots/document-thumbs.js +196 -0
  158. package/dist/alphalib/types/robots/document-thumbs.js.map +1 -0
  159. package/dist/alphalib/types/robots/dropbox-import.d.ts +144 -0
  160. package/dist/alphalib/types/robots/dropbox-import.d.ts.map +1 -0
  161. package/dist/alphalib/types/robots/dropbox-import.js +65 -0
  162. package/dist/alphalib/types/robots/dropbox-import.js.map +1 -0
  163. package/dist/alphalib/types/robots/dropbox-store.d.ts +449 -0
  164. package/dist/alphalib/types/robots/dropbox-store.d.ts.map +1 -0
  165. package/dist/alphalib/types/robots/dropbox-store.js +68 -0
  166. package/dist/alphalib/types/robots/dropbox-store.js.map +1 -0
  167. package/dist/alphalib/types/robots/edgly-deliver.d.ts +100 -0
  168. package/dist/alphalib/types/robots/edgly-deliver.d.ts.map +1 -0
  169. package/dist/alphalib/types/robots/edgly-deliver.js +46 -0
  170. package/dist/alphalib/types/robots/edgly-deliver.js.map +1 -0
  171. package/dist/alphalib/types/robots/file-compress.d.ts +477 -0
  172. package/dist/alphalib/types/robots/file-compress.d.ts.map +1 -0
  173. package/dist/alphalib/types/robots/file-compress.js +139 -0
  174. package/dist/alphalib/types/robots/file-compress.js.map +1 -0
  175. package/dist/alphalib/types/robots/file-decompress.d.ts +404 -0
  176. package/dist/alphalib/types/robots/file-decompress.d.ts.map +1 -0
  177. package/dist/alphalib/types/robots/file-decompress.js +94 -0
  178. package/dist/alphalib/types/robots/file-decompress.js.map +1 -0
  179. package/dist/alphalib/types/robots/file-filter.d.ts +465 -0
  180. package/dist/alphalib/types/robots/file-filter.d.ts.map +1 -0
  181. package/dist/alphalib/types/robots/file-filter.js +136 -0
  182. package/dist/alphalib/types/robots/file-filter.js.map +1 -0
  183. package/dist/alphalib/types/robots/file-hash.d.ts +417 -0
  184. package/dist/alphalib/types/robots/file-hash.d.ts.map +1 -0
  185. package/dist/alphalib/types/robots/file-hash.js +59 -0
  186. package/dist/alphalib/types/robots/file-hash.js.map +1 -0
  187. package/dist/alphalib/types/robots/file-preview.d.ts +854 -0
  188. package/dist/alphalib/types/robots/file-preview.d.ts.map +1 -0
  189. package/dist/alphalib/types/robots/file-preview.js +221 -0
  190. package/dist/alphalib/types/robots/file-preview.js.map +1 -0
  191. package/dist/alphalib/types/robots/file-read.d.ts +405 -0
  192. package/dist/alphalib/types/robots/file-read.d.ts.map +1 -0
  193. package/dist/alphalib/types/robots/file-read.js +44 -0
  194. package/dist/alphalib/types/robots/file-read.js.map +1 -0
  195. package/dist/alphalib/types/robots/file-serve.d.ts +418 -0
  196. package/dist/alphalib/types/robots/file-serve.d.ts.map +1 -0
  197. package/dist/alphalib/types/robots/file-serve.js +99 -0
  198. package/dist/alphalib/types/robots/file-serve.js.map +1 -0
  199. package/dist/alphalib/types/robots/file-verify.d.ts +441 -0
  200. package/dist/alphalib/types/robots/file-verify.d.ts.map +1 -0
  201. package/dist/alphalib/types/robots/file-verify.js +73 -0
  202. package/dist/alphalib/types/robots/file-verify.js.map +1 -0
  203. package/dist/alphalib/types/robots/file-virusscan.d.ts +435 -0
  204. package/dist/alphalib/types/robots/file-virusscan.d.ts.map +1 -0
  205. package/dist/alphalib/types/robots/file-virusscan.js +82 -0
  206. package/dist/alphalib/types/robots/file-virusscan.js.map +1 -0
  207. package/dist/alphalib/types/robots/file-watermark.d.ts +417 -0
  208. package/dist/alphalib/types/robots/file-watermark.d.ts.map +1 -0
  209. package/dist/alphalib/types/robots/file-watermark.js +28 -0
  210. package/dist/alphalib/types/robots/file-watermark.js.map +1 -0
  211. package/dist/alphalib/types/robots/ftp-import.d.ts +198 -0
  212. package/dist/alphalib/types/robots/ftp-import.d.ts.map +1 -0
  213. package/dist/alphalib/types/robots/ftp-import.js +60 -0
  214. package/dist/alphalib/types/robots/ftp-import.js.map +1 -0
  215. package/dist/alphalib/types/robots/ftp-store.d.ts +532 -0
  216. package/dist/alphalib/types/robots/ftp-store.d.ts.map +1 -0
  217. package/dist/alphalib/types/robots/ftp-store.js +91 -0
  218. package/dist/alphalib/types/robots/ftp-store.js.map +1 -0
  219. package/dist/alphalib/types/robots/google-import.d.ts +174 -0
  220. package/dist/alphalib/types/robots/google-import.d.ts.map +1 -0
  221. package/dist/alphalib/types/robots/google-import.js +77 -0
  222. package/dist/alphalib/types/robots/google-import.js.map +1 -0
  223. package/dist/alphalib/types/robots/google-store.d.ts +476 -0
  224. package/dist/alphalib/types/robots/google-store.d.ts.map +1 -0
  225. package/dist/alphalib/types/robots/google-store.js +111 -0
  226. package/dist/alphalib/types/robots/google-store.js.map +1 -0
  227. package/dist/alphalib/types/robots/html-convert.d.ts +531 -0
  228. package/dist/alphalib/types/robots/html-convert.d.ts.map +1 -0
  229. package/dist/alphalib/types/robots/html-convert.js +137 -0
  230. package/dist/alphalib/types/robots/html-convert.js.map +1 -0
  231. package/dist/alphalib/types/robots/http-import.d.ts +215 -0
  232. package/dist/alphalib/types/robots/http-import.d.ts.map +1 -0
  233. package/dist/alphalib/types/robots/http-import.js +135 -0
  234. package/dist/alphalib/types/robots/http-import.js.map +1 -0
  235. package/dist/alphalib/types/robots/image-bgremove.d.ts +453 -0
  236. package/dist/alphalib/types/robots/image-bgremove.d.ts.map +1 -0
  237. package/dist/alphalib/types/robots/image-bgremove.js +65 -0
  238. package/dist/alphalib/types/robots/image-bgremove.js.map +1 -0
  239. package/dist/alphalib/types/robots/image-describe.d.ts +453 -0
  240. package/dist/alphalib/types/robots/image-describe.d.ts.map +1 -0
  241. package/dist/alphalib/types/robots/image-describe.js +86 -0
  242. package/dist/alphalib/types/robots/image-describe.js.map +1 -0
  243. package/dist/alphalib/types/robots/image-facedetect.d.ts +477 -0
  244. package/dist/alphalib/types/robots/image-facedetect.d.ts.map +1 -0
  245. package/dist/alphalib/types/robots/image-facedetect.js +151 -0
  246. package/dist/alphalib/types/robots/image-facedetect.js.map +1 -0
  247. package/dist/alphalib/types/robots/image-generate.d.ts +522 -0
  248. package/dist/alphalib/types/robots/image-generate.d.ts.map +1 -0
  249. package/dist/alphalib/types/robots/image-generate.js +64 -0
  250. package/dist/alphalib/types/robots/image-generate.js.map +1 -0
  251. package/dist/alphalib/types/robots/image-merge.d.ts +477 -0
  252. package/dist/alphalib/types/robots/image-merge.d.ts.map +1 -0
  253. package/dist/alphalib/types/robots/image-merge.js +92 -0
  254. package/dist/alphalib/types/robots/image-merge.js.map +1 -0
  255. package/dist/alphalib/types/robots/image-ocr.d.ts +441 -0
  256. package/dist/alphalib/types/robots/image-ocr.d.ts.map +1 -0
  257. package/dist/alphalib/types/robots/image-ocr.js +79 -0
  258. package/dist/alphalib/types/robots/image-ocr.js.map +1 -0
  259. package/dist/alphalib/types/robots/image-optimize.d.ts +453 -0
  260. package/dist/alphalib/types/robots/image-optimize.d.ts.map +1 -0
  261. package/dist/alphalib/types/robots/image-optimize.js +81 -0
  262. package/dist/alphalib/types/robots/image-optimize.js.map +1 -0
  263. package/dist/alphalib/types/robots/image-resize.d.ts +1758 -0
  264. package/dist/alphalib/types/robots/image-resize.d.ts.map +1 -0
  265. package/dist/alphalib/types/robots/image-resize.js +602 -0
  266. package/dist/alphalib/types/robots/image-resize.js.map +1 -0
  267. package/dist/alphalib/types/robots/meta-read.d.ts +98 -0
  268. package/dist/alphalib/types/robots/meta-read.d.ts.map +1 -0
  269. package/dist/alphalib/types/robots/meta-read.js +24 -0
  270. package/dist/alphalib/types/robots/meta-read.js.map +1 -0
  271. package/dist/alphalib/types/robots/meta-write.d.ts +2842 -0
  272. package/dist/alphalib/types/robots/meta-write.d.ts.map +1 -0
  273. package/dist/alphalib/types/robots/meta-write.js +66 -0
  274. package/dist/alphalib/types/robots/meta-write.js.map +1 -0
  275. package/dist/alphalib/types/robots/minio-import.d.ts +234 -0
  276. package/dist/alphalib/types/robots/minio-import.d.ts.map +1 -0
  277. package/dist/alphalib/types/robots/minio-import.js +81 -0
  278. package/dist/alphalib/types/robots/minio-import.js.map +1 -0
  279. package/dist/alphalib/types/robots/minio-store.d.ts +514 -0
  280. package/dist/alphalib/types/robots/minio-store.d.ts.map +1 -0
  281. package/dist/alphalib/types/robots/minio-store.js +87 -0
  282. package/dist/alphalib/types/robots/minio-store.js.map +1 -0
  283. package/dist/alphalib/types/robots/progress-simulate.d.ts +229 -0
  284. package/dist/alphalib/types/robots/progress-simulate.d.ts.map +1 -0
  285. package/dist/alphalib/types/robots/progress-simulate.js +25 -0
  286. package/dist/alphalib/types/robots/progress-simulate.js.map +1 -0
  287. package/dist/alphalib/types/robots/s3-import.d.ts +246 -0
  288. package/dist/alphalib/types/robots/s3-import.d.ts.map +1 -0
  289. package/dist/alphalib/types/robots/s3-import.js +137 -0
  290. package/dist/alphalib/types/robots/s3-import.js.map +1 -0
  291. package/dist/alphalib/types/robots/s3-store.d.ts +593 -0
  292. package/dist/alphalib/types/robots/s3-store.d.ts.map +1 -0
  293. package/dist/alphalib/types/robots/s3-store.js +169 -0
  294. package/dist/alphalib/types/robots/s3-store.js.map +1 -0
  295. package/dist/alphalib/types/robots/script-run.d.ts +423 -0
  296. package/dist/alphalib/types/robots/script-run.d.ts.map +1 -0
  297. package/dist/alphalib/types/robots/script-run.js +95 -0
  298. package/dist/alphalib/types/robots/script-run.js.map +1 -0
  299. package/dist/alphalib/types/robots/sftp-import.d.ts +192 -0
  300. package/dist/alphalib/types/robots/sftp-import.d.ts.map +1 -0
  301. package/dist/alphalib/types/robots/sftp-import.js +62 -0
  302. package/dist/alphalib/types/robots/sftp-import.js.map +1 -0
  303. package/dist/alphalib/types/robots/sftp-store.d.ts +520 -0
  304. package/dist/alphalib/types/robots/sftp-store.d.ts.map +1 -0
  305. package/dist/alphalib/types/robots/sftp-store.js +83 -0
  306. package/dist/alphalib/types/robots/sftp-store.js.map +1 -0
  307. package/dist/alphalib/types/robots/speech-transcribe.d.ts +465 -0
  308. package/dist/alphalib/types/robots/speech-transcribe.d.ts.map +1 -0
  309. package/dist/alphalib/types/robots/speech-transcribe.js +103 -0
  310. package/dist/alphalib/types/robots/speech-transcribe.js.map +1 -0
  311. package/dist/alphalib/types/robots/supabase-import.d.ts +246 -0
  312. package/dist/alphalib/types/robots/supabase-import.d.ts.map +1 -0
  313. package/dist/alphalib/types/robots/supabase-import.js +83 -0
  314. package/dist/alphalib/types/robots/supabase-import.js.map +1 -0
  315. package/dist/alphalib/types/robots/supabase-store.d.ts +514 -0
  316. package/dist/alphalib/types/robots/supabase-store.d.ts.map +1 -0
  317. package/dist/alphalib/types/robots/supabase-store.js +77 -0
  318. package/dist/alphalib/types/robots/supabase-store.js.map +1 -0
  319. package/dist/alphalib/types/robots/swift-import.d.ts +246 -0
  320. package/dist/alphalib/types/robots/swift-import.d.ts.map +1 -0
  321. package/dist/alphalib/types/robots/swift-import.js +81 -0
  322. package/dist/alphalib/types/robots/swift-import.js.map +1 -0
  323. package/dist/alphalib/types/robots/swift-store.d.ts +526 -0
  324. package/dist/alphalib/types/robots/swift-store.d.ts.map +1 -0
  325. package/dist/alphalib/types/robots/swift-store.js +84 -0
  326. package/dist/alphalib/types/robots/swift-store.js.map +1 -0
  327. package/dist/alphalib/types/robots/text-speak.d.ts +465 -0
  328. package/dist/alphalib/types/robots/text-speak.d.ts.map +1 -0
  329. package/dist/alphalib/types/robots/text-speak.js +119 -0
  330. package/dist/alphalib/types/robots/text-speak.js.map +1 -0
  331. package/dist/alphalib/types/robots/text-translate.d.ts +441 -0
  332. package/dist/alphalib/types/robots/text-translate.d.ts.map +1 -0
  333. package/dist/alphalib/types/robots/text-translate.js +211 -0
  334. package/dist/alphalib/types/robots/text-translate.js.map +1 -0
  335. package/dist/alphalib/types/robots/tigris-import.d.ts +244 -0
  336. package/dist/alphalib/types/robots/tigris-import.d.ts.map +1 -0
  337. package/dist/alphalib/types/robots/tigris-import.js +85 -0
  338. package/dist/alphalib/types/robots/tigris-import.js.map +1 -0
  339. package/dist/alphalib/types/robots/tigris-store.d.ts +524 -0
  340. package/dist/alphalib/types/robots/tigris-store.d.ts.map +1 -0
  341. package/dist/alphalib/types/robots/tigris-store.js +91 -0
  342. package/dist/alphalib/types/robots/tigris-store.js.map +1 -0
  343. package/dist/alphalib/types/robots/tlcdn-deliver.d.ts +100 -0
  344. package/dist/alphalib/types/robots/tlcdn-deliver.d.ts.map +1 -0
  345. package/dist/alphalib/types/robots/tlcdn-deliver.js +46 -0
  346. package/dist/alphalib/types/robots/tlcdn-deliver.js.map +1 -0
  347. package/dist/alphalib/types/robots/tus-store.d.ts +477 -0
  348. package/dist/alphalib/types/robots/tus-store.d.ts.map +1 -0
  349. package/dist/alphalib/types/robots/tus-store.js +102 -0
  350. package/dist/alphalib/types/robots/tus-store.js.map +1 -0
  351. package/dist/alphalib/types/robots/upload-handle.d.ts +100 -0
  352. package/dist/alphalib/types/robots/upload-handle.d.ts.map +1 -0
  353. package/dist/alphalib/types/robots/upload-handle.js +66 -0
  354. package/dist/alphalib/types/robots/upload-handle.js.map +1 -0
  355. package/dist/alphalib/types/robots/video-adaptive.d.ts +2915 -0
  356. package/dist/alphalib/types/robots/video-adaptive.d.ts.map +1 -0
  357. package/dist/alphalib/types/robots/video-adaptive.js +144 -0
  358. package/dist/alphalib/types/robots/video-adaptive.js.map +1 -0
  359. package/dist/alphalib/types/robots/video-concat.d.ts +2891 -0
  360. package/dist/alphalib/types/robots/video-concat.d.ts.map +1 -0
  361. package/dist/alphalib/types/robots/video-concat.js +96 -0
  362. package/dist/alphalib/types/robots/video-concat.js.map +1 -0
  363. package/dist/alphalib/types/robots/video-encode.d.ts +3280 -0
  364. package/dist/alphalib/types/robots/video-encode.d.ts.map +1 -0
  365. package/dist/alphalib/types/robots/video-encode.js +107 -0
  366. package/dist/alphalib/types/robots/video-encode.js.map +1 -0
  367. package/dist/alphalib/types/robots/video-merge.d.ts +2987 -0
  368. package/dist/alphalib/types/robots/video-merge.d.ts.map +1 -0
  369. package/dist/alphalib/types/robots/video-merge.js +102 -0
  370. package/dist/alphalib/types/robots/video-merge.js.map +1 -0
  371. package/dist/alphalib/types/robots/video-ondemand.d.ts +4553 -0
  372. package/dist/alphalib/types/robots/video-ondemand.d.ts.map +1 -0
  373. package/dist/alphalib/types/robots/video-ondemand.js +112 -0
  374. package/dist/alphalib/types/robots/video-ondemand.js.map +1 -0
  375. package/dist/alphalib/types/robots/video-subtitle.d.ts +2975 -0
  376. package/dist/alphalib/types/robots/video-subtitle.d.ts.map +1 -0
  377. package/dist/alphalib/types/robots/video-subtitle.js +122 -0
  378. package/dist/alphalib/types/robots/video-subtitle.js.map +1 -0
  379. package/dist/alphalib/types/robots/video-thumbs.d.ts +2938 -0
  380. package/dist/alphalib/types/robots/video-thumbs.d.ts.map +1 -0
  381. package/dist/alphalib/types/robots/video-thumbs.js +122 -0
  382. package/dist/alphalib/types/robots/video-thumbs.js.map +1 -0
  383. package/dist/alphalib/types/robots/vimeo-import.d.ts +189 -0
  384. package/dist/alphalib/types/robots/vimeo-import.d.ts.map +1 -0
  385. package/dist/alphalib/types/robots/vimeo-import.js +92 -0
  386. package/dist/alphalib/types/robots/vimeo-import.js.map +1 -0
  387. package/dist/alphalib/types/robots/vimeo-store.d.ts +520 -0
  388. package/dist/alphalib/types/robots/vimeo-store.d.ts.map +1 -0
  389. package/dist/alphalib/types/robots/vimeo-store.js +115 -0
  390. package/dist/alphalib/types/robots/vimeo-store.js.map +1 -0
  391. package/dist/alphalib/types/robots/wasabi-import.d.ts +244 -0
  392. package/dist/alphalib/types/robots/wasabi-import.d.ts.map +1 -0
  393. package/dist/alphalib/types/robots/wasabi-import.js +85 -0
  394. package/dist/alphalib/types/robots/wasabi-import.js.map +1 -0
  395. package/dist/alphalib/types/robots/wasabi-store.d.ts +526 -0
  396. package/dist/alphalib/types/robots/wasabi-store.d.ts.map +1 -0
  397. package/dist/alphalib/types/robots/wasabi-store.js +85 -0
  398. package/dist/alphalib/types/robots/wasabi-store.js.map +1 -0
  399. package/dist/alphalib/types/robots/youtube-store.d.ts +477 -0
  400. package/dist/alphalib/types/robots/youtube-store.d.ts.map +1 -0
  401. package/dist/alphalib/types/robots/youtube-store.js +122 -0
  402. package/dist/alphalib/types/robots/youtube-store.js.map +1 -0
  403. package/dist/alphalib/types/stackVersions.d.ts +13 -0
  404. package/dist/alphalib/types/stackVersions.d.ts.map +1 -0
  405. package/dist/alphalib/types/stackVersions.js +13 -0
  406. package/dist/alphalib/types/stackVersions.js.map +1 -0
  407. package/dist/alphalib/types/template.d.ts +131710 -0
  408. package/dist/alphalib/types/template.d.ts.map +1 -0
  409. package/dist/alphalib/types/template.js +218 -0
  410. package/dist/alphalib/types/template.js.map +1 -0
  411. package/dist/alphalib/types/templateCredential.d.ts +95 -0
  412. package/dist/alphalib/types/templateCredential.d.ts.map +1 -0
  413. package/dist/alphalib/types/templateCredential.js +57 -0
  414. package/dist/alphalib/types/templateCredential.js.map +1 -0
  415. package/dist/alphalib/zodParseWithContext.d.ts +17 -0
  416. package/dist/alphalib/zodParseWithContext.d.ts.map +1 -0
  417. package/dist/alphalib/zodParseWithContext.js +248 -0
  418. package/dist/alphalib/zodParseWithContext.js.map +1 -0
  419. package/dist/apiTypes.d.ts +112 -0
  420. package/dist/apiTypes.d.ts.map +1 -0
  421. package/dist/apiTypes.js +3 -0
  422. package/dist/apiTypes.js.map +1 -0
  423. package/dist/cli/OutputCtl.d.ts +47 -0
  424. package/dist/cli/OutputCtl.d.ts.map +1 -0
  425. package/dist/cli/OutputCtl.js +85 -0
  426. package/dist/cli/OutputCtl.js.map +1 -0
  427. package/dist/cli/commands/BaseCommand.d.ts +24 -0
  428. package/dist/cli/commands/BaseCommand.d.ts.map +1 -0
  429. package/dist/cli/commands/BaseCommand.js +52 -0
  430. package/dist/cli/commands/BaseCommand.js.map +1 -0
  431. package/dist/cli/commands/assemblies.d.ts +93 -0
  432. package/dist/cli/commands/assemblies.d.ts.map +1 -0
  433. package/dist/cli/commands/assemblies.js +1021 -0
  434. package/dist/cli/commands/assemblies.js.map +1 -0
  435. package/dist/cli/commands/auth.d.ts +28 -0
  436. package/dist/cli/commands/auth.d.ts.map +1 -0
  437. package/dist/cli/commands/auth.js +280 -0
  438. package/dist/cli/commands/auth.js.map +1 -0
  439. package/dist/cli/commands/bills.d.ts +14 -0
  440. package/dist/cli/commands/bills.d.ts.map +1 -0
  441. package/dist/cli/commands/bills.js +69 -0
  442. package/dist/cli/commands/bills.js.map +1 -0
  443. package/dist/cli/commands/index.d.ts +3 -0
  444. package/dist/cli/commands/index.d.ts.map +1 -0
  445. package/dist/cli/commands/index.js +39 -0
  446. package/dist/cli/commands/index.js.map +1 -0
  447. package/dist/cli/commands/notifications.d.ts +9 -0
  448. package/dist/cli/commands/notifications.d.ts.map +1 -0
  449. package/dist/cli/commands/notifications.js +44 -0
  450. package/dist/cli/commands/notifications.js.map +1 -0
  451. package/dist/cli/commands/templates.d.ts +73 -0
  452. package/dist/cli/commands/templates.d.ts.map +1 -0
  453. package/dist/cli/commands/templates.js +428 -0
  454. package/dist/cli/commands/templates.js.map +1 -0
  455. package/dist/cli/helpers.d.ts +13 -0
  456. package/dist/cli/helpers.d.ts.map +1 -0
  457. package/dist/cli/helpers.js +39 -0
  458. package/dist/cli/helpers.js.map +1 -0
  459. package/dist/cli/template-last-modified.d.ts +10 -0
  460. package/dist/cli/template-last-modified.d.ts.map +1 -0
  461. package/dist/cli/template-last-modified.js +134 -0
  462. package/dist/cli/template-last-modified.js.map +1 -0
  463. package/dist/cli/types.d.ts +78 -0
  464. package/dist/cli/types.d.ts.map +1 -0
  465. package/dist/cli/types.js +49 -0
  466. package/dist/cli/types.js.map +1 -0
  467. package/dist/cli.d.ts +6 -0
  468. package/dist/cli.d.ts.map +1 -0
  469. package/dist/cli.js +41 -0
  470. package/dist/cli.js.map +1 -0
  471. package/dist/tus.d.ts +18 -0
  472. package/dist/tus.d.ts.map +1 -0
  473. package/dist/tus.js +122 -0
  474. package/dist/tus.js.map +1 -0
  475. package/package.json +92 -0
  476. package/src/ApiError.ts +49 -0
  477. package/src/InconsistentResponseError.ts +3 -0
  478. package/src/PaginationStream.ts +54 -0
  479. package/src/PollingTimeoutError.ts +5 -0
  480. package/src/Transloadit.ts +980 -0
  481. package/src/alphalib/lib/nativeGlobby.ts +244 -0
  482. package/src/alphalib/mcache.ts +184 -0
  483. package/src/alphalib/tryCatch.ts +30 -0
  484. package/src/alphalib/types/assembliesGet.ts +42 -0
  485. package/src/alphalib/types/assemblyReplay.ts +24 -0
  486. package/src/alphalib/types/assemblyReplayNotification.ts +16 -0
  487. package/src/alphalib/types/assemblyStatus.ts +794 -0
  488. package/src/alphalib/types/bill.ts +9 -0
  489. package/src/alphalib/types/robots/_index.ts +1201 -0
  490. package/src/alphalib/types/robots/_instructions-primitives.ts +1770 -0
  491. package/src/alphalib/types/robots/ai-chat.ts +278 -0
  492. package/src/alphalib/types/robots/assembly-savejson.ts +37 -0
  493. package/src/alphalib/types/robots/audio-artwork.ts +107 -0
  494. package/src/alphalib/types/robots/audio-concat.ts +142 -0
  495. package/src/alphalib/types/robots/audio-encode.ts +103 -0
  496. package/src/alphalib/types/robots/audio-loop.ts +102 -0
  497. package/src/alphalib/types/robots/audio-merge.ts +137 -0
  498. package/src/alphalib/types/robots/audio-waveform.ts +280 -0
  499. package/src/alphalib/types/robots/azure-import.ts +111 -0
  500. package/src/alphalib/types/robots/azure-store.ts +143 -0
  501. package/src/alphalib/types/robots/backblaze-import.ts +119 -0
  502. package/src/alphalib/types/robots/backblaze-store.ts +104 -0
  503. package/src/alphalib/types/robots/cloudfiles-import.ts +118 -0
  504. package/src/alphalib/types/robots/cloudfiles-store.ts +104 -0
  505. package/src/alphalib/types/robots/cloudflare-import.ts +121 -0
  506. package/src/alphalib/types/robots/cloudflare-store.ts +120 -0
  507. package/src/alphalib/types/robots/digitalocean-import.ts +118 -0
  508. package/src/alphalib/types/robots/digitalocean-store.ts +125 -0
  509. package/src/alphalib/types/robots/document-autorotate.ts +74 -0
  510. package/src/alphalib/types/robots/document-convert.ts +302 -0
  511. package/src/alphalib/types/robots/document-merge.ts +114 -0
  512. package/src/alphalib/types/robots/document-ocr.ts +120 -0
  513. package/src/alphalib/types/robots/document-split.ts +78 -0
  514. package/src/alphalib/types/robots/document-thumbs.ts +231 -0
  515. package/src/alphalib/types/robots/dropbox-import.ts +100 -0
  516. package/src/alphalib/types/robots/dropbox-store.ts +97 -0
  517. package/src/alphalib/types/robots/edgly-deliver.ts +73 -0
  518. package/src/alphalib/types/robots/file-compress.ts +167 -0
  519. package/src/alphalib/types/robots/file-decompress.ts +125 -0
  520. package/src/alphalib/types/robots/file-filter.ts +173 -0
  521. package/src/alphalib/types/robots/file-hash.ts +86 -0
  522. package/src/alphalib/types/robots/file-preview.ts +260 -0
  523. package/src/alphalib/types/robots/file-read.ts +71 -0
  524. package/src/alphalib/types/robots/file-serve.ts +128 -0
  525. package/src/alphalib/types/robots/file-verify.ts +102 -0
  526. package/src/alphalib/types/robots/file-virusscan.ts +113 -0
  527. package/src/alphalib/types/robots/file-watermark.ts +56 -0
  528. package/src/alphalib/types/robots/ftp-import.ts +95 -0
  529. package/src/alphalib/types/robots/ftp-store.ts +119 -0
  530. package/src/alphalib/types/robots/google-import.ts +115 -0
  531. package/src/alphalib/types/robots/google-store.ts +139 -0
  532. package/src/alphalib/types/robots/html-convert.ts +165 -0
  533. package/src/alphalib/types/robots/http-import.ts +168 -0
  534. package/src/alphalib/types/robots/image-bgremove.ts +95 -0
  535. package/src/alphalib/types/robots/image-describe.ts +121 -0
  536. package/src/alphalib/types/robots/image-facedetect.ts +187 -0
  537. package/src/alphalib/types/robots/image-generate.ts +92 -0
  538. package/src/alphalib/types/robots/image-merge.ts +127 -0
  539. package/src/alphalib/types/robots/image-ocr.ts +112 -0
  540. package/src/alphalib/types/robots/image-optimize.ts +114 -0
  541. package/src/alphalib/types/robots/image-resize.ts +653 -0
  542. package/src/alphalib/types/robots/meta-read.ts +44 -0
  543. package/src/alphalib/types/robots/meta-write.ts +93 -0
  544. package/src/alphalib/types/robots/minio-import.ts +120 -0
  545. package/src/alphalib/types/robots/minio-store.ts +115 -0
  546. package/src/alphalib/types/robots/progress-simulate.ts +40 -0
  547. package/src/alphalib/types/robots/s3-import.ts +175 -0
  548. package/src/alphalib/types/robots/s3-store.ts +198 -0
  549. package/src/alphalib/types/robots/script-run.ts +122 -0
  550. package/src/alphalib/types/robots/sftp-import.ts +92 -0
  551. package/src/alphalib/types/robots/sftp-store.ts +110 -0
  552. package/src/alphalib/types/robots/speech-transcribe.ts +139 -0
  553. package/src/alphalib/types/robots/supabase-import.ts +122 -0
  554. package/src/alphalib/types/robots/supabase-store.ts +105 -0
  555. package/src/alphalib/types/robots/swift-import.ts +120 -0
  556. package/src/alphalib/types/robots/swift-store.ts +112 -0
  557. package/src/alphalib/types/robots/text-speak.ts +152 -0
  558. package/src/alphalib/types/robots/text-translate.ts +245 -0
  559. package/src/alphalib/types/robots/tigris-import.ts +124 -0
  560. package/src/alphalib/types/robots/tigris-store.ts +119 -0
  561. package/src/alphalib/types/robots/tlcdn-deliver.ts +73 -0
  562. package/src/alphalib/types/robots/tus-store.ts +129 -0
  563. package/src/alphalib/types/robots/upload-handle.ts +95 -0
  564. package/src/alphalib/types/robots/video-adaptive.ts +179 -0
  565. package/src/alphalib/types/robots/video-concat.ts +130 -0
  566. package/src/alphalib/types/robots/video-encode.ts +141 -0
  567. package/src/alphalib/types/robots/video-merge.ts +138 -0
  568. package/src/alphalib/types/robots/video-ondemand.ts +161 -0
  569. package/src/alphalib/types/robots/video-subtitle.ts +159 -0
  570. package/src/alphalib/types/robots/video-thumbs.ts +158 -0
  571. package/src/alphalib/types/robots/vimeo-import.ts +126 -0
  572. package/src/alphalib/types/robots/vimeo-store.ts +143 -0
  573. package/src/alphalib/types/robots/wasabi-import.ts +124 -0
  574. package/src/alphalib/types/robots/wasabi-store.ts +113 -0
  575. package/src/alphalib/types/robots/youtube-store.ts +153 -0
  576. package/src/alphalib/types/stackVersions.ts +12 -0
  577. package/src/alphalib/types/template.ts +277 -0
  578. package/src/alphalib/types/templateCredential.ts +61 -0
  579. package/src/alphalib/zodParseWithContext.ts +306 -0
  580. package/src/apiTypes.ts +154 -0
  581. package/src/cli/OutputCtl.ts +115 -0
  582. package/src/cli/commands/BaseCommand.ts +71 -0
  583. package/src/cli/commands/assemblies.ts +1373 -0
  584. package/src/cli/commands/auth.ts +354 -0
  585. package/src/cli/commands/bills.ts +91 -0
  586. package/src/cli/commands/index.ts +65 -0
  587. package/src/cli/commands/notifications.ts +63 -0
  588. package/src/cli/commands/templates.ts +556 -0
  589. package/src/cli/helpers.ts +50 -0
  590. package/src/cli/template-last-modified.ts +156 -0
  591. package/src/cli/types.ts +70 -0
  592. package/src/cli.ts +44 -0
  593. package/src/tus.ts +168 -0
@@ -0,0 +1,115 @@
1
+ import { z } from 'zod'
2
+
3
+ import type { RobotMetaInput } from './_instructions-primitives.ts'
4
+ import {
5
+ files_per_page,
6
+ googleBase,
7
+ interpolateRobot,
8
+ next_page_token,
9
+ path,
10
+ recursive,
11
+ robotBase,
12
+ robotImport,
13
+ } from './_instructions-primitives.ts'
14
+
15
+ export const meta: RobotMetaInput = {
16
+ allowed_for_url_transform: true,
17
+ bytescount: 10,
18
+ discount_factor: 0.1,
19
+ discount_pct: 90,
20
+ example_code: {
21
+ steps: {
22
+ imported: {
23
+ robot: '/google/import',
24
+ credentials: 'YOUR_GOOGLE_CREDENTIALS',
25
+ path: 'path/to/files/',
26
+ recursive: true,
27
+ },
28
+ },
29
+ },
30
+ example_code_description:
31
+ 'Import files from the `path/to/files` directory and its subdirectories:',
32
+ has_small_icon: true,
33
+ minimum_charge: 0,
34
+ output_factor: 1,
35
+ override_lvl1: 'File Importing',
36
+ purpose_sentence: 'imports whole directories of files from Google Storage',
37
+ purpose_verb: 'import',
38
+ purpose_word: 'Google Storage',
39
+ purpose_words: 'Import files from Google Storage',
40
+ service_slug: 'file-importing',
41
+ slot_count: 20,
42
+ title: 'Import files from Google Storage',
43
+ typical_file_size_mb: 1.2,
44
+ typical_file_type: 'file',
45
+ name: 'GoogleImportRobot',
46
+ priceFactor: 6.6666,
47
+ queueSlotCount: 20,
48
+ isAllowedForUrlTransform: true,
49
+ trackOutputFileSize: false,
50
+ isInternal: false,
51
+ removeJobResultFilesFromDiskRightAfterStoringOnS3: true,
52
+ stage: 'ga',
53
+ }
54
+
55
+ export const robotGoogleImportInstructionsSchema = robotBase
56
+ .merge(robotImport)
57
+ .merge(googleBase)
58
+ .extend({
59
+ robot: z.literal('/google/import'),
60
+ path: path.describe(`
61
+ 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\`.
62
+
63
+ 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/\`.
64
+
65
+ Directories are **not** imported recursively. If you want to import files from subdirectories and sub-subdirectories, enable the \`recursive\` parameter.
66
+
67
+ 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.
68
+
69
+ You can also use an array of path strings here to import multiple paths in the same <dfn>Robot</dfn>'s <dfn>Step</dfn>.
70
+ `),
71
+ recursive: recursive.describe(`
72
+ Setting this to \`true\` will enable importing files from subdirectories and sub-subdirectories (etc.) of the given path.
73
+
74
+ Please use the pagination parameters \`start_file_name\` and \`files_per_page\` wisely here.
75
+ `),
76
+ next_page_token: next_page_token.describe(`
77
+ 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.
78
+ `),
79
+ files_per_page: files_per_page.describe(`
80
+ The pagination page size. This only works when recursive is \`true\` for now, in order to not break backwards compatibility in non-recursive imports.
81
+ `),
82
+ })
83
+ .strict()
84
+
85
+ export const robotGoogleImportInstructionsWithHiddenFieldsSchema =
86
+ robotGoogleImportInstructionsSchema.extend({
87
+ result: z
88
+ .union([z.literal('debug'), robotGoogleImportInstructionsSchema.shape.result])
89
+ .optional(),
90
+ })
91
+
92
+ export type RobotGoogleImportInstructions = z.infer<typeof robotGoogleImportInstructionsSchema>
93
+ export type RobotGoogleImportInstructionsWithHiddenFields = z.infer<
94
+ typeof robotGoogleImportInstructionsWithHiddenFieldsSchema
95
+ >
96
+
97
+ export const interpolatableRobotGoogleImportInstructionsSchema = interpolateRobot(
98
+ robotGoogleImportInstructionsSchema,
99
+ )
100
+ export type InterpolatableRobotGoogleImportInstructions =
101
+ InterpolatableRobotGoogleImportInstructionsInput
102
+
103
+ export type InterpolatableRobotGoogleImportInstructionsInput = z.input<
104
+ typeof interpolatableRobotGoogleImportInstructionsSchema
105
+ >
106
+
107
+ export const interpolatableRobotGoogleImportInstructionsWithHiddenFieldsSchema = interpolateRobot(
108
+ robotGoogleImportInstructionsWithHiddenFieldsSchema,
109
+ )
110
+ export type InterpolatableRobotGoogleImportInstructionsWithHiddenFields = z.infer<
111
+ typeof interpolatableRobotGoogleImportInstructionsWithHiddenFieldsSchema
112
+ >
113
+ export type InterpolatableRobotGoogleImportInstructionsWithHiddenFieldsInput = z.input<
114
+ typeof interpolatableRobotGoogleImportInstructionsWithHiddenFieldsSchema
115
+ >
@@ -0,0 +1,139 @@
1
+ import { z } from 'zod'
2
+
3
+ import type { RobotMetaInput } from './_instructions-primitives.ts'
4
+ import { googleBase, interpolateRobot, robotBase, robotUse } from './_instructions-primitives.ts'
5
+
6
+ export const meta: RobotMetaInput = {
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
+ name: 'GoogleStoreRobot',
36
+ priceFactor: 6.6666,
37
+ queueSlotCount: 10,
38
+ isAllowedForUrlTransform: true,
39
+ trackOutputFileSize: false,
40
+ isInternal: false,
41
+ removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
42
+ stage: 'ga',
43
+ }
44
+
45
+ export const robotGoogleStoreInstructionsSchema = robotBase
46
+ .merge(robotUse)
47
+ .merge(googleBase)
48
+ .extend({
49
+ robot: z.literal('/google/store').describe(`
50
+ 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/).
51
+ `),
52
+ result: z
53
+ .boolean()
54
+ .optional()
55
+ .describe('Whether the results of this Step should be present in the Assembly Status JSON'),
56
+ credentials: z.string().describe(`
57
+ 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>.
58
+
59
+ 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.
60
+
61
+ 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.
62
+
63
+ To do this from the Google Cloud console, navigate to "IAM &amp; Admin" and select "Roles". From here, click "Create Role", enter a name, set the role launch stage to _General availability,_ and set the permissions stated above.
64
+
65
+ Next, go to 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.
66
+
67
+ 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.
68
+ `),
69
+ path: z
70
+ .string()
71
+ .default('${unique_prefix}/${file.url_name}')
72
+ .describe(`
73
+ The path at which the file is to be stored. This may include any available [Assembly Variables](/docs/topics/assembly-instructions/#assembly-variables).
74
+ `),
75
+ acl: z
76
+ .enum([
77
+ 'authenticated-read',
78
+ 'bucket-owner-full-control',
79
+ 'private',
80
+ 'project-private',
81
+ 'public-read',
82
+ ])
83
+ .nullable()
84
+ .default('public-read')
85
+ .describe(`
86
+ The permissions used for this file.
87
+ `),
88
+ cache_control: z
89
+ .string()
90
+ .optional()
91
+ .describe(`
92
+ 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).
93
+ `),
94
+ url_template: z
95
+ .string()
96
+ .default('https://{HOST}/{PATH}')
97
+ .describe(`
98
+ 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).
99
+ `),
100
+ ssl_url_template: z
101
+ .string()
102
+ .default('https://{HOST}/{PATH}')
103
+ .describe(`
104
+ The SSL URL of the file in the result JSON. The following [Assembly variables](/docs/topics/assembly-instructions/#assembly-variables) are supported.
105
+ `),
106
+ })
107
+ .strict()
108
+
109
+ export const robotGoogleStoreInstructionsWithHiddenFieldsSchema =
110
+ robotGoogleStoreInstructionsSchema.extend({
111
+ result: z
112
+ .union([z.literal('debug'), robotGoogleStoreInstructionsSchema.shape.result])
113
+ .optional(),
114
+ })
115
+
116
+ export type RobotGoogleStoreInstructions = z.infer<typeof robotGoogleStoreInstructionsSchema>
117
+ export type RobotGoogleStoreInstructionsWithHiddenFields = z.infer<
118
+ typeof robotGoogleStoreInstructionsWithHiddenFieldsSchema
119
+ >
120
+
121
+ export const interpolatableRobotGoogleStoreInstructionsSchema = interpolateRobot(
122
+ robotGoogleStoreInstructionsSchema,
123
+ )
124
+ export type InterpolatableRobotGoogleStoreInstructions =
125
+ InterpolatableRobotGoogleStoreInstructionsInput
126
+
127
+ export type InterpolatableRobotGoogleStoreInstructionsInput = z.input<
128
+ typeof interpolatableRobotGoogleStoreInstructionsSchema
129
+ >
130
+
131
+ export const interpolatableRobotGoogleStoreInstructionsWithHiddenFieldsSchema = interpolateRobot(
132
+ robotGoogleStoreInstructionsWithHiddenFieldsSchema,
133
+ )
134
+ export type InterpolatableRobotGoogleStoreInstructionsWithHiddenFields = z.infer<
135
+ typeof interpolatableRobotGoogleStoreInstructionsWithHiddenFieldsSchema
136
+ >
137
+ export type InterpolatableRobotGoogleStoreInstructionsWithHiddenFieldsInput = z.input<
138
+ typeof interpolatableRobotGoogleStoreInstructionsWithHiddenFieldsSchema
139
+ >
@@ -0,0 +1,165 @@
1
+ import { z } from 'zod'
2
+
3
+ import type { RobotMetaInput } from './_instructions-primitives.ts'
4
+ import { interpolateRobot, robotBase, robotUse } from './_instructions-primitives.ts'
5
+
6
+ export const meta: RobotMetaInput = {
7
+ allowed_for_url_transform: true,
8
+ bytescount: 1,
9
+ discount_factor: 1,
10
+ discount_pct: 0,
11
+ example_code: {
12
+ steps: {
13
+ captured: {
14
+ robot: '/html/convert',
15
+ url: 'https://transloadit.com',
16
+ },
17
+ },
18
+ },
19
+ example_code_description: 'Take a full screenshot of the Transloadit homepage:',
20
+ extended_description: `
21
+ > [!Warning]
22
+ > A validation error will occur if neither an HTML file is uploaded nor a URL parameter is given.
23
+
24
+ > [!Note]
25
+ > Any files imported within the HTML page will be included in the cost.
26
+ `,
27
+ minimum_charge: 1048576,
28
+ output_factor: 0.5,
29
+ override_lvl1: 'Document Processing',
30
+ purpose_sentence: 'takes screenshots of web pages or uploaded HTML pages',
31
+ purpose_verb: 'take',
32
+ purpose_word: 'take screenshots of a webpage',
33
+ purpose_words: 'Take screenshots of webpages or HTML files',
34
+ service_slug: 'document-processing',
35
+ slot_count: 10,
36
+ title: 'Take screenshots of webpages or uploaded HTML files',
37
+ typical_file_size_mb: 0.6,
38
+ typical_file_type: 'webpage',
39
+ name: 'HtmlConvertRobot',
40
+ priceFactor: 1,
41
+ queueSlotCount: 30,
42
+ minimumCharge: 1048576,
43
+ isAllowedForUrlTransform: true,
44
+ trackOutputFileSize: true,
45
+ isInternal: false,
46
+ removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
47
+ stage: 'ga',
48
+ }
49
+
50
+ export const robotHtmlConvertInstructionsSchema = robotBase
51
+ .merge(robotUse)
52
+ .extend({
53
+ robot: z.literal('/html/convert').describe(`
54
+ A URL can be provided instead of an input HTML file, to capture a screenshot from the website referenced by the URL.
55
+
56
+ Use [🤖/image/resize](/docs/robots/image-resize/) to resize or crop the screenshot as needed.
57
+ `),
58
+ url: z
59
+ .string()
60
+ .nullable()
61
+ .default(null)
62
+ .describe(`
63
+ 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>.
64
+ `),
65
+ format: z
66
+ .enum(['jpeg', 'jpg', 'pdf', 'png'])
67
+ .default('png')
68
+ .describe(`
69
+ The format of the resulting image.
70
+ `),
71
+ fullpage: z
72
+ .boolean()
73
+ .default(true)
74
+ .describe(`
75
+ Determines if a screenshot of the full page should be taken or not.
76
+
77
+ 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.
78
+
79
+ If set to \`false\`, an image will be cropped from the top of the webpage according to your \`width\` and \`height\` parameters.
80
+ `),
81
+ omit_background: z
82
+ .boolean()
83
+ .default(false)
84
+ .describe(`
85
+ 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.
86
+
87
+ The default of \`false\` fills transparent areas with a white background, for easier reading/printing.
88
+
89
+ This parameter is only used when \`format\` is not \`pdf\`.
90
+ `),
91
+ width: z
92
+ .number()
93
+ .int()
94
+ .min(1)
95
+ .default(1024)
96
+ .describe(`
97
+ The screen width that will be used, in pixels. Change this to change the dimensions of the resulting image.
98
+ `),
99
+ height: z
100
+ .number()
101
+ .int()
102
+ .min(1)
103
+ .optional()
104
+ .describe(`
105
+ 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\`.
106
+ `),
107
+ delay: z
108
+ .number()
109
+ .int()
110
+ .min(0)
111
+ .default(0)
112
+ .describe(`
113
+ The delay (in milliseconds) applied to allow the page and all of its JavaScript to render before taking the screenshot.
114
+ `),
115
+ headers: z
116
+ .record(z.string())
117
+ .optional()
118
+ .describe(`
119
+ 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.
120
+ `),
121
+ wait_until: z
122
+ .enum(['domcontentloaded', 'load', 'networkidle', 'commit'])
123
+ .default('networkidle')
124
+ .describe(`
125
+ The event to wait for before taking the screenshot. Used for loading Javascript, and images.
126
+
127
+ See [Playwright's documentation](https://playwright.dev/docs/api/class-page#page-wait-for-load-state) for more information.
128
+ `),
129
+ })
130
+ .strict()
131
+
132
+ export const robotHtmlConvertInstructionsWithHiddenFieldsSchema =
133
+ robotHtmlConvertInstructionsSchema.extend({
134
+ debuginfo: z.boolean().optional(),
135
+ timeouts: z.record(z.unknown()).optional(),
136
+ actions: z.array(z.record(z.unknown())).optional(),
137
+ result: z
138
+ .union([z.literal('debug'), robotHtmlConvertInstructionsSchema.shape.result])
139
+ .optional(),
140
+ })
141
+
142
+ export type RobotHtmlConvertInstructions = z.infer<typeof robotHtmlConvertInstructionsSchema>
143
+ export type RobotHtmlConvertInstructionsWithHiddenFields = z.infer<
144
+ typeof robotHtmlConvertInstructionsWithHiddenFieldsSchema
145
+ >
146
+
147
+ export const interpolatableRobotHtmlConvertInstructionsSchema = interpolateRobot(
148
+ robotHtmlConvertInstructionsSchema,
149
+ )
150
+ export type InterpolatableRobotHtmlConvertInstructions =
151
+ InterpolatableRobotHtmlConvertInstructionsInput
152
+
153
+ export type InterpolatableRobotHtmlConvertInstructionsInput = z.input<
154
+ typeof interpolatableRobotHtmlConvertInstructionsSchema
155
+ >
156
+
157
+ export const interpolatableRobotHtmlConvertInstructionsWithHiddenFieldsSchema = interpolateRobot(
158
+ robotHtmlConvertInstructionsWithHiddenFieldsSchema,
159
+ )
160
+ export type InterpolatableRobotHtmlConvertInstructionsWithHiddenFields = z.infer<
161
+ typeof interpolatableRobotHtmlConvertInstructionsWithHiddenFieldsSchema
162
+ >
163
+ export type InterpolatableRobotHtmlConvertInstructionsWithHiddenFieldsInput = z.input<
164
+ typeof interpolatableRobotHtmlConvertInstructionsWithHiddenFieldsSchema
165
+ >
@@ -0,0 +1,168 @@
1
+ import { z } from 'zod'
2
+
3
+ import type { RobotMetaInput } from './_instructions-primitives.ts'
4
+ import {
5
+ interpolateRobot,
6
+ return_file_stubs,
7
+ robotBase,
8
+ robotImport,
9
+ } from './_instructions-primitives.ts'
10
+
11
+ export const meta: RobotMetaInput = {
12
+ allowed_for_url_transform: true,
13
+ bytescount: 10,
14
+ discount_factor: 0.1,
15
+ discount_pct: 90,
16
+ example_code: {
17
+ steps: {
18
+ imported: {
19
+ robot: '/http/import',
20
+ url: 'https://demos.transloadit.com/inputs/chameleon.jpg',
21
+ },
22
+ },
23
+ },
24
+ example_code_description: 'Import an image from a specific URL:',
25
+ minimum_charge: 0,
26
+ output_factor: 1,
27
+ override_lvl1: 'File Importing',
28
+ purpose_sentence: 'imports any file that is publicly available via a web URL into Transloadit',
29
+ purpose_verb: 'import',
30
+ purpose_word: 'Webservers',
31
+ purpose_words: 'Import files from web servers',
32
+ service_slug: 'file-importing',
33
+ slot_count: 10,
34
+ title: 'Import files from web servers',
35
+ typical_file_size_mb: 1.2,
36
+ typical_file_type: 'file',
37
+ name: 'HttpImportRobot',
38
+ priceFactor: 10,
39
+ queueSlotCount: 10,
40
+ isAllowedForUrlTransform: true,
41
+ trackOutputFileSize: false,
42
+ isInternal: false,
43
+ removeJobResultFilesFromDiskRightAfterStoringOnS3: true,
44
+ stage: 'ga',
45
+ }
46
+
47
+ export const robotHttpImportInstructionsSchema = robotBase
48
+ .merge(robotImport)
49
+ .extend({
50
+ robot: z.literal('/http/import').describe(`
51
+ 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.
52
+
53
+ This <dfn>Robot</dfn> knows to interpret links to files on these services:
54
+
55
+ - Dropbox
56
+ - Google Drive
57
+ - Google Docs
58
+ - OneDrive
59
+
60
+ Instead of downloading the HTML page previewing the file, the actual file itself will be imported.
61
+ `),
62
+ url: z.union([z.string().url(), z.array(z.string().url())]).describe(`
63
+ The URL from which the file to be imported can be retrieved.
64
+
65
+ 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.
66
+ `),
67
+ url_delimiter: z
68
+ .string()
69
+ .default('|')
70
+ .describe(`
71
+ Provides the delimiter that is used to split the URLs in your \`url\` parameter value.
72
+ `),
73
+ headers: z
74
+ .union([
75
+ z.array(z.string()),
76
+ z.array(z.record(z.string())),
77
+ z.string(), // For JSON strings like '{"X-Database":"volt"}'
78
+ ])
79
+ .default([])
80
+ .describe(`
81
+ Custom headers to be sent for file import.
82
+
83
+ This is an empty array by default, such that no additional headers except the necessary ones (e.g. Host) are sent.
84
+
85
+ Headers can be specified as:
86
+ - An array of strings in the format "Header-Name: value"
87
+ - An array of objects with header names as keys and values as values
88
+ - A JSON string that will be parsed into an object
89
+ `),
90
+ import_on_errors: z
91
+ .array(z.string())
92
+ .default([])
93
+ .describe(`
94
+ 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.
95
+ `),
96
+ fail_fast: z
97
+ .boolean()
98
+ .default(false)
99
+ .describe(`
100
+ Disable the internal retry mechanism, and fail immediately if a resource can't be imported. This can be useful for performance critical applications.
101
+ `),
102
+ return_file_stubs,
103
+ range: z
104
+ .union([z.string(), z.array(z.string())])
105
+ .optional()
106
+ .describe(`
107
+ Allows you to specify one or more byte ranges to import from the file. The server must support range requests for this to work.
108
+
109
+ **Single range**: Use a string like \`"0-99"\` to import bytes 0-99 (the first 100 bytes).
110
+
111
+ **Multiple ranges**: Use an array like \`["0-99", "200-299"]\` to import multiple separate ranges. The resulting file will contain all requested ranges concatenated together, with zero bytes (\\0) filling any gaps between non-contiguous ranges.
112
+
113
+ **Range formats**:
114
+ - \`"0-99"\`: Bytes 0 through 99 (inclusive)
115
+ - \`"100-199"\`: Bytes 100 through 199 (inclusive)
116
+ - \`"-100"\`: The last 100 bytes of the file
117
+
118
+ **Important notes**:
119
+ - The server must support HTTP range requests (respond with 206 Partial Content)
120
+ - If the server doesn't support range requests, the entire file will be imported instead
121
+ - Overlapping ranges are allowed and will be included as requested
122
+ - The resulting file size will be the highest byte position requested, with gaps filled with zero bytes
123
+ `),
124
+ })
125
+ .strict()
126
+
127
+ export const robotHttpImportInstructionsWithHiddenFieldsSchema =
128
+ robotHttpImportInstructionsSchema.extend({
129
+ force_original_id: z.string().optional(),
130
+ force_name: z
131
+ .union([z.string(), z.record(z.string())])
132
+ .optional()
133
+ .describe(`
134
+ Force a specific filename for imported files. Can be a string to apply to all imports, or an object mapping URLs to filenames.
135
+ `),
136
+ result: z
137
+ .union([z.literal('debug'), robotHttpImportInstructionsSchema.shape.result])
138
+ .optional(),
139
+ credentials: z.string().optional(), // For test purposes
140
+ bucket: z.string().optional(), // For test purposes
141
+ // Override url to support relative URLs in tests with bucket
142
+ url: z.union([z.string(), z.array(z.string())]).optional(),
143
+ })
144
+
145
+ export type RobotHttpImportInstructions = z.infer<typeof robotHttpImportInstructionsSchema>
146
+ export type RobotHttpImportInstructionsWithHiddenFields = z.infer<
147
+ typeof robotHttpImportInstructionsWithHiddenFieldsSchema
148
+ >
149
+
150
+ export const interpolatableRobotHttpImportInstructionsSchema = interpolateRobot(
151
+ robotHttpImportInstructionsSchema,
152
+ )
153
+ export type InterpolatableRobotHttpImportInstructions =
154
+ InterpolatableRobotHttpImportInstructionsInput
155
+
156
+ export type InterpolatableRobotHttpImportInstructionsInput = z.input<
157
+ typeof interpolatableRobotHttpImportInstructionsSchema
158
+ >
159
+
160
+ export const interpolatableRobotHttpImportInstructionsWithHiddenFieldsSchema = interpolateRobot(
161
+ robotHttpImportInstructionsWithHiddenFieldsSchema,
162
+ )
163
+ export type InterpolatableRobotHttpImportInstructionsWithHiddenFields = z.infer<
164
+ typeof interpolatableRobotHttpImportInstructionsWithHiddenFieldsSchema
165
+ >
166
+ export type InterpolatableRobotHttpImportInstructionsWithHiddenFieldsInput = z.input<
167
+ typeof interpolatableRobotHttpImportInstructionsWithHiddenFieldsSchema
168
+ >
@@ -0,0 +1,95 @@
1
+ import { z } from 'zod'
2
+
3
+ import type { RobotMetaInput } from './_instructions-primitives.ts'
4
+ import { interpolateRobot, robotBase, robotUse } from './_instructions-primitives.ts'
5
+
6
+ export const meta: RobotMetaInput = {
7
+ allowed_for_url_transform: true,
8
+ discount_factor: 1,
9
+ bytescount: 1,
10
+ discount_pct: 0,
11
+ example_code: {
12
+ steps: {
13
+ remove_background: {
14
+ robot: '/image/bgremove',
15
+ use: ':original',
16
+ },
17
+ },
18
+ },
19
+ example_code_description: 'Remove the background from the uploaded image:',
20
+ minimum_charge: 0,
21
+ output_factor: 0.6,
22
+ override_lvl1: 'Image Manipulation',
23
+ purpose_sentence: 'removes the background from images',
24
+ purpose_verb: 'remove',
25
+ purpose_word: 'remove',
26
+ purpose_words: 'Remove the background from images',
27
+ service_slug: 'image-manipulation',
28
+ slot_count: 10,
29
+ title: 'Remove the background from images',
30
+ typical_file_size_mb: 0.8,
31
+ typical_file_type: 'image',
32
+ name: 'ImageBgremoveRobot',
33
+ priceFactor: 1,
34
+ queueSlotCount: 10,
35
+ minimumChargeUsd: 0.006,
36
+ isAllowedForUrlTransform: true,
37
+ trackOutputFileSize: true,
38
+ isInternal: false,
39
+ removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
40
+ stage: 'ga',
41
+ }
42
+
43
+ export const robotImageBgremoveInstructionsSchema = robotBase
44
+ .merge(robotUse)
45
+ .extend({
46
+ robot: z.literal('/image/bgremove'),
47
+ select: z
48
+ .enum(['foreground', 'background'])
49
+ .optional()
50
+ .describe('Region to select and keep in the image. The other region is removed.'),
51
+ format: z.enum(['png', 'gif', 'webp']).optional().describe('Format of the generated image.'),
52
+ provider: z
53
+ .enum(['transloadit', 'replicate', 'fal'])
54
+ .optional()
55
+ .describe('Provider to use for removing the background.'),
56
+ model: z
57
+ .string()
58
+ .optional()
59
+ .describe(
60
+ 'Provider-specific model to use for removing the background. Mostly intended for testing and evaluation.',
61
+ ),
62
+ })
63
+ .strict()
64
+
65
+ export const robotImageBgremoveInstructionsWithHiddenFieldsSchema =
66
+ robotImageBgremoveInstructionsSchema.extend({
67
+ result: z
68
+ .union([z.literal('debug'), robotImageBgremoveInstructionsSchema.shape.result])
69
+ .optional(),
70
+ })
71
+
72
+ export type RobotImageBgremoveInstructions = z.infer<typeof robotImageBgremoveInstructionsSchema>
73
+ export type RobotImageBgremoveInstructionsWithHiddenFields = z.infer<
74
+ typeof robotImageBgremoveInstructionsWithHiddenFieldsSchema
75
+ >
76
+
77
+ export const interpolatableRobotImageBgremoveInstructionsSchema = interpolateRobot(
78
+ robotImageBgremoveInstructionsSchema,
79
+ )
80
+ export type InterpolatableRobotImageBgremoveInstructions =
81
+ InterpolatableRobotImageBgremoveInstructionsInput
82
+
83
+ export type InterpolatableRobotImageBgremoveInstructionsInput = z.input<
84
+ typeof interpolatableRobotImageBgremoveInstructionsSchema
85
+ >
86
+
87
+ export const interpolatableRobotImageBgremoveInstructionsWithHiddenFieldsSchema = interpolateRobot(
88
+ robotImageBgremoveInstructionsWithHiddenFieldsSchema,
89
+ )
90
+ export type InterpolatableRobotImageBgremoveInstructionsWithHiddenFields = z.infer<
91
+ typeof interpolatableRobotImageBgremoveInstructionsWithHiddenFieldsSchema
92
+ >
93
+ export type InterpolatableRobotImageBgremoveInstructionsWithHiddenFieldsInput = z.input<
94
+ typeof interpolatableRobotImageBgremoveInstructionsWithHiddenFieldsSchema
95
+ >