@remotion/lambda 3.0.0-lambda.25 → 3.0.0-lambda.250

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 (502) hide show
  1. package/.prettierrc.js +15 -0
  2. package/dist/admin/bundle-lambda.js +2 -1
  3. package/dist/admin/bundle-lambda.js.map +1 -1
  4. package/dist/admin/make-layer-public.d.ts +1 -1
  5. package/dist/admin/make-layer-public.d.ts.map +1 -1
  6. package/dist/admin/make-layer-public.js +4 -16
  7. package/dist/admin/make-layer-public.js.map +1 -1
  8. package/dist/api/bucket-exists.d.ts +1 -1
  9. package/dist/api/bucket-exists.d.ts.map +1 -1
  10. package/dist/api/create-bucket.d.ts +1 -1
  11. package/dist/api/create-bucket.d.ts.map +1 -1
  12. package/dist/api/create-function.d.ts +5 -3
  13. package/dist/api/create-function.d.ts.map +1 -1
  14. package/dist/api/create-function.js +31 -4
  15. package/dist/api/create-function.js.map +1 -1
  16. package/dist/api/delete-function.d.ts +7 -6
  17. package/dist/api/delete-function.d.ts.map +1 -1
  18. package/dist/api/delete-function.js +2 -2
  19. package/dist/api/delete-function.js.map +1 -1
  20. package/dist/api/delete-site.d.ts +19 -9
  21. package/dist/api/delete-site.d.ts.map +1 -1
  22. package/dist/api/delete-site.js +10 -1
  23. package/dist/api/delete-site.js.map +1 -1
  24. package/dist/api/deploy-function.d.ts +14 -9
  25. package/dist/api/deploy-function.d.ts.map +1 -1
  26. package/dist/api/deploy-function.js +15 -4
  27. package/dist/api/deploy-function.js.map +1 -1
  28. package/dist/api/deploy-site.d.ts +4 -4
  29. package/dist/api/deploy-site.d.ts.map +1 -1
  30. package/dist/api/deploy-site.js +5 -3
  31. package/dist/api/deploy-site.js.map +1 -1
  32. package/dist/api/download-media.d.ts +19 -0
  33. package/dist/api/download-media.d.ts.map +1 -0
  34. package/dist/api/download-media.js +55 -0
  35. package/dist/api/download-media.js.map +1 -0
  36. package/dist/api/download-video.d.ts +10 -4
  37. package/dist/api/download-video.d.ts.map +1 -1
  38. package/dist/api/download-video.js +21 -28
  39. package/dist/api/download-video.js.map +1 -1
  40. package/dist/api/enable-s3-website.d.ts +1 -1
  41. package/dist/api/enable-s3-website.d.ts.map +1 -1
  42. package/dist/api/enable-s3-website.js +0 -1
  43. package/dist/api/enable-s3-website.js.map +1 -1
  44. package/dist/api/estimate-price.d.ts +14 -0
  45. package/dist/api/estimate-price.d.ts.map +1 -0
  46. package/dist/api/estimate-price.js +34 -0
  47. package/dist/api/estimate-price.js.map +1 -0
  48. package/dist/api/get-buckets.d.ts.map +1 -1
  49. package/dist/api/get-buckets.js +1 -7
  50. package/dist/api/get-buckets.js.map +1 -1
  51. package/dist/api/get-function-info.d.ts +3 -4
  52. package/dist/api/get-function-info.d.ts.map +1 -1
  53. package/dist/api/get-function-info.js +1 -1
  54. package/dist/api/get-function-info.js.map +1 -1
  55. package/dist/api/get-functions.d.ts +7 -6
  56. package/dist/api/get-functions.d.ts.map +1 -1
  57. package/dist/api/get-functions.js +2 -2
  58. package/dist/api/get-functions.js.map +1 -1
  59. package/dist/api/get-or-create-bucket.d.ts +5 -6
  60. package/dist/api/get-or-create-bucket.d.ts.map +1 -1
  61. package/dist/api/get-or-create-bucket.js +2 -2
  62. package/dist/api/get-or-create-bucket.js.map +1 -1
  63. package/dist/api/get-regions.d.ts +8 -0
  64. package/dist/api/get-regions.d.ts.map +1 -0
  65. package/dist/api/get-regions.js +14 -0
  66. package/dist/api/get-regions.js.map +1 -0
  67. package/dist/api/get-render-progress.d.ts +12 -10
  68. package/dist/api/get-render-progress.d.ts.map +1 -1
  69. package/dist/api/get-render-progress.js +4 -4
  70. package/dist/api/get-render-progress.js.map +1 -1
  71. package/dist/api/get-sites.d.ts +13 -4
  72. package/dist/api/get-sites.d.ts.map +1 -1
  73. package/dist/api/get-sites.js +15 -4
  74. package/dist/api/get-sites.js.map +1 -1
  75. package/dist/api/iam-validation/role-permissions.d.ts +2 -2
  76. package/dist/api/iam-validation/role-permissions.d.ts.map +1 -1
  77. package/dist/api/iam-validation/role-permissions.js +9 -4
  78. package/dist/api/iam-validation/role-permissions.js.map +1 -1
  79. package/dist/api/iam-validation/simulate-rule.d.ts +1 -0
  80. package/dist/api/iam-validation/simulate-rule.d.ts.map +1 -1
  81. package/dist/api/iam-validation/simulate-rule.js +42 -29
  82. package/dist/api/iam-validation/simulate-rule.js.map +1 -1
  83. package/dist/api/iam-validation/simulate.d.ts +14 -5
  84. package/dist/api/iam-validation/simulate.d.ts.map +1 -1
  85. package/dist/api/iam-validation/simulate.js +11 -4
  86. package/dist/api/iam-validation/simulate.js.map +1 -1
  87. package/dist/api/iam-validation/suggested-policy.d.ts +3 -2
  88. package/dist/api/iam-validation/suggested-policy.d.ts.map +1 -1
  89. package/dist/api/iam-validation/suggested-policy.js +7 -6
  90. package/dist/api/iam-validation/suggested-policy.js.map +1 -1
  91. package/dist/api/iam-validation/user-permissions.d.ts +7 -0
  92. package/dist/api/iam-validation/user-permissions.d.ts.map +1 -0
  93. package/dist/api/iam-validation/{required-permissions.js → user-permissions.js} +28 -16
  94. package/dist/api/iam-validation/user-permissions.js.map +1 -0
  95. package/dist/api/mock-functions.d.ts +1 -1
  96. package/dist/api/mock-functions.d.ts.map +1 -1
  97. package/dist/api/render-media-on-lambda.d.ts +52 -0
  98. package/dist/api/render-media-on-lambda.d.ts.map +1 -0
  99. package/dist/api/render-media-on-lambda.js +64 -0
  100. package/dist/api/render-media-on-lambda.js.map +1 -0
  101. package/dist/api/render-still-on-lambda.d.ts +26 -21
  102. package/dist/api/render-still-on-lambda.d.ts.map +1 -1
  103. package/dist/api/render-still-on-lambda.js +11 -6
  104. package/dist/api/render-still-on-lambda.js.map +1 -1
  105. package/dist/api/render-video-on-lambda.d.ts +32 -3
  106. package/dist/api/render-video-on-lambda.d.ts.map +1 -1
  107. package/dist/api/render-video-on-lambda.js +16 -6
  108. package/dist/api/render-video-on-lambda.js.map +1 -1
  109. package/dist/api/upload-dir.d.ts +1 -1
  110. package/dist/api/upload-dir.d.ts.map +1 -1
  111. package/dist/cli/args.d.ts +6 -1
  112. package/dist/cli/args.d.ts.map +1 -1
  113. package/dist/cli/args.js +4 -1
  114. package/dist/cli/args.js.map +1 -1
  115. package/dist/cli/commands/functions/deploy.d.ts.map +1 -1
  116. package/dist/cli/commands/functions/deploy.js +16 -5
  117. package/dist/cli/commands/functions/deploy.js.map +1 -1
  118. package/dist/cli/commands/functions/index.d.ts.map +1 -1
  119. package/dist/cli/commands/functions/index.js +9 -1
  120. package/dist/cli/commands/functions/index.js.map +1 -1
  121. package/dist/cli/commands/functions/ls.d.ts.map +1 -1
  122. package/dist/cli/commands/functions/ls.js +8 -8
  123. package/dist/cli/commands/functions/ls.js.map +1 -1
  124. package/dist/cli/commands/functions/rm.d.ts.map +1 -1
  125. package/dist/cli/commands/functions/rm.js +9 -4
  126. package/dist/cli/commands/functions/rm.js.map +1 -1
  127. package/dist/cli/commands/functions/rmall.d.ts +3 -0
  128. package/dist/cli/commands/functions/rmall.d.ts.map +1 -0
  129. package/dist/cli/commands/functions/rmall.js +41 -0
  130. package/dist/cli/commands/functions/rmall.js.map +1 -0
  131. package/dist/cli/commands/policies/policies.d.ts.map +1 -1
  132. package/dist/cli/commands/policies/policies.js +2 -1
  133. package/dist/cli/commands/policies/policies.js.map +1 -1
  134. package/dist/cli/commands/regions.d.ts +3 -0
  135. package/dist/cli/commands/regions.d.ts.map +1 -0
  136. package/dist/cli/commands/regions.js +11 -0
  137. package/dist/cli/commands/regions.js.map +1 -0
  138. package/dist/cli/commands/render/progress.d.ts +11 -15
  139. package/dist/cli/commands/render/progress.d.ts.map +1 -1
  140. package/dist/cli/commands/render/progress.js +40 -22
  141. package/dist/cli/commands/render/progress.js.map +1 -1
  142. package/dist/cli/commands/render/render.d.ts.map +1 -1
  143. package/dist/cli/commands/render/render.js +83 -29
  144. package/dist/cli/commands/render/render.js.map +1 -1
  145. package/dist/cli/commands/sites/create.d.ts.map +1 -1
  146. package/dist/cli/commands/sites/create.js +14 -8
  147. package/dist/cli/commands/sites/create.js.map +1 -1
  148. package/dist/cli/commands/sites/index.d.ts.map +1 -1
  149. package/dist/cli/commands/sites/index.js +6 -1
  150. package/dist/cli/commands/sites/index.js.map +1 -1
  151. package/dist/cli/commands/sites/ls.d.ts.map +1 -1
  152. package/dist/cli/commands/sites/ls.js +13 -9
  153. package/dist/cli/commands/sites/ls.js.map +1 -1
  154. package/dist/cli/commands/sites/rm.d.ts +1 -1
  155. package/dist/cli/commands/sites/rm.d.ts.map +1 -1
  156. package/dist/cli/commands/sites/rm.js +43 -19
  157. package/dist/cli/commands/sites/rm.js.map +1 -1
  158. package/dist/cli/commands/sites/rmall.d.ts +3 -0
  159. package/dist/cli/commands/sites/rmall.d.ts.map +1 -0
  160. package/dist/cli/commands/sites/rmall.js +49 -0
  161. package/dist/cli/commands/sites/rmall.js.map +1 -0
  162. package/dist/cli/commands/still.d.ts.map +1 -1
  163. package/dist/cli/commands/still.js +42 -12
  164. package/dist/cli/commands/still.js.map +1 -1
  165. package/dist/cli/get-aws-region.d.ts.map +1 -1
  166. package/dist/cli/get-aws-region.js +2 -2
  167. package/dist/cli/get-aws-region.js.map +1 -1
  168. package/dist/cli/help.d.ts.map +1 -1
  169. package/dist/cli/help.js +12 -4
  170. package/dist/cli/help.js.map +1 -1
  171. package/dist/cli/helpers/confirm.d.ts.map +1 -1
  172. package/dist/cli/helpers/confirm.js +2 -1
  173. package/dist/cli/helpers/confirm.js.map +1 -1
  174. package/dist/cli/helpers/find-function-name.d.ts.map +1 -1
  175. package/dist/cli/helpers/find-function-name.js +6 -4
  176. package/dist/cli/helpers/find-function-name.js.map +1 -1
  177. package/dist/cli/helpers/get-cloudwatch-stream-url.d.ts +9 -0
  178. package/dist/cli/helpers/get-cloudwatch-stream-url.d.ts.map +1 -0
  179. package/dist/cli/helpers/get-cloudwatch-stream-url.js +8 -0
  180. package/dist/cli/helpers/get-cloudwatch-stream-url.js.map +1 -0
  181. package/dist/cli/helpers/quit.d.ts +2 -0
  182. package/dist/cli/helpers/quit.d.ts.map +1 -0
  183. package/dist/cli/helpers/quit.js +8 -0
  184. package/dist/cli/helpers/quit.js.map +1 -0
  185. package/dist/cli/index.d.ts.map +1 -1
  186. package/dist/cli/index.js +32 -15
  187. package/dist/cli/index.js.map +1 -1
  188. package/dist/cli/is-cli.d.ts +3 -0
  189. package/dist/cli/is-cli.d.ts.map +1 -0
  190. package/dist/cli/is-cli.js +11 -0
  191. package/dist/cli/is-cli.js.map +1 -0
  192. package/dist/client.d.ts +4 -3
  193. package/dist/client.d.ts.map +1 -1
  194. package/dist/client.js +8 -5
  195. package/dist/client.js.map +1 -1
  196. package/dist/functions/chunk-optimization/can-use-optimization.d.ts +2 -2
  197. package/dist/functions/chunk-optimization/can-use-optimization.d.ts.map +1 -1
  198. package/dist/functions/chunk-optimization/can-use-optimization.js +6 -3
  199. package/dist/functions/chunk-optimization/can-use-optimization.js.map +1 -1
  200. package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts +2 -2
  201. package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts.map +1 -1
  202. package/dist/functions/chunk-optimization/plan-frame-ranges.js +10 -5
  203. package/dist/functions/chunk-optimization/plan-frame-ranges.js.map +1 -1
  204. package/dist/functions/chunk-optimization/types.d.ts +2 -2
  205. package/dist/functions/chunk-optimization/types.d.ts.map +1 -1
  206. package/dist/functions/helpers/calculate-chunk-times.d.ts.map +1 -1
  207. package/dist/functions/helpers/calculate-chunk-times.js +8 -7
  208. package/dist/functions/helpers/calculate-chunk-times.js.map +1 -1
  209. package/dist/functions/helpers/calculate-price-from-bucket.d.ts +1 -2
  210. package/dist/functions/helpers/calculate-price-from-bucket.d.ts.map +1 -1
  211. package/dist/functions/helpers/calculate-price-from-bucket.js +8 -8
  212. package/dist/functions/helpers/calculate-price-from-bucket.js.map +1 -1
  213. package/dist/functions/helpers/concat-videos.d.ts.map +1 -1
  214. package/dist/functions/helpers/concat-videos.js +7 -5
  215. package/dist/functions/helpers/concat-videos.js.map +1 -1
  216. package/dist/functions/helpers/create-post-render-data.d.ts +1 -1
  217. package/dist/functions/helpers/create-post-render-data.d.ts.map +1 -1
  218. package/dist/functions/helpers/create-post-render-data.js +14 -5
  219. package/dist/functions/helpers/create-post-render-data.js.map +1 -1
  220. package/dist/functions/helpers/delete-chunks.d.ts +1 -1
  221. package/dist/functions/helpers/delete-chunks.d.ts.map +1 -1
  222. package/dist/functions/helpers/delete-chunks.js.map +1 -1
  223. package/dist/functions/helpers/expected-out-name.d.ts.map +1 -1
  224. package/dist/functions/helpers/expected-out-name.js +2 -1
  225. package/dist/functions/helpers/expected-out-name.js.map +1 -1
  226. package/dist/functions/helpers/get-browser-instance.d.ts +2 -4
  227. package/dist/functions/helpers/get-browser-instance.d.ts.map +1 -1
  228. package/dist/functions/helpers/get-browser-instance.js +13 -18
  229. package/dist/functions/helpers/get-browser-instance.js.map +1 -1
  230. package/dist/functions/helpers/get-cleanup-progress.d.ts.map +1 -1
  231. package/dist/functions/helpers/get-cleanup-progress.js +2 -2
  232. package/dist/functions/helpers/get-cleanup-progress.js.map +1 -1
  233. package/dist/functions/helpers/get-current-region.d.ts +1 -1
  234. package/dist/functions/helpers/get-current-region.d.ts.map +1 -1
  235. package/dist/functions/helpers/get-current-region.js +2 -2
  236. package/dist/functions/helpers/get-current-region.js.map +1 -1
  237. package/dist/functions/helpers/get-encoding-metadata.d.ts.map +1 -1
  238. package/dist/functions/helpers/get-encoding-metadata.js +7 -7
  239. package/dist/functions/helpers/get-encoding-metadata.js.map +1 -1
  240. package/dist/functions/helpers/get-files-to-delete.d.ts.map +1 -1
  241. package/dist/functions/helpers/get-files-to-delete.js +4 -10
  242. package/dist/functions/helpers/get-files-to-delete.js.map +1 -1
  243. package/dist/functions/helpers/get-lambdas-invoked-stats.d.ts.map +1 -1
  244. package/dist/functions/helpers/get-lambdas-invoked-stats.js +7 -3
  245. package/dist/functions/helpers/get-lambdas-invoked-stats.js.map +1 -1
  246. package/dist/functions/helpers/get-post-render-data.d.ts +1 -1
  247. package/dist/functions/helpers/get-post-render-data.d.ts.map +1 -1
  248. package/dist/functions/helpers/get-progress.d.ts +3 -2
  249. package/dist/functions/helpers/get-progress.d.ts.map +1 -1
  250. package/dist/functions/helpers/get-progress.js +34 -7
  251. package/dist/functions/helpers/get-progress.js.map +1 -1
  252. package/dist/functions/helpers/get-retry-stats.d.ts +11 -0
  253. package/dist/functions/helpers/get-retry-stats.d.ts.map +1 -0
  254. package/dist/functions/helpers/get-retry-stats.js +21 -0
  255. package/dist/functions/helpers/get-retry-stats.js.map +1 -0
  256. package/dist/functions/helpers/get-time-to-finish.js +1 -1
  257. package/dist/functions/helpers/get-time-to-finish.js.map +1 -1
  258. package/dist/functions/helpers/inspect-errors.d.ts.map +1 -1
  259. package/dist/functions/helpers/inspect-errors.js +6 -0
  260. package/dist/functions/helpers/inspect-errors.js.map +1 -1
  261. package/dist/functions/helpers/is-enosp-err.d.ts +1 -0
  262. package/dist/functions/helpers/is-enosp-err.d.ts.map +1 -1
  263. package/dist/functions/helpers/is-enosp-err.js +5 -1
  264. package/dist/functions/helpers/is-enosp-err.js.map +1 -1
  265. package/dist/functions/helpers/min-max.d.ts +3 -0
  266. package/dist/functions/helpers/min-max.d.ts.map +1 -0
  267. package/dist/functions/helpers/min-max.js +34 -0
  268. package/dist/functions/helpers/min-max.js.map +1 -0
  269. package/dist/functions/helpers/print-cloudwatch-helper.d.ts +3 -0
  270. package/dist/functions/helpers/print-cloudwatch-helper.d.ts.map +1 -0
  271. package/dist/functions/helpers/print-cloudwatch-helper.js +12 -0
  272. package/dist/functions/helpers/print-cloudwatch-helper.js.map +1 -0
  273. package/dist/functions/helpers/read-with-progress.d.ts +15 -0
  274. package/dist/functions/helpers/read-with-progress.d.ts.map +1 -0
  275. package/dist/functions/helpers/read-with-progress.js +27 -0
  276. package/dist/functions/helpers/read-with-progress.js.map +1 -0
  277. package/dist/functions/helpers/validate-composition.d.ts +6 -7
  278. package/dist/functions/helpers/validate-composition.d.ts.map +1 -1
  279. package/dist/functions/helpers/validate-composition.js +2 -10
  280. package/dist/functions/helpers/validate-composition.js.map +1 -1
  281. package/dist/functions/helpers/write-lambda-error.d.ts +3 -0
  282. package/dist/functions/helpers/write-lambda-error.d.ts.map +1 -1
  283. package/dist/functions/helpers/write-lambda-error.js +5 -2
  284. package/dist/functions/helpers/write-lambda-error.js.map +1 -1
  285. package/dist/functions/helpers/write-post-render-data.d.ts +1 -1
  286. package/dist/functions/helpers/write-post-render-data.d.ts.map +1 -1
  287. package/dist/functions/index.d.ts +1 -0
  288. package/dist/functions/index.d.ts.map +1 -1
  289. package/dist/functions/index.js +30 -3
  290. package/dist/functions/index.js.map +1 -1
  291. package/dist/functions/launch.d.ts.map +1 -1
  292. package/dist/functions/launch.js +34 -35
  293. package/dist/functions/launch.js.map +1 -1
  294. package/dist/functions/progress.d.ts +1 -0
  295. package/dist/functions/progress.d.ts.map +1 -1
  296. package/dist/functions/progress.js +1 -0
  297. package/dist/functions/progress.js.map +1 -1
  298. package/dist/functions/renderer.d.ts.map +1 -1
  299. package/dist/functions/renderer.js +44 -82
  300. package/dist/functions/renderer.js.map +1 -1
  301. package/dist/functions/start.d.ts.map +1 -1
  302. package/dist/functions/start.js +4 -0
  303. package/dist/functions/start.js.map +1 -1
  304. package/dist/functions/still.d.ts +2 -1
  305. package/dist/functions/still.d.ts.map +1 -1
  306. package/dist/functions/still.js +35 -46
  307. package/dist/functions/still.js.map +1 -1
  308. package/dist/index.d.ts +18 -16
  309. package/dist/index.d.ts.map +1 -1
  310. package/dist/index.js +11 -7
  311. package/dist/index.js.map +1 -1
  312. package/dist/pricing/aws-regions.d.ts +1 -1
  313. package/dist/pricing/aws-regions.d.ts.map +1 -1
  314. package/dist/pricing/aws-regions.js +3 -14
  315. package/dist/pricing/aws-regions.js.map +1 -1
  316. package/dist/pricing/calculate-price.d.ts +1 -1
  317. package/dist/pricing/calculate-price.js +1 -1
  318. package/dist/pricing/estimate-price.d.ts +15 -0
  319. package/dist/pricing/estimate-price.d.ts.map +1 -0
  320. package/dist/pricing/estimate-price.js +34 -0
  321. package/dist/pricing/estimate-price.js.map +1 -0
  322. package/dist/pricing/price-per-1-s.d.ts +8 -0
  323. package/dist/pricing/price-per-1-s.d.ts.map +1 -1
  324. package/dist/pricing/price-per-1-s.js +72 -190
  325. package/dist/pricing/price-per-1-s.js.map +1 -1
  326. package/dist/shared/aws-clients.d.ts +3 -0
  327. package/dist/shared/aws-clients.d.ts.map +1 -1
  328. package/dist/shared/aws-clients.js +64 -18
  329. package/dist/shared/aws-clients.js.map +1 -1
  330. package/dist/shared/check-credentials.d.ts.map +1 -1
  331. package/dist/shared/check-credentials.js +21 -6
  332. package/dist/shared/check-credentials.js.map +1 -1
  333. package/dist/shared/constants.d.ts +30 -8
  334. package/dist/shared/constants.d.ts.map +1 -1
  335. package/dist/shared/constants.js +14 -8
  336. package/dist/shared/constants.js.map +1 -1
  337. package/dist/shared/convert-to-serve-url.d.ts +3 -0
  338. package/dist/shared/convert-to-serve-url.d.ts.map +1 -0
  339. package/dist/shared/convert-to-serve-url.js +19 -0
  340. package/dist/shared/convert-to-serve-url.js.map +1 -0
  341. package/dist/shared/docs-url.d.ts +2 -0
  342. package/dist/shared/docs-url.d.ts.map +1 -0
  343. package/dist/shared/docs-url.js +5 -0
  344. package/dist/shared/docs-url.js.map +1 -0
  345. package/dist/shared/hosted-layers.d.ts +2 -1
  346. package/dist/shared/hosted-layers.d.ts.map +1 -1
  347. package/dist/shared/hosted-layers.js +32 -185
  348. package/dist/shared/hosted-layers.js.map +1 -1
  349. package/dist/shared/make-s3-url.d.ts +1 -1
  350. package/dist/shared/make-s3-url.d.ts.map +1 -1
  351. package/dist/shared/make-s3-url.js +4 -5
  352. package/dist/shared/make-s3-url.js.map +1 -1
  353. package/dist/shared/parse-lambda-initialized-key.d.ts +6 -0
  354. package/dist/shared/parse-lambda-initialized-key.d.ts.map +1 -0
  355. package/dist/shared/parse-lambda-initialized-key.js +16 -0
  356. package/dist/shared/parse-lambda-initialized-key.js.map +1 -0
  357. package/dist/shared/parse-lambda-timings-key.d.ts +0 -1
  358. package/dist/shared/parse-lambda-timings-key.d.ts.map +1 -1
  359. package/dist/shared/parse-lambda-timings-key.js +1 -2
  360. package/dist/shared/parse-lambda-timings-key.js.map +1 -1
  361. package/dist/shared/validate-frames-per-lambda.d.ts +2 -0
  362. package/dist/shared/validate-frames-per-lambda.d.ts.map +1 -0
  363. package/dist/shared/validate-frames-per-lambda.js +22 -0
  364. package/dist/shared/validate-frames-per-lambda.js.map +1 -0
  365. package/dist/shared/validate-retries.d.ts +2 -0
  366. package/dist/shared/validate-retries.d.ts.map +1 -0
  367. package/dist/shared/validate-retries.js +22 -0
  368. package/dist/shared/validate-retries.js.map +1 -0
  369. package/dist/shared/validate-site-name.d.ts +2 -0
  370. package/dist/shared/validate-site-name.d.ts.map +1 -0
  371. package/dist/shared/validate-site-name.js +12 -0
  372. package/dist/shared/validate-site-name.js.map +1 -0
  373. package/package.json +12 -10
  374. package/remotionlambda.zip +0 -0
  375. package/dist/admin/replicate-binaries.d.ts +0 -2
  376. package/dist/admin/replicate-binaries.d.ts.map +0 -1
  377. package/dist/admin/replicate-binaries.js +0 -50
  378. package/dist/admin/replicate-binaries.js.map +0 -1
  379. package/dist/api/bundle-lambda.d.ts +0 -2
  380. package/dist/api/bundle-lambda.d.ts.map +0 -1
  381. package/dist/api/bundle-lambda.js +0 -34
  382. package/dist/api/bundle-lambda.js.map +0 -1
  383. package/dist/api/bundle-remotion.d.ts +0 -6
  384. package/dist/api/bundle-remotion.d.ts.map +0 -1
  385. package/dist/api/bundle-remotion.js +0 -12
  386. package/dist/api/bundle-remotion.js.map +0 -1
  387. package/dist/api/deploy-lambda.d.ts +0 -7
  388. package/dist/api/deploy-lambda.d.ts.map +0 -1
  389. package/dist/api/deploy-lambda.js +0 -48
  390. package/dist/api/deploy-lambda.js.map +0 -1
  391. package/dist/api/deploy-project.d.ts +0 -28
  392. package/dist/api/deploy-project.d.ts.map +0 -1
  393. package/dist/api/deploy-project.js +0 -58
  394. package/dist/api/deploy-project.js.map +0 -1
  395. package/dist/api/ensure-lambda-binaries.d.ts +0 -11
  396. package/dist/api/ensure-lambda-binaries.d.ts.map +0 -1
  397. package/dist/api/ensure-lambda-binaries.js +0 -60
  398. package/dist/api/ensure-lambda-binaries.js.map +0 -1
  399. package/dist/api/get-deployed-lambdas.d.ts +0 -10
  400. package/dist/api/get-deployed-lambdas.d.ts.map +0 -1
  401. package/dist/api/get-deployed-lambdas.js +0 -31
  402. package/dist/api/get-deployed-lambdas.js.map +0 -1
  403. package/dist/api/get-function-version.d.ts +0 -7
  404. package/dist/api/get-function-version.d.ts.map +0 -1
  405. package/dist/api/get-function-version.js +0 -27
  406. package/dist/api/get-function-version.js.map +0 -1
  407. package/dist/api/iam-validation/required-permissions.d.ts +0 -6
  408. package/dist/api/iam-validation/required-permissions.d.ts.map +0 -1
  409. package/dist/api/iam-validation/required-permissions.js.map +0 -1
  410. package/dist/api/validate-frames-per-lambda.d.ts +0 -2
  411. package/dist/api/validate-frames-per-lambda.d.ts.map +0 -1
  412. package/dist/api/validate-frames-per-lambda.js +0 -26
  413. package/dist/api/validate-frames-per-lambda.js.map +0 -1
  414. package/dist/benchmark.d.ts +0 -2
  415. package/dist/benchmark.d.ts.map +0 -1
  416. package/dist/benchmark.js +0 -30
  417. package/dist/benchmark.js.map +0 -1
  418. package/dist/build-render/index.js +0 -126181
  419. package/dist/chunked-upload.d.ts +0 -2
  420. package/dist/chunked-upload.d.ts.map +0 -1
  421. package/dist/chunked-upload.js +0 -34
  422. package/dist/chunked-upload.js.map +0 -1
  423. package/dist/cleanup/cleanup-lambdas.d.ts +0 -7
  424. package/dist/cleanup/cleanup-lambdas.d.ts.map +0 -1
  425. package/dist/cleanup/cleanup-lambdas.js +0 -22
  426. package/dist/cleanup/cleanup-lambdas.js.map +0 -1
  427. package/dist/cleanup/s3-buckets.d.ts +0 -16
  428. package/dist/cleanup/s3-buckets.d.ts.map +0 -1
  429. package/dist/cleanup/s3-buckets.js +0 -59
  430. package/dist/cleanup/s3-buckets.js.map +0 -1
  431. package/dist/cli/cleanup.d.ts +0 -4
  432. package/dist/cli/cleanup.d.ts.map +0 -1
  433. package/dist/cli/cleanup.js +0 -77
  434. package/dist/cli/cleanup.js.map +0 -1
  435. package/dist/cli/commands/render.d.ts +0 -3
  436. package/dist/cli/commands/render.d.ts.map +0 -1
  437. package/dist/cli/commands/render.js +0 -75
  438. package/dist/cli/commands/render.js.map +0 -1
  439. package/dist/cli/commands/sites/upload.d.ts +0 -3
  440. package/dist/cli/commands/sites/upload.d.ts.map +0 -1
  441. package/dist/cli/commands/sites/upload.js +0 -111
  442. package/dist/cli/commands/sites/upload.js.map +0 -1
  443. package/dist/cli/deploy.d.ts +0 -3
  444. package/dist/cli/deploy.d.ts.map +0 -1
  445. package/dist/cli/deploy.js +0 -13
  446. package/dist/cli/deploy.js.map +0 -1
  447. package/dist/cli/policies.d.ts +0 -3
  448. package/dist/cli/policies.d.ts.map +0 -1
  449. package/dist/cli/policies.js +0 -59
  450. package/dist/cli/policies.js.map +0 -1
  451. package/dist/cli/render.d.ts +0 -3
  452. package/dist/cli/render.d.ts.map +0 -1
  453. package/dist/cli/render.js +0 -96
  454. package/dist/cli/render.js.map +0 -1
  455. package/dist/cli/upload.d.ts +0 -3
  456. package/dist/cli/upload.d.ts.map +0 -1
  457. package/dist/cli/upload.js +0 -112
  458. package/dist/cli/upload.js.map +0 -1
  459. package/dist/functions/chunk-optimization/write-profile.d.ts +0 -8
  460. package/dist/functions/chunk-optimization/write-profile.d.ts.map +0 -1
  461. package/dist/functions/chunk-optimization/write-profile.js +0 -18
  462. package/dist/functions/chunk-optimization/write-profile.js.map +0 -1
  463. package/dist/functions/get-progress.d.ts +0 -27
  464. package/dist/functions/get-progress.d.ts.map +0 -1
  465. package/dist/functions/get-progress.js +0 -161
  466. package/dist/functions/get-progress.js.map +0 -1
  467. package/dist/functions/helpers/is-fatal-error.d.ts +0 -3
  468. package/dist/functions/helpers/is-fatal-error.d.ts.map +0 -1
  469. package/dist/functions/helpers/is-fatal-error.js +0 -8
  470. package/dist/functions/helpers/is-fatal-error.js.map +0 -1
  471. package/dist/rendering/chunked-concatenation.d.ts +0 -3
  472. package/dist/rendering/chunked-concatenation.d.ts.map +0 -1
  473. package/dist/rendering/chunked-concatenation.js +0 -38
  474. package/dist/rendering/chunked-concatenation.js.map +0 -1
  475. package/dist/rendering/create-named-pipe.d.ts +0 -8
  476. package/dist/rendering/create-named-pipe.d.ts.map +0 -1
  477. package/dist/rendering/create-named-pipe.js +0 -41
  478. package/dist/rendering/create-named-pipe.js.map +0 -1
  479. package/dist/rendering/mount-tmp-fs.d.ts +0 -2
  480. package/dist/rendering/mount-tmp-fs.d.ts.map +0 -1
  481. package/dist/rendering/mount-tmp-fs.js +0 -19
  482. package/dist/rendering/mount-tmp-fs.js.map +0 -1
  483. package/dist/run.d.ts +0 -2
  484. package/dist/run.d.ts.map +0 -1
  485. package/dist/run.js +0 -104
  486. package/dist/run.js.map +0 -1
  487. package/dist/scripts2.d.ts +0 -1
  488. package/dist/scripts2.d.ts.map +0 -1
  489. package/dist/scripts2.js +0 -2
  490. package/dist/scripts2.js.map +0 -1
  491. package/dist/shared/get-file-extension-from-codec.d.ts +0 -3
  492. package/dist/shared/get-file-extension-from-codec.d.ts.map +0 -1
  493. package/dist/shared/get-file-extension-from-codec.js +0 -33
  494. package/dist/shared/get-file-extension-from-codec.js.map +0 -1
  495. package/dist/shared/parse-chunk-timing-key.d.ts +0 -7
  496. package/dist/shared/parse-chunk-timing-key.d.ts.map +0 -1
  497. package/dist/shared/parse-chunk-timing-key.js +0 -17
  498. package/dist/shared/parse-chunk-timing-key.js.map +0 -1
  499. package/dist/shared/tmpdir.d.ts +0 -3
  500. package/dist/shared/tmpdir.d.ts.map +0 -1
  501. package/dist/shared/tmpdir.js +0 -23
  502. package/dist/shared/tmpdir.js.map +0 -1
