transloadit 4.14.0 → 5.0.1

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 (628) hide show
  1. package/README.md +44 -4
  2. package/dist/ApiError.d.ts +6 -2
  3. package/dist/ApiError.d.ts.map +1 -1
  4. package/dist/ApiError.js +6 -2
  5. package/dist/ApiError.js.map +1 -1
  6. package/dist/Transloadit.d.ts.map +1 -1
  7. package/dist/Transloadit.js +3 -2
  8. package/dist/Transloadit.js.map +1 -1
  9. package/dist/alphalib/aiMessages.d.ts +33254 -0
  10. package/dist/alphalib/aiMessages.d.ts.map +1 -0
  11. package/dist/alphalib/aiMessages.js +479 -0
  12. package/dist/alphalib/aiMessages.js.map +1 -0
  13. package/dist/alphalib/assembly-linter.d.ts.map +1 -1
  14. package/dist/alphalib/assembly-linter.js +20 -15
  15. package/dist/alphalib/assembly-linter.js.map +1 -1
  16. package/dist/alphalib/englishList.d.ts +3 -0
  17. package/dist/alphalib/englishList.d.ts.map +1 -0
  18. package/dist/alphalib/englishList.js +12 -0
  19. package/dist/alphalib/englishList.js.map +1 -0
  20. package/dist/alphalib/errors.d.ts +16 -0
  21. package/dist/alphalib/errors.d.ts.map +1 -1
  22. package/dist/alphalib/errors.js +124 -13
  23. package/dist/alphalib/errors.js.map +1 -1
  24. package/dist/alphalib/imagemagickDensity.d.ts.map +1 -1
  25. package/dist/alphalib/imagemagickDensity.js +2 -2
  26. package/dist/alphalib/imagemagickDensity.js.map +1 -1
  27. package/dist/alphalib/lib/zodInputSemantics.d.ts +18 -0
  28. package/dist/alphalib/lib/zodInputSemantics.d.ts.map +1 -0
  29. package/dist/alphalib/lib/zodInputSemantics.js +86 -0
  30. package/dist/alphalib/lib/zodInputSemantics.js.map +1 -0
  31. package/dist/alphalib/object.d.ts +42 -2
  32. package/dist/alphalib/object.d.ts.map +1 -1
  33. package/dist/alphalib/object.js +133 -0
  34. package/dist/alphalib/object.js.map +1 -1
  35. package/dist/alphalib/stepParsing.d.ts +1 -0
  36. package/dist/alphalib/stepParsing.d.ts.map +1 -1
  37. package/dist/alphalib/stepParsing.js +9 -1
  38. package/dist/alphalib/stepParsing.js.map +1 -1
  39. package/dist/alphalib/types/apiParameterDescription.d.ts +14 -0
  40. package/dist/alphalib/types/apiParameterDescription.d.ts.map +1 -0
  41. package/dist/alphalib/types/apiParameterDescription.js +20 -0
  42. package/dist/alphalib/types/apiParameterDescription.js.map +1 -0
  43. package/dist/alphalib/types/assembliesGet.d.ts +1 -1
  44. package/dist/alphalib/types/assemblyReplay.d.ts +4 -4
  45. package/dist/alphalib/types/assemblyStatus.d.ts +6718 -64966
  46. package/dist/alphalib/types/assemblyStatus.d.ts.map +1 -1
  47. package/dist/alphalib/types/assemblyStatus.js +68 -55
  48. package/dist/alphalib/types/assemblyStatus.js.map +1 -1
  49. package/dist/alphalib/types/errorReason.d.ts +7 -0
  50. package/dist/alphalib/types/errorReason.d.ts.map +1 -0
  51. package/dist/alphalib/types/errorReason.js +14 -0
  52. package/dist/alphalib/types/errorReason.js.map +1 -0
  53. package/dist/alphalib/types/file.d.ts +7 -0
  54. package/dist/alphalib/types/file.d.ts.map +1 -1
  55. package/dist/alphalib/types/file.js +15 -0
  56. package/dist/alphalib/types/file.js.map +1 -1
  57. package/dist/alphalib/types/fileHash.d.ts +16 -0
  58. package/dist/alphalib/types/fileHash.d.ts.map +1 -0
  59. package/dist/alphalib/types/fileHash.js +10 -0
  60. package/dist/alphalib/types/fileHash.js.map +1 -0
  61. package/dist/alphalib/types/responseErrors/HttpImportRobot.d.ts +23 -0
  62. package/dist/alphalib/types/responseErrors/HttpImportRobot.d.ts.map +1 -0
  63. package/dist/alphalib/types/responseErrors/HttpImportRobot.js +23 -0
  64. package/dist/alphalib/types/responseErrors/HttpImportRobot.js.map +1 -0
  65. package/dist/alphalib/types/robots/_ai-models.d.ts +28 -0
  66. package/dist/alphalib/types/robots/_ai-models.d.ts.map +1 -0
  67. package/dist/alphalib/types/robots/_ai-models.js +80 -0
  68. package/dist/alphalib/types/robots/_ai-models.js.map +1 -0
  69. package/dist/alphalib/types/robots/_index.d.ts +713 -1329
  70. package/dist/alphalib/types/robots/_index.d.ts.map +1 -1
  71. package/dist/alphalib/types/robots/_index.js +4 -0
  72. package/dist/alphalib/types/robots/_index.js.map +1 -1
  73. package/dist/alphalib/types/robots/_instructions-primitives.d.ts +504 -129
  74. package/dist/alphalib/types/robots/_instructions-primitives.d.ts.map +1 -1
  75. package/dist/alphalib/types/robots/_instructions-primitives.js +627 -280
  76. package/dist/alphalib/types/robots/_instructions-primitives.js.map +1 -1
  77. package/dist/alphalib/types/robots/ai-chat.d.ts +952 -2189
  78. package/dist/alphalib/types/robots/ai-chat.d.ts.map +1 -1
  79. package/dist/alphalib/types/robots/ai-chat.js +235 -368
  80. package/dist/alphalib/types/robots/ai-chat.js.map +1 -1
  81. package/dist/alphalib/types/robots/assembly-savejson.d.ts +28 -16
  82. package/dist/alphalib/types/robots/assembly-savejson.d.ts.map +1 -1
  83. package/dist/alphalib/types/robots/assembly-savejson.js +2 -11
  84. package/dist/alphalib/types/robots/assembly-savejson.js.map +1 -1
  85. package/dist/alphalib/types/robots/audio-artwork.d.ts +80 -67
  86. package/dist/alphalib/types/robots/audio-artwork.d.ts.map +1 -1
  87. package/dist/alphalib/types/robots/audio-artwork.js +9 -38
  88. package/dist/alphalib/types/robots/audio-artwork.js.map +1 -1
  89. package/dist/alphalib/types/robots/audio-concat.d.ts +94 -81
  90. package/dist/alphalib/types/robots/audio-concat.d.ts.map +1 -1
  91. package/dist/alphalib/types/robots/audio-concat.js +11 -25
  92. package/dist/alphalib/types/robots/audio-concat.js.map +1 -1
  93. package/dist/alphalib/types/robots/audio-encode.d.ts +80 -67
  94. package/dist/alphalib/types/robots/audio-encode.d.ts.map +1 -1
  95. package/dist/alphalib/types/robots/audio-encode.js +13 -43
  96. package/dist/alphalib/types/robots/audio-encode.js.map +1 -1
  97. package/dist/alphalib/types/robots/audio-loop.d.ts +80 -67
  98. package/dist/alphalib/types/robots/audio-loop.d.ts.map +1 -1
  99. package/dist/alphalib/types/robots/audio-loop.js +12 -40
  100. package/dist/alphalib/types/robots/audio-loop.js.map +1 -1
  101. package/dist/alphalib/types/robots/audio-merge.d.ts +94 -81
  102. package/dist/alphalib/types/robots/audio-merge.d.ts.map +1 -1
  103. package/dist/alphalib/types/robots/audio-merge.js +11 -25
  104. package/dist/alphalib/types/robots/audio-merge.js.map +1 -1
  105. package/dist/alphalib/types/robots/audio-split.d.ts +80 -67
  106. package/dist/alphalib/types/robots/audio-split.d.ts.map +1 -1
  107. package/dist/alphalib/types/robots/audio-split.js +15 -45
  108. package/dist/alphalib/types/robots/audio-split.js.map +1 -1
  109. package/dist/alphalib/types/robots/audio-waveform.d.ts +120 -107
  110. package/dist/alphalib/types/robots/audio-waveform.d.ts.map +1 -1
  111. package/dist/alphalib/types/robots/audio-waveform.js +15 -39
  112. package/dist/alphalib/types/robots/audio-waveform.js.map +1 -1
  113. package/dist/alphalib/types/robots/azure-import.d.ts +48 -35
  114. package/dist/alphalib/types/robots/azure-import.d.ts.map +1 -1
  115. package/dist/alphalib/types/robots/azure-import.js +5 -35
  116. package/dist/alphalib/types/robots/azure-import.js.map +1 -1
  117. package/dist/alphalib/types/robots/azure-store.d.ts +87 -71
  118. package/dist/alphalib/types/robots/azure-store.d.ts.map +1 -1
  119. package/dist/alphalib/types/robots/azure-store.js +11 -50
  120. package/dist/alphalib/types/robots/azure-store.js.map +1 -1
  121. package/dist/alphalib/types/robots/backblaze-import.d.ts +48 -35
  122. package/dist/alphalib/types/robots/backblaze-import.d.ts.map +1 -1
  123. package/dist/alphalib/types/robots/backblaze-import.js +6 -39
  124. package/dist/alphalib/types/robots/backblaze-import.js.map +1 -1
  125. package/dist/alphalib/types/robots/backblaze-store.d.ts +80 -67
  126. package/dist/alphalib/types/robots/backblaze-store.d.ts.map +1 -1
  127. package/dist/alphalib/types/robots/backblaze-store.js +8 -44
  128. package/dist/alphalib/types/robots/backblaze-store.js.map +1 -1
  129. package/dist/alphalib/types/robots/box-import.d.ts +44 -27
  130. package/dist/alphalib/types/robots/box-import.d.ts.map +1 -1
  131. package/dist/alphalib/types/robots/box-import.js +7 -33
  132. package/dist/alphalib/types/robots/box-import.js.map +1 -1
  133. package/dist/alphalib/types/robots/box-store.d.ts +85 -68
  134. package/dist/alphalib/types/robots/box-store.d.ts.map +1 -1
  135. package/dist/alphalib/types/robots/box-store.js +8 -40
  136. package/dist/alphalib/types/robots/box-store.js.map +1 -1
  137. package/dist/alphalib/types/robots/cloudfiles-import.d.ts +48 -35
  138. package/dist/alphalib/types/robots/cloudfiles-import.d.ts.map +1 -1
  139. package/dist/alphalib/types/robots/cloudfiles-import.js +8 -45
  140. package/dist/alphalib/types/robots/cloudfiles-import.js.map +1 -1
  141. package/dist/alphalib/types/robots/cloudfiles-store.d.ts +80 -67
  142. package/dist/alphalib/types/robots/cloudfiles-store.d.ts.map +1 -1
  143. package/dist/alphalib/types/robots/cloudfiles-store.js +5 -36
  144. package/dist/alphalib/types/robots/cloudfiles-store.js.map +1 -1
  145. package/dist/alphalib/types/robots/cloudflare-import.d.ts +48 -35
  146. package/dist/alphalib/types/robots/cloudflare-import.d.ts.map +1 -1
  147. package/dist/alphalib/types/robots/cloudflare-import.js +10 -57
  148. package/dist/alphalib/types/robots/cloudflare-import.js.map +1 -1
  149. package/dist/alphalib/types/robots/cloudflare-store.d.ts +80 -67
  150. package/dist/alphalib/types/robots/cloudflare-store.d.ts.map +1 -1
  151. package/dist/alphalib/types/robots/cloudflare-store.js +11 -54
  152. package/dist/alphalib/types/robots/cloudflare-store.js.map +1 -1
  153. package/dist/alphalib/types/robots/digitalocean-import.d.ts +56 -43
  154. package/dist/alphalib/types/robots/digitalocean-import.d.ts.map +1 -1
  155. package/dist/alphalib/types/robots/digitalocean-import.js +8 -49
  156. package/dist/alphalib/types/robots/digitalocean-import.js.map +1 -1
  157. package/dist/alphalib/types/robots/digitalocean-store.d.ts +88 -75
  158. package/dist/alphalib/types/robots/digitalocean-store.d.ts.map +1 -1
  159. package/dist/alphalib/types/robots/digitalocean-store.js +8 -56
  160. package/dist/alphalib/types/robots/digitalocean-store.js.map +1 -1
  161. package/dist/alphalib/types/robots/document-autorotate.d.ts +80 -67
  162. package/dist/alphalib/types/robots/document-autorotate.d.ts.map +1 -1
  163. package/dist/alphalib/types/robots/document-autorotate.js +5 -32
  164. package/dist/alphalib/types/robots/document-autorotate.js.map +1 -1
  165. package/dist/alphalib/types/robots/document-convert.d.ts +84 -71
  166. package/dist/alphalib/types/robots/document-convert.d.ts.map +1 -1
  167. package/dist/alphalib/types/robots/document-convert.js +7 -33
  168. package/dist/alphalib/types/robots/document-convert.js.map +1 -1
  169. package/dist/alphalib/types/robots/document-extract.d.ts +80 -67
  170. package/dist/alphalib/types/robots/document-extract.d.ts.map +1 -1
  171. package/dist/alphalib/types/robots/document-extract.js +10 -36
  172. package/dist/alphalib/types/robots/document-extract.js.map +1 -1
  173. package/dist/alphalib/types/robots/document-merge.d.ts +80 -67
  174. package/dist/alphalib/types/robots/document-merge.d.ts.map +1 -1
  175. package/dist/alphalib/types/robots/document-merge.js +4 -25
  176. package/dist/alphalib/types/robots/document-merge.js.map +1 -1
  177. package/dist/alphalib/types/robots/document-ocr.d.ts +80 -67
  178. package/dist/alphalib/types/robots/document-ocr.d.ts.map +1 -1
  179. package/dist/alphalib/types/robots/document-ocr.js +10 -47
  180. package/dist/alphalib/types/robots/document-ocr.js.map +1 -1
  181. package/dist/alphalib/types/robots/document-optimize.d.ts +80 -67
  182. package/dist/alphalib/types/robots/document-optimize.d.ts.map +1 -1
  183. package/dist/alphalib/types/robots/document-optimize.js +7 -31
  184. package/dist/alphalib/types/robots/document-optimize.js.map +1 -1
  185. package/dist/alphalib/types/robots/document-split.d.ts +80 -67
  186. package/dist/alphalib/types/robots/document-split.d.ts.map +1 -1
  187. package/dist/alphalib/types/robots/document-split.js +7 -34
  188. package/dist/alphalib/types/robots/document-split.js.map +1 -1
  189. package/dist/alphalib/types/robots/document-thumbs.d.ts +120 -101
  190. package/dist/alphalib/types/robots/document-thumbs.d.ts.map +1 -1
  191. package/dist/alphalib/types/robots/document-thumbs.js +24 -31
  192. package/dist/alphalib/types/robots/document-thumbs.js.map +1 -1
  193. package/dist/alphalib/types/robots/dropbox-import.d.ts +40 -27
  194. package/dist/alphalib/types/robots/dropbox-import.d.ts.map +1 -1
  195. package/dist/alphalib/types/robots/dropbox-import.js +5 -35
  196. package/dist/alphalib/types/robots/dropbox-import.js.map +1 -1
  197. package/dist/alphalib/types/robots/dropbox-store.d.ts +84 -68
  198. package/dist/alphalib/types/robots/dropbox-store.d.ts.map +1 -1
  199. package/dist/alphalib/types/robots/dropbox-store.js +8 -42
  200. package/dist/alphalib/types/robots/dropbox-store.js.map +1 -1
  201. package/dist/alphalib/types/robots/edgly-deliver.d.ts +32 -19
  202. package/dist/alphalib/types/robots/edgly-deliver.d.ts.map +1 -1
  203. package/dist/alphalib/types/robots/edgly-deliver.js +4 -24
  204. package/dist/alphalib/types/robots/edgly-deliver.js.map +1 -1
  205. package/dist/alphalib/types/robots/file-compress.d.ts +80 -67
  206. package/dist/alphalib/types/robots/file-compress.d.ts.map +1 -1
  207. package/dist/alphalib/types/robots/file-compress.js +4 -20
  208. package/dist/alphalib/types/robots/file-compress.js.map +1 -1
  209. package/dist/alphalib/types/robots/file-decompress.d.ts +96 -83
  210. package/dist/alphalib/types/robots/file-decompress.d.ts.map +1 -1
  211. package/dist/alphalib/types/robots/file-decompress.js +10 -41
  212. package/dist/alphalib/types/robots/file-decompress.js.map +1 -1
  213. package/dist/alphalib/types/robots/file-filter.d.ts +99 -87
  214. package/dist/alphalib/types/robots/file-filter.d.ts.map +1 -1
  215. package/dist/alphalib/types/robots/file-filter.js +11 -40
  216. package/dist/alphalib/types/robots/file-filter.js.map +1 -1
  217. package/dist/alphalib/types/robots/file-hash.d.ts +84 -71
  218. package/dist/alphalib/types/robots/file-hash.d.ts.map +1 -1
  219. package/dist/alphalib/types/robots/file-hash.js +12 -43
  220. package/dist/alphalib/types/robots/file-hash.js.map +1 -1
  221. package/dist/alphalib/types/robots/file-preview.d.ts +113 -100
  222. package/dist/alphalib/types/robots/file-preview.d.ts.map +1 -1
  223. package/dist/alphalib/types/robots/file-preview.js +14 -39
  224. package/dist/alphalib/types/robots/file-preview.js.map +1 -1
  225. package/dist/alphalib/types/robots/file-read.d.ts +80 -67
  226. package/dist/alphalib/types/robots/file-read.d.ts.map +1 -1
  227. package/dist/alphalib/types/robots/file-read.js +5 -26
  228. package/dist/alphalib/types/robots/file-read.js.map +1 -1
  229. package/dist/alphalib/types/robots/file-serve.d.ts +81 -68
  230. package/dist/alphalib/types/robots/file-serve.d.ts.map +1 -1
  231. package/dist/alphalib/types/robots/file-serve.js +4 -21
  232. package/dist/alphalib/types/robots/file-serve.js.map +1 -1
  233. package/dist/alphalib/types/robots/file-verify.d.ts +88 -75
  234. package/dist/alphalib/types/robots/file-verify.d.ts.map +1 -1
  235. package/dist/alphalib/types/robots/file-verify.js +11 -41
  236. package/dist/alphalib/types/robots/file-verify.js.map +1 -1
  237. package/dist/alphalib/types/robots/file-virusscan.d.ts +83 -67
  238. package/dist/alphalib/types/robots/file-virusscan.d.ts.map +1 -1
  239. package/dist/alphalib/types/robots/file-virusscan.js +16 -42
  240. package/dist/alphalib/types/robots/file-virusscan.js.map +1 -1
  241. package/dist/alphalib/types/robots/file-watermark.d.ts +81 -67
  242. package/dist/alphalib/types/robots/file-watermark.d.ts.map +1 -1
  243. package/dist/alphalib/types/robots/file-watermark.js +10 -29
  244. package/dist/alphalib/types/robots/file-watermark.js.map +1 -1
  245. package/dist/alphalib/types/robots/ftp-import.d.ts +40 -27
  246. package/dist/alphalib/types/robots/ftp-import.d.ts.map +1 -1
  247. package/dist/alphalib/types/robots/ftp-import.js +5 -33
  248. package/dist/alphalib/types/robots/ftp-import.js.map +1 -1
  249. package/dist/alphalib/types/robots/ftp-store.d.ts +85 -67
  250. package/dist/alphalib/types/robots/ftp-store.d.ts.map +1 -1
  251. package/dist/alphalib/types/robots/ftp-store.js +7 -34
  252. package/dist/alphalib/types/robots/ftp-store.js.map +1 -1
  253. package/dist/alphalib/types/robots/google-import.d.ts +48 -35
  254. package/dist/alphalib/types/robots/google-import.d.ts.map +1 -1
  255. package/dist/alphalib/types/robots/google-import.js +10 -43
  256. package/dist/alphalib/types/robots/google-import.js.map +1 -1
  257. package/dist/alphalib/types/robots/google-store.d.ts +80 -67
  258. package/dist/alphalib/types/robots/google-store.d.ts.map +1 -1
  259. package/dist/alphalib/types/robots/google-store.js +10 -41
  260. package/dist/alphalib/types/robots/google-store.js.map +1 -1
  261. package/dist/alphalib/types/robots/html-convert.d.ts +107 -89
  262. package/dist/alphalib/types/robots/html-convert.d.ts.map +1 -1
  263. package/dist/alphalib/types/robots/html-convert.js +6 -22
  264. package/dist/alphalib/types/robots/html-convert.js.map +1 -1
  265. package/dist/alphalib/types/robots/http-import.d.ts +76 -63
  266. package/dist/alphalib/types/robots/http-import.d.ts.map +1 -1
  267. package/dist/alphalib/types/robots/http-import.js +14 -19
  268. package/dist/alphalib/types/robots/http-import.js.map +1 -1
  269. package/dist/alphalib/types/robots/http-request.d.ts +538 -0
  270. package/dist/alphalib/types/robots/http-request.d.ts.map +1 -0
  271. package/dist/alphalib/types/robots/http-request.js +162 -0
  272. package/dist/alphalib/types/robots/http-request.js.map +1 -0
  273. package/dist/alphalib/types/robots/image-bgremove.d.ts +80 -67
  274. package/dist/alphalib/types/robots/image-bgremove.d.ts.map +1 -1
  275. package/dist/alphalib/types/robots/image-bgremove.js +6 -33
  276. package/dist/alphalib/types/robots/image-bgremove.js.map +1 -1
  277. package/dist/alphalib/types/robots/image-copyrightdetect.d.ts +92 -79
  278. package/dist/alphalib/types/robots/image-copyrightdetect.d.ts.map +1 -1
  279. package/dist/alphalib/types/robots/image-copyrightdetect.js +9 -33
  280. package/dist/alphalib/types/robots/image-copyrightdetect.js.map +1 -1
  281. package/dist/alphalib/types/robots/image-describe.d.ts +80 -67
  282. package/dist/alphalib/types/robots/image-describe.d.ts.map +1 -1
  283. package/dist/alphalib/types/robots/image-describe.js +8 -37
  284. package/dist/alphalib/types/robots/image-describe.js.map +1 -1
  285. package/dist/alphalib/types/robots/image-enhance.d.ts +80 -67
  286. package/dist/alphalib/types/robots/image-enhance.d.ts.map +1 -1
  287. package/dist/alphalib/types/robots/image-enhance.js +7 -31
  288. package/dist/alphalib/types/robots/image-enhance.js.map +1 -1
  289. package/dist/alphalib/types/robots/image-facedetect.d.ts +88 -75
  290. package/dist/alphalib/types/robots/image-facedetect.d.ts.map +1 -1
  291. package/dist/alphalib/types/robots/image-facedetect.js +16 -44
  292. package/dist/alphalib/types/robots/image-facedetect.js.map +1 -1
  293. package/dist/alphalib/types/robots/image-generate.d.ts +96 -86
  294. package/dist/alphalib/types/robots/image-generate.d.ts.map +1 -1
  295. package/dist/alphalib/types/robots/image-generate.js +17 -22
  296. package/dist/alphalib/types/robots/image-generate.js.map +1 -1
  297. package/dist/alphalib/types/robots/image-merge.d.ts +96 -83
  298. package/dist/alphalib/types/robots/image-merge.d.ts.map +1 -1
  299. package/dist/alphalib/types/robots/image-merge.js +9 -40
  300. package/dist/alphalib/types/robots/image-merge.js.map +1 -1
  301. package/dist/alphalib/types/robots/image-ocr.d.ts +80 -67
  302. package/dist/alphalib/types/robots/image-ocr.d.ts.map +1 -1
  303. package/dist/alphalib/types/robots/image-ocr.js +11 -47
  304. package/dist/alphalib/types/robots/image-ocr.js.map +1 -1
  305. package/dist/alphalib/types/robots/image-optimize.d.ts +88 -75
  306. package/dist/alphalib/types/robots/image-optimize.d.ts.map +1 -1
  307. package/dist/alphalib/types/robots/image-optimize.js +6 -32
  308. package/dist/alphalib/types/robots/image-optimize.js.map +1 -1
  309. package/dist/alphalib/types/robots/image-resize.d.ts +217 -112
  310. package/dist/alphalib/types/robots/image-resize.d.ts.map +1 -1
  311. package/dist/alphalib/types/robots/image-resize.js +15 -42
  312. package/dist/alphalib/types/robots/image-resize.js.map +1 -1
  313. package/dist/alphalib/types/robots/image-upscale.d.ts +97 -81
  314. package/dist/alphalib/types/robots/image-upscale.d.ts.map +1 -1
  315. package/dist/alphalib/types/robots/image-upscale.js +23 -42
  316. package/dist/alphalib/types/robots/image-upscale.js.map +1 -1
  317. package/dist/alphalib/types/robots/mega-import.d.ts +48 -35
  318. package/dist/alphalib/types/robots/mega-import.d.ts.map +1 -1
  319. package/dist/alphalib/types/robots/mega-import.js +12 -59
  320. package/dist/alphalib/types/robots/mega-import.js.map +1 -1
  321. package/dist/alphalib/types/robots/mega-store.d.ts +80 -67
  322. package/dist/alphalib/types/robots/mega-store.d.ts.map +1 -1
  323. package/dist/alphalib/types/robots/mega-store.js +14 -60
  324. package/dist/alphalib/types/robots/mega-store.js.map +1 -1
  325. package/dist/alphalib/types/robots/meta-read.d.ts +30 -16
  326. package/dist/alphalib/types/robots/meta-read.d.ts.map +1 -1
  327. package/dist/alphalib/types/robots/meta-read.js +4 -20
  328. package/dist/alphalib/types/robots/meta-read.js.map +1 -1
  329. package/dist/alphalib/types/robots/meta-write.d.ts +80 -67
  330. package/dist/alphalib/types/robots/meta-write.d.ts.map +1 -1
  331. package/dist/alphalib/types/robots/meta-write.js +9 -32
  332. package/dist/alphalib/types/robots/meta-write.js.map +1 -1
  333. package/dist/alphalib/types/robots/minio-import.d.ts +48 -35
  334. package/dist/alphalib/types/robots/minio-import.d.ts.map +1 -1
  335. package/dist/alphalib/types/robots/minio-import.js +9 -60
  336. package/dist/alphalib/types/robots/minio-import.js.map +1 -1
  337. package/dist/alphalib/types/robots/minio-store.d.ts +80 -67
  338. package/dist/alphalib/types/robots/minio-store.d.ts.map +1 -1
  339. package/dist/alphalib/types/robots/minio-store.js +9 -50
  340. package/dist/alphalib/types/robots/minio-store.js.map +1 -1
  341. package/dist/alphalib/types/robots/progress-simulate.d.ts +34 -28
  342. package/dist/alphalib/types/robots/progress-simulate.d.ts.map +1 -1
  343. package/dist/alphalib/types/robots/progress-simulate.js +8 -28
  344. package/dist/alphalib/types/robots/progress-simulate.js.map +1 -1
  345. package/dist/alphalib/types/robots/s3-import.d.ts +48 -35
  346. package/dist/alphalib/types/robots/s3-import.d.ts.map +1 -1
  347. package/dist/alphalib/types/robots/s3-import.js +7 -38
  348. package/dist/alphalib/types/robots/s3-import.js.map +1 -1
  349. package/dist/alphalib/types/robots/s3-store.d.ts +84 -68
  350. package/dist/alphalib/types/robots/s3-store.d.ts.map +1 -1
  351. package/dist/alphalib/types/robots/s3-store.js +14 -44
  352. package/dist/alphalib/types/robots/s3-store.js.map +1 -1
  353. package/dist/alphalib/types/robots/script-run.d.ts +83 -67
  354. package/dist/alphalib/types/robots/script-run.d.ts.map +1 -1
  355. package/dist/alphalib/types/robots/script-run.js +9 -27
  356. package/dist/alphalib/types/robots/script-run.js.map +1 -1
  357. package/dist/alphalib/types/robots/sftp-import.d.ts +51 -35
  358. package/dist/alphalib/types/robots/sftp-import.d.ts.map +1 -1
  359. package/dist/alphalib/types/robots/sftp-import.js +7 -36
  360. package/dist/alphalib/types/robots/sftp-import.js.map +1 -1
  361. package/dist/alphalib/types/robots/sftp-store.d.ts +83 -67
  362. package/dist/alphalib/types/robots/sftp-store.d.ts.map +1 -1
  363. package/dist/alphalib/types/robots/sftp-store.js +9 -41
  364. package/dist/alphalib/types/robots/sftp-store.js.map +1 -1
  365. package/dist/alphalib/types/robots/speech-transcribe.d.ts +102 -85
  366. package/dist/alphalib/types/robots/speech-transcribe.d.ts.map +1 -1
  367. package/dist/alphalib/types/robots/speech-transcribe.js +23 -44
  368. package/dist/alphalib/types/robots/speech-transcribe.js.map +1 -1
  369. package/dist/alphalib/types/robots/supabase-import.d.ts +48 -35
  370. package/dist/alphalib/types/robots/supabase-import.d.ts.map +1 -1
  371. package/dist/alphalib/types/robots/supabase-import.js +12 -59
  372. package/dist/alphalib/types/robots/supabase-import.js.map +1 -1
  373. package/dist/alphalib/types/robots/supabase-store.d.ts +80 -79
  374. package/dist/alphalib/types/robots/supabase-store.d.ts.map +1 -1
  375. package/dist/alphalib/types/robots/supabase-store.js +12 -56
  376. package/dist/alphalib/types/robots/supabase-store.js.map +1 -1
  377. package/dist/alphalib/types/robots/swift-import.d.ts +48 -47
  378. package/dist/alphalib/types/robots/swift-import.d.ts.map +1 -1
  379. package/dist/alphalib/types/robots/swift-import.js +14 -55
  380. package/dist/alphalib/types/robots/swift-import.js.map +1 -1
  381. package/dist/alphalib/types/robots/swift-store.d.ts +80 -79
  382. package/dist/alphalib/types/robots/swift-store.d.ts.map +1 -1
  383. package/dist/alphalib/types/robots/swift-store.js +14 -62
  384. package/dist/alphalib/types/robots/swift-store.js.map +1 -1
  385. package/dist/alphalib/types/robots/text-speak.d.ts +80 -67
  386. package/dist/alphalib/types/robots/text-speak.d.ts.map +1 -1
  387. package/dist/alphalib/types/robots/text-speak.js +11 -37
  388. package/dist/alphalib/types/robots/text-speak.js.map +1 -1
  389. package/dist/alphalib/types/robots/text-translate.d.ts +92 -79
  390. package/dist/alphalib/types/robots/text-translate.d.ts.map +1 -1
  391. package/dist/alphalib/types/robots/text-translate.js +9 -36
  392. package/dist/alphalib/types/robots/text-translate.js.map +1 -1
  393. package/dist/alphalib/types/robots/tigris-import.d.ts +48 -35
  394. package/dist/alphalib/types/robots/tigris-import.d.ts.map +1 -1
  395. package/dist/alphalib/types/robots/tigris-import.js +9 -60
  396. package/dist/alphalib/types/robots/tigris-import.js.map +1 -1
  397. package/dist/alphalib/types/robots/tigris-store.d.ts +80 -67
  398. package/dist/alphalib/types/robots/tigris-store.d.ts.map +1 -1
  399. package/dist/alphalib/types/robots/tigris-store.js +7 -48
  400. package/dist/alphalib/types/robots/tigris-store.js.map +1 -1
  401. package/dist/alphalib/types/robots/tlcdn-deliver.d.ts +32 -19
  402. package/dist/alphalib/types/robots/tlcdn-deliver.d.ts.map +1 -1
  403. package/dist/alphalib/types/robots/tlcdn-deliver.js +4 -25
  404. package/dist/alphalib/types/robots/tlcdn-deliver.js.map +1 -1
  405. package/dist/alphalib/types/robots/transloadit-import.d.ts +58 -45
  406. package/dist/alphalib/types/robots/transloadit-import.d.ts.map +1 -1
  407. package/dist/alphalib/types/robots/transloadit-import.js +17 -21
  408. package/dist/alphalib/types/robots/transloadit-import.js.map +1 -1
  409. package/dist/alphalib/types/robots/transloadit-store.d.ts +70 -57
  410. package/dist/alphalib/types/robots/transloadit-store.d.ts.map +1 -1
  411. package/dist/alphalib/types/robots/transloadit-store.js +14 -6
  412. package/dist/alphalib/types/robots/transloadit-store.js.map +1 -1
  413. package/dist/alphalib/types/robots/tus-store.d.ts +84 -71
  414. package/dist/alphalib/types/robots/tus-store.d.ts.map +1 -1
  415. package/dist/alphalib/types/robots/tus-store.js +8 -37
  416. package/dist/alphalib/types/robots/tus-store.js.map +1 -1
  417. package/dist/alphalib/types/robots/upload-handle.d.ts +32 -19
  418. package/dist/alphalib/types/robots/upload-handle.d.ts.map +1 -1
  419. package/dist/alphalib/types/robots/upload-handle.js +4 -19
  420. package/dist/alphalib/types/robots/upload-handle.js.map +1 -1
  421. package/dist/alphalib/types/robots/video-adaptive.d.ts +112 -99
  422. package/dist/alphalib/types/robots/video-adaptive.d.ts.map +1 -1
  423. package/dist/alphalib/types/robots/video-adaptive.js +4 -26
  424. package/dist/alphalib/types/robots/video-adaptive.js.map +1 -1
  425. package/dist/alphalib/types/robots/video-artwork.d.ts +80 -67
  426. package/dist/alphalib/types/robots/video-artwork.d.ts.map +1 -1
  427. package/dist/alphalib/types/robots/video-artwork.js +7 -32
  428. package/dist/alphalib/types/robots/video-artwork.js.map +1 -1
  429. package/dist/alphalib/types/robots/video-concat.d.ts +104 -91
  430. package/dist/alphalib/types/robots/video-concat.d.ts.map +1 -1
  431. package/dist/alphalib/types/robots/video-concat.js +6 -27
  432. package/dist/alphalib/types/robots/video-concat.js.map +1 -1
  433. package/dist/alphalib/types/robots/video-encode.d.ts +121 -103
  434. package/dist/alphalib/types/robots/video-encode.d.ts.map +1 -1
  435. package/dist/alphalib/types/robots/video-encode.js +13 -38
  436. package/dist/alphalib/types/robots/video-encode.js.map +1 -1
  437. package/dist/alphalib/types/robots/video-generate.d.ts +96 -86
  438. package/dist/alphalib/types/robots/video-generate.d.ts.map +1 -1
  439. package/dist/alphalib/types/robots/video-generate.js +11 -18
  440. package/dist/alphalib/types/robots/video-generate.js.map +1 -1
  441. package/dist/alphalib/types/robots/video-merge.d.ts +135 -119
  442. package/dist/alphalib/types/robots/video-merge.d.ts.map +1 -1
  443. package/dist/alphalib/types/robots/video-merge.js +12 -32
  444. package/dist/alphalib/types/robots/video-merge.js.map +1 -1
  445. package/dist/alphalib/types/robots/video-ondemand.d.ts +156 -139
  446. package/dist/alphalib/types/robots/video-ondemand.d.ts.map +1 -1
  447. package/dist/alphalib/types/robots/video-ondemand.js +11 -27
  448. package/dist/alphalib/types/robots/video-ondemand.js.map +1 -1
  449. package/dist/alphalib/types/robots/video-split.d.ts +104 -91
  450. package/dist/alphalib/types/robots/video-split.d.ts.map +1 -1
  451. package/dist/alphalib/types/robots/video-split.js +11 -39
  452. package/dist/alphalib/types/robots/video-split.js.map +1 -1
  453. package/dist/alphalib/types/robots/video-subtitle.d.ts +104 -91
  454. package/dist/alphalib/types/robots/video-subtitle.d.ts.map +1 -1
  455. package/dist/alphalib/types/robots/video-subtitle.js +7 -30
  456. package/dist/alphalib/types/robots/video-subtitle.js.map +1 -1
  457. package/dist/alphalib/types/robots/video-thumbs.d.ts +112 -95
  458. package/dist/alphalib/types/robots/video-thumbs.d.ts.map +1 -1
  459. package/dist/alphalib/types/robots/video-thumbs.js +46 -53
  460. package/dist/alphalib/types/robots/video-thumbs.js.map +1 -1
  461. package/dist/alphalib/types/robots/vimeo-import.d.ts +30 -17
  462. package/dist/alphalib/types/robots/vimeo-import.d.ts.map +1 -1
  463. package/dist/alphalib/types/robots/vimeo-import.js +7 -17
  464. package/dist/alphalib/types/robots/vimeo-import.js.map +1 -1
  465. package/dist/alphalib/types/robots/vimeo-store.d.ts +83 -67
  466. package/dist/alphalib/types/robots/vimeo-store.d.ts.map +1 -1
  467. package/dist/alphalib/types/robots/vimeo-store.js +11 -37
  468. package/dist/alphalib/types/robots/vimeo-store.js.map +1 -1
  469. package/dist/alphalib/types/robots/wasabi-import.d.ts +48 -35
  470. package/dist/alphalib/types/robots/wasabi-import.d.ts.map +1 -1
  471. package/dist/alphalib/types/robots/wasabi-import.js +9 -56
  472. package/dist/alphalib/types/robots/wasabi-import.js.map +1 -1
  473. package/dist/alphalib/types/robots/wasabi-store.d.ts +80 -67
  474. package/dist/alphalib/types/robots/wasabi-store.d.ts.map +1 -1
  475. package/dist/alphalib/types/robots/wasabi-store.js +10 -52
  476. package/dist/alphalib/types/robots/wasabi-store.js.map +1 -1
  477. package/dist/alphalib/types/robots/youtube-store.d.ts +98 -85
  478. package/dist/alphalib/types/robots/youtube-store.d.ts.map +1 -1
  479. package/dist/alphalib/types/robots/youtube-store.js +42 -63
  480. package/dist/alphalib/types/robots/youtube-store.js.map +1 -1
  481. package/dist/alphalib/types/stackVersions.d.ts +40 -1
  482. package/dist/alphalib/types/stackVersions.d.ts.map +1 -1
  483. package/dist/alphalib/types/stackVersions.js +25 -3
  484. package/dist/alphalib/types/stackVersions.js.map +1 -1
  485. package/dist/alphalib/types/storageAsset.d.ts +28 -22
  486. package/dist/alphalib/types/storageAsset.d.ts.map +1 -1
  487. package/dist/alphalib/types/storageAsset.js +30 -12
  488. package/dist/alphalib/types/storageAsset.js.map +1 -1
  489. package/dist/alphalib/types/storageResults.d.ts +29 -0
  490. package/dist/alphalib/types/storageResults.d.ts.map +1 -0
  491. package/dist/alphalib/types/storageResults.js +53 -0
  492. package/dist/alphalib/types/storageResults.js.map +1 -0
  493. package/dist/alphalib/types/template.d.ts +16 -16
  494. package/dist/alphalib/types/templateCredential.d.ts +2 -2
  495. package/dist/alphalib/types/utility.d.ts +22 -0
  496. package/dist/alphalib/types/utility.d.ts.map +1 -0
  497. package/dist/alphalib/types/utility.js +2 -0
  498. package/dist/alphalib/types/utility.js.map +1 -0
  499. package/dist/storageResults.d.ts +2 -13
  500. package/dist/storageResults.d.ts.map +1 -1
  501. package/dist/storageResults.js +9 -34
  502. package/dist/storageResults.js.map +1 -1
  503. package/package.json +1 -2
  504. package/src/ApiError.ts +11 -4
  505. package/src/Transloadit.ts +6 -3
  506. package/src/alphalib/aiMessages.ts +554 -0
  507. package/src/alphalib/assembly-linter.ts +9 -2
  508. package/src/alphalib/englishList.ts +11 -0
  509. package/src/alphalib/errors.ts +159 -13
  510. package/src/alphalib/imagemagickDensity.ts +2 -1
  511. package/src/alphalib/lib/zodInputSemantics.ts +114 -0
  512. package/src/alphalib/object.ts +178 -3
  513. package/src/alphalib/stepParsing.ts +10 -2
  514. package/src/alphalib/types/apiParameterDescription.ts +41 -0
  515. package/src/alphalib/types/assemblyStatus.ts +115 -83
  516. package/src/alphalib/types/errorReason.ts +14 -0
  517. package/src/alphalib/types/file.ts +18 -0
  518. package/src/alphalib/types/fileHash.ts +10 -0
  519. package/src/alphalib/types/responseErrors/HttpImportRobot.ts +22 -0
  520. package/src/alphalib/types/robots/_ai-models.ts +91 -0
  521. package/src/alphalib/types/robots/_index.ts +14 -0
  522. package/src/alphalib/types/robots/_instructions-primitives.ts +839 -308
  523. package/src/alphalib/types/robots/ai-chat.ts +358 -460
  524. package/src/alphalib/types/robots/assembly-savejson.ts +2 -11
  525. package/src/alphalib/types/robots/audio-artwork.ts +35 -61
  526. package/src/alphalib/types/robots/audio-concat.ts +17 -25
  527. package/src/alphalib/types/robots/audio-encode.ts +35 -65
  528. package/src/alphalib/types/robots/audio-loop.ts +34 -61
  529. package/src/alphalib/types/robots/audio-merge.ts +17 -25
  530. package/src/alphalib/types/robots/audio-split.ts +37 -67
  531. package/src/alphalib/types/robots/audio-waveform.ts +42 -65
  532. package/src/alphalib/types/robots/azure-import.ts +26 -57
  533. package/src/alphalib/types/robots/azure-store.ts +48 -72
  534. package/src/alphalib/types/robots/backblaze-import.ts +30 -63
  535. package/src/alphalib/types/robots/backblaze-store.ts +37 -66
  536. package/src/alphalib/types/robots/box-import.ts +32 -55
  537. package/src/alphalib/types/robots/box-store.ts +40 -63
  538. package/src/alphalib/types/robots/cloudfiles-import.ts +34 -70
  539. package/src/alphalib/types/robots/cloudfiles-store.ts +28 -59
  540. package/src/alphalib/types/robots/cloudflare-import.ts +37 -83
  541. package/src/alphalib/types/robots/cloudflare-store.ts +37 -77
  542. package/src/alphalib/types/robots/digitalocean-import.ts +35 -75
  543. package/src/alphalib/types/robots/digitalocean-store.ts +35 -79
  544. package/src/alphalib/types/robots/document-autorotate.ts +36 -58
  545. package/src/alphalib/types/robots/document-convert.ts +37 -59
  546. package/src/alphalib/types/robots/document-extract.ts +45 -62
  547. package/src/alphalib/types/robots/document-merge.ts +25 -47
  548. package/src/alphalib/types/robots/document-ocr.ts +32 -70
  549. package/src/alphalib/types/robots/document-optimize.ts +38 -57
  550. package/src/alphalib/types/robots/document-split.ts +33 -56
  551. package/src/alphalib/types/robots/document-thumbs.ts +66 -67
  552. package/src/alphalib/types/robots/dropbox-import.ts +27 -57
  553. package/src/alphalib/types/robots/dropbox-store.ts +39 -65
  554. package/src/alphalib/types/robots/edgly-deliver.ts +26 -49
  555. package/src/alphalib/types/robots/file-compress.ts +31 -45
  556. package/src/alphalib/types/robots/file-decompress.ts +41 -68
  557. package/src/alphalib/types/robots/file-filter.ts +36 -65
  558. package/src/alphalib/types/robots/file-hash.ts +37 -64
  559. package/src/alphalib/types/robots/file-preview.ts +39 -65
  560. package/src/alphalib/types/robots/file-read.ts +33 -50
  561. package/src/alphalib/types/robots/file-serve.ts +32 -46
  562. package/src/alphalib/types/robots/file-verify.ts +37 -63
  563. package/src/alphalib/types/robots/file-virusscan.ts +49 -67
  564. package/src/alphalib/types/robots/file-watermark.ts +35 -54
  565. package/src/alphalib/types/robots/ftp-import.ts +26 -54
  566. package/src/alphalib/types/robots/ftp-store.ts +44 -63
  567. package/src/alphalib/types/robots/google-import.ts +32 -66
  568. package/src/alphalib/types/robots/google-store.ts +37 -63
  569. package/src/alphalib/types/robots/html-convert.ts +38 -49
  570. package/src/alphalib/types/robots/http-import.ts +21 -19
  571. package/src/alphalib/types/robots/http-request.ts +196 -0
  572. package/src/alphalib/types/robots/image-bgremove.ts +28 -55
  573. package/src/alphalib/types/robots/image-copyrightdetect.ts +38 -56
  574. package/src/alphalib/types/robots/image-describe.ts +31 -60
  575. package/src/alphalib/types/robots/image-enhance.ts +30 -56
  576. package/src/alphalib/types/robots/image-facedetect.ts +43 -71
  577. package/src/alphalib/types/robots/image-generate.ts +29 -22
  578. package/src/alphalib/types/robots/image-merge.ts +34 -65
  579. package/src/alphalib/types/robots/image-ocr.ts +33 -69
  580. package/src/alphalib/types/robots/image-optimize.ts +28 -54
  581. package/src/alphalib/types/robots/image-resize.ts +72 -96
  582. package/src/alphalib/types/robots/image-upscale.ts +52 -64
  583. package/src/alphalib/types/robots/mega-import.ts +36 -84
  584. package/src/alphalib/types/robots/mega-store.ts +44 -81
  585. package/src/alphalib/types/robots/meta-read.ts +21 -36
  586. package/src/alphalib/types/robots/meta-write.ts +35 -53
  587. package/src/alphalib/types/robots/minio-import.ts +34 -86
  588. package/src/alphalib/types/robots/minio-store.ts +37 -72
  589. package/src/alphalib/types/robots/progress-simulate.ts +14 -28
  590. package/src/alphalib/types/robots/s3-import.ts +32 -63
  591. package/src/alphalib/types/robots/s3-store.ts +53 -74
  592. package/src/alphalib/types/robots/script-run.ts +44 -55
  593. package/src/alphalib/types/robots/sftp-import.ts +34 -61
  594. package/src/alphalib/types/robots/sftp-store.ts +42 -65
  595. package/src/alphalib/types/robots/speech-transcribe.ts +53 -71
  596. package/src/alphalib/types/robots/supabase-import.ts +37 -84
  597. package/src/alphalib/types/robots/supabase-store.ts +41 -78
  598. package/src/alphalib/types/robots/swift-import.ts +38 -80
  599. package/src/alphalib/types/robots/swift-store.ts +44 -84
  600. package/src/alphalib/types/robots/text-speak.ts +36 -62
  601. package/src/alphalib/types/robots/text-translate.ts +35 -62
  602. package/src/alphalib/types/robots/tigris-import.ts +34 -86
  603. package/src/alphalib/types/robots/tigris-store.ts +35 -70
  604. package/src/alphalib/types/robots/tlcdn-deliver.ts +23 -47
  605. package/src/alphalib/types/robots/transloadit-import.ts +24 -29
  606. package/src/alphalib/types/robots/transloadit-store.ts +20 -7
  607. package/src/alphalib/types/robots/tus-store.ts +34 -58
  608. package/src/alphalib/types/robots/upload-handle.ts +23 -41
  609. package/src/alphalib/types/robots/video-adaptive.ts +28 -51
  610. package/src/alphalib/types/robots/video-artwork.ts +28 -54
  611. package/src/alphalib/types/robots/video-concat.ts +29 -52
  612. package/src/alphalib/types/robots/video-encode.ts +39 -62
  613. package/src/alphalib/types/robots/video-generate.ts +20 -18
  614. package/src/alphalib/types/robots/video-merge.ts +36 -55
  615. package/src/alphalib/types/robots/video-ondemand.ts +48 -62
  616. package/src/alphalib/types/robots/video-split.ts +32 -61
  617. package/src/alphalib/types/robots/video-subtitle.ts +30 -52
  618. package/src/alphalib/types/robots/video-thumbs.ts +74 -78
  619. package/src/alphalib/types/robots/vimeo-import.ts +12 -17
  620. package/src/alphalib/types/robots/vimeo-store.ts +46 -65
  621. package/src/alphalib/types/robots/wasabi-import.ts +33 -81
  622. package/src/alphalib/types/robots/wasabi-store.ts +38 -74
  623. package/src/alphalib/types/robots/youtube-store.ts +81 -91
  624. package/src/alphalib/types/stackVersions.ts +26 -3
  625. package/src/alphalib/types/storageAsset.ts +84 -36
  626. package/src/alphalib/types/storageResults.ts +75 -0
  627. package/src/alphalib/types/utility.ts +52 -0
  628. package/src/storageResults.ts +19 -56
@@ -1,57 +1,37 @@
1
- import type { RobotMetaInput } from './_instructions-primitives.ts'
1
+ import type {
2
+ RobotDefinition,
3
+ RobotMetaInput,
4
+ RobotSchemaVariantTypes,
5
+ } from './_instructions-primitives.ts'
2
6
 
3
7
  import { z } from 'zod'
4
8
 
5
9
  import {
6
- files_per_page,
7
- interpolateRobot,
10
+ bucketImportPath,
11
+ createStorageImportExample,
12
+ defineRobot,
8
13
  megaBase,
9
- page_number,
10
- path,
11
14
  recursive,
15
+ recursiveImportPageNumber,
16
+ recursiveImportPageSize,
12
17
  return_file_stubs,
13
18
  robotBase,
14
19
  robotImport,
20
+ robotImportMeta,
15
21
  } from './_instructions-primitives.ts'
16
22
 
17
23
  export const meta: RobotMetaInput = {
18
- bytescount: 10,
19
- discount_factor: 0.1,
20
- discount_pct: 90,
21
- example_code: {
22
- steps: {
23
- imported: {
24
- robot: '/mega/import',
25
- credentials: 'YOUR_MEGA_CREDENTIALS',
26
- path: 'path/to/files/',
27
- recursive: true,
28
- },
29
- },
30
- },
24
+ ...robotImportMeta,
25
+ example_code: createStorageImportExample('/mega/import', 'YOUR_MEGA_CREDENTIALS'),
31
26
  example_code_description:
32
27
  'Import files from the `path/to/files` directory and its subdirectories:',
33
28
  has_small_icon: true,
34
- minimum_charge: 0,
35
- output_factor: 1,
36
- override_lvl1: 'File Importing',
37
- purpose_sentence: 'imports whole directories of files from your MEGA object storage bucket',
38
- purpose_verb: 'import',
39
- purpose_word: 'MEGA',
40
- purpose_words: 'Import files from MEGA',
29
+ purpose_sentence: 'imports whole directories of files from your MEGA S4 Object Storage bucket',
30
+ purpose_word: 'MEGA S4 Object Storage',
31
+ purpose_words: 'Import files from MEGA S4 Object Storage',
41
32
  requires_credentials: true,
42
- service_slug: 'file-importing',
43
- slot_count: 20,
44
- title: 'Import files from MEGA',
45
- typical_file_size_mb: 1.2,
46
- typical_file_type: 'file',
33
+ title: 'Import files from MEGA S4 Object Storage',
47
34
  name: 'MegaImportRobot',
48
- priceFactor: 6.6666,
49
- queueSlotCount: 20,
50
- isAllowedForUrlTransform: true,
51
- trackOutputFileSize: false,
52
- isInternal: false,
53
- removeJobResultFilesFromDiskRightAfterStoringOnS3: true,
54
- stage: 'ga',
55
35
  }
56
36
 
57
37
  export const robotMegaImportInstructionsSchema = robotBase
@@ -63,62 +43,34 @@ export const robotMegaImportInstructionsSchema = robotBase
63
43
  .optional()
64
44
  .describe('Whether the results of this Step should be present in the Assembly Status JSON'),
65
45
  robot: z.literal('/mega/import'),
66
- path: path.describe(`
67
- 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\`.
68
-
69
- 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/\`.
70
-
71
- Directories are **not** imported recursively. If you want to import files from subdirectories and sub-subdirectories, enable the \`recursive\` parameter.
72
-
73
- If you want to import all files from the root directory, please use \`/\` as the value here. In this case, make sure all your objects belong to a path. If you have objects in the root of your bucket that aren't prefixed with \`/\`, you'll receive an error: \`A client error (NoSuchKey) occurred when calling the GetObject operation: The specified key does not exist.\`
74
-
75
- You can also use an array of path strings here to import multiple paths in the same <dfn>Robot</dfn>'s <dfn>Step</dfn>.
76
- `),
46
+ path: bucketImportPath,
77
47
  recursive: recursive.describe(`
78
48
  Setting this to \`true\` will enable importing files from subfolders and sub-subfolders, etc. of the given path.
79
49
 
80
50
  Please use the pagination parameters \`page_number\` and \`files_per_page\` wisely here.
81
51
  `),
82
- page_number: page_number.describe(`
83
- The pagination page number. For now, in order to not break backwards compatibility in non-recursive imports, this only works when recursive is set to \`true\`.
84
-
85
- When doing big imports, make sure no files are added or removed from other scripts within your path, otherwise you might get weird results with the pagination.
86
- `),
87
- files_per_page: files_per_page.describe(`
88
- The pagination page size. This only works when recursive is \`true\` for now, in order to not break backwards compatibility in non-recursive imports.
89
- `),
52
+ page_number: recursiveImportPageNumber,
53
+ files_per_page: recursiveImportPageSize,
90
54
  return_file_stubs,
91
55
  })
92
56
  .strict()
93
57
 
94
- export const robotMegaImportInstructionsWithHiddenFieldsSchema =
95
- robotMegaImportInstructionsSchema.extend({
96
- result: z
97
- .union([z.literal('debug'), robotMegaImportInstructionsSchema.shape.result])
98
- .optional(),
99
- })
100
-
101
- export type RobotMegaImportInstructions = z.infer<typeof robotMegaImportInstructionsSchema>
102
- export type RobotMegaImportInstructionsWithHiddenFields = z.infer<
103
- typeof robotMegaImportInstructionsWithHiddenFieldsSchema
104
- >
58
+ export const robotDefinition: RobotDefinition<typeof robotMegaImportInstructionsSchema.shape> =
59
+ defineRobot(meta, robotMegaImportInstructionsSchema)
105
60
 
106
- export const interpolatableRobotMegaImportInstructionsSchema = interpolateRobot(
107
- robotMegaImportInstructionsSchema,
108
- )
109
- export type InterpolatableRobotMegaImportInstructions =
110
- InterpolatableRobotMegaImportInstructionsInput
61
+ export const {
62
+ withHiddenFields: robotMegaImportInstructionsWithHiddenFieldsSchema,
63
+ interpolatable: interpolatableRobotMegaImportInstructionsSchema,
64
+ interpolatableWithHiddenFields: interpolatableRobotMegaImportInstructionsWithHiddenFieldsSchema,
65
+ } = robotDefinition
111
66
 
112
- export type InterpolatableRobotMegaImportInstructionsInput = z.input<
113
- typeof interpolatableRobotMegaImportInstructionsSchema
114
- >
67
+ type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
115
68
 
116
- export const interpolatableRobotMegaImportInstructionsWithHiddenFieldsSchema = interpolateRobot(
117
- robotMegaImportInstructionsWithHiddenFieldsSchema,
118
- )
119
- export type InterpolatableRobotMegaImportInstructionsWithHiddenFields = z.infer<
120
- typeof interpolatableRobotMegaImportInstructionsWithHiddenFieldsSchema
121
- >
122
- export type InterpolatableRobotMegaImportInstructionsWithHiddenFieldsInput = z.input<
123
- typeof interpolatableRobotMegaImportInstructionsWithHiddenFieldsSchema
124
- >
69
+ export type RobotMegaImportInstructions = Instructions['output']
70
+ export type RobotMegaImportInstructionsWithHiddenFields = Instructions['hiddenOutput']
71
+ export type InterpolatableRobotMegaImportInstructions = Instructions['interpolatableInput']
72
+ export type InterpolatableRobotMegaImportInstructionsInput = Instructions['interpolatableInput']
73
+ export type InterpolatableRobotMegaImportInstructionsWithHiddenFields =
74
+ Instructions['interpolatableHiddenOutput']
75
+ export type InterpolatableRobotMegaImportInstructionsWithHiddenFieldsInput =
76
+ Instructions['interpolatableHiddenInput']
@@ -1,45 +1,34 @@
1
- import type { RobotMetaInput } from './_instructions-primitives.ts'
1
+ import type {
2
+ RobotDefinition,
3
+ RobotMetaInput,
4
+ RobotSchemaVariantTypes,
5
+ } from './_instructions-primitives.ts'
2
6
 
3
7
  import { z } from 'zod'
4
8
 
5
- import { interpolateRobot, megaBase, robotBase, robotUse } from './_instructions-primitives.ts'
9
+ import {
10
+ createStorageStoreExample,
11
+ defineRobot,
12
+ megaBase,
13
+ robotBase,
14
+ robotStoreMeta,
15
+ robotUse,
16
+ signedSslUrlLifetime,
17
+ storageAcl,
18
+ storeFilePath,
19
+ } from './_instructions-primitives.ts'
6
20
 
7
21
  export const meta: RobotMetaInput = {
8
- bytescount: 6,
9
- discount_factor: 0.15000150001500018,
10
- discount_pct: 84.99984999849998,
11
- example_code: {
12
- steps: {
13
- exported: {
14
- robot: '/mega/store',
15
- use: ':original',
16
- credentials: 'YOUR_MEGA_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 MEGA object storage:',
22
+ ...robotStoreMeta,
23
+ example_code: createStorageStoreExample('/mega/store', 'YOUR_MEGA_CREDENTIALS'),
24
+ example_code_description:
25
+ 'Export uploaded files to `my_target_folder` in a MEGA S4 Object Storage bucket:',
22
26
  has_small_icon: true,
23
- minimum_charge: 0,
24
- output_factor: 1,
25
- override_lvl1: 'File Exporting',
26
- purpose_sentence: 'exports encoding results to MEGA object storage buckets',
27
- purpose_verb: 'export',
28
- purpose_word: 'MEGA',
29
- purpose_words: 'Export files to MEGA',
30
- service_slug: 'file-exporting',
31
- slot_count: 10,
32
- title: 'Export files to MEGA',
33
- typical_file_size_mb: 1.2,
34
- typical_file_type: 'file',
27
+ purpose_sentence: 'exports encoding results to MEGA S4 Object Storage buckets',
28
+ purpose_word: 'MEGA S4 Object Storage',
29
+ purpose_words: 'Export files to MEGA S4 Object Storage',
30
+ title: 'Export files to MEGA S4 Object Storage',
35
31
  name: 'MegaStoreRobot',
36
- priceFactor: 6.6666,
37
- queueSlotCount: 10,
38
- isAllowedForUrlTransform: true,
39
- trackOutputFileSize: false,
40
- isInternal: false,
41
- removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
42
- stage: 'ga',
43
32
  }
44
33
 
45
34
  export const robotMegaStoreInstructionsSchema = robotBase
@@ -49,62 +38,36 @@ export const robotMegaStoreInstructionsSchema = robotBase
49
38
  robot: z.literal('/mega/store').describe(`
50
39
  The URL to the result file will be returned in the <dfn>Assembly Status JSON</dfn>.
51
40
  `),
52
- path: z
53
- .string()
54
- .default('${unique_prefix}/${file.url_name}')
55
- .describe(`
56
- The path at which the file is to be stored. This may include any available [Assembly variables](/docs/topics/assembly-instructions/#assembly-variables). The path must not be a directory.
57
- `),
58
- acl: z
59
- .enum(['private', 'public-read'])
60
- .default('public-read')
61
- .describe(`
62
- The permissions used for this file.
63
- `),
41
+ path: storeFilePath,
42
+ acl: storageAcl,
64
43
  headers: z
65
44
  .record(z.string())
66
45
  .default({ 'Content-Type': '${file.mime}' })
67
46
  .describe(`
68
- An object containing a list of headers to be set for this file on MEGA object storage, such as \`{ FileURL: "\${file.url_name}" }\`. This can also include any available [Assembly Variables](/docs/topics/assembly-instructions/#assembly-variables).
47
+ An object containing a list of headers to be set for this file in your MEGA S4 Object Storage bucket, such as \`{ FileURL: "\${file.url_name}" }\`. This can also include any available [Assembly Variables](/docs/topics/assembly-instructions/#assembly-variables).
69
48
 
70
49
  Object Metadata can be specified using \`x-amz-meta-*\` headers. Note that these headers [do not support non-ASCII metadata values](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#UserMetadata).
71
50
  `),
72
- sign_urls_for: z
73
- .number()
74
- .int()
75
- .min(0)
76
- .optional()
77
- .describe(`
78
- This parameter provides signed URLs in the result JSON (in the \`signed_ssl_url\` property). The number that you set this parameter to is the URL expiry time in seconds. If this parameter is not used, no URL signing is done.
79
- `),
51
+ sign_urls_for: signedSslUrlLifetime,
80
52
  })
81
53
  .strict()
82
54
 
83
- export const robotMegaStoreInstructionsWithHiddenFieldsSchema =
84
- robotMegaStoreInstructionsSchema.extend({
85
- result: z.union([z.literal('debug'), robotMegaStoreInstructionsSchema.shape.result]).optional(),
86
- })
87
-
88
- export type RobotMegaStoreInstructions = z.infer<typeof robotMegaStoreInstructionsSchema>
89
- export type RobotMegaStoreInstructionsWithHiddenFields = z.infer<
90
- typeof robotMegaStoreInstructionsWithHiddenFieldsSchema
91
- >
55
+ export const robotDefinition: RobotDefinition<typeof robotMegaStoreInstructionsSchema.shape> =
56
+ defineRobot(meta, robotMegaStoreInstructionsSchema)
92
57
 
93
- export const interpolatableRobotMegaStoreInstructionsSchema = interpolateRobot(
94
- robotMegaStoreInstructionsSchema,
95
- )
96
- export type InterpolatableRobotMegaStoreInstructions = InterpolatableRobotMegaStoreInstructionsInput
58
+ export const {
59
+ withHiddenFields: robotMegaStoreInstructionsWithHiddenFieldsSchema,
60
+ interpolatable: interpolatableRobotMegaStoreInstructionsSchema,
61
+ interpolatableWithHiddenFields: interpolatableRobotMegaStoreInstructionsWithHiddenFieldsSchema,
62
+ } = robotDefinition
97
63
 
98
- export type InterpolatableRobotMegaStoreInstructionsInput = z.input<
99
- typeof interpolatableRobotMegaStoreInstructionsSchema
100
- >
64
+ type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
101
65
 
102
- export const interpolatableRobotMegaStoreInstructionsWithHiddenFieldsSchema = interpolateRobot(
103
- robotMegaStoreInstructionsWithHiddenFieldsSchema,
104
- )
105
- export type InterpolatableRobotMegaStoreInstructionsWithHiddenFields = z.infer<
106
- typeof interpolatableRobotMegaStoreInstructionsWithHiddenFieldsSchema
107
- >
108
- export type InterpolatableRobotMegaStoreInstructionsWithHiddenFieldsInput = z.input<
109
- typeof interpolatableRobotMegaStoreInstructionsWithHiddenFieldsSchema
110
- >
66
+ export type RobotMegaStoreInstructions = Instructions['output']
67
+ export type RobotMegaStoreInstructionsWithHiddenFields = Instructions['hiddenOutput']
68
+ export type InterpolatableRobotMegaStoreInstructions = Instructions['interpolatableInput']
69
+ export type InterpolatableRobotMegaStoreInstructionsInput = Instructions['interpolatableInput']
70
+ export type InterpolatableRobotMegaStoreInstructionsWithHiddenFields =
71
+ Instructions['interpolatableHiddenOutput']
72
+ export type InterpolatableRobotMegaStoreInstructionsWithHiddenFieldsInput =
73
+ Instructions['interpolatableHiddenInput']
@@ -1,14 +1,16 @@
1
- import type { RobotMetaInput } from './_instructions-primitives.ts'
1
+ import type { RobotMetaInput, RobotSchemaVariantTypes } from './_instructions-primitives.ts'
2
2
 
3
3
  import { z } from 'zod'
4
4
 
5
- import { interpolateRobot, robotBase } from './_instructions-primitives.ts'
5
+ import {
6
+ createRobotSchemaVariants,
7
+ robotBase,
8
+ robotMediaCatalogingMeta,
9
+ } from './_instructions-primitives.ts'
6
10
 
7
11
  export const meta: RobotMetaInput = {
12
+ ...robotMediaCatalogingMeta,
8
13
  // api2 tracks /meta/read as a special 1% metadata fee while keeping runtime priceFactor at 0.
9
- bytescount: 100,
10
- discount_factor: 0.01,
11
- discount_pct: 99,
12
14
  example_code: {
13
15
  steps: {
14
16
  metadata: {
@@ -17,26 +19,15 @@ export const meta: RobotMetaInput = {
17
19
  },
18
20
  },
19
21
  example_code_description: 'Read metadata from uploaded files:',
20
- minimum_charge: 0,
21
- output_factor: 1,
22
- override_lvl1: 'Media Cataloging',
23
22
  purpose_sentence: 'reads metadata from uploaded files',
24
23
  purpose_verb: 'read',
25
24
  purpose_word: 'metadata',
26
25
  purpose_words: 'Read file metadata',
27
- service_slug: 'media-cataloging',
28
- slot_count: 15,
29
26
  title: 'Read file metadata',
30
- typical_file_size_mb: 1.2,
31
- typical_file_type: 'file',
32
27
  name: 'MetaReadRobot',
33
28
  priceFactor: 0,
34
- queueSlotCount: 15,
35
- isAllowedForUrlTransform: true,
36
29
  trackOutputFileSize: false,
37
30
  isInternal: true,
38
- stage: 'ga',
39
- removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
40
31
  }
41
32
 
42
33
  export const robotMetaReadInstructionsSchema = robotBase
@@ -47,23 +38,17 @@ export const robotMetaReadInstructionsSchema = robotBase
47
38
 
48
39
  export type RobotMetaReadInstructions = z.infer<typeof robotMetaReadInstructionsSchema>
49
40
 
50
- export const robotMetaReadInstructionsWithHiddenFieldsSchema =
51
- robotMetaReadInstructionsSchema.extend({
52
- result: z.union([z.literal('debug'), robotMetaReadInstructionsSchema.shape.result]).optional(),
53
- })
54
-
55
- export const interpolatableRobotMetaReadInstructionsSchema = interpolateRobot(
56
- robotMetaReadInstructionsSchema,
57
- )
58
- export type InterpolatableRobotMetaReadInstructions = InterpolatableRobotMetaReadInstructionsInput
59
-
60
- export type InterpolatableRobotMetaReadInstructionsInput = z.input<
61
- typeof interpolatableRobotMetaReadInstructionsSchema
62
- >
63
-
64
- export const interpolatableRobotMetaReadInstructionsWithHiddenFieldsSchema = interpolateRobot(
65
- robotMetaReadInstructionsWithHiddenFieldsSchema,
66
- )
67
- export type InterpolatableRobotMetaReadInstructionsWithHiddenFields = z.input<
68
- typeof interpolatableRobotMetaReadInstructionsWithHiddenFieldsSchema
69
- >
41
+ const schemaVariants: ReturnType<
42
+ typeof createRobotSchemaVariants<typeof robotMetaReadInstructionsSchema.shape>
43
+ > = createRobotSchemaVariants(robotMetaReadInstructionsSchema)
44
+ export const {
45
+ withHiddenFields: robotMetaReadInstructionsWithHiddenFieldsSchema,
46
+ interpolatable: interpolatableRobotMetaReadInstructionsSchema,
47
+ interpolatableWithHiddenFields: interpolatableRobotMetaReadInstructionsWithHiddenFieldsSchema,
48
+ } = schemaVariants
49
+ type Instructions = RobotSchemaVariantTypes<typeof schemaVariants>
50
+
51
+ export type InterpolatableRobotMetaReadInstructions = Instructions['interpolatableInput']
52
+ export type InterpolatableRobotMetaReadInstructionsInput = Instructions['interpolatableInput']
53
+ export type InterpolatableRobotMetaReadInstructionsWithHiddenFields =
54
+ Instructions['interpolatableHiddenInput']
@@ -1,48 +1,39 @@
1
- import type { RobotMetaInput } from './_instructions-primitives.ts'
1
+ import type {
2
+ RobotDefinition,
3
+ RobotMetaInput,
4
+ RobotSchemaVariantTypes,
5
+ } from './_instructions-primitives.ts'
2
6
 
3
7
  import { z } from 'zod'
4
8
 
5
9
  import { stackVersions } from '../stackVersions.ts'
6
- import { interpolateRobot, robotBase, robotFFmpeg, robotUse } from './_instructions-primitives.ts'
10
+ import {
11
+ createProcessingExample,
12
+ defineRobot,
13
+ robotBase,
14
+ robotFFmpeg,
15
+ robotMediaCatalogingMeta,
16
+ robotUse,
17
+ } from './_instructions-primitives.ts'
7
18
 
8
19
  export const meta: RobotMetaInput = {
9
- bytescount: 1,
10
- discount_factor: 1,
11
- discount_pct: 0,
12
- example_code: {
13
- steps: {
14
- attributed: {
15
- robot: '/meta/write',
16
- use: ':original',
17
- data_to_write: {
18
- copyright: '© Transloadit',
19
- },
20
- ffmpeg_stack: stackVersions.ffmpeg.recommendedVersion,
21
- },
20
+ ...robotMediaCatalogingMeta,
21
+ example_code: createProcessingExample('attributed', '/meta/write', {
22
+ data_to_write: {
23
+ copyright: '© Transloadit',
22
24
  },
23
- },
25
+ ffmpeg_stack: stackVersions.ffmpeg.recommendedVersion,
26
+ }),
24
27
  example_code_description: 'Add a copyright notice to uploaded images:',
25
- minimum_charge: 0,
26
- output_factor: 1,
27
- override_lvl1: 'Media Cataloging',
28
28
  purpose_sentence: 'writes metadata into files',
29
29
  purpose_verb: 'write',
30
30
  purpose_word: 'write metadata',
31
31
  purpose_words: 'Write metadata to media',
32
- service_slug: 'media-cataloging',
33
- slot_count: 10,
34
32
  title: 'Write metadata to media',
35
- typical_file_size_mb: 1.2,
36
- typical_file_type: 'file',
37
33
  uses_tools: ['ffmpeg'],
38
34
  name: 'MetaWriteRobot',
39
- priceFactor: 1,
40
35
  queueSlotCount: 10,
41
- isAllowedForUrlTransform: true,
42
36
  trackOutputFileSize: true,
43
- isInternal: false,
44
- removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
45
- stage: 'ga',
46
37
  }
47
38
 
48
39
  export const robotMetaWriteInstructionsSchema = robotBase
@@ -63,31 +54,22 @@ Valid metadata keys can be found [here](https://exiftool.org/TagNames/EXIF.html)
63
54
  })
64
55
  .strict()
65
56
 
66
- export const robotMetaWriteInstructionsWithHiddenFieldsSchema =
67
- robotMetaWriteInstructionsSchema.extend({
68
- result: z.union([z.literal('debug'), robotMetaWriteInstructionsSchema.shape.result]).optional(),
69
- })
70
-
71
- export type RobotMetaWriteInstructions = z.infer<typeof robotMetaWriteInstructionsSchema>
72
- export type RobotMetaWriteInstructionsWithHiddenFields = z.infer<
73
- typeof robotMetaWriteInstructionsWithHiddenFieldsSchema
74
- >
57
+ export const robotDefinition: RobotDefinition<typeof robotMetaWriteInstructionsSchema.shape> =
58
+ defineRobot(meta, robotMetaWriteInstructionsSchema)
75
59
 
76
- export const interpolatableRobotMetaWriteInstructionsSchema = interpolateRobot(
77
- robotMetaWriteInstructionsSchema,
78
- )
79
- export type InterpolatableRobotMetaWriteInstructions = InterpolatableRobotMetaWriteInstructionsInput
60
+ export const {
61
+ withHiddenFields: robotMetaWriteInstructionsWithHiddenFieldsSchema,
62
+ interpolatable: interpolatableRobotMetaWriteInstructionsSchema,
63
+ interpolatableWithHiddenFields: interpolatableRobotMetaWriteInstructionsWithHiddenFieldsSchema,
64
+ } = robotDefinition
80
65
 
81
- export type InterpolatableRobotMetaWriteInstructionsInput = z.input<
82
- typeof interpolatableRobotMetaWriteInstructionsSchema
83
- >
66
+ type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
84
67
 
85
- export const interpolatableRobotMetaWriteInstructionsWithHiddenFieldsSchema = interpolateRobot(
86
- robotMetaWriteInstructionsWithHiddenFieldsSchema,
87
- )
88
- export type InterpolatableRobotMetaWriteInstructionsWithHiddenFields = z.infer<
89
- typeof interpolatableRobotMetaWriteInstructionsWithHiddenFieldsSchema
90
- >
91
- export type InterpolatableRobotMetaWriteInstructionsWithHiddenFieldsInput = z.input<
92
- typeof interpolatableRobotMetaWriteInstructionsWithHiddenFieldsSchema
93
- >
68
+ export type RobotMetaWriteInstructions = Instructions['output']
69
+ export type RobotMetaWriteInstructionsWithHiddenFields = Instructions['hiddenOutput']
70
+ export type InterpolatableRobotMetaWriteInstructions = Instructions['interpolatableInput']
71
+ export type InterpolatableRobotMetaWriteInstructionsInput = Instructions['interpolatableInput']
72
+ export type InterpolatableRobotMetaWriteInstructionsWithHiddenFields =
73
+ Instructions['interpolatableHiddenOutput']
74
+ export type InterpolatableRobotMetaWriteInstructionsWithHiddenFieldsInput =
75
+ Instructions['interpolatableHiddenInput']
@@ -1,57 +1,37 @@
1
- import type { RobotMetaInput } from './_instructions-primitives.ts'
1
+ import type {
2
+ RobotDefinition,
3
+ RobotMetaInput,
4
+ RobotSchemaVariantTypes,
5
+ } from './_instructions-primitives.ts'
2
6
 
3
7
  import { z } from 'zod'
4
8
 
5
9
  import {
6
- files_per_page,
7
- interpolateRobot,
10
+ bucketImportPath,
11
+ createStorageImportExample,
12
+ defineRobot,
8
13
  minioBase,
9
- page_number,
10
- path,
11
- recursive,
14
+ recursiveImport,
15
+ recursiveImportPageNumber,
16
+ recursiveImportPageSize,
12
17
  return_file_stubs,
13
18
  robotBase,
14
19
  robotImport,
20
+ robotImportMeta,
15
21
  } from './_instructions-primitives.ts'
16
22
 
17
23
  export const meta: RobotMetaInput = {
18
- bytescount: 10,
19
- discount_factor: 0.1,
20
- discount_pct: 90,
21
- example_code: {
22
- steps: {
23
- imported: {
24
- robot: '/minio/import',
25
- credentials: 'YOUR_MINIO_CREDENTIALS',
26
- path: 'path/to/files/',
27
- recursive: true,
28
- },
29
- },
30
- },
24
+ ...robotImportMeta,
25
+ example_code: createStorageImportExample('/minio/import', 'YOUR_MINIO_CREDENTIALS'),
31
26
  example_code_description:
32
27
  'Import files from the `path/to/files` directory and its subdirectories:',
33
28
  has_small_icon: true,
34
- minimum_charge: 0,
35
- output_factor: 1,
36
- override_lvl1: 'File Importing',
37
29
  purpose_sentence: 'imports whole directories of files from your MinIO bucket',
38
- purpose_verb: 'import',
39
30
  purpose_word: 'MinIO',
40
31
  purpose_words: 'Import files from MinIO',
41
32
  requires_credentials: true,
42
- service_slug: 'file-importing',
43
- slot_count: 20,
44
33
  title: 'Import files from MinIO',
45
- typical_file_size_mb: 1.2,
46
- typical_file_type: 'file',
47
34
  name: 'MinioImportRobot',
48
- priceFactor: 6.6666,
49
- queueSlotCount: 20,
50
- isAllowedForUrlTransform: true,
51
- trackOutputFileSize: false,
52
- isInternal: false,
53
- removeJobResultFilesFromDiskRightAfterStoringOnS3: true,
54
- stage: 'ga',
55
35
  }
56
36
 
57
37
  export const robotMinioImportInstructionsSchema = robotBase
@@ -59,62 +39,30 @@ export const robotMinioImportInstructionsSchema = robotBase
59
39
  .merge(minioBase)
60
40
  .extend({
61
41
  robot: z.literal('/minio/import'),
62
- path: path.describe(`
63
- 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\`.
64
-
65
- 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/\`.
66
-
67
- Directories are **not** imported recursively. If you want to import files from subdirectories and sub-subdirectories, enable the \`recursive\` parameter.
68
-
69
- If you want to import all files from the root directory, please use \`/\` as the value here. In this case, make sure all your objects belong to a path. If you have objects in the root of your bucket that aren't prefixed with \`/\`, you'll receive an error: \`A client error (NoSuchKey) occurred when calling the GetObject operation: The specified key does not exist.\`
70
-
71
- You can also use an array of path strings here to import multiple paths in the same <dfn>Robot</dfn>'s <dfn>Step</dfn>.
72
- `),
73
- recursive: recursive.describe(`
74
- Setting this to \`true\` will enable importing files from subdirectories and sub-subdirectories (etc.) of the given path.
75
-
76
- Please use the pagination parameters \`page_number\` and \`files_per_page\` wisely here.
77
- `),
78
- page_number: page_number.describe(`
79
- The pagination page number. For now, in order to not break backwards compatibility in non-recursive imports, this only works when recursive is set to \`true\`.
80
-
81
- When doing big imports, make sure no files are added or removed from other scripts within your path, otherwise you might get weird results with the pagination.
82
- `),
83
- files_per_page: files_per_page.describe(`
84
- The pagination page size. This only works when recursive is \`true\` for now, in order to not break backwards compatibility in non-recursive imports.
85
- `),
42
+ path: bucketImportPath,
43
+ recursive: recursiveImport,
44
+ page_number: recursiveImportPageNumber,
45
+ files_per_page: recursiveImportPageSize,
86
46
  return_file_stubs,
87
47
  })
88
48
  .strict()
89
49
 
90
- export const robotMinioImportInstructionsWithHiddenFieldsSchema =
91
- robotMinioImportInstructionsSchema.extend({
92
- result: z
93
- .union([z.literal('debug'), robotMinioImportInstructionsSchema.shape.result])
94
- .optional(),
95
- })
96
-
97
- export type RobotMinioImportInstructions = z.infer<typeof robotMinioImportInstructionsSchema>
98
- export type RobotMinioImportInstructionsWithHiddenFields = z.infer<
99
- typeof robotMinioImportInstructionsWithHiddenFieldsSchema
100
- >
50
+ export const robotDefinition: RobotDefinition<typeof robotMinioImportInstructionsSchema.shape> =
51
+ defineRobot(meta, robotMinioImportInstructionsSchema)
101
52
 
102
- export const interpolatableRobotMinioImportInstructionsSchema = interpolateRobot(
103
- robotMinioImportInstructionsSchema,
104
- )
105
- export type InterpolatableRobotMinioImportInstructions =
106
- InterpolatableRobotMinioImportInstructionsInput
53
+ export const {
54
+ withHiddenFields: robotMinioImportInstructionsWithHiddenFieldsSchema,
55
+ interpolatable: interpolatableRobotMinioImportInstructionsSchema,
56
+ interpolatableWithHiddenFields: interpolatableRobotMinioImportInstructionsWithHiddenFieldsSchema,
57
+ } = robotDefinition
107
58
 
108
- export type InterpolatableRobotMinioImportInstructionsInput = z.input<
109
- typeof interpolatableRobotMinioImportInstructionsSchema
110
- >
59
+ type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
111
60
 
112
- export const interpolatableRobotMinioImportInstructionsWithHiddenFieldsSchema = interpolateRobot(
113
- robotMinioImportInstructionsWithHiddenFieldsSchema,
114
- )
115
- export type InterpolatableRobotMinioImportInstructionsWithHiddenFields = z.infer<
116
- typeof interpolatableRobotMinioImportInstructionsWithHiddenFieldsSchema
117
- >
118
- export type InterpolatableRobotMinioImportInstructionsWithHiddenFieldsInput = z.input<
119
- typeof interpolatableRobotMinioImportInstructionsWithHiddenFieldsSchema
120
- >
61
+ export type RobotMinioImportInstructions = Instructions['output']
62
+ export type RobotMinioImportInstructionsWithHiddenFields = Instructions['hiddenOutput']
63
+ export type InterpolatableRobotMinioImportInstructions = Instructions['interpolatableInput']
64
+ export type InterpolatableRobotMinioImportInstructionsInput = Instructions['interpolatableInput']
65
+ export type InterpolatableRobotMinioImportInstructionsWithHiddenFields =
66
+ Instructions['interpolatableHiddenOutput']
67
+ export type InterpolatableRobotMinioImportInstructionsWithHiddenFieldsInput =
68
+ Instructions['interpolatableHiddenInput']