@remotion/lambda 3.0.0-lambda.99 → 3.0.0-symbols.518

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 (742) hide show
  1. package/.prettierrc.js +15 -0
  2. package/.turbo/turbo-build.log +10 -0
  3. package/.turbo/turbo-lint.log +33 -0
  4. package/.turbo/turbo-test.log +24 -0
  5. package/LICENSE.md +2 -2
  6. package/README.md +1 -10
  7. package/dist/admin/bundle-lambda.d.ts +0 -0
  8. package/dist/admin/bundle-lambda.d.ts.map +0 -0
  9. package/dist/admin/bundle-lambda.js +4 -3
  10. package/dist/admin/bundle-lambda.js.map +1 -1
  11. package/dist/admin/make-layer-public.d.ts +0 -0
  12. package/dist/admin/make-layer-public.d.ts.map +0 -0
  13. package/dist/admin/make-layer-public.js +67 -60
  14. package/dist/admin/make-layer-public.js.map +1 -1
  15. package/dist/api/bucket-exists.d.ts +1 -1
  16. package/dist/api/bucket-exists.d.ts.map +1 -1
  17. package/dist/api/bucket-exists.js +0 -0
  18. package/dist/api/bucket-exists.js.map +0 -0
  19. package/dist/api/clean-items.d.ts +0 -0
  20. package/dist/api/clean-items.d.ts.map +0 -0
  21. package/dist/api/clean-items.js +0 -0
  22. package/dist/api/clean-items.js.map +0 -0
  23. package/dist/api/create-bucket.d.ts +1 -1
  24. package/dist/api/create-bucket.d.ts.map +1 -1
  25. package/dist/api/create-bucket.js +0 -0
  26. package/dist/api/create-bucket.js.map +0 -0
  27. package/dist/api/create-function.d.ts +8 -3
  28. package/dist/api/create-function.d.ts.map +1 -1
  29. package/dist/api/create-function.js +28 -20
  30. package/dist/api/create-function.js.map +1 -1
  31. package/dist/api/delete-function.d.ts +7 -6
  32. package/dist/api/delete-function.d.ts.map +1 -1
  33. package/dist/api/delete-function.js +2 -2
  34. package/dist/api/delete-function.js.map +1 -1
  35. package/dist/api/delete-site.d.ts +19 -9
  36. package/dist/api/delete-site.d.ts.map +1 -1
  37. package/dist/api/delete-site.js +10 -1
  38. package/dist/api/delete-site.js.map +1 -1
  39. package/dist/api/deploy-function.d.ts +20 -10
  40. package/dist/api/deploy-function.d.ts.map +1 -1
  41. package/dist/api/deploy-function.js +33 -4
  42. package/dist/api/deploy-function.js.map +1 -1
  43. package/dist/api/deploy-site.d.ts +3 -3
  44. package/dist/api/deploy-site.d.ts.map +1 -1
  45. package/dist/api/deploy-site.js +6 -8
  46. package/dist/api/deploy-site.js.map +1 -1
  47. package/dist/api/download-media.d.ts +19 -0
  48. package/dist/api/download-media.d.ts.map +1 -0
  49. package/dist/api/download-media.js +45 -0
  50. package/dist/api/download-media.js.map +1 -0
  51. package/dist/api/enable-s3-website.d.ts +1 -1
  52. package/dist/api/enable-s3-website.d.ts.map +1 -1
  53. package/dist/api/enable-s3-website.js +0 -1
  54. package/dist/api/enable-s3-website.js.map +1 -1
  55. package/dist/api/estimate-price.d.ts +18 -0
  56. package/dist/api/estimate-price.d.ts.map +1 -0
  57. package/dist/api/estimate-price.js +51 -0
  58. package/dist/api/estimate-price.js.map +1 -0
  59. package/dist/api/get-aws-client.d.ts +32 -0
  60. package/dist/api/get-aws-client.d.ts.map +1 -0
  61. package/dist/api/get-aws-client.js +49 -0
  62. package/dist/api/get-aws-client.js.map +1 -0
  63. package/dist/api/get-buckets.d.ts +0 -0
  64. package/dist/api/get-buckets.d.ts.map +1 -1
  65. package/dist/api/get-buckets.js +1 -7
  66. package/dist/api/get-buckets.js.map +1 -1
  67. package/dist/api/get-function-info.d.ts +4 -4
  68. package/dist/api/get-function-info.d.ts.map +1 -1
  69. package/dist/api/get-function-info.js +4 -2
  70. package/dist/api/get-function-info.js.map +1 -1
  71. package/dist/api/get-functions.d.ts +7 -6
  72. package/dist/api/get-functions.d.ts.map +1 -1
  73. package/dist/api/get-functions.js +30 -4
  74. package/dist/api/get-functions.js.map +1 -1
  75. package/dist/api/get-or-create-bucket.d.ts +5 -6
  76. package/dist/api/get-or-create-bucket.d.ts.map +1 -1
  77. package/dist/api/get-or-create-bucket.js +2 -2
  78. package/dist/api/get-or-create-bucket.js.map +1 -1
  79. package/dist/api/get-regions.d.ts +8 -0
  80. package/dist/api/get-regions.d.ts.map +1 -0
  81. package/dist/api/get-regions.js +14 -0
  82. package/dist/api/get-regions.js.map +1 -0
  83. package/dist/api/get-render-progress.d.ts +12 -10
  84. package/dist/api/get-render-progress.d.ts.map +1 -1
  85. package/dist/api/get-render-progress.js +6 -5
  86. package/dist/api/get-render-progress.js.map +1 -1
  87. package/dist/api/get-sites.d.ts +12 -4
  88. package/dist/api/get-sites.d.ts.map +1 -1
  89. package/dist/api/get-sites.js +8 -3
  90. package/dist/api/get-sites.js.map +1 -1
  91. package/dist/api/iam-validation/role-permissions.d.ts +0 -0
  92. package/dist/api/iam-validation/role-permissions.d.ts.map +1 -1
  93. package/dist/api/iam-validation/role-permissions.js +6 -5
  94. package/dist/api/iam-validation/role-permissions.js.map +1 -1
  95. package/dist/api/iam-validation/simulate-rule.d.ts +1 -0
  96. package/dist/api/iam-validation/simulate-rule.d.ts.map +1 -1
  97. package/dist/api/iam-validation/simulate-rule.js +42 -29
  98. package/dist/api/iam-validation/simulate-rule.js.map +1 -1
  99. package/dist/api/iam-validation/simulate.d.ts +14 -5
  100. package/dist/api/iam-validation/simulate.d.ts.map +1 -1
  101. package/dist/api/iam-validation/simulate.js +11 -4
  102. package/dist/api/iam-validation/simulate.js.map +1 -1
  103. package/dist/api/iam-validation/suggested-policy.d.ts +3 -2
  104. package/dist/api/iam-validation/suggested-policy.d.ts.map +1 -1
  105. package/dist/api/iam-validation/suggested-policy.js +7 -6
  106. package/dist/api/iam-validation/suggested-policy.js.map +1 -1
  107. package/dist/api/iam-validation/user-permissions.d.ts +7 -0
  108. package/dist/api/iam-validation/user-permissions.d.ts.map +1 -0
  109. package/dist/api/iam-validation/{required-permissions.js → user-permissions.js} +37 -20
  110. package/dist/api/iam-validation/user-permissions.js.map +1 -0
  111. package/dist/api/mock-functions.d.ts +1 -1
  112. package/dist/api/mock-functions.d.ts.map +1 -1
  113. package/dist/api/mock-functions.js +0 -0
  114. package/dist/api/mock-functions.js.map +0 -0
  115. package/dist/api/presign-url.d.ts +20 -0
  116. package/dist/api/presign-url.d.ts.map +1 -0
  117. package/dist/api/presign-url.js +47 -0
  118. package/dist/api/presign-url.js.map +1 -0
  119. package/dist/api/{render-video-on-lambda.d.ts → render-media-on-lambda.d.ts} +38 -28
  120. package/dist/api/render-media-on-lambda.d.ts.map +1 -0
  121. package/dist/api/{render-video-on-lambda.js → render-media-on-lambda.js} +26 -14
  122. package/dist/api/render-media-on-lambda.js.map +1 -0
  123. package/dist/api/render-still-on-lambda.d.ts +31 -23
  124. package/dist/api/render-still-on-lambda.d.ts.map +1 -1
  125. package/dist/api/render-still-on-lambda.js +14 -7
  126. package/dist/api/render-still-on-lambda.js.map +1 -1
  127. package/dist/api/upload-dir.d.ts +1 -1
  128. package/dist/api/upload-dir.d.ts.map +1 -1
  129. package/dist/api/upload-dir.js +7 -5
  130. package/dist/api/upload-dir.js.map +1 -1
  131. package/dist/cli/args.d.ts +9 -3
  132. package/dist/cli/args.d.ts.map +1 -1
  133. package/dist/cli/args.js +1 -2
  134. package/dist/cli/args.js.map +1 -1
  135. package/dist/cli/commands/functions/deploy.d.ts +0 -0
  136. package/dist/cli/commands/functions/deploy.d.ts.map +1 -1
  137. package/dist/cli/commands/functions/deploy.js +34 -6
  138. package/dist/cli/commands/functions/deploy.js.map +1 -1
  139. package/dist/cli/commands/functions/index.d.ts +0 -0
  140. package/dist/cli/commands/functions/index.d.ts.map +1 -1
  141. package/dist/cli/commands/functions/index.js +9 -1
  142. package/dist/cli/commands/functions/index.js.map +1 -1
  143. package/dist/cli/commands/functions/ls.d.ts +0 -0
  144. package/dist/cli/commands/functions/ls.d.ts.map +1 -1
  145. package/dist/cli/commands/functions/ls.js +11 -7
  146. package/dist/cli/commands/functions/ls.js.map +1 -1
  147. package/dist/cli/commands/functions/rm.d.ts +0 -0
  148. package/dist/cli/commands/functions/rm.d.ts.map +1 -1
  149. package/dist/cli/commands/functions/rm.js +9 -4
  150. package/dist/cli/commands/functions/rm.js.map +1 -1
  151. package/dist/cli/commands/functions/rmall.d.ts +3 -0
  152. package/dist/cli/commands/functions/rmall.d.ts.map +1 -0
  153. package/dist/cli/commands/functions/rmall.js +41 -0
  154. package/dist/cli/commands/functions/rmall.js.map +1 -0
  155. package/dist/cli/commands/policies/policies.d.ts +0 -0
  156. package/dist/cli/commands/policies/policies.d.ts.map +1 -1
  157. package/dist/cli/commands/policies/policies.js +2 -1
  158. package/dist/cli/commands/policies/policies.js.map +1 -1
  159. package/dist/cli/commands/policies/role.d.ts +0 -0
  160. package/dist/cli/commands/policies/role.d.ts.map +0 -0
  161. package/dist/cli/commands/policies/role.js +0 -0
  162. package/dist/cli/commands/policies/role.js.map +0 -0
  163. package/dist/cli/commands/policies/user.d.ts +0 -0
  164. package/dist/cli/commands/policies/user.d.ts.map +0 -0
  165. package/dist/cli/commands/policies/user.js +0 -0
  166. package/dist/cli/commands/policies/user.js.map +0 -0
  167. package/dist/cli/commands/policies/validate.d.ts +0 -0
  168. package/dist/cli/commands/policies/validate.d.ts.map +0 -0
  169. package/dist/cli/commands/policies/validate.js +0 -0
  170. package/dist/cli/commands/policies/validate.js.map +0 -0
  171. package/dist/cli/commands/quotas/increase.d.ts +3 -0
  172. package/dist/cli/commands/quotas/increase.d.ts.map +1 -0
  173. package/dist/cli/commands/quotas/increase.js +58 -0
  174. package/dist/cli/commands/quotas/increase.js.map +1 -0
  175. package/dist/cli/commands/quotas/index.d.ts +3 -0
  176. package/dist/cli/commands/quotas/index.d.ts.map +1 -0
  177. package/dist/cli/commands/quotas/index.js +30 -0
  178. package/dist/cli/commands/quotas/index.js.map +1 -0
  179. package/dist/cli/commands/quotas/list.d.ts +2 -0
  180. package/dist/cli/commands/quotas/list.d.ts.map +1 -0
  181. package/dist/cli/commands/quotas/list.js +65 -0
  182. package/dist/cli/commands/quotas/list.js.map +1 -0
  183. package/dist/cli/commands/regions.d.ts +3 -0
  184. package/dist/cli/commands/regions.d.ts.map +1 -0
  185. package/dist/cli/commands/regions.js +11 -0
  186. package/dist/cli/commands/regions.js.map +1 -0
  187. package/dist/cli/commands/render/progress.d.ts +7 -5
  188. package/dist/cli/commands/render/progress.d.ts.map +1 -1
  189. package/dist/cli/commands/render/progress.js +11 -33
  190. package/dist/cli/commands/render/progress.js.map +1 -1
  191. package/dist/cli/commands/render/render.d.ts +0 -0
  192. package/dist/cli/commands/render/render.d.ts.map +1 -1
  193. package/dist/cli/commands/render/render.js +83 -50
  194. package/dist/cli/commands/render/render.js.map +1 -1
  195. package/dist/cli/commands/sites/create.d.ts +0 -0
  196. package/dist/cli/commands/sites/create.d.ts.map +1 -1
  197. package/dist/cli/commands/sites/create.js +18 -9
  198. package/dist/cli/commands/sites/create.js.map +1 -1
  199. package/dist/cli/commands/sites/index.d.ts +0 -0
  200. package/dist/cli/commands/sites/index.d.ts.map +1 -1
  201. package/dist/cli/commands/sites/index.js +6 -1
  202. package/dist/cli/commands/sites/index.js.map +1 -1
  203. package/dist/cli/commands/sites/ls.d.ts +0 -0
  204. package/dist/cli/commands/sites/ls.d.ts.map +1 -1
  205. package/dist/cli/commands/sites/ls.js +8 -5
  206. package/dist/cli/commands/sites/ls.js.map +1 -1
  207. package/dist/cli/commands/sites/rm.d.ts +1 -1
  208. package/dist/cli/commands/sites/rm.d.ts.map +1 -1
  209. package/dist/cli/commands/sites/rm.js +16 -7
  210. package/dist/cli/commands/sites/rm.js.map +1 -1
  211. package/dist/cli/commands/sites/rmall.d.ts +3 -0
  212. package/dist/cli/commands/sites/rmall.d.ts.map +1 -0
  213. package/dist/cli/commands/sites/rmall.js +49 -0
  214. package/dist/cli/commands/sites/rmall.js.map +1 -0
  215. package/dist/cli/commands/still.d.ts +0 -0
  216. package/dist/cli/commands/still.d.ts.map +1 -1
  217. package/dist/cli/commands/still.js +72 -25
  218. package/dist/cli/commands/still.js.map +1 -1
  219. package/dist/cli/get-aws-region.d.ts +0 -0
  220. package/dist/cli/get-aws-region.d.ts.map +0 -0
  221. package/dist/cli/get-aws-region.js +2 -2
  222. package/dist/cli/get-aws-region.js.map +1 -1
  223. package/dist/cli/help.d.ts +0 -0
  224. package/dist/cli/help.d.ts.map +1 -1
  225. package/dist/cli/help.js +13 -1
  226. package/dist/cli/help.js.map +1 -1
  227. package/dist/cli/helpers/confirm.d.ts +0 -0
  228. package/dist/cli/helpers/confirm.d.ts.map +1 -1
  229. package/dist/cli/helpers/confirm.js +5 -18
  230. package/dist/cli/helpers/confirm.js.map +1 -1
  231. package/dist/cli/helpers/date-string.d.ts +0 -0
  232. package/dist/cli/helpers/date-string.d.ts.map +0 -0
  233. package/dist/cli/helpers/date-string.js +0 -0
  234. package/dist/cli/helpers/date-string.js.map +0 -0
  235. package/dist/cli/helpers/find-function-name.d.ts +0 -0
  236. package/dist/cli/helpers/find-function-name.d.ts.map +1 -1
  237. package/dist/cli/helpers/find-function-name.js +3 -2
  238. package/dist/cli/helpers/find-function-name.js.map +1 -1
  239. package/dist/cli/helpers/format-bytes.d.ts +0 -0
  240. package/dist/cli/helpers/format-bytes.d.ts.map +0 -0
  241. package/dist/cli/helpers/format-bytes.js +0 -0
  242. package/dist/cli/helpers/format-bytes.js.map +0 -0
  243. package/dist/cli/helpers/get-cloudwatch-stream-url.d.ts +0 -0
  244. package/dist/cli/helpers/get-cloudwatch-stream-url.d.ts.map +0 -0
  245. package/dist/cli/helpers/get-cloudwatch-stream-url.js +0 -0
  246. package/dist/cli/helpers/get-cloudwatch-stream-url.js.map +0 -0
  247. package/dist/cli/helpers/progress-bar.d.ts +0 -0
  248. package/dist/cli/helpers/progress-bar.d.ts.map +0 -0
  249. package/dist/cli/helpers/progress-bar.js +0 -0
  250. package/dist/cli/helpers/progress-bar.js.map +0 -0
  251. package/dist/cli/helpers/quit.d.ts +2 -0
  252. package/dist/cli/helpers/quit.d.ts.map +1 -0
  253. package/dist/cli/helpers/quit.js +8 -0
  254. package/dist/cli/helpers/quit.js.map +1 -0
  255. package/dist/cli/helpers/yes-or-no.d.ts +5 -0
  256. package/dist/cli/helpers/yes-or-no.d.ts.map +1 -0
  257. package/dist/cli/helpers/yes-or-no.js +45 -0
  258. package/dist/cli/helpers/yes-or-no.js.map +1 -0
  259. package/dist/cli/index.d.ts +0 -0
  260. package/dist/cli/index.d.ts.map +1 -1
  261. package/dist/cli/index.js +41 -10
  262. package/dist/cli/index.js.map +1 -1
  263. package/dist/cli/is-cli.d.ts +3 -0
  264. package/dist/cli/is-cli.d.ts.map +1 -0
  265. package/dist/cli/is-cli.js +11 -0
  266. package/dist/cli/is-cli.js.map +1 -0
  267. package/dist/cli/log.d.ts +0 -0
  268. package/dist/cli/log.d.ts.map +0 -0
  269. package/dist/cli/log.js +0 -0
  270. package/dist/cli/log.js.map +0 -0
  271. package/dist/client.d.ts +4 -3
  272. package/dist/client.d.ts.map +1 -1
  273. package/dist/client.js +8 -5
  274. package/dist/client.js.map +1 -1
  275. package/dist/defaults.d.ts +0 -0
  276. package/dist/defaults.d.ts.map +0 -0
  277. package/dist/defaults.js +0 -0
  278. package/dist/defaults.js.map +0 -0
  279. package/dist/functions/chunk-optimization/can-use-optimization.d.ts +2 -2
  280. package/dist/functions/chunk-optimization/can-use-optimization.d.ts.map +1 -1
  281. package/dist/functions/chunk-optimization/can-use-optimization.js +6 -3
  282. package/dist/functions/chunk-optimization/can-use-optimization.js.map +1 -1
  283. package/dist/functions/chunk-optimization/collect-data.d.ts +3 -2
  284. package/dist/functions/chunk-optimization/collect-data.d.ts.map +1 -1
  285. package/dist/functions/chunk-optimization/collect-data.js +0 -0
  286. package/dist/functions/chunk-optimization/collect-data.js.map +0 -0
  287. package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts +1 -4
  288. package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts.map +1 -1
  289. package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.js +0 -0
  290. package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.js.map +0 -0
  291. package/dist/functions/chunk-optimization/get-profile-duration.d.ts +0 -0
  292. package/dist/functions/chunk-optimization/get-profile-duration.d.ts.map +0 -0
  293. package/dist/functions/chunk-optimization/get-profile-duration.js +0 -0
  294. package/dist/functions/chunk-optimization/get-profile-duration.js.map +0 -0
  295. package/dist/functions/chunk-optimization/is-valid-profile.d.ts +0 -0
  296. package/dist/functions/chunk-optimization/is-valid-profile.d.ts.map +0 -0
  297. package/dist/functions/chunk-optimization/is-valid-profile.js +0 -0
  298. package/dist/functions/chunk-optimization/is-valid-profile.js.map +0 -0
  299. package/dist/functions/chunk-optimization/optimize-invocation-order.d.ts +0 -0
  300. package/dist/functions/chunk-optimization/optimize-invocation-order.d.ts.map +0 -0
  301. package/dist/functions/chunk-optimization/optimize-invocation-order.js +0 -0
  302. package/dist/functions/chunk-optimization/optimize-invocation-order.js.map +0 -0
  303. package/dist/functions/chunk-optimization/optimize-profile.d.ts +2 -8
  304. package/dist/functions/chunk-optimization/optimize-profile.d.ts.map +1 -1
  305. package/dist/functions/chunk-optimization/optimize-profile.js +0 -0
  306. package/dist/functions/chunk-optimization/optimize-profile.js.map +0 -0
  307. package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts +3 -6
  308. package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts.map +1 -1
  309. package/dist/functions/chunk-optimization/plan-frame-ranges.js +10 -5
  310. package/dist/functions/chunk-optimization/plan-frame-ranges.js.map +1 -1
  311. package/dist/functions/chunk-optimization/s3-optimization-file.d.ts +0 -0
  312. package/dist/functions/chunk-optimization/s3-optimization-file.d.ts.map +0 -0
  313. package/dist/functions/chunk-optimization/s3-optimization-file.js +0 -0
  314. package/dist/functions/chunk-optimization/s3-optimization-file.js.map +0 -0
  315. package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts +1 -4
  316. package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts.map +1 -1
  317. package/dist/functions/chunk-optimization/simulate-frame-ranges.js +0 -0
  318. package/dist/functions/chunk-optimization/simulate-frame-ranges.js.map +0 -0
  319. package/dist/functions/chunk-optimization/sort-by-duration.d.ts +0 -0
  320. package/dist/functions/chunk-optimization/sort-by-duration.d.ts.map +0 -0
  321. package/dist/functions/chunk-optimization/sort-by-duration.js +0 -0
  322. package/dist/functions/chunk-optimization/sort-by-duration.js.map +0 -0
  323. package/dist/functions/chunk-optimization/types.d.ts +2 -2
  324. package/dist/functions/chunk-optimization/types.d.ts.map +1 -1
  325. package/dist/functions/chunk-optimization/types.js +0 -0
  326. package/dist/functions/chunk-optimization/types.js.map +0 -0
  327. package/dist/functions/fire.d.ts +0 -0
  328. package/dist/functions/fire.d.ts.map +0 -0
  329. package/dist/functions/fire.js +0 -0
  330. package/dist/functions/fire.js.map +0 -0
  331. package/dist/functions/helpers/best-frames-per-lambda-param.d.ts +2 -0
  332. package/dist/functions/helpers/best-frames-per-lambda-param.d.ts.map +1 -0
  333. package/dist/functions/helpers/best-frames-per-lambda-param.js +18 -0
  334. package/dist/functions/helpers/best-frames-per-lambda-param.js.map +1 -0
  335. package/dist/functions/helpers/calculate-chunk-times.d.ts +0 -0
  336. package/dist/functions/helpers/calculate-chunk-times.d.ts.map +1 -1
  337. package/dist/functions/helpers/calculate-chunk-times.js +18 -14
  338. package/dist/functions/helpers/calculate-chunk-times.js.map +1 -1
  339. package/dist/functions/helpers/calculate-price-from-bucket.d.ts +7 -3
  340. package/dist/functions/helpers/calculate-price-from-bucket.d.ts.map +1 -1
  341. package/dist/functions/helpers/calculate-price-from-bucket.js +12 -15
  342. package/dist/functions/helpers/calculate-price-from-bucket.js.map +1 -1
  343. package/dist/functions/helpers/clean-tmpdir.d.ts +0 -0
  344. package/dist/functions/helpers/clean-tmpdir.d.ts.map +0 -0
  345. package/dist/functions/helpers/clean-tmpdir.js +0 -0
  346. package/dist/functions/helpers/clean-tmpdir.js.map +0 -0
  347. package/dist/functions/helpers/concat-videos.d.ts +0 -0
  348. package/dist/functions/helpers/concat-videos.d.ts.map +1 -1
  349. package/dist/functions/helpers/concat-videos.js +12 -8
  350. package/dist/functions/helpers/concat-videos.js.map +1 -1
  351. package/dist/functions/helpers/create-post-render-data.d.ts +5 -4
  352. package/dist/functions/helpers/create-post-render-data.d.ts.map +1 -1
  353. package/dist/functions/helpers/create-post-render-data.js +18 -12
  354. package/dist/functions/helpers/create-post-render-data.js.map +1 -1
  355. package/dist/functions/helpers/delete-chunks.d.ts +1 -1
  356. package/dist/functions/helpers/delete-chunks.d.ts.map +1 -1
  357. package/dist/functions/helpers/delete-chunks.js +0 -0
  358. package/dist/functions/helpers/delete-chunks.js.map +1 -1
  359. package/dist/functions/helpers/expected-out-name.d.ts +2 -2
  360. package/dist/functions/helpers/expected-out-name.d.ts.map +1 -1
  361. package/dist/functions/helpers/expected-out-name.js +15 -3
  362. package/dist/functions/helpers/expected-out-name.js.map +1 -1
  363. package/dist/functions/helpers/find-output-file-in-bucket.d.ts +8 -7
  364. package/dist/functions/helpers/find-output-file-in-bucket.d.ts.map +1 -1
  365. package/dist/functions/helpers/find-output-file-in-bucket.js +23 -17
  366. package/dist/functions/helpers/find-output-file-in-bucket.js.map +1 -1
  367. package/dist/functions/helpers/format-costs-info.d.ts +0 -0
  368. package/dist/functions/helpers/format-costs-info.d.ts.map +0 -0
  369. package/dist/functions/helpers/format-costs-info.js +0 -0
  370. package/dist/functions/helpers/format-costs-info.js.map +0 -0
  371. package/dist/functions/helpers/get-browser-instance.d.ts +2 -2
  372. package/dist/functions/helpers/get-browser-instance.d.ts.map +1 -1
  373. package/dist/functions/helpers/get-browser-instance.js +8 -2
  374. package/dist/functions/helpers/get-browser-instance.js.map +1 -1
  375. package/dist/functions/helpers/get-chromium-executable-path.d.ts +1 -1
  376. package/dist/functions/helpers/get-chromium-executable-path.d.ts.map +1 -1
  377. package/dist/functions/helpers/get-chromium-executable-path.js +0 -0
  378. package/dist/functions/helpers/get-chromium-executable-path.js.map +1 -1
  379. package/dist/functions/helpers/get-cleanup-progress.d.ts +0 -0
  380. package/dist/functions/helpers/get-cleanup-progress.d.ts.map +1 -1
  381. package/dist/functions/helpers/get-cleanup-progress.js +2 -2
  382. package/dist/functions/helpers/get-cleanup-progress.js.map +1 -1
  383. package/dist/functions/helpers/get-current-architecture.d.ts +3 -0
  384. package/dist/functions/helpers/get-current-architecture.d.ts.map +1 -0
  385. package/dist/functions/helpers/get-current-architecture.js +12 -0
  386. package/dist/functions/helpers/get-current-architecture.js.map +1 -0
  387. package/dist/functions/helpers/get-current-region.d.ts +1 -1
  388. package/dist/functions/helpers/get-current-region.d.ts.map +1 -1
  389. package/dist/functions/helpers/get-current-region.js +2 -2
  390. package/dist/functions/helpers/get-current-region.js.map +1 -1
  391. package/dist/functions/helpers/get-encoding-metadata.d.ts +0 -0
  392. package/dist/functions/helpers/get-encoding-metadata.d.ts.map +0 -0
  393. package/dist/functions/helpers/get-encoding-metadata.js +0 -0
  394. package/dist/functions/helpers/get-encoding-metadata.js.map +0 -0
  395. package/dist/functions/helpers/get-files-in-folder.d.ts +0 -0
  396. package/dist/functions/helpers/get-files-in-folder.d.ts.map +0 -0
  397. package/dist/functions/helpers/get-files-in-folder.js +0 -0
  398. package/dist/functions/helpers/get-files-in-folder.js.map +0 -0
  399. package/dist/functions/helpers/get-files-to-delete.d.ts +0 -0
  400. package/dist/functions/helpers/get-files-to-delete.d.ts.map +0 -0
  401. package/dist/functions/helpers/get-files-to-delete.js +0 -0
  402. package/dist/functions/helpers/get-files-to-delete.js.map +0 -0
  403. package/dist/functions/helpers/get-final-encoding-status.d.ts +0 -0
  404. package/dist/functions/helpers/get-final-encoding-status.d.ts.map +0 -0
  405. package/dist/functions/helpers/get-final-encoding-status.js +0 -0
  406. package/dist/functions/helpers/get-final-encoding-status.js.map +0 -0
  407. package/dist/functions/helpers/get-folder-size.d.ts +0 -0
  408. package/dist/functions/helpers/get-folder-size.d.ts.map +0 -0
  409. package/dist/functions/helpers/get-folder-size.js +0 -0
  410. package/dist/functions/helpers/get-folder-size.js.map +0 -0
  411. package/dist/functions/helpers/get-lambdas-invoked-stats.d.ts +0 -0
  412. package/dist/functions/helpers/get-lambdas-invoked-stats.d.ts.map +1 -1
  413. package/dist/functions/helpers/get-lambdas-invoked-stats.js +3 -2
  414. package/dist/functions/helpers/get-lambdas-invoked-stats.js.map +1 -1
  415. package/dist/functions/helpers/get-output-url-from-metadata.d.ts +3 -0
  416. package/dist/functions/helpers/get-output-url-from-metadata.d.ts.map +1 -0
  417. package/dist/functions/helpers/get-output-url-from-metadata.js +11 -0
  418. package/dist/functions/helpers/get-output-url-from-metadata.js.map +1 -0
  419. package/dist/functions/helpers/get-overall-progress.d.ts +0 -0
  420. package/dist/functions/helpers/get-overall-progress.d.ts.map +0 -0
  421. package/dist/functions/helpers/get-overall-progress.js +0 -0
  422. package/dist/functions/helpers/get-overall-progress.js.map +0 -0
  423. package/dist/functions/helpers/get-post-render-data.d.ts +1 -1
  424. package/dist/functions/helpers/get-post-render-data.d.ts.map +1 -1
  425. package/dist/functions/helpers/get-post-render-data.js +0 -0
  426. package/dist/functions/helpers/get-post-render-data.js.map +0 -0
  427. package/dist/functions/helpers/get-progress.d.ts +3 -2
  428. package/dist/functions/helpers/get-progress.d.ts.map +1 -1
  429. package/dist/functions/helpers/get-progress.js +60 -21
  430. package/dist/functions/helpers/get-progress.js.map +1 -1
  431. package/dist/functions/helpers/get-render-metadata.d.ts +0 -0
  432. package/dist/functions/helpers/get-render-metadata.d.ts.map +0 -0
  433. package/dist/functions/helpers/get-render-metadata.js +0 -0
  434. package/dist/functions/helpers/get-render-metadata.js.map +0 -0
  435. package/dist/functions/helpers/get-retry-stats.d.ts +0 -0
  436. package/dist/functions/helpers/get-retry-stats.d.ts.map +0 -0
  437. package/dist/functions/helpers/get-retry-stats.js +0 -0
  438. package/dist/functions/helpers/get-retry-stats.js.map +0 -0
  439. package/dist/functions/helpers/get-time-to-finish.d.ts +0 -0
  440. package/dist/functions/helpers/get-time-to-finish.d.ts.map +0 -0
  441. package/dist/functions/helpers/get-time-to-finish.js +1 -1
  442. package/dist/functions/helpers/get-time-to-finish.js.map +1 -1
  443. package/dist/functions/helpers/inspect-errors.d.ts +0 -0
  444. package/dist/functions/helpers/inspect-errors.d.ts.map +1 -1
  445. package/dist/functions/helpers/inspect-errors.js +8 -1
  446. package/dist/functions/helpers/inspect-errors.js.map +1 -1
  447. package/dist/functions/helpers/io.d.ts +0 -0
  448. package/dist/functions/helpers/io.d.ts.map +0 -0
  449. package/dist/functions/helpers/io.js +0 -0
  450. package/dist/functions/helpers/io.js.map +0 -0
  451. package/dist/functions/helpers/is-enosp-err.d.ts +1 -0
  452. package/dist/functions/helpers/is-enosp-err.d.ts.map +1 -1
  453. package/dist/functions/helpers/is-enosp-err.js +5 -1
  454. package/dist/functions/helpers/is-enosp-err.js.map +1 -1
  455. package/dist/functions/helpers/is-warm.d.ts +0 -0
  456. package/dist/functions/helpers/is-warm.d.ts.map +0 -0
  457. package/dist/functions/helpers/is-warm.js +0 -0
  458. package/dist/functions/helpers/is-warm.js.map +0 -0
  459. package/dist/functions/helpers/min-max.d.ts +3 -0
  460. package/dist/functions/helpers/min-max.d.ts.map +1 -0
  461. package/dist/functions/helpers/min-max.js +34 -0
  462. package/dist/functions/helpers/min-max.js.map +1 -0
  463. package/dist/functions/helpers/presign-url.d.ts +2 -0
  464. package/dist/functions/helpers/presign-url.d.ts.map +1 -0
  465. package/dist/functions/helpers/presign-url.js +9 -0
  466. package/dist/functions/helpers/presign-url.js.map +1 -0
  467. package/dist/functions/helpers/print-cloudwatch-helper.d.ts +0 -0
  468. package/dist/functions/helpers/print-cloudwatch-helper.d.ts.map +0 -0
  469. package/dist/functions/helpers/print-cloudwatch-helper.js +0 -0
  470. package/dist/functions/helpers/print-cloudwatch-helper.js.map +0 -0
  471. package/dist/functions/helpers/print-concurrency-curve.d.ts +2 -0
  472. package/dist/functions/helpers/print-concurrency-curve.d.ts.map +1 -0
  473. package/dist/functions/helpers/print-concurrency-curve.js +9 -0
  474. package/dist/functions/helpers/print-concurrency-curve.js.map +1 -0
  475. package/dist/functions/helpers/read-with-progress.d.ts +17 -0
  476. package/dist/functions/helpers/read-with-progress.d.ts.map +1 -0
  477. package/dist/functions/helpers/read-with-progress.js +19 -0
  478. package/dist/functions/helpers/read-with-progress.js.map +1 -0
  479. package/dist/functions/helpers/timer.d.ts +0 -0
  480. package/dist/functions/helpers/timer.d.ts.map +0 -0
  481. package/dist/functions/helpers/timer.js +0 -0
  482. package/dist/functions/helpers/timer.js.map +0 -0
  483. package/dist/functions/helpers/validate-composition.d.ts +2 -2
  484. package/dist/functions/helpers/validate-composition.d.ts.map +1 -1
  485. package/dist/functions/helpers/validate-composition.js +1 -1
  486. package/dist/functions/helpers/validate-composition.js.map +1 -1
  487. package/dist/functions/helpers/write-lambda-error.d.ts +2 -0
  488. package/dist/functions/helpers/write-lambda-error.d.ts.map +1 -1
  489. package/dist/functions/helpers/write-lambda-error.js +0 -0
  490. package/dist/functions/helpers/write-lambda-error.js.map +1 -1
  491. package/dist/functions/helpers/write-post-render-data.d.ts +1 -1
  492. package/dist/functions/helpers/write-post-render-data.d.ts.map +1 -1
  493. package/dist/functions/helpers/write-post-render-data.js +0 -0
  494. package/dist/functions/helpers/write-post-render-data.js.map +0 -0
  495. package/dist/functions/index.d.ts +1 -0
  496. package/dist/functions/index.d.ts.map +1 -1
  497. package/dist/functions/index.js +14 -10
  498. package/dist/functions/index.js.map +1 -1
  499. package/dist/functions/info.d.ts +0 -0
  500. package/dist/functions/info.d.ts.map +1 -1
  501. package/dist/functions/info.js +2 -2
  502. package/dist/functions/info.js.map +1 -1
  503. package/dist/functions/launch.d.ts +0 -0
  504. package/dist/functions/launch.d.ts.map +1 -1
  505. package/dist/functions/launch.js +57 -34
  506. package/dist/functions/launch.js.map +1 -1
  507. package/dist/functions/progress.d.ts +1 -0
  508. package/dist/functions/progress.d.ts.map +1 -1
  509. package/dist/functions/progress.js +2 -1
  510. package/dist/functions/progress.js.map +1 -1
  511. package/dist/functions/renderer.d.ts +0 -0
  512. package/dist/functions/renderer.d.ts.map +1 -1
  513. package/dist/functions/renderer.js +32 -70
  514. package/dist/functions/renderer.js.map +1 -1
  515. package/dist/functions/start.d.ts +0 -0
  516. package/dist/functions/start.d.ts.map +1 -1
  517. package/dist/functions/start.js +9 -11
  518. package/dist/functions/start.js.map +1 -1
  519. package/dist/functions/still.d.ts +0 -0
  520. package/dist/functions/still.d.ts.map +1 -1
  521. package/dist/functions/still.js +26 -18
  522. package/dist/functions/still.js.map +1 -1
  523. package/dist/index.d.ts +21 -17
  524. package/dist/index.d.ts.map +1 -1
  525. package/dist/index.js +15 -7
  526. package/dist/index.js.map +1 -1
  527. package/dist/internals.d.ts +0 -0
  528. package/dist/internals.d.ts.map +0 -0
  529. package/dist/internals.js +0 -0
  530. package/dist/internals.js.map +0 -0
  531. package/dist/pricing/aws-regions.d.ts +1 -1
  532. package/dist/pricing/aws-regions.d.ts.map +1 -1
  533. package/dist/pricing/aws-regions.js +3 -14
  534. package/dist/pricing/aws-regions.js.map +1 -1
  535. package/dist/pricing/price-per-1-s.d.ts +16 -0
  536. package/dist/pricing/price-per-1-s.d.ts.map +1 -1
  537. package/dist/pricing/price-per-1-s.js +149 -187
  538. package/dist/pricing/price-per-1-s.js.map +1 -1
  539. package/dist/regions.d.ts +0 -0
  540. package/dist/regions.d.ts.map +0 -0
  541. package/dist/regions.js +0 -0
  542. package/dist/regions.js.map +0 -0
  543. package/dist/shared/await.d.ts +0 -0
  544. package/dist/shared/await.d.ts.map +0 -0
  545. package/dist/shared/await.js +0 -0
  546. package/dist/shared/await.js.map +0 -0
  547. package/dist/shared/aws-clients.d.ts +10 -0
  548. package/dist/shared/aws-clients.d.ts.map +1 -1
  549. package/dist/shared/aws-clients.js +71 -24
  550. package/dist/shared/aws-clients.js.map +1 -1
  551. package/dist/shared/bundle-site.d.ts +0 -0
  552. package/dist/shared/bundle-site.d.ts.map +0 -0
  553. package/dist/shared/bundle-site.js +0 -0
  554. package/dist/shared/bundle-site.js.map +0 -0
  555. package/dist/shared/call-lambda.d.ts +0 -0
  556. package/dist/shared/call-lambda.d.ts.map +0 -0
  557. package/dist/shared/call-lambda.js +0 -0
  558. package/dist/shared/call-lambda.js.map +0 -0
  559. package/dist/shared/check-credentials.d.ts +0 -0
  560. package/dist/shared/check-credentials.d.ts.map +1 -1
  561. package/dist/shared/check-credentials.js +21 -6
  562. package/dist/shared/check-credentials.js.map +1 -1
  563. package/dist/shared/chunk.d.ts +0 -0
  564. package/dist/shared/chunk.d.ts.map +0 -0
  565. package/dist/shared/chunk.js +0 -0
  566. package/dist/shared/chunk.js.map +0 -0
  567. package/dist/shared/constants.d.ts +52 -26
  568. package/dist/shared/constants.d.ts.map +1 -1
  569. package/dist/shared/constants.js +25 -13
  570. package/dist/shared/constants.js.map +1 -1
  571. package/dist/shared/convert-to-serve-url.d.ts +3 -0
  572. package/dist/shared/convert-to-serve-url.d.ts.map +1 -0
  573. package/dist/shared/convert-to-serve-url.js +19 -0
  574. package/dist/shared/convert-to-serve-url.js.map +1 -0
  575. package/dist/shared/docs-url.d.ts +2 -0
  576. package/dist/shared/docs-url.d.ts.map +1 -0
  577. package/dist/shared/docs-url.js +5 -0
  578. package/dist/shared/docs-url.js.map +1 -0
  579. package/dist/shared/function-zip-path.d.ts +0 -0
  580. package/dist/shared/function-zip-path.d.ts.map +0 -0
  581. package/dist/shared/function-zip-path.js +0 -0
  582. package/dist/shared/function-zip-path.js.map +0 -0
  583. package/dist/shared/get-account-id.d.ts +0 -0
  584. package/dist/shared/get-account-id.d.ts.map +0 -0
  585. package/dist/shared/get-account-id.js +0 -0
  586. package/dist/shared/get-account-id.js.map +0 -0
  587. package/dist/shared/get-function-version.d.ts +0 -0
  588. package/dist/shared/get-function-version.d.ts.map +0 -0
  589. package/dist/shared/get-function-version.js +0 -0
  590. package/dist/shared/get-function-version.js.map +0 -0
  591. package/dist/shared/hosted-layers.d.ts +11 -6
  592. package/dist/shared/hosted-layers.d.ts.map +1 -1
  593. package/dist/shared/hosted-layers.js +286 -295
  594. package/dist/shared/hosted-layers.js.map +1 -1
  595. package/dist/shared/is-in-lambda.d.ts +2 -0
  596. package/dist/shared/is-in-lambda.d.ts.map +1 -0
  597. package/dist/shared/is-in-lambda.js +6 -0
  598. package/dist/shared/is-in-lambda.js.map +1 -0
  599. package/dist/shared/make-s3-url.d.ts +0 -0
  600. package/dist/shared/make-s3-url.d.ts.map +0 -0
  601. package/dist/shared/make-s3-url.js +0 -0
  602. package/dist/shared/make-s3-url.js.map +0 -0
  603. package/dist/shared/parse-lambda-initialized-key.d.ts +0 -0
  604. package/dist/shared/parse-lambda-initialized-key.d.ts.map +0 -0
  605. package/dist/shared/parse-lambda-initialized-key.js +0 -0
  606. package/dist/shared/parse-lambda-initialized-key.js.map +0 -0
  607. package/dist/shared/parse-lambda-timings-key.d.ts +2 -2
  608. package/dist/shared/parse-lambda-timings-key.d.ts.map +1 -1
  609. package/dist/shared/parse-lambda-timings-key.js +1 -2
  610. package/dist/shared/parse-lambda-timings-key.js.map +1 -1
  611. package/dist/shared/random-hash.d.ts +3 -1
  612. package/dist/shared/random-hash.d.ts.map +1 -1
  613. package/dist/shared/random-hash.js +2 -1
  614. package/dist/shared/random-hash.js.map +1 -1
  615. package/dist/shared/return-values.d.ts +0 -2
  616. package/dist/shared/return-values.d.ts.map +1 -1
  617. package/dist/shared/return-values.js +0 -0
  618. package/dist/shared/return-values.js.map +1 -1
  619. package/dist/shared/sleep.d.ts +0 -0
  620. package/dist/shared/sleep.d.ts.map +0 -0
  621. package/dist/shared/sleep.js +0 -0
  622. package/dist/shared/sleep.js.map +0 -0
  623. package/dist/shared/stream-to-string.d.ts +0 -0
  624. package/dist/shared/stream-to-string.d.ts.map +0 -0
  625. package/dist/shared/stream-to-string.js +0 -0
  626. package/dist/shared/stream-to-string.js.map +0 -0
  627. package/dist/shared/validate-architecture.d.ts +5 -0
  628. package/dist/shared/validate-architecture.d.ts.map +1 -0
  629. package/dist/shared/validate-architecture.js +15 -0
  630. package/dist/shared/validate-architecture.js.map +1 -0
  631. package/dist/shared/validate-aws-region.d.ts +0 -0
  632. package/dist/shared/validate-aws-region.d.ts.map +0 -0
  633. package/dist/shared/validate-aws-region.js +0 -0
  634. package/dist/shared/validate-aws-region.js.map +0 -0
  635. package/dist/shared/validate-bucketname.d.ts +4 -0
  636. package/dist/shared/validate-bucketname.d.ts.map +1 -0
  637. package/dist/shared/validate-bucketname.js +18 -0
  638. package/dist/shared/validate-bucketname.js.map +1 -0
  639. package/dist/shared/validate-disk-size-in-mb.d.ts +2 -0
  640. package/dist/shared/validate-disk-size-in-mb.d.ts.map +1 -0
  641. package/dist/shared/validate-disk-size-in-mb.js +24 -0
  642. package/dist/shared/validate-disk-size-in-mb.js.map +1 -0
  643. package/dist/shared/validate-frames-per-lambda.d.ts +2 -0
  644. package/dist/shared/validate-frames-per-lambda.d.ts.map +1 -0
  645. package/dist/shared/validate-frames-per-lambda.js +29 -0
  646. package/dist/shared/validate-frames-per-lambda.js.map +1 -0
  647. package/dist/shared/validate-memory-size.d.ts +0 -0
  648. package/dist/shared/validate-memory-size.d.ts.map +0 -0
  649. package/dist/shared/validate-memory-size.js +0 -0
  650. package/dist/shared/validate-memory-size.js.map +0 -0
  651. package/dist/shared/validate-outname.d.ts +3 -0
  652. package/dist/shared/validate-outname.d.ts.map +1 -0
  653. package/dist/shared/validate-outname.js +27 -0
  654. package/dist/shared/validate-outname.js.map +1 -0
  655. package/dist/shared/validate-presign-expiration.d.ts +4 -0
  656. package/dist/shared/validate-presign-expiration.d.ts.map +1 -0
  657. package/dist/shared/validate-presign-expiration.js +30 -0
  658. package/dist/shared/validate-presign-expiration.js.map +1 -0
  659. package/dist/shared/validate-privacy.d.ts +0 -0
  660. package/dist/shared/validate-privacy.d.ts.map +0 -0
  661. package/dist/shared/validate-privacy.js +0 -0
  662. package/dist/shared/validate-privacy.js.map +0 -0
  663. package/dist/shared/validate-retention-period.d.ts +2 -0
  664. package/dist/shared/validate-retention-period.d.ts.map +1 -0
  665. package/dist/shared/validate-retention-period.js +30 -0
  666. package/dist/shared/validate-retention-period.js.map +1 -0
  667. package/dist/shared/validate-retries.d.ts +2 -0
  668. package/dist/shared/validate-retries.d.ts.map +1 -0
  669. package/dist/shared/validate-retries.js +22 -0
  670. package/dist/shared/validate-retries.js.map +1 -0
  671. package/dist/shared/validate-serveurl.d.ts +2 -0
  672. package/dist/shared/validate-serveurl.d.ts.map +1 -0
  673. package/dist/shared/validate-serveurl.js +10 -0
  674. package/dist/shared/validate-serveurl.js.map +1 -0
  675. package/dist/shared/validate-site-name.d.ts +2 -0
  676. package/dist/shared/validate-site-name.d.ts.map +1 -0
  677. package/dist/shared/validate-site-name.js +18 -0
  678. package/dist/shared/validate-site-name.js.map +1 -0
  679. package/dist/shared/validate-timeout.d.ts +0 -0
  680. package/dist/shared/validate-timeout.d.ts.map +0 -0
  681. package/dist/shared/validate-timeout.js +0 -0
  682. package/dist/shared/validate-timeout.js.map +0 -0
  683. package/package.json +24 -19
  684. package/remotion-lambda-cli.js +1 -1
  685. package/remotionlambda.zip +0 -0
  686. package/dist/api/download-video.d.ts +0 -14
  687. package/dist/api/download-video.d.ts.map +0 -1
  688. package/dist/api/download-video.js +0 -62
  689. package/dist/api/download-video.js.map +0 -1
  690. package/dist/api/iam-validation/required-permissions.d.ts +0 -6
  691. package/dist/api/iam-validation/required-permissions.d.ts.map +0 -1
  692. package/dist/api/iam-validation/required-permissions.js.map +0 -1
  693. package/dist/api/render-video-on-lambda.d.ts.map +0 -1
  694. package/dist/api/render-video-on-lambda.js.map +0 -1
  695. package/dist/api/validate-frames-per-lambda.d.ts +0 -2
  696. package/dist/api/validate-frames-per-lambda.d.ts.map +0 -1
  697. package/dist/api/validate-frames-per-lambda.js +0 -26
  698. package/dist/api/validate-frames-per-lambda.js.map +0 -1
  699. package/dist/cleanup/cleanup-lambdas.d.ts +0 -7
  700. package/dist/cleanup/cleanup-lambdas.d.ts.map +0 -1
  701. package/dist/cleanup/cleanup-lambdas.js +0 -22
  702. package/dist/cleanup/cleanup-lambdas.js.map +0 -1
  703. package/dist/cleanup/s3-buckets.d.ts +0 -16
  704. package/dist/cleanup/s3-buckets.d.ts.map +0 -1
  705. package/dist/cleanup/s3-buckets.js +0 -59
  706. package/dist/cleanup/s3-buckets.js.map +0 -1
  707. package/dist/cli/cleanup.d.ts +0 -2
  708. package/dist/cli/cleanup.d.ts.map +0 -1
  709. package/dist/cli/cleanup.js +0 -3
  710. package/dist/cli/cleanup.js.map +0 -1
  711. package/dist/functions/helpers/is-fatal-error.d.ts +0 -3
  712. package/dist/functions/helpers/is-fatal-error.d.ts.map +0 -1
  713. package/dist/functions/helpers/is-fatal-error.js +0 -8
  714. package/dist/functions/helpers/is-fatal-error.js.map +0 -1
  715. package/dist/functions/helpers/upload-browser-logs.d.ts +0 -11
  716. package/dist/functions/helpers/upload-browser-logs.d.ts.map +0 -1
  717. package/dist/functions/helpers/upload-browser-logs.js +0 -18
  718. package/dist/functions/helpers/upload-browser-logs.js.map +0 -1
  719. package/dist/functions/helpers/upload-logs.d.ts +0 -1
  720. package/dist/functions/helpers/upload-logs.d.ts.map +0 -1
  721. package/dist/functions/helpers/upload-logs.js +0 -2
  722. package/dist/functions/helpers/upload-logs.js.map +0 -1
  723. package/dist/pricing/calculate-price.d.ts +0 -15
  724. package/dist/pricing/calculate-price.d.ts.map +0 -1
  725. package/dist/pricing/calculate-price.js +0 -34
  726. package/dist/pricing/calculate-price.js.map +0 -1
  727. package/dist/run.d.ts +0 -2
  728. package/dist/run.d.ts.map +0 -1
  729. package/dist/run.js +0 -104
  730. package/dist/run.js.map +0 -1
  731. package/dist/shared/get-file-extension-from-codec.d.ts +0 -3
  732. package/dist/shared/get-file-extension-from-codec.d.ts.map +0 -1
  733. package/dist/shared/get-file-extension-from-codec.js +0 -33
  734. package/dist/shared/get-file-extension-from-codec.js.map +0 -1
  735. package/dist/shared/normalize-serve-url.d.ts +0 -2
  736. package/dist/shared/normalize-serve-url.d.ts.map +0 -1
  737. package/dist/shared/normalize-serve-url.js +0 -20
  738. package/dist/shared/normalize-serve-url.js.map +0 -1
  739. package/dist/shared/tmpdir.d.ts +0 -3
  740. package/dist/shared/tmpdir.d.ts.map +0 -1
  741. package/dist/shared/tmpdir.js +0 -23
  742. package/dist/shared/tmpdir.js.map +0 -1
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRolePolicy = exports.getUserPolicy = void 0;
4
- const required_permissions_1 = require("./required-permissions");
3
+ exports.getRolePolicy = exports.ROLE_NAME = exports.getUserPolicy = void 0;
5
4
  const role_permissions_1 = require("./role-permissions");
5
+ const user_permissions_1 = require("./user-permissions");
6
6
  const suggestedPolicy = {
7
7
  Version: '2012-10-17',
8
8
  Statement: [
9
- ...required_permissions_1.requiredPermissions.map((per, i) => {
9
+ ...user_permissions_1.requiredPermissions.map((per) => {
10
10
  return {
11
- Sid: String(i),
11
+ Sid: per.id,
12
12
  Effect: 'Allow',
13
13
  Action: per.actions,
14
14
  Resource: per.resource,
@@ -31,13 +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.dev/docs/lambda/getuserpolicy
34
+ * @link https://v3.remotion.dev/docs/lambda/getuserpolicy
35
35
  */
36
36
  const getUserPolicy = () => JSON.stringify(suggestedPolicy, null, 2);
37
37
  exports.getUserPolicy = getUserPolicy;
38
+ exports.ROLE_NAME = 'remotion-lambda-role';
38
39
  /**
39
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.
40
- * @link https://remotion.dev/docs/lambda/getrolepolicy
41
+ * @link https://v3.remotion.dev/docs/lambda/getrolepolicy
41
42
  */
42
43
  const getRolePolicy = () => JSON.stringify(suggestedRolePolicy, null, 2);
43
44
  exports.getRolePolicy = getRolePolicy;
@@ -1 +1 @@
1
- {"version":3,"file":"suggested-policy.js","sourceRoot":"","sources":["../../../src/api/iam-validation/suggested-policy.ts"],"names":[],"mappings":";;;AAAA,iEAA2D;AAC3D,yDAAmD;AAEnD,MAAM,eAAe,GAAG;IACvB,OAAO,EAAE,YAAY;IACrB,SAAS,EAAE;QACV,GAAG,0CAAmB,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;YACrC,OAAO;gBACN,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;gBACd,MAAM,EAAE,OAAO;gBACf,MAAM,EAAE,GAAG,CAAC,OAAO;gBACnB,QAAQ,EAAE,GAAG,CAAC,QAAQ;aACtB,CAAC;QACH,CAAC,CAAC;KACF;CACD,CAAC;AAEF,MAAM,mBAAmB,GAAG;IAC3B,OAAO,EAAE,YAAY;IACrB,SAAS,EAAE;QACV,GAAG,kCAAe,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;YACjC,OAAO;gBACN,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;gBACd,MAAM,EAAE,OAAO;gBACf,MAAM,EAAE,GAAG,CAAC,OAAO;gBACnB,QAAQ,EAAE,GAAG,CAAC,QAAQ;aACtB,CAAC;QACH,CAAC,CAAC;KACF;CACD,CAAC;AAEF;;;GAGG;AAEI,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAA/D,QAAA,aAAa,iBAAkD;AAE5E;;;GAGG;AACI,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,mBAAmB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAAnE,QAAA,aAAa,iBAAsD"}
1
+ {"version":3,"file":"suggested-policy.js","sourceRoot":"","sources":["../../../src/api/iam-validation/suggested-policy.ts"],"names":[],"mappings":";;;AAAA,yDAAmD;AACnD,yDAAuD;AAEvD,MAAM,eAAe,GAAG;IACvB,OAAO,EAAE,YAAY;IACrB,SAAS,EAAE;QACV,GAAG,sCAAmB,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;YAClC,OAAO;gBACN,GAAG,EAAE,GAAG,CAAC,EAAE;gBACX,MAAM,EAAE,OAAO;gBACf,MAAM,EAAE,GAAG,CAAC,OAAO;gBACnB,QAAQ,EAAE,GAAG,CAAC,QAAQ;aACtB,CAAC;QACH,CAAC,CAAC;KACF;CACD,CAAC;AAEF,MAAM,mBAAmB,GAAG;IAC3B,OAAO,EAAE,YAAY;IACrB,SAAS,EAAE;QACV,GAAG,kCAAe,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;YACjC,OAAO;gBACN,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;gBACd,MAAM,EAAE,OAAO;gBACf,MAAM,EAAE,GAAG,CAAC,OAAO;gBACnB,QAAQ,EAAE,GAAG,CAAC,QAAQ;aACtB,CAAC;QACH,CAAC,CAAC;KACF;CACD,CAAC;AAEF;;;GAGG;AAEI,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAA/D,QAAA,aAAa,iBAAkD;AAE/D,QAAA,SAAS,GAAG,sBAAsB,CAAC;AAEhD;;;GAGG;AACI,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,mBAAmB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAAnE,QAAA,aAAa,iBAAsD"}
@@ -0,0 +1,7 @@
1
+ import { iam, lambda, logs, s3, servicequotas } from 'aws-policies';
2
+ export declare const requiredPermissions: {
3
+ actions: (s3 | iam | lambda | logs | servicequotas)[];
4
+ resource: string[];
5
+ id: string;
6
+ }[];
7
+ //# sourceMappingURL=user-permissions.d.ts.map
@@ -0,0 +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,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"}
@@ -3,46 +3,64 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.requiredPermissions = void 0;
4
4
  const aws_policies_1 = require("aws-policies");
5
5
  const constants_1 = require("../../shared/constants");
6
- // TODO: Update docs before release
6
+ const hosted_layers_1 = require("../../shared/hosted-layers");
7
7
  exports.requiredPermissions = [
8
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
+ },
18
+ {
19
+ id: 'Identity',
9
20
  actions: [aws_policies_1.iam.GetUser],
10
21
  // eslint-disable-next-line no-template-curly-in-string
11
22
  resource: ['arn:aws:iam::*:user/${aws:username}'],
12
23
  },
13
24
  {
25
+ id: 'PermissionValidation',
14
26
  actions: [aws_policies_1.iam.SimulatePrincipalPolicy],
15
27
  resource: ['*'],
16
28
  },
17
29
  {
18
- // TODO: arn:aws:iam::678892195805:role/lambda-admin, can it be locked down more?
30
+ id: 'LambdaInvokation',
19
31
  actions: [aws_policies_1.iam.PassRole],
20
- resource: ['*'],
32
+ resource: ['arn:aws:iam::*:role/remotion-lambda-role'],
21
33
  },
22
34
  {
35
+ id: 'Storage',
23
36
  actions: [
24
37
  aws_policies_1.s3.GetObject,
25
38
  aws_policies_1.s3.DeleteObject,
26
- aws_policies_1.s3.DeleteBucket,
27
- aws_policies_1.s3.PutBucketWebsite,
28
- aws_policies_1.s3.DeleteBucketWebsite,
29
39
  aws_policies_1.s3.PutObjectAcl,
30
40
  aws_policies_1.s3.PutObject,
41
+ aws_policies_1.s3.CreateBucket,
42
+ aws_policies_1.s3.ListBucket,
31
43
  aws_policies_1.s3.GetBucketLocation,
44
+ aws_policies_1.s3.PutBucketAcl,
45
+ aws_policies_1.s3.DeleteBucket,
46
+ aws_policies_1.s3.PutBucketWebsite,
47
+ aws_policies_1.s3.DeleteBucketWebsite,
32
48
  ],
33
49
  resource: [`arn:aws:s3:::${constants_1.REMOTION_BUCKET_PREFIX}*`],
34
50
  },
35
51
  {
36
- actions: [aws_policies_1.s3.CreateBucket, aws_policies_1.s3.ListBucket, aws_policies_1.s3.PutBucketAcl],
37
- resource: [`arn:aws:s3:::*`],
52
+ id: 'BucketListing',
53
+ actions: [aws_policies_1.s3.ListAllMyBuckets],
54
+ resource: ['*'],
38
55
  },
39
56
  {
40
- actions: [aws_policies_1.s3.ListAllMyBuckets],
57
+ id: 'FunctionListing',
58
+ actions: [aws_policies_1.lambda.ListFunctions, aws_policies_1.lambda.GetFunction],
41
59
  resource: ['*'],
42
60
  },
43
61
  {
62
+ id: 'FunctionManagement',
44
63
  actions: [
45
- aws_policies_1.lambda.GetFunction,
46
64
  aws_policies_1.lambda.InvokeAsync,
47
65
  aws_policies_1.lambda.InvokeFunction,
48
66
  aws_policies_1.lambda.CreateFunction,
@@ -52,17 +70,16 @@ exports.requiredPermissions = [
52
70
  resource: [`arn:aws:lambda:*:*:function:${constants_1.RENDER_FN_PREFIX}*`],
53
71
  },
54
72
  {
55
- actions: [aws_policies_1.lambda.GetLayerVersion],
56
- // TODO: Tighten up
57
- resource: [`*`],
58
- },
59
- {
60
- actions: [aws_policies_1.lambda.ListFunctions],
61
- resource: ['*'],
73
+ id: 'LogsRetention',
74
+ actions: [aws_policies_1.logs.CreateLogGroup, aws_policies_1.logs.PutRetentionPolicy],
75
+ resource: [
76
+ `arn:aws:logs:*:*:log-group:${constants_1.LOG_GROUP_PREFIX}${constants_1.RENDER_FN_PREFIX}*`,
77
+ ],
62
78
  },
63
79
  {
64
- actions: [aws_policies_1.logs.CreateLogGroup, aws_policies_1.logs.PutRetentionPolicy],
65
- resource: ['*'],
80
+ id: 'FetchBinaries',
81
+ actions: [aws_policies_1.lambda.GetLayerVersion],
82
+ resource: [hosted_layers_1.REMOTION_HOSTED_LAYER_ARN],
66
83
  },
67
84
  ];
68
- //# sourceMappingURL=required-permissions.js.map
85
+ //# sourceMappingURL=user-permissions.js.map
@@ -0,0 +1 @@
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"}
@@ -1,4 +1,4 @@
1
- import { AwsRegion } from '..';
1
+ import { AwsRegion } from '../pricing/aws-regions';
2
2
  import { LambdaVersions } from '../shared/constants';
3
3
  import { FunctionInfo } from './get-function-info';
4
4
  export declare let mockFunctionsStore: (FunctionInfo & {
@@ -1 +1 @@
1
- {"version":3,"file":"mock-functions.d.ts","sourceRoot":"","sources":["../../src/api/mock-functions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AAEjD,eAAO,IAAI,kBAAkB,EAAE,CAAC,YAAY,GAAG;IAC9C,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,cAAc,CAAC;CACxB,CAAC,EAAO,CAAC;AAEV,eAAO,MAAM,WAAW,OAAQ,YAAY,UAAU,SAAS,SAM9D,CAAC;AAEF,eAAO,MAAM,kBAAkB,SAAU,MAAM,UAAU,MAAM,SAI9D,CAAC;AAEF,eAAO,MAAM,YAAY,SAAU,MAAM,UAAU,MAAM;YAlBhD,SAAS;aACR,cAAc;cAqBvB,CAAC;AAEF,eAAO,MAAM,mBAAmB,WACvB,MAAM,WACL,cAAc,GAAG,IAAI;YA1BtB,SAAS;aACR,cAAc;IA8BvB,CAAC;AAEF,eAAO,MAAM,YAAY,YAExB,CAAC;AAEF,eAAO,MAAM,0BAA0B,iBAAkB,MAAM,SAM9D,CAAC"}
1
+ {"version":3,"file":"mock-functions.d.ts","sourceRoot":"","sources":["../../src/api/mock-functions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AAEjD,eAAO,IAAI,kBAAkB,EAAE,CAAC,YAAY,GAAG;IAC9C,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,cAAc,CAAC;CACxB,CAAC,EAAO,CAAC;AAEV,eAAO,MAAM,WAAW,OAAQ,YAAY,UAAU,SAAS,SAM9D,CAAC;AAEF,eAAO,MAAM,kBAAkB,SAAU,MAAM,UAAU,MAAM,SAI9D,CAAC;AAEF,eAAO,MAAM,YAAY,SAAU,MAAM,UAAU,MAAM;YAlBhD,SAAS;aACR,cAAc;cAqBvB,CAAC;AAEF,eAAO,MAAM,mBAAmB,WACvB,MAAM,WACL,cAAc,GAAG,IAAI;YA1BtB,SAAS;aACR,cAAc;IA8BvB,CAAC;AAEF,eAAO,MAAM,YAAY,YAExB,CAAC;AAEF,eAAO,MAAM,0BAA0B,iBAAkB,MAAM,SAM9D,CAAC"}
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://v3.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://v3.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 { ImageFormat, PixelFormat, ProResProfile } from 'remotion';
1
+ import type { ChromiumOptions } from '@remotion/renderer';
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.dev/docs/lambda/rendervideoonlambda
34
+ * @link https://v3.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,30 +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
- * @param params.saveBrowserLogs Whether Remotion should dump browser logs to an S3 bucket. Default false.
21
- * @returns `Promise<{renderId: string; bucketName: string}>`
47
+ * @param params.logLevel Level of logging that Lambda function should perform. Default "info".
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, saveBrowserLogs, }: {
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
- saveBrowserLogs?: boolean | undefined;
41
- }) => Promise<{
42
- renderId: string;
43
- bucketName: string;
44
- }>;
45
- //# 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;AAK5D,oBAAY,wBAAwB,GAAG;IACtC,MAAM,EAAE,SAAS,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAC1C,WAAW,EAAE,WAAW,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,yBAAyB,GAAG;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AAEH,eAAO,MAAM,mBAAmB,iQAsB7B,wBAAwB,KAAG,QAAQ,yBAAyB,CAmC9D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,iQAxC7B,wBAAwB,KAAG,QAAQ,yBAAyB,CAwCT,CAAC"}
@@ -1,12 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.renderVideoOnLambda = void 0;
3
+ exports.renderVideoOnLambda = exports.renderMediaOnLambda = void 0;
4
+ const remotion_1 = require("remotion");
4
5
  const call_lambda_1 = require("../shared/call-lambda");
5
6
  const constants_1 = require("../shared/constants");
6
- const validate_frames_per_lambda_1 = require("./validate-frames-per-lambda");
7
+ const convert_to_serve_url_1 = require("../shared/convert-to-serve-url");
8
+ const validate_frames_per_lambda_1 = require("../shared/validate-frames-per-lambda");
9
+ const validate_serveurl_1 = require("../shared/validate-serveurl");
7
10
  /**
8
11
  * @description Triggers a render on a lambda given a composition and a lambda function.
9
- * @link https://remotion.dev/docs/lambda/rendervideoonlambda
12
+ * @link https://v3.remotion.dev/docs/lambda/rendermediaonlambda
10
13
  * @param params.functionName The name of the Lambda function that should be used
11
14
  * @param params.serveUrl The URL of the deployed project
12
15
  * @param params.composition The ID of the composition which should be rendered.
@@ -19,19 +22,20 @@ const validate_frames_per_lambda_1 = require("./validate-frames-per-lambda");
19
22
  * @param params.quality JPEG quality if JPEG was selected as the image format.
20
23
  * @param params.region The AWS region in which the video should be rendered.
21
24
  * @param params.maxRetries How often rendering a chunk may fail before the video render gets aborted.
22
- * @param params.enableChunkOptimization Whether Remotion should restructure and optimize chunks for subsequent renders. Default true.
23
- * @param params.saveBrowserLogs Whether Remotion should dump browser logs to an S3 bucket. Default false.
24
- * @returns `Promise<{renderId: string; bucketName: string}>`
25
+ * @param params.logLevel Level of logging that Lambda function should perform. Default "info".
26
+ * @returns {Promise<RenderMediaOnLambdaOutput>} See documentation for detailed structure
25
27
  */
26
- const renderVideoOnLambda = async ({ functionName, serveUrl, inputProps, codec, imageFormat, crf, envVariables, pixelFormat, proResProfile, quality, region, maxRetries, composition, framesPerLambda, privacy, enableChunkOptimization, saveBrowserLogs, }) => {
27
- (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);
31
+ const realServeUrl = await (0, convert_to_serve_url_1.convertToServeUrl)(serveUrl, region);
28
32
  const res = await (0, call_lambda_1.callLambda)({
29
33
  functionName,
30
34
  type: constants_1.LambdaRoutines.start,
31
35
  payload: {
32
- framesPerLambda: framesPerLambda !== null && framesPerLambda !== void 0 ? framesPerLambda : constants_1.DEFAULT_FRAMES_PER_LAMBDA,
36
+ framesPerLambda: framesPerLambda !== null && framesPerLambda !== void 0 ? framesPerLambda : null,
33
37
  composition,
34
- serveUrl,
38
+ serveUrl: realServeUrl,
35
39
  inputProps,
36
40
  codec,
37
41
  imageFormat,
@@ -42,8 +46,12 @@ const renderVideoOnLambda = async ({ functionName, serveUrl, inputProps, codec,
42
46
  quality,
43
47
  maxRetries,
44
48
  privacy,
45
- enableChunkOptimization,
46
- saveBrowserLogs,
49
+ logLevel: logLevel !== null && logLevel !== void 0 ? logLevel : remotion_1.Internals.Logging.DEFAULT_LOG_LEVEL,
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,
47
55
  },
48
56
  region,
49
57
  });
@@ -52,5 +60,9 @@ const renderVideoOnLambda = async ({ functionName, serveUrl, inputProps, codec,
52
60
  bucketName: res.bucketName,
53
61
  };
54
62
  };
55
- exports.renderVideoOnLambda = renderVideoOnLambda;
56
- //# 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;YACzD,UAAU,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,IAAI;YAC9B,OAAO,EAAE,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,IAAI;YACxB,qBAAqB,EACpB,qBAAqB,aAArB,qBAAqB,cAArB,qBAAqB,GAAI,oBAAS,CAAC,yBAAyB;YAC7D,eAAe,EAAE,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,EAAE;YACtC,KAAK,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,CAAC;SACjB;QACD,MAAM;KACN,CAAC,CAAC;IACH,OAAO;QACN,QAAQ,EAAE,GAAG,CAAC,QAAQ;QACtB,UAAU,EAAE,GAAG,CAAC,UAAU;KAC1B,CAAC;AACH,CAAC,CAAC;AAzDW,QAAA,mBAAmB,uBAyD9B;AAEF;;GAEG;AACU,QAAA,mBAAmB,GAAG,2BAAmB,CAAC"}
@@ -1,8 +1,35 @@
1
- import { StillImageFormat } from 'remotion';
1
+ import { ChromiumOptions } from '@remotion/renderer';
2
+ import { LogLevel, StillImageFormat } from 'remotion';
2
3
  import { AwsRegion } from '../pricing/aws-regions';
4
+ import { CostsInfo } from '../shared/constants';
5
+ export declare type RenderStillOnLambdaInput = {
6
+ region: AwsRegion;
7
+ functionName: string;
8
+ serveUrl: string;
9
+ composition: string;
10
+ inputProps: unknown;
11
+ imageFormat: StillImageFormat;
12
+ privacy: 'private' | 'public';
13
+ maxRetries?: number;
14
+ envVariables?: Record<string, string>;
15
+ quality?: number;
16
+ frame?: number;
17
+ logLevel?: LogLevel;
18
+ outName?: string;
19
+ timeoutInMilliseconds?: number;
20
+ chromiumOptions?: ChromiumOptions;
21
+ scale?: number;
22
+ };
23
+ export declare type RenderStillOnLambdaOutput = {
24
+ estimatedPrice: CostsInfo;
25
+ url: string;
26
+ sizeInBytes: number;
27
+ bucketName: string;
28
+ renderId: string;
29
+ };
3
30
  /**
4
31
  * @description Renders a still frame on Lambda
5
- * @link https://remotion.dev/docs/lambda/renderstillonlambda
32
+ * @link https://v3.remotion.dev/docs/lambda/renderstillonlambda
6
33
  * @param params.functionName The name of the Lambda function that should be used
7
34
  * @param params.serveUrl The URL of the deployed project
8
35
  * @param params.composition The ID of the composition which should be rendered.
@@ -14,26 +41,7 @@ import { AwsRegion } from '../pricing/aws-regions';
14
41
  * @param params.maxRetries How often rendering a chunk may fail before the video render gets aborted.
15
42
  * @param params.frame Which frame should be used for the still image. Default 0.
16
43
  * @param params.privacy Whether the item in the S3 bucket should be public. Possible values: `"private"` and `"public"`
17
- * @returns `Promise<{estimatedPrice: CostsInfo; url: string; size: number}>`
44
+ * @returns {Promise<RenderStillOnLambdaOutput>} See documentation for exact response structure.
18
45
  */
19
- export declare const renderStillOnLambda: ({ functionName, serveUrl, inputProps, imageFormat, envVariables, quality, region, maxRetries, composition, privacy, frame, saveBrowserLogs, }: {
20
- region: AwsRegion;
21
- functionName: string;
22
- serveUrl: string;
23
- composition: string;
24
- inputProps: unknown;
25
- imageFormat: StillImageFormat;
26
- privacy: 'private' | 'public';
27
- maxRetries?: number | undefined;
28
- envVariables?: Record<string, string> | undefined;
29
- quality?: number | undefined;
30
- frame?: number | undefined;
31
- saveBrowserLogs?: boolean | undefined;
32
- }) => Promise<{
33
- estimatedPrice: import("../shared/constants").CostsInfo;
34
- url: string;
35
- size: number;
36
- bucketName: string;
37
- renderId: string;
38
- }>;
46
+ export declare const renderStillOnLambda: ({ functionName, serveUrl, inputProps, imageFormat, envVariables, quality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, }: RenderStillOnLambdaInput) => Promise<RenderStillOnLambdaOutput>;
39
47
  //# sourceMappingURL=render-still-on-lambda.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-still-on-lambda.d.ts","sourceRoot":"","sources":["../../src/api/render-still-on-lambda.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAGjD;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,mBAAmB;YAcvB,SAAS;kBACH,MAAM;cACV,MAAM;iBACH,MAAM;gBACP,OAAO;iBACN,gBAAgB;aACpB,SAAS,GAAG,QAAQ;;;;;;;;;;;;EAgC7B,CAAC"}
1
+ {"version":3,"file":"render-still-on-lambda.d.ts","sourceRoot":"","sources":["../../src/api/render-still-on-lambda.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAY,QAAQ,EAAE,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EACN,SAAS,EAGT,MAAM,qBAAqB,CAAC;AAG7B,oBAAY,wBAAwB,GAAG;IACtC,MAAM,EAAE,SAAS,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,OAAO,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,yBAAyB,GAAG;IACvC,cAAc,EAAE,SAAS,CAAC;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,mBAAmB,mMAiB7B,wBAAwB,KAAG,QAAQ,yBAAyB,CAgC9D,CAAC"}
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.renderStillOnLambda = void 0;
4
+ const remotion_1 = require("remotion");
4
5
  const call_lambda_1 = require("../shared/call-lambda");
5
6
  const constants_1 = require("../shared/constants");
7
+ const convert_to_serve_url_1 = require("../shared/convert-to-serve-url");
6
8
  /**
7
9
  * @description Renders a still frame on Lambda
8
- * @link https://remotion.dev/docs/lambda/renderstillonlambda
10
+ * @link https://v3.remotion.dev/docs/lambda/renderstillonlambda
9
11
  * @param params.functionName The name of the Lambda function that should be used
10
12
  * @param params.serveUrl The URL of the deployed project
11
13
  * @param params.composition The ID of the composition which should be rendered.
@@ -17,31 +19,36 @@ const constants_1 = require("../shared/constants");
17
19
  * @param params.maxRetries How often rendering a chunk may fail before the video render gets aborted.
18
20
  * @param params.frame Which frame should be used for the still image. Default 0.
19
21
  * @param params.privacy Whether the item in the S3 bucket should be public. Possible values: `"private"` and `"public"`
20
- * @returns `Promise<{estimatedPrice: CostsInfo; url: string; size: number}>`
22
+ * @returns {Promise<RenderStillOnLambdaOutput>} See documentation for exact response structure.
21
23
  */
22
- const renderStillOnLambda = async ({ functionName, serveUrl, inputProps, imageFormat, envVariables, quality, region, maxRetries, composition, privacy, frame, saveBrowserLogs, }) => {
24
+ const renderStillOnLambda = async ({ functionName, serveUrl, inputProps, imageFormat, envVariables, quality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, }) => {
25
+ const realServeUrl = await (0, convert_to_serve_url_1.convertToServeUrl)(serveUrl, region);
23
26
  const res = await (0, call_lambda_1.callLambda)({
24
27
  functionName,
25
28
  type: constants_1.LambdaRoutines.still,
26
29
  payload: {
27
30
  composition,
28
- serveUrl,
31
+ serveUrl: realServeUrl,
29
32
  inputProps,
30
33
  imageFormat,
31
34
  envVariables,
32
35
  quality,
33
- maxRetries: maxRetries !== null && maxRetries !== void 0 ? maxRetries : 3,
36
+ maxRetries: maxRetries !== null && maxRetries !== void 0 ? maxRetries : constants_1.DEFAULT_MAX_RETRIES,
34
37
  frame: frame !== null && frame !== void 0 ? frame : 0,
35
38
  privacy,
36
39
  attempt: 1,
37
- saveBrowserLogs,
40
+ logLevel: logLevel !== null && logLevel !== void 0 ? logLevel : remotion_1.Internals.Logging.DEFAULT_LOG_LEVEL,
41
+ outName: outName !== null && outName !== void 0 ? outName : null,
42
+ timeoutInMilliseconds: timeoutInMilliseconds !== null && timeoutInMilliseconds !== void 0 ? timeoutInMilliseconds : remotion_1.Internals.DEFAULT_PUPPETEER_TIMEOUT,
43
+ chromiumOptions: chromiumOptions !== null && chromiumOptions !== void 0 ? chromiumOptions : {},
44
+ scale: scale !== null && scale !== void 0 ? scale : 1,
38
45
  },
39
46
  region,
40
47
  });
41
48
  return {
42
49
  estimatedPrice: res.estimatedPrice,
43
50
  url: res.output,
44
- size: res.size,
51
+ sizeInBytes: res.size,
45
52
  bucketName: res.bucketName,
46
53
  renderId: res.renderId,
47
54
  };
@@ -1 +1 @@
1
- {"version":3,"file":"render-still-on-lambda.js","sourceRoot":"","sources":["../../src/api/render-still-on-lambda.ts"],"names":[],"mappings":";;;AAEA,uDAAiD;AACjD,mDAAmD;AACnD;;;;;;;;;;;;;;;GAeG;AAEI,MAAM,mBAAmB,GAAG,KAAK,EAAE,EACzC,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,WAAW,EACX,YAAY,EACZ,OAAO,EACP,MAAM,EACN,UAAU,EACV,WAAW,EACX,OAAO,EACP,KAAK,EACL,eAAe,GAcf,EAAE,EAAE;IACJ,MAAM,GAAG,GAAG,MAAM,IAAA,wBAAU,EAAC;QAC5B,YAAY;QACZ,IAAI,EAAE,0BAAc,CAAC,KAAK;QAC1B,OAAO,EAAE;YACR,WAAW;YACX,QAAQ;YACR,UAAU;YACV,WAAW;YACX,YAAY;YACZ,OAAO;YACP,UAAU,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,CAAC;YAC3B,KAAK,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,CAAC;YACjB,OAAO;YACP,OAAO,EAAE,CAAC;YACV,eAAe;SACf;QACD,MAAM;KACN,CAAC,CAAC;IACH,OAAO;QACN,cAAc,EAAE,GAAG,CAAC,cAAc;QAClC,GAAG,EAAE,GAAG,CAAC,MAAM;QACf,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,UAAU,EAAE,GAAG,CAAC,UAAU;QAC1B,QAAQ,EAAE,GAAG,CAAC,QAAQ;KACtB,CAAC;AACH,CAAC,CAAC;AApDW,QAAA,mBAAmB,uBAoD9B"}
1
+ {"version":3,"file":"render-still-on-lambda.js","sourceRoot":"","sources":["../../src/api/render-still-on-lambda.ts"],"names":[],"mappings":";;;AACA,uCAA+D;AAE/D,uDAAiD;AACjD,mDAI6B;AAC7B,yEAAiE;AA6BjE;;;;;;;;;;;;;;;GAeG;AAEI,MAAM,mBAAmB,GAAG,KAAK,EAAE,EACzC,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,WAAW,EACX,YAAY,EACZ,OAAO,EACP,MAAM,EACN,UAAU,EACV,WAAW,EACX,OAAO,EACP,KAAK,EACL,QAAQ,EACR,OAAO,EACP,qBAAqB,EACrB,eAAe,EACf,KAAK,GACqB,EAAsC,EAAE;IAClE,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,WAAW;YACX,QAAQ,EAAE,YAAY;YACtB,UAAU;YACV,WAAW;YACX,YAAY;YACZ,OAAO;YACP,UAAU,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,+BAAmB;YAC7C,KAAK,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,CAAC;YACjB,OAAO;YACP,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,oBAAS,CAAC,OAAO,CAAC,iBAAiB;YACzD,OAAO,EAAE,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,IAAI;YACxB,qBAAqB,EACpB,qBAAqB,aAArB,qBAAqB,cAArB,qBAAqB,GAAI,oBAAS,CAAC,yBAAyB;YAC7D,eAAe,EAAE,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,EAAE;YACtC,KAAK,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,CAAC;SACjB;QACD,MAAM;KACN,CAAC,CAAC;IACH,OAAO;QACN,cAAc,EAAE,GAAG,CAAC,cAAc;QAClC,GAAG,EAAE,GAAG,CAAC,MAAM;QACf,WAAW,EAAE,GAAG,CAAC,IAAI;QACrB,UAAU,EAAE,GAAG,CAAC,UAAU;QAC1B,QAAQ,EAAE,GAAG,CAAC,QAAQ;KACtB,CAAC;AACH,CAAC,CAAC;AAjDW,QAAA,mBAAmB,uBAiD9B"}
@@ -1,5 +1,5 @@
1
- import { AwsRegion } from '..';
2
1
  import { Privacy } from '../defaults';
2
+ import { AwsRegion } from '../pricing/aws-regions';
3
3
  export declare type UploadDirProgress = {
4
4
  totalFiles: number;
5
5
  filesUploaded: number;
@@ -1 +1 @@
1
- {"version":3,"file":"upload-dir.d.ts","sourceRoot":"","sources":["../../src/api/upload-dir.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,SAAS,EAAC,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAQpC,oBAAY,iBAAiB,GAAG;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,oBAAY,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,MAAM,KAAG,QAAQ,EAInD,CAAC;AAEF,eAAO,MAAM,SAAS;YAQb,MAAM;YACN,SAAS;SACZ,MAAM;YACH,MAAM;2BACS,iBAAiB,KAAK,IAAI;aACxC,OAAO;mBA2EhB,CAAC"}
1
+ {"version":3,"file":"upload-dir.d.ts","sourceRoot":"","sources":["../../src/api/upload-dir.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AACpC,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAQjD,oBAAY,iBAAiB,GAAG;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,oBAAY,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,MAAM,KAAG,QAAQ,EAInD,CAAC;AAEF,eAAO,MAAM,SAAS;YAQb,MAAM;YACN,SAAS;SACZ,MAAM;YACH,MAAM;2BACS,iBAAiB,KAAK,IAAI;aACxC,OAAO;mBA6EhB,CAAC"}
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.uploadDir = exports.getDirFiles = void 0;
7
7
  const client_s3_1 = require("@aws-sdk/client-s3");
8
8
  const lib_storage_1 = require("@aws-sdk/lib-storage");
9
+ const bundler_1 = require("@remotion/bundler");
9
10
  const fs_1 = require("fs");
10
11
  const path_1 = __importDefault(require("path"));
11
12
  const aws_clients_1 = require("../shared/aws-clients");
@@ -39,6 +40,8 @@ const uploadDir = async ({ bucket, region, dir, onProgress, folder, privacy, })
39
40
  const uploads = files.map(async (filePath) => {
40
41
  const Key = `${folder}/${path_1.default.relative(dir, filePath.name)}`;
41
42
  const Body = (0, fs_1.createReadStream)(filePath.name);
43
+ const ContentType = bundler_1.BundlerInternals.mimeTypes.lookup(Key) || 'application/octet-stream';
44
+ const ACL = privacy === 'private' ? 'private' : 'public-read';
42
45
  if (filePath.size > 5 * 1024 * 1024) {
43
46
  const paralellUploads3 = new lib_storage_1.Upload({
44
47
  client,
@@ -48,7 +51,8 @@ const uploadDir = async ({ bucket, region, dir, onProgress, folder, privacy, })
48
51
  Key,
49
52
  Bucket: bucket,
50
53
  Body,
51
- ACL: privacy === 'private' ? 'private' : 'public-read',
54
+ ACL,
55
+ ContentType,
52
56
  },
53
57
  });
54
58
  paralellUploads3.on('httpUploadProgress', (progress) => {
@@ -61,10 +65,8 @@ const uploadDir = async ({ bucket, region, dir, onProgress, folder, privacy, })
61
65
  Key,
62
66
  Bucket: bucket,
63
67
  Body,
64
- ACL: privacy === 'private' ? 'private' : 'public-read',
65
- ContentType: filePath.name.includes('index.html')
66
- ? 'text/html'
67
- : undefined,
68
+ ACL,
69
+ ContentType,
68
70
  }));
69
71
  progresses[filePath.name] = filePath.size;
70
72
  });