@@ -3,13 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.stillHandler = exports.innerStillHandler = void 0;
6
+ exports.stillHandler = void 0;
7
7
  const client_lambda_1 = require("@aws-sdk/client-lambda");
8
8
  const renderer_1 = require("@remotion/renderer");
9
9
  const fs_1 = __importDefault(require("fs"));
10
10
  const path_1 = __importDefault(require("path"));
11
+ const remotion_1 = require("remotion");
12
+ const estimate_price_1 = require("../api/estimate-price");
11
13
  const get_or_create_bucket_1 = require("../api/get-or-create-bucket");
12
- const calculate_price_1 = require("../pricing/calculate-price");
13
14
  const aws_clients_1 = require("../shared/aws-clients");
14
15
  const constants_1 = require("../shared/constants");
15
16
  const make_s3_url_1 = require("../shared/make-s3-url");
@@ -21,23 +22,22 @@ const get_current_region_1 = require("./helpers/get-current-region");
21
22
  const io_1 = require("./helpers/io");
22
23
  const validate_composition_1 = require("./helpers/validate-composition");
23
24
  const write_lambda_error_1 = require("./helpers/write-lambda-error");
24
- const innerStillHandler = async (lambdaParams, options) => {
25
- var _a;
25
+ const innerStillHandler = async (lambdaParams, renderId, options) => {
26
+ var _a, _b;
26
27
  if (lambdaParams.type !== constants_1.LambdaRoutines.still) {
27
28
  throw new TypeError('Expected still type');
28
29
  }
29
30
  (0, validate_privacy_1.validatePrivacy)(lambdaParams.privacy);
30
31
  const start = Date.now();
31
- const renderId = (0, random_hash_1.randomHash)();
32
32
  const [{ bucketName }, browserInstance] = await Promise.all([
33
33
  (0, get_or_create_bucket_1.getOrCreateBucket)({
34
34
  region: (0, get_current_region_1.getCurrentRegionInFunction)(),
35
35
  }),
36
- (0, get_browser_instance_1.getBrowserInstance)(),
36
+ (0, get_browser_instance_1.getBrowserInstance)(remotion_1.Internals.Logging.isEqualOrBelowLogLevel((_a = lambdaParams.logLevel) !== null && _a !== void 0 ? _a : remotion_1.Internals.Logging.DEFAULT_LOG_LEVEL, 'verbose')),
37
37
  ]);
38
38
  const outputDir = constants_1.OUTPUT_PATH_PREFIX + (0, random_hash_1.randomHash)();
39
39
  if (fs_1.default.existsSync(outputDir)) {
40
- ((_a = fs_1.default.rmSync) !== null && _a !== void 0 ? _a : fs_1.default.rmdirSync)(outputDir);
40
+ ((_b = fs_1.default.rmSync) !== null && _b !== void 0 ? _b : fs_1.default.rmdirSync)(outputDir);
41
41
  }
42
42
  fs_1.default.mkdirSync(outputDir);
43
43
  const outputPath = path_1.default.join(outputDir, 'output');
@@ -46,21 +46,6 @@ const innerStillHandler = async (lambdaParams, options) => {
46
46
  browserInstance,
47
47
  composition: lambdaParams.composition,
48
48
  inputProps: lambdaParams.inputProps,
49
- onError: ({ err }) => {
50
- (0, write_lambda_error_1.writeLambdaError)({
51
- bucketName,
52
- errorInfo: {
53
- chunk: null,
54
- frame: null,
55
- isFatal: false,
56
- stack: (err.message + ' ' + err.stack),
57
- type: 'browser',
58
- tmpDir: (0, write_lambda_error_1.getTmpDirStateIfENoSp)(err.stack),
59
- },
60
- expectedBucketOwner: options.expectedBucketOwner,
61
- renderId,
62
- });
63
- },
64
49
  });
65
50
  const renderMetadata = {
66
51
  startedDate: Date.now(),
@@ -93,27 +78,11 @@ const innerStillHandler = async (lambdaParams, options) => {
93
78
  composition,
94
79
  output: outputPath,
95
80
  serveUrl: lambdaParams.serveUrl,
96
- browser: 'chrome',
97
81
  dumpBrowserLogs: false,
98
82
  envVariables: lambdaParams.envVariables,
99
83
  frame: lambdaParams.frame,
100
84
  imageFormat: lambdaParams.imageFormat,
101
85
  inputProps: lambdaParams.inputProps,
102
- onError: (error) => {
103
- (0, write_lambda_error_1.writeLambdaError)({
104
- errorInfo: {
105
- stack: error.message + ' ' + error.stack,
106
- type: 'browser',
107
- frame: lambdaParams.frame,
108
- chunk: 0,
109
- isFatal: false,
110
- tmpDir: (0, write_lambda_error_1.getTmpDirStateIfENoSp)(JSON.stringify(error)),
111
- },
112
- bucketName,
113
- expectedBucketOwner: options.expectedBucketOwner,
114
- renderId,
115
- });
116
- },
117
86
  overwrite: false,
118
87
  puppeteerInstance: browserInstance,
119
88
  quality: lambdaParams.quality,
@@ -129,7 +98,7 @@ const innerStillHandler = async (lambdaParams, options) => {
129
98
  region: (0, get_current_region_1.getCurrentRegionInFunction)(),
130
99
  });
131
100
  await fs_1.default.promises.rm(outputPath, { recursive: true });
132
- const estimatedPrice = (0, calculate_price_1.estimatePrice)({
101
+ const estimatedPrice = (0, estimate_price_1.estimatePrice)({
133
102
  durationInMiliseconds: Date.now() - start + 100,
134
103
  memorySizeInMb: Number(process.env.AWS_LAMBDA_FUNCTION_MEMORY_SIZE),
135
104
  region: (0, get_current_region_1.getCurrentRegionInFunction)(),
@@ -139,40 +108,60 @@ const innerStillHandler = async (lambdaParams, options) => {
139
108
  size,
140
109
  bucketName,
141
110
  estimatedPrice: (0, format_costs_info_1.formatCostsInfo)(estimatedPrice),
111
+ renderId,
142
112
  };
143
113
  };
144
- exports.innerStillHandler = innerStillHandler;
145
114
  const stillHandler = async (params, options) => {
146
115
  if (params.type !== constants_1.LambdaRoutines.still) {
147
116
  throw new Error('Params must be renderer');
148
117
  }
118
+ const renderId = (0, random_hash_1.randomHash)();
149
119
  try {
150
- return (0, exports.innerStillHandler)(params, options);
120
+ return innerStillHandler(params, renderId, options);
151
121
  }
152
122
  catch (err) {
153
123
  // If this error is encountered, we can just retry as it
154
124
  // is a very rare error to occur
155
125
  const isBrowserError = err.message.includes('FATAL:zygote_communication_linux.cc') ||
156
126
  err.message.includes('error while loading shared libraries: libnss3.so');
157
- if (isBrowserError || params.maxRetries > 0) {
127
+ const willRetry = isBrowserError || params.maxRetries > 0;
128
+ if (willRetry) {
158
129
  const retryPayload = {
159
130
  ...params,
160
131
  maxRetries: params.maxRetries - 1,
132
+ attempt: params.attempt + 1,
161
133
  };
162
- // TODO: Test retries by failing sometimes
163
134
  const res = await (0, aws_clients_1.getLambdaClient)((0, get_current_region_1.getCurrentRegionInFunction)()).send(new client_lambda_1.InvokeCommand({
164
135
  FunctionName: process.env.AWS_LAMBDA_FUNCTION_NAME,
165
136
  // @ts-expect-error
166
137
  Payload: JSON.stringify(retryPayload),
167
138
  }));
139
+ const { bucketName } = await (0, get_or_create_bucket_1.getOrCreateBucket)({
140
+ region: (0, get_current_region_1.getCurrentRegionInFunction)(),
141
+ });
142
+ (0, write_lambda_error_1.writeLambdaError)({
143
+ bucketName,
144
+ errorInfo: {
145
+ chunk: null,
146
+ frame: null,
147
+ isFatal: false,
148
+ stack: (err.message +
149
+ ' ' +
150
+ err.stack),
151
+ type: 'browser',
152
+ tmpDir: (0, write_lambda_error_1.getTmpDirStateIfENoSp)(err.stack),
153
+ attempt: params.attempt,
154
+ totalAttempts: params.attempt + params.maxRetries,
155
+ willRetry,
156
+ },
157
+ expectedBucketOwner: options.expectedBucketOwner,
158
+ renderId,
159
+ });
168
160
  const str = JSON.parse(Buffer.from(res.Payload).toString());
169
161
  return str;
170
162
  }
171
163
  throw err;
172
164
  }
173
- finally {
174
- await (0, get_browser_instance_1.closeBrowser)();
175
- }
176
165
  };
177
166
  exports.stillHandler = stillHandler;
178
167
  //# sourceMappingURL=still.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"still.js","sourceRoot":"","sources":["../../src/functions/still.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAqD;AACrD,iDAA+C;AAC/C,4CAAoB;AACpB,gDAAwB;AAExB,sEAA8D;AAC9D,gEAAyD;AACzD,uDAAsD;AACtD,mDAS6B;AAC7B,uDAAsD;AACtD,uDAAiD;AACjD,iEAA2D;AAC3D,mEAA4D;AAC5D,yEAAgF;AAChF,qEAAwE;AACxE,qCAA6C;AAC7C,yEAAmE;AACnE,qEAGsC;AAM/B,MAAM,iBAAiB,GAAG,KAAK,EACrC,YAA2B,EAC3B,OAAgB,EACf,EAAE;;IACH,IAAI,YAAY,CAAC,IAAI,KAAK,0BAAc,CAAC,KAAK,EAAE;QAC/C,MAAM,IAAI,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AG,MAAM,IAAA,6BAAe,EAAC,IAAA,+CAA0B,GAAE,CAAC,CAAC,IAAI,CACnE,IAAI,6BAAa,CAAC;gBACjB,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB;gBAClD,mBAAmB;gBACnB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;aACrC,CAAC,CACF,CAAC;YACF,MAAM,EAAC,UAAU,EAAC,GAAG,MAAM,IAAA,wCAAiB,EAAC;gBAC5C,MAAM,EAAE,IAAA,+CAA0B,GAAE;aACpC,CAAC,CAAC;YAEH,IAAA,qCAAgB,EAAC;gBAChB,UAAU;gBACV,SAAS,EAAE;oBACV,KAAK,EAAE,IAAI;oBACX,KAAK,EAAE,IAAI;oBACX,OAAO,EAAE,KAAK;oBACd,KAAK,EAAE,CAAE,GAAa,CAAC,OAAO;wBAC7B,GAAG;wBACF,GAAa,CAAC,KAAK,CAAW;oBAChC,IAAI,EAAE,SAAS;oBACf,MAAM,EAAE,IAAA,0CAAqB,EAAE,GAAa,CAAC,KAAe,CAAC;oBAC7D,OAAO,EAAE,MAAM,CAAC,OAAO;oBACvB,aAAa,EAAE,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,UAAU;oBACjD,SAAS;iBACT;gBACD,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;gBAChD,QAAQ;aACR,CAAC,CAAC;YACH,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CACrB,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,OAAqB,CAAC,CAAC,QAAQ,EAAE,CACT,CAAC;YAE1C,OAAO,GAAG,CAAC;SACX;QAED,MAAM,GAAG,CAAC;KACV;AACF,CAAC,CAAC;AAjEW,QAAA,YAAY,gBAiEvB"}
package/dist/index.d.ts CHANGED
@@ -1,21 +1,23 @@
1
- import { deleteFunction } from './api/delete-function';
2
- import { deleteSite } from './api/delete-site';
3
- import { deployFunction } from './api/deploy-function';
4
- import { deploySite } from './api/deploy-site';
5
- import { downloadVideo } from './api/download-video';
6
- import { getFunctionInfo } from './api/get-function-info';
7
- import { getFunctions } from './api/get-functions';
8
- import { getOrCreateBucket } from './api/get-or-create-bucket';
9
- import { getRenderProgress } from './api/get-render-progress';
10
- import { getSites } from './api/get-sites';
11
- import { simulatePermissions } from './api/iam-validation/simulate';
1
+ import { deleteFunction, DeleteFunctionInput } from './api/delete-function';
2
+ import { deleteSite, DeleteSiteInput, DeleteSiteOutput } from './api/delete-site';
3
+ import { deployFunction, DeployFunctionInput, DeployFunctionOutput } from './api/deploy-function';
4
+ import { deploySite, DeploySiteInput, DeploySiteOutput } from './api/deploy-site';
5
+ import { downloadMedia, DownloadMediaInput, DownloadMediaOutput, downloadVideo } from './api/download-media';
6
+ import { estimatePrice, EstimatePriceInput } from './api/estimate-price';
7
+ import { FunctionInfo, getFunctionInfo, GetFunctionInfoInput } from './api/get-function-info';
8
+ import { getFunctions, GetFunctionsInput } from './api/get-functions';
9
+ import { getOrCreateBucket, GetOrCreateBucketInput, GetOrCreateBucketOutput } from './api/get-or-create-bucket';
10
+ import { getRegions } from './api/get-regions';
11
+ import { GetRenderInput, getRenderProgress } from './api/get-render-progress';
12
+ import { getSites, GetSitesInput, GetSitesOutput } from './api/get-sites';
13
+ import { simulatePermissions, SimulatePermissionsInput, SimulatePermissionsOutput } from './api/iam-validation/simulate';
12
14
  import { getRolePolicy, getUserPolicy } from './api/iam-validation/suggested-policy';
13
- import { renderStillOnLambda } from './api/render-still-on-lambda';
14
- import { renderVideoOnLambda } from './api/render-video-on-lambda';
15
+ import { renderMediaOnLambda, RenderMediaOnLambdaInput, RenderMediaOnLambdaOutput, renderVideoOnLambda } from './api/render-media-on-lambda';
16
+ import { renderStillOnLambda, RenderStillOnLambdaInput, RenderStillOnLambdaOutput } from './api/render-still-on-lambda';
17
+ import { LambdaLSInput, LambdaLsReturnType } from './functions/helpers/io';
15
18
  import { LambdaInternals } from './internals';
16
19
  import { AwsRegion } from './pricing/aws-regions';
17
20
  import type { RenderProgress } from './shared/constants';
18
- import { estimatePrice } from './pricing/calculate-price';
19
- export { deleteSite, deployFunction, deploySite, downloadVideo, getFunctions, getUserPolicy, getRolePolicy, getSites, getOrCreateBucket, getRenderProgress, renderVideoOnLambda, simulatePermissions, deleteFunction, getFunctionInfo, estimatePrice, LambdaInternals, renderStillOnLambda, };
20
- export type { AwsRegion, RenderProgress };
21
+ export { deleteSite, deployFunction, deploySite, downloadMedia, downloadVideo, getFunctions, getUserPolicy, getRolePolicy, getSites, getOrCreateBucket, getRenderProgress, renderVideoOnLambda, renderMediaOnLambda, simulatePermissions, deleteFunction, getFunctionInfo, estimatePrice, LambdaInternals, renderStillOnLambda, getRegions, };
22
+ export type { AwsRegion, RenderProgress, DeploySiteInput, DeploySiteOutput, LambdaLsReturnType, LambdaLSInput, DeleteSiteInput, DeleteSiteOutput, EstimatePriceInput, DeployFunctionInput, DeployFunctionOutput, DeleteFunctionInput, GetFunctionInfoInput, FunctionInfo, GetFunctionsInput, GetSitesInput, GetSitesOutput, DownloadMediaInput, DownloadMediaOutput, GetOrCreateBucketInput, GetOrCreateBucketOutput, GetRenderInput, RenderMediaOnLambdaInput, RenderMediaOnLambdaOutput, RenderStillOnLambdaInput, RenderStillOnLambdaOutput, SimulatePermissionsInput, SimulatePermissionsOutput, };
21
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,cAAc,EAAC,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AACxD,OAAO,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,aAAa,EACb,QAAQ,EACR,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,UAAU,GACV,CAAC;AACF,YAAY,EACX,SAAS,EACT,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EACd,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,GACzB,CAAC"}
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.renderStillOnLambda = exports.LambdaInternals = exports.estimatePrice = exports.getFunctionInfo = exports.deleteFunction = exports.simulatePermissions = exports.renderVideoOnLambda = exports.getRenderProgress = exports.getOrCreateBucket = exports.getSites = exports.getRolePolicy = exports.getUserPolicy = exports.getFunctions = exports.downloadVideo = exports.deploySite = exports.deployFunction = exports.deleteSite = void 0;
3
+ exports.getRegions = exports.renderStillOnLambda = exports.LambdaInternals = exports.estimatePrice = exports.getFunctionInfo = exports.deleteFunction = exports.simulatePermissions = exports.renderMediaOnLambda = exports.renderVideoOnLambda = exports.getRenderProgress = exports.getOrCreateBucket = exports.getSites = exports.getRolePolicy = exports.getUserPolicy = exports.getFunctions = exports.downloadVideo = exports.downloadMedia = exports.deploySite = exports.deployFunction = exports.deleteSite = void 0;
4
4
  const delete_function_1 = require("./api/delete-function");
5
5
  Object.defineProperty(exports, "deleteFunction", { enumerable: true, get: function () { return delete_function_1.deleteFunction; } });
6
6
  const delete_site_1 = require("./api/delete-site");
@@ -9,14 +9,19 @@ const deploy_function_1 = require("./api/deploy-function");
9
9
  Object.defineProperty(exports, "deployFunction", { enumerable: true, get: function () { return deploy_function_1.deployFunction; } });
10
10
  const deploy_site_1 = require("./api/deploy-site");
11
11
  Object.defineProperty(exports, "deploySite", { enumerable: true, get: function () { return deploy_site_1.deploySite; } });
12
- const download_video_1 = require("./api/download-video");
13
- Object.defineProperty(exports, "downloadVideo", { enumerable: true, get: function () { return download_video_1.downloadVideo; } });
12
+ const download_media_1 = require("./api/download-media");
13
+ Object.defineProperty(exports, "downloadMedia", { enumerable: true, get: function () { return download_media_1.downloadMedia; } });
14
+ Object.defineProperty(exports, "downloadVideo", { enumerable: true, get: function () { return download_media_1.downloadVideo; } });
15
+ const estimate_price_1 = require("./api/estimate-price");
16
+ Object.defineProperty(exports, "estimatePrice", { enumerable: true, get: function () { return estimate_price_1.estimatePrice; } });
14
17
  const get_function_info_1 = require("./api/get-function-info");
15
18
  Object.defineProperty(exports, "getFunctionInfo", { enumerable: true, get: function () { return get_function_info_1.getFunctionInfo; } });
16
19
  const get_functions_1 = require("./api/get-functions");
17
20
  Object.defineProperty(exports, "getFunctions", { enumerable: true, get: function () { return get_functions_1.getFunctions; } });
18
21
  const get_or_create_bucket_1 = require("./api/get-or-create-bucket");
19
22
  Object.defineProperty(exports, "getOrCreateBucket", { enumerable: true, get: function () { return get_or_create_bucket_1.getOrCreateBucket; } });
23
+ const get_regions_1 = require("./api/get-regions");
24
+ Object.defineProperty(exports, "getRegions", { enumerable: true, get: function () { return get_regions_1.getRegions; } });
20
25
  const get_render_progress_1 = require("./api/get-render-progress");
21
26
  Object.defineProperty(exports, "getRenderProgress", { enumerable: true, get: function () { return get_render_progress_1.getRenderProgress; } });
22
27
  const get_sites_1 = require("./api/get-sites");
@@ -26,12 +31,11 @@ Object.defineProperty(exports, "simulatePermissions", { enumerable: true, get: f
26
31
  const suggested_policy_1 = require("./api/iam-validation/suggested-policy");
27
32
  Object.defineProperty(exports, "getRolePolicy", { enumerable: true, get: function () { return suggested_policy_1.getRolePolicy; } });
28
33
  Object.defineProperty(exports, "getUserPolicy", { enumerable: true, get: function () { return suggested_policy_1.getUserPolicy; } });
34
+ const render_media_on_lambda_1 = require("./api/render-media-on-lambda");
35
+ Object.defineProperty(exports, "renderMediaOnLambda", { enumerable: true, get: function () { return render_media_on_lambda_1.renderMediaOnLambda; } });
36
+ Object.defineProperty(exports, "renderVideoOnLambda", { enumerable: true, get: function () { return render_media_on_lambda_1.renderVideoOnLambda; } });
29
37
  const render_still_on_lambda_1 = require("./api/render-still-on-lambda");
30
38
  Object.defineProperty(exports, "renderStillOnLambda", { enumerable: true, get: function () { return render_still_on_lambda_1.renderStillOnLambda; } });
31
- const render_video_on_lambda_1 = require("./api/render-video-on-lambda");
32
- Object.defineProperty(exports, "renderVideoOnLambda", { enumerable: true, get: function () { return render_video_on_lambda_1.renderVideoOnLambda; } });
33
39
  const internals_1 = require("./internals");
34
40
  Object.defineProperty(exports, "LambdaInternals", { enumerable: true, get: function () { return internals_1.LambdaInternals; } });
35
- const calculate_price_1 = require("./pricing/calculate-price");
36
- Object.defineProperty(exports, "estimatePrice", { enumerable: true, get: function () { return calculate_price_1.estimatePrice; } });
37
41
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,2DAAqD;AAmCpD,+FAnCO,gCAAc,OAmCP;AAlCf,mDAA6C;AAsB5C,2FAtBO,wBAAU,OAsBP;AArBX,2DAAqD;AAsBpD,+FAtBO,gCAAc,OAsBP;AArBf,mDAA6C;AAsB5C,2FAtBO,wBAAU,OAsBP;AArBX,yDAAmD;AAsBlD,8FAtBO,8BAAa,OAsBP;AArBd,+DAAwD;AA+BvD,gGA/BO,mCAAe,OA+BP;AA9BhB,uDAAiD;AAqBhD,6FArBO,4BAAY,OAq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OAyBA;AAvBd,yEAKsC;AAwBrC,oGA5BA,4CAAmB,OA4BA;AADnB,oGAxBA,4CAAmB,OAwBA;AAtBpB,yEAIsC;AAyBrC,oGA5BA,4CAAmB,OA4BA;AAvBpB,2CAA4C;AAsB3C,gGAtBO,2BAAe,OAsBP"}
@@ -1,3 +1,3 @@
1
- export declare const AWS_REGIONS: readonly ["us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-3", "ap-northeast-2", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ca-central-1", "eu-central-1", "eu-west-1", "eu-west-2", "eu-south-1", "eu-west-3", "eu-north-1", "me-south-1", "sa-east-1"];
1
+ export declare const AWS_REGIONS: readonly ["eu-central-1", "eu-west-1", "eu-west-2", "us-east-1", "us-east-2", "us-west-2", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1"];
2
2
  export declare type AwsRegion = typeof AWS_REGIONS[number];
3
3
  //# sourceMappingURL=aws-regions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"aws-regions.d.ts","sourceRoot":"","sources":["../../src/pricing/aws-regions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,gUAsBd,CAAC;AAEX,oBAAY,SAAS,GAAG,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"aws-regions.d.ts","sourceRoot":"","sources":["../../src/pricing/aws-regions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,gKAWd,CAAC;AAEX,oBAAY,SAAS,GAAG,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC"}
@@ -2,26 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AWS_REGIONS = void 0;
4
4
  exports.AWS_REGIONS = [
5
+ 'eu-central-1',
6
+ 'eu-west-1',
7
+ 'eu-west-2',
5
8
  'us-east-1',
6
9
  'us-east-2',
7
- 'us-west-1',
8
10
  'us-west-2',
9
- 'af-south-1',
10
- 'ap-east-1',
11
11
  'ap-south-1',
12
- 'ap-northeast-3',
13
- 'ap-northeast-2',
14
12
  'ap-southeast-1',
15
13
  'ap-southeast-2',
16
14
  'ap-northeast-1',
17
- 'ca-central-1',
18
- 'eu-central-1',
19
- 'eu-west-1',
20
- 'eu-west-2',
21
- 'eu-south-1',
22
- 'eu-west-3',
23
- 'eu-north-1',
24
- 'me-south-1',
25
- 'sa-east-1',
26
15
  ];
27
16
  //# sourceMappingURL=aws-regions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"aws-regions.js","sourceRoot":"","sources":["../../src/pricing/aws-regions.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IAC1B,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,YAAY;IACZ,WAAW;IACX,YAAY;IACZ,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,cAAc;IACd,cAAc;IACd,WAAW;IACX,WAAW;IACX,YAAY;IACZ,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,WAAW;CACF,CAAC"}
1
+ {"version":3,"file":"aws-regions.js","sourceRoot":"","sources":["../../src/pricing/aws-regions.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IAC1B,cAAc;IACd,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,YAAY;IACZ,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;CACP,CAAC"}
@@ -7,7 +7,7 @@ declare type EstimatePriceInput = {
7
7
  /**
8
8
  *
9
9
  * @description Calculates the AWS costs incurred for AWS Lambda given the region, execution duration and memory size.
10
- * @link https://remotion.dev/docs/lambda/estimateprice
10
+ * @link https://remotion-3.vercel.app/docs/lambda/estimateprice
11
11
  * @returns `number` Price in USD
12
12
  */
13
13
  export declare const estimatePrice: ({ region, durationInMiliseconds, memorySizeInMb, }: EstimatePriceInput) => number;
@@ -7,7 +7,7 @@ const price_per_1_s_1 = require("./price-per-1-s");
7
7
  /**
8
8
  *
9
9
  * @description Calculates the AWS costs incurred for AWS Lambda given the region, execution duration and memory size.
10
- * @link https://remotion.dev/docs/lambda/estimateprice
10
+ * @link https://remotion-3.vercel.app/docs/lambda/estimateprice
11
11
  * @returns `number` Price in USD
12
12
  */
13
13
  const estimatePrice = ({ region, durationInMiliseconds, memorySizeInMb, }) => {
@@ -0,0 +1,15 @@
1
+ import { AwsRegion } from './aws-regions';
2
+ declare type EstimatePriceInput = {
3
+ region: AwsRegion;
4
+ durationInMiliseconds: number;
5
+ memorySizeInMb: number;
6
+ };
7
+ /**
8
+ *
9
+ * @description Calculates the AWS costs incurred for AWS Lambda given the region, execution duration and memory size.
10
+ * @link https://remotion-3.vercel.app/docs/lambda/estimateprice
11
+ * @returns `number` Price in USD
12
+ */
13
+ export declare const estimatePrice: ({ region, durationInMiliseconds, memorySizeInMb, }: EstimatePriceInput) => number;
14
+ export {};
15
+ //# sourceMappingURL=estimate-price.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"estimate-price.d.ts","sourceRoot":"","sources":["../../src/pricing/estimate-price.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAGxC,aAAK,kBAAkB,GAAG;IACzB,MAAM,EAAE,SAAS,CAAC;IAClB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;CACvB,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,uDAIvB,kBAAkB,WAkCpB,CAAC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.estimatePrice = void 0;
4
+ const validate_aws_region_1 = require("../shared/validate-aws-region");
5
+ const validate_memory_size_1 = require("../shared/validate-memory-size");
6
+ const price_per_1_s_1 = require("./price-per-1-s");
7
+ /**
8
+ *
9
+ * @description Calculates the AWS costs incurred for AWS Lambda given the region, execution duration and memory size.
10
+ * @link https://remotion-3.vercel.app/docs/lambda/estimateprice
11
+ * @returns `number` Price in USD
12
+ */
13
+ const estimatePrice = ({ region, durationInMiliseconds, memorySizeInMb, }) => {
14
+ (0, validate_memory_size_1.validateMemorySize)(memorySizeInMb);
15
+ (0, validate_aws_region_1.validateAwsRegion)(region);
16
+ if (typeof durationInMiliseconds !== 'number') {
17
+ throw new TypeError(`Parameter 'durationInMiliseconds' must be a number but got ${typeof durationInMiliseconds}`);
18
+ }
19
+ if (Number.isNaN(durationInMiliseconds)) {
20
+ throw new TypeError(`Parameter 'durationInMiliseconds' must not be NaN but it is.`);
21
+ }
22
+ if (!Number.isFinite(durationInMiliseconds)) {
23
+ throw new TypeError(`Parameter 'durationInMiliseconds' must be finite but it is ${durationInMiliseconds}`);
24
+ }
25
+ if (durationInMiliseconds < 0) {
26
+ throw new TypeError(`Parameter 'durationInMiliseconds' must be over 0 but it is ${durationInMiliseconds}.`);
27
+ }
28
+ const timeCostDollars = Number(price_per_1_s_1.pricing[region]['Lambda Duration'].price) *
29
+ ((memorySizeInMb * durationInMiliseconds) / 1000 / 1024);
30
+ const invocationCost = Number(price_per_1_s_1.pricing[region]['Lambda Requests'].price);
31
+ return Number((timeCostDollars + invocationCost).toFixed(5));
32
+ };
33
+ exports.estimatePrice = estimatePrice;
34
+ //# sourceMappingURL=estimate-price.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"estimate-price.js","sourceRoot":"","sources":["../../src/pricing/estimate-price.ts"],"names":[],"mappings":";;;AAAA,uEAAgE;AAChE,yEAAkE;AAElE,mDAAwC;AAOxC;;;;;GAKG;AACI,MAAM,aAAa,GAAG,CAAC,EAC7B,MAAM,EACN,qBAAqB,EACrB,cAAc,GACM,EAAE,EAAE;IACxB,IAAA,yCAAkB,EAAC,cAAc,CAAC,CAAC;IACnC,IAAA,uCAAiB,EAAC,MAAM,CAAC,CAAC;IAC1B,IAAI,OAAO,qBAAqB,KAAK,QAAQ,EAAE;QAC9C,MAAM,IAAI,SAAS,CAClB,8DAA8D,OAAO,qBAAqB,EAAE,CAC5F,CAAC;KACF;IAED,IAAI,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,EAAE;QACxC,MAAM,IAAI,SAAS,CAClB,8DAA8D,CAC9D,CAAC;KACF;IAED,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EAAE;QAC5C,MAAM,IAAI,SAAS,CAClB,8DAA8D,qBAAqB,EAAE,CACrF,CAAC;KACF;IAED,IAAI,qBAAqB,GAAG,CAAC,EAAE;QAC9B,MAAM,IAAI,SAAS,CAClB,8DAA8D,qBAAqB,GAAG,CACtF,CAAC;KACF;IAED,MAAM,eAAe,GACpB,MAAM,CAAC,uBAAO,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC,KAAK,CAAC;QAChD,CAAC,CAAC,cAAc,GAAG,qBAAqB,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;IAE1D,MAAM,cAAc,GAAG,MAAM,CAAC,uBAAO,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC,KAAK,CAAC,CAAC;IAExE,OAAO,MAAM,CAAC,CAAC,eAAe,GAAG,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9D,CAAC,CAAC;AAtCW,QAAA,aAAa,iBAsCxB"}
@@ -17,6 +17,14 @@ export declare const pricing: {
17
17
  rateCode: string;
18
18
  price: string;
19
19
  };
20
+ 'Lambda Duration-ARM': {
21
+ rateCode: string;
22
+ price: string;
23
+ };
24
+ 'Lambda Requests-ARM': {
25
+ rateCode: string;
26
+ price: string;
27
+ };
20
28
  };
21
29
  };
22
30
  //# sourceMappingURL=price-per-1-s.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"price-per-1-s.d.ts","sourceRoot":"","sources":["../../src/pricing/price-per-1-s.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,SAA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