@remotion/lambda 3.0.0-wrappedup.222 → 3.0.2

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 (828) hide show
  1. package/.prettierrc.js +1 -2
  2. package/LICENSE.md +2 -2
  3. package/README.md +1 -10
  4. package/dist/admin/bundle-lambda.d.ts +0 -0
  5. package/dist/admin/bundle-lambda.d.ts.map +0 -0
  6. package/dist/admin/bundle-lambda.js +3 -3
  7. package/dist/admin/bundle-lambda.js.map +1 -1
  8. package/dist/admin/make-layer-public.d.ts +0 -0
  9. package/dist/admin/make-layer-public.d.ts.map +0 -0
  10. package/dist/admin/make-layer-public.js +65 -48
  11. package/dist/admin/make-layer-public.js.map +1 -1
  12. package/dist/api/bucket-exists.d.ts +0 -0
  13. package/dist/api/bucket-exists.d.ts.map +0 -0
  14. package/dist/api/bucket-exists.js +0 -0
  15. package/dist/api/bucket-exists.js.map +0 -0
  16. package/dist/api/clean-items.d.ts +0 -0
  17. package/dist/api/clean-items.d.ts.map +0 -0
  18. package/dist/api/clean-items.js +0 -0
  19. package/dist/api/clean-items.js.map +0 -0
  20. package/dist/api/create-bucket.d.ts +0 -0
  21. package/dist/api/create-bucket.d.ts.map +0 -0
  22. package/dist/api/create-bucket.js +0 -0
  23. package/dist/api/create-bucket.js.map +0 -0
  24. package/dist/api/create-function.d.ts +7 -2
  25. package/dist/api/create-function.d.ts.map +1 -1
  26. package/dist/api/create-function.js +22 -8
  27. package/dist/api/create-function.js.map +1 -1
  28. package/dist/api/delete-function.d.ts +7 -6
  29. package/dist/api/delete-function.d.ts.map +1 -1
  30. package/dist/api/delete-function.js +2 -2
  31. package/dist/api/delete-function.js.map +1 -1
  32. package/dist/api/delete-site.d.ts +5 -5
  33. package/dist/api/delete-site.d.ts.map +1 -1
  34. package/dist/api/delete-site.js +2 -2
  35. package/dist/api/delete-site.js.map +1 -1
  36. package/dist/api/deploy-function.d.ts +20 -10
  37. package/dist/api/deploy-function.d.ts.map +1 -1
  38. package/dist/api/deploy-function.js +28 -8
  39. package/dist/api/deploy-function.js.map +1 -1
  40. package/dist/api/deploy-site.d.ts +3 -3
  41. package/dist/api/deploy-site.d.ts.map +1 -1
  42. package/dist/api/deploy-site.js +6 -8
  43. package/dist/api/deploy-site.js.map +1 -1
  44. package/dist/api/download-media.d.ts +19 -0
  45. package/dist/api/download-media.d.ts.map +1 -0
  46. package/dist/api/{download-video.js → download-media.js} +15 -21
  47. package/dist/api/download-media.js.map +1 -0
  48. package/dist/api/enable-s3-website.d.ts +0 -0
  49. package/dist/api/enable-s3-website.d.ts.map +1 -1
  50. package/dist/api/enable-s3-website.js +0 -1
  51. package/dist/api/enable-s3-website.js.map +1 -1
  52. package/dist/api/estimate-price.d.ts +18 -0
  53. package/dist/api/estimate-price.d.ts.map +1 -0
  54. package/dist/api/estimate-price.js +51 -0
  55. package/dist/api/estimate-price.js.map +1 -0
  56. package/dist/api/get-aws-client.d.ts +32 -0
  57. package/dist/api/get-aws-client.d.ts.map +1 -0
  58. package/dist/api/get-aws-client.js +49 -0
  59. package/dist/api/get-aws-client.js.map +1 -0
  60. package/dist/api/get-buckets.d.ts +0 -0
  61. package/dist/api/get-buckets.d.ts.map +1 -1
  62. package/dist/api/get-buckets.js +1 -7
  63. package/dist/api/get-buckets.js.map +1 -1
  64. package/dist/api/get-function-info.d.ts +4 -4
  65. package/dist/api/get-function-info.d.ts.map +1 -1
  66. package/dist/api/get-function-info.js +4 -2
  67. package/dist/api/get-function-info.js.map +1 -1
  68. package/dist/api/get-functions.d.ts +7 -6
  69. package/dist/api/get-functions.d.ts.map +1 -1
  70. package/dist/api/get-functions.js +30 -4
  71. package/dist/api/get-functions.js.map +1 -1
  72. package/dist/api/get-or-create-bucket.d.ts +5 -6
  73. package/dist/api/get-or-create-bucket.d.ts.map +1 -1
  74. package/dist/api/get-or-create-bucket.js +2 -2
  75. package/dist/api/get-or-create-bucket.js.map +1 -1
  76. package/dist/api/get-regions.d.ts +8 -0
  77. package/dist/api/get-regions.d.ts.map +1 -0
  78. package/dist/api/get-regions.js +14 -0
  79. package/dist/api/get-regions.js.map +1 -0
  80. package/dist/api/get-render-progress.d.ts +12 -10
  81. package/dist/api/get-render-progress.d.ts.map +1 -1
  82. package/dist/api/get-render-progress.js +6 -5
  83. package/dist/api/get-render-progress.js.map +1 -1
  84. package/dist/api/get-sites.d.ts +12 -4
  85. package/dist/api/get-sites.d.ts.map +1 -1
  86. package/dist/api/get-sites.js +8 -3
  87. package/dist/api/get-sites.js.map +1 -1
  88. package/dist/api/iam-validation/role-permissions.d.ts +0 -0
  89. package/dist/api/iam-validation/role-permissions.d.ts.map +0 -0
  90. package/dist/api/iam-validation/role-permissions.js +0 -0
  91. package/dist/api/iam-validation/role-permissions.js.map +0 -0
  92. package/dist/api/iam-validation/simulate-rule.d.ts +0 -0
  93. package/dist/api/iam-validation/simulate-rule.d.ts.map +0 -0
  94. package/dist/api/iam-validation/simulate-rule.js +0 -0
  95. package/dist/api/iam-validation/simulate-rule.js.map +0 -0
  96. package/dist/api/iam-validation/simulate.d.ts +13 -4
  97. package/dist/api/iam-validation/simulate.d.ts.map +1 -1
  98. package/dist/api/iam-validation/simulate.js +7 -0
  99. package/dist/api/iam-validation/simulate.js.map +1 -1
  100. package/dist/api/iam-validation/suggested-policy.d.ts +2 -2
  101. package/dist/api/iam-validation/suggested-policy.d.ts.map +0 -0
  102. package/dist/api/iam-validation/suggested-policy.js +2 -2
  103. package/dist/api/iam-validation/suggested-policy.js.map +0 -0
  104. package/dist/api/iam-validation/user-permissions.d.ts +2 -2
  105. package/dist/api/iam-validation/user-permissions.d.ts.map +1 -1
  106. package/dist/api/iam-validation/user-permissions.js +10 -0
  107. package/dist/api/iam-validation/user-permissions.js.map +1 -1
  108. package/dist/api/mock-functions.d.ts +0 -0
  109. package/dist/api/mock-functions.d.ts.map +0 -0
  110. package/dist/api/mock-functions.js +0 -0
  111. package/dist/api/mock-functions.js.map +0 -0
  112. package/dist/api/presign-url.d.ts +20 -0
  113. package/dist/api/presign-url.d.ts.map +1 -0
  114. package/dist/api/presign-url.js +47 -0
  115. package/dist/api/presign-url.js.map +1 -0
  116. package/dist/api/{render-video-on-lambda.d.ts → render-media-on-lambda.d.ts} +36 -27
  117. package/dist/api/render-media-on-lambda.d.ts.map +1 -0
  118. package/dist/api/{render-video-on-lambda.js → render-media-on-lambda.js} +19 -11
  119. package/dist/api/render-media-on-lambda.js.map +1 -0
  120. package/dist/api/render-still-on-lambda.d.ts +30 -22
  121. package/dist/api/render-still-on-lambda.d.ts.map +1 -1
  122. package/dist/api/render-still-on-lambda.js +10 -5
  123. package/dist/api/render-still-on-lambda.js.map +1 -1
  124. package/dist/api/upload-dir.d.ts +1 -1
  125. package/dist/api/upload-dir.d.ts.map +1 -1
  126. package/dist/api/upload-dir.js +7 -5
  127. package/dist/api/upload-dir.js.map +1 -1
  128. package/dist/cli/args.d.ts +6 -3
  129. package/dist/cli/args.d.ts.map +1 -1
  130. package/dist/cli/args.js +1 -3
  131. package/dist/cli/args.js.map +1 -1
  132. package/dist/cli/commands/functions/deploy.d.ts +0 -0
  133. package/dist/cli/commands/functions/deploy.d.ts.map +1 -1
  134. package/dist/cli/commands/functions/deploy.js +34 -5
  135. package/dist/cli/commands/functions/deploy.js.map +1 -1
  136. package/dist/cli/commands/functions/index.d.ts +0 -0
  137. package/dist/cli/commands/functions/index.d.ts.map +1 -1
  138. package/dist/cli/commands/functions/index.js +7 -0
  139. package/dist/cli/commands/functions/index.js.map +1 -1
  140. package/dist/cli/commands/functions/ls.d.ts +0 -0
  141. package/dist/cli/commands/functions/ls.d.ts.map +1 -1
  142. package/dist/cli/commands/functions/ls.js +7 -7
  143. package/dist/cli/commands/functions/ls.js.map +1 -1
  144. package/dist/cli/commands/functions/rm.d.ts +0 -0
  145. package/dist/cli/commands/functions/rm.d.ts.map +1 -1
  146. package/dist/cli/commands/functions/rm.js +2 -2
  147. package/dist/cli/commands/functions/rm.js.map +1 -1
  148. package/dist/cli/commands/functions/rmall.d.ts +3 -0
  149. package/dist/cli/commands/functions/rmall.d.ts.map +1 -0
  150. package/dist/cli/commands/functions/rmall.js +41 -0
  151. package/dist/cli/commands/functions/rmall.js.map +1 -0
  152. package/dist/cli/commands/policies/policies.d.ts +0 -0
  153. package/dist/cli/commands/policies/policies.d.ts.map +0 -0
  154. package/dist/cli/commands/policies/policies.js +0 -0
  155. package/dist/cli/commands/policies/policies.js.map +0 -0
  156. package/dist/cli/commands/policies/role.d.ts +0 -0
  157. package/dist/cli/commands/policies/role.d.ts.map +0 -0
  158. package/dist/cli/commands/policies/role.js +0 -0
  159. package/dist/cli/commands/policies/role.js.map +0 -0
  160. package/dist/cli/commands/policies/user.d.ts +0 -0
  161. package/dist/cli/commands/policies/user.d.ts.map +0 -0
  162. package/dist/cli/commands/policies/user.js +0 -0
  163. package/dist/cli/commands/policies/user.js.map +0 -0
  164. package/dist/cli/commands/policies/validate.d.ts +0 -0
  165. package/dist/cli/commands/policies/validate.d.ts.map +0 -0
  166. package/dist/cli/commands/policies/validate.js +0 -0
  167. package/dist/cli/commands/policies/validate.js.map +0 -0
  168. package/dist/cli/commands/quotas/increase.d.ts +3 -0
  169. package/dist/cli/commands/quotas/increase.d.ts.map +1 -0
  170. package/dist/cli/commands/quotas/increase.js +58 -0
  171. package/dist/cli/commands/quotas/increase.js.map +1 -0
  172. package/dist/cli/commands/quotas/index.d.ts +3 -0
  173. package/dist/cli/commands/quotas/index.d.ts.map +1 -0
  174. package/dist/cli/commands/quotas/index.js +30 -0
  175. package/dist/cli/commands/quotas/index.js.map +1 -0
  176. package/dist/cli/commands/quotas/list.d.ts +2 -0
  177. package/dist/cli/commands/quotas/list.d.ts.map +1 -0
  178. package/dist/cli/commands/quotas/list.js +65 -0
  179. package/dist/cli/commands/quotas/list.js.map +1 -0
  180. package/dist/cli/commands/regions.d.ts +3 -0
  181. package/dist/cli/commands/regions.d.ts.map +1 -0
  182. package/dist/cli/commands/regions.js +11 -0
  183. package/dist/cli/commands/regions.js.map +1 -0
  184. package/dist/cli/commands/render/progress.d.ts +1 -3
  185. package/dist/cli/commands/render/progress.d.ts.map +1 -1
  186. package/dist/cli/commands/render/progress.js +1 -22
  187. package/dist/cli/commands/render/progress.js.map +1 -1
  188. package/dist/cli/commands/render/render.d.ts +1 -1
  189. package/dist/cli/commands/render/render.d.ts.map +1 -1
  190. package/dist/cli/commands/render/render.js +50 -40
  191. package/dist/cli/commands/render/render.js.map +1 -1
  192. package/dist/cli/commands/sites/create.d.ts +0 -0
  193. package/dist/cli/commands/sites/create.d.ts.map +1 -1
  194. package/dist/cli/commands/sites/create.js +14 -6
  195. package/dist/cli/commands/sites/create.js.map +1 -1
  196. package/dist/cli/commands/sites/index.d.ts +0 -0
  197. package/dist/cli/commands/sites/index.d.ts.map +1 -1
  198. package/dist/cli/commands/sites/index.js +4 -0
  199. package/dist/cli/commands/sites/index.js.map +1 -1
  200. package/dist/cli/commands/sites/ls.d.ts +0 -0
  201. package/dist/cli/commands/sites/ls.d.ts.map +1 -1
  202. package/dist/cli/commands/sites/ls.js +8 -5
  203. package/dist/cli/commands/sites/ls.js.map +1 -1
  204. package/dist/cli/commands/sites/rm.d.ts +0 -0
  205. package/dist/cli/commands/sites/rm.d.ts.map +1 -1
  206. package/dist/cli/commands/sites/rm.js +11 -3
  207. package/dist/cli/commands/sites/rm.js.map +1 -1
  208. package/dist/cli/commands/sites/rmall.d.ts +3 -0
  209. package/dist/cli/commands/sites/rmall.d.ts.map +1 -0
  210. package/dist/cli/commands/sites/rmall.js +49 -0
  211. package/dist/cli/commands/sites/rmall.js.map +1 -0
  212. package/dist/cli/commands/still.d.ts +0 -0
  213. package/dist/cli/commands/still.d.ts.map +1 -1
  214. package/dist/cli/commands/still.js +65 -24
  215. package/dist/cli/commands/still.js.map +1 -1
  216. package/dist/cli/get-aws-region.d.ts +0 -0
  217. package/dist/cli/get-aws-region.d.ts.map +1 -1
  218. package/dist/cli/get-aws-region.js +2 -2
  219. package/dist/cli/get-aws-region.js.map +1 -1
  220. package/dist/cli/help.d.ts +0 -0
  221. package/dist/cli/help.d.ts.map +1 -1
  222. package/dist/cli/help.js +13 -1
  223. package/dist/cli/help.js.map +1 -1
  224. package/dist/cli/helpers/confirm.d.ts +0 -0
  225. package/dist/cli/helpers/confirm.d.ts.map +1 -1
  226. package/dist/cli/helpers/confirm.js +4 -18
  227. package/dist/cli/helpers/confirm.js.map +1 -1
  228. package/dist/cli/helpers/date-string.d.ts +0 -0
  229. package/dist/cli/helpers/date-string.d.ts.map +0 -0
  230. package/dist/cli/helpers/date-string.js +0 -0
  231. package/dist/cli/helpers/date-string.js.map +0 -0
  232. package/dist/cli/helpers/find-function-name.d.ts +0 -0
  233. package/dist/cli/helpers/find-function-name.d.ts.map +0 -0
  234. package/dist/cli/helpers/find-function-name.js +0 -0
  235. package/dist/cli/helpers/find-function-name.js.map +0 -0
  236. package/dist/cli/helpers/format-bytes.d.ts +0 -0
  237. package/dist/cli/helpers/format-bytes.d.ts.map +0 -0
  238. package/dist/cli/helpers/format-bytes.js +0 -0
  239. package/dist/cli/helpers/format-bytes.js.map +0 -0
  240. package/dist/cli/helpers/get-cloudwatch-stream-url.d.ts +0 -0
  241. package/dist/cli/helpers/get-cloudwatch-stream-url.d.ts.map +0 -0
  242. package/dist/cli/helpers/get-cloudwatch-stream-url.js +0 -0
  243. package/dist/cli/helpers/get-cloudwatch-stream-url.js.map +0 -0
  244. package/dist/cli/helpers/progress-bar.d.ts +0 -0
  245. package/dist/cli/helpers/progress-bar.d.ts.map +0 -0
  246. package/dist/cli/helpers/progress-bar.js +0 -0
  247. package/dist/cli/helpers/progress-bar.js.map +0 -0
  248. package/dist/cli/helpers/quit.d.ts +0 -0
  249. package/dist/cli/helpers/quit.d.ts.map +0 -0
  250. package/dist/cli/helpers/quit.js +0 -0
  251. package/dist/cli/helpers/quit.js.map +0 -0
  252. package/dist/cli/helpers/yes-or-no.d.ts +5 -0
  253. package/dist/cli/helpers/yes-or-no.d.ts.map +1 -0
  254. package/dist/cli/helpers/yes-or-no.js +45 -0
  255. package/dist/cli/helpers/yes-or-no.js.map +1 -0
  256. package/dist/cli/index.d.ts +0 -0
  257. package/dist/cli/index.d.ts.map +1 -1
  258. package/dist/cli/index.js +24 -5
  259. package/dist/cli/index.js.map +1 -1
  260. package/dist/cli/is-cli.d.ts +3 -0
  261. package/dist/cli/is-cli.d.ts.map +1 -0
  262. package/dist/cli/is-cli.js +11 -0
  263. package/dist/cli/is-cli.js.map +1 -0
  264. package/dist/cli/log.d.ts +0 -0
  265. package/dist/cli/log.d.ts.map +0 -0
  266. package/dist/cli/log.js +0 -0
  267. package/dist/cli/log.js.map +0 -0
  268. package/dist/client.d.ts +4 -4
  269. package/dist/client.d.ts.map +1 -1
  270. package/dist/client.js +8 -7
  271. package/dist/client.js.map +1 -1
  272. package/dist/defaults.d.ts +0 -0
  273. package/dist/defaults.d.ts.map +0 -0
  274. package/dist/defaults.js +0 -0
  275. package/dist/defaults.js.map +0 -0
  276. package/dist/functions/chunk-optimization/can-use-optimization.d.ts +0 -0
  277. package/dist/functions/chunk-optimization/can-use-optimization.d.ts.map +0 -0
  278. package/dist/functions/chunk-optimization/can-use-optimization.js +0 -0
  279. package/dist/functions/chunk-optimization/can-use-optimization.js.map +0 -0
  280. package/dist/functions/chunk-optimization/collect-data.d.ts +3 -2
  281. package/dist/functions/chunk-optimization/collect-data.d.ts.map +1 -1
  282. package/dist/functions/chunk-optimization/collect-data.js +0 -0
  283. package/dist/functions/chunk-optimization/collect-data.js.map +0 -0
  284. package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts +4 -1
  285. package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts.map +1 -1
  286. package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.js +0 -0
  287. package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.js.map +0 -0
  288. package/dist/functions/chunk-optimization/get-profile-duration.d.ts +0 -0
  289. package/dist/functions/chunk-optimization/get-profile-duration.d.ts.map +0 -0
  290. package/dist/functions/chunk-optimization/get-profile-duration.js +0 -0
  291. package/dist/functions/chunk-optimization/get-profile-duration.js.map +0 -0
  292. package/dist/functions/chunk-optimization/is-valid-profile.d.ts +0 -0
  293. package/dist/functions/chunk-optimization/is-valid-profile.d.ts.map +0 -0
  294. package/dist/functions/chunk-optimization/is-valid-profile.js +0 -0
  295. package/dist/functions/chunk-optimization/is-valid-profile.js.map +0 -0
  296. package/dist/functions/chunk-optimization/optimize-invocation-order.d.ts +0 -0
  297. package/dist/functions/chunk-optimization/optimize-invocation-order.d.ts.map +0 -0
  298. package/dist/functions/chunk-optimization/optimize-invocation-order.js +0 -0
  299. package/dist/functions/chunk-optimization/optimize-invocation-order.js.map +0 -0
  300. package/dist/functions/chunk-optimization/optimize-profile.d.ts +8 -2
  301. package/dist/functions/chunk-optimization/optimize-profile.d.ts.map +1 -1
  302. package/dist/functions/chunk-optimization/optimize-profile.js +0 -0
  303. package/dist/functions/chunk-optimization/optimize-profile.js.map +0 -0
  304. package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts +4 -1
  305. package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts.map +1 -1
  306. package/dist/functions/chunk-optimization/plan-frame-ranges.js +0 -0
  307. package/dist/functions/chunk-optimization/plan-frame-ranges.js.map +0 -0
  308. package/dist/functions/chunk-optimization/s3-optimization-file.d.ts +0 -0
  309. package/dist/functions/chunk-optimization/s3-optimization-file.d.ts.map +0 -0
  310. package/dist/functions/chunk-optimization/s3-optimization-file.js +0 -0
  311. package/dist/functions/chunk-optimization/s3-optimization-file.js.map +0 -0
  312. package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts +4 -1
  313. package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts.map +1 -1
  314. package/dist/functions/chunk-optimization/simulate-frame-ranges.js +0 -0
  315. package/dist/functions/chunk-optimization/simulate-frame-ranges.js.map +0 -0
  316. package/dist/functions/chunk-optimization/sort-by-duration.d.ts +0 -0
  317. package/dist/functions/chunk-optimization/sort-by-duration.d.ts.map +0 -0
  318. package/dist/functions/chunk-optimization/sort-by-duration.js +0 -0
  319. package/dist/functions/chunk-optimization/sort-by-duration.js.map +0 -0
  320. package/dist/functions/chunk-optimization/types.d.ts +0 -0
  321. package/dist/functions/chunk-optimization/types.d.ts.map +0 -0
  322. package/dist/functions/chunk-optimization/types.js +0 -0
  323. package/dist/functions/chunk-optimization/types.js.map +0 -0
  324. package/dist/functions/fire.d.ts +0 -0
  325. package/dist/functions/fire.d.ts.map +0 -0
  326. package/dist/functions/fire.js +0 -0
  327. package/dist/functions/fire.js.map +0 -0
  328. package/dist/functions/helpers/best-frames-per-lambda-param.d.ts +2 -0
  329. package/dist/functions/helpers/best-frames-per-lambda-param.d.ts.map +1 -0
  330. package/dist/functions/helpers/best-frames-per-lambda-param.js +18 -0
  331. package/dist/functions/helpers/best-frames-per-lambda-param.js.map +1 -0
  332. package/dist/functions/helpers/calculate-chunk-times.d.ts +0 -0
  333. package/dist/functions/helpers/calculate-chunk-times.d.ts.map +1 -1
  334. package/dist/functions/helpers/calculate-chunk-times.js +13 -10
  335. package/dist/functions/helpers/calculate-chunk-times.js.map +1 -1
  336. package/dist/functions/helpers/calculate-price-from-bucket.d.ts +7 -2
  337. package/dist/functions/helpers/calculate-price-from-bucket.d.ts.map +1 -1
  338. package/dist/functions/helpers/calculate-price-from-bucket.js +7 -10
  339. package/dist/functions/helpers/calculate-price-from-bucket.js.map +1 -1
  340. package/dist/functions/helpers/clean-tmpdir.d.ts +0 -0
  341. package/dist/functions/helpers/clean-tmpdir.d.ts.map +1 -1
  342. package/dist/functions/helpers/clean-tmpdir.js +0 -1
  343. package/dist/functions/helpers/clean-tmpdir.js.map +1 -1
  344. package/dist/functions/helpers/concat-videos.d.ts +0 -0
  345. package/dist/functions/helpers/concat-videos.d.ts.map +1 -1
  346. package/dist/functions/helpers/concat-videos.js +5 -3
  347. package/dist/functions/helpers/concat-videos.js.map +1 -1
  348. package/dist/functions/helpers/create-post-render-data.d.ts +5 -4
  349. package/dist/functions/helpers/create-post-render-data.d.ts.map +1 -1
  350. package/dist/functions/helpers/create-post-render-data.js +9 -9
  351. package/dist/functions/helpers/create-post-render-data.js.map +1 -1
  352. package/dist/functions/helpers/delete-chunks.d.ts +1 -1
  353. package/dist/functions/helpers/delete-chunks.d.ts.map +1 -1
  354. package/dist/functions/helpers/delete-chunks.js +0 -0
  355. package/dist/functions/helpers/delete-chunks.js.map +1 -1
  356. package/dist/functions/helpers/expected-out-name.d.ts +2 -2
  357. package/dist/functions/helpers/expected-out-name.d.ts.map +1 -1
  358. package/dist/functions/helpers/expected-out-name.js +14 -3
  359. package/dist/functions/helpers/expected-out-name.js.map +1 -1
  360. package/dist/functions/helpers/find-output-file-in-bucket.d.ts +8 -7
  361. package/dist/functions/helpers/find-output-file-in-bucket.d.ts.map +1 -1
  362. package/dist/functions/helpers/find-output-file-in-bucket.js +23 -17
  363. package/dist/functions/helpers/find-output-file-in-bucket.js.map +1 -1
  364. package/dist/functions/helpers/format-costs-info.d.ts +0 -0
  365. package/dist/functions/helpers/format-costs-info.d.ts.map +0 -0
  366. package/dist/functions/helpers/format-costs-info.js +0 -0
  367. package/dist/functions/helpers/format-costs-info.js.map +0 -0
  368. package/dist/functions/helpers/get-browser-instance.d.ts +2 -2
  369. package/dist/functions/helpers/get-browser-instance.d.ts.map +1 -1
  370. package/dist/functions/helpers/get-browser-instance.js +6 -1
  371. package/dist/functions/helpers/get-browser-instance.js.map +1 -1
  372. package/dist/functions/helpers/get-chromium-executable-path.d.ts +1 -1
  373. package/dist/functions/helpers/get-chromium-executable-path.d.ts.map +1 -1
  374. package/dist/functions/helpers/get-chromium-executable-path.js +0 -0
  375. package/dist/functions/helpers/get-chromium-executable-path.js.map +1 -1
  376. package/dist/functions/helpers/get-cleanup-progress.d.ts +0 -0
  377. package/dist/functions/helpers/get-cleanup-progress.d.ts.map +0 -0
  378. package/dist/functions/helpers/get-cleanup-progress.js +0 -0
  379. package/dist/functions/helpers/get-cleanup-progress.js.map +0 -0
  380. package/dist/functions/helpers/get-current-architecture.d.ts +3 -0
  381. package/dist/functions/helpers/get-current-architecture.d.ts.map +1 -0
  382. package/dist/functions/helpers/get-current-architecture.js +12 -0
  383. package/dist/functions/helpers/get-current-architecture.js.map +1 -0
  384. package/dist/functions/helpers/get-current-region.d.ts +0 -0
  385. package/dist/functions/helpers/get-current-region.d.ts.map +0 -0
  386. package/dist/functions/helpers/get-current-region.js +2 -2
  387. package/dist/functions/helpers/get-current-region.js.map +1 -1
  388. package/dist/functions/helpers/get-encoding-metadata.d.ts +0 -0
  389. package/dist/functions/helpers/get-encoding-metadata.d.ts.map +0 -0
  390. package/dist/functions/helpers/get-encoding-metadata.js +0 -0
  391. package/dist/functions/helpers/get-encoding-metadata.js.map +0 -0
  392. package/dist/functions/helpers/get-files-in-folder.d.ts +0 -0
  393. package/dist/functions/helpers/get-files-in-folder.d.ts.map +0 -0
  394. package/dist/functions/helpers/get-files-in-folder.js +0 -0
  395. package/dist/functions/helpers/get-files-in-folder.js.map +0 -0
  396. package/dist/functions/helpers/get-files-to-delete.d.ts +0 -0
  397. package/dist/functions/helpers/get-files-to-delete.d.ts.map +0 -0
  398. package/dist/functions/helpers/get-files-to-delete.js +0 -0
  399. package/dist/functions/helpers/get-files-to-delete.js.map +0 -0
  400. package/dist/functions/helpers/get-final-encoding-status.d.ts +0 -0
  401. package/dist/functions/helpers/get-final-encoding-status.d.ts.map +0 -0
  402. package/dist/functions/helpers/get-final-encoding-status.js +0 -0
  403. package/dist/functions/helpers/get-final-encoding-status.js.map +0 -0
  404. package/dist/functions/helpers/get-folder-size.d.ts +0 -0
  405. package/dist/functions/helpers/get-folder-size.d.ts.map +0 -0
  406. package/dist/functions/helpers/get-folder-size.js +0 -0
  407. package/dist/functions/helpers/get-folder-size.js.map +0 -0
  408. package/dist/functions/helpers/get-lambdas-invoked-stats.d.ts +0 -0
  409. package/dist/functions/helpers/get-lambdas-invoked-stats.d.ts.map +0 -0
  410. package/dist/functions/helpers/get-lambdas-invoked-stats.js +0 -0
  411. package/dist/functions/helpers/get-lambdas-invoked-stats.js.map +0 -0
  412. package/dist/functions/helpers/get-output-url-from-metadata.d.ts +3 -0
  413. package/dist/functions/helpers/get-output-url-from-metadata.d.ts.map +1 -0
  414. package/dist/functions/helpers/get-output-url-from-metadata.js +11 -0
  415. package/dist/functions/helpers/get-output-url-from-metadata.js.map +1 -0
  416. package/dist/functions/helpers/get-overall-progress.d.ts +0 -0
  417. package/dist/functions/helpers/get-overall-progress.d.ts.map +0 -0
  418. package/dist/functions/helpers/get-overall-progress.js +0 -0
  419. package/dist/functions/helpers/get-overall-progress.js.map +0 -0
  420. package/dist/functions/helpers/get-post-render-data.d.ts +1 -1
  421. package/dist/functions/helpers/get-post-render-data.d.ts.map +1 -1
  422. package/dist/functions/helpers/get-post-render-data.js +0 -0
  423. package/dist/functions/helpers/get-post-render-data.js.map +0 -0
  424. package/dist/functions/helpers/get-progress.d.ts +1 -1
  425. package/dist/functions/helpers/get-progress.d.ts.map +1 -1
  426. package/dist/functions/helpers/get-progress.js +33 -15
  427. package/dist/functions/helpers/get-progress.js.map +1 -1
  428. package/dist/functions/helpers/get-render-metadata.d.ts +0 -0
  429. package/dist/functions/helpers/get-render-metadata.d.ts.map +0 -0
  430. package/dist/functions/helpers/get-render-metadata.js +0 -0
  431. package/dist/functions/helpers/get-render-metadata.js.map +0 -0
  432. package/dist/functions/helpers/get-retry-stats.d.ts +0 -0
  433. package/dist/functions/helpers/get-retry-stats.d.ts.map +0 -0
  434. package/dist/functions/helpers/get-retry-stats.js +0 -0
  435. package/dist/functions/helpers/get-retry-stats.js.map +0 -0
  436. package/dist/functions/helpers/get-time-to-finish.d.ts +0 -0
  437. package/dist/functions/helpers/get-time-to-finish.d.ts.map +0 -0
  438. package/dist/functions/helpers/get-time-to-finish.js +0 -0
  439. package/dist/functions/helpers/get-time-to-finish.js.map +0 -0
  440. package/dist/functions/helpers/inspect-errors.d.ts +0 -0
  441. package/dist/functions/helpers/inspect-errors.d.ts.map +1 -1
  442. package/dist/functions/helpers/inspect-errors.js +5 -1
  443. package/dist/functions/helpers/inspect-errors.js.map +1 -1
  444. package/dist/functions/helpers/io.d.ts +0 -0
  445. package/dist/functions/helpers/io.d.ts.map +0 -0
  446. package/dist/functions/helpers/io.js +0 -0
  447. package/dist/functions/helpers/io.js.map +0 -0
  448. package/dist/functions/helpers/is-enosp-err.d.ts +0 -0
  449. package/dist/functions/helpers/is-enosp-err.d.ts.map +0 -0
  450. package/dist/functions/helpers/is-enosp-err.js +0 -0
  451. package/dist/functions/helpers/is-enosp-err.js.map +0 -0
  452. package/dist/functions/helpers/is-warm.d.ts +0 -0
  453. package/dist/functions/helpers/is-warm.d.ts.map +0 -0
  454. package/dist/functions/helpers/is-warm.js +0 -0
  455. package/dist/functions/helpers/is-warm.js.map +0 -0
  456. package/dist/functions/helpers/min-max.d.ts +0 -0
  457. package/dist/functions/helpers/min-max.d.ts.map +0 -0
  458. package/dist/functions/helpers/min-max.js +0 -0
  459. package/dist/functions/helpers/min-max.js.map +0 -0
  460. package/dist/functions/helpers/presign-url.d.ts +2 -0
  461. package/dist/functions/helpers/presign-url.d.ts.map +1 -0
  462. package/dist/functions/helpers/presign-url.js +9 -0
  463. package/dist/functions/helpers/presign-url.js.map +1 -0
  464. package/dist/functions/helpers/print-cloudwatch-helper.d.ts +0 -0
  465. package/dist/functions/helpers/print-cloudwatch-helper.d.ts.map +0 -0
  466. package/dist/functions/helpers/print-cloudwatch-helper.js +0 -0
  467. package/dist/functions/helpers/print-cloudwatch-helper.js.map +0 -0
  468. package/dist/functions/helpers/print-concurrency-curve.d.ts +2 -0
  469. package/dist/functions/helpers/print-concurrency-curve.d.ts.map +1 -0
  470. package/dist/functions/helpers/print-concurrency-curve.js +9 -0
  471. package/dist/functions/helpers/print-concurrency-curve.js.map +1 -0
  472. package/dist/functions/helpers/read-with-progress.d.ts +5 -3
  473. package/dist/functions/helpers/read-with-progress.d.ts.map +1 -1
  474. package/dist/functions/helpers/read-with-progress.js +4 -12
  475. package/dist/functions/helpers/read-with-progress.js.map +1 -1
  476. package/dist/functions/helpers/timer.d.ts +0 -0
  477. package/dist/functions/helpers/timer.d.ts.map +0 -0
  478. package/dist/functions/helpers/timer.js +0 -0
  479. package/dist/functions/helpers/timer.js.map +0 -0
  480. package/dist/functions/helpers/validate-composition.d.ts +0 -0
  481. package/dist/functions/helpers/validate-composition.d.ts.map +0 -0
  482. package/dist/functions/helpers/validate-composition.js +0 -0
  483. package/dist/functions/helpers/validate-composition.js.map +0 -0
  484. package/dist/functions/helpers/write-lambda-error.d.ts +2 -0
  485. package/dist/functions/helpers/write-lambda-error.d.ts.map +1 -1
  486. package/dist/functions/helpers/write-lambda-error.js +0 -0
  487. package/dist/functions/helpers/write-lambda-error.js.map +1 -1
  488. package/dist/functions/helpers/write-post-render-data.d.ts +1 -1
  489. package/dist/functions/helpers/write-post-render-data.d.ts.map +1 -1
  490. package/dist/functions/helpers/write-post-render-data.js +0 -0
  491. package/dist/functions/helpers/write-post-render-data.js.map +0 -0
  492. package/dist/functions/index.d.ts +0 -0
  493. package/dist/functions/index.d.ts.map +1 -1
  494. package/dist/functions/index.js +1 -7
  495. package/dist/functions/index.js.map +1 -1
  496. package/dist/functions/info.d.ts +0 -0
  497. package/dist/functions/info.d.ts.map +1 -1
  498. package/dist/functions/info.js +2 -2
  499. package/dist/functions/info.js.map +1 -1
  500. package/dist/functions/launch.d.ts +0 -0
  501. package/dist/functions/launch.d.ts.map +1 -1
  502. package/dist/functions/launch.js +44 -26
  503. package/dist/functions/launch.js.map +1 -1
  504. package/dist/functions/progress.d.ts +0 -0
  505. package/dist/functions/progress.d.ts.map +0 -0
  506. package/dist/functions/progress.js +1 -1
  507. package/dist/functions/progress.js.map +1 -1
  508. package/dist/functions/renderer.d.ts +0 -0
  509. package/dist/functions/renderer.d.ts.map +1 -1
  510. package/dist/functions/renderer.js +27 -12
  511. package/dist/functions/renderer.js.map +1 -1
  512. package/dist/functions/start.d.ts +0 -0
  513. package/dist/functions/start.d.ts.map +1 -1
  514. package/dist/functions/start.js +5 -6
  515. package/dist/functions/start.js.map +1 -1
  516. package/dist/functions/still.d.ts +0 -0
  517. package/dist/functions/still.d.ts.map +1 -1
  518. package/dist/functions/still.js +25 -16
  519. package/dist/functions/still.js.map +1 -1
  520. package/dist/index.d.ts +21 -17
  521. package/dist/index.d.ts.map +1 -1
  522. package/dist/index.js +15 -7
  523. package/dist/index.js.map +1 -1
  524. package/dist/internals.d.ts +0 -0
  525. package/dist/internals.d.ts.map +0 -0
  526. package/dist/internals.js +0 -0
  527. package/dist/internals.js.map +0 -0
  528. package/dist/pricing/aws-regions.d.ts +0 -0
  529. package/dist/pricing/aws-regions.d.ts.map +0 -0
  530. package/dist/pricing/aws-regions.js +0 -0
  531. package/dist/pricing/aws-regions.js.map +0 -0
  532. package/dist/pricing/price-per-1-s.d.ts +8 -0
  533. package/dist/pricing/price-per-1-s.d.ts.map +1 -1
  534. package/dist/pricing/price-per-1-s.js +82 -2
  535. package/dist/pricing/price-per-1-s.js.map +1 -1
  536. package/dist/regions.d.ts +0 -0
  537. package/dist/regions.d.ts.map +0 -0
  538. package/dist/regions.js +0 -0
  539. package/dist/regions.js.map +0 -0
  540. package/dist/shared/await.d.ts +0 -0
  541. package/dist/shared/await.d.ts.map +0 -0
  542. package/dist/shared/await.js +0 -0
  543. package/dist/shared/await.js.map +0 -0
  544. package/dist/shared/aws-clients.d.ts +10 -0
  545. package/dist/shared/aws-clients.d.ts.map +1 -1
  546. package/dist/shared/aws-clients.js +68 -31
  547. package/dist/shared/aws-clients.js.map +1 -1
  548. package/dist/shared/bundle-site.d.ts +0 -0
  549. package/dist/shared/bundle-site.d.ts.map +0 -0
  550. package/dist/shared/bundle-site.js +0 -0
  551. package/dist/shared/bundle-site.js.map +0 -0
  552. package/dist/shared/call-lambda.d.ts +0 -0
  553. package/dist/shared/call-lambda.d.ts.map +0 -0
  554. package/dist/shared/call-lambda.js +0 -0
  555. package/dist/shared/call-lambda.js.map +0 -0
  556. package/dist/shared/check-credentials.d.ts +0 -0
  557. package/dist/shared/check-credentials.d.ts.map +1 -1
  558. package/dist/shared/check-credentials.js +16 -4
  559. package/dist/shared/check-credentials.js.map +1 -1
  560. package/dist/shared/chunk.d.ts +0 -0
  561. package/dist/shared/chunk.d.ts.map +0 -0
  562. package/dist/shared/chunk.js +0 -0
  563. package/dist/shared/chunk.js.map +0 -0
  564. package/dist/shared/constants.d.ts +40 -17
  565. package/dist/shared/constants.d.ts.map +1 -1
  566. package/dist/shared/constants.js +19 -8
  567. package/dist/shared/constants.js.map +1 -1
  568. package/dist/shared/convert-to-serve-url.d.ts +0 -0
  569. package/dist/shared/convert-to-serve-url.d.ts.map +0 -0
  570. package/dist/shared/convert-to-serve-url.js +0 -0
  571. package/dist/shared/convert-to-serve-url.js.map +0 -0
  572. package/dist/shared/docs-url.d.ts +1 -1
  573. package/dist/shared/docs-url.d.ts.map +1 -1
  574. package/dist/shared/docs-url.js +1 -1
  575. package/dist/shared/docs-url.js.map +1 -1
  576. package/dist/shared/function-zip-path.d.ts +0 -0
  577. package/dist/shared/function-zip-path.d.ts.map +0 -0
  578. package/dist/shared/function-zip-path.js +0 -0
  579. package/dist/shared/function-zip-path.js.map +0 -0
  580. package/dist/shared/get-account-id.d.ts +0 -0
  581. package/dist/shared/get-account-id.d.ts.map +0 -0
  582. package/dist/shared/get-account-id.js +0 -0
  583. package/dist/shared/get-account-id.js.map +0 -0
  584. package/dist/shared/get-function-version.d.ts +0 -0
  585. package/dist/shared/get-function-version.d.ts.map +0 -0
  586. package/dist/shared/get-function-version.js +0 -0
  587. package/dist/shared/get-function-version.js.map +0 -0
  588. package/dist/shared/hosted-layers.d.ts +9 -5
  589. package/dist/shared/hosted-layers.d.ts.map +1 -1
  590. package/dist/shared/hosted-layers.js +284 -140
  591. package/dist/shared/hosted-layers.js.map +1 -1
  592. package/dist/shared/is-in-lambda.d.ts +1 -1
  593. package/dist/shared/is-in-lambda.d.ts.map +1 -1
  594. package/dist/shared/is-in-lambda.js +3 -2
  595. package/dist/shared/is-in-lambda.js.map +1 -1
  596. package/dist/shared/make-s3-url.d.ts +0 -0
  597. package/dist/shared/make-s3-url.d.ts.map +0 -0
  598. package/dist/shared/make-s3-url.js +0 -0
  599. package/dist/shared/make-s3-url.js.map +0 -0
  600. package/dist/shared/parse-lambda-initialized-key.d.ts +0 -0
  601. package/dist/shared/parse-lambda-initialized-key.d.ts.map +0 -0
  602. package/dist/shared/parse-lambda-initialized-key.js +0 -0
  603. package/dist/shared/parse-lambda-initialized-key.js.map +0 -0
  604. package/dist/shared/parse-lambda-timings-key.d.ts +2 -1
  605. package/dist/shared/parse-lambda-timings-key.d.ts.map +1 -1
  606. package/dist/shared/parse-lambda-timings-key.js +0 -0
  607. package/dist/shared/parse-lambda-timings-key.js.map +1 -1
  608. package/dist/shared/random-hash.d.ts +3 -1
  609. package/dist/shared/random-hash.d.ts.map +1 -1
  610. package/dist/shared/random-hash.js +2 -1
  611. package/dist/shared/random-hash.js.map +1 -1
  612. package/dist/shared/return-values.d.ts +0 -2
  613. package/dist/shared/return-values.d.ts.map +1 -1
  614. package/dist/shared/return-values.js +0 -0
  615. package/dist/shared/return-values.js.map +1 -1
  616. package/dist/shared/sleep.d.ts +0 -0
  617. package/dist/shared/sleep.d.ts.map +0 -0
  618. package/dist/shared/sleep.js +0 -0
  619. package/dist/shared/sleep.js.map +0 -0
  620. package/dist/shared/stream-to-string.d.ts +0 -0
  621. package/dist/shared/stream-to-string.d.ts.map +0 -0
  622. package/dist/shared/stream-to-string.js +0 -0
  623. package/dist/shared/stream-to-string.js.map +0 -0
  624. package/dist/shared/validate-architecture.d.ts +5 -0
  625. package/dist/shared/validate-architecture.d.ts.map +1 -0
  626. package/dist/shared/validate-architecture.js +15 -0
  627. package/dist/shared/validate-architecture.js.map +1 -0
  628. package/dist/shared/validate-aws-region.d.ts +0 -0
  629. package/dist/shared/validate-aws-region.d.ts.map +0 -0
  630. package/dist/shared/validate-aws-region.js +0 -0
  631. package/dist/shared/validate-aws-region.js.map +0 -0
  632. package/dist/shared/validate-bucketname.d.ts +4 -0
  633. package/dist/shared/validate-bucketname.d.ts.map +1 -0
  634. package/dist/shared/validate-bucketname.js +18 -0
  635. package/dist/shared/validate-bucketname.js.map +1 -0
  636. package/dist/shared/validate-disk-size-in-mb.d.ts +2 -0
  637. package/dist/shared/validate-disk-size-in-mb.d.ts.map +1 -0
  638. package/dist/shared/validate-disk-size-in-mb.js +24 -0
  639. package/dist/shared/validate-disk-size-in-mb.js.map +1 -0
  640. package/dist/shared/validate-frames-per-lambda.d.ts +2 -0
  641. package/dist/shared/validate-frames-per-lambda.d.ts.map +1 -0
  642. package/dist/shared/validate-frames-per-lambda.js +29 -0
  643. package/dist/shared/validate-frames-per-lambda.js.map +1 -0
  644. package/dist/shared/validate-memory-size.d.ts +0 -0
  645. package/dist/shared/validate-memory-size.d.ts.map +0 -0
  646. package/dist/shared/validate-memory-size.js +0 -0
  647. package/dist/shared/validate-memory-size.js.map +0 -0
  648. package/dist/shared/validate-outname.d.ts +3 -0
  649. package/dist/shared/validate-outname.d.ts.map +1 -0
  650. package/dist/shared/validate-outname.js +27 -0
  651. package/dist/shared/validate-outname.js.map +1 -0
  652. package/dist/shared/validate-presign-expiration.d.ts +4 -0
  653. package/dist/shared/validate-presign-expiration.d.ts.map +1 -0
  654. package/dist/shared/validate-presign-expiration.js +30 -0
  655. package/dist/shared/validate-presign-expiration.js.map +1 -0
  656. package/dist/shared/validate-privacy.d.ts +0 -0
  657. package/dist/shared/validate-privacy.d.ts.map +0 -0
  658. package/dist/shared/validate-privacy.js +0 -0
  659. package/dist/shared/validate-privacy.js.map +0 -0
  660. package/dist/shared/validate-retention-period.d.ts +2 -0
  661. package/dist/shared/validate-retention-period.d.ts.map +1 -0
  662. package/dist/shared/validate-retention-period.js +30 -0
  663. package/dist/shared/validate-retention-period.js.map +1 -0
  664. package/dist/shared/validate-retries.d.ts +0 -0
  665. package/dist/shared/validate-retries.d.ts.map +0 -0
  666. package/dist/shared/validate-retries.js +0 -0
  667. package/dist/shared/validate-retries.js.map +0 -0
  668. package/dist/shared/validate-serveurl.d.ts +2 -0
  669. package/dist/shared/validate-serveurl.d.ts.map +1 -0
  670. package/dist/shared/validate-serveurl.js +10 -0
  671. package/dist/shared/validate-serveurl.js.map +1 -0
  672. package/dist/shared/validate-site-name.d.ts +2 -0
  673. package/dist/shared/validate-site-name.d.ts.map +1 -0
  674. package/dist/shared/validate-site-name.js +18 -0
  675. package/dist/shared/validate-site-name.js.map +1 -0
  676. package/dist/shared/validate-timeout.d.ts +0 -0
  677. package/dist/shared/validate-timeout.d.ts.map +0 -0
  678. package/dist/shared/validate-timeout.js +0 -0
  679. package/dist/shared/validate-timeout.js.map +0 -0
  680. package/package.json +25 -21
  681. package/remotion-lambda-cli.js +1 -1
  682. package/remotionlambda.zip +0 -0
  683. package/dist/admin/replicate-binaries.d.ts +0 -2
  684. package/dist/admin/replicate-binaries.d.ts.map +0 -1
  685. package/dist/admin/replicate-binaries.js +0 -50
  686. package/dist/admin/replicate-binaries.js.map +0 -1
  687. package/dist/api/bundle-lambda.d.ts +0 -2
  688. package/dist/api/bundle-lambda.d.ts.map +0 -1
  689. package/dist/api/bundle-lambda.js +0 -34
  690. package/dist/api/bundle-lambda.js.map +0 -1
  691. package/dist/api/bundle-remotion.d.ts +0 -6
  692. package/dist/api/bundle-remotion.d.ts.map +0 -1
  693. package/dist/api/bundle-remotion.js +0 -12
  694. package/dist/api/bundle-remotion.js.map +0 -1
  695. package/dist/api/deploy-lambda.d.ts +0 -7
  696. package/dist/api/deploy-lambda.d.ts.map +0 -1
  697. package/dist/api/deploy-lambda.js +0 -48
  698. package/dist/api/deploy-lambda.js.map +0 -1
  699. package/dist/api/deploy-project.d.ts +0 -28
  700. package/dist/api/deploy-project.d.ts.map +0 -1
  701. package/dist/api/deploy-project.js +0 -58
  702. package/dist/api/deploy-project.js.map +0 -1
  703. package/dist/api/download-video.d.ts +0 -16
  704. package/dist/api/download-video.d.ts.map +0 -1
  705. package/dist/api/download-video.js.map +0 -1
  706. package/dist/api/ensure-lambda-binaries.d.ts +0 -11
  707. package/dist/api/ensure-lambda-binaries.d.ts.map +0 -1
  708. package/dist/api/ensure-lambda-binaries.js +0 -60
  709. package/dist/api/ensure-lambda-binaries.js.map +0 -1
  710. package/dist/api/get-deployed-lambdas.d.ts +0 -10
  711. package/dist/api/get-deployed-lambdas.d.ts.map +0 -1
  712. package/dist/api/get-deployed-lambdas.js +0 -31
  713. package/dist/api/get-deployed-lambdas.js.map +0 -1
  714. package/dist/api/get-function-version.d.ts +0 -7
  715. package/dist/api/get-function-version.d.ts.map +0 -1
  716. package/dist/api/get-function-version.js +0 -27
  717. package/dist/api/get-function-version.js.map +0 -1
  718. package/dist/api/iam-validation/required-permissions.d.ts +0 -6
  719. package/dist/api/iam-validation/required-permissions.d.ts.map +0 -1
  720. package/dist/api/iam-validation/required-permissions.js +0 -68
  721. package/dist/api/iam-validation/required-permissions.js.map +0 -1
  722. package/dist/api/render-video-on-lambda.d.ts.map +0 -1
  723. package/dist/api/render-video-on-lambda.js.map +0 -1
  724. package/dist/api/validate-frames-per-lambda.d.ts +0 -2
  725. package/dist/api/validate-frames-per-lambda.d.ts.map +0 -1
  726. package/dist/api/validate-frames-per-lambda.js +0 -26
  727. package/dist/api/validate-frames-per-lambda.js.map +0 -1
  728. package/dist/benchmark.d.ts +0 -2
  729. package/dist/benchmark.d.ts.map +0 -1
  730. package/dist/benchmark.js +0 -30
  731. package/dist/benchmark.js.map +0 -1
  732. package/dist/build-render/index.js +0 -126181
  733. package/dist/chunked-upload.d.ts +0 -2
  734. package/dist/chunked-upload.d.ts.map +0 -1
  735. package/dist/chunked-upload.js +0 -34
  736. package/dist/chunked-upload.js.map +0 -1
  737. package/dist/cleanup/cleanup-lambdas.d.ts +0 -7
  738. package/dist/cleanup/cleanup-lambdas.d.ts.map +0 -1
  739. package/dist/cleanup/cleanup-lambdas.js +0 -22
  740. package/dist/cleanup/cleanup-lambdas.js.map +0 -1
  741. package/dist/cleanup/s3-buckets.d.ts +0 -16
  742. package/dist/cleanup/s3-buckets.d.ts.map +0 -1
  743. package/dist/cleanup/s3-buckets.js +0 -59
  744. package/dist/cleanup/s3-buckets.js.map +0 -1
  745. package/dist/cli/cleanup.d.ts +0 -4
  746. package/dist/cli/cleanup.d.ts.map +0 -1
  747. package/dist/cli/cleanup.js +0 -77
  748. package/dist/cli/cleanup.js.map +0 -1
  749. package/dist/cli/commands/render.d.ts +0 -3
  750. package/dist/cli/commands/render.d.ts.map +0 -1
  751. package/dist/cli/commands/render.js +0 -75
  752. package/dist/cli/commands/render.js.map +0 -1
  753. package/dist/cli/commands/sites/upload.d.ts +0 -3
  754. package/dist/cli/commands/sites/upload.d.ts.map +0 -1
  755. package/dist/cli/commands/sites/upload.js +0 -111
  756. package/dist/cli/commands/sites/upload.js.map +0 -1
  757. package/dist/cli/deploy.d.ts +0 -3
  758. package/dist/cli/deploy.d.ts.map +0 -1
  759. package/dist/cli/deploy.js +0 -13
  760. package/dist/cli/deploy.js.map +0 -1
  761. package/dist/cli/policies.d.ts +0 -3
  762. package/dist/cli/policies.d.ts.map +0 -1
  763. package/dist/cli/policies.js +0 -59
  764. package/dist/cli/policies.js.map +0 -1
  765. package/dist/cli/render.d.ts +0 -3
  766. package/dist/cli/render.d.ts.map +0 -1
  767. package/dist/cli/render.js +0 -96
  768. package/dist/cli/render.js.map +0 -1
  769. package/dist/cli/upload.d.ts +0 -3
  770. package/dist/cli/upload.d.ts.map +0 -1
  771. package/dist/cli/upload.js +0 -112
  772. package/dist/cli/upload.js.map +0 -1
  773. package/dist/functions/chunk-optimization/write-profile.d.ts +0 -8
  774. package/dist/functions/chunk-optimization/write-profile.d.ts.map +0 -1
  775. package/dist/functions/chunk-optimization/write-profile.js +0 -18
  776. package/dist/functions/chunk-optimization/write-profile.js.map +0 -1
  777. package/dist/functions/get-progress.d.ts +0 -27
  778. package/dist/functions/get-progress.d.ts.map +0 -1
  779. package/dist/functions/get-progress.js +0 -161
  780. package/dist/functions/get-progress.js.map +0 -1
  781. package/dist/functions/helpers/is-fatal-error.d.ts +0 -3
  782. package/dist/functions/helpers/is-fatal-error.d.ts.map +0 -1
  783. package/dist/functions/helpers/is-fatal-error.js +0 -8
  784. package/dist/functions/helpers/is-fatal-error.js.map +0 -1
  785. package/dist/functions/helpers/upload-browser-logs.d.ts +0 -11
  786. package/dist/functions/helpers/upload-browser-logs.d.ts.map +0 -1
  787. package/dist/functions/helpers/upload-browser-logs.js +0 -18
  788. package/dist/functions/helpers/upload-browser-logs.js.map +0 -1
  789. package/dist/pricing/calculate-price.d.ts +0 -15
  790. package/dist/pricing/calculate-price.d.ts.map +0 -1
  791. package/dist/pricing/calculate-price.js +0 -34
  792. package/dist/pricing/calculate-price.js.map +0 -1
  793. package/dist/rendering/chunked-concatenation.d.ts +0 -3
  794. package/dist/rendering/chunked-concatenation.d.ts.map +0 -1
  795. package/dist/rendering/chunked-concatenation.js +0 -38
  796. package/dist/rendering/chunked-concatenation.js.map +0 -1
  797. package/dist/rendering/create-named-pipe.d.ts +0 -8
  798. package/dist/rendering/create-named-pipe.d.ts.map +0 -1
  799. package/dist/rendering/create-named-pipe.js +0 -41
  800. package/dist/rendering/create-named-pipe.js.map +0 -1
  801. package/dist/rendering/mount-tmp-fs.d.ts +0 -2
  802. package/dist/rendering/mount-tmp-fs.d.ts.map +0 -1
  803. package/dist/rendering/mount-tmp-fs.js +0 -19
  804. package/dist/rendering/mount-tmp-fs.js.map +0 -1
  805. package/dist/run.d.ts +0 -2
  806. package/dist/run.d.ts.map +0 -1
  807. package/dist/run.js +0 -104
  808. package/dist/run.js.map +0 -1
  809. package/dist/scripts2.d.ts +0 -1
  810. package/dist/scripts2.d.ts.map +0 -1
  811. package/dist/scripts2.js +0 -2
  812. package/dist/scripts2.js.map +0 -1
  813. package/dist/shared/download-with-progress.d.ts +0 -1
  814. package/dist/shared/download-with-progress.d.ts.map +0 -1
  815. package/dist/shared/download-with-progress.js +0 -2
  816. package/dist/shared/download-with-progress.js.map +0 -1
  817. package/dist/shared/get-file-extension-from-codec.d.ts +0 -3
  818. package/dist/shared/get-file-extension-from-codec.d.ts.map +0 -1
  819. package/dist/shared/get-file-extension-from-codec.js +0 -33
  820. package/dist/shared/get-file-extension-from-codec.js.map +0 -1
  821. package/dist/shared/parse-chunk-timing-key.d.ts +0 -7
  822. package/dist/shared/parse-chunk-timing-key.d.ts.map +0 -1
  823. package/dist/shared/parse-chunk-timing-key.js +0 -17
  824. package/dist/shared/parse-chunk-timing-key.js.map +0 -1
  825. package/dist/shared/tmpdir.d.ts +0 -3
  826. package/dist/shared/tmpdir.d.ts.map +0 -1
  827. package/dist/shared/tmpdir.js +0 -23
  828. package/dist/shared/tmpdir.js.map +0 -1
@@ -8,9 +8,9 @@ const enable_s3_website_1 = require("./enable-s3-website");
8
8
  const get_buckets_1 = require("./get-buckets");
9
9
  /**
10
10
  * @description Creates a bucket for Remotion Lambda in your S3 account. If one already exists, it will get returned instead.
11
- * @link http://remotion.dev/docs/lambda/getorcreatebucket
11
+ * @link https://remotion.dev/docs/lambda/getorcreatebucket
12
12
  * @param options.region The region in which you want your S3 bucket to reside in.
13
- * @returns `Promise<{region: AwsRegion}>`
13
+ * @returns {Promise<GetOrCreateBucketOutput>} An object containing the `bucketName`.
14
14
  */
15
15
  const getOrCreateBucket = async (options) => {
16
16
  var _a, _b;
@@ -1 +1 @@
1
- {"version":3,"file":"get-or-create-bucket.js","sourceRoot":"","sources":["../../src/api/get-or-create-bucket.ts"],"names":[],"mappings":";;;AACA,mDAA2D;AAC3D,uDAAiD;AACjD,mDAA6C;AAC7C,2DAAoD;AACpD,+CAAmD;AAWnD;;;;;GAKG;AACI,MAAM,iBAAiB,GAAG,KAAK,EACrC,OAA+B,EACI,EAAE;;IACrC,MAAM,EAAC,eAAe,EAAC,GAAG,MAAM,IAAA,kCAAoB,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;QAC/B,MAAM,IAAI,KAAK,CACd,8BAA8B,eAAe,CAAC,GAAG,CAChD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CACb,wBACA,OAAO,CAAC,MACT,oBAAoB,kCAAsB,0EAA0E,CACpH,CAAC;KACF;IAED,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE;QACjC,MAAA,OAAO,CAAC,eAAe,+CAAvB,OAAO,CAAoB,CAAC;QAC5B,OAAO,EAAC,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI,EAAC,CAAC;KAC7C;IAED,MAAM,UAAU,GAAG,kCAAsB,GAAG,IAAA,wBAAU,GAAE,CAAC;IAEzD,MAAM,IAAA,4BAAY,EAAC;QAClB,UAAU;QACV,MAAM,EAAE,OAAO,CAAC,MAAM;KACtB,CAAC,CAAC;IACH,MAAA,OAAO,CAAC,eAAe,+CAAvB,OAAO,CAAoB,CAAC;IAC5B,MAAM,IAAA,mCAAe,EAAC;QACrB,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,UAAU;KACV,CAAC,CAAC;IAEH,OAAO,EAAC,UAAU,EAAC,CAAC;AACrB,CAAC,CAAC;AAhCW,QAAA,iBAAiB,qBAgC5B"}
@@ -0,0 +1,8 @@
1
+ import { AwsRegion } from '../pricing/aws-regions';
2
+ /**
3
+ * @description Gets an array of all supported AWS regions of this release of Remotion Lambda.
4
+ * @link https://remotion.dev/docs/lambda/getregions
5
+ * @returns {AwsRegion[]} A list of AWS regions.
6
+ */
7
+ export declare const getRegions: () => readonly AwsRegion[];
8
+ //# sourceMappingURL=get-regions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-regions.d.ts","sourceRoot":"","sources":["../../src/api/get-regions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAGjD;;;;GAIG;AACH,eAAO,MAAM,UAAU,QAAO,SAAS,SAAS,EAE/C,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRegions = void 0;
4
+ const regions_1 = require("../regions");
5
+ /**
6
+ * @description Gets an array of all supported AWS regions of this release of Remotion Lambda.
7
+ * @link https://remotion.dev/docs/lambda/getregions
8
+ * @returns {AwsRegion[]} A list of AWS regions.
9
+ */
10
+ const getRegions = () => {
11
+ return regions_1.AWS_REGIONS;
12
+ };
13
+ exports.getRegions = getRegions;
14
+ //# sourceMappingURL=get-regions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-regions.js","sourceRoot":"","sources":["../../src/api/get-regions.ts"],"names":[],"mappings":";;;AACA,wCAAuC;AAEvC;;;;GAIG;AACI,MAAM,UAAU,GAAG,GAAyB,EAAE;IACpD,OAAO,qBAAW,CAAC;AACpB,CAAC,CAAC;AAFW,QAAA,UAAU,cAErB"}
@@ -1,17 +1,19 @@
1
1
  import { AwsRegion } from '../pricing/aws-regions';
2
+ import { RenderProgress } from '../shared/constants';
3
+ export declare type GetRenderInput = {
4
+ functionName: string;
5
+ bucketName: string;
6
+ renderId: string;
7
+ region: AwsRegion;
8
+ };
2
9
  /**
3
- * @description Gets the current status of a render originally triggered via renderVideoOnLambda().
4
- * @link https://remotion-lambda-alpha.netlify.app/docs/lambda/getrenderprogress
10
+ * @description Gets the current status of a render originally triggered via renderMediaOnLambda().
11
+ * @link https://remotion.dev/docs/lambda/getrenderprogress
5
12
  * @param {string} params.functionName The name of the function used to trigger the render.
6
13
  * @param {string} params.bucketName The name of the bucket that was used in the render.
7
- * @param {string} params.renderId The ID of the render that was returned by `renderVideoOnLambda()`.
14
+ * @param {string} params.renderId The ID of the render that was returned by `renderMediaOnLambda()`.
8
15
  * @param {AwsRegion} params.region The region in which the render was triggered.
9
- * @returns See documentation for this function to see all properties on the return object.
16
+ * @returns {Promise<RenderProgress>} See documentation for this function to see all properties on the return object.
10
17
  */
11
- export declare const getRenderProgress: ({ functionName, bucketName, renderId, region, }: {
12
- functionName: string;
13
- bucketName: string;
14
- renderId: string;
15
- region: AwsRegion;
16
- }) => Promise<import("../shared/constants").RenderProgress>;
18
+ export declare const getRenderProgress: ({ functionName, bucketName, renderId, region, }: GetRenderInput) => Promise<RenderProgress>;
17
19
  //# sourceMappingURL=get-render-progress.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-render-progress.d.ts","sourceRoot":"","sources":["../../src/api/get-render-progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAIjD;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB;kBAMf,MAAM;gBACR,MAAM;cACR,MAAM;YACR,SAAS;2DAWjB,CAAC"}
1
+ {"version":3,"file":"get-render-progress.d.ts","sourceRoot":"","sources":["../../src/api/get-render-progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAiB,cAAc,EAAC,MAAM,qBAAqB,CAAC;AAEnE,oBAAY,cAAc,GAAG;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,oDAK3B,cAAc,KAAG,QAAQ,cAAc,CAWzC,CAAC"}
@@ -4,16 +4,16 @@ exports.getRenderProgress = void 0;
4
4
  const call_lambda_1 = require("../shared/call-lambda");
5
5
  const constants_1 = require("../shared/constants");
6
6
  /**
7
- * @description Gets the current status of a render originally triggered via renderVideoOnLambda().
8
- * @link https://remotion-lambda-alpha.netlify.app/docs/lambda/getrenderprogress
7
+ * @description Gets the current status of a render originally triggered via renderMediaOnLambda().
8
+ * @link https://remotion.dev/docs/lambda/getrenderprogress
9
9
  * @param {string} params.functionName The name of the function used to trigger the render.
10
10
  * @param {string} params.bucketName The name of the bucket that was used in the render.
11
- * @param {string} params.renderId The ID of the render that was returned by `renderVideoOnLambda()`.
11
+ * @param {string} params.renderId The ID of the render that was returned by `renderMediaOnLambda()`.
12
12
  * @param {AwsRegion} params.region The region in which the render was triggered.
13
- * @returns See documentation for this function to see all properties on the return object.
13
+ * @returns {Promise<RenderProgress>} See documentation for this function to see all properties on the return object.
14
14
  */
15
15
  const getRenderProgress = async ({ functionName, bucketName, renderId, region, }) => {
16
- return (0, call_lambda_1.callLambda)({
16
+ const result = await (0, call_lambda_1.callLambda)({
17
17
  functionName,
18
18
  type: constants_1.LambdaRoutines.status,
19
19
  payload: {
@@ -22,6 +22,7 @@ const getRenderProgress = async ({ functionName, bucketName, renderId, region, }
22
22
  },
23
23
  region,
24
24
  });
25
+ return result;
25
26
  };
26
27
  exports.getRenderProgress = getRenderProgress;
27
28
  //# sourceMappingURL=get-render-progress.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-render-progress.js","sourceRoot":"","sources":["../../src/api/get-render-progress.ts"],"names":[],"mappings":";;;AACA,uDAAiD;AACjD,mDAAmD;AAEnD;;;;;;;;GAQG;AACI,MAAM,iBAAiB,GAAG,KAAK,EAAE,EACvC,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,MAAM,GAMN,EAAE,EAAE;IACJ,OAAO,IAAA,wBAAU,EAAC;QACjB,YAAY;QACZ,IAAI,EAAE,0BAAc,CAAC,MAAM;QAC3B,OAAO,EAAE;YACR,UAAU;YACV,QAAQ;SACR;QACD,MAAM;KACN,CAAC,CAAC;AACJ,CAAC,CAAC;AApBW,QAAA,iBAAiB,qBAoB5B"}
1
+ {"version":3,"file":"get-render-progress.js","sourceRoot":"","sources":["../../src/api/get-render-progress.ts"],"names":[],"mappings":";;;AACA,uDAAiD;AACjD,mDAAmE;AASnE;;;;;;;;GAQG;AACI,MAAM,iBAAiB,GAAG,KAAK,EAAE,EACvC,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,MAAM,GACU,EAA2B,EAAE;IAC7C,MAAM,MAAM,GAAG,MAAM,IAAA,wBAAU,EAAC;QAC/B,YAAY;QACZ,IAAI,EAAE,0BAAc,CAAC,MAAM;QAC3B,OAAO,EAAE;YACR,UAAU;YACV,QAAQ;SACR;QACD,MAAM;KACN,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AACf,CAAC,CAAC;AAhBW,QAAA,iBAAiB,qBAgB5B"}
@@ -7,12 +7,20 @@ declare type Site = {
7
7
  id: string;
8
8
  serveUrl: string;
9
9
  };
10
- declare type GetSitesReturnValue = {
10
+ export declare type GetSitesInput = {
11
+ region: AwsRegion;
12
+ };
13
+ export declare type GetSitesOutput = {
11
14
  sites: Site[];
12
15
  buckets: BucketWithLocation[];
13
16
  };
14
- export declare const getSites: ({ region, }: {
15
- region: AwsRegion;
16
- }) => Promise<GetSitesReturnValue>;
17
+ /**
18
+ *
19
+ * @description Gets all the deployed sites for a certain AWS region.
20
+ * @link https://remotion.dev/docs/lambda/getsites
21
+ * @param {AwsRegion} params.region The AWS region that you want to query for.
22
+ * @returns {Promise<GetSitesOutput>} A Promise containing an object with `sites` and `bucket` keys. Consult documentation for details.
23
+ */
24
+ export declare const getSites: ({ region, }: GetSitesInput) => Promise<GetSitesOutput>;
17
25
  export {};
18
26
  //# sourceMappingURL=get-sites.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-sites.d.ts","sourceRoot":"","sources":["../../src/api/get-sites.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAIjD,OAAO,EAAC,kBAAkB,EAAuB,MAAM,eAAe,CAAC;AAEvE,aAAK,IAAI,GAAG;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,aAAK,mBAAmB,GAAG;IAC1B,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC9B,CAAC;AAIF,eAAO,MAAM,QAAQ;YAGZ,SAAS;MACd,QAAQ,mBAAmB,CAyD9B,CAAC"}
1
+ {"version":3,"file":"get-sites.d.ts","sourceRoot":"","sources":["../../src/api/get-sites.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAIjD,OAAO,EAAC,kBAAkB,EAAuB,MAAM,eAAe,CAAC;AAEvE,aAAK,IAAI,GAAG;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC3B,MAAM,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC5B,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC9B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,gBAElB,aAAa,KAAG,QAAQ,cAAc,CA2DxC,CAAC"}
@@ -6,8 +6,13 @@ const constants_1 = require("../shared/constants");
6
6
  const get_account_id_1 = require("../shared/get-account-id");
7
7
  const make_s3_url_1 = require("../shared/make-s3-url");
8
8
  const get_buckets_1 = require("./get-buckets");
9
- // TODO: Return the `serveUrl` as well
10
- // TODO: Add JSDoc comments
9
+ /**
10
+ *
11
+ * @description Gets all the deployed sites for a certain AWS region.
12
+ * @link https://remotion.dev/docs/lambda/getsites
13
+ * @param {AwsRegion} params.region The AWS region that you want to query for.
14
+ * @returns {Promise<GetSitesOutput>} A Promise containing an object with `sites` and `bucket` keys. Consult documentation for details.
15
+ */
11
16
  const getSites = async ({ region, }) => {
12
17
  var _a;
13
18
  const { remotionBuckets } = await (0, get_buckets_1.getRemotionS3Buckets)(region);
@@ -21,7 +26,7 @@ const getSites = async ({ region, }) => {
21
26
  expectedBucketOwner: accountId,
22
27
  });
23
28
  for (const file of ls) {
24
- const siteKeyMatch = (_a = file.Key) === null || _a === void 0 ? void 0 : _a.match(/sites\/([0-9a-zA-Z]+)\/(.*)$/);
29
+ const siteKeyMatch = (_a = file.Key) === null || _a === void 0 ? void 0 : _a.match(/sites\/([0-9a-zA-Z-!_.*'()]+)\/(.*)$/);
25
30
  if (!siteKeyMatch) {
26
31
  throw new Error(`A file was found in the bucket "${bucket.name}" with the key ${file.Key} which is an unexpected folder structure. Delete this file.`);
27
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"get-sites.js","sourceRoot":"","sources":["../../src/api/get-sites.ts"],"names":[],"mappings":";;;AAAA,gDAAiD;AAEjD,mDAAgD;AAChD,6DAAsD;AACtD,uDAAqD;AACrD,+CAAuE;AAevE,sCAAsC;AACtC,2BAA2B;AACpB,MAAM,QAAQ,GAAG,KAAK,EAAE,EAC9B,MAAM,GAGN,EAAgC,EAAE;;IAClC,MAAM,EAAC,eAAe,EAAC,GAAG,MAAM,IAAA,kCAAoB,EAAC,MAAM,CAAC,CAAC;IAC7D,MAAM,SAAS,GAAG,MAAM,IAAA,6BAAY,EAAC,EAAC,MAAM,EAAC,CAAC,CAAC;IAE/C,MAAM,KAAK,GAA0B,EAAE,CAAC;IAExC,KAAK,MAAM,MAAM,IAAI,eAAe,EAAE;QACrC,MAAM,EAAE,GAAG,MAAM,IAAA,aAAQ,EAAC;YACzB,UAAU,EAAE,MAAM,CAAC,IAAI;YACvB,MAAM,EAAE,IAAA,uBAAW,EAAC,EAAE,CAAC;YACvB,MAAM;YACN,mBAAmB,EAAE,SAAS;SAC9B,CAAC,CAAC;QAEH,KAAK,MAAM,IAAI,IAAI,EAAE,EAAE;YACtB,MAAM,YAAY,GAAG,MAAA,IAAI,CAAC,GAAG,0CAAE,KAAK,CAAC,8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AE,EAAE,MAAM;oBACV,QAAQ,EAAE,IAAA,4BAAc,EAAC;wBACxB,UAAU,EAAE,MAAM,CAAC,IAAI;wBACvB,MAAM;wBACN,SAAS,EAAE,IAAA,uBAAW,EAAC,MAAM,CAAC;qBAC9B,CAAC;iBACF,CAAC;aACF;YAED,IAAI,IAAI,CAAC,YAAY,EAAE;gBACtB,MAAM,mBAAmB,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC;gBACvD,IACC,mBAAmB,KAAK,IAAI;oBAC5B,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,GAAG,mBAAmB,EAChD;oBACD,KAAK,CAAC,MAAM,CAAC,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;iBACzD;aACD;YAED,IAAI,IAAI,CAAC,IAAI,EAAE;gBACd,KAAK,CAAC,MAAM,CAAC,CAAC,WAAW,IAAI,IAAI,CAAC,IAAI,CAAC;aACvC;SACD;KACD;IAED,MAAM,UAAU,GAAW,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC5D,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;IACH,OAAO,EAAC,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,EAAC,CAAC;AACtD,CAAC,CAAC;AA7DW,QAAA,QAAQ,YA6DnB"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,10 +1,19 @@
1
1
  import { AwsRegion } from '../../pricing/aws-regions';
2
2
  import { SimulationResult } from './simulate-rule';
3
3
  export declare const logPermissionOutput: (output: SimulationResult) => string;
4
- export declare const simulatePermissions: (options: {
4
+ export declare type SimulatePermissionsInput = {
5
5
  region: AwsRegion;
6
- onSimulation?: ((result: SimulationResult) => void) | undefined;
7
- }) => Promise<{
6
+ onSimulation?: (result: SimulationResult) => void;
7
+ };
8
+ export declare type SimulatePermissionsOutput = {
8
9
  results: SimulationResult[];
9
- }>;
10
+ };
11
+ /**
12
+ * @description Simulates calls using the AWS Simulator to validate the correct permissions.
13
+ * @link http://remotion.dev/docs/lambda/simulatepermissions
14
+ * @param {AwsRegion} options.region The region which you would like to validate
15
+ * @param {(result: SimulationResult) => void} options.onSimulation The region which you would like to validate
16
+ * @returns {Promise<SimulatePermissionsOutput>} See documentation for detailed response structure.
17
+ */
18
+ export declare const simulatePermissions: (options: SimulatePermissionsInput) => Promise<SimulatePermissionsOutput>;
10
19
  //# sourceMappingURL=simulate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"simulate.d.ts","sourceRoot":"","sources":["../../../src/api/iam-validation/simulate.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAEpD,OAAO,EAA6B,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAY7E,eAAO,MAAM,mBAAmB,WAAY,gBAAgB,WAE3D,CAAC;AAEF,eAAO,MAAM,mBAAmB;YACvB,SAAS;6BACO,gBAAgB,KAAK,IAAI;;aAExC,gBAAgB,EAAE;EAyB3B,CAAC"}
1
+ {"version":3,"file":"simulate.d.ts","sourceRoot":"","sources":["../../../src/api/iam-validation/simulate.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAEpD,OAAO,EAA6B,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAY7E,eAAO,MAAM,mBAAmB,WAAY,gBAAgB,WAE3D,CAAC;AAEF,oBAAY,wBAAwB,GAAG;IACtC,MAAM,EAAE,SAAS,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAClD,CAAC;AAEF,oBAAY,yBAAyB,GAAG;IACvC,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC5B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,YACtB,wBAAwB,KAC/B,QAAQ,yBAAyB,CAwBnC,CAAC"}
@@ -17,6 +17,13 @@ const logPermissionOutput = (output) => {
17
17
  return [getEmojiForStatus(output.decision), output.name].join(' ');
18
18
  };
19
19
  exports.logPermissionOutput = logPermissionOutput;
20
+ /**
21
+ * @description Simulates calls using the AWS Simulator to validate the correct permissions.
22
+ * @link http://remotion.dev/docs/lambda/simulatepermissions
23
+ * @param {AwsRegion} options.region The region which you would like to validate
24
+ * @param {(result: SimulationResult) => void} options.onSimulation The region which you would like to validate
25
+ * @returns {Promise<SimulatePermissionsOutput>} See documentation for detailed response structure.
26
+ */
20
27
  const simulatePermissions = async (options) => {
21
28
  var _a;
22
29
  const user = await (0, aws_clients_1.getIamClient)(options.region).send(new client_iam_1.GetUserCommand({}));
@@ -1 +1 @@
1
- {"version":3,"file":"simulate.js","sourceRoot":"","sources":["../../../src/api/iam-validation/simulate.ts"],"names":[],"mappings":";;;AAAA,oDAAmD;AAEnD,0DAAsD;AACtD,mDAA6E;AAC7E,yDAAuD;AAEvD,MAAM,iBAAiB,GAAG,CAAC,QAAsB,EAAE,EAAE;IACpD,QAAQ,QAAQ,EAAE;QACjB,KAAK,SAAS;YACb,OAAO,GAAG,CAAC;QACZ;YACC,OAAO,GAAG,CAAC;KACZ;AACF,CAAC,CAAC;AAEK,MAAM,mBAAmB,GAAG,CAAC,MAAwB,EAAE,EAAE;IAC/D,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACpE,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B;AAEK,MAAM,mBAAmB,GAAG,KAAK,EAAE,OAGzC,EAEE,EAAE;;IACJ,MAAM,IAAI,GAAG,MAAM,IAAA,0BAAY,EAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,2BAAc,CAAC,EAAE,CAAC,CAAC,C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mBAAmB,uBAE9B;AAWF;;;;;;GAMG;AACI,MAAM,mBAAmB,GAAG,KAAK,EACvC,OAAiC,EACI,EAAE;;IACvC,MAAM,IAAI,GAAG,MAAM,IAAA,0BAAY,EAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,2BAAc,CAAC,EAAE,CAAC,CAAC,CAAC;IAE7E,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;QACxB,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;KAC9C;IAED,MAAM,OAAO,GAAuB,EAAE,CAAC;IAEvC,KAAK,MAAM,GAAG,IAAI,sCAAmB,EAAE;QACtC,MAAM,MAAM,GAAG,MAAM,IAAA,4BAAY,EAAC;YACjC,WAAW,EAAE,GAAG,CAAC,OAAO;YACxB,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,GAAa;YAC5B,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,QAAQ,EAAE,GAAG,CAAC,QAAQ;YACtB,OAAO,EAAE,CAAC;SACV,CAAC,CAAC;QACH,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;YACzB,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAClB,MAAA,OAAO,CAAC,YAAY,+CAApB,OAAO,EAAgB,GAAG,CAAC,CAAC;SAC5B;KACD;IAED,OAAO,EAAC,OAAO,EAAC,CAAC;AAClB,CAAC,CAAC;AA1BW,QAAA,mBAAmB,uBA0B9B"}
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * @description Returns an inline JSON policy to be assigned to the AWS user whose credentials are being used for excuting CLI commands or calling Node.JS functions.
3
- * @link https://remotion-lambda-alpha.netlify.app/docs/lambda/getuserpolicy
3
+ * @link https://remotion.dev/docs/lambda/getuserpolicy
4
4
  */
5
5
  export declare const getUserPolicy: () => string;
6
6
  export declare const ROLE_NAME = "remotion-lambda-role";
7
7
  /**
8
8
  * @description Returns an inline JSON policy to be assigned to the 'remotion-lambda-role' role that needs to be created in your AWS account.
9
- * @link https://remotion-lambda-alpha.netlify.app/docs/lambda/getrolepolicy
9
+ * @link https://remotion.dev/docs/lambda/getrolepolicy
10
10
  */
11
11
  export declare const getRolePolicy: () => string;
12
12
  //# sourceMappingURL=suggested-policy.d.ts.map
File without changes
@@ -31,14 +31,14 @@ const suggestedRolePolicy = {
31
31
  };
32
32
  /**
33
33
  * @description Returns an inline JSON policy to be assigned to the AWS user whose credentials are being used for excuting CLI commands or calling Node.JS functions.
34
- * @link https://remotion-lambda-alpha.netlify.app/docs/lambda/getuserpolicy
34
+ * @link https://remotion.dev/docs/lambda/getuserpolicy
35
35
  */
36
36
  const getUserPolicy = () => JSON.stringify(suggestedPolicy, null, 2);
37
37
  exports.getUserPolicy = getUserPolicy;
38
38
  exports.ROLE_NAME = 'remotion-lambda-role';
39
39
  /**
40
40
  * @description Returns an inline JSON policy to be assigned to the 'remotion-lambda-role' role that needs to be created in your AWS account.
41
- * @link https://remotion-lambda-alpha.netlify.app/docs/lambda/getrolepolicy
41
+ * @link https://remotion.dev/docs/lambda/getrolepolicy
42
42
  */
43
43
  const getRolePolicy = () => JSON.stringify(suggestedRolePolicy, null, 2);
44
44
  exports.getRolePolicy = getRolePolicy;
File without changes
@@ -1,6 +1,6 @@
1
- import { iam, lambda, logs, s3 } from 'aws-policies';
1
+ import { iam, lambda, logs, s3, servicequotas } from 'aws-policies';
2
2
  export declare const requiredPermissions: {
3
- actions: (s3 | iam | lambda | logs)[];
3
+ actions: (s3 | iam | lambda | logs | servicequotas)[];
4
4
  resource: string[];
5
5
  id: string;
6
6
  }[];
@@ -1 +1 @@
1
- {"version":3,"file":"user-permissions.d.ts","sourceRoot":"","sources":["../../../src/api/iam-validation/user-permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAC,MAAM,cAAc,CAAC;AAQnD,eAAO,MAAM,mBAAmB,EAAE;IACjC,OAAO,EAAE,CAAC,EAAE,GAAG,GAAG,GAAG,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IACtC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;CACX,EAmEA,CAAC"}
1
+ {"version":3,"file":"user-permissions.d.ts","sourceRoot":"","sources":["../../../src/api/iam-validation/user-permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,aAAa,EAAC,MAAM,cAAc,CAAC;AAQlE,eAAO,MAAM,mBAAmB,EAAE;IACjC,OAAO,EAAE,CAAC,EAAE,GAAG,GAAG,GAAG,MAAM,GAAG,IAAI,GAAG,aAAa,CAAC,EAAE,CAAC;IACtD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;CACX,EA6EA,CAAC"}
@@ -5,6 +5,16 @@ const aws_policies_1 = require("aws-policies");
5
5
  const constants_1 = require("../../shared/constants");
6
6
  const hosted_layers_1 = require("../../shared/hosted-layers");
7
7
  exports.requiredPermissions = [
8
+ {
9
+ id: 'HandleQuotas',
10
+ actions: [
11
+ aws_policies_1.servicequotas.GetServiceQuota,
12
+ aws_policies_1.servicequotas.GetAWSDefaultServiceQuota,
13
+ aws_policies_1.servicequotas.RequestServiceQuotaIncrease,
14
+ aws_policies_1.servicequotas.ListRequestedServiceQuotaChangeHistoryByQuota,
15
+ ],
16
+ resource: ['*'],
17
+ },
8
18
  {
9
19
  id: 'Identity',
10
20
  actions: [aws_policies_1.iam.GetUser],
@@ -1 +1 @@
1
- {"version":3,"file":"user-permissions.js","sourceRoot":"","sources":["../../../src/api/iam-validation/user-permissions.ts"],"names":[],"mappings":";;;AAAA,+CAAmD;AACnD,sDAIgC;AAChC,8DAAqE;AAExD,QAAA,mBAAmB,GAI1B;IACL;QACC,EAAE,EAAE,UAAU;QACd,OAAO,EAAE,CAAC,kBAAG,CAAC,OAAO,CAA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,eAAe;QACnB,OAAO,EAAE,CAAC,mBAAI,CAAC,cAAc,EAAE,mBAAI,CAAC,kBAAkB,CAAC;QACvD,QAAQ,EAAE;YACT,8BAA8B,4BAAgB,GAAG,4BAAgB,GAAG;SACpE;KACD;IACD;QACC,EAAE,EAAE,eAAe;QACnB,OAAO,EAAE,CAAC,qBAAM,CAAC,eAAe,CAAC;QACjC,QAAQ,EAAE,CAAC,yCAAyB,CAAC;KACrC;CACD,CAAC"}
1
+ {"version":3,"file":"user-permissions.js","sourceRoot":"","sources":["../../../src/api/iam-validation/user-permissions.ts"],"names":[],"mappings":";;;AAAA,+CAAkE;AAClE,sDAIgC;AAChC,8DAAqE;AAExD,QAAA,mBAAmB,GAI1B;IACL;QACC,EAAE,EAAE,cAAc;QAClB,OAAO,EAAE;YACR,4BAAa,CAAC,eAAe;YAC7B,4BAAa,CAAC,yBAAyB;YACvC,4BAAa,CAAC,2BAA2B;YACzC,4BAAa,CAAC,6CAA6C;SAC3D;QACD,QAAQ,EAAE,CAAC,GAAG,CAAC;KACf;IACD;QACC,EAAE,EAAE,UAAU;QACd,OAAO,EAAE,CAAC,kBAAG,CAAC,OAAO,CAAC;QACtB,uDAAuD;QACvD,QAAQ,EAAE,CAAC,qCAAqC,CAAC;KACjD;IACD;QACC,EAAE,EAAE,sBAAsB;QAC1B,OAAO,EAAE,CAAC,kBAAG,CAAC,uBAAuB,CAAC;QACtC,QAAQ,EAAE,CAAC,GAAG,CAAC;KACf;IACD;QACC,EAAE,EAAE,kBAAkB;QACtB,OAAO,EAAE,CAAC,kBAAG,CAAC,QAAQ,CAAC;QACvB,QAAQ,EAAE,CAAC,0CAA0C,CAAC;KACtD;IACD;QACC,EAAE,EAAE,SAAS;QACb,OAAO,EAAE;YACR,iBAAE,CAAC,SAAS;YACZ,iBAAE,CAAC,YAAY;YACf,iBAAE,CAAC,YAAY;YACf,iBAAE,CAAC,SAAS;YACZ,iBAAE,CAAC,YAAY;YACf,iBAAE,CAAC,UAAU;YACb,iBAAE,CAAC,iBAAiB;YACpB,iBAAE,CAAC,YAAY;YACf,iBAAE,CAAC,YAAY;YACf,iBAAE,CAAC,gBAAgB;YACnB,iBAAE,CAAC,mBAAmB;SACtB;QACD,QAAQ,EAAE,CAAC,gBAAgB,kCAAsB,GAAG,CAAC;KACrD;IACD;QACC,EAAE,EAAE,eAAe;QACnB,OAAO,EAAE,CAAC,iBAAE,CAAC,gBAAgB,CAAC;QAC9B,QAAQ,EAAE,CAAC,GAAG,CAAC;KACf;IACD;QACC,EAAE,EAAE,iBAAiB;QACrB,OAAO,EAAE,CAAC,qBAAM,CAAC,aAAa,EAAE,qBAAM,CAAC,WAAW,CAAC;QACnD,QAAQ,EAAE,CAAC,GAAG,CAAC;KACf;IACD;QACC,EAAE,EAAE,oBAAoB;QACxB,OAAO,EAAE;YACR,qBAAM,CAAC,WAAW;YAClB,qBAAM,CAAC,cAAc;YACrB,qBAAM,CAAC,cAAc;YACrB,qBAAM,CAAC,cAAc;YACrB,qBAAM,CAAC,4BAA4B;SACnC;QACD,QAAQ,EAAE,CAAC,+BAA+B,4BAAgB,GAAG,CAAC;KAC9D;IACD;QACC,EAAE,EAAE,eAAe;QACnB,OAAO,EAAE,CAAC,mBAAI,CAAC,cAAc,EAAE,mBAAI,CAAC,kBAAkB,CAAC;QACvD,QAAQ,EAAE;YACT,8BAA8B,4BAAgB,GAAG,4BAAgB,GAAG;SACpE;KACD;IACD;QACC,EAAE,EAAE,eAAe;QACnB,OAAO,EAAE,CAAC,qBAAM,CAAC,eAAe,CAAC;QACjC,QAAQ,EAAE,CAAC,yCAAyB,CAAC;KACrC;CACD,CAAC"}
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,20 @@
1
+ import { AwsRegion } from '../pricing/aws-regions';
2
+ export declare type PresignURLInput = {
3
+ region: AwsRegion;
4
+ bucketName: string;
5
+ objectKey: string;
6
+ checkIfObjectExists?: boolean;
7
+ expiresInSeconds: number;
8
+ };
9
+ /**
10
+ * @description Returns a public url of an object stored in Remotion's S3 bucket.
11
+ * @link https://remotion.dev/docs/lambda/presignurl
12
+ * @param {AwsRegion} params.region The region in which the S3 bucket resides in.
13
+ * @param {string} params.bucketName The name of the bucket to fetch the object from.
14
+ * @param {string} params.objectKey Key of the S3 object to get.
15
+ * @param {string} params.expiresIn The number of seconds before the presigned URL expires. Default 120.
16
+ * @param {boolean} params.checkIfObjectExists Whether the function should check if the object exists in the bucket before generating the presigned url.
17
+ * @returns {Promise<string | null>} The public url of an object or `null` if `checkIfObjectExists=true` & object does not exist.
18
+ */
19
+ export declare const presignUrl: ({ region, bucketName, objectKey, checkIfObjectExists, expiresInSeconds, }: PresignURLInput) => Promise<string | null>;
20
+ //# sourceMappingURL=presign-url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presign-url.d.ts","sourceRoot":"","sources":["../../src/api/presign-url.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAKjD,oBAAY,eAAe,GAAG;IAC7B,MAAM,EAAE,SAAS,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,8EAMpB,eAAe,KAAG,QAAQ,MAAM,GAAG,IAAI,CAiCzC,CAAC"}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.presignUrl = void 0;
4
+ const client_s3_1 = require("@aws-sdk/client-s3");
5
+ const s3_request_presigner_1 = require("@aws-sdk/s3-request-presigner");
6
+ const aws_clients_1 = require("../shared/aws-clients");
7
+ const validate_bucketname_1 = require("../shared/validate-bucketname");
8
+ const validate_presign_expiration_1 = require("../shared/validate-presign-expiration");
9
+ /**
10
+ * @description Returns a public url of an object stored in Remotion's S3 bucket.
11
+ * @link https://remotion.dev/docs/lambda/presignurl
12
+ * @param {AwsRegion} params.region The region in which the S3 bucket resides in.
13
+ * @param {string} params.bucketName The name of the bucket to fetch the object from.
14
+ * @param {string} params.objectKey Key of the S3 object to get.
15
+ * @param {string} params.expiresIn The number of seconds before the presigned URL expires. Default 120.
16
+ * @param {boolean} params.checkIfObjectExists Whether the function should check if the object exists in the bucket before generating the presigned url.
17
+ * @returns {Promise<string | null>} The public url of an object or `null` if `checkIfObjectExists=true` & object does not exist.
18
+ */
19
+ const presignUrl = async ({ region, bucketName, objectKey, checkIfObjectExists = false, expiresInSeconds, }) => {
20
+ (0, validate_bucketname_1.validateBucketName)(bucketName, { mustStartWithRemotion: false });
21
+ (0, validate_presign_expiration_1.validatePresignExpiration)(expiresInSeconds);
22
+ const s3Client = (0, aws_clients_1.getS3Client)(region);
23
+ if (checkIfObjectExists) {
24
+ try {
25
+ await s3Client.send(new client_s3_1.HeadObjectCommand({
26
+ Bucket: bucketName,
27
+ Key: objectKey,
28
+ }));
29
+ }
30
+ catch (err) {
31
+ if (err.name === 'NotFound') {
32
+ return null;
33
+ }
34
+ throw err;
35
+ }
36
+ }
37
+ const objCommand = new client_s3_1.GetObjectCommand({
38
+ Bucket: bucketName,
39
+ Key: objectKey,
40
+ });
41
+ const publicUrl = await (0, s3_request_presigner_1.getSignedUrl)(s3Client, objCommand, {
42
+ expiresIn: expiresInSeconds,
43
+ });
44
+ return publicUrl;
45
+ };
46
+ exports.presignUrl = presignUrl;
47
+ //# sourceMappingURL=presign-url.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presign-url.js","sourceRoot":"","sources":["../../src/api/presign-url.ts"],"names":[],"mappings":";;;AAAA,kDAAuE;AACvE,wEAA2D;AAE3D,uDAAkD;AAClD,uEAAiE;AACjE,uFAAgF;AAUhF;;;;;;;;;GASG;AACI,MAAM,UAAU,GAAG,KAAK,EAAE,EAChC,MAAM,EACN,UAAU,EACV,SAAS,EACT,mBAAmB,GAAG,KAAK,EAC3B,gBAAgB,GACC,EAA0B,EAAE;IAC7C,IAAA,wCAAkB,EAAC,UAAU,EAAE,EAAC,qBAAqB,EAAE,KAAK,EAAC,CAAC,CAAC;IAC/D,IAAA,uDAAyB,EAAC,gBAAgB,CAAC,CAAC;IAE5C,MAAM,QAAQ,GAAG,IAAA,yBAAW,EAAC,MAAM,CAAC,CAAC;IAErC,IAAI,mBAAmB,EAAE;QACxB,IAAI;YACH,MAAM,QAAQ,CAAC,IAAI,CAClB,IAAI,6BAAiB,CAAC;gBACrB,MAAM,EAAE,UAAU;gBAClB,GAAG,EAAE,SAAS;aACd,CAAC,CACF,CAAC;SACF;QAAC,OAAO,GAAG,EAAE;YACb,IAAK,GAAsB,CAAC,IAAI,KAAK,UAAU,EAAE;gBAChD,OAAO,IAAI,CAAC;aACZ;YAED,MAAM,GAAG,CAAC;SACV;KACD;IAED,MAAM,UAAU,GAAG,IAAI,4BAAgB,CAAC;QACvC,MAAM,EAAE,UAAU;QAClB,GAAG,EAAE,SAAS;KACd,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,MAAM,IAAA,mCAAY,EAAC,QAAQ,EAAE,UAAU,EAAE;QAC1D,SAAS,EAAE,gBAAgB;KAC3B,CAAC,CAAC;IAEH,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC;AAvCW,QAAA,UAAU,cAuCrB"}
@@ -1,9 +1,37 @@
1
+ import type { ChromiumOptions } from '@remotion/renderer';
1
2
  import { FrameRange, ImageFormat, LogLevel, PixelFormat, ProResProfile } from 'remotion';
2
3
  import { AwsRegion } from '../pricing/aws-regions';
3
4
  import { Privacy } from '../shared/constants';
5
+ export declare type RenderMediaOnLambdaInput = {
6
+ region: AwsRegion;
7
+ functionName: string;
8
+ serveUrl: string;
9
+ composition: string;
10
+ inputProps: unknown;
11
+ codec: 'h264-mkv' | 'mp3' | 'aac' | 'wav';
12
+ imageFormat: ImageFormat;
13
+ crf?: number | undefined;
14
+ envVariables?: Record<string, string>;
15
+ pixelFormat?: PixelFormat;
16
+ proResProfile?: ProResProfile;
17
+ privacy: Privacy;
18
+ quality?: number;
19
+ maxRetries: number;
20
+ framesPerLambda?: number;
21
+ logLevel?: LogLevel;
22
+ frameRange?: FrameRange;
23
+ outName?: string;
24
+ timeoutInMilliseconds?: number;
25
+ chromiumOptions?: ChromiumOptions;
26
+ scale?: number;
27
+ };
28
+ export declare type RenderMediaOnLambdaOutput = {
29
+ renderId: string;
30
+ bucketName: string;
31
+ };
4
32
  /**
5
33
  * @description Triggers a render on a lambda given a composition and a lambda function.
6
- * @link https://remotion-lambda-alpha.netlify.app/docs/lambda/rendervideoonlambda
34
+ * @link https://remotion.dev/docs/lambda/rendermediaonlambda
7
35
  * @param params.functionName The name of the Lambda function that should be used
8
36
  * @param params.serveUrl The URL of the deployed project
9
37
  * @param params.composition The ID of the composition which should be rendered.
@@ -16,31 +44,12 @@ import { Privacy } from '../shared/constants';
16
44
  * @param params.quality JPEG quality if JPEG was selected as the image format.
17
45
  * @param params.region The AWS region in which the video should be rendered.
18
46
  * @param params.maxRetries How often rendering a chunk may fail before the video render gets aborted.
19
- * @param params.enableChunkOptimization Whether Remotion should restructure and optimize chunks for subsequent renders. Default true.
20
47
  * @param params.logLevel Level of logging that Lambda function should perform. Default "info".
21
- * @returns `Promise<{renderId: string; bucketName: string}>`
48
+ * @returns {Promise<RenderMediaOnLambdaOutput>} See documentation for detailed structure
22
49
  */
23
- export declare const renderVideoOnLambda: ({ functionName, serveUrl, inputProps, codec, imageFormat, crf, envVariables, pixelFormat, proResProfile, quality, region, maxRetries, composition, framesPerLambda, privacy, enableChunkOptimization, logLevel, frameRange, }: {
24
- region: AwsRegion;
25
- functionName: string;
26
- serveUrl: string;
27
- composition: string;
28
- inputProps: unknown;
29
- codec: 'h264-mkv' | 'mp3' | 'aac' | 'wav';
30
- imageFormat: ImageFormat;
31
- crf?: number | undefined;
32
- envVariables?: Record<string, string> | undefined;
33
- pixelFormat?: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le" | undefined;
34
- proResProfile?: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined;
35
- privacy: Privacy;
36
- quality?: number | undefined;
37
- maxRetries: number;
38
- framesPerLambda?: number | undefined;
39
- enableChunkOptimization?: boolean | undefined;
40
- logLevel?: "verbose" | "info" | "warn" | "error" | undefined;
41
- frameRange?: FrameRange | undefined;
42
- }) => Promise<{
43
- renderId: string;
44
- bucketName: string;
45
- }>;
46
- //# sourceMappingURL=render-video-on-lambda.d.ts.map
50
+ export declare const renderMediaOnLambda: ({ functionName, serveUrl, inputProps, codec, imageFormat, crf, envVariables, pixelFormat, proResProfile, quality, region, maxRetries, composition, framesPerLambda, privacy, logLevel, frameRange, outName, timeoutInMilliseconds, chromiumOptions, scale, }: RenderMediaOnLambdaInput) => Promise<RenderMediaOnLambdaOutput>;
51
+ /**
52
+ * @deprecated Renamed to renderMediaOnLambda()
53
+ */
54
+ export declare const renderVideoOnLambda: ({ functionName, serveUrl, inputProps, codec, imageFormat, crf, envVariables, pixelFormat, proResProfile, quality, region, maxRetries, composition, framesPerLambda, privacy, logLevel, frameRange, outName, timeoutInMilliseconds, chromiumOptions, scale, }: RenderMediaOnLambdaInput) => Promise<RenderMediaOnLambdaOutput>;
55
+ //# sourceMappingURL=render-media-on-lambda.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render-media-on-lambda.d.ts","sourceRoot":"","sources":["../../src/api/render-media-on-lambda.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACxD,OAAO,EACN,UAAU,EACV,WAAW,EAEX,QAAQ,EACR,WAAW,EACX,aAAa,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAiB,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAK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
+ exports.renderVideoOnLambda = exports.renderMediaOnLambda = void 0;
4
4
  const remotion_1 = require("remotion");
5
5
  const call_lambda_1 = require("../shared/call-lambda");
6
6
  const constants_1 = require("../shared/constants");
7
7
  const convert_to_serve_url_1 = require("../shared/convert-to-serve-url");
8
- const validate_frames_per_lambda_1 = require("./validate-frames-per-lambda");
8
+ const validate_frames_per_lambda_1 = require("../shared/validate-frames-per-lambda");
9
+ const validate_serveurl_1 = require("../shared/validate-serveurl");
9
10
  /**
10
11
  * @description Triggers a render on a lambda given a composition and a lambda function.
11
- * @link https://remotion-lambda-alpha.netlify.app/docs/lambda/rendervideoonlambda
12
+ * @link https://remotion.dev/docs/lambda/rendermediaonlambda
12
13
  * @param params.functionName The name of the Lambda function that should be used
13
14
  * @param params.serveUrl The URL of the deployed project
14
15
  * @param params.composition The ID of the composition which should be rendered.
@@ -21,18 +22,18 @@ const validate_frames_per_lambda_1 = require("./validate-frames-per-lambda");
21
22
  * @param params.quality JPEG quality if JPEG was selected as the image format.
22
23
  * @param params.region The AWS region in which the video should be rendered.
23
24
  * @param params.maxRetries How often rendering a chunk may fail before the video render gets aborted.
24
- * @param params.enableChunkOptimization Whether Remotion should restructure and optimize chunks for subsequent renders. Default true.
25
25
  * @param params.logLevel Level of logging that Lambda function should perform. Default "info".
26
- * @returns `Promise<{renderId: string; bucketName: string}>`
26
+ * @returns {Promise<RenderMediaOnLambdaOutput>} See documentation for detailed structure
27
27
  */
28
- const renderVideoOnLambda = async ({ functionName, serveUrl, inputProps, codec, imageFormat, crf, envVariables, pixelFormat, proResProfile, quality, region, maxRetries, composition, framesPerLambda, privacy, enableChunkOptimization, logLevel, frameRange, }) => {
29
- (0, validate_frames_per_lambda_1.validateFramesPerLambda)(framesPerLambda);
28
+ const renderMediaOnLambda = async ({ functionName, serveUrl, inputProps, codec, imageFormat, crf, envVariables, pixelFormat, proResProfile, quality, region, maxRetries, composition, framesPerLambda, privacy, logLevel, frameRange, outName, timeoutInMilliseconds, chromiumOptions, scale, }) => {
29
+ (0, validate_serveurl_1.validateServeUrl)(serveUrl);
30
+ (0, validate_frames_per_lambda_1.validateFramesPerLambda)(framesPerLambda !== null && framesPerLambda !== void 0 ? framesPerLambda : null);
30
31
  const realServeUrl = await (0, convert_to_serve_url_1.convertToServeUrl)(serveUrl, region);
31
32
  const res = await (0, call_lambda_1.callLambda)({
32
33
  functionName,
33
34
  type: constants_1.LambdaRoutines.start,
34
35
  payload: {
35
- framesPerLambda: framesPerLambda !== null && framesPerLambda !== void 0 ? framesPerLambda : constants_1.DEFAULT_FRAMES_PER_LAMBDA,
36
+ framesPerLambda: framesPerLambda !== null && framesPerLambda !== void 0 ? framesPerLambda : null,
36
37
  composition,
37
38
  serveUrl: realServeUrl,
38
39
  inputProps,
@@ -45,9 +46,12 @@ const renderVideoOnLambda = async ({ functionName, serveUrl, inputProps, codec,
45
46
  quality,
46
47
  maxRetries,
47
48
  privacy,
48
- enableChunkOptimization,
49
49
  logLevel: logLevel !== null && logLevel !== void 0 ? logLevel : remotion_1.Internals.Logging.DEFAULT_LOG_LEVEL,
50
50
  frameRange: frameRange !== null && frameRange !== void 0 ? frameRange : null,
51
+ outName: outName !== null && outName !== void 0 ? outName : null,
52
+ timeoutInMilliseconds: timeoutInMilliseconds !== null && timeoutInMilliseconds !== void 0 ? timeoutInMilliseconds : remotion_1.Internals.DEFAULT_PUPPETEER_TIMEOUT,
53
+ chromiumOptions: chromiumOptions !== null && chromiumOptions !== void 0 ? chromiumOptions : {},
54
+ scale: scale !== null && scale !== void 0 ? scale : 1,
51
55
  },
52
56
  region,
53
57
  });
@@ -56,5 +60,9 @@ const renderVideoOnLambda = async ({ functionName, serveUrl, inputProps, codec,
56
60
  bucketName: res.bucketName,
57
61
  };
58
62
  };
59
- exports.renderVideoOnLambda = renderVideoOnLambda;
60
- //# sourceMappingURL=render-video-on-lambda.js.map
63
+ exports.renderMediaOnLambda = renderMediaOnLambda;
64
+ /**
65
+ * @deprecated Renamed to renderMediaOnLambda()
66
+ */
67
+ exports.renderVideoOnLambda = exports.renderMediaOnLambda;
68
+ //# sourceMappingURL=render-media-on-lambda.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render-media-on-lambda.js","sourceRoot":"","sources":["../../src/api/render-media-on-lambda.ts"],"names":[],"mappings":";;;AACA,uCAOkB;AAElB,uDAAiD;AACjD,mDAA4D;AAC5D,yEAAiE;AACjE,qFAA6E;AAC7E,mEAA6D;AA+B7D;;;;;;;;;;;;;;;;;GAiBG;AAEI,MAAM,mBAAmB,GAAG,KAAK,EAAE,EACzC,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,KAAK,EACL,WAAW,EACX,GAAG,EACH,YAAY,EACZ,WAAW,EACX,aAAa,EACb,OAAO,EACP,MAAM,EACN,UAAU,EACV,WAAW,EACX,eAAe,EACf,OAAO,EACP,QAAQ,EACR,UAAU,EACV,OAAO,EACP,qBAAqB,EACrB,eAAe,EACf,KAAK,GACqB,EAAsC,EAAE;IAClE,IAAA,oCAAgB,EAAC,QAAQ,CAAC,CAAC;IAC3B,IAAA,oDAAuB,EAAC,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,IAAI,CAAC,CAAC;IACjD,MAAM,YAAY,GAAG,MAAM,IAAA,wCAAiB,EAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC/D,MAAM,GAAG,GAAG,MAAM,IAAA,wBAAU,EAAC;QAC5B,YAAY;QACZ,IAAI,EAAE,0BAAc,CAAC,KAAK;QAC1B,OAAO,EAAE;YACR,eAAe,EAAE,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,IAAI;YACxC,WAAW;YACX,QAAQ,EAAE,YAAY;YACtB,UAAU;YACV,KAAK;YACL,WAAW;YACX,GAAG;YACH,YAAY;YACZ,WAAW;YACX,aAAa;YACb,OAAO;YACP,UAAU;YACV,OAAO;YACP,QAAQ,EAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,oBAAS,CAAC,OAAO,CAAC,iBAAiB;Y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