transloadit 4.13.1 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (637) hide show
  1. package/README.md +58 -6
  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 +2 -0
  7. package/dist/Transloadit.d.ts.map +1 -1
  8. package/dist/Transloadit.js +15 -4
  9. package/dist/Transloadit.js.map +1 -1
  10. package/dist/alphalib/aiMessages.d.ts +33254 -0
  11. package/dist/alphalib/aiMessages.d.ts.map +1 -0
  12. package/dist/alphalib/aiMessages.js +479 -0
  13. package/dist/alphalib/aiMessages.js.map +1 -0
  14. package/dist/alphalib/assembly-linter.d.ts.map +1 -1
  15. package/dist/alphalib/assembly-linter.js +20 -15
  16. package/dist/alphalib/assembly-linter.js.map +1 -1
  17. package/dist/alphalib/englishList.d.ts +3 -0
  18. package/dist/alphalib/englishList.d.ts.map +1 -0
  19. package/dist/alphalib/englishList.js +12 -0
  20. package/dist/alphalib/englishList.js.map +1 -0
  21. package/dist/alphalib/errors.d.ts +16 -0
  22. package/dist/alphalib/errors.d.ts.map +1 -1
  23. package/dist/alphalib/errors.js +124 -13
  24. package/dist/alphalib/errors.js.map +1 -1
  25. package/dist/alphalib/imagemagickDensity.d.ts.map +1 -1
  26. package/dist/alphalib/imagemagickDensity.js +2 -2
  27. package/dist/alphalib/imagemagickDensity.js.map +1 -1
  28. package/dist/alphalib/lib/zodInputSemantics.d.ts +18 -0
  29. package/dist/alphalib/lib/zodInputSemantics.d.ts.map +1 -0
  30. package/dist/alphalib/lib/zodInputSemantics.js +86 -0
  31. package/dist/alphalib/lib/zodInputSemantics.js.map +1 -0
  32. package/dist/alphalib/object.d.ts +42 -2
  33. package/dist/alphalib/object.d.ts.map +1 -1
  34. package/dist/alphalib/object.js +133 -0
  35. package/dist/alphalib/object.js.map +1 -1
  36. package/dist/alphalib/stepParsing.d.ts +1 -0
  37. package/dist/alphalib/stepParsing.d.ts.map +1 -1
  38. package/dist/alphalib/stepParsing.js +9 -1
  39. package/dist/alphalib/stepParsing.js.map +1 -1
  40. package/dist/alphalib/types/apiParameterDescription.d.ts +14 -0
  41. package/dist/alphalib/types/apiParameterDescription.d.ts.map +1 -0
  42. package/dist/alphalib/types/apiParameterDescription.js +20 -0
  43. package/dist/alphalib/types/apiParameterDescription.js.map +1 -0
  44. package/dist/alphalib/types/assembliesGet.d.ts +1 -1
  45. package/dist/alphalib/types/assemblyReplay.d.ts +4 -4
  46. package/dist/alphalib/types/assemblyStatus.d.ts +7196 -64686
  47. package/dist/alphalib/types/assemblyStatus.d.ts.map +1 -1
  48. package/dist/alphalib/types/assemblyStatus.js +74 -55
  49. package/dist/alphalib/types/assemblyStatus.js.map +1 -1
  50. package/dist/alphalib/types/errorReason.d.ts +7 -0
  51. package/dist/alphalib/types/errorReason.d.ts.map +1 -0
  52. package/dist/alphalib/types/errorReason.js +14 -0
  53. package/dist/alphalib/types/errorReason.js.map +1 -0
  54. package/dist/alphalib/types/file.d.ts +7 -0
  55. package/dist/alphalib/types/file.d.ts.map +1 -1
  56. package/dist/alphalib/types/file.js +15 -0
  57. package/dist/alphalib/types/file.js.map +1 -1
  58. package/dist/alphalib/types/fileHash.d.ts +16 -0
  59. package/dist/alphalib/types/fileHash.d.ts.map +1 -0
  60. package/dist/alphalib/types/fileHash.js +10 -0
  61. package/dist/alphalib/types/fileHash.js.map +1 -0
  62. package/dist/alphalib/types/responseErrors/HttpImportRobot.d.ts +23 -0
  63. package/dist/alphalib/types/responseErrors/HttpImportRobot.d.ts.map +1 -0
  64. package/dist/alphalib/types/responseErrors/HttpImportRobot.js +23 -0
  65. package/dist/alphalib/types/responseErrors/HttpImportRobot.js.map +1 -0
  66. package/dist/alphalib/types/robots/_ai-models.d.ts +28 -0
  67. package/dist/alphalib/types/robots/_ai-models.d.ts.map +1 -0
  68. package/dist/alphalib/types/robots/_ai-models.js +80 -0
  69. package/dist/alphalib/types/robots/_ai-models.js.map +1 -0
  70. package/dist/alphalib/types/robots/_index.d.ts +713 -1329
  71. package/dist/alphalib/types/robots/_index.d.ts.map +1 -1
  72. package/dist/alphalib/types/robots/_index.js +4 -0
  73. package/dist/alphalib/types/robots/_index.js.map +1 -1
  74. package/dist/alphalib/types/robots/_instructions-primitives.d.ts +504 -129
  75. package/dist/alphalib/types/robots/_instructions-primitives.d.ts.map +1 -1
  76. package/dist/alphalib/types/robots/_instructions-primitives.js +629 -280
  77. package/dist/alphalib/types/robots/_instructions-primitives.js.map +1 -1
  78. package/dist/alphalib/types/robots/ai-chat.d.ts +952 -2189
  79. package/dist/alphalib/types/robots/ai-chat.d.ts.map +1 -1
  80. package/dist/alphalib/types/robots/ai-chat.js +235 -367
  81. package/dist/alphalib/types/robots/ai-chat.js.map +1 -1
  82. package/dist/alphalib/types/robots/assembly-savejson.d.ts +28 -16
  83. package/dist/alphalib/types/robots/assembly-savejson.d.ts.map +1 -1
  84. package/dist/alphalib/types/robots/assembly-savejson.js +2 -11
  85. package/dist/alphalib/types/robots/assembly-savejson.js.map +1 -1
  86. package/dist/alphalib/types/robots/audio-artwork.d.ts +80 -67
  87. package/dist/alphalib/types/robots/audio-artwork.d.ts.map +1 -1
  88. package/dist/alphalib/types/robots/audio-artwork.js +9 -38
  89. package/dist/alphalib/types/robots/audio-artwork.js.map +1 -1
  90. package/dist/alphalib/types/robots/audio-concat.d.ts +94 -81
  91. package/dist/alphalib/types/robots/audio-concat.d.ts.map +1 -1
  92. package/dist/alphalib/types/robots/audio-concat.js +11 -25
  93. package/dist/alphalib/types/robots/audio-concat.js.map +1 -1
  94. package/dist/alphalib/types/robots/audio-encode.d.ts +80 -67
  95. package/dist/alphalib/types/robots/audio-encode.d.ts.map +1 -1
  96. package/dist/alphalib/types/robots/audio-encode.js +13 -43
  97. package/dist/alphalib/types/robots/audio-encode.js.map +1 -1
  98. package/dist/alphalib/types/robots/audio-loop.d.ts +80 -67
  99. package/dist/alphalib/types/robots/audio-loop.d.ts.map +1 -1
  100. package/dist/alphalib/types/robots/audio-loop.js +12 -40
  101. package/dist/alphalib/types/robots/audio-loop.js.map +1 -1
  102. package/dist/alphalib/types/robots/audio-merge.d.ts +94 -81
  103. package/dist/alphalib/types/robots/audio-merge.d.ts.map +1 -1
  104. package/dist/alphalib/types/robots/audio-merge.js +11 -25
  105. package/dist/alphalib/types/robots/audio-merge.js.map +1 -1
  106. package/dist/alphalib/types/robots/audio-split.d.ts +80 -67
  107. package/dist/alphalib/types/robots/audio-split.d.ts.map +1 -1
  108. package/dist/alphalib/types/robots/audio-split.js +15 -45
  109. package/dist/alphalib/types/robots/audio-split.js.map +1 -1
  110. package/dist/alphalib/types/robots/audio-waveform.d.ts +120 -107
  111. package/dist/alphalib/types/robots/audio-waveform.d.ts.map +1 -1
  112. package/dist/alphalib/types/robots/audio-waveform.js +15 -39
  113. package/dist/alphalib/types/robots/audio-waveform.js.map +1 -1
  114. package/dist/alphalib/types/robots/azure-import.d.ts +48 -35
  115. package/dist/alphalib/types/robots/azure-import.d.ts.map +1 -1
  116. package/dist/alphalib/types/robots/azure-import.js +5 -35
  117. package/dist/alphalib/types/robots/azure-import.js.map +1 -1
  118. package/dist/alphalib/types/robots/azure-store.d.ts +87 -71
  119. package/dist/alphalib/types/robots/azure-store.d.ts.map +1 -1
  120. package/dist/alphalib/types/robots/azure-store.js +11 -50
  121. package/dist/alphalib/types/robots/azure-store.js.map +1 -1
  122. package/dist/alphalib/types/robots/backblaze-import.d.ts +48 -35
  123. package/dist/alphalib/types/robots/backblaze-import.d.ts.map +1 -1
  124. package/dist/alphalib/types/robots/backblaze-import.js +6 -39
  125. package/dist/alphalib/types/robots/backblaze-import.js.map +1 -1
  126. package/dist/alphalib/types/robots/backblaze-store.d.ts +80 -67
  127. package/dist/alphalib/types/robots/backblaze-store.d.ts.map +1 -1
  128. package/dist/alphalib/types/robots/backblaze-store.js +8 -44
  129. package/dist/alphalib/types/robots/backblaze-store.js.map +1 -1
  130. package/dist/alphalib/types/robots/box-import.d.ts +44 -27
  131. package/dist/alphalib/types/robots/box-import.d.ts.map +1 -1
  132. package/dist/alphalib/types/robots/box-import.js +7 -33
  133. package/dist/alphalib/types/robots/box-import.js.map +1 -1
  134. package/dist/alphalib/types/robots/box-store.d.ts +85 -68
  135. package/dist/alphalib/types/robots/box-store.d.ts.map +1 -1
  136. package/dist/alphalib/types/robots/box-store.js +8 -40
  137. package/dist/alphalib/types/robots/box-store.js.map +1 -1
  138. package/dist/alphalib/types/robots/cloudfiles-import.d.ts +48 -35
  139. package/dist/alphalib/types/robots/cloudfiles-import.d.ts.map +1 -1
  140. package/dist/alphalib/types/robots/cloudfiles-import.js +8 -45
  141. package/dist/alphalib/types/robots/cloudfiles-import.js.map +1 -1
  142. package/dist/alphalib/types/robots/cloudfiles-store.d.ts +80 -67
  143. package/dist/alphalib/types/robots/cloudfiles-store.d.ts.map +1 -1
  144. package/dist/alphalib/types/robots/cloudfiles-store.js +5 -36
  145. package/dist/alphalib/types/robots/cloudfiles-store.js.map +1 -1
  146. package/dist/alphalib/types/robots/cloudflare-import.d.ts +48 -35
  147. package/dist/alphalib/types/robots/cloudflare-import.d.ts.map +1 -1
  148. package/dist/alphalib/types/robots/cloudflare-import.js +10 -57
  149. package/dist/alphalib/types/robots/cloudflare-import.js.map +1 -1
  150. package/dist/alphalib/types/robots/cloudflare-store.d.ts +80 -67
  151. package/dist/alphalib/types/robots/cloudflare-store.d.ts.map +1 -1
  152. package/dist/alphalib/types/robots/cloudflare-store.js +11 -54
  153. package/dist/alphalib/types/robots/cloudflare-store.js.map +1 -1
  154. package/dist/alphalib/types/robots/digitalocean-import.d.ts +56 -43
  155. package/dist/alphalib/types/robots/digitalocean-import.d.ts.map +1 -1
  156. package/dist/alphalib/types/robots/digitalocean-import.js +8 -49
  157. package/dist/alphalib/types/robots/digitalocean-import.js.map +1 -1
  158. package/dist/alphalib/types/robots/digitalocean-store.d.ts +88 -75
  159. package/dist/alphalib/types/robots/digitalocean-store.d.ts.map +1 -1
  160. package/dist/alphalib/types/robots/digitalocean-store.js +8 -56
  161. package/dist/alphalib/types/robots/digitalocean-store.js.map +1 -1
  162. package/dist/alphalib/types/robots/document-autorotate.d.ts +80 -67
  163. package/dist/alphalib/types/robots/document-autorotate.d.ts.map +1 -1
  164. package/dist/alphalib/types/robots/document-autorotate.js +5 -32
  165. package/dist/alphalib/types/robots/document-autorotate.js.map +1 -1
  166. package/dist/alphalib/types/robots/document-convert.d.ts +84 -71
  167. package/dist/alphalib/types/robots/document-convert.d.ts.map +1 -1
  168. package/dist/alphalib/types/robots/document-convert.js +7 -33
  169. package/dist/alphalib/types/robots/document-convert.js.map +1 -1
  170. package/dist/alphalib/types/robots/document-extract.d.ts +80 -67
  171. package/dist/alphalib/types/robots/document-extract.d.ts.map +1 -1
  172. package/dist/alphalib/types/robots/document-extract.js +10 -36
  173. package/dist/alphalib/types/robots/document-extract.js.map +1 -1
  174. package/dist/alphalib/types/robots/document-merge.d.ts +80 -67
  175. package/dist/alphalib/types/robots/document-merge.d.ts.map +1 -1
  176. package/dist/alphalib/types/robots/document-merge.js +4 -25
  177. package/dist/alphalib/types/robots/document-merge.js.map +1 -1
  178. package/dist/alphalib/types/robots/document-ocr.d.ts +80 -67
  179. package/dist/alphalib/types/robots/document-ocr.d.ts.map +1 -1
  180. package/dist/alphalib/types/robots/document-ocr.js +10 -47
  181. package/dist/alphalib/types/robots/document-ocr.js.map +1 -1
  182. package/dist/alphalib/types/robots/document-optimize.d.ts +80 -67
  183. package/dist/alphalib/types/robots/document-optimize.d.ts.map +1 -1
  184. package/dist/alphalib/types/robots/document-optimize.js +7 -31
  185. package/dist/alphalib/types/robots/document-optimize.js.map +1 -1
  186. package/dist/alphalib/types/robots/document-split.d.ts +80 -67
  187. package/dist/alphalib/types/robots/document-split.d.ts.map +1 -1
  188. package/dist/alphalib/types/robots/document-split.js +7 -34
  189. package/dist/alphalib/types/robots/document-split.js.map +1 -1
  190. package/dist/alphalib/types/robots/document-thumbs.d.ts +120 -101
  191. package/dist/alphalib/types/robots/document-thumbs.d.ts.map +1 -1
  192. package/dist/alphalib/types/robots/document-thumbs.js +24 -31
  193. package/dist/alphalib/types/robots/document-thumbs.js.map +1 -1
  194. package/dist/alphalib/types/robots/dropbox-import.d.ts +40 -27
  195. package/dist/alphalib/types/robots/dropbox-import.d.ts.map +1 -1
  196. package/dist/alphalib/types/robots/dropbox-import.js +5 -35
  197. package/dist/alphalib/types/robots/dropbox-import.js.map +1 -1
  198. package/dist/alphalib/types/robots/dropbox-store.d.ts +84 -68
  199. package/dist/alphalib/types/robots/dropbox-store.d.ts.map +1 -1
  200. package/dist/alphalib/types/robots/dropbox-store.js +8 -42
  201. package/dist/alphalib/types/robots/dropbox-store.js.map +1 -1
  202. package/dist/alphalib/types/robots/edgly-deliver.d.ts +32 -19
  203. package/dist/alphalib/types/robots/edgly-deliver.d.ts.map +1 -1
  204. package/dist/alphalib/types/robots/edgly-deliver.js +4 -24
  205. package/dist/alphalib/types/robots/edgly-deliver.js.map +1 -1
  206. package/dist/alphalib/types/robots/file-compress.d.ts +80 -67
  207. package/dist/alphalib/types/robots/file-compress.d.ts.map +1 -1
  208. package/dist/alphalib/types/robots/file-compress.js +4 -20
  209. package/dist/alphalib/types/robots/file-compress.js.map +1 -1
  210. package/dist/alphalib/types/robots/file-decompress.d.ts +96 -83
  211. package/dist/alphalib/types/robots/file-decompress.d.ts.map +1 -1
  212. package/dist/alphalib/types/robots/file-decompress.js +10 -41
  213. package/dist/alphalib/types/robots/file-decompress.js.map +1 -1
  214. package/dist/alphalib/types/robots/file-filter.d.ts +99 -87
  215. package/dist/alphalib/types/robots/file-filter.d.ts.map +1 -1
  216. package/dist/alphalib/types/robots/file-filter.js +11 -40
  217. package/dist/alphalib/types/robots/file-filter.js.map +1 -1
  218. package/dist/alphalib/types/robots/file-hash.d.ts +84 -71
  219. package/dist/alphalib/types/robots/file-hash.d.ts.map +1 -1
  220. package/dist/alphalib/types/robots/file-hash.js +12 -43
  221. package/dist/alphalib/types/robots/file-hash.js.map +1 -1
  222. package/dist/alphalib/types/robots/file-preview.d.ts +113 -100
  223. package/dist/alphalib/types/robots/file-preview.d.ts.map +1 -1
  224. package/dist/alphalib/types/robots/file-preview.js +14 -39
  225. package/dist/alphalib/types/robots/file-preview.js.map +1 -1
  226. package/dist/alphalib/types/robots/file-read.d.ts +80 -67
  227. package/dist/alphalib/types/robots/file-read.d.ts.map +1 -1
  228. package/dist/alphalib/types/robots/file-read.js +5 -26
  229. package/dist/alphalib/types/robots/file-read.js.map +1 -1
  230. package/dist/alphalib/types/robots/file-serve.d.ts +81 -68
  231. package/dist/alphalib/types/robots/file-serve.d.ts.map +1 -1
  232. package/dist/alphalib/types/robots/file-serve.js +4 -21
  233. package/dist/alphalib/types/robots/file-serve.js.map +1 -1
  234. package/dist/alphalib/types/robots/file-verify.d.ts +88 -75
  235. package/dist/alphalib/types/robots/file-verify.d.ts.map +1 -1
  236. package/dist/alphalib/types/robots/file-verify.js +11 -41
  237. package/dist/alphalib/types/robots/file-verify.js.map +1 -1
  238. package/dist/alphalib/types/robots/file-virusscan.d.ts +83 -67
  239. package/dist/alphalib/types/robots/file-virusscan.d.ts.map +1 -1
  240. package/dist/alphalib/types/robots/file-virusscan.js +16 -42
  241. package/dist/alphalib/types/robots/file-virusscan.js.map +1 -1
  242. package/dist/alphalib/types/robots/file-watermark.d.ts +81 -67
  243. package/dist/alphalib/types/robots/file-watermark.d.ts.map +1 -1
  244. package/dist/alphalib/types/robots/file-watermark.js +10 -29
  245. package/dist/alphalib/types/robots/file-watermark.js.map +1 -1
  246. package/dist/alphalib/types/robots/ftp-import.d.ts +40 -27
  247. package/dist/alphalib/types/robots/ftp-import.d.ts.map +1 -1
  248. package/dist/alphalib/types/robots/ftp-import.js +5 -33
  249. package/dist/alphalib/types/robots/ftp-import.js.map +1 -1
  250. package/dist/alphalib/types/robots/ftp-store.d.ts +85 -67
  251. package/dist/alphalib/types/robots/ftp-store.d.ts.map +1 -1
  252. package/dist/alphalib/types/robots/ftp-store.js +7 -34
  253. package/dist/alphalib/types/robots/ftp-store.js.map +1 -1
  254. package/dist/alphalib/types/robots/google-import.d.ts +48 -35
  255. package/dist/alphalib/types/robots/google-import.d.ts.map +1 -1
  256. package/dist/alphalib/types/robots/google-import.js +10 -43
  257. package/dist/alphalib/types/robots/google-import.js.map +1 -1
  258. package/dist/alphalib/types/robots/google-store.d.ts +80 -67
  259. package/dist/alphalib/types/robots/google-store.d.ts.map +1 -1
  260. package/dist/alphalib/types/robots/google-store.js +10 -41
  261. package/dist/alphalib/types/robots/google-store.js.map +1 -1
  262. package/dist/alphalib/types/robots/html-convert.d.ts +107 -89
  263. package/dist/alphalib/types/robots/html-convert.d.ts.map +1 -1
  264. package/dist/alphalib/types/robots/html-convert.js +6 -22
  265. package/dist/alphalib/types/robots/html-convert.js.map +1 -1
  266. package/dist/alphalib/types/robots/http-import.d.ts +76 -63
  267. package/dist/alphalib/types/robots/http-import.d.ts.map +1 -1
  268. package/dist/alphalib/types/robots/http-import.js +14 -19
  269. package/dist/alphalib/types/robots/http-import.js.map +1 -1
  270. package/dist/alphalib/types/robots/http-request.d.ts +538 -0
  271. package/dist/alphalib/types/robots/http-request.d.ts.map +1 -0
  272. package/dist/alphalib/types/robots/http-request.js +162 -0
  273. package/dist/alphalib/types/robots/http-request.js.map +1 -0
  274. package/dist/alphalib/types/robots/image-bgremove.d.ts +80 -67
  275. package/dist/alphalib/types/robots/image-bgremove.d.ts.map +1 -1
  276. package/dist/alphalib/types/robots/image-bgremove.js +6 -33
  277. package/dist/alphalib/types/robots/image-bgremove.js.map +1 -1
  278. package/dist/alphalib/types/robots/image-copyrightdetect.d.ts +92 -79
  279. package/dist/alphalib/types/robots/image-copyrightdetect.d.ts.map +1 -1
  280. package/dist/alphalib/types/robots/image-copyrightdetect.js +9 -33
  281. package/dist/alphalib/types/robots/image-copyrightdetect.js.map +1 -1
  282. package/dist/alphalib/types/robots/image-describe.d.ts +80 -67
  283. package/dist/alphalib/types/robots/image-describe.d.ts.map +1 -1
  284. package/dist/alphalib/types/robots/image-describe.js +8 -37
  285. package/dist/alphalib/types/robots/image-describe.js.map +1 -1
  286. package/dist/alphalib/types/robots/image-enhance.d.ts +80 -67
  287. package/dist/alphalib/types/robots/image-enhance.d.ts.map +1 -1
  288. package/dist/alphalib/types/robots/image-enhance.js +7 -31
  289. package/dist/alphalib/types/robots/image-enhance.js.map +1 -1
  290. package/dist/alphalib/types/robots/image-facedetect.d.ts +88 -75
  291. package/dist/alphalib/types/robots/image-facedetect.d.ts.map +1 -1
  292. package/dist/alphalib/types/robots/image-facedetect.js +16 -44
  293. package/dist/alphalib/types/robots/image-facedetect.js.map +1 -1
  294. package/dist/alphalib/types/robots/image-generate.d.ts +96 -86
  295. package/dist/alphalib/types/robots/image-generate.d.ts.map +1 -1
  296. package/dist/alphalib/types/robots/image-generate.js +20 -25
  297. package/dist/alphalib/types/robots/image-generate.js.map +1 -1
  298. package/dist/alphalib/types/robots/image-merge.d.ts +96 -83
  299. package/dist/alphalib/types/robots/image-merge.d.ts.map +1 -1
  300. package/dist/alphalib/types/robots/image-merge.js +9 -40
  301. package/dist/alphalib/types/robots/image-merge.js.map +1 -1
  302. package/dist/alphalib/types/robots/image-ocr.d.ts +80 -67
  303. package/dist/alphalib/types/robots/image-ocr.d.ts.map +1 -1
  304. package/dist/alphalib/types/robots/image-ocr.js +11 -47
  305. package/dist/alphalib/types/robots/image-ocr.js.map +1 -1
  306. package/dist/alphalib/types/robots/image-optimize.d.ts +88 -75
  307. package/dist/alphalib/types/robots/image-optimize.d.ts.map +1 -1
  308. package/dist/alphalib/types/robots/image-optimize.js +6 -32
  309. package/dist/alphalib/types/robots/image-optimize.js.map +1 -1
  310. package/dist/alphalib/types/robots/image-resize.d.ts +217 -112
  311. package/dist/alphalib/types/robots/image-resize.d.ts.map +1 -1
  312. package/dist/alphalib/types/robots/image-resize.js +15 -42
  313. package/dist/alphalib/types/robots/image-resize.js.map +1 -1
  314. package/dist/alphalib/types/robots/image-upscale.d.ts +97 -81
  315. package/dist/alphalib/types/robots/image-upscale.d.ts.map +1 -1
  316. package/dist/alphalib/types/robots/image-upscale.js +23 -42
  317. package/dist/alphalib/types/robots/image-upscale.js.map +1 -1
  318. package/dist/alphalib/types/robots/mega-import.d.ts +48 -35
  319. package/dist/alphalib/types/robots/mega-import.d.ts.map +1 -1
  320. package/dist/alphalib/types/robots/mega-import.js +12 -59
  321. package/dist/alphalib/types/robots/mega-import.js.map +1 -1
  322. package/dist/alphalib/types/robots/mega-store.d.ts +80 -67
  323. package/dist/alphalib/types/robots/mega-store.d.ts.map +1 -1
  324. package/dist/alphalib/types/robots/mega-store.js +14 -60
  325. package/dist/alphalib/types/robots/mega-store.js.map +1 -1
  326. package/dist/alphalib/types/robots/meta-read.d.ts +30 -16
  327. package/dist/alphalib/types/robots/meta-read.d.ts.map +1 -1
  328. package/dist/alphalib/types/robots/meta-read.js +4 -20
  329. package/dist/alphalib/types/robots/meta-read.js.map +1 -1
  330. package/dist/alphalib/types/robots/meta-write.d.ts +80 -67
  331. package/dist/alphalib/types/robots/meta-write.d.ts.map +1 -1
  332. package/dist/alphalib/types/robots/meta-write.js +9 -32
  333. package/dist/alphalib/types/robots/meta-write.js.map +1 -1
  334. package/dist/alphalib/types/robots/minio-import.d.ts +48 -35
  335. package/dist/alphalib/types/robots/minio-import.d.ts.map +1 -1
  336. package/dist/alphalib/types/robots/minio-import.js +9 -60
  337. package/dist/alphalib/types/robots/minio-import.js.map +1 -1
  338. package/dist/alphalib/types/robots/minio-store.d.ts +80 -67
  339. package/dist/alphalib/types/robots/minio-store.d.ts.map +1 -1
  340. package/dist/alphalib/types/robots/minio-store.js +9 -50
  341. package/dist/alphalib/types/robots/minio-store.js.map +1 -1
  342. package/dist/alphalib/types/robots/progress-simulate.d.ts +34 -28
  343. package/dist/alphalib/types/robots/progress-simulate.d.ts.map +1 -1
  344. package/dist/alphalib/types/robots/progress-simulate.js +8 -28
  345. package/dist/alphalib/types/robots/progress-simulate.js.map +1 -1
  346. package/dist/alphalib/types/robots/s3-import.d.ts +48 -35
  347. package/dist/alphalib/types/robots/s3-import.d.ts.map +1 -1
  348. package/dist/alphalib/types/robots/s3-import.js +7 -38
  349. package/dist/alphalib/types/robots/s3-import.js.map +1 -1
  350. package/dist/alphalib/types/robots/s3-store.d.ts +84 -68
  351. package/dist/alphalib/types/robots/s3-store.d.ts.map +1 -1
  352. package/dist/alphalib/types/robots/s3-store.js +14 -44
  353. package/dist/alphalib/types/robots/s3-store.js.map +1 -1
  354. package/dist/alphalib/types/robots/script-run.d.ts +83 -67
  355. package/dist/alphalib/types/robots/script-run.d.ts.map +1 -1
  356. package/dist/alphalib/types/robots/script-run.js +9 -27
  357. package/dist/alphalib/types/robots/script-run.js.map +1 -1
  358. package/dist/alphalib/types/robots/sftp-import.d.ts +51 -35
  359. package/dist/alphalib/types/robots/sftp-import.d.ts.map +1 -1
  360. package/dist/alphalib/types/robots/sftp-import.js +7 -36
  361. package/dist/alphalib/types/robots/sftp-import.js.map +1 -1
  362. package/dist/alphalib/types/robots/sftp-store.d.ts +83 -67
  363. package/dist/alphalib/types/robots/sftp-store.d.ts.map +1 -1
  364. package/dist/alphalib/types/robots/sftp-store.js +9 -41
  365. package/dist/alphalib/types/robots/sftp-store.js.map +1 -1
  366. package/dist/alphalib/types/robots/speech-transcribe.d.ts +102 -85
  367. package/dist/alphalib/types/robots/speech-transcribe.d.ts.map +1 -1
  368. package/dist/alphalib/types/robots/speech-transcribe.js +23 -44
  369. package/dist/alphalib/types/robots/speech-transcribe.js.map +1 -1
  370. package/dist/alphalib/types/robots/supabase-import.d.ts +48 -35
  371. package/dist/alphalib/types/robots/supabase-import.d.ts.map +1 -1
  372. package/dist/alphalib/types/robots/supabase-import.js +12 -59
  373. package/dist/alphalib/types/robots/supabase-import.js.map +1 -1
  374. package/dist/alphalib/types/robots/supabase-store.d.ts +80 -79
  375. package/dist/alphalib/types/robots/supabase-store.d.ts.map +1 -1
  376. package/dist/alphalib/types/robots/supabase-store.js +12 -56
  377. package/dist/alphalib/types/robots/supabase-store.js.map +1 -1
  378. package/dist/alphalib/types/robots/swift-import.d.ts +48 -47
  379. package/dist/alphalib/types/robots/swift-import.d.ts.map +1 -1
  380. package/dist/alphalib/types/robots/swift-import.js +14 -55
  381. package/dist/alphalib/types/robots/swift-import.js.map +1 -1
  382. package/dist/alphalib/types/robots/swift-store.d.ts +80 -79
  383. package/dist/alphalib/types/robots/swift-store.d.ts.map +1 -1
  384. package/dist/alphalib/types/robots/swift-store.js +14 -62
  385. package/dist/alphalib/types/robots/swift-store.js.map +1 -1
  386. package/dist/alphalib/types/robots/text-speak.d.ts +80 -67
  387. package/dist/alphalib/types/robots/text-speak.d.ts.map +1 -1
  388. package/dist/alphalib/types/robots/text-speak.js +11 -37
  389. package/dist/alphalib/types/robots/text-speak.js.map +1 -1
  390. package/dist/alphalib/types/robots/text-translate.d.ts +92 -79
  391. package/dist/alphalib/types/robots/text-translate.d.ts.map +1 -1
  392. package/dist/alphalib/types/robots/text-translate.js +9 -36
  393. package/dist/alphalib/types/robots/text-translate.js.map +1 -1
  394. package/dist/alphalib/types/robots/tigris-import.d.ts +48 -35
  395. package/dist/alphalib/types/robots/tigris-import.d.ts.map +1 -1
  396. package/dist/alphalib/types/robots/tigris-import.js +9 -60
  397. package/dist/alphalib/types/robots/tigris-import.js.map +1 -1
  398. package/dist/alphalib/types/robots/tigris-store.d.ts +80 -67
  399. package/dist/alphalib/types/robots/tigris-store.d.ts.map +1 -1
  400. package/dist/alphalib/types/robots/tigris-store.js +7 -48
  401. package/dist/alphalib/types/robots/tigris-store.js.map +1 -1
  402. package/dist/alphalib/types/robots/tlcdn-deliver.d.ts +32 -19
  403. package/dist/alphalib/types/robots/tlcdn-deliver.d.ts.map +1 -1
  404. package/dist/alphalib/types/robots/tlcdn-deliver.js +4 -25
  405. package/dist/alphalib/types/robots/tlcdn-deliver.js.map +1 -1
  406. package/dist/alphalib/types/robots/transloadit-import.d.ts +58 -45
  407. package/dist/alphalib/types/robots/transloadit-import.d.ts.map +1 -1
  408. package/dist/alphalib/types/robots/transloadit-import.js +17 -21
  409. package/dist/alphalib/types/robots/transloadit-import.js.map +1 -1
  410. package/dist/alphalib/types/robots/transloadit-store.d.ts +70 -57
  411. package/dist/alphalib/types/robots/transloadit-store.d.ts.map +1 -1
  412. package/dist/alphalib/types/robots/transloadit-store.js +14 -6
  413. package/dist/alphalib/types/robots/transloadit-store.js.map +1 -1
  414. package/dist/alphalib/types/robots/tus-store.d.ts +84 -71
  415. package/dist/alphalib/types/robots/tus-store.d.ts.map +1 -1
  416. package/dist/alphalib/types/robots/tus-store.js +8 -37
  417. package/dist/alphalib/types/robots/tus-store.js.map +1 -1
  418. package/dist/alphalib/types/robots/upload-handle.d.ts +32 -19
  419. package/dist/alphalib/types/robots/upload-handle.d.ts.map +1 -1
  420. package/dist/alphalib/types/robots/upload-handle.js +4 -19
  421. package/dist/alphalib/types/robots/upload-handle.js.map +1 -1
  422. package/dist/alphalib/types/robots/video-adaptive.d.ts +112 -99
  423. package/dist/alphalib/types/robots/video-adaptive.d.ts.map +1 -1
  424. package/dist/alphalib/types/robots/video-adaptive.js +4 -26
  425. package/dist/alphalib/types/robots/video-adaptive.js.map +1 -1
  426. package/dist/alphalib/types/robots/video-artwork.d.ts +80 -67
  427. package/dist/alphalib/types/robots/video-artwork.d.ts.map +1 -1
  428. package/dist/alphalib/types/robots/video-artwork.js +7 -32
  429. package/dist/alphalib/types/robots/video-artwork.js.map +1 -1
  430. package/dist/alphalib/types/robots/video-concat.d.ts +104 -91
  431. package/dist/alphalib/types/robots/video-concat.d.ts.map +1 -1
  432. package/dist/alphalib/types/robots/video-concat.js +6 -27
  433. package/dist/alphalib/types/robots/video-concat.js.map +1 -1
  434. package/dist/alphalib/types/robots/video-encode.d.ts +121 -103
  435. package/dist/alphalib/types/robots/video-encode.d.ts.map +1 -1
  436. package/dist/alphalib/types/robots/video-encode.js +13 -38
  437. package/dist/alphalib/types/robots/video-encode.js.map +1 -1
  438. package/dist/alphalib/types/robots/video-generate.d.ts +96 -86
  439. package/dist/alphalib/types/robots/video-generate.d.ts.map +1 -1
  440. package/dist/alphalib/types/robots/video-generate.js +11 -18
  441. package/dist/alphalib/types/robots/video-generate.js.map +1 -1
  442. package/dist/alphalib/types/robots/video-merge.d.ts +135 -119
  443. package/dist/alphalib/types/robots/video-merge.d.ts.map +1 -1
  444. package/dist/alphalib/types/robots/video-merge.js +12 -32
  445. package/dist/alphalib/types/robots/video-merge.js.map +1 -1
  446. package/dist/alphalib/types/robots/video-ondemand.d.ts +156 -139
  447. package/dist/alphalib/types/robots/video-ondemand.d.ts.map +1 -1
  448. package/dist/alphalib/types/robots/video-ondemand.js +11 -27
  449. package/dist/alphalib/types/robots/video-ondemand.js.map +1 -1
  450. package/dist/alphalib/types/robots/video-split.d.ts +104 -91
  451. package/dist/alphalib/types/robots/video-split.d.ts.map +1 -1
  452. package/dist/alphalib/types/robots/video-split.js +11 -39
  453. package/dist/alphalib/types/robots/video-split.js.map +1 -1
  454. package/dist/alphalib/types/robots/video-subtitle.d.ts +104 -91
  455. package/dist/alphalib/types/robots/video-subtitle.d.ts.map +1 -1
  456. package/dist/alphalib/types/robots/video-subtitle.js +7 -30
  457. package/dist/alphalib/types/robots/video-subtitle.js.map +1 -1
  458. package/dist/alphalib/types/robots/video-thumbs.d.ts +112 -95
  459. package/dist/alphalib/types/robots/video-thumbs.d.ts.map +1 -1
  460. package/dist/alphalib/types/robots/video-thumbs.js +46 -53
  461. package/dist/alphalib/types/robots/video-thumbs.js.map +1 -1
  462. package/dist/alphalib/types/robots/vimeo-import.d.ts +30 -17
  463. package/dist/alphalib/types/robots/vimeo-import.d.ts.map +1 -1
  464. package/dist/alphalib/types/robots/vimeo-import.js +7 -17
  465. package/dist/alphalib/types/robots/vimeo-import.js.map +1 -1
  466. package/dist/alphalib/types/robots/vimeo-store.d.ts +83 -67
  467. package/dist/alphalib/types/robots/vimeo-store.d.ts.map +1 -1
  468. package/dist/alphalib/types/robots/vimeo-store.js +11 -37
  469. package/dist/alphalib/types/robots/vimeo-store.js.map +1 -1
  470. package/dist/alphalib/types/robots/wasabi-import.d.ts +48 -35
  471. package/dist/alphalib/types/robots/wasabi-import.d.ts.map +1 -1
  472. package/dist/alphalib/types/robots/wasabi-import.js +9 -56
  473. package/dist/alphalib/types/robots/wasabi-import.js.map +1 -1
  474. package/dist/alphalib/types/robots/wasabi-store.d.ts +80 -67
  475. package/dist/alphalib/types/robots/wasabi-store.d.ts.map +1 -1
  476. package/dist/alphalib/types/robots/wasabi-store.js +10 -52
  477. package/dist/alphalib/types/robots/wasabi-store.js.map +1 -1
  478. package/dist/alphalib/types/robots/youtube-store.d.ts +98 -85
  479. package/dist/alphalib/types/robots/youtube-store.d.ts.map +1 -1
  480. package/dist/alphalib/types/robots/youtube-store.js +42 -63
  481. package/dist/alphalib/types/robots/youtube-store.js.map +1 -1
  482. package/dist/alphalib/types/stackVersions.d.ts +40 -1
  483. package/dist/alphalib/types/stackVersions.d.ts.map +1 -1
  484. package/dist/alphalib/types/stackVersions.js +25 -3
  485. package/dist/alphalib/types/stackVersions.js.map +1 -1
  486. package/dist/alphalib/types/storageAsset.d.ts +55 -23
  487. package/dist/alphalib/types/storageAsset.d.ts.map +1 -1
  488. package/dist/alphalib/types/storageAsset.js +33 -9
  489. package/dist/alphalib/types/storageAsset.js.map +1 -1
  490. package/dist/alphalib/types/template.d.ts +16 -16
  491. package/dist/alphalib/types/templateCredential.d.ts +2 -2
  492. package/dist/alphalib/types/utility.d.ts +22 -0
  493. package/dist/alphalib/types/utility.d.ts.map +1 -0
  494. package/dist/alphalib/types/utility.js +2 -0
  495. package/dist/alphalib/types/utility.js.map +1 -0
  496. package/dist/cli/commands/storage.d.ts +1 -0
  497. package/dist/cli/commands/storage.d.ts.map +1 -1
  498. package/dist/cli/commands/storage.js +27 -2
  499. package/dist/cli/commands/storage.js.map +1 -1
  500. package/dist/cli/semanticIntents/imageGenerate.d.ts +2 -2
  501. package/dist/cli/semanticIntents/imageGenerate.js +4 -4
  502. package/dist/cli/semanticIntents/imageGenerate.js.map +1 -1
  503. package/dist/cli/storageReceipts.d.ts.map +1 -1
  504. package/dist/cli/storageReceipts.js +4 -1
  505. package/dist/cli/storageReceipts.js.map +1 -1
  506. package/dist/storageImage.d.ts +6 -3
  507. package/dist/storageImage.d.ts.map +1 -1
  508. package/dist/storageImage.js +13 -0
  509. package/dist/storageImage.js.map +1 -1
  510. package/package.json +1 -2
  511. package/src/ApiError.ts +11 -4
  512. package/src/Transloadit.ts +24 -5
  513. package/src/alphalib/aiMessages.ts +554 -0
  514. package/src/alphalib/assembly-linter.ts +9 -2
  515. package/src/alphalib/englishList.ts +11 -0
  516. package/src/alphalib/errors.ts +159 -13
  517. package/src/alphalib/imagemagickDensity.ts +2 -1
  518. package/src/alphalib/lib/zodInputSemantics.ts +114 -0
  519. package/src/alphalib/object.ts +178 -3
  520. package/src/alphalib/stepParsing.ts +10 -2
  521. package/src/alphalib/types/apiParameterDescription.ts +41 -0
  522. package/src/alphalib/types/assemblyStatus.ts +121 -83
  523. package/src/alphalib/types/errorReason.ts +14 -0
  524. package/src/alphalib/types/file.ts +18 -0
  525. package/src/alphalib/types/fileHash.ts +10 -0
  526. package/src/alphalib/types/responseErrors/HttpImportRobot.ts +22 -0
  527. package/src/alphalib/types/robots/_ai-models.ts +91 -0
  528. package/src/alphalib/types/robots/_index.ts +14 -0
  529. package/src/alphalib/types/robots/_instructions-primitives.ts +841 -308
  530. package/src/alphalib/types/robots/ai-chat.ts +358 -459
  531. package/src/alphalib/types/robots/assembly-savejson.ts +2 -11
  532. package/src/alphalib/types/robots/audio-artwork.ts +35 -61
  533. package/src/alphalib/types/robots/audio-concat.ts +17 -25
  534. package/src/alphalib/types/robots/audio-encode.ts +35 -65
  535. package/src/alphalib/types/robots/audio-loop.ts +34 -61
  536. package/src/alphalib/types/robots/audio-merge.ts +17 -25
  537. package/src/alphalib/types/robots/audio-split.ts +37 -67
  538. package/src/alphalib/types/robots/audio-waveform.ts +42 -65
  539. package/src/alphalib/types/robots/azure-import.ts +26 -57
  540. package/src/alphalib/types/robots/azure-store.ts +48 -72
  541. package/src/alphalib/types/robots/backblaze-import.ts +30 -63
  542. package/src/alphalib/types/robots/backblaze-store.ts +37 -66
  543. package/src/alphalib/types/robots/box-import.ts +32 -55
  544. package/src/alphalib/types/robots/box-store.ts +40 -63
  545. package/src/alphalib/types/robots/cloudfiles-import.ts +34 -70
  546. package/src/alphalib/types/robots/cloudfiles-store.ts +28 -59
  547. package/src/alphalib/types/robots/cloudflare-import.ts +37 -83
  548. package/src/alphalib/types/robots/cloudflare-store.ts +37 -77
  549. package/src/alphalib/types/robots/digitalocean-import.ts +35 -75
  550. package/src/alphalib/types/robots/digitalocean-store.ts +35 -79
  551. package/src/alphalib/types/robots/document-autorotate.ts +36 -58
  552. package/src/alphalib/types/robots/document-convert.ts +37 -59
  553. package/src/alphalib/types/robots/document-extract.ts +45 -62
  554. package/src/alphalib/types/robots/document-merge.ts +25 -47
  555. package/src/alphalib/types/robots/document-ocr.ts +32 -70
  556. package/src/alphalib/types/robots/document-optimize.ts +38 -57
  557. package/src/alphalib/types/robots/document-split.ts +33 -56
  558. package/src/alphalib/types/robots/document-thumbs.ts +66 -67
  559. package/src/alphalib/types/robots/dropbox-import.ts +27 -57
  560. package/src/alphalib/types/robots/dropbox-store.ts +39 -65
  561. package/src/alphalib/types/robots/edgly-deliver.ts +26 -49
  562. package/src/alphalib/types/robots/file-compress.ts +31 -45
  563. package/src/alphalib/types/robots/file-decompress.ts +41 -68
  564. package/src/alphalib/types/robots/file-filter.ts +36 -65
  565. package/src/alphalib/types/robots/file-hash.ts +37 -64
  566. package/src/alphalib/types/robots/file-preview.ts +39 -65
  567. package/src/alphalib/types/robots/file-read.ts +33 -50
  568. package/src/alphalib/types/robots/file-serve.ts +32 -46
  569. package/src/alphalib/types/robots/file-verify.ts +37 -63
  570. package/src/alphalib/types/robots/file-virusscan.ts +49 -67
  571. package/src/alphalib/types/robots/file-watermark.ts +35 -54
  572. package/src/alphalib/types/robots/ftp-import.ts +26 -54
  573. package/src/alphalib/types/robots/ftp-store.ts +44 -63
  574. package/src/alphalib/types/robots/google-import.ts +32 -66
  575. package/src/alphalib/types/robots/google-store.ts +37 -63
  576. package/src/alphalib/types/robots/html-convert.ts +38 -49
  577. package/src/alphalib/types/robots/http-import.ts +21 -19
  578. package/src/alphalib/types/robots/http-request.ts +196 -0
  579. package/src/alphalib/types/robots/image-bgremove.ts +28 -55
  580. package/src/alphalib/types/robots/image-copyrightdetect.ts +38 -56
  581. package/src/alphalib/types/robots/image-describe.ts +31 -60
  582. package/src/alphalib/types/robots/image-enhance.ts +30 -56
  583. package/src/alphalib/types/robots/image-facedetect.ts +43 -71
  584. package/src/alphalib/types/robots/image-generate.ts +32 -25
  585. package/src/alphalib/types/robots/image-merge.ts +34 -65
  586. package/src/alphalib/types/robots/image-ocr.ts +33 -69
  587. package/src/alphalib/types/robots/image-optimize.ts +28 -54
  588. package/src/alphalib/types/robots/image-resize.ts +72 -96
  589. package/src/alphalib/types/robots/image-upscale.ts +52 -64
  590. package/src/alphalib/types/robots/mega-import.ts +36 -84
  591. package/src/alphalib/types/robots/mega-store.ts +44 -81
  592. package/src/alphalib/types/robots/meta-read.ts +21 -36
  593. package/src/alphalib/types/robots/meta-write.ts +35 -53
  594. package/src/alphalib/types/robots/minio-import.ts +34 -86
  595. package/src/alphalib/types/robots/minio-store.ts +37 -72
  596. package/src/alphalib/types/robots/progress-simulate.ts +14 -28
  597. package/src/alphalib/types/robots/s3-import.ts +32 -63
  598. package/src/alphalib/types/robots/s3-store.ts +53 -74
  599. package/src/alphalib/types/robots/script-run.ts +44 -55
  600. package/src/alphalib/types/robots/sftp-import.ts +34 -61
  601. package/src/alphalib/types/robots/sftp-store.ts +42 -65
  602. package/src/alphalib/types/robots/speech-transcribe.ts +53 -71
  603. package/src/alphalib/types/robots/supabase-import.ts +37 -84
  604. package/src/alphalib/types/robots/supabase-store.ts +41 -78
  605. package/src/alphalib/types/robots/swift-import.ts +38 -80
  606. package/src/alphalib/types/robots/swift-store.ts +44 -84
  607. package/src/alphalib/types/robots/text-speak.ts +36 -62
  608. package/src/alphalib/types/robots/text-translate.ts +35 -62
  609. package/src/alphalib/types/robots/tigris-import.ts +34 -86
  610. package/src/alphalib/types/robots/tigris-store.ts +35 -70
  611. package/src/alphalib/types/robots/tlcdn-deliver.ts +23 -47
  612. package/src/alphalib/types/robots/transloadit-import.ts +24 -29
  613. package/src/alphalib/types/robots/transloadit-store.ts +20 -7
  614. package/src/alphalib/types/robots/tus-store.ts +34 -58
  615. package/src/alphalib/types/robots/upload-handle.ts +23 -41
  616. package/src/alphalib/types/robots/video-adaptive.ts +28 -51
  617. package/src/alphalib/types/robots/video-artwork.ts +28 -54
  618. package/src/alphalib/types/robots/video-concat.ts +29 -52
  619. package/src/alphalib/types/robots/video-encode.ts +39 -62
  620. package/src/alphalib/types/robots/video-generate.ts +20 -18
  621. package/src/alphalib/types/robots/video-merge.ts +36 -55
  622. package/src/alphalib/types/robots/video-ondemand.ts +48 -62
  623. package/src/alphalib/types/robots/video-split.ts +32 -61
  624. package/src/alphalib/types/robots/video-subtitle.ts +30 -52
  625. package/src/alphalib/types/robots/video-thumbs.ts +74 -78
  626. package/src/alphalib/types/robots/vimeo-import.ts +12 -17
  627. package/src/alphalib/types/robots/vimeo-store.ts +46 -65
  628. package/src/alphalib/types/robots/wasabi-import.ts +33 -81
  629. package/src/alphalib/types/robots/wasabi-store.ts +38 -74
  630. package/src/alphalib/types/robots/youtube-store.ts +81 -91
  631. package/src/alphalib/types/stackVersions.ts +26 -3
  632. package/src/alphalib/types/storageAsset.ts +85 -29
  633. package/src/alphalib/types/utility.ts +52 -0
  634. package/src/cli/commands/storage.ts +28 -2
  635. package/src/cli/semanticIntents/imageGenerate.ts +4 -4
  636. package/src/cli/storageReceipts.ts +4 -1
  637. package/src/storageImage.ts +18 -3
@@ -1,56 +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
10
  import {
7
- interpolateRobot,
11
+ createProcessingExample,
12
+ defineRobot,
8
13
  robotBase,
9
14
  robotFFmpegVideo,
10
15
  robotUse,
16
+ robotVideoEncodingMeta,
11
17
  } from './_instructions-primitives.ts'
12
18
 
13
19
  export const meta: RobotMetaInput = {
14
- bytescount: 1,
15
- discount_factor: 1,
16
- discount_pct: 0,
17
- example_code: {
18
- steps: {
19
- split: {
20
- robot: '/video/split',
21
- use: ':original',
22
- ffmpeg_stack: stackVersions.ffmpeg.recommendedVersion,
23
- segments: [
24
- { from: 0, to: 30 },
25
- { from: 60, to: 90 },
26
- ],
27
- },
28
- },
29
- },
20
+ ...robotVideoEncodingMeta,
21
+ example_code: createProcessingExample('split', '/video/split', {
22
+ ffmpeg_stack: stackVersions.ffmpeg.recommendedVersion,
23
+ segments: [
24
+ { from: 0, to: 30 },
25
+ { from: 60, to: 90 },
26
+ ],
27
+ }),
30
28
  example_code_description:
31
29
  'Split a video into two segments, extracting the first 30 seconds and a segment from 1:00 to 1:30:',
32
- minimum_charge: 0,
33
- output_factor: 0.6,
34
- override_lvl1: 'Video Encoding',
35
30
  purpose_sentence: 'splits a video into multiple segments based on an array of from/to durations',
36
31
  purpose_verb: 'split',
37
32
  purpose_word: 'split',
38
33
  purpose_words: 'Split video',
39
- service_slug: 'video-encoding',
40
- slot_count: 60,
41
34
  title: 'Split video',
42
- typical_file_size_mb: 80,
43
- typical_file_type: 'video',
44
35
  uses_tools: ['ffmpeg'],
45
36
  name: 'VideoSplitRobot',
46
- priceFactor: 1,
47
- queueSlotCount: 60,
48
- isAllowedForUrlTransform: false,
49
- trackOutputFileSize: true,
50
- applyCommunityPlanMediaTrim: true,
51
- isInternal: false,
52
- removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
53
- stage: 'ga',
54
37
  }
55
38
 
56
39
  const segmentSchema = z
@@ -86,34 +69,22 @@ Times can be specified as numbers (seconds) or as timecode strings (e.g. \`"00:0
86
69
  })
87
70
  .strict()
88
71
 
89
- export const robotVideoSplitInstructionsWithHiddenFieldsSchema =
90
- robotVideoSplitInstructionsSchema.extend({
91
- result: z
92
- .union([z.literal('debug'), robotVideoSplitInstructionsSchema.shape.result])
93
- .optional(),
94
- })
95
-
96
- export type RobotVideoSplitInstructions = z.infer<typeof robotVideoSplitInstructionsSchema>
97
- export type RobotVideoSplitInstructionsWithHiddenFields = z.infer<
98
- typeof robotVideoSplitInstructionsWithHiddenFieldsSchema
99
- >
72
+ export const robotDefinition: RobotDefinition<typeof robotVideoSplitInstructionsSchema.shape> =
73
+ defineRobot(meta, robotVideoSplitInstructionsSchema)
100
74
 
101
- export const interpolatableRobotVideoSplitInstructionsSchema = interpolateRobot(
102
- robotVideoSplitInstructionsSchema,
103
- )
104
- export type InterpolatableRobotVideoSplitInstructions =
105
- InterpolatableRobotVideoSplitInstructionsInput
75
+ export const {
76
+ withHiddenFields: robotVideoSplitInstructionsWithHiddenFieldsSchema,
77
+ interpolatable: interpolatableRobotVideoSplitInstructionsSchema,
78
+ interpolatableWithHiddenFields: interpolatableRobotVideoSplitInstructionsWithHiddenFieldsSchema,
79
+ } = robotDefinition
106
80
 
107
- export type InterpolatableRobotVideoSplitInstructionsInput = z.input<
108
- typeof interpolatableRobotVideoSplitInstructionsSchema
109
- >
81
+ type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
110
82
 
111
- export const interpolatableRobotVideoSplitInstructionsWithHiddenFieldsSchema = interpolateRobot(
112
- robotVideoSplitInstructionsWithHiddenFieldsSchema,
113
- )
114
- export type InterpolatableRobotVideoSplitInstructionsWithHiddenFields = z.infer<
115
- typeof interpolatableRobotVideoSplitInstructionsWithHiddenFieldsSchema
116
- >
117
- export type InterpolatableRobotVideoSplitInstructionsWithHiddenFieldsInput = z.input<
118
- typeof interpolatableRobotVideoSplitInstructionsWithHiddenFieldsSchema
119
- >
83
+ export type RobotVideoSplitInstructions = Instructions['output']
84
+ export type RobotVideoSplitInstructionsWithHiddenFields = Instructions['hiddenOutput']
85
+ export type InterpolatableRobotVideoSplitInstructions = Instructions['interpolatableInput']
86
+ export type InterpolatableRobotVideoSplitInstructionsInput = Instructions['interpolatableInput']
87
+ export type InterpolatableRobotVideoSplitInstructionsWithHiddenFields =
88
+ Instructions['interpolatableHiddenOutput']
89
+ export type InterpolatableRobotVideoSplitInstructionsWithHiddenFieldsInput =
90
+ Instructions['interpolatableHiddenInput']
@@ -1,22 +1,26 @@
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
 
9
+ import { zodInputPreservingTransform } from '../../lib/zodInputSemantics.ts'
5
10
  import { stackVersions } from '../stackVersions.ts'
6
11
  import {
7
12
  color_with_alpha,
8
13
  color_without_alpha,
9
- interpolateRobot,
14
+ defineRobot,
10
15
  positionSchema,
11
16
  robotBase,
12
17
  robotFFmpegVideo,
13
18
  robotUse,
19
+ robotVideoEncodingMeta,
14
20
  } from './_instructions-primitives.ts'
15
21
 
16
22
  export const meta: RobotMetaInput = {
17
- bytescount: 1,
18
- discount_factor: 1,
19
- discount_pct: 0,
23
+ ...robotVideoEncodingMeta,
20
24
  example_code: {
21
25
  steps: {
22
26
  add_english_subtitles: {
@@ -62,29 +66,14 @@ export const meta: RobotMetaInput = {
62
66
  },
63
67
  },
64
68
  example_code_description:
65
- 'If you have file input fields in a form — one for a video and one for each subtitle language (named `input_video`, `input_srt_en`, and `input_srt_de` via the HTML `name` attribute) — hereʼs how to add multiple subtitle streams with language tags to the video. Chain multiple `/video/subtitle` Steps with `keep_subtitles` set to `true` so each new stream is added alongside existing ones:',
66
- minimum_charge: 0,
67
- output_factor: 0.6,
68
- override_lvl1: 'Video Encoding',
69
+ 'If you have file input fields in a form — one for a video and one for each subtitle language (named `input_video`, `input_srt_en`, and `input_srt_de` via the HTML `name` attribute) — here’s how to add multiple subtitle streams with language tags to the video. Chain multiple `/video/subtitle` Steps with `keep_subtitles` set to `true` so each new stream is added alongside existing ones:',
69
70
  purpose_sentence: 'adds subtitles and closed captions to videos',
70
71
  purpose_verb: 'subtitle',
71
72
  purpose_word: 'subtitle',
72
73
  purpose_words: 'Add subtitles to videos',
73
- service_slug: 'video-encoding',
74
- slot_count: 60,
75
74
  title: 'Add subtitles to videos',
76
- typical_file_size_mb: 80,
77
- typical_file_type: 'video',
78
75
  uses_tools: ['ffmpeg'],
79
76
  name: 'VideoSubtitleRobot',
80
- priceFactor: 1,
81
- queueSlotCount: 60,
82
- isAllowedForUrlTransform: false,
83
- trackOutputFileSize: true,
84
- applyCommunityPlanMediaTrim: true,
85
- isInternal: false,
86
- removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
87
- stage: 'ga',
88
77
  }
89
78
 
90
79
  export const robotVideoSubtitleInstructionsSchema = robotBase
@@ -94,9 +83,9 @@ export const robotVideoSubtitleInstructionsSchema = robotBase
94
83
  robot: z.literal('/video/subtitle').describe(`
95
84
  This <dfn>Robot</dfn> supports both SRT and VTT subtitle files.
96
85
  `),
97
- subtitles_type: z
98
- .enum(['burned', 'external', 'burn'])
99
- .transform((val) => (val === 'burn' ? 'burned' : val))
86
+ subtitles_type: zodInputPreservingTransform(z.enum(['burned', 'external', 'burn']), (val) =>
87
+ val === 'burn' ? 'burned' : val,
88
+ )
100
89
  .default('external')
101
90
  .describe(`
102
91
  Determines if subtitles are added as a separate stream to the video (value \`"external"\`) that then can be switched on and off in your video player, or if they should be burned directly into the video (value \`"burned"\` or \`"burn"\`) so that they become part of the video stream.
@@ -181,34 +170,23 @@ Specifies if existing subtitles in the input file should be kept or be replaced
181
170
  })
182
171
  .strict()
183
172
 
184
- export const robotVideoSubtitleInstructionsWithHiddenFieldsSchema =
185
- robotVideoSubtitleInstructionsSchema.extend({
186
- result: z
187
- .union([z.literal('debug'), robotVideoSubtitleInstructionsSchema.shape.result])
188
- .optional(),
189
- })
190
-
191
- export type RobotVideoSubtitleInstructions = z.infer<typeof robotVideoSubtitleInstructionsSchema>
192
- export type RobotVideoSubtitleInstructionsWithHiddenFields = z.infer<
193
- typeof robotVideoSubtitleInstructionsWithHiddenFieldsSchema
194
- >
173
+ export const robotDefinition: RobotDefinition<typeof robotVideoSubtitleInstructionsSchema.shape> =
174
+ defineRobot(meta, robotVideoSubtitleInstructionsSchema)
195
175
 
196
- export const interpolatableRobotVideoSubtitleInstructionsSchema = interpolateRobot(
197
- robotVideoSubtitleInstructionsSchema,
198
- )
199
- export type InterpolatableRobotVideoSubtitleInstructions =
200
- InterpolatableRobotVideoSubtitleInstructionsInput
176
+ export const {
177
+ withHiddenFields: robotVideoSubtitleInstructionsWithHiddenFieldsSchema,
178
+ interpolatable: interpolatableRobotVideoSubtitleInstructionsSchema,
179
+ interpolatableWithHiddenFields:
180
+ interpolatableRobotVideoSubtitleInstructionsWithHiddenFieldsSchema,
181
+ } = robotDefinition
201
182
 
202
- export type InterpolatableRobotVideoSubtitleInstructionsInput = z.input<
203
- typeof interpolatableRobotVideoSubtitleInstructionsSchema
204
- >
183
+ type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
205
184
 
206
- export const interpolatableRobotVideoSubtitleInstructionsWithHiddenFieldsSchema = interpolateRobot(
207
- robotVideoSubtitleInstructionsWithHiddenFieldsSchema,
208
- )
209
- export type InterpolatableRobotVideoSubtitleInstructionsWithHiddenFields = z.infer<
210
- typeof interpolatableRobotVideoSubtitleInstructionsWithHiddenFieldsSchema
211
- >
212
- export type InterpolatableRobotVideoSubtitleInstructionsWithHiddenFieldsInput = z.input<
213
- typeof interpolatableRobotVideoSubtitleInstructionsWithHiddenFieldsSchema
214
- >
185
+ export type RobotVideoSubtitleInstructions = Instructions['output']
186
+ export type RobotVideoSubtitleInstructionsWithHiddenFields = Instructions['hiddenOutput']
187
+ export type InterpolatableRobotVideoSubtitleInstructions = Instructions['interpolatableInput']
188
+ export type InterpolatableRobotVideoSubtitleInstructionsInput = Instructions['interpolatableInput']
189
+ export type InterpolatableRobotVideoSubtitleInstructionsWithHiddenFields =
190
+ Instructions['interpolatableHiddenOutput']
191
+ export type InterpolatableRobotVideoSubtitleInstructionsWithHiddenFieldsInput =
192
+ Instructions['interpolatableHiddenInput']
@@ -1,55 +1,56 @@
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
10
  import {
7
11
  color_with_alpha,
8
- interpolateRobot,
12
+ createProcessingExample,
13
+ defineRobot,
9
14
  percentageSchema,
10
15
  resize_strategy,
11
16
  robotBase,
12
17
  robotFFmpeg,
13
18
  robotUse,
19
+ robotVideoEncodingMeta,
14
20
  } from './_instructions-primitives.ts'
15
21
 
22
+ /** Markup over the AI provider cost for smart thumbnail selection. */
23
+ export const smartThumbnailMarkupPercent = 50
24
+
25
+ const thumbnailCountSchema = z.number().int().min(1).max(999).default(8)
26
+ const smartMaximumCandidatesSchema = z.number().int().min(2).max(100).default(20)
27
+ const defaultThumbnailCount = thumbnailCountSchema.parse(undefined)
28
+ const defaultSmartMaximumCandidates = smartMaximumCandidatesSchema.parse(undefined)
29
+
30
+ /** Candidate-pool size shared by smart thumbnail execution and its documented default example. */
31
+ export function getSmartThumbnailCandidateCount(count: number, maximumCandidates: number): number {
32
+ return Math.max(count, Math.min(maximumCandidates, count * 3))
33
+ }
34
+
16
35
  export const meta: RobotMetaInput = {
17
- bytescount: 10,
18
- discount_factor: 0.1,
19
- discount_pct: 90,
20
- example_code: {
21
- steps: {
22
- thumbnailed: {
23
- robot: '/video/thumbs',
24
- use: ':original',
25
- count: 10,
26
- ffmpeg_stack: stackVersions.ffmpeg.recommendedVersion,
27
- },
28
- },
29
- },
30
- example_code_description: 'Extract 10 thumbnails from each uploaded video:',
31
- minimum_charge: 0,
32
- output_factor: 0.05,
33
- override_lvl1: 'Video Encoding',
36
+ ...robotVideoEncodingMeta,
37
+ example_code: createProcessingExample('thumbnailed', '/video/thumbs', {
38
+ count: 3,
39
+ ffmpeg_stack: stackVersions.ffmpeg.recommendedVersion,
40
+ smart: true,
41
+ smart_max_candidates: 12,
42
+ }),
43
+ example_code_description:
44
+ 'Select three visually appealing thumbnails from each uploaded video with AI:',
34
45
  purpose_sentence: 'extracts any number of images from videos for use as previews',
35
46
  purpose_verb: 'extract',
36
47
  purpose_word: 'thumbnail',
37
48
  purpose_words: 'Extract thumbnails from videos',
38
- service_slug: 'video-encoding',
39
- slot_count: 15,
40
49
  title: 'Extract thumbnails from videos',
41
- typical_file_size_mb: 80,
42
- typical_file_type: 'video',
43
50
  uses_tools: ['ffmpeg'],
44
51
  name: 'VideoThumbsRobot',
45
52
  priceFactor: 10,
46
53
  queueSlotCount: 15,
47
- isAllowedForUrlTransform: false,
48
- trackOutputFileSize: true,
49
- applyCommunityPlanMediaTrim: true,
50
- isInternal: false,
51
- removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
52
- stage: 'ga',
53
54
  }
54
55
 
55
56
  export const robotVideoThumbsInstructionsSchema = robotBase
@@ -57,16 +58,23 @@ export const robotVideoThumbsInstructionsSchema = robotBase
57
58
  .merge(robotFFmpeg)
58
59
  .extend({
59
60
  robot: z.literal('/video/thumbs').describe(`
61
+ Set \`smart: true\` to select strong preview images with AI instead of taking frames only at regular intervals. The Robot scores candidate frames for clarity, brightness, composition, faces, expressions, action, and visual interest, then returns the best \`count\` frames in chronological order. Smart results include \`file.meta.smart_score\` and \`file.meta.smart_reasons\`. If AI scoring is unavailable, the Assembly continues with the candidate frames in fallback order. No AI credentials are required.
62
+
63
+ ## AI pricing
64
+
65
+ Regular \`/video/thumbs\` processing charges still apply. AI frame analysis is billed separately at the underlying provider cost plus a ${smartThumbnailMarkupPercent}% Transloadit markup. The exact AI charge varies with the number of candidate frames, the internally selected model and provider pricing, and the image payload size.
66
+
67
+ \`smart_max_candidates\` is the main cost and latency control. The Robot analyzes up to three candidates per requested thumbnail, capped by \`smart_max_candidates\`, but never fewer than \`count\`. With the defaults of \`count: ${defaultThumbnailCount}\` and \`smart_max_candidates: ${defaultSmartMaximumCandidates}\`, it analyzes ${getSmartThumbnailCandidateCount(defaultThumbnailCount, defaultSmartMaximumCandidates)} frames and returns the best ${defaultThumbnailCount}. Lower the candidate limit to reduce AI cost and latency; raise it to give the AI more frames to choose from.
68
+
60
69
  > [!Note]
61
- > Even though thumbnails are extracted from videos in parallel, we sort the thumbnails before adding them to the Assembly results. So the order in which they appear there reflects the order in which they appear in the video. You can also make sure by checking the <code>thumb_index</code> meta key.
70
+ > Use \`count\` with smart selection. To consistently extract exact timestamps with \`offsets\`, set \`smart: false\`.
71
+
72
+ > [!Note]
73
+ > Even though thumbnails are extracted from videos in parallel, we sort the thumbnails before adding them to the Assembly results. So the order in which they appear there reflects the order in which they appear in the video. You can also make sure by checking the \`thumb_index\` meta key.
74
+
75
+ For an upload-to-poster Template, SDK usage, and publication checks, see the [HTML video workflow guide](/guides/html-video-production-checklist/#html-video-production-checklist-section-6). The [video and S3 demo](/demos/file-exporting/store-encoding-and-thumbnails-on-s3/) includes a recorded input and extracted frames.
62
76
  `),
63
- count: z
64
- .number()
65
- .int()
66
- .min(1)
67
- .max(999)
68
- .default(8)
69
- .describe(`
77
+ count: thumbnailCountSchema.describe(`
70
78
  The number of thumbnails to be extracted. As some videos have incorrect durations, the actual number of thumbnails generated may be less in rare cases. The maximum number of thumbnails we currently allow is 999.
71
79
 
72
80
  The thumbnails are taken at regular intervals, determined by dividing the video duration by the count. For example, a count of 3 will produce thumbnails at 25%, 50% and 75% through the video.
@@ -80,6 +88,8 @@ To extract thumbnails for specific timestamps, use the \`offsets\` parameter.
80
88
  An array of offsets representing seconds of the file duration, such as \`[ 2, 45, 120 ]\`. Millisecond durations of a file can also be used by using decimal place values. For example, an offset from 1250 milliseconds would be represented with \`1.25\`. Offsets can also be percentage values such as \`[ "2%", "50%", "75%" ]\`.
81
89
 
82
90
  This option cannot be used with the \`count\` parameter, and takes precedence if both are specified. Out-of-range offsets are silently ignored.
91
+
92
+ When \`smart\` is \`true\`, smart selection ignores \`offsets\` and uses \`count\` to select from its own candidate timestamps. If no smart candidates can be extracted, the Robot falls back to standard extraction, where \`offsets\` takes precedence. Use \`smart: false\` to consistently extract the specified timestamps.
83
93
  `),
84
94
  format: z
85
95
  .enum(['jpeg', 'jpg', 'png'])
@@ -136,52 +146,38 @@ The AI evaluates frames based on:
136
146
  - Action and motion (avoiding transition frames)
137
147
  - Overall visual interest
138
148
 
139
- Smart thumbnail analysis is billed with a 50% margin over the underlying AI provider cost.
149
+ Regular \`/video/thumbs\` processing charges still apply. AI frame analysis is billed separately at the underlying provider cost plus a ${smartThumbnailMarkupPercent}% Transloadit markup. You do not need to provide AI credentials.
150
+
151
+ Smart mode generates its own regularly spaced candidate timestamps; use \`smart: false\` with \`offsets\` when you need specified timestamps. Selected smart thumbnails are returned in chronological order, not score order. Inspect \`meta.thumb_offset\`, \`meta.smart_score\`, and \`meta.smart_reasons\` when evaluating the selection.
152
+
153
+ If AI scoring fails, the Robot selects from the extracted candidates in chronological order and records a fallback reason. If no candidates can be extracted, it attempts standard thumbnail extraction. A completed Assembly does not guarantee a representative or publication-safe poster; check that outputs exist and apply your application’s review policy.
140
154
  `),
141
- smart_max_candidates: z
142
- .number()
143
- .int()
144
- .min(2)
145
- .max(100)
146
- .default(20)
147
- .describe(`
148
- The maximum number of candidate frames to extract and analyze when \`smart\` is \`true\`.
155
+ smart_max_candidates: smartMaximumCandidatesSchema.describe(`
156
+ The maximum size of the candidate pool when \`smart\` is \`true\`. The Robot analyzes up to three candidates per requested thumbnail, capped by this value, but it will never analyze fewer candidates than the requested \`count\`.
149
157
 
150
- A higher number may yield better results but increases processing time and cost. The Robot will extract this many frames evenly distributed across the video, analyze them with AI, and return only the top \`count\` results.
158
+ A higher number may yield better results but increases processing time and AI cost. With the defaults of \`count: ${defaultThumbnailCount}\` and \`smart_max_candidates: ${defaultSmartMaximumCandidates}\`, the Robot analyzes ${getSmartThumbnailCandidateCount(defaultThumbnailCount, defaultSmartMaximumCandidates)} frames and returns the best ${defaultThumbnailCount} in chronological order.
151
159
 
152
160
  This parameter is only used when \`smart\` is \`true\`.
153
161
  `),
154
162
  })
155
163
  .strict()
156
164
 
157
- export const robotVideoThumbsInstructionsWithHiddenFieldsSchema =
158
- robotVideoThumbsInstructionsSchema.extend({
159
- result: z
160
- .union([z.literal('debug'), robotVideoThumbsInstructionsSchema.shape.result])
161
- .optional(),
162
- })
163
-
164
- export type RobotVideoThumbsInstructions = z.infer<typeof robotVideoThumbsInstructionsSchema>
165
- export type RobotVideoThumbsInstructionsWithHiddenFields = z.infer<
166
- typeof robotVideoThumbsInstructionsWithHiddenFieldsSchema
167
- >
168
-
169
- export const interpolatableRobotVideoThumbsInstructionsSchema = interpolateRobot(
170
- robotVideoThumbsInstructionsSchema,
171
- )
172
- export type InterpolatableRobotVideoThumbsInstructions =
173
- InterpolatableRobotVideoThumbsInstructionsInput
174
-
175
- export type InterpolatableRobotVideoThumbsInstructionsInput = z.input<
176
- typeof interpolatableRobotVideoThumbsInstructionsSchema
177
- >
178
-
179
- export const interpolatableRobotVideoThumbsInstructionsWithHiddenFieldsSchema = interpolateRobot(
180
- robotVideoThumbsInstructionsWithHiddenFieldsSchema,
181
- )
182
- export type InterpolatableRobotVideoThumbsInstructionsWithHiddenFields = z.infer<
183
- typeof interpolatableRobotVideoThumbsInstructionsWithHiddenFieldsSchema
184
- >
185
- export type InterpolatableRobotVideoThumbsInstructionsWithHiddenFieldsInput = z.input<
186
- typeof interpolatableRobotVideoThumbsInstructionsWithHiddenFieldsSchema
187
- >
165
+ export const robotDefinition: RobotDefinition<typeof robotVideoThumbsInstructionsSchema.shape> =
166
+ defineRobot(meta, robotVideoThumbsInstructionsSchema)
167
+
168
+ export const {
169
+ withHiddenFields: robotVideoThumbsInstructionsWithHiddenFieldsSchema,
170
+ interpolatable: interpolatableRobotVideoThumbsInstructionsSchema,
171
+ interpolatableWithHiddenFields: interpolatableRobotVideoThumbsInstructionsWithHiddenFieldsSchema,
172
+ } = robotDefinition
173
+
174
+ type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
175
+
176
+ export type RobotVideoThumbsInstructions = Instructions['output']
177
+ export type RobotVideoThumbsInstructionsWithHiddenFields = Instructions['hiddenOutput']
178
+ export type InterpolatableRobotVideoThumbsInstructions = Instructions['interpolatableInput']
179
+ export type InterpolatableRobotVideoThumbsInstructionsInput = Instructions['interpolatableInput']
180
+ export type InterpolatableRobotVideoThumbsInstructionsWithHiddenFields =
181
+ Instructions['interpolatableHiddenOutput']
182
+ export type InterpolatableRobotVideoThumbsInstructionsWithHiddenFieldsInput =
183
+ Instructions['interpolatableHiddenInput']
@@ -1,4 +1,4 @@
1
- import type { RobotMetaInput } from './_instructions-primitives.ts'
1
+ import type { RobotMetaInput, RobotSchemaPair } from './_instructions-primitives.ts'
2
2
 
3
3
  import { z } from 'zod'
4
4
 
@@ -7,13 +7,12 @@ import {
7
7
  path,
8
8
  robotBase,
9
9
  robotImport,
10
+ robotImportMeta,
10
11
  vimeoBase,
11
12
  } from './_instructions-primitives.ts'
12
13
 
13
14
  export const meta: RobotMetaInput = {
14
- bytescount: 10,
15
- discount_factor: 0.1,
16
- discount_pct: 90,
15
+ ...robotImportMeta,
17
16
  example_code: {
18
17
  steps: {
19
18
  imported: {
@@ -28,27 +27,14 @@ export const meta: RobotMetaInput = {
28
27
  },
29
28
  example_code_description: 'Import videos from your Vimeo account:',
30
29
  has_small_icon: true,
31
- minimum_charge: 0,
32
- output_factor: 1,
33
- override_lvl1: 'File Importing',
34
30
  purpose_sentence: 'imports videos from your Vimeo account',
35
- purpose_verb: 'import',
36
31
  purpose_word: 'Vimeo',
37
32
  purpose_words: 'Import videos from Vimeo',
38
33
  requires_credentials: true,
39
- service_slug: 'file-importing',
40
- slot_count: 20,
41
34
  title: 'Import videos from Vimeo',
42
35
  typical_file_size_mb: 50,
43
36
  typical_file_type: 'video',
44
37
  name: 'VimeoImportRobot',
45
- priceFactor: 6.6666,
46
- queueSlotCount: 20,
47
- isAllowedForUrlTransform: true,
48
- trackOutputFileSize: false,
49
- isInternal: false,
50
- removeJobResultFilesFromDiskRightAfterStoringOnS3: true,
51
- stage: 'ga',
52
38
  }
53
39
 
54
40
  export const robotVimeoImportInstructionsSchema = robotBase
@@ -124,3 +110,12 @@ export type InterpolatableRobotVimeoImportInstructionsWithHiddenFields = z.infer
124
110
  export type InterpolatableRobotVimeoImportInstructionsWithHiddenFieldsInput = z.input<
125
111
  typeof interpolatableRobotVimeoImportInstructionsWithHiddenFieldsSchema
126
112
  >
113
+
114
+ export const robotDefinition: RobotSchemaPair<
115
+ typeof interpolatableRobotVimeoImportInstructionsSchema,
116
+ typeof interpolatableRobotVimeoImportInstructionsWithHiddenFieldsSchema
117
+ > = {
118
+ meta,
119
+ interpolatable: interpolatableRobotVimeoImportInstructionsSchema,
120
+ interpolatableWithHiddenFields: interpolatableRobotVimeoImportInstructionsWithHiddenFieldsSchema,
121
+ }
@@ -1,47 +1,35 @@
1
- import type { RobotMetaInput } from './_instructions-primitives.ts'
1
+ import type {
2
+ RobotDefinitionWithHiddenFields,
3
+ RobotMetaInput,
4
+ RobotSchemaVariantTypes,
5
+ } from './_instructions-primitives.ts'
2
6
 
3
7
  import { z } from 'zod'
4
8
 
5
- import { interpolateRobot, robotBase, robotUse, vimeoBase } from './_instructions-primitives.ts'
9
+ import {
10
+ createProcessingExample,
11
+ defineRobotWithHiddenFields,
12
+ robotBase,
13
+ robotStoreMeta,
14
+ robotUse,
15
+ vimeoBase,
16
+ } from './_instructions-primitives.ts'
6
17
 
7
18
  export const meta: RobotMetaInput = {
8
- bytescount: 6,
9
- discount_factor: 0.15000150001500018,
10
- discount_pct: 84.99984999849998,
19
+ ...robotStoreMeta,
11
20
  hideCredentialsWarning: true,
12
- example_code: {
13
- steps: {
14
- exported: {
15
- robot: '/vimeo/store',
16
- use: ':original',
17
- credentials: 'YOUR_VIMEO_CREDENTIALS',
18
- title: 'Transloadit: Video Example',
19
- description: 'Some nice description',
20
- },
21
- },
22
- },
21
+ example_code: createProcessingExample('exported', '/vimeo/store', {
22
+ credentials: 'YOUR_VIMEO_CREDENTIALS',
23
+ title: 'Transloadit: Video Example',
24
+ description: 'Some nice description',
25
+ }),
23
26
  example_code_description: 'Export an uploaded video to Vimeo and set its title and description:',
24
27
  has_small_icon: true,
25
- minimum_charge: 0,
26
- output_factor: 1,
27
- override_lvl1: 'File Exporting',
28
28
  purpose_sentence: 'exports encoding results to Vimeo',
29
- purpose_verb: 'export',
30
29
  purpose_word: 'Vimeo',
31
30
  purpose_words: 'Export files to Vimeo',
32
- service_slug: 'file-exporting',
33
- slot_count: 10,
34
31
  title: 'Export files to Vimeo',
35
- typical_file_size_mb: 1.2,
36
- typical_file_type: 'file',
37
32
  name: 'VimeoStoreRobot',
38
- priceFactor: 6.6666,
39
- queueSlotCount: 10,
40
- isAllowedForUrlTransform: true,
41
- trackOutputFileSize: false,
42
- isInternal: false,
43
- removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
44
- stage: 'ga',
45
33
  }
46
34
 
47
35
  export const robotVimeoStoreInstructionsSchema = robotBase
@@ -118,38 +106,31 @@ Deprecated. Please use \`folder_id\` instead. The URI of the folder to which the
118
106
  })
119
107
  .strict()
120
108
 
121
- export const robotVimeoStoreInstructionsWithHiddenFieldsSchema =
122
- robotVimeoStoreInstructionsSchema.extend({
123
- result: z
124
- .union([z.literal('debug'), robotVimeoStoreInstructionsSchema.shape.result])
125
- .optional(),
126
- access_token: z
127
- .string()
128
- .optional()
129
- .describe('Legacy authentication field. Use credentials instead.'),
130
- })
109
+ const hiddenFields = {
110
+ access_token: z
111
+ .string()
112
+ .optional()
113
+ .describe('Legacy authentication field. Use credentials instead.'),
114
+ }
131
115
 
132
- export type RobotVimeoStoreInstructions = z.infer<typeof robotVimeoStoreInstructionsSchema>
133
- export type RobotVimeoStoreInstructionsWithHiddenFields = z.infer<
134
- typeof robotVimeoStoreInstructionsWithHiddenFieldsSchema
135
- >
136
-
137
- export const interpolatableRobotVimeoStoreInstructionsSchema = interpolateRobot(
138
- robotVimeoStoreInstructionsSchema,
139
- )
140
- export type InterpolatableRobotVimeoStoreInstructions =
141
- InterpolatableRobotVimeoStoreInstructionsInput
142
-
143
- export type InterpolatableRobotVimeoStoreInstructionsInput = z.input<
144
- typeof interpolatableRobotVimeoStoreInstructionsSchema
145
- >
146
-
147
- export const interpolatableRobotVimeoStoreInstructionsWithHiddenFieldsSchema = interpolateRobot(
148
- robotVimeoStoreInstructionsWithHiddenFieldsSchema,
149
- )
150
- export type InterpolatableRobotVimeoStoreInstructionsWithHiddenFields = z.infer<
151
- typeof interpolatableRobotVimeoStoreInstructionsWithHiddenFieldsSchema
152
- >
153
- export type InterpolatableRobotVimeoStoreInstructionsWithHiddenFieldsInput = z.input<
154
- typeof interpolatableRobotVimeoStoreInstructionsWithHiddenFieldsSchema
155
- >
116
+ export const robotDefinition: RobotDefinitionWithHiddenFields<
117
+ typeof robotVimeoStoreInstructionsSchema.shape,
118
+ typeof hiddenFields
119
+ > = defineRobotWithHiddenFields(meta, robotVimeoStoreInstructionsSchema, hiddenFields)
120
+
121
+ export const {
122
+ withHiddenFields: robotVimeoStoreInstructionsWithHiddenFieldsSchema,
123
+ interpolatable: interpolatableRobotVimeoStoreInstructionsSchema,
124
+ interpolatableWithHiddenFields: interpolatableRobotVimeoStoreInstructionsWithHiddenFieldsSchema,
125
+ } = robotDefinition
126
+
127
+ type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
128
+
129
+ export type RobotVimeoStoreInstructions = Instructions['output']
130
+ export type RobotVimeoStoreInstructionsWithHiddenFields = Instructions['hiddenOutput']
131
+ export type InterpolatableRobotVimeoStoreInstructions = Instructions['interpolatableInput']
132
+ export type InterpolatableRobotVimeoStoreInstructionsInput = Instructions['interpolatableInput']
133
+ export type InterpolatableRobotVimeoStoreInstructionsWithHiddenFields =
134
+ Instructions['interpolatableHiddenOutput']
135
+ export type InterpolatableRobotVimeoStoreInstructionsWithHiddenFieldsInput =
136
+ Instructions['interpolatableHiddenInput